Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 87 additions & 85 deletions README.md

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions jobs/sequence_v3/templates/deploy-wallet-v3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "deploy-wallet-v3"
version: "1"
type: "template"

arguments:
mainModule:
type: "address"
salt:
type: "bytes32"

returns:
address:
type: "address"

setup:
- type: "job-completed"
arguments:
job: "sequence_v3/rc_5"

actions:
- name: "deploy"
type: "send-transaction"
arguments:
to: "{{sequence_v3/rc_5.factory.address}}"
value: "0"
data:
type: "abi-encode"
arguments:
signature: "deploy(address,bytes32)"
values:
- "{{mainModule}}"
- "{{salt}}"

skip_condition:
- type: "contract-exists"
arguments:
address:
type: "compute-create2"
arguments:
deployerAddress: "{{sequence_v3/rc_5.factory.address}}"
salt: "{{salt}}"
initCode:
type: "constructor-encode"
arguments:
creationCode: "0x6041600e3d396021805130553df33d3d36153402601f57363d3d373d363d30545af43d82803e903d91601f57fd5bf3"
types: ["address"]
values: ["{{mainModule}}"]

outputs:
address:
type: "compute-create2"
arguments:
deployerAddress: "{{sequence_v3/rc_5.factory.address}}"
salt: "{{salt}}"
initCode:
type: "constructor-encode"
arguments:
creationCode: "0x6041600e3d396021805130553df33d3d36153402601f57363d3d373d363d30545af43d82803e903d91601f57fd5bf3"
types: ["address"]
values: ["{{mainModule}}"]
1 change: 1 addition & 0 deletions jobs/trails/build-info/timed-refund-2/timed-refund.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions jobs/trails/rc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "rc-1"
description: "Deploy Trails contracts (rc 1)"
depends_on: ["era-evm-predeploy-erc2470"]
skip_networks: [19011, 40875]
min_evm_version: "prague"
deprecated: true

actions:
Expand Down
1 change: 1 addition & 0 deletions jobs/trails/rc-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "rc-2"
description: "Deploy Trails contracts (rc 2)"
depends_on: ["era-evm-predeploy-erc2470"]
skip_networks: [19011, 40875]
min_evm_version: "prague"
deprecated: true

actions:
Expand Down
1 change: 1 addition & 0 deletions jobs/trails/rc-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "rc-3"
description: "Deploy Trails contracts (rc 3)"
depends_on: ["era-evm-predeploy-erc2470", "multicall3"]
skip_networks: [19011, 40875]
min_evm_version: "prague"

actions:
- name: "trails-router"
Expand Down
1 change: 1 addition & 0 deletions jobs/trails/rc-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "rc-4.2"
description: "Deploy Trails contracts (rc 4)"
depends_on: ["era-evm-predeploy-erc2470", "multicall3"]
skip_networks: [19011, 40875]
min_evm_version: "prague"

actions:
- name: "trails-router"
Expand Down
1 change: 1 addition & 0 deletions jobs/trails/rc-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "rc-5"
description: "Deploy Trails contracts (rc 5)"
depends_on: ["era-evm-predeploy-erc2470", "multicall3"]
skip_networks: [19011, 40875]
min_evm_version: "prague"

actions:
- name: "trails-router"
Expand Down
3 changes: 2 additions & 1 deletion jobs/trails/timed-refund-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ constants:
- "0xA73793B25699B21986af43B0b6A1D4F4bebf54b2"
- "0xE0b2E56fc8720382502faDd248Bc38F94B3ba188"

min_evm_version: "shanghai"
min_evm_version: "prague"
deprecated: true

actions:
- name: "trails-timed-refund-allowlist"
Expand Down
88 changes: 88 additions & 0 deletions jobs/trails/timed-refund-dev-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: "trails-timed-refund-dev-1"
version: "1"
description: "Deploy timed refund auto-recovery contracts (dev) (0xsequence/trails-contracts commit 3611e8a313793d148eb2b2dbfe4727130c48aa23)"
depends_on: ["era-evm-predeploy-erc2470", "sequence_v3/rc_5"]

