-
Notifications
You must be signed in to change notification settings - Fork 29
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 #152 from Richa-iitr/aave-v3-import-permit
Aave-v3 import permit connector
- Loading branch information
Showing
6 changed files
with
55 additions
and
6 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,45 @@ | ||
import { AbiItem } from 'web3-utils' | ||
|
||
export const AAVE_V3_IMPORT_PERMIT_A: AbiItem[] = [ | ||
{ | ||
inputs: [ | ||
{ internalType: 'address', name: 'userAccount', type: 'address' }, | ||
{ | ||
components: [ | ||
{ internalType: 'address[]', name: 'supplyTokens', type: 'address[]' }, | ||
{ internalType: 'address[]', name: 'borrowTokens', type: 'address[]' }, | ||
{ internalType: 'bool', name: 'convertStable', type: 'bool' }, | ||
{ internalType: 'uint256[]', name: 'flashLoanFees', type: 'uint256[]' }, | ||
], | ||
internalType: 'struct Helper.ImportInputData', | ||
name: 'inputData', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'uint8[]', name: 'v', type: 'uint8[]' }, | ||
{ internalType: 'bytes32[]', name: 'r', type: 'bytes32[]' }, | ||
{ internalType: 'bytes32[]', name: 's', type: 'bytes32[]' }, | ||
{ internalType: 'uint256[]', name: 'expiry', type: 'uint256[]' }, | ||
], | ||
internalType: 'struct Helper.SignedPermits', | ||
name: 'permitData', | ||
type: 'tuple', | ||
}, | ||
], | ||
name: 'importAave', | ||
outputs: [ | ||
{ internalType: 'string', name: '_eventName', type: 'string' }, | ||
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }, | ||
], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [], | ||
name: 'name', | ||
outputs: [{ internalType: 'string', name: '', type: 'string' }], | ||
stateMutability: 'view', | ||
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
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