Skip to content

Commit 64aef49

Browse files
authored
Merge pull request #53 from KyberNetwork/deploy_260123_smart_exit
feat: deploy Smart Exit to Base and BSC
2 parents efa10f4 + 0a7559c commit 64aef49

11 files changed

+36
-25
lines changed

script/DeployHooks.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
44
import 'ks-common-sc/script/Base.s.sol';
55

66
contract DeployHooks is BaseScript {
7-
string salt = '';
7+
string salt = '260123';
88

99
struct HookConfig {
1010
string[] constructorParams;

script/DeployRouter.s.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'ks-common-sc/script/Base.s.sol';
55
import 'src/KSSmartIntentRouter.sol';
66

77
contract DeployRouter is BaseScript {
8-
string salt = '';
8+
string salt = '260123_2';
99

1010
function run() external {
1111
if (bytes(salt).length == 0) {
@@ -18,13 +18,12 @@ contract DeployRouter is BaseScript {
1818
address[] memory rescuers = _readAddressArray('router-rescuers');
1919
address[] memory actionContracts = _readAddressArray('action-contracts');
2020
address forwarder = _readAddress('forwarder');
21-
address signatureVerifier = _readAddress('signature-verifier');
2221

2322
vm.startBroadcast();
2423

2524
bytes memory creationCode = abi.encodePacked(
2625
type(KSSmartIntentRouter).creationCode,
27-
abi.encode(admin, guardians, rescuers, actionContracts, forwarder, signatureVerifier)
26+
abi.encode(admin, guardians, rescuers, actionContracts, forwarder)
2827
);
2928
address router = _create3Deploy(keccak256(abi.encodePacked(salt)), creationCode);
3029

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"1": [
3-
"0x6131B5fae19EA4f9D964eAc0408E4408b66337b5"
4-
],
5-
"11155111": [
6-
"0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3"
2+
"56": [
3+
"0x7a4a5c919ae2541aed11041a1aeee68f1287f95b",
4+
"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",
5+
"0x55f4c8abA71A1e923edC303eb4fEfF14608cC226",
6+
"0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"
77
],
88
"8453": [
9-
"0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
10-
"0x6131B5fae19EA4f9D964eAc0408E4408b66337b5"
9+
"0x7c5f5a4bbd8fd63184577525326123b519429bdc",
10+
"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
11+
"0x55f4c8abA71A1e923edC303eb4fEfF14608cC226",
12+
"0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"
1113
]
1214
}

script/config/forwarder.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"56": "0xe51638774a60bB0113e040E6D7C3B27d96a39eeA",
3+
"8453": "0xe51638774a60bB0113e040E6D7C3B27d96a39eeA"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"56": "0x208afD572a7087B965ebfc1D41f8Aa413D91dc4C",
3+
"8453": "0x208afD572a7087B965ebfc1D41f8Aa413D91dc4C"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"56": "0x69AA737298cc6C61078ea60a0B3f72107C55c9F3",
3+
"8453": "0x69AA737298cc6C61078ea60a0B3f72107C55c9F3"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"56": "0xefF630F41fd909b082Ce3f1c0B57d2B5E99eB6B0",
3+
"8453": "0xefF630F41fd909b082Ce3f1c0B57d2B5E99eB6B0"
4+
}

script/config/router-admin.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"11155111": "0x6902bCeE704C7D87E38643B736F27a7E0b699286",
3-
"8453": "0x6902bCeE704C7D87E38643B736F27a7E0b699286"
2+
"0": "0xBE2F0354D970265BFc36D383af77F72736b81B54"
43
}
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"11155111": [
3-
"0x2A89363cB9396eA025E0E05404FC04D2a04CC61E",
4-
"0x1995dEdBf7e5687dc1C37d252c4Aeb87F8E5358c",
5-
"0xe1116b1EBDb524FC5E791d45350141349c603655"
6-
],
7-
"8453": [
8-
"0x6902bCeE704C7D87E38643B736F27a7E0b699286"
2+
"0": [
3+
"0x26F075D47C3378BB23ded7a6A2110Da5C17B1Ebd",
4+
"0x697161A9ECE8aFD6AE30946D790077050F993cbc"
95
]
106
}

script/config/router-rescuers.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"11155111": [
3-
],
4-
"8453": [
5-
]
2+
"0": []
63
}

0 commit comments

Comments
 (0)