-
Notifications
You must be signed in to change notification settings - Fork 4
Timed refund extension prod deploy #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+332
−87
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,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}}"] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,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" | ||
|
|
||
| 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 | ||
This file contains hidden or 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,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 |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.