web3py_test_contract_abi.json•9.49 kB
[
{
"inputs": [
{
"internalType": "address",
"name": "_addr",
"type": "address"
}
],
"name": "testAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_addresses",
"type": "address[]"
}
],
"name": "testAddressArray",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "title",
"type": "string"
},
{
"internalType": "uint256[]",
"name": "numbers",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "addresses",
"type": "address[]"
}
],
"internalType": "struct Web3PyTestContract.ArrayStruct",
"name": "_arrayStruct",
"type": "tuple"
}
],
"name": "testArrayStruct",
"outputs": [
{
"components": [
{
"internalType": "string",
"name": "title",
"type": "string"
},
{
"internalType": "uint256[]",
"name": "numbers",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "addresses",
"type": "address[]"
}
],
"internalType": "struct Web3PyTestContract.ArrayStruct",
"name": "",
"type": "tuple"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_flag",
"type": "bool"
}
],
"name": "testBool",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "testBytes",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_hash",
"type": "bytes32"
}
],
"name": "testBytes32",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "_data",
"type": "bytes[]"
}
],
"name": "testBytesArray",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "enum Web3PyTestContract.Status",
"name": "_status",
"type": "uint8"
}
],
"name": "testEnum",
"outputs": [
{
"internalType": "enum Web3PyTestContract.Status",
"name": "",
"type": "uint8"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[3]",
"name": "_values",
"type": "uint256[3]"
}
],
"name": "testFixedArray",
"outputs": [
{
"internalType": "uint256[3]",
"name": "",
"type": "uint256[3]"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "int256",
"name": "_value",
"type": "int256"
}
],
"name": "testInt",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "int256",
"name": "_intValue",
"type": "int256"
},
{
"internalType": "uint256",
"name": "_uintValue",
"type": "uint256"
},
{
"internalType": "address",
"name": "_addr",
"type": "address"
},
{
"internalType": "bool",
"name": "_flag",
"type": "bool"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "_struct",
"type": "tuple"
}
],
"name": "testMultipleParams",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "",
"type": "tuple"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "inner",
"type": "tuple"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"internalType": "struct Web3PyTestContract.NestedStruct",
"name": "_nested",
"type": "tuple"
}
],
"name": "testNestedStruct",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "inner",
"type": "tuple"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"internalType": "struct Web3PyTestContract.NestedStruct",
"name": "",
"type": "tuple"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "_struct",
"type": "tuple"
}
],
"name": "testSimpleStruct",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct",
"name": "",
"type": "tuple"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_text",
"type": "string"
}
],
"name": "testString",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bool",
"name": "active",
"type": "bool"
}
],
"internalType": "struct Web3PyTestContract.SimpleStruct[]",
"name": "_structs",
"type": "tuple[]"
}
],
"name": "testStructArray",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}
],
"name": "testUint",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "_values",
"type": "uint256[]"
}
],
"name": "testUintArray",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "pure",
"type": "function"
}
]