constants:
timed-refund-dev-allowlist:
# watchtower EOA
- "0x07F9D6566336C42E70cE6B6faa6cDf78b1f101a7"
# watchtower Sequence v3 RC-5 1/1 wallet: threshold 1, checkpoint 0, checkpointer address(0), signer above with weight 1
- "0xD81cdeBAe019724fa10C2B7e5d204DB95ae08652"
# API EOA
- "0x54fAE124fE06D157ad9cc898b0D10A027C70d25c"
# API Sequence v3 RC-5 1/1 wallet: threshold 1, checkpoint 0, checkpointer address(0), signer above with weight 1
- "0xf16BA650fbBcb6ACCB2b475BFE3B143255017868"
Comment thread
Agusx1211 marked this conversation as resolved.

min_evm_version: "prague"

actions:
- name: "trails-timed-refund-dev-allowlist"
template: "erc-2470"
arguments:
salt: "{{salt-zero}}"
creationCode:
type: "constructor-encode"
arguments:
creationCode: "{{Contract(./build-info/timed-refund-2/timed-refund.json:Allowlist).creationCode}}"
types: ["address", "address[]"]
values: ["{{developer-multisig-01}}", "{{timed-refund-dev-allowlist}}"]
output: true

- name: "verify-trails-timed-refund-dev-allowlist"
type: "verify-contract"
depends_on: ["trails-timed-refund-dev-allowlist"]
arguments:
address: "{{trails-timed-refund-dev-allowlist.address}}"
contract: "{{Contract(./build-info/timed-refund-2/timed-refund.json:Allowlist)}}"
constructorArguments:
type: "constructor-encode"
arguments:
types: ["address", "address[]"]
values: ["{{developer-multisig-01}}", "{{timed-refund-dev-allowlist}}"]
output: false

- name: "trails-timed-refund-dev-sapient"
template: "erc-2470"
depends_on: ["trails-timed-refund-dev-allowlist"]
arguments:
salt: "{{salt-zero}}"
creationCode:
type: "constructor-encode"
arguments:
creationCode: "{{Contract(./build-info/timed-refund-2/timed-refund.json:TimedRefundSapient).creationCode}}"
types: ["address"]
values: ["{{trails-timed-refund-dev-allowlist.address}}"]
output: true

- name: "verify-trails-timed-refund-dev-sapient"
type: "verify-contract"
depends_on: ["trails-timed-refund-dev-sapient"]
arguments:
address: "{{trails-timed-refund-dev-sapient.address}}"
contract: "{{Contract(./build-info/timed-refund-2/timed-refund.json:TimedRefundSapient)}}"
constructorArguments:
type: "constructor-encode"
arguments:
types: ["address"]
values: ["{{trails-timed-refund-dev-allowlist.address}}"]
output: false

# Deploys the Sequence v3 wallets used in the allowlist.
# Salt is the imageHash of the wallet's initial configuration.

- name: "trails-timed-refund-dev-watchtower-wallet"
template: "deploy-wallet-v3"
arguments:
mainModule: "{{sequence_v3/rc_5.stage-1-module.address}}"
# threshold 1, checkpoint 0, checkpointer address(0), signer 0x07F9D6566336C42E70cE6B6faa6cDf78b1f101a7 with weight 1
salt: "0x7c400dc22a44bb9f0b97fd859271f40ee7593963ff41ec1332cf491088df9541"
output: false

- name: "trails-timed-refund-dev-api-wallet"
template: "deploy-wallet-v3"
arguments:
mainModule: "{{sequence_v3/rc_5.stage-1-module.address}}"
# threshold 1, checkpoint 0, checkpointer address(0), signer 0x54fAE124fE06D157ad9cc898b0D10A027C70d25c with weight 1
salt: "0x678c0ca0528005c2b2ff487e8d09df4ec6bfff54e08a03a55876af4e512dae9f"
output: false
88 changes: 88 additions & 0 deletions jobs/trails/timed-refund-prod-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: "trails-timed-refund-prod-1"
version: "1"
description: "Deploy timed refund auto-recovery contracts (prod) (0xsequence/trails-contracts commit 3611e8a313793d148eb2b2dbfe4727130c48aa23)"
depends_on: ["era-evm-predeploy-erc2470", "sequence_v3/rc_5"]

