-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from SecretSaturn/More-Chains
Contract improvements & add a lot more chains
- Loading branch information
Showing
15 changed files
with
953 additions
and
289 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
2 changes: 1 addition & 1 deletion
2
TNLS-Gateways/public-gateway/lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable
updated
302 files
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
38 changes: 38 additions & 0 deletions
38
TNLS-Gateways/public-gateway/script/DeployProxyScript.s.sol
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,38 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.25; | ||
|
||
import "forge-std/Vm.sol"; | ||
import "forge-std/Script.sol"; | ||
import {Gateway} from "../src/Gateway.sol"; | ||
import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; | ||
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; | ||
|
||
|
||
contract DeployProxyScript is Script { | ||
function setUp() public {} | ||
|
||
ProxyAdmin proxyAdmin; | ||
Gateway gatewayLogic; | ||
TransparentUpgradeableProxy gatewayProxy; | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
// Deploy Gateway Logic Contract | ||
gatewayLogic = Gateway(0xEAe7aC0A51a0441D71A1Ee21005363B36f16EffC); | ||
|
||
// Prepare initializer data for Gateway | ||
bytes memory initializerData = abi.encodeWithSelector( | ||
Gateway.initialize.selector | ||
); | ||
|
||
// Deploy TransparentUpgradeableProxy | ||
gatewayProxy = new TransparentUpgradeableProxy( | ||
address(gatewayLogic), | ||
address(msg.sender), | ||
initializerData | ||
); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
12 changes: 5 additions & 7 deletions
12
TNLS-Gateways/public-gateway/script/DeployRandomnessScript.s.sol
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
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
Oops, something went wrong.