-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
129 additions
and
302 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 |
---|---|---|
@@ -1,222 +1,12 @@ | ||
export const abiErc20 = [ | ||
{ | ||
type: "event", | ||
name: "Approval", | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
name: "owner", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
name: "spender", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
name: "value", | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "event", | ||
name: "Transfer", | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
name: "from", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
name: "to", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
name: "value", | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "owner", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "operator", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bool", | ||
name: "approved", | ||
type: "bool", | ||
}, | ||
], | ||
name: "ApprovalForAll", | ||
type: "event", | ||
}, | ||
{ | ||
type: "function", | ||
name: "allowance", | ||
stateMutability: "view", | ||
inputs: [ | ||
{ | ||
name: "owner", | ||
type: "address", | ||
}, | ||
{ | ||
name: "spender", | ||
type: "address", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "approve", | ||
stateMutability: "nonpayable", | ||
inputs: [ | ||
{ | ||
name: "spender", | ||
type: "address", | ||
}, | ||
{ | ||
name: "amount", | ||
type: "uint256", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "bool", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "balanceOf", | ||
stateMutability: "view", | ||
inputs: [ | ||
{ | ||
name: "account", | ||
type: "address", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "decimals", | ||
stateMutability: "view", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "uint8", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "name", | ||
stateMutability: "view", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "string", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "symbol", | ||
stateMutability: "view", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "string", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "totalSupply", | ||
stateMutability: "view", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "transfer", | ||
stateMutability: "nonpayable", | ||
inputs: [ | ||
{ | ||
name: "recipient", | ||
type: "address", | ||
}, | ||
{ | ||
name: "amount", | ||
type: "uint256", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "bool", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "transferFrom", | ||
stateMutability: "nonpayable", | ||
inputs: [ | ||
{ | ||
name: "sender", | ||
type: "address", | ||
}, | ||
{ | ||
name: "recipient", | ||
type: "address", | ||
}, | ||
{ | ||
name: "amount", | ||
type: "uint256", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "bool", | ||
}, | ||
], | ||
}, | ||
"function balanceOf(address owner) view returns (uint256)", | ||
"function decimals() view returns (uint8)", | ||
"function symbol() view returns (string)", | ||
"function name() view returns (string)", | ||
|
||
"function totalSupply() view returns (uint256)", | ||
"function transfer(address to, uint256 amount) returns (bool)", | ||
"function allowance(address owner, address spender) view returns (uint256)", | ||
"function approve(address spender, uint256 amount) returns (bool)", | ||
"function transferFrom(address from, address to, uint256 amount) returns (bool)", | ||
] as const |
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
Oops, something went wrong.