constants:
timed-refund-prod-allowlist:
# watchtower EOA
- "0x86A697908fFB0F34795E4cD6f7C3E78a59b6226d"
# watchtower Sequence v3 RC-5 1/1 wallet: threshold 1, checkpoint 0, checkpointer address(0), signer above with weight 1
- "0x64D8a1f6DCe5a702c715FaB25BafD69E262F642d"
# API EOA
- "0x61fDd6eEA8C837303d84899AD0852CcCaAE35964"
# API Sequence v3 RC-5 1/1 wallet: threshold 1, checkpoint 0, checkpointer address(0), signer above with weight 1
- "0x5c79c1416a6DE9F0649b2AeBcf2311ecFdD8eca2"

min_evm_version: "prague"

actions:
- name: "trails-timed-refund-prod-allowlist"
template: "erc-2470"
arguments:
salt: "{{salt-zero}}"
creationCode:
type: "constructor-encode"
arguments:
creationCode: "{{Contract(./build-info/timed-refund-2/timed-refund.json:Allowlist).creationCode}}"
types: ["address", "address[]"]
values: ["{{developer-multisig-01}}", "{{timed-refund-prod-allowlist}}"]
output: true

- name: "verify-trails-timed-refund-prod-allowlist"
type: "verify-contract"
depends_on: ["trails-timed-refund-prod-allowlist"]
arguments:
address: "{{trails-timed-refund-prod-allowlist.address}}"
contract: "{{Contract(./build-info/timed-refund-2/timed-refund.json:Allowlist)}}"
constructorArguments:
type: "constructor-encode"
arguments:
types: ["address", "address[]"]
values: ["{{developer-multisig-01}}", "{{timed-refund-prod-allowlist}}"]
output: false

- name: "trails-timed-refund-prod-sapient"
template: "erc-2470"
depends_on: ["trails-timed-refund-prod-allowlist"]
arguments:
salt: "{{salt-zero}}"
creationCode:
type: "constructor-encode"
arguments:
creationCode: "{{Contract(./build-info/timed-refund-2/timed-refund.json:TimedRefundSapient).creationCode}}"
types: ["address"]
values: ["{{trails-timed-refund-prod-allowlist.address}}"]
output: true

- name: "verify-trails-timed-refund-prod-sapient"
type: "verify-contract"
depends_on: ["trails-timed-refund-prod-sapient"]
arguments:
address: "{{trails-timed-refund-prod-sapient.address}}"
contract: "{{Contract(./build-info/timed-refund-2/timed-refund.json:TimedRefundSapient)}}"
constructorArguments:
type: "constructor-encode"
arguments:
types: ["address"]
values: ["{{trails-timed-refund-prod-allowlist.address}}"]
output: false

# Deploys the Sequence v3 wallets used in the allowlist.
# Salt is the imageHash of the wallet's initial configuration.

- name: "trails-timed-refund-prod-watchtower-wallet"
template: "deploy-wallet-v3"
arguments:
mainModule: "{{sequence_v3/rc_5.stage-1-module.address}}"
# threshold 1, checkpoint 0, checkpointer address(0), signer 0x86A697908fFB0F34795E4cD6f7C3E78a59b6226d with weight 1
salt: "0xa1a2a6d47685f320f9eec88d6e81e783e96ccdb7f59772bb6830905e252697fe"
output: false

- name: "trails-timed-refund-prod-api-wallet"
template: "deploy-wallet-v3"
arguments:
mainModule: "{{sequence_v3/rc_5.stage-1-module.address}}"
# threshold 1, checkpoint 0, checkpointer address(0), signer 0x61fDd6eEA8C837303d84899AD0852CcCaAE35964 with weight 1
salt: "0xbf04de474ab5863ce898c67bb2352420e2bf17cec6d42088c088e3f4a58a628b"
output: false
2 changes: 1 addition & 1 deletion jobs/trails/utils-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Deploy TrailsUtils contract (v1)"
depends_on: ["era-evm-predeploy-erc2470"]

skip_networks: [40, 41]
min_evm_version: "shanghai"
min_evm_version: "prague"

actions:
- name: "trails-utils"
Expand Down
Loading