-
Notifications
You must be signed in to change notification settings - Fork 388
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 #29 from tallycash/earn-contract-interaction
Earn contract interaction
- Loading branch information
Showing
17 changed files
with
1,808 additions
and
275 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
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,162 @@ | ||
const APPROVAL_TARGET_ABI = [ | ||
{ | ||
inputs: [], | ||
stateMutability: "nonpayable", | ||
type: "constructor", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "DOMAIN_SEPARATOR", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "PERMIT_AND_TRANSFER_FROM_TYPEHASH", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "cachedChainId", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "cachedDomainSeparator", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
name: "nonces", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "erc20", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "owner", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "recipient", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "amount", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "deadline", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint8", | ||
name: "v", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "r", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "s", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "permitAndTransferFrom", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "typeHashDigest", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "uint8", | ||
name: "v", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "r", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "s", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "recoverFromTypeHashSignature", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
] | ||
|
||
export default APPROVAL_TARGET_ABI |
Oops, something went wrong.