-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLOCKCHAIN-234 - bridge contracts - cap the supply limit that can be …
…set by admin
- Loading branch information
1 parent
e2efbc8
commit 46cad1b
Showing
5 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.18; | ||
|
||
import "forge-std/Script.sol"; | ||
import "../src/Bridge.sol"; | ||
|
||
contract UpgradeBridgesToV2 is Script { | ||
function run() external { | ||
vm.startBroadcast(); | ||
Bridge lldProxy = Bridge(vm.envAddress("LLDBridgeProxy")); | ||
Bridge llmProxy = Bridge(vm.envAddress("LLMBridgeProxy")); | ||
|
||
Bridge newBridgeImpl = new Bridge(); | ||
|
||
lldProxy.upgradeToAndCall( | ||
address(newBridgeImpl), | ||
abi.encodeCall( | ||
Bridge.initializeV2, | ||
(3_000_000_000_000_000_000) // max supply limit of 3M LLD, admin can lower it | ||
) | ||
); | ||
llmProxy.upgradeToAndCall( | ||
address(newBridgeImpl), | ||
abi.encodeCall( | ||
Bridge.initializeV2, | ||
(1_000_000_000_000_000_000) // max supply limit of 1M LLM, admin can lower it | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters