Skip to content

Instantly share code, notes, and snippets.

@rayeaster
Created August 7, 2022 16:21
Show Gist options
  • Save rayeaster/8969406cd77d1b47b6a22172dccdd331 to your computer and use it in GitHub Desktop.
Save rayeaster/8969406cd77d1b47b6a22172dccdd331 to your computer and use it in GitHub Desktop.
test-abis
[{
"type": "constructor",
"stateMutability": "nonpayable",
"inputs": [{
"type": "address",
"name": "_token",
"internalType": "address"
}]
}, {
"type": "event",
"name": "Approval",
"inputs": [{
"type": "address",
"name": "owner",
"internalType": "address",
"indexed": true
}, {
"type": "address",
"name": "spender",
"internalType": "address",
"indexed": true
}, {
"type": "uint256",
"name": "value",
"internalType": "uint256",
"indexed": false
}],
"anonymous": false
}, {
"type": "event",
"name": "Transfer",
"inputs": [{
"type": "address",
"name": "from",
"internalType": "address",
"indexed": true
}, {
"type": "address",
"name": "to",
"internalType": "address",
"indexed": true
}, {
"type": "uint256",
"name": "value",
"internalType": "uint256",
"indexed": false
}],
"anonymous": false
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "allowance",
"inputs": [{
"type": "address",
"name": "owner",
"internalType": "address"
}, {
"type": "address",
"name": "spender",
"internalType": "address"
}]
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{
"type": "bool",
"name": "",
"internalType": "bool"
}],
"name": "approve",
"inputs": [{
"type": "address",
"name": "spender",
"internalType": "address"
}, {
"type": "uint256",
"name": "amount",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "balance",
"inputs": []
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "balanceOf",
"inputs": [{
"type": "address",
"name": "account",
"internalType": "address"
}]
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint8",
"name": "",
"internalType": "uint8"
}],
"name": "decimals",
"inputs": []
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{
"type": "bool",
"name": "",
"internalType": "bool"
}],
"name": "decreaseAllowance",
"inputs": [{
"type": "address",
"name": "spender",
"internalType": "address"
}, {
"type": "uint256",
"name": "subtractedValue",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "deposit",
"inputs": [{
"type": "uint256",
"name": "_amount",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "getPricePerFullShare",
"inputs": []
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{
"type": "bool",
"name": "",
"internalType": "bool"
}],
"name": "increaseAllowance",
"inputs": [{
"type": "address",
"name": "spender",
"internalType": "address"
}, {
"type": "uint256",
"name": "addedValue",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "string",
"name": "",
"internalType": "string"
}],
"name": "name",
"inputs": []
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "pricePerShare",
"inputs": []
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "string",
"name": "",
"internalType": "string"
}],
"name": "symbol",
"inputs": []
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "address",
"name": "",
"internalType": "contract IERC20"
}],
"name": "token",
"inputs": []
}, {
"type": "function",
"stateMutability": "view",
"outputs": [{
"type": "uint256",
"name": "",
"internalType": "uint256"
}],
"name": "totalSupply",
"inputs": []
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{
"type": "bool",
"name": "",
"internalType": "bool"
}],
"name": "transfer",
"inputs": [{
"type": "address",
"name": "recipient",
"internalType": "address"
}, {
"type": "uint256",
"name": "amount",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{
"type": "bool",
"name": "",
"internalType": "bool"
}],
"name": "transferFrom",
"inputs": [{
"type": "address",
"name": "sender",
"internalType": "address"
}, {
"type": "address",
"name": "recipient",
"internalType": "address"
}, {
"type": "uint256",
"name": "amount",
"internalType": "uint256"
}]
}, {
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "withdraw",
"inputs": [{
"type": "uint256",
"name": "_shares",
"internalType": "uint256"
}]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment