-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from rabbitholegg/jim/support-eth-wrap-multisend
Feat(connext): Add support for multisend ETH bridge
- Loading branch information
Showing
8 changed files
with
419 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rabbitholegg/questdk-plugin-connext": minor | ||
--- | ||
|
||
Support wrapping ETH on Connext bridge |
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
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
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,35 @@ | ||
// https://docs.connext.network/developers/reference/contracts/calls#xcall | ||
export const XCALL_ABI_FRAGMENTS = [ | ||
{ | ||
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 overloaded function is not found in the Connext ABI json for some reason | ||
{ | ||
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' }, | ||
{ internalType: 'uint256', name: '_relayerFee', type: 'uint256' }, | ||
], | ||
name: 'xcall', | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
] |
Oops, something went wrong.