Expand description
§What to re-export, what to hide?
- export contract struct itself, but try to avoid export instance type (instead, use ::new() to get a handle)
- avoid exporting
xxCall
andxxReturn
types, they usually can be converted/transmuted from existing struct - Event types should be exported
- structs should be exported and renamed with
xxSol
suffix to avoid confusion with other rust types- see module doc for more explanation on types duplication issue in alloy
Generated by the following Solidity interface…
interface RewardClaimPrototypeMock {
function verifyRewardClaim(bytes32 root, address account, uint256 amount, bytes32[160] memory proof) external pure returns (bool);
function verifyRewardClaimAuthData(bytes32 root, address account, uint256 amount, bytes memory authData) external view returns (bool);
}
…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "verifyRewardClaim",
"inputs": [
{
"name": "root",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "proof",
"type": "bytes32[160]",
"internalType": "bytes32[160]"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "verifyRewardClaimAuthData",
"inputs": [
{
"name": "root",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "authData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
}
]
Structs§
- Reward
Claim Prototype Mock Instance - A
RewardClaimPrototypeMock
instance. - verify
Reward Claim Auth Data Call - Function with signature
verifyRewardClaimAuthData(bytes32,address,uint256,bytes)
and selector0xeb2dbe08
. - verify
Reward Claim Auth Data Return - Container type for the return parameters of the
verifyRewardClaimAuthData(bytes32,address,uint256,bytes)
function. - verify
Reward Claim Call - Function with signature
verifyRewardClaim(bytes32,address,uint256,bytes32[160])
and selector0x24bb9778
. - verify
Reward Claim Return - Container type for the return parameters of the
verifyRewardClaim(bytes32,address,uint256,bytes32[160])
function.
Enums§
- Reward
Claim Prototype Mock Calls - Container for all the
RewardClaimPrototypeMock
function calls.
Statics§
- BYTECODE
- The creation / init bytecode of the contract.
- DEPLOYED_
BYTECODE - The runtime bytecode of the contract, as deployed on the network.
Functions§
- deploy
- Deploys this contract using the given
provider
and constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilder
for deploying this contract using the givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
RewardClaimPrototypeMock
contract instance.