-
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.
- Loading branch information
1 parent
8b713c0
commit cee5881
Showing
12 changed files
with
82 additions
and
78 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
This file was deleted.
Oops, something went wrong.
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
Submodule openzeppelin-contracts
deleted from
281ab1
1 change: 1 addition & 0 deletions
1
TNLS-Gateways/public-gateway/lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable
added at
fbdb82
34 changes: 34 additions & 0 deletions
34
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.23; | ||
|
||
import "forge-std/Test.sol"; | ||
import "forge-std/Vm.sol"; | ||
import "forge-std/console2.sol"; | ||
import "forge-std/Script.sol"; | ||
import {Gateway} from "../src/Gateway.sol"; | ||
import {RandomnessReciever} from "../src/RandomnessReciever.sol"; | ||
|
||
|
||
|
||
contract DeployRandomnessScript is Script { | ||
function setUp() public {} | ||
|
||
address deployer; | ||
RandomnessReciever randomnessAddress; | ||
|
||
uint256 privKey = vm.envUint("ETH_PRIVATE_KEY"); | ||
|
||
|
||
function run() public { | ||
deployer = vm.rememberKey(privKey); | ||
vm.startBroadcast(); | ||
|
||
Gateway gateway = Gateway(0x5e1e92eA6A1b7a58D88619C625FEc5D27147bc64); | ||
randomnessAddress = new RandomnessReciever(); | ||
console2.logAddress(address(randomnessAddress)); | ||
|
||
randomnessAddress.setGatewayAddress(address(gateway)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ds-test/=public-gateway/lib/forge-std/lib/ds-test/src/ | ||
forge-std/=public-gateway/lib/forge-std/src/ | ||
openzeppelin-contracts/=public-gateway/lib/openzeppelin-contracts | ||
@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/ | ||
@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/ | ||
solmate/=public-gateway/lib/solmate/src/ |