Added ERC-20 ABI & fixed indentation on other ABIs

This commit is contained in:
Alexandre Paillier
2024-03-08 18:00:28 +01:00
parent 5715827add
commit 6414890b2f
3 changed files with 675 additions and 540 deletions

View 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"
}
]