-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(governance): Improve scripts to inspect and execute bridge txs (#…
…13419) * add README * add script doc * remove extra logs from proposal * make sure calls are executed in correct order * move helpers file to `./helpers` * small task to log explainers * support multicall in safe * WIP: parse multicall * refactor bridge helpers * parse calls correctly * cleanup gov workflow * update safe tx signing * Update governance/helpers/bridge/xCall.js Co-authored-by: Julien Genestoux <julien.genestoux@gmail.com> --------- Co-authored-by: Julien Genestoux <julien.genestoux@gmail.com>
- Loading branch information
Showing
19 changed files
with
645 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: 'uint32', | ||
name: '_destination', | ||
type: 'uint32', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: '_to', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: '_asset', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: '_delegate', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: '_amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: '_slippage', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: '_callData', | ||
type: 'bytes', | ||
}, | ||
], | ||
name: 'xcall', | ||
outputs: [ | ||
{ | ||
internalType: 'bytes32', | ||
name: '', | ||
type: 'bytes32', | ||
}, | ||
], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
] |
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,124 @@ | ||
module.exports = [ | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: 'bytes32', | ||
name: 'transferId', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: 'uint256', | ||
name: 'nonce', | ||
type: 'uint256', | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: 'bytes32', | ||
name: 'messageHash', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'uint32', | ||
name: 'originDomain', | ||
type: 'uint32', | ||
}, | ||
{ | ||
internalType: 'uint32', | ||
name: 'destinationDomain', | ||
type: 'uint32', | ||
}, | ||
{ | ||
internalType: 'uint32', | ||
name: 'canonicalDomain', | ||
type: 'uint32', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'delegate', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'bool', | ||
name: 'receiveLocal', | ||
type: 'bool', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'callData', | ||
type: 'bytes', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'slippage', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'originSender', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'bridgedAmt', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'normalizedIn', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'nonce', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'canonicalId', | ||
type: 'bytes32', | ||
}, | ||
], | ||
indexed: false, | ||
internalType: 'struct TransferInfo', | ||
name: 'params', | ||
type: 'tuple', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'address', | ||
name: 'asset', | ||
type: 'address', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'uint256', | ||
name: 'amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'address', | ||
name: 'local', | ||
type: 'address', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'bytes', | ||
name: 'messageBody', | ||
type: 'bytes', | ||
}, | ||
], | ||
name: 'XCalled', | ||
type: 'event', | ||
}, | ||
] |
Oops, something went wrong.