-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Vincent Geddes <[email protected]>
- Loading branch information
1 parent
4a0e8fd
commit cb05e1f
Showing
28 changed files
with
1,327 additions
and
159 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
33 changes: 33 additions & 0 deletions
33
contracts/scripts/upgrades/polkadot/DeployGateway202502.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,33 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
pragma solidity 0.8.28; | ||
|
||
import {WETH9} from "canonical-weth/WETH9.sol"; | ||
import {Script} from "forge-std/Script.sol"; | ||
import {BeefyClient} from "../../../src/BeefyClient.sol"; | ||
import {AgentExecutor} from "../../../src/AgentExecutor.sol"; | ||
import {ParaID} from "../../../src/Types.sol"; | ||
import {Gateway202502} from "../../../src/upgrades/Gateway202502.sol"; | ||
import {SafeNativeTransfer} from "../../../src/utils/SafeTransfer.sol"; | ||
import {stdJson} from "forge-std/StdJson.sol"; | ||
import {UD60x18, ud60x18} from "prb/math/src/UD60x18.sol"; | ||
|
||
contract DeployGateway202502 is Script { | ||
address public constant BEEFY_CLIENT_ADDRESS = 0x6eD05bAa904df3DE117EcFa638d4CB84e1B8A00C; | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
AgentExecutor executor = new AgentExecutor(); | ||
Gateway202502 gatewayLogic = new Gateway202502( | ||
BEEFY_CLIENT_ADDRESS, | ||
address(executor), | ||
ParaID.wrap(1002), | ||
0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314, | ||
10, | ||
20_000_000_000 // 2 DOT | ||
); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
contracts/scripts/upgrades/westend/DeployGateway202502.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,33 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
pragma solidity 0.8.28; | ||
|
||
import {WETH9} from "canonical-weth/WETH9.sol"; | ||
import {Script} from "forge-std/Script.sol"; | ||
import {BeefyClient} from "../../../src/BeefyClient.sol"; | ||
import {AgentExecutor} from "../../../src/AgentExecutor.sol"; | ||
import {ParaID} from "../../../src/Types.sol"; | ||
import {Gateway202502} from "../../../src/upgrades/Gateway202502.sol"; | ||
import {SafeNativeTransfer} from "../../../src/utils/SafeTransfer.sol"; | ||
import {stdJson} from "forge-std/StdJson.sol"; | ||
import {UD60x18, ud60x18} from "prb/math/src/UD60x18.sol"; | ||
|
||
contract DeployGateway202502 is Script { | ||
address public constant BEEFY_CLIENT_ADDRESS = 0x6DFaD3D73A28c48E4F4c616ECda80885b415283a; | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
AgentExecutor executor = new AgentExecutor(); | ||
Gateway202502 gatewayLogic = new Gateway202502( | ||
BEEFY_CLIENT_ADDRESS, | ||
address(executor), | ||
ParaID.wrap(1002), | ||
0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314, | ||
12, | ||
2_000_000_000_000 // 2 DOT | ||
); | ||
|
||
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
Oops, something went wrong.