Added ERC-20 ABI & fixed indentation on other ABIs
This commit is contained in:
135
tests/ragger/abis/erc20.json
Normal file
135
tests/ragger/abis/erc20.json
Normal file
@@ -0,0 +1,135 @@
|
||||
[
|
||||
{
|
||||
"inputs" : [
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_owner",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_spender",
|
||||
"type" : "address"
|
||||
}
|
||||
],
|
||||
"name" : "allowance",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "remaining",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "view",
|
||||
"type" : "function"
|
||||
},
|
||||
{
|
||||
"inputs" : [
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_spender",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "_value",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"name" : "approve",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "bool",
|
||||
"name" : "success",
|
||||
"type" : "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "nonpayable",
|
||||
"type" : "function"
|
||||
},
|
||||
{
|
||||
"inputs" : [
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_owner",
|
||||
"type" : "address"
|
||||
}
|
||||
],
|
||||
"name" : "balanceOf",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "balance",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "view",
|
||||
"type" : "function"
|
||||
},
|
||||
{
|
||||
"inputs" : [],
|
||||
"name" : "totalSupply",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "view",
|
||||
"type" : "function"
|
||||
},
|
||||
{
|
||||
"inputs" : [
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_to",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "_value",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"name" : "transfer",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "bool",
|
||||
"name" : "success",
|
||||
"type" : "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "nonpayable",
|
||||
"type" : "function"
|
||||
},
|
||||
{
|
||||
"inputs" : [
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_from",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"internalType" : "address",
|
||||
"name" : "_to",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"internalType" : "uint256",
|
||||
"name" : "_value",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"name" : "transferFrom",
|
||||
"outputs" : [
|
||||
{
|
||||
"internalType" : "bool",
|
||||
"name" : "success",
|
||||
"type" : "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability" : "nonpayable",
|
||||
"type" : "function"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user