Skip to content

Commit 8b2caf1

Browse files
shunkakinokiScreamingHawkCopilot
authored
trails rc-3 w/ multicall3 (#87)
* feat: rc-4 trails contracts * Update README and rc-4.yaml for Trails contracts deployment - Added new Trails contracts for rc-4 in README.md - Updated rc-4.yaml to include dependency on sequence_v3/rc_4 and modified creation code handling for TrailsRouter and TrailsRouterShim actions * Update README and rc-4.yaml for Trails contracts deployment and enhance creation code handling * Update README to include new Trails contracts for rc-3 and modify rc-4 contract addresses * Update all-contracts.json with new contract ID for rc-3 deployment * Update all-contracts.json with new contract IDs for rc-4 deployment * Add dependency on multicall3 for rc-1, rc-2, and rc-3; remove rc-4.yaml * Update all-contracts.json with new contract ID for rc-3 deployment * Update rc-3.yaml to reference the correct multicall3 address for TrailsRouter actions * Update README.md to include Multicall3 contract address and modify Trails contracts for rc-3 deployment * rc-3 typo Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Michael Standen <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent a877a55 commit 8b2caf1

File tree

7 files changed

+99
-0
lines changed

7 files changed

+99
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ The following is a list of contracts that are deployed by this script.
192192
│ marketplace-v2 │ BatchPayableHelperV2 │ 0x6166c1952c54dEd6b070B4616797E61b6c48A117 │
193193
│ marketplace-v2 │ MarketFactoryV2 │ 0xBDC76d15eA28beB6AF2Cc69b4EFBb4Aa4FB77689 │
194194
│ marketplace-v2 │ MarketV2 │ 0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712 │
195+
│ multicall3 │ Multicall3 │ 0xae96419a81516f063744206d4b5E36f3168280f8 │
195196
│ niftyswap │ Exchange20Wrapper │ 0x2c944F28965F9A2cd5E69bA7e7520CbbD928258a │
196197
│ niftyswap │ Factory20 │ 0x9196b852437D9Ed92d95715dCbdA4533ffC479E0 │
197198
│ p256-verifier │ SoladyP256Verifier │ 0x000000000000D01eA45F9eFD5c54f037Fa57Ea1a │
@@ -240,6 +241,9 @@ The following is a list of contracts that are deployed by this script.
240241
│ trails-rc-2 │ TrailsIntentEntrypoint │ 0x9470D883bac170116d397Db3dA71B2e57d567583 │
241242
│ trails-rc-2 │ TrailsRouter │ 0xc4415c5CabD726bA06042af752a528B3dbc263F7 │
242243
│ trails-rc-2 │ TrailsRouterShim │ 0x859E606022aE8894342c00D297A4c4332aE53AbB │
244+
│ trails-rc-3 │ TrailsIntentEntrypoint │ 0x8f64eEB1f4680B9ed1F9d6A6Eee7CCf36258C93D │
245+
│ trails-rc-3 │ TrailsRouter │ 0xF8A739B9F24E297a98b7aba7A9cdFDBD457F6fF8 │
246+
│ trails-rc-3 │ TrailsRouterShim │ 0x1306aF05bA556839885B9B8c758f1d2F33d3571E │
243247
│ trails-token-sweeper │ TrailsMulticall3Router │ 0xFF8f46538c39dCA637fCE9a804b2B59B517A9698 │
244248
│ trails-token-sweeper │ TrailsTokenSweeper │ 0xEbDd59B8cE1993d38e4E081E0d80662BB169d3db │
245249
│ value-forwarder │ ValueForwarder │ 0xABAAd93EeE2a569cF0632f39B10A9f5D734777ca │

jobs/predeploy/build-info/multicall3.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

jobs/predeploy/multicall3.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "multicall3"
2+
version: "1"
3+
description: "Deploy Multicall3 via Singleton Factory (ERC-2470)"
4+
depends_on: ["era-evm-predeploy-erc2470"]
5+
6+
actions:
7+
- name: "multicall3"
8+
template: "erc-2470"
9+
arguments:
10+
salt: "0x416775737831323131206d616465204352454154453326342678030003000000"
11+
creationCode: "{{Contract(./build-info/multicall3.json:Multicall3).creationCode}}"
12+
output: true
13+
14+
- name: "verify-multicall3"
15+
type: "verify-contract"
16+
depends_on: ["multicall3"]
17+
arguments:
18+
address: "{{multicall3.address}}"
19+
contract: "{{Contract(./build-info/multicall3.json:Multicall3)}}"
20+
output: false

jobs/trails/build-info/rc-3/all-contracts.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

jobs/trails/rc-1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "trails-rc-1"
22
version: "rc-1"
33
description: "Deploy Trails contracts (rc 1)"
4+
depends_on: ["multicall3"]
45
skip_networks: [19011, 40875]
56

67
actions:

jobs/trails/rc-2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "trails-rc-2"
22
version: "rc-2"
33
description: "Deploy Trails contracts (rc 2)"
4+
depends_on: ["multicall3"]
45
skip_networks: [19011, 40875]
56

67
actions:

jobs/trails/rc-3.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "trails-rc-3"
2+
version: "rc-3"
3+
description: "Deploy Trails contracts (rc 3)"
4+
depends_on: ["multicall3"]
5+
skip_networks: [19011, 40875]
6+
7+
actions:
8+
- name: "trails-router"
9+
template: "erc-2470"
10+
arguments:
11+
salt: "{{salt-zero}}"
12+
creationCode:
13+
type: "constructor-encode"
14+
arguments:
15+
creationCode: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsRouter).creationCode}}"
16+
types: ["address"]
17+
values: ["{{multicall3.multicall3.address}}"]
18+
output: true
19+
20+
- name: "verify-trails-router"
21+
type: "verify-contract"
22+
depends_on: ["trails-router"]
23+
arguments:
24+
address: "{{trails-router.address}}"
25+
contract: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsRouter)}}"
26+
constructorArguments:
27+
type: "constructor-encode"
28+
arguments:
29+
types: ["address"]
30+
values: ["{{multicall3.multicall3.address}}"]
31+
output: false
32+
33+
- name: "trails-router-shim"
34+
template: "erc-2470"
35+
arguments:
36+
salt: "{{salt-zero}}"
37+
creationCode:
38+
type: "constructor-encode"
39+
arguments:
40+
creationCode: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsRouterShim).creationCode}}"
41+
types: ["address"]
42+
values: ["{{trails-router.address}}"]
43+
output: true
44+
45+
- name: "verify-trails-router-shim"
46+
type: "verify-contract"
47+
depends_on: ["trails-router-shim"]
48+
arguments:
49+
address: "{{trails-router-shim.address}}"
50+
contract: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsRouterShim)}}"
51+
constructorArguments:
52+
type: "constructor-encode"
53+
arguments:
54+
types: ["address"]
55+
values: ["{{trails-router.address}}"]
56+
output: false
57+
58+
- name: "trails-intent-entrypoint"
59+
template: "erc-2470"
60+
arguments:
61+
salt: "{{salt-zero}}"
62+
creationCode: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsIntentEntrypoint).creationCode}}"
63+
output: true
64+
65+
- name: "verify-trails-intent-entrypoint"
66+
type: "verify-contract"
67+
depends_on: ["trails-intent-entrypoint"]
68+
arguments:
69+
address: "{{trails-intent-entrypoint.address}}"
70+
contract: "{{Contract(./build-info/rc-3/all-contracts.json:TrailsIntentEntrypoint)}}"
71+
output: false

0 commit comments

Comments
 (0)