diff --git a/src/constants/abi/bridgeContractAbi.json b/src/constants/abi/bridgeContractAbi.json index e1a3a6c..3d7ba04 100644 --- a/src/constants/abi/bridgeContractAbi.json +++ b/src/constants/abi/bridgeContractAbi.json @@ -1,13614 +1,301 @@ -{ - "contractName": "DoraBridge", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "_token", - "type": "address" - }, - { - "internalType": "address", - "name": "_admin", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "count", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "processed", - "type": "uint256" - } - ], - "name": "Process", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "idx", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "eoa", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vota", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Submit", - "type": "event" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "amountThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "processedRecords", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [ - { - "internalType": "contract ERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalRecords", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_admin", - "type": "address" - } - ], - "name": "changeAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_idx", - "type": "uint256" - } - ], - "name": "record", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "vota", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - } - ], - "internalType": "struct DoraBridge.Record", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "recordOf", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "vota", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - } - ], - "internalType": "struct DoraBridge.Record[]", - "name": "results", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_count", - "type": "uint256" - } - ], - "name": "getUnprocessedRecords", - "outputs": [ - { - "internalType": "uint256", - "name": "size", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "vota", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - } - ], - "internalType": "struct DoraBridge.Record[]", - "name": "records", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_votaAddr", - "type": "address" - } - ], - "name": "submit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_txHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_count", - "type": "uint256" - } - ], - "name": "process", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "metadata": "{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract ERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"processed\",\"type\":\"uint256\"}],\"name\":\"Process\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"idx\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"eoa\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"vota\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Submit\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"amountThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"}],\"name\":\"changeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"getUnprocessedRecords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vota\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"internalType\":\"struct DoraBridge.Record[]\",\"name\":\"records\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_txHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"process\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"processedRecords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_idx\",\"type\":\"uint256\"}],\"name\":\"record\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vota\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"internalType\":\"struct DoraBridge.Record\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"recordOf\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vota\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"internalType\":\"struct DoraBridge.Record[]\",\"name\":\"results\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_votaAddr\",\"type\":\"address\"}],\"name\":\"submit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"contract ERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalRecords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/DoraBridge.sol\":\"DoraBridge\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/DoraBridge.sol\":{\"keccak256\":\"0x8f1f0eefd1161d1e8dc622de4f81290b8f4c4f432f937960b4145fc441fd3873\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a93f0df64e4f8f7355432d5d4020e72d7ad76afb71f8a7cfd0dad953d6ba1b68\",\"dweb:/ipfs/QmRkJTgypQmWePJRZoNmsd5JKL4QqB3exxK4uztdNs6xXm\"]}},\"version\":1}", - "bytecode": "0x60a06040523480156200001157600080fd5b506040516200144338038062001443833981810160405281019062000037919062000162565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620001a9565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000e582620000b8565b9050919050565b6000620000f982620000d8565b9050919050565b6200010b81620000ec565b81146200011757600080fd5b50565b6000815190506200012b8162000100565b92915050565b6200013c81620000d8565b81146200014857600080fd5b50565b6000815190506200015c8162000131565b92915050565b600080604083850312156200017c576200017b620000b3565b5b60006200018c858286016200011a565b92505060206200019f858286016200014b565b9150509250929050565b608051611277620001cc600039600081816106cd0152610a9401526112776000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063acfd6ce611610071578063acfd6ce614610154578063c06ac6a314610170578063f532e86a146101a0578063f851a440146101bc578063fad3fe18146101da578063fc0c546a1461020b576100a9565b8063125f8974146100ae5780632c16cd8a146100cc5780638f283970146100fc5780638f82921e14610118578063a9da95bb14610136575b600080fd5b6100b6610229565b6040516100c39190610b09565b60405180910390f35b6100e660048036038101906100e19190610b55565b61022f565b6040516100f39190610c2d565b60405180910390f35b61011660048036038101906101119190610c74565b610325565b005b6101206103c0565b60405161012d9190610b09565b60405180910390f35b61013e6103cc565b60405161014b9190610b09565b60405180910390f35b61016e60048036038101906101699190610ccd565b6103d2565b005b61018a60048036038101906101859190610c74565b610572565b6040516101979190610dfe565b60405180910390f35b6101ba60048036038101906101b59190610e20565b610680565b005b6101c4610900565b6040516101d19190610e6f565b60405180910390f35b6101f460048036038101906101ef9190610b55565b610924565b604051610202929190610e8a565b60405180910390f35b610213610a92565b6040516102209190610f19565b60405180910390f35b60045481565b610237610ab6565b60008060001b905060006003600085815260200190815260200160002054905060008111801561026c57506006805490508111155b1561029f5760066001826102809190610f63565b8154811061029157610290610f97565b5b906000526020600020015491505b60006040518060600160405280600160008881526020019081526020016000205481526020016002600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152509050809350505050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461037d57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b67016345785d8a000081565b60055481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461042a57600080fd5b6000811161043757600080fd5b600454816005546104489190610fc6565b111561045357600080fd5b6007600083815260200190815260200160002060009054906101000a900460ff161561047e57600080fd5b60016007600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600682908060018154018082558091505060019003906000526020600020016000909190919091505560006006805490509050600060055490506000836005546104f49190610fc6565b90505b8082101561052a5782600360008481526020019081526020016000208190555081806105229061101c565b9250506104f7565b80600581905550847f0547d400853be46b1b80e2570476c027cc6fb3285d0cafc86fffbe7ab59161fb8583604051610563929190611064565b60405180910390a25050505050565b60606000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000818054905090508067ffffffffffffffff8111156105da576105d961108d565b5b60405190808252806020026020018201604052801561061357816020015b610600610ab6565b8152602001906001900390816105f85790505b50925060005b818110156106785761064783828154811061063757610636610f97565b5b906000526020600020015461022f565b84828151811061065a57610659610f97565b5b602002602001018190525080806106709061101c565b915050610619565b505050919050565b67016345785d8a00008210156106cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c290611119565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd336001856040518463ffffffff1660e01b815260040161072993929190611139565b6020604051808303816000875af1158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c91906111a8565b6107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290611221565b60405180910390fd5b60006004549050826001600083815260200190815260200160002081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505560018161088f9190610fc6565b6004819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16827fc7b679e84d58a9a6d68a05757595dd545527b2c7e1fd2c11fc458fb7ea2337a5866040516108f39190610b09565b60405180910390a4505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060606005546004546109389190610f63565b915082821115610946578291505b8167ffffffffffffffff8111156109605761095f61108d565b5b60405190808252806020026020018201604052801561099957816020015b610986610ab6565b81526020019060019003908161097e5790505b5090506000600554905060005b83811015610a8b5760016000838152602001908152602001600020548382815181106109d5576109d4610f97565b5b602002602001015160000181815250506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110610a2c57610a2b610f97565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180610a759061101c565b9250508080610a839061101c565b9150506109a6565b5050915091565b7f000000000000000000000000000000000000000000000000000000000000000081565b604051806060016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600080191681525090565b6000819050919050565b610b0381610af0565b82525050565b6000602082019050610b1e6000830184610afa565b92915050565b600080fd5b610b3281610af0565b8114610b3d57600080fd5b50565b600081359050610b4f81610b29565b92915050565b600060208284031215610b6b57610b6a610b24565b5b6000610b7984828501610b40565b91505092915050565b610b8b81610af0565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610bbc82610b91565b9050919050565b610bcc81610bb1565b82525050565b6000819050919050565b610be581610bd2565b82525050565b606082016000820151610c016000850182610b82565b506020820151610c146020850182610bc3565b506040820151610c276040850182610bdc565b50505050565b6000606082019050610c426000830184610beb565b92915050565b610c5181610bb1565b8114610c5c57600080fd5b50565b600081359050610c6e81610c48565b92915050565b600060208284031215610c8a57610c89610b24565b5b6000610c9884828501610c5f565b91505092915050565b610caa81610bd2565b8114610cb557600080fd5b50565b600081359050610cc781610ca1565b92915050565b60008060408385031215610ce457610ce3610b24565b5b6000610cf285828601610cb8565b9250506020610d0385828601610b40565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b606082016000820151610d4f6000850182610b82565b506020820151610d626020850182610bc3565b506040820151610d756040850182610bdc565b50505050565b6000610d878383610d39565b60608301905092915050565b6000602082019050919050565b6000610dab82610d0d565b610db58185610d18565b9350610dc083610d29565b8060005b83811015610df1578151610dd88882610d7b565b9750610de383610d93565b925050600181019050610dc4565b5085935050505092915050565b60006020820190508181036000830152610e188184610da0565b905092915050565b60008060408385031215610e3757610e36610b24565b5b6000610e4585828601610b40565b9250506020610e5685828601610c5f565b9150509250929050565b610e6981610bb1565b82525050565b6000602082019050610e846000830184610e60565b92915050565b6000604082019050610e9f6000830185610afa565b8181036020830152610eb18184610da0565b90509392505050565b6000819050919050565b6000610edf610eda610ed584610b91565b610eba565b610b91565b9050919050565b6000610ef182610ec4565b9050919050565b6000610f0382610ee6565b9050919050565b610f1381610ef8565b82525050565b6000602082019050610f2e6000830184610f0a565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f6e82610af0565b9150610f7983610af0565b925082821015610f8c57610f8b610f34565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000610fd182610af0565b9150610fdc83610af0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561101157611010610f34565b5b828201905092915050565b600061102782610af0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361105957611058610f34565b5b600182019050919050565b60006040820190506110796000830185610afa565b6110866020830184610afa565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082825260208201905092915050565b7f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000600082015250565b6000611103600e836110bc565b915061110e826110cd565b602082019050919050565b60006020820190508181036000830152611132816110f6565b9050919050565b600060608201905061114e6000830186610e60565b61115b6020830185610e60565b6111686040830184610afa565b949350505050565b60008115159050919050565b61118581611170565b811461119057600080fd5b50565b6000815190506111a28161117c565b92915050565b6000602082840312156111be576111bd610b24565b5b60006111cc84828501611193565b91505092915050565b7f7472616e73666572206572726f72000000000000000000000000000000000000600082015250565b600061120b600e836110bc565b9150611216826111d5565b602082019050919050565b6000602082019050818103600083015261123a816111fe565b905091905056fea26469706673582212209e285d3ddc6b3d077d7c4cfcf10d5824c40395610bf2e141bfb4a19d4f88d22764736f6c634300080d0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063acfd6ce611610071578063acfd6ce614610154578063c06ac6a314610170578063f532e86a146101a0578063f851a440146101bc578063fad3fe18146101da578063fc0c546a1461020b576100a9565b8063125f8974146100ae5780632c16cd8a146100cc5780638f283970146100fc5780638f82921e14610118578063a9da95bb14610136575b600080fd5b6100b6610229565b6040516100c39190610b09565b60405180910390f35b6100e660048036038101906100e19190610b55565b61022f565b6040516100f39190610c2d565b60405180910390f35b61011660048036038101906101119190610c74565b610325565b005b6101206103c0565b60405161012d9190610b09565b60405180910390f35b61013e6103cc565b60405161014b9190610b09565b60405180910390f35b61016e60048036038101906101699190610ccd565b6103d2565b005b61018a60048036038101906101859190610c74565b610572565b6040516101979190610dfe565b60405180910390f35b6101ba60048036038101906101b59190610e20565b610680565b005b6101c4610900565b6040516101d19190610e6f565b60405180910390f35b6101f460048036038101906101ef9190610b55565b610924565b604051610202929190610e8a565b60405180910390f35b610213610a92565b6040516102209190610f19565b60405180910390f35b60045481565b610237610ab6565b60008060001b905060006003600085815260200190815260200160002054905060008111801561026c57506006805490508111155b1561029f5760066001826102809190610f63565b8154811061029157610290610f97565b5b906000526020600020015491505b60006040518060600160405280600160008881526020019081526020016000205481526020016002600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152509050809350505050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461037d57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b67016345785d8a000081565b60055481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461042a57600080fd5b6000811161043757600080fd5b600454816005546104489190610fc6565b111561045357600080fd5b6007600083815260200190815260200160002060009054906101000a900460ff161561047e57600080fd5b60016007600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600682908060018154018082558091505060019003906000526020600020016000909190919091505560006006805490509050600060055490506000836005546104f49190610fc6565b90505b8082101561052a5782600360008481526020019081526020016000208190555081806105229061101c565b9250506104f7565b80600581905550847f0547d400853be46b1b80e2570476c027cc6fb3285d0cafc86fffbe7ab59161fb8583604051610563929190611064565b60405180910390a25050505050565b60606000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000818054905090508067ffffffffffffffff8111156105da576105d961108d565b5b60405190808252806020026020018201604052801561061357816020015b610600610ab6565b8152602001906001900390816105f85790505b50925060005b818110156106785761064783828154811061063757610636610f97565b5b906000526020600020015461022f565b84828151811061065a57610659610f97565b5b602002602001018190525080806106709061101c565b915050610619565b505050919050565b67016345785d8a00008210156106cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c290611119565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd336001856040518463ffffffff1660e01b815260040161072993929190611139565b6020604051808303816000875af1158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c91906111a8565b6107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290611221565b60405180910390fd5b60006004549050826001600083815260200190815260200160002081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505560018161088f9190610fc6565b6004819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16827fc7b679e84d58a9a6d68a05757595dd545527b2c7e1fd2c11fc458fb7ea2337a5866040516108f39190610b09565b60405180910390a4505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060606005546004546109389190610f63565b915082821115610946578291505b8167ffffffffffffffff8111156109605761095f61108d565b5b60405190808252806020026020018201604052801561099957816020015b610986610ab6565b81526020019060019003908161097e5790505b5090506000600554905060005b83811015610a8b5760016000838152602001908152602001600020548382815181106109d5576109d4610f97565b5b602002602001015160000181815250506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110610a2c57610a2b610f97565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180610a759061101c565b9250508080610a839061101c565b9150506109a6565b5050915091565b7f000000000000000000000000000000000000000000000000000000000000000081565b604051806060016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600080191681525090565b6000819050919050565b610b0381610af0565b82525050565b6000602082019050610b1e6000830184610afa565b92915050565b600080fd5b610b3281610af0565b8114610b3d57600080fd5b50565b600081359050610b4f81610b29565b92915050565b600060208284031215610b6b57610b6a610b24565b5b6000610b7984828501610b40565b91505092915050565b610b8b81610af0565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610bbc82610b91565b9050919050565b610bcc81610bb1565b82525050565b6000819050919050565b610be581610bd2565b82525050565b606082016000820151610c016000850182610b82565b506020820151610c146020850182610bc3565b506040820151610c276040850182610bdc565b50505050565b6000606082019050610c426000830184610beb565b92915050565b610c5181610bb1565b8114610c5c57600080fd5b50565b600081359050610c6e81610c48565b92915050565b600060208284031215610c8a57610c89610b24565b5b6000610c9884828501610c5f565b91505092915050565b610caa81610bd2565b8114610cb557600080fd5b50565b600081359050610cc781610ca1565b92915050565b60008060408385031215610ce457610ce3610b24565b5b6000610cf285828601610cb8565b9250506020610d0385828601610b40565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b606082016000820151610d4f6000850182610b82565b506020820151610d626020850182610bc3565b506040820151610d756040850182610bdc565b50505050565b6000610d878383610d39565b60608301905092915050565b6000602082019050919050565b6000610dab82610d0d565b610db58185610d18565b9350610dc083610d29565b8060005b83811015610df1578151610dd88882610d7b565b9750610de383610d93565b925050600181019050610dc4565b5085935050505092915050565b60006020820190508181036000830152610e188184610da0565b905092915050565b60008060408385031215610e3757610e36610b24565b5b6000610e4585828601610b40565b9250506020610e5685828601610c5f565b9150509250929050565b610e6981610bb1565b82525050565b6000602082019050610e846000830184610e60565b92915050565b6000604082019050610e9f6000830185610afa565b8181036020830152610eb18184610da0565b90509392505050565b6000819050919050565b6000610edf610eda610ed584610b91565b610eba565b610b91565b9050919050565b6000610ef182610ec4565b9050919050565b6000610f0382610ee6565b9050919050565b610f1381610ef8565b82525050565b6000602082019050610f2e6000830184610f0a565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f6e82610af0565b9150610f7983610af0565b925082821015610f8c57610f8b610f34565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000610fd182610af0565b9150610fdc83610af0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561101157611010610f34565b5b828201905092915050565b600061102782610af0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361105957611058610f34565b5b600182019050919050565b60006040820190506110796000830185610afa565b6110866020830184610afa565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082825260208201905092915050565b7f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000600082015250565b6000611103600e836110bc565b915061110e826110cd565b602082019050919050565b60006020820190508181036000830152611132816110f6565b9050919050565b600060608201905061114e6000830186610e60565b61115b6020830185610e60565b6111686040830184610afa565b949350505050565b60008115159050919050565b61118581611170565b811461119057600080fd5b50565b6000815190506111a28161117c565b92915050565b6000602082840312156111be576111bd610b24565b5b60006111cc84828501611193565b91505092915050565b7f7472616e73666572206572726f72000000000000000000000000000000000000600082015250565b600061120b600e836110bc565b9150611216826111d5565b602082019050919050565b6000602082019050818103600083015261123a816111fe565b905091905056fea26469706673582212209e285d3ddc6b3d077d7c4cfcf10d5824c40395610bf2e141bfb4a19d4f88d22764736f6c634300080d0033", - "immutableReferences": { - "16": [ +[ + { + "inputs": [ { - "length": 32, - "start": 1741 + "internalType": "contract ERC20", + "name": "_token", + "type": "address" }, { - "length": 32, - "start": 2708 + "internalType": "address", + "name": "_admin", + "type": "address" } - ] + ], + "stateMutability": "nonpayable", + "type": "constructor" }, - "generatedSources": [ - { - "ast": { - "nodeType": "YulBlock", - "src": "0:1818:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "47:35:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "57:19:2", - "value": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "73:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "67:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "67:9:2" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "57:6:2" - } - ] - } - ] - }, - "name": "allocate_unbounded", - "nodeType": "YulFunctionDefinition", - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "40:6:2", - "type": "" - } - ], - "src": "7:75:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "177:28:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "194:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "197:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "187:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "187:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "187:12:2" - } - ] - }, - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulFunctionDefinition", - "src": "88:117:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "300:28:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "317:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "320:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "310:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "310:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "310:12:2" - } - ] - }, - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulFunctionDefinition", - "src": "211:117:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "379:81:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "389:65:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "404:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "411:42:2", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffff" - } - ], - "functionName": { - "name": "and", - "nodeType": "YulIdentifier", - "src": "400:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "400:54:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "389:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_uint160", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "361:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "371:7:2", - "type": "" - } - ], - "src": "334:126:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "511:51:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "521:35:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "550:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint160", - "nodeType": "YulIdentifier", - "src": "532:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "532:24:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "521:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "493:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "503:7:2", - "type": "" - } - ], - "src": "466:96:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "625:51:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "635:35:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "664:5:2" - } - ], - "functionName": { - "name": "cleanup_t_address", - "nodeType": "YulIdentifier", - "src": "646:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "646:24:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "635:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_contract$_ERC20_$13", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "607:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "617:7:2", - "type": "" - } - ], - "src": "568:108:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "737:91:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "806:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "815:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "818:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "808:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "808:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "808:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "760:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "797:5:2" - } - ], - "functionName": { - "name": "cleanup_t_contract$_ERC20_$13", - "nodeType": "YulIdentifier", - "src": "767:29:2" - }, - "nodeType": "YulFunctionCall", - "src": "767:36:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "757:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "757:47:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "750:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "750:55:2" - }, - "nodeType": "YulIf", - "src": "747:75:2" - } - ] - }, - "name": "validator_revert_t_contract$_ERC20_$13", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "730:5:2", - "type": "" - } - ], - "src": "682:146:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "909:92:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "919:22:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "934:6:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "928:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "928:13:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "919:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "989:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_contract$_ERC20_$13", - "nodeType": "YulIdentifier", - "src": "950:38:2" - }, - "nodeType": "YulFunctionCall", - "src": "950:45:2" - }, - "nodeType": "YulExpressionStatement", - "src": "950:45:2" - } - ] - }, - "name": "abi_decode_t_contract$_ERC20_$13_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "887:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "895:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "903:5:2", - "type": "" - } - ], - "src": "834:167:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1050:79:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1107:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1116:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1119:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "1109:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "1109:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1109:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1073:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1098:5:2" - } - ], - "functionName": { - "name": "cleanup_t_address", - "nodeType": "YulIdentifier", - "src": "1080:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "1080:24:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "1070:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "1070:35:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "1063:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "1063:43:2" - }, - "nodeType": "YulIf", - "src": "1060:63:2" - } - ] - }, - "name": "validator_revert_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1043:5:2", - "type": "" - } - ], - "src": "1007:122:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1198:80:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1208:22:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1223:6:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "1217:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "1217:13:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1208:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1266:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_address", - "nodeType": "YulIdentifier", - "src": "1239:26:2" - }, - "nodeType": "YulFunctionCall", - "src": "1239:33:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1239:33:2" - } - ] - }, - "name": "abi_decode_t_address_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1176:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "1184:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1192:5:2", - "type": "" - } - ], - "src": "1135:143:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1390:425:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1436:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "1438:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "1438:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1438:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1411:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1420:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1407:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1407:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1432:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "1403:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1403:32:2" - }, - "nodeType": "YulIf", - "src": "1400:119:2" - }, - { - "nodeType": "YulBlock", - "src": "1529:140:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1544:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1558:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1548:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1573:86:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1631:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1642:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1627:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1627:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1651:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_contract$_ERC20_$13_fromMemory", - "nodeType": "YulIdentifier", - "src": "1583:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "1583:76:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "1573:6:2" - } - ] - } - ] - }, - { - "nodeType": "YulBlock", - "src": "1679:129:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1694:16:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1708:2:2", - "type": "", - "value": "32" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1698:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1724:74:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1770:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1781:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1766:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1766:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1790:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_address_fromMemory", - "nodeType": "YulIdentifier", - "src": "1734:31:2" - }, - "nodeType": "YulFunctionCall", - "src": "1734:64:2" - }, - "variableNames": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "1724:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_contract$_ERC20_$13t_address_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "1352:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "1363:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "1375:6:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "1383:6:2", - "type": "" - } - ], - "src": "1284:531:2" - } - ] + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" }, - "contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_contract$_ERC20_$13(value) -> cleaned {\n cleaned := cleanup_t_address(value)\n }\n\n function validator_revert_t_contract$_ERC20_$13(value) {\n if iszero(eq(value, cleanup_t_contract$_ERC20_$13(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_contract$_ERC20_$13_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_contract$_ERC20_$13(value)\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_contract$_ERC20_$13t_address_fromMemory(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_contract$_ERC20_$13_fromMemory(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_address_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n}\n", - "id": 2, - "language": "Yul", - "name": "#utility.yul" - } - ], - "deployedGeneratedSources": [ - { - "ast": { - "nodeType": "YulBlock", - "src": "0:14787:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "52:32:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "62:16:2", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "73:5:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "62:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "34:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "44:7:2", - "type": "" - } - ], - "src": "7:77:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "155:53:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "172:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "195:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "177:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "177:24:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "165:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "165:37:2" - }, - "nodeType": "YulExpressionStatement", - "src": "165:37:2" - } - ] - }, - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "143:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "150:3:2", - "type": "" - } - ], - "src": "90:118:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "312:124:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "322:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "334:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "345:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "330:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "330:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "322:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "402:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "415:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "426:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "411:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "411:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "358:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "358:71:2" - }, - "nodeType": "YulExpressionStatement", - "src": "358:71:2" - } - ] - }, - "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "284:9:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "296:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "307:4:2", - "type": "" - } - ], - "src": "214:222:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "482:35:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "492:19:2", - "value": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "508:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "502:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "502:9:2" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "492:6:2" - } - ] - } - ] - }, - "name": "allocate_unbounded", - "nodeType": "YulFunctionDefinition", - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "475:6:2", - "type": "" - } - ], - "src": "442:75:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "612:28:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "629:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "632:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "622:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "622:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "622:12:2" - } - ] - }, - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulFunctionDefinition", - "src": "523:117:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "735:28:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "752:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "755:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "745:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "745:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "745:12:2" - } - ] - }, - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulFunctionDefinition", - "src": "646:117:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "812:79:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "869:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "878:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "881:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "871:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "871:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "871:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "835:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "860:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "842:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "842:24:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "832:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "832:35:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "825:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "825:43:2" - }, - "nodeType": "YulIf", - "src": "822:63:2" - } - ] - }, - "name": "validator_revert_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "805:5:2", - "type": "" - } - ], - "src": "769:122:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "949:87:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "959:29:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "981:6:2" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "968:12:2" - }, - "nodeType": "YulFunctionCall", - "src": "968:20:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "959:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1024:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_uint256", - "nodeType": "YulIdentifier", - "src": "997:26:2" - }, - "nodeType": "YulFunctionCall", - "src": "997:33:2" - }, - "nodeType": "YulExpressionStatement", - "src": "997:33:2" - } - ] - }, - "name": "abi_decode_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "927:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "935:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "943:5:2", - "type": "" - } - ], - "src": "897:139:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1108:263:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1154:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "1156:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "1156:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1156:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1129:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1138:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1125:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1125:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1150:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "1121:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1121:32:2" - }, - "nodeType": "YulIf", - "src": "1118:119:2" - }, - { - "nodeType": "YulBlock", - "src": "1247:117:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1262:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1276:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1266:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1291:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1326:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1337:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1322:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1322:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1346:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_uint256", - "nodeType": "YulIdentifier", - "src": "1301:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "1301:53:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "1291:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "1078:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "1089:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "1101:6:2", - "type": "" - } - ], - "src": "1042:329:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1432:53:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "1449:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1472:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "1454:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "1454:24:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "1442:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "1442:37:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1442:37:2" - } - ] - }, - "name": "abi_encode_t_uint256_to_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1420:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "1427:3:2", - "type": "" - } - ], - "src": "1377:108:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1536:81:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1546:65:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1561:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1568:42:2", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffff" - } - ], - "functionName": { - "name": "and", - "nodeType": "YulIdentifier", - "src": "1557:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "1557:54:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "1546:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_uint160", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1518:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "1528:7:2", - "type": "" - } - ], - "src": "1491:126:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1668:51:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1678:35:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1707:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint160", - "nodeType": "YulIdentifier", - "src": "1689:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "1689:24:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "1678:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1650:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "1660:7:2", - "type": "" - } - ], - "src": "1623:96:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1780:53:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "1797:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1820:5:2" - } - ], - "functionName": { - "name": "cleanup_t_address", - "nodeType": "YulIdentifier", - "src": "1802:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "1802:24:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "1790:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "1790:37:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1790:37:2" - } - ] - }, - "name": "abi_encode_t_address_to_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1768:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "1775:3:2", - "type": "" - } - ], - "src": "1725:108:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1884:32:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1894:16:2", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1905:5:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "1894:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_bytes32", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1866:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "1876:7:2", - "type": "" - } - ], - "src": "1839:77:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1977:53:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "1994:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2017:5:2" - } - ], - "functionName": { - "name": "cleanup_t_bytes32", - "nodeType": "YulIdentifier", - "src": "1999:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "1999:24:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "1987:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "1987:37:2" - }, - "nodeType": "YulExpressionStatement", - "src": "1987:37:2" - } - ] - }, - "name": "abi_encode_t_bytes32_to_t_bytes32", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1965:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "1972:3:2", - "type": "" - } - ], - "src": "1922:108:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2206:569:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "2216:26:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2232:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2237:4:2", - "type": "", - "value": "0x60" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2228:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2228:14:2" - }, - "variables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "2220:4:2", - "type": "" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "2252:166:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "2289:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2319:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2326:4:2", - "type": "", - "value": "0x00" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2315:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2315:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "2309:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "2309:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "2293:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "2379:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2397:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2402:4:2", - "type": "", - "value": "0x00" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2393:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2393:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256", - "nodeType": "YulIdentifier", - "src": "2345:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "2345:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "2345:63:2" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "2428:164:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "2463:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2493:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2500:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2489:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2489:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "2483:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "2483:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "2467:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "2553:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2571:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2576:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2567:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2567:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_address_to_t_address", - "nodeType": "YulIdentifier", - "src": "2519:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "2519:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "2519:63:2" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "2602:166:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "2639:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2669:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2676:4:2", - "type": "", - "value": "0x40" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2665:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2665:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "2659:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "2659:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "2643:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "2729:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2747:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2752:4:2", - "type": "", - "value": "0x40" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2743:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2743:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_bytes32_to_t_bytes32", - "nodeType": "YulIdentifier", - "src": "2695:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "2695:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "2695:63:2" - } - ] - } - ] - }, - "name": "abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "2193:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "2200:3:2", - "type": "" - } - ], - "src": "2096:679:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2923:168:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "2933:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2945:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2956:2:2", - "type": "", - "value": "96" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2941:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "2941:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2933:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "3057:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "3070:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3081:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3066:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "3066:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "2969:87:2" - }, - "nodeType": "YulFunctionCall", - "src": "2969:115:2" - }, - "nodeType": "YulExpressionStatement", - "src": "2969:115:2" - } - ] - }, - "name": "abi_encode_tuple_t_struct$_Record_$28_memory_ptr__to_t_struct$_Record_$28_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "2895:9:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "2907:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "2918:4:2", - "type": "" - } - ], - "src": "2781:310:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3140:79:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "3197:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3206:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3209:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "3199:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "3199:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "3199:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3163:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3188:5:2" - } - ], - "functionName": { - "name": "cleanup_t_address", - "nodeType": "YulIdentifier", - "src": "3170:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "3170:24:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "3160:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "3160:35:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "3153:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "3153:43:2" - }, - "nodeType": "YulIf", - "src": "3150:63:2" - } - ] - }, - "name": "validator_revert_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "3133:5:2", - "type": "" - } - ], - "src": "3097:122:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3277:87:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3287:29:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "3309:6:2" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "3296:12:2" - }, - "nodeType": "YulFunctionCall", - "src": "3296:20:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3287:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3352:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_address", - "nodeType": "YulIdentifier", - "src": "3325:26:2" - }, - "nodeType": "YulFunctionCall", - "src": "3325:33:2" - }, - "nodeType": "YulExpressionStatement", - "src": "3325:33:2" - } - ] - }, - "name": "abi_decode_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "3255:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "3263:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "3271:5:2", - "type": "" - } - ], - "src": "3225:139:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3436:263:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "3482:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "3484:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "3484:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "3484:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "3457:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "3466:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "3453:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "3453:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3478:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "3449:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "3449:32:2" - }, - "nodeType": "YulIf", - "src": "3446:119:2" - }, - { - "nodeType": "YulBlock", - "src": "3575:117:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "3590:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3604:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "3594:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "3619:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "3654:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "3665:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3650:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "3650:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "3674:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_address", - "nodeType": "YulIdentifier", - "src": "3629:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "3629:53:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "3619:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "3406:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "3417:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "3429:6:2", - "type": "" - } - ], - "src": "3370:329:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3748:79:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "3805:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3814:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3817:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "3807:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "3807:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "3807:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3771:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3796:5:2" - } - ], - "functionName": { - "name": "cleanup_t_bytes32", - "nodeType": "YulIdentifier", - "src": "3778:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "3778:24:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "3768:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "3768:35:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "3761:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "3761:43:2" - }, - "nodeType": "YulIf", - "src": "3758:63:2" - } - ] - }, - "name": "validator_revert_t_bytes32", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "3741:5:2", - "type": "" - } - ], - "src": "3705:122:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3885:87:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3895:29:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "3917:6:2" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "3904:12:2" - }, - "nodeType": "YulFunctionCall", - "src": "3904:20:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3895:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3960:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_bytes32", - "nodeType": "YulIdentifier", - "src": "3933:26:2" - }, - "nodeType": "YulFunctionCall", - "src": "3933:33:2" - }, - "nodeType": "YulExpressionStatement", - "src": "3933:33:2" - } - ] - }, - "name": "abi_decode_t_bytes32", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "3863:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "3871:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "3879:5:2", - "type": "" - } - ], - "src": "3833:139:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4061:391:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "4107:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "4109:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "4109:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "4109:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "4082:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "4091:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "4078:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4078:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4103:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "4074:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4074:32:2" - }, - "nodeType": "YulIf", - "src": "4071:119:2" - }, - { - "nodeType": "YulBlock", - "src": "4200:117:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "4215:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4229:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "4219:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "4244:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "4279:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "4290:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4275:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4275:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "4299:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_bytes32", - "nodeType": "YulIdentifier", - "src": "4254:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "4254:53:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "4244:6:2" - } - ] - } - ] - }, - { - "nodeType": "YulBlock", - "src": "4327:118:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "4342:16:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4356:2:2", - "type": "", - "value": "32" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "4346:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "4372:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "4407:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "4418:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4403:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4403:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "4427:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_uint256", - "nodeType": "YulIdentifier", - "src": "4382:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "4382:53:2" - }, - "variableNames": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "4372:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_bytes32t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "4023:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "4034:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "4046:6:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "4054:6:2", - "type": "" - } - ], - "src": "3978:474:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4554:40:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4565:22:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "4581:5:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "4575:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "4575:12:2" - }, - "variableNames": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "4565:6:2" - } - ] - } - ] - }, - "name": "array_length_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "4537:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "4547:6:2", - "type": "" - } - ], - "src": "4458:136:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4733:73:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "4750:3:2" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "4755:6:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "4743:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "4743:19:2" - }, - "nodeType": "YulExpressionStatement", - "src": "4743:19:2" - }, - { - "nodeType": "YulAssignment", - "src": "4771:29:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "4790:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4795:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4786:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4786:14:2" - }, - "variableNames": [ - { - "name": "updated_pos", - "nodeType": "YulIdentifier", - "src": "4771:11:2" - } - ] - } - ] - }, - "name": "array_storeLengthForEncoding_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "4705:3:2", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "4710:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "updated_pos", - "nodeType": "YulTypedName", - "src": "4721:11:2", - "type": "" - } - ], - "src": "4600:206:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4906:60:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4916:11:2", - "value": { - "name": "ptr", - "nodeType": "YulIdentifier", - "src": "4924:3:2" - }, - "variableNames": [ - { - "name": "data", - "nodeType": "YulIdentifier", - "src": "4916:4:2" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "4937:22:2", - "value": { - "arguments": [ - { - "name": "ptr", - "nodeType": "YulIdentifier", - "src": "4949:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4954:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4945:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "4945:14:2" - }, - "variableNames": [ - { - "name": "data", - "nodeType": "YulIdentifier", - "src": "4937:4:2" - } - ] - } - ] - }, - "name": "array_dataslot_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "ptr", - "nodeType": "YulTypedName", - "src": "4893:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "data", - "nodeType": "YulTypedName", - "src": "4901:4:2", - "type": "" - } - ], - "src": "4812:154:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5132:569:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "5142:26:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5158:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5163:4:2", - "type": "", - "value": "0x60" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5154:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5154:14:2" - }, - "variables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "5146:4:2", - "type": "" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "5178:166:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "5215:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "5245:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5252:4:2", - "type": "", - "value": "0x00" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5241:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5241:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "5235:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "5235:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "5219:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "5305:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5323:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5328:4:2", - "type": "", - "value": "0x00" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5319:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5319:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256", - "nodeType": "YulIdentifier", - "src": "5271:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "5271:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "5271:63:2" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "5354:164:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "5389:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "5419:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5426:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5415:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5415:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "5409:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "5409:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "5393:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "5479:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5497:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5502:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5493:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5493:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_address_to_t_address", - "nodeType": "YulIdentifier", - "src": "5445:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "5445:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "5445:63:2" - } - ] - }, - { - "nodeType": "YulBlock", - "src": "5528:166:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "5565:43:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "5595:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5602:4:2", - "type": "", - "value": "0x40" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5591:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5591:16:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "5585:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "5585:23:2" - }, - "variables": [ - { - "name": "memberValue0", - "nodeType": "YulTypedName", - "src": "5569:12:2", - "type": "" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memberValue0", - "nodeType": "YulIdentifier", - "src": "5655:12:2" - }, - { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5673:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5678:4:2", - "type": "", - "value": "0x40" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5669:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5669:14:2" - } - ], - "functionName": { - "name": "abi_encode_t_bytes32_to_t_bytes32", - "nodeType": "YulIdentifier", - "src": "5621:33:2" - }, - "nodeType": "YulFunctionCall", - "src": "5621:63:2" - }, - "nodeType": "YulExpressionStatement", - "src": "5621:63:2" - } - ] - } - ] - }, - "name": "abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "5119:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "5126:3:2", - "type": "" - } - ], - "src": "5032:669:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5831:143:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "5919:6:2" - }, - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5927:3:2" - } - ], - "functionName": { - "name": "abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr", - "nodeType": "YulIdentifier", - "src": "5841:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "5841:90:2" - }, - "nodeType": "YulExpressionStatement", - "src": "5841:90:2" - }, - { - "nodeType": "YulAssignment", - "src": "5940:28:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "5958:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5963:4:2", - "type": "", - "value": "0x60" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5954:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "5954:14:2" - }, - "variableNames": [ - { - "name": "updatedPos", - "nodeType": "YulIdentifier", - "src": "5940:10:2" - } - ] - } - ] - }, - "name": "abi_encodeUpdatedPos_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "5804:6:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "5812:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "updatedPos", - "nodeType": "YulTypedName", - "src": "5820:10:2", - "type": "" - } - ], - "src": "5707:267:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6077:38:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "6087:22:2", - "value": { - "arguments": [ - { - "name": "ptr", - "nodeType": "YulIdentifier", - "src": "6099:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6104:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "6095:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "6095:14:2" - }, - "variableNames": [ - { - "name": "next", - "nodeType": "YulIdentifier", - "src": "6087:4:2" - } - ] - } - ] - }, - "name": "array_nextElement_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "ptr", - "nodeType": "YulTypedName", - "src": "6064:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "next", - "nodeType": "YulTypedName", - "src": "6072:4:2", - "type": "" - } - ], - "src": "5980:135:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6353:740:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "6363:90:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "6447:5:2" - } - ], - "functionName": { - "name": "array_length_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulIdentifier", - "src": "6377:69:2" - }, - "nodeType": "YulFunctionCall", - "src": "6377:76:2" - }, - "variables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "6367:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "6462:115:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "6565:3:2" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "6570:6:2" - } - ], - "functionName": { - "name": "array_storeLengthForEncoding_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "6469:95:2" - }, - "nodeType": "YulFunctionCall", - "src": "6469:108:2" - }, - "variableNames": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "6462:3:2" - } - ] - }, - { - "nodeType": "YulVariableDeclaration", - "src": "6586:93:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "6673:5:2" - } - ], - "functionName": { - "name": "array_dataslot_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulIdentifier", - "src": "6601:71:2" - }, - "nodeType": "YulFunctionCall", - "src": "6601:78:2" - }, - "variables": [ - { - "name": "baseRef", - "nodeType": "YulTypedName", - "src": "6590:7:2", - "type": "" - } - ] - }, - { - "nodeType": "YulVariableDeclaration", - "src": "6688:21:2", - "value": { - "name": "baseRef", - "nodeType": "YulIdentifier", - "src": "6702:7:2" - }, - "variables": [ - { - "name": "srcPtr", - "nodeType": "YulTypedName", - "src": "6692:6:2", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6778:290:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "6792:34:2", - "value": { - "arguments": [ - { - "name": "srcPtr", - "nodeType": "YulIdentifier", - "src": "6819:6:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "6813:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "6813:13:2" - }, - "variables": [ - { - "name": "elementValue0", - "nodeType": "YulTypedName", - "src": "6796:13:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "6839:114:2", - "value": { - "arguments": [ - { - "name": "elementValue0", - "nodeType": "YulIdentifier", - "src": "6934:13:2" - }, - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "6949:3:2" - } - ], - "functionName": { - "name": "abi_encodeUpdatedPos_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr", - "nodeType": "YulIdentifier", - "src": "6846:87:2" - }, - "nodeType": "YulFunctionCall", - "src": "6846:107:2" - }, - "variableNames": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "6839:3:2" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "6966:92:2", - "value": { - "arguments": [ - { - "name": "srcPtr", - "nodeType": "YulIdentifier", - "src": "7051:6:2" - } - ], - "functionName": { - "name": "array_nextElement_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "nodeType": "YulIdentifier", - "src": "6976:74:2" - }, - "nodeType": "YulFunctionCall", - "src": "6976:82:2" - }, - "variableNames": [ - { - "name": "srcPtr", - "nodeType": "YulIdentifier", - "src": "6966:6:2" - } - ] - } - ] - }, - "condition": { - "arguments": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "6740:1:2" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "6743:6:2" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "6737:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "6737:13:2" - }, - "nodeType": "YulForLoop", - "post": { - "nodeType": "YulBlock", - "src": "6751:18:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "6753:14:2", - "value": { - "arguments": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "6762:1:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6765:1:2", - "type": "", - "value": "1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "6758:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "6758:9:2" - }, - "variableNames": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "6753:1:2" - } - ] - } - ] - }, - "pre": { - "nodeType": "YulBlock", - "src": "6722:14:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "6724:10:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6733:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "i", - "nodeType": "YulTypedName", - "src": "6728:1:2", - "type": "" - } - ] - } - ] - }, - "src": "6718:350:2" - }, - { - "nodeType": "YulAssignment", - "src": "7077:10:2", - "value": { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "7084:3:2" - }, - "variableNames": [ - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "7077:3:2" - } - ] - } - ] - }, - "name": "abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "6332:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "6339:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "end", - "nodeType": "YulTypedName", - "src": "6348:3:2", - "type": "" - } - ], - "src": "6185:908:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "7291:269:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "7301:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7313:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7324:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "7309:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7309:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "7301:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7348:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7359:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "7344:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7344:17:2" - }, - { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "7367:4:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7373:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "7363:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7363:20:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "7337:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "7337:47:2" - }, - "nodeType": "YulExpressionStatement", - "src": "7337:47:2" - }, - { - "nodeType": "YulAssignment", - "src": "7393:160:2", - "value": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "7539:6:2" - }, - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "7548:4:2" - } - ], - "functionName": { - "name": "abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "7401:137:2" - }, - "nodeType": "YulFunctionCall", - "src": "7401:152:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "7393:4:2" - } - ] - } - ] - }, - "name": "abi_encode_tuple_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "7263:9:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "7275:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "7286:4:2", - "type": "" - } - ], - "src": "7099:461:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "7649:391:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "7695:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "7697:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "7697:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "7697:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "7670:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7679:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "7666:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7666:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7691:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "7662:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7662:32:2" - }, - "nodeType": "YulIf", - "src": "7659:119:2" - }, - { - "nodeType": "YulBlock", - "src": "7788:117:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "7803:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7817:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "7807:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "7832:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7867:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "7878:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "7863:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7863:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "7887:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_uint256", - "nodeType": "YulIdentifier", - "src": "7842:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "7842:53:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "7832:6:2" - } - ] - } - ] - }, - { - "nodeType": "YulBlock", - "src": "7915:118:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "7930:16:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7944:2:2", - "type": "", - "value": "32" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "7934:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "7960:63:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "7995:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "8006:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "7991:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "7991:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "8015:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_address", - "nodeType": "YulIdentifier", - "src": "7970:20:2" - }, - "nodeType": "YulFunctionCall", - "src": "7970:53:2" - }, - "variableNames": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "7960:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_uint256t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "7611:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "7622:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "7634:6:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "7642:6:2", - "type": "" - } - ], - "src": "7566:474:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "8111:53:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "8128:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "8151:5:2" - } - ], - "functionName": { - "name": "cleanup_t_address", - "nodeType": "YulIdentifier", - "src": "8133:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "8133:24:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "8121:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "8121:37:2" - }, - "nodeType": "YulExpressionStatement", - "src": "8121:37:2" - } - ] - }, - "name": "abi_encode_t_address_to_t_address_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "8099:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "8106:3:2", - "type": "" - } - ], - "src": "8046:118:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "8268:124:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "8278:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8290:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "8301:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "8286:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8286:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "8278:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "8358:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8371:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "8382:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "8367:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8367:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_address_to_t_address_fromStack", - "nodeType": "YulIdentifier", - "src": "8314:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "8314:71:2" - }, - "nodeType": "YulExpressionStatement", - "src": "8314:71:2" - } - ] - }, - "name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "8240:9:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "8252:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "8263:4:2", - "type": "" - } - ], - "src": "8170:222:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "8618:351:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "8628:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8640:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "8651:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "8636:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8636:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "8628:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "8708:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8721:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "8732:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "8717:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8717:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "8664:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "8664:71:2" - }, - "nodeType": "YulExpressionStatement", - "src": "8664:71:2" - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8756:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "8767:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "8752:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8752:18:2" - }, - { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "8776:4:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "8782:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "8772:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "8772:20:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "8745:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "8745:48:2" - }, - "nodeType": "YulExpressionStatement", - "src": "8745:48:2" - }, - { - "nodeType": "YulAssignment", - "src": "8802:160:2", - "value": { - "arguments": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "8948:6:2" - }, - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "8957:4:2" - } - ], - "functionName": { - "name": "abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "8810:137:2" - }, - "nodeType": "YulFunctionCall", - "src": "8810:152:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "8802:4:2" - } - ] - } - ] - }, - "name": "abi_encode_tuple_t_uint256_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__to_t_uint256_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "8582:9:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "8594:6:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "8602:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "8613:4:2", - "type": "" - } - ], - "src": "8398:571:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9007:28:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "9017:12:2", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "9024:5:2" - }, - "variableNames": [ - { - "name": "ret", - "nodeType": "YulIdentifier", - "src": "9017:3:2" - } - ] - } - ] - }, - "name": "identity", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "8993:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "ret", - "nodeType": "YulTypedName", - "src": "9003:3:2", - "type": "" - } - ], - "src": "8975:60:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9101:82:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "9111:66:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "9169:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint160", - "nodeType": "YulIdentifier", - "src": "9151:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "9151:24:2" - } - ], - "functionName": { - "name": "identity", - "nodeType": "YulIdentifier", - "src": "9142:8:2" - }, - "nodeType": "YulFunctionCall", - "src": "9142:34:2" - } - ], - "functionName": { - "name": "cleanup_t_uint160", - "nodeType": "YulIdentifier", - "src": "9124:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "9124:53:2" - }, - "variableNames": [ - { - "name": "converted", - "nodeType": "YulIdentifier", - "src": "9111:9:2" - } - ] - } - ] - }, - "name": "convert_t_uint160_to_t_uint160", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "9081:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "converted", - "nodeType": "YulTypedName", - "src": "9091:9:2", - "type": "" - } - ], - "src": "9041:142:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9249:66:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "9259:50:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "9303:5:2" - } - ], - "functionName": { - "name": "convert_t_uint160_to_t_uint160", - "nodeType": "YulIdentifier", - "src": "9272:30:2" - }, - "nodeType": "YulFunctionCall", - "src": "9272:37:2" - }, - "variableNames": [ - { - "name": "converted", - "nodeType": "YulIdentifier", - "src": "9259:9:2" - } - ] - } - ] - }, - "name": "convert_t_uint160_to_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "9229:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "converted", - "nodeType": "YulTypedName", - "src": "9239:9:2", - "type": "" - } - ], - "src": "9189:126:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9393:66:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "9403:50:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "9447:5:2" - } - ], - "functionName": { - "name": "convert_t_uint160_to_t_address", - "nodeType": "YulIdentifier", - "src": "9416:30:2" - }, - "nodeType": "YulFunctionCall", - "src": "9416:37:2" - }, - "variableNames": [ - { - "name": "converted", - "nodeType": "YulIdentifier", - "src": "9403:9:2" - } - ] - } - ] - }, - "name": "convert_t_contract$_ERC20_$13_to_t_address", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "9373:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "converted", - "nodeType": "YulTypedName", - "src": "9383:9:2", - "type": "" - } - ], - "src": "9321:138:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9542:78:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "9559:3:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "9607:5:2" - } - ], - "functionName": { - "name": "convert_t_contract$_ERC20_$13_to_t_address", - "nodeType": "YulIdentifier", - "src": "9564:42:2" - }, - "nodeType": "YulFunctionCall", - "src": "9564:49:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "9552:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "9552:62:2" - }, - "nodeType": "YulExpressionStatement", - "src": "9552:62:2" - } - ] - }, - "name": "abi_encode_t_contract$_ERC20_$13_to_t_address_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "9530:5:2", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "9537:3:2", - "type": "" - } - ], - "src": "9465:155:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9736:136:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "9746:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "9758:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "9769:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "9754:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "9754:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "9746:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "9838:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "9851:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "9862:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "9847:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "9847:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_contract$_ERC20_$13_to_t_address_fromStack", - "nodeType": "YulIdentifier", - "src": "9782:55:2" - }, - "nodeType": "YulFunctionCall", - "src": "9782:83:2" - }, - "nodeType": "YulExpressionStatement", - "src": "9782:83:2" - } - ] - }, - "name": "abi_encode_tuple_t_contract$_ERC20_$13__to_t_address__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "9708:9:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "9720:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "9731:4:2", - "type": "" - } - ], - "src": "9626:246:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "9906:152:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "9923:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "9926:77:2", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "9916:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "9916:88:2" - }, - "nodeType": "YulExpressionStatement", - "src": "9916:88:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10020:1:2", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10023:4:2", - "type": "", - "value": "0x11" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "10013:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "10013:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10013:15:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10044:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10047:4:2", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "10037:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "10037:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10037:15:2" - } - ] - }, - "name": "panic_error_0x11", - "nodeType": "YulFunctionDefinition", - "src": "9878:180:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10109:146:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "10119:25:2", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10142:1:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "10124:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "10124:20:2" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10119:1:2" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "10153:25:2", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10176:1:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "10158:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "10158:20:2" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10153:1:2" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10200:22:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "10202:16:2" - }, - "nodeType": "YulFunctionCall", - "src": "10202:18:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10202:18:2" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10194:1:2" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10197:1:2" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "10191:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "10191:8:2" - }, - "nodeType": "YulIf", - "src": "10188:34:2" - }, - { - "nodeType": "YulAssignment", - "src": "10232:17:2", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10244:1:2" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10247:1:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "10240:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "10240:9:2" - }, - "variableNames": [ - { - "name": "diff", - "nodeType": "YulIdentifier", - "src": "10232:4:2" - } - ] - } - ] - }, - "name": "checked_sub_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "10095:1:2", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "10098:1:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "diff", - "nodeType": "YulTypedName", - "src": "10104:4:2", - "type": "" - } - ], - "src": "10064:191:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10289:152:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10306:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10309:77:2", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "10299:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "10299:88:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10299:88:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10403:1:2", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10406:4:2", - "type": "", - "value": "0x32" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "10396:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "10396:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10396:15:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10427:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10430:4:2", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "10420:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "10420:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10420:15:2" - } - ] - }, - "name": "panic_error_0x32", - "nodeType": "YulFunctionDefinition", - "src": "10261:180:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10491:261:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "10501:25:2", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10524:1:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "10506:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "10506:20:2" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10501:1:2" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "10535:25:2", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10558:1:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "10540:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "10540:20:2" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10535:1:2" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10698:22:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "10700:16:2" - }, - "nodeType": "YulFunctionCall", - "src": "10700:18:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10700:18:2" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10619:1:2" - }, - { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10626:66:2", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10694:1:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "10622:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "10622:74:2" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "10616:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "10616:81:2" - }, - "nodeType": "YulIf", - "src": "10613:107:2" - }, - { - "nodeType": "YulAssignment", - "src": "10730:16:2", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "10741:1:2" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "10744:1:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "10737:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "10737:9:2" - }, - "variableNames": [ - { - "name": "sum", - "nodeType": "YulIdentifier", - "src": "10730:3:2" - } - ] - } - ] - }, - "name": "checked_add_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "10478:1:2", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "10481:1:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "sum", - "nodeType": "YulTypedName", - "src": "10487:3:2", - "type": "" - } - ], - "src": "10447:305:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10801:190:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "10811:33:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "10838:5:2" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "10820:17:2" - }, - "nodeType": "YulFunctionCall", - "src": "10820:24:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "10811:5:2" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "10934:22:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "10936:16:2" - }, - "nodeType": "YulFunctionCall", - "src": "10936:18:2" - }, - "nodeType": "YulExpressionStatement", - "src": "10936:18:2" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "10859:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10866:66:2", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "10856:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "10856:77:2" - }, - "nodeType": "YulIf", - "src": "10853:103:2" - }, - { - "nodeType": "YulAssignment", - "src": "10965:20:2", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "10976:5:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "10983:1:2", - "type": "", - "value": "1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "10972:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "10972:13:2" - }, - "variableNames": [ - { - "name": "ret", - "nodeType": "YulIdentifier", - "src": "10965:3:2" - } - ] - } - ] - }, - "name": "increment_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "10787:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "ret", - "nodeType": "YulTypedName", - "src": "10797:3:2", - "type": "" - } - ], - "src": "10758:233:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "11123:206:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "11133:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "11145:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11156:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "11141:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "11141:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "11133:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "11213:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "11226:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11237:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "11222:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "11222:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "11169:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "11169:71:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11169:71:2" - }, - { - "expression": { - "arguments": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "11294:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "11307:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11318:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "11303:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "11303:18:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "11250:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "11250:72:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11250:72:2" - } - ] - }, - "name": "abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "11087:9:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "11099:6:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "11107:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "11118:4:2", - "type": "" - } - ], - "src": "10997:332:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "11363:152:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11380:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11383:77:2", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "11373:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "11373:88:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11373:88:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11477:1:2", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11480:4:2", - "type": "", - "value": "0x41" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "11470:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "11470:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11470:15:2" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11501:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11504:4:2", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "11494:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "11494:15:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11494:15:2" - } - ] - }, - "name": "panic_error_0x41", - "nodeType": "YulFunctionDefinition", - "src": "11335:180:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "11617:73:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "11634:3:2" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "11639:6:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "11627:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "11627:19:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11627:19:2" - }, - { - "nodeType": "YulAssignment", - "src": "11655:29:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "11674:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11679:4:2", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "11670:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "11670:14:2" - }, - "variableNames": [ - { - "name": "updated_pos", - "nodeType": "YulIdentifier", - "src": "11655:11:2" - } - ] - } - ] - }, - "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "11589:3:2", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "11594:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "updated_pos", - "nodeType": "YulTypedName", - "src": "11605:11:2", - "type": "" - } - ], - "src": "11521:169:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "11802:58:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "11824:6:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "11832:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "11820:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "11820:14:2" - }, - { - "hexValue": "616d6f756e7420746f6f206c6f77", - "kind": "string", - "nodeType": "YulLiteral", - "src": "11836:16:2", - "type": "", - "value": "amount too low" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "11813:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "11813:40:2" - }, - "nodeType": "YulExpressionStatement", - "src": "11813:40:2" - } - ] - }, - "name": "store_literal_in_memory_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "11794:6:2", - "type": "" - } - ], - "src": "11696:164:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "12012:220:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "12022:74:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "12088:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12093:2:2", - "type": "", - "value": "14" - } - ], - "functionName": { - "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "12029:58:2" - }, - "nodeType": "YulFunctionCall", - "src": "12029:67:2" - }, - "variableNames": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "12022:3:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "12194:3:2" - } - ], - "functionName": { - "name": "store_literal_in_memory_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd", - "nodeType": "YulIdentifier", - "src": "12105:88:2" - }, - "nodeType": "YulFunctionCall", - "src": "12105:93:2" - }, - "nodeType": "YulExpressionStatement", - "src": "12105:93:2" - }, - { - "nodeType": "YulAssignment", - "src": "12207:19:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "12218:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12223:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12214:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12214:12:2" - }, - "variableNames": [ - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "12207:3:2" - } - ] - } - ] - }, - "name": "abi_encode_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd_to_t_string_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "12000:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "end", - "nodeType": "YulTypedName", - "src": "12008:3:2", - "type": "" - } - ], - "src": "11866:366:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "12409:248:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "12419:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "12431:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12442:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12427:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12427:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "12419:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "12466:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12477:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12462:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12462:17:2" - }, - { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "12485:4:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "12491:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "12481:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12481:20:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "12455:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "12455:47:2" - }, - "nodeType": "YulExpressionStatement", - "src": "12455:47:2" - }, - { - "nodeType": "YulAssignment", - "src": "12511:139:2", - "value": { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "12645:4:2" - } - ], - "functionName": { - "name": "abi_encode_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd_to_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "12519:124:2" - }, - "nodeType": "YulFunctionCall", - "src": "12519:131:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "12511:4:2" - } - ] - } - ] - }, - "name": "abi_encode_tuple_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd__to_t_string_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "12389:9:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "12404:4:2", - "type": "" - } - ], - "src": "12238:419:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "12817:288:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "12827:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "12839:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12850:2:2", - "type": "", - "value": "96" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12835:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12835:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "12827:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "12907:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "12920:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "12931:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12916:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12916:17:2" - } - ], - "functionName": { - "name": "abi_encode_t_address_to_t_address_fromStack", - "nodeType": "YulIdentifier", - "src": "12863:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "12863:71:2" - }, - "nodeType": "YulExpressionStatement", - "src": "12863:71:2" - }, - { - "expression": { - "arguments": [ - { - "name": "value1", - "nodeType": "YulIdentifier", - "src": "12988:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "13001:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13012:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "12997:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "12997:18:2" - } - ], - "functionName": { - "name": "abi_encode_t_address_to_t_address_fromStack", - "nodeType": "YulIdentifier", - "src": "12944:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "12944:72:2" - }, - "nodeType": "YulExpressionStatement", - "src": "12944:72:2" - }, - { - "expression": { - "arguments": [ - { - "name": "value2", - "nodeType": "YulIdentifier", - "src": "13070:6:2" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "13083:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13094:2:2", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "13079:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "13079:18:2" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "13026:43:2" - }, - "nodeType": "YulFunctionCall", - "src": "13026:72:2" - }, - "nodeType": "YulExpressionStatement", - "src": "13026:72:2" - } - ] - }, - "name": "abi_encode_tuple_t_address_t_address_t_uint256__to_t_address_t_address_t_uint256__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "12773:9:2", - "type": "" - }, - { - "name": "value2", - "nodeType": "YulTypedName", - "src": "12785:6:2", - "type": "" - }, - { - "name": "value1", - "nodeType": "YulTypedName", - "src": "12793:6:2", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "12801:6:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "12812:4:2", - "type": "" - } - ], - "src": "12663:442:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "13153:48:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "13163:32:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "13188:5:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "13181:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "13181:13:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "13174:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "13174:21:2" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "13163:7:2" - } - ] - } - ] - }, - "name": "cleanup_t_bool", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "13135:5:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "13145:7:2", - "type": "" - } - ], - "src": "13111:90:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "13247:76:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "13301:16:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13310:1:2", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13313:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "13303:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "13303:12:2" - }, - "nodeType": "YulExpressionStatement", - "src": "13303:12:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "13270:5:2" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "13292:5:2" - } - ], - "functionName": { - "name": "cleanup_t_bool", - "nodeType": "YulIdentifier", - "src": "13277:14:2" - }, - "nodeType": "YulFunctionCall", - "src": "13277:21:2" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "13267:2:2" - }, - "nodeType": "YulFunctionCall", - "src": "13267:32:2" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "13260:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "13260:40:2" - }, - "nodeType": "YulIf", - "src": "13257:60:2" - } - ] - }, - "name": "validator_revert_t_bool", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "13240:5:2", - "type": "" - } - ], - "src": "13207:116:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "13389:77:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "13399:22:2", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "13414:6:2" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "13408:5:2" - }, - "nodeType": "YulFunctionCall", - "src": "13408:13:2" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "13399:5:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "13454:5:2" - } - ], - "functionName": { - "name": "validator_revert_t_bool", - "nodeType": "YulIdentifier", - "src": "13430:23:2" - }, - "nodeType": "YulFunctionCall", - "src": "13430:30:2" - }, - "nodeType": "YulExpressionStatement", - "src": "13430:30:2" - } - ] - }, - "name": "abi_decode_t_bool_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "13367:6:2", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "13375:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "13383:5:2", - "type": "" - } - ], - "src": "13329:137:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "13546:271:2", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "13592:83:2", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "13594:77:2" - }, - "nodeType": "YulFunctionCall", - "src": "13594:79:2" - }, - "nodeType": "YulExpressionStatement", - "src": "13594:79:2" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "13567:7:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "13576:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "13563:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "13563:23:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13588:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "13559:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "13559:32:2" - }, - "nodeType": "YulIf", - "src": "13556:119:2" - }, - { - "nodeType": "YulBlock", - "src": "13685:125:2", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "13700:15:2", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13714:1:2", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "13704:6:2", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "13729:71:2", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "13772:9:2" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "13783:6:2" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "13768:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "13768:22:2" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "13792:7:2" - } - ], - "functionName": { - "name": "abi_decode_t_bool_fromMemory", - "nodeType": "YulIdentifier", - "src": "13739:28:2" - }, - "nodeType": "YulFunctionCall", - "src": "13739:61:2" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "13729:6:2" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_bool_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "13516:9:2", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "13527:7:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "13539:6:2", - "type": "" - } - ], - "src": "13472:345:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "13929:58:2", - "statements": [ - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "13951:6:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "13959:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "13947:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "13947:14:2" - }, - { - "hexValue": "7472616e73666572206572726f72", - "kind": "string", - "nodeType": "YulLiteral", - "src": "13963:16:2", - "type": "", - "value": "transfer error" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "13940:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "13940:40:2" - }, - "nodeType": "YulExpressionStatement", - "src": "13940:40:2" - } - ] - }, - "name": "store_literal_in_memory_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "13921:6:2", - "type": "" - } - ], - "src": "13823:164:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "14139:220:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "14149:74:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "14215:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "14220:2:2", - "type": "", - "value": "14" - } - ], - "functionName": { - "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "14156:58:2" - }, - "nodeType": "YulFunctionCall", - "src": "14156:67:2" - }, - "variableNames": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "14149:3:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "14321:3:2" - } - ], - "functionName": { - "name": "store_literal_in_memory_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96", - "nodeType": "YulIdentifier", - "src": "14232:88:2" - }, - "nodeType": "YulFunctionCall", - "src": "14232:93:2" - }, - "nodeType": "YulExpressionStatement", - "src": "14232:93:2" - }, - { - "nodeType": "YulAssignment", - "src": "14334:19:2", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "14345:3:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "14350:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "14341:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "14341:12:2" - }, - "variableNames": [ - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "14334:3:2" - } - ] - } - ] - }, - "name": "abi_encode_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96_to_t_string_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "14127:3:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "end", - "nodeType": "YulTypedName", - "src": "14135:3:2", - "type": "" - } - ], - "src": "13993:366:2" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "14536:248:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "14546:26:2", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "14558:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "14569:2:2", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "14554:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "14554:18:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "14546:4:2" - } - ] - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "14593:9:2" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "14604:1:2", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "14589:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "14589:17:2" - }, - { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "14612:4:2" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "14618:9:2" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "14608:3:2" - }, - "nodeType": "YulFunctionCall", - "src": "14608:20:2" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "14582:6:2" - }, - "nodeType": "YulFunctionCall", - "src": "14582:47:2" - }, - "nodeType": "YulExpressionStatement", - "src": "14582:47:2" - }, - { - "nodeType": "YulAssignment", - "src": "14638:139:2", - "value": { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "14772:4:2" - } - ], - "functionName": { - "name": "abi_encode_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96_to_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "14646:124:2" - }, - "nodeType": "YulFunctionCall", - "src": "14646:131:2" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "14638:4:2" - } - ] - } - ] - }, - "name": "abi_encode_tuple_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96__to_t_string_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "14516:9:2", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "14531:4:2", - "type": "" - } - ], - "src": "14365:419:2" - } - ] + { + "indexed": false, + "internalType": "uint256", + "name": "count", + "type": "uint256" }, - "contents": "{\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_uint256_to_t_uint256(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function abi_encode_t_bytes32_to_t_bytes32(value, pos) {\n mstore(pos, cleanup_t_bytes32(value))\n }\n\n // struct DoraBridge.Record -> struct DoraBridge.Record\n function abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr_fromStack(value, pos) {\n let tail := add(pos, 0x60)\n\n {\n // amount\n\n let memberValue0 := mload(add(value, 0x00))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x00))\n }\n\n {\n // vota\n\n let memberValue0 := mload(add(value, 0x20))\n abi_encode_t_address_to_t_address(memberValue0, add(pos, 0x20))\n }\n\n {\n // txHash\n\n let memberValue0 := mload(add(value, 0x40))\n abi_encode_t_bytes32_to_t_bytes32(memberValue0, add(pos, 0x40))\n }\n\n }\n\n function abi_encode_tuple_t_struct$_Record_$28_memory_ptr__to_t_struct$_Record_$28_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 96)\n\n abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr_fromStack(value0, add(headStart, 0))\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function validator_revert_t_bytes32(value) {\n if iszero(eq(value, cleanup_t_bytes32(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_bytes32(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_bytes32(value)\n }\n\n function abi_decode_tuple_t_bytes32t_uint256(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_bytes32(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function array_length_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n // struct DoraBridge.Record -> struct DoraBridge.Record\n function abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr(value, pos) {\n let tail := add(pos, 0x60)\n\n {\n // amount\n\n let memberValue0 := mload(add(value, 0x00))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x00))\n }\n\n {\n // vota\n\n let memberValue0 := mload(add(value, 0x20))\n abi_encode_t_address_to_t_address(memberValue0, add(pos, 0x20))\n }\n\n {\n // txHash\n\n let memberValue0 := mload(add(value, 0x40))\n abi_encode_t_bytes32_to_t_bytes32(memberValue0, add(pos, 0x40))\n }\n\n }\n\n function abi_encodeUpdatedPos_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr(value0, pos) -> updatedPos {\n abi_encode_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr(value0, pos)\n updatedPos := add(pos, 0x60)\n }\n\n function array_nextElement_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // struct DoraBridge.Record[] -> struct DoraBridge.Record[]\n function abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_struct$_Record_$28_memory_ptr_to_t_struct$_Record_$28_memory_ptr(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack(value0, tail)\n\n }\n\n function abi_decode_tuple_t_uint256t_address(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_uint256_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__to_t_uint256_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_fromStack(value1, tail)\n\n }\n\n function identity(value) -> ret {\n ret := value\n }\n\n function convert_t_uint160_to_t_uint160(value) -> converted {\n converted := cleanup_t_uint160(identity(cleanup_t_uint160(value)))\n }\n\n function convert_t_uint160_to_t_address(value) -> converted {\n converted := convert_t_uint160_to_t_uint160(value)\n }\n\n function convert_t_contract$_ERC20_$13_to_t_address(value) -> converted {\n converted := convert_t_uint160_to_t_address(value)\n }\n\n function abi_encode_t_contract$_ERC20_$13_to_t_address_fromStack(value, pos) {\n mstore(pos, convert_t_contract$_ERC20_$13_to_t_address(value))\n }\n\n function abi_encode_tuple_t_contract$_ERC20_$13__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_contract$_ERC20_$13_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function increment_t_uint256(value) -> ret {\n value := cleanup_t_uint256(value)\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value1, add(headStart, 32))\n\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function store_literal_in_memory_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd(memPtr) {\n\n mstore(add(memPtr, 0), \"amount too low\")\n\n }\n\n function abi_encode_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 14)\n store_literal_in_memory_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function abi_encode_tuple_t_address_t_address_t_uint256__to_t_address_t_address_t_uint256__fromStack_reversed(headStart , value2, value1, value0) -> tail {\n tail := add(headStart, 96)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_address_to_t_address_fromStack(value1, add(headStart, 32))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value2, add(headStart, 64))\n\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function validator_revert_t_bool(value) {\n if iszero(eq(value, cleanup_t_bool(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_bool_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_bool(value)\n }\n\n function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_bool_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function store_literal_in_memory_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96(memPtr) {\n\n mstore(add(memPtr, 0), \"transfer error\")\n\n }\n\n function abi_encode_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 14)\n store_literal_in_memory_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n}\n", - "id": 2, - "language": "Yul", - "name": "#utility.yul" - } - ], - "sourceMap": "157:3453:0:-:0;;;400:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;460:6;452:14;;;;;;;;;;484:6;476:5;;:14;;;;;;;;;;;;;;;;;;400:97;;157:3453;;88:117:2;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:108::-;617:7;646:24;664:5;646:24;:::i;:::-;635:35;;568:108;;;:::o;682:146::-;767:36;797:5;767:36;:::i;:::-;760:5;757:47;747:75;;818:1;815;808:12;747:75;682:146;:::o;834:167::-;903:5;934:6;928:13;919:22;;950:45;989:5;950:45;:::i;:::-;834:167;;;;:::o;1007:122::-;1080:24;1098:5;1080:24;:::i;:::-;1073:5;1070:35;1060:63;;1119:1;1116;1109:12;1060:63;1007:122;:::o;1135:143::-;1192:5;1223:6;1217:13;1208:22;;1239:33;1266:5;1239:33;:::i;:::-;1135:143;;;;:::o;1284:531::-;1375:6;1383;1432:2;1420:9;1411:7;1407:23;1403:32;1400:119;;;1438:79;;:::i;:::-;1400:119;1558:1;1583:76;1651:7;1642:6;1631:9;1627:22;1583:76;:::i;:::-;1573:86;;1529:140;1708:2;1734:64;1790:7;1781:6;1770:9;1766:22;1734:64;:::i;:::-;1724:74;;1679:129;1284:531;;;;;:::o;157:3453:0:-;;;;;;;;;;;;;;;;;;", - "deployedSourceMap": "157:3453:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;661:27;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1211:379;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1090:115;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;245:51;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;694:31;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2933:675;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1596:329;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2428:499;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;218:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1931:491;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;183:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;661:27;;;;:::o;1211:379::-;1262:13;;:::i;:::-;1287:14;1312:1;1304:10;;1287:27;;1324:17;1344:14;:20;1359:4;1344:20;;;;;;;;;;;;1324:40;;1390:1;1378:9;:13;:46;;;;;1408:9;:16;;;;1395:9;:29;;1378:46;1374:110;;;1449:9;1471:1;1459:9;:13;;;;:::i;:::-;1449:24;;;;;;;;:::i;:::-;;;;;;;;;;1440:33;;1374:110;1494:17;1514:48;;;;;;;;1521:8;:14;1530:4;1521:14;;;;;;;;;;;;1514:48;;;;1537:10;:16;1548:4;1537:16;;;;;;;;;;;;;;;;;;;;;1514:48;;;;;;1555:6;1514:48;;;1494:68;;1580:3;1573:10;;;;;1211:379;;;:::o;1090:115::-;1168:5;;;;;;;;;;1154:19;;:10;:19;;;1146:28;;;;;;1192:6;1184:5;;:14;;;;;;;;;;;;;;;;;;1090:115;:::o;245:51::-;287:9;245:51;:::o;694:31::-;;;;:::o;2933:675::-;3024:5;;;;;;;;;;3010:19;;:10;:19;;;3002:28;;;;;;3057:1;3048:6;:10;3040:19;;;;;;3106:12;;3096:6;3077:16;;:25;;;;:::i;:::-;:41;;3069:50;;;;;;3138:12;:21;3151:7;3138:21;;;;;;;;;;;;;;;;;;;;;3137:22;3129:31;;;;;;3195:4;3171:12;:21;3184:7;3171:21;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;3210:9;3225:7;3210:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3243:17;3263:9;:16;;;;3243:36;;3290:11;3304:16;;3290:30;;3330:27;3379:6;3360:16;;:25;;;;:::i;:::-;3330:55;;3395:97;3408:19;3402:3;:25;3395:97;;;3472:9;3450:14;:19;3465:3;3450:19;;;;;;;;;;;:31;;;;3429:5;;;;;:::i;:::-;;;;3395:97;;;3521:19;3502:16;:38;;;;3564:7;3556:45;3573:6;3581:19;3556:45;;;;;;;:::i;:::-;;;;;;;;2992:616;;;2933:675;;:::o;1596:329::-;1666:23;1701:22;1726:13;:20;1740:5;1726:20;;;;;;;;;;;;;;;1701:45;;1756:12;1771:4;:11;;;;1756:26;;1816:4;1803:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;1793:28;;1836:9;1831:88;1855:4;1851:1;:8;1831:88;;;1893:15;1900:4;1905:1;1900:7;;;;;;;;:::i;:::-;;;;;;;;;;1893:6;:15::i;:::-;1880:7;1888:1;1880:10;;;;;;;;:::i;:::-;;;;;;;:28;;;;1861:3;;;;;:::i;:::-;;;;1831:88;;;;1691:234;;1596:329;;;:::o;2428:499::-;287:9;2507:7;:26;;2499:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;2584:5;:18;;;2603:10;2623:1;2627:7;2584:51;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2563:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;2686:11;2700:12;;2686:26;;2738:7;2722:8;:13;2731:3;2722:13;;;;;;;;;;;:23;;;;2773:9;2755:10;:15;2766:3;2755:15;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;2793:13;:25;2807:10;2793:25;;;;;;;;;;;;;;;2824:3;2793:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2860:1;2854:3;:7;;;;:::i;:::-;2839:12;:22;;;;2901:9;2877:43;;2889:10;2877:43;;2884:3;2877:43;2912:7;2877:43;;;;;;:::i;:::-;;;;;;;;2489:438;2428:499;;:::o;218:20::-;;;;;;;;;;;;:::o;1931:491::-;2015:12;2029:23;2086:16;;2071:12;;:31;;;;:::i;:::-;2064:38;;2123:6;2116:4;:13;2112:57;;;2152:6;2145:13;;2112:57;2201:4;2188:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;2178:28;;2217:11;2231:16;;2217:30;;2262:9;2257:159;2281:4;2277:1;:8;2257:159;;;2326:8;:13;2335:3;2326:13;;;;;;;;;;;;2306:7;2314:1;2306:10;;;;;;;;:::i;:::-;;;;;;;;:17;;:33;;;;;2371:10;:15;2382:3;2371:15;;;;;;;;;;;;;;;;;;;;;2353:7;2361:1;2353:10;;;;;;;;:::i;:::-;;;;;;;;:15;;:33;;;;;;;;;;;2400:5;;;;;:::i;:::-;;;;2287:3;;;;;:::i;:::-;;;;2257:159;;;;2054:368;1931:491;;;:::o;183:28::-;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:77:2:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:122;842:24;860:5;842:24;:::i;:::-;835:5;832:35;822:63;;881:1;878;871:12;822:63;769:122;:::o;897:139::-;943:5;981:6;968:20;959:29;;997:33;1024:5;997:33;:::i;:::-;897:139;;;;:::o;1042:329::-;1101:6;1150:2;1138:9;1129:7;1125:23;1121:32;1118:119;;;1156:79;;:::i;:::-;1118:119;1276:1;1301:53;1346:7;1337:6;1326:9;1322:22;1301:53;:::i;:::-;1291:63;;1247:117;1042:329;;;;:::o;1377:108::-;1454:24;1472:5;1454:24;:::i;:::-;1449:3;1442:37;1377:108;;:::o;1491:126::-;1528:7;1568:42;1561:5;1557:54;1546:65;;1491:126;;;:::o;1623:96::-;1660:7;1689:24;1707:5;1689:24;:::i;:::-;1678:35;;1623:96;;;:::o;1725:108::-;1802:24;1820:5;1802:24;:::i;:::-;1797:3;1790:37;1725:108;;:::o;1839:77::-;1876:7;1905:5;1894:16;;1839:77;;;:::o;1922:108::-;1999:24;2017:5;1999:24;:::i;:::-;1994:3;1987:37;1922:108;;:::o;2096:679::-;2237:4;2232:3;2228:14;2326:4;2319:5;2315:16;2309:23;2345:63;2402:4;2397:3;2393:14;2379:12;2345:63;:::i;:::-;2252:166;2500:4;2493:5;2489:16;2483:23;2519:63;2576:4;2571:3;2567:14;2553:12;2519:63;:::i;:::-;2428:164;2676:4;2669:5;2665:16;2659:23;2695:63;2752:4;2747:3;2743:14;2729:12;2695:63;:::i;:::-;2602:166;2206:569;2096:679;;:::o;2781:310::-;2918:4;2956:2;2945:9;2941:18;2933:26;;2969:115;3081:1;3070:9;3066:17;3057:6;2969:115;:::i;:::-;2781:310;;;;:::o;3097:122::-;3170:24;3188:5;3170:24;:::i;:::-;3163:5;3160:35;3150:63;;3209:1;3206;3199:12;3150:63;3097:122;:::o;3225:139::-;3271:5;3309:6;3296:20;3287:29;;3325:33;3352:5;3325:33;:::i;:::-;3225:139;;;;:::o;3370:329::-;3429:6;3478:2;3466:9;3457:7;3453:23;3449:32;3446:119;;;3484:79;;:::i;:::-;3446:119;3604:1;3629:53;3674:7;3665:6;3654:9;3650:22;3629:53;:::i;:::-;3619:63;;3575:117;3370:329;;;;:::o;3705:122::-;3778:24;3796:5;3778:24;:::i;:::-;3771:5;3768:35;3758:63;;3817:1;3814;3807:12;3758:63;3705:122;:::o;3833:139::-;3879:5;3917:6;3904:20;3895:29;;3933:33;3960:5;3933:33;:::i;:::-;3833:139;;;;:::o;3978:474::-;4046:6;4054;4103:2;4091:9;4082:7;4078:23;4074:32;4071:119;;;4109:79;;:::i;:::-;4071:119;4229:1;4254:53;4299:7;4290:6;4279:9;4275:22;4254:53;:::i;:::-;4244:63;;4200:117;4356:2;4382:53;4427:7;4418:6;4407:9;4403:22;4382:53;:::i;:::-;4372:63;;4327:118;3978:474;;;;;:::o;4458:136::-;4547:6;4581:5;4575:12;4565:22;;4458:136;;;:::o;4600:206::-;4721:11;4755:6;4750:3;4743:19;4795:4;4790:3;4786:14;4771:29;;4600:206;;;;:::o;4812:154::-;4901:4;4924:3;4916:11;;4954:4;4949:3;4945:14;4937:22;;4812:154;;;:::o;5032:669::-;5163:4;5158:3;5154:14;5252:4;5245:5;5241:16;5235:23;5271:63;5328:4;5323:3;5319:14;5305:12;5271:63;:::i;:::-;5178:166;5426:4;5419:5;5415:16;5409:23;5445:63;5502:4;5497:3;5493:14;5479:12;5445:63;:::i;:::-;5354:164;5602:4;5595:5;5591:16;5585:23;5621:63;5678:4;5673:3;5669:14;5655:12;5621:63;:::i;:::-;5528:166;5132:569;5032:669;;:::o;5707:267::-;5820:10;5841:90;5927:3;5919:6;5841:90;:::i;:::-;5963:4;5958:3;5954:14;5940:28;;5707:267;;;;:::o;5980:135::-;6072:4;6104;6099:3;6095:14;6087:22;;5980:135;;;:::o;6185:908::-;6348:3;6377:76;6447:5;6377:76;:::i;:::-;6469:108;6570:6;6565:3;6469:108;:::i;:::-;6462:115;;6601:78;6673:5;6601:78;:::i;:::-;6702:7;6733:1;6718:350;6743:6;6740:1;6737:13;6718:350;;;6819:6;6813:13;6846:107;6949:3;6934:13;6846:107;:::i;:::-;6839:114;;6976:82;7051:6;6976:82;:::i;:::-;6966:92;;6778:290;6765:1;6762;6758:9;6753:14;;6718:350;;;6722:14;7084:3;7077:10;;6353:740;;;6185:908;;;;:::o;7099:461::-;7286:4;7324:2;7313:9;7309:18;7301:26;;7373:9;7367:4;7363:20;7359:1;7348:9;7344:17;7337:47;7401:152;7548:4;7539:6;7401:152;:::i;:::-;7393:160;;7099:461;;;;:::o;7566:474::-;7634:6;7642;7691:2;7679:9;7670:7;7666:23;7662:32;7659:119;;;7697:79;;:::i;:::-;7659:119;7817:1;7842:53;7887:7;7878:6;7867:9;7863:22;7842:53;:::i;:::-;7832:63;;7788:117;7944:2;7970:53;8015:7;8006:6;7995:9;7991:22;7970:53;:::i;:::-;7960:63;;7915:118;7566:474;;;;;:::o;8046:118::-;8133:24;8151:5;8133:24;:::i;:::-;8128:3;8121:37;8046:118;;:::o;8170:222::-;8263:4;8301:2;8290:9;8286:18;8278:26;;8314:71;8382:1;8371:9;8367:17;8358:6;8314:71;:::i;:::-;8170:222;;;;:::o;8398:571::-;8613:4;8651:2;8640:9;8636:18;8628:26;;8664:71;8732:1;8721:9;8717:17;8708:6;8664:71;:::i;:::-;8782:9;8776:4;8772:20;8767:2;8756:9;8752:18;8745:48;8810:152;8957:4;8948:6;8810:152;:::i;:::-;8802:160;;8398:571;;;;;:::o;8975:60::-;9003:3;9024:5;9017:12;;8975:60;;;:::o;9041:142::-;9091:9;9124:53;9142:34;9151:24;9169:5;9151:24;:::i;:::-;9142:34;:::i;:::-;9124:53;:::i;:::-;9111:66;;9041:142;;;:::o;9189:126::-;9239:9;9272:37;9303:5;9272:37;:::i;:::-;9259:50;;9189:126;;;:::o;9321:138::-;9383:9;9416:37;9447:5;9416:37;:::i;:::-;9403:50;;9321:138;;;:::o;9465:155::-;9564:49;9607:5;9564:49;:::i;:::-;9559:3;9552:62;9465:155;;:::o;9626:246::-;9731:4;9769:2;9758:9;9754:18;9746:26;;9782:83;9862:1;9851:9;9847:17;9838:6;9782:83;:::i;:::-;9626:246;;;;:::o;9878:180::-;9926:77;9923:1;9916:88;10023:4;10020:1;10013:15;10047:4;10044:1;10037:15;10064:191;10104:4;10124:20;10142:1;10124:20;:::i;:::-;10119:25;;10158:20;10176:1;10158:20;:::i;:::-;10153:25;;10197:1;10194;10191:8;10188:34;;;10202:18;;:::i;:::-;10188:34;10247:1;10244;10240:9;10232:17;;10064:191;;;;:::o;10261:180::-;10309:77;10306:1;10299:88;10406:4;10403:1;10396:15;10430:4;10427:1;10420:15;10447:305;10487:3;10506:20;10524:1;10506:20;:::i;:::-;10501:25;;10540:20;10558:1;10540:20;:::i;:::-;10535:25;;10694:1;10626:66;10622:74;10619:1;10616:81;10613:107;;;10700:18;;:::i;:::-;10613:107;10744:1;10741;10737:9;10730:16;;10447:305;;;;:::o;10758:233::-;10797:3;10820:24;10838:5;10820:24;:::i;:::-;10811:33;;10866:66;10859:5;10856:77;10853:103;;10936:18;;:::i;:::-;10853:103;10983:1;10976:5;10972:13;10965:20;;10758:233;;;:::o;10997:332::-;11118:4;11156:2;11145:9;11141:18;11133:26;;11169:71;11237:1;11226:9;11222:17;11213:6;11169:71;:::i;:::-;11250:72;11318:2;11307:9;11303:18;11294:6;11250:72;:::i;:::-;10997:332;;;;;:::o;11335:180::-;11383:77;11380:1;11373:88;11480:4;11477:1;11470:15;11504:4;11501:1;11494:15;11521:169;11605:11;11639:6;11634:3;11627:19;11679:4;11674:3;11670:14;11655:29;;11521:169;;;;:::o;11696:164::-;11836:16;11832:1;11824:6;11820:14;11813:40;11696:164;:::o;11866:366::-;12008:3;12029:67;12093:2;12088:3;12029:67;:::i;:::-;12022:74;;12105:93;12194:3;12105:93;:::i;:::-;12223:2;12218:3;12214:12;12207:19;;11866:366;;;:::o;12238:419::-;12404:4;12442:2;12431:9;12427:18;12419:26;;12491:9;12485:4;12481:20;12477:1;12466:9;12462:17;12455:47;12519:131;12645:4;12519:131;:::i;:::-;12511:139;;12238:419;;;:::o;12663:442::-;12812:4;12850:2;12839:9;12835:18;12827:26;;12863:71;12931:1;12920:9;12916:17;12907:6;12863:71;:::i;:::-;12944:72;13012:2;13001:9;12997:18;12988:6;12944:72;:::i;:::-;13026;13094:2;13083:9;13079:18;13070:6;13026:72;:::i;:::-;12663:442;;;;;;:::o;13111:90::-;13145:7;13188:5;13181:13;13174:21;13163:32;;13111:90;;;:::o;13207:116::-;13277:21;13292:5;13277:21;:::i;:::-;13270:5;13267:32;13257:60;;13313:1;13310;13303:12;13257:60;13207:116;:::o;13329:137::-;13383:5;13414:6;13408:13;13399:22;;13430:30;13454:5;13430:30;:::i;:::-;13329:137;;;;:::o;13472:345::-;13539:6;13588:2;13576:9;13567:7;13563:23;13559:32;13556:119;;;13594:79;;:::i;:::-;13556:119;13714:1;13739:61;13792:7;13783:6;13772:9;13768:22;13739:61;:::i;:::-;13729:71;;13685:125;13472:345;;;;:::o;13823:164::-;13963:16;13959:1;13951:6;13947:14;13940:40;13823:164;:::o;13993:366::-;14135:3;14156:67;14220:2;14215:3;14156:67;:::i;:::-;14149:74;;14232:93;14321:3;14232:93;:::i;:::-;14350:2;14345:3;14341:12;14334:19;;13993:366;;;:::o;14365:419::-;14531:4;14569:2;14558:9;14554:18;14546:26;;14618:9;14612:4;14608:20;14604:1;14593:9;14589:17;14582:47;14646:131;14772:4;14646:131;:::i;:::-;14638:139;;14365:419;;;:::o", - "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.13;\n\ninterface ERC20 {\n function transferFrom(address, address, uint256) external returns (bool);\n}\n\ncontract DoraBridge {\n ERC20 public immutable token;\n\n address public admin;\n\n uint256 public constant amountThreshold = 0.1 ether;\n\n struct Record {\n uint256 amount;\n address vota;\n bytes32 txHash;\n }\n\n constructor(ERC20 _token, address _admin) {\n token = _token;\n admin = _admin;\n }\n\n mapping(uint256 => uint256) private _amounts;\n mapping(uint256 => address) private _votaAddrs;\n mapping(uint256 => uint256) private _txHashIndexes;\n uint256 public totalRecords;\n uint256 public processedRecords;\n\n bytes32[] private _txHashes;\n mapping(bytes32 => bool) private _txHashesMap;\n\n mapping(address => uint256[]) private _usersRecords;\n\n event Submit(\n uint256 indexed idx,\n address indexed eoa,\n address indexed vota,\n uint256 amount\n );\n\n event Process(bytes32 indexed txHash, uint256 count, uint256 processed);\n\n function changeAdmin(address _admin) external {\n require(msg.sender == admin);\n admin = _admin;\n }\n\n function record(uint256 _idx) public view returns (Record memory) {\n bytes32 txHash = bytes32(0);\n uint256 txHashIdx = _txHashIndexes[_idx];\n if (txHashIdx > 0 && txHashIdx <= _txHashes.length) {\n txHash = _txHashes[txHashIdx - 1];\n }\n\n Record memory res = Record(_amounts[_idx], _votaAddrs[_idx], txHash);\n\n return res;\n }\n\n function recordOf(\n address _user\n ) external view returns (Record[] memory results) {\n uint256[] storage list = _usersRecords[_user];\n uint256 size = list.length;\n\n results = new Record[](size);\n for (uint256 i = 0; i < size; i++) {\n results[i] = record(list[i]);\n }\n }\n\n function getUnprocessedRecords(\n uint256 _count\n ) external view returns (uint256 size, Record[] memory records) {\n size = totalRecords - processedRecords;\n if (size > _count) {\n size = _count;\n }\n records = new Record[](size);\n\n uint256 idx = processedRecords;\n for (uint256 i = 0; i < size; i++) {\n records[i].amount = _amounts[idx];\n records[i].vota = _votaAddrs[idx];\n idx++;\n }\n }\n\n function submit(uint256 _amount, address _votaAddr) external {\n require(_amount >= amountThreshold, \"amount too low\");\n\n require(\n token.transferFrom(msg.sender, address(1), _amount),\n \"transfer error\"\n );\n\n uint256 idx = totalRecords;\n _amounts[idx] = _amount;\n _votaAddrs[idx] = _votaAddr;\n\n _usersRecords[msg.sender].push(idx);\n\n totalRecords = idx + 1;\n\n emit Submit(idx, msg.sender, _votaAddr, _amount);\n }\n\n function process(bytes32 _txHash, uint256 _count) external {\n require(msg.sender == admin);\n require(_count > 0);\n require(processedRecords + _count <= totalRecords);\n require(!_txHashesMap[_txHash]);\n\n _txHashesMap[_txHash] = true;\n\n _txHashes.push(_txHash);\n uint256 txHashIdx = _txHashes.length;\n\n uint256 idx = processedRecords;\n uint256 newProcessedRecords = processedRecords + _count;\n for (; idx < newProcessedRecords; idx++) {\n _txHashIndexes[idx] = txHashIdx;\n }\n\n processedRecords = newProcessedRecords;\n\n emit Process(_txHash, _count, newProcessedRecords);\n }\n}\n", - "sourcePath": "/Users/bun/DoraFactory/DORA-token-migrate/tmp/dora-bridge-contract/contracts/DoraBridge.sol", - "ast": { - "absolutePath": "project:/contracts/DoraBridge.sol", - "exportedSymbols": { - "DoraBridge": [ - 446 - ], - "ERC20": [ - 13 - ] - }, - "id": 447, - "license": "MIT", - "nodeType": "SourceUnit", - "nodes": [ { - "id": 1, - "literals": [ - "solidity", - "^", - "0.8", - ".13" - ], - "nodeType": "PragmaDirective", - "src": "32:24:0" + "indexed": false, + "internalType": "uint256", + "name": "processed", + "type": "uint256" + } + ], + "name": "Process", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "idx", + "type": "uint256" }, { - "abstract": false, - "baseContracts": [], - "canonicalName": "ERC20", - "contractDependencies": [], - "contractKind": "interface", - "fullyImplemented": false, - "id": 13, - "linearizedBaseContracts": [ - 13 - ], - "name": "ERC20", - "nameLocation": "68:5:0", - "nodeType": "ContractDefinition", - "nodes": [ - { - "functionSelector": "23b872dd", - "id": 12, - "implemented": false, - "kind": "function", - "modifiers": [], - "name": "transferFrom", - "nameLocation": "89:12:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 8, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 3, - "mutability": "mutable", - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "VariableDeclaration", - "scope": 12, - "src": "102:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 2, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "102:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 5, - "mutability": "mutable", - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "VariableDeclaration", - "scope": 12, - "src": "111:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 4, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "111:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 7, - "mutability": "mutable", - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "VariableDeclaration", - "scope": 12, - "src": "120:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 6, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "120:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "101:27:0" - }, - "returnParameters": { - "id": 11, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 10, - "mutability": "mutable", - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "VariableDeclaration", - "scope": 12, - "src": "147:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 9, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "147:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "visibility": "internal" - } - ], - "src": "146:6:0" - }, - "scope": 13, - "src": "80:73:0", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "external" - } - ], - "scope": 447, - "src": "58:97:0", - "usedErrors": [] + "indexed": true, + "internalType": "address", + "name": "eoa", + "type": "address" }, { - "abstract": false, - "baseContracts": [], - "canonicalName": "DoraBridge", - "contractDependencies": [], - "contractKind": "contract", - "fullyImplemented": true, - "id": 446, - "linearizedBaseContracts": [ - 446 - ], - "name": "DoraBridge", - "nameLocation": "166:10:0", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "functionSelector": "fc0c546a", - "id": 16, - "mutability": "immutable", - "name": "token", - "nameLocation": "206:5:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "183:28:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - }, - "typeName": { - "id": 15, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 14, - "name": "ERC20", - "nodeType": "IdentifierPath", - "referencedDeclaration": 13, - "src": "183:5:0" - }, - "referencedDeclaration": 13, - "src": "183:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "visibility": "public" - }, - { - "constant": false, - "functionSelector": "f851a440", - "id": 18, - "mutability": "mutable", - "name": "admin", - "nameLocation": "233:5:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "218:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 17, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "218:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "public" - }, - { - "constant": true, - "functionSelector": "8f82921e", - "id": 21, - "mutability": "constant", - "name": "amountThreshold", - "nameLocation": "269:15:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "245:51:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 19, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "245:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "hexValue": "302e31", - "id": 20, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "287:9:0", - "subdenomination": "ether", - "typeDescriptions": { - "typeIdentifier": "t_rational_100000000000000000_by_1", - "typeString": "int_const 100000000000000000" - }, - "value": "0.1" - }, - "visibility": "public" - }, - { - "canonicalName": "DoraBridge.Record", - "id": 28, - "members": [ - { - "constant": false, - "id": 23, - "mutability": "mutable", - "name": "amount", - "nameLocation": "335:6:0", - "nodeType": "VariableDeclaration", - "scope": 28, - "src": "327:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 22, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "327:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 25, - "mutability": "mutable", - "name": "vota", - "nameLocation": "359:4:0", - "nodeType": "VariableDeclaration", - "scope": 28, - "src": "351:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 24, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "351:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 27, - "mutability": "mutable", - "name": "txHash", - "nameLocation": "381:6:0", - "nodeType": "VariableDeclaration", - "scope": 28, - "src": "373:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 26, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "373:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "visibility": "internal" - } - ], - "name": "Record", - "nameLocation": "310:6:0", - "nodeType": "StructDefinition", - "scope": 446, - "src": "303:91:0", - "visibility": "public" - }, - { - "body": { - "id": 44, - "nodeType": "Block", - "src": "442:55:0", - "statements": [ - { - "expression": { - "id": 38, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 36, - "name": "token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 16, - "src": "452:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 37, - "name": "_token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "460:6:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "src": "452:14:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "id": 39, - "nodeType": "ExpressionStatement", - "src": "452:14:0" - }, - { - "expression": { - "id": 42, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 40, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 18, - "src": "476:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 41, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "484:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "476:14:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 43, - "nodeType": "ExpressionStatement", - "src": "476:14:0" - } - ] - }, - "id": 45, - "implemented": true, - "kind": "constructor", - "modifiers": [], - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 34, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 31, - "mutability": "mutable", - "name": "_token", - "nameLocation": "418:6:0", - "nodeType": "VariableDeclaration", - "scope": 45, - "src": "412:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - }, - "typeName": { - "id": 30, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 29, - "name": "ERC20", - "nodeType": "IdentifierPath", - "referencedDeclaration": 13, - "src": "412:5:0" - }, - "referencedDeclaration": 13, - "src": "412:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 33, - "mutability": "mutable", - "name": "_admin", - "nameLocation": "434:6:0", - "nodeType": "VariableDeclaration", - "scope": 45, - "src": "426:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 32, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "426:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - } - ], - "src": "411:30:0" - }, - "returnParameters": { - "id": 35, - "nodeType": "ParameterList", - "parameters": [], - "src": "442:0:0" - }, - "scope": 446, - "src": "400:97:0", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - { - "constant": false, - "id": 49, - "mutability": "mutable", - "name": "_amounts", - "nameLocation": "539:8:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "503:44:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - }, - "typeName": { - "id": 48, - "keyType": { - "id": 46, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "511:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Mapping", - "src": "503:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - }, - "valueType": { - "id": 47, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "522:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "visibility": "private" - }, - { - "constant": false, - "id": 53, - "mutability": "mutable", - "name": "_votaAddrs", - "nameLocation": "589:10:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "553:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", - "typeString": "mapping(uint256 => address)" - }, - "typeName": { - "id": 52, - "keyType": { - "id": 50, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "561:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Mapping", - "src": "553:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", - "typeString": "mapping(uint256 => address)" - }, - "valueType": { - "id": 51, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "572:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "visibility": "private" - }, - { - "constant": false, - "id": 57, - "mutability": "mutable", - "name": "_txHashIndexes", - "nameLocation": "641:14:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "605:50:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - }, - "typeName": { - "id": 56, - "keyType": { - "id": 54, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "613:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Mapping", - "src": "605:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - }, - "valueType": { - "id": 55, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "624:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "visibility": "private" - }, - { - "constant": false, - "functionSelector": "125f8974", - "id": 59, - "mutability": "mutable", - "name": "totalRecords", - "nameLocation": "676:12:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "661:27:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 58, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "661:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "public" - }, - { - "constant": false, - "functionSelector": "a9da95bb", - "id": 61, - "mutability": "mutable", - "name": "processedRecords", - "nameLocation": "709:16:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "694:31:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 60, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "694:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "public" - }, - { - "constant": false, - "id": 64, - "mutability": "mutable", - "name": "_txHashes", - "nameLocation": "750:9:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "732:27:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", - "typeString": "bytes32[]" - }, - "typeName": { - "baseType": { - "id": 62, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "732:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "id": 63, - "nodeType": "ArrayTypeName", - "src": "732:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", - "typeString": "bytes32[]" - } - }, - "visibility": "private" - }, - { - "constant": false, - "id": 68, - "mutability": "mutable", - "name": "_txHashesMap", - "nameLocation": "798:12:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "765:45:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", - "typeString": "mapping(bytes32 => bool)" - }, - "typeName": { - "id": 67, - "keyType": { - "id": 65, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "773:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "Mapping", - "src": "765:24:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", - "typeString": "mapping(bytes32 => bool)" - }, - "valueType": { - "id": 66, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "784:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "visibility": "private" - }, + "indexed": true, + "internalType": "address", + "name": "vota", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Submit", + "type": "event" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "amountThreshold", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "processedRecords", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token", + "outputs": [ + { + "internalType": "contract ERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalRecords", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "changeAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_idx", + "type": "uint256" + } + ], + "name": "record", + "outputs": [ + { + "components": [ { - "constant": false, - "id": 73, - "mutability": "mutable", - "name": "_usersRecords", - "nameLocation": "855:13:0", - "nodeType": "VariableDeclaration", - "scope": 446, - "src": "817:51:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", - "typeString": "mapping(address => uint256[])" - }, - "typeName": { - "id": 72, - "keyType": { - "id": 69, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "825:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "817:29:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", - "typeString": "mapping(address => uint256[])" - }, - "valueType": { - "baseType": { - "id": 70, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "836:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 71, - "nodeType": "ArrayTypeName", - "src": "836:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[]" - } - } - }, - "visibility": "private" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "anonymous": false, - "eventSelector": "c7b679e84d58a9a6d68a05757595dd545527b2c7e1fd2c11fc458fb7ea2337a5", - "id": 83, - "name": "Submit", - "nameLocation": "881:6:0", - "nodeType": "EventDefinition", - "parameters": { - "id": 82, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 75, - "indexed": true, - "mutability": "mutable", - "name": "idx", - "nameLocation": "913:3:0", - "nodeType": "VariableDeclaration", - "scope": 83, - "src": "897:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 74, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "897:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 77, - "indexed": true, - "mutability": "mutable", - "name": "eoa", - "nameLocation": "942:3:0", - "nodeType": "VariableDeclaration", - "scope": 83, - "src": "926:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 76, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "926:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 79, - "indexed": true, - "mutability": "mutable", - "name": "vota", - "nameLocation": "971:4:0", - "nodeType": "VariableDeclaration", - "scope": 83, - "src": "955:20:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 78, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "955:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 81, - "indexed": false, - "mutability": "mutable", - "name": "amount", - "nameLocation": "993:6:0", - "nodeType": "VariableDeclaration", - "scope": 83, - "src": "985:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 80, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "985:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "887:118:0" - }, - "src": "875:131:0" + "internalType": "address", + "name": "vota", + "type": "address" }, { - "anonymous": false, - "eventSelector": "0547d400853be46b1b80e2570476c027cc6fb3285d0cafc86fffbe7ab59161fb", - "id": 91, - "name": "Process", - "nameLocation": "1018:7:0", - "nodeType": "EventDefinition", - "parameters": { - "id": 90, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 85, - "indexed": true, - "mutability": "mutable", - "name": "txHash", - "nameLocation": "1042:6:0", - "nodeType": "VariableDeclaration", - "scope": 91, - "src": "1026:22:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 84, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "1026:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 87, - "indexed": false, - "mutability": "mutable", - "name": "count", - "nameLocation": "1058:5:0", - "nodeType": "VariableDeclaration", - "scope": 91, - "src": "1050:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 86, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1050:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 89, - "indexed": false, - "mutability": "mutable", - "name": "processed", - "nameLocation": "1073:9:0", - "nodeType": "VariableDeclaration", - "scope": 91, - "src": "1065:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 88, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1065:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "1025:58:0" - }, - "src": "1012:72:0" - }, + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" + } + ], + "internalType": "struct DoraBridge.Record", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_user", + "type": "address" + } + ], + "name": "recordOf", + "outputs": [ + { + "components": [ { - "body": { - "id": 107, - "nodeType": "Block", - "src": "1136:69:0", - "statements": [ - { - "expression": { - "arguments": [ - { - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 100, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "expression": { - "id": 97, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 4294967281, - "src": "1154:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 98, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "src": "1154:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "id": 99, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 18, - "src": "1168:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1154:19:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 96, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "1146:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 101, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1146:28:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 102, - "nodeType": "ExpressionStatement", - "src": "1146:28:0" - }, - { - "expression": { - "id": 105, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 103, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 18, - "src": "1184:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 104, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 93, - "src": "1192:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1184:14:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 106, - "nodeType": "ExpressionStatement", - "src": "1184:14:0" - } - ] - }, - "functionSelector": "8f283970", - "id": 108, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "changeAdmin", - "nameLocation": "1099:11:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 94, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 93, - "mutability": "mutable", - "name": "_admin", - "nameLocation": "1119:6:0", - "nodeType": "VariableDeclaration", - "scope": 108, - "src": "1111:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 92, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1111:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - } - ], - "src": "1110:16:0" - }, - "returnParameters": { - "id": 95, - "nodeType": "ParameterList", - "parameters": [], - "src": "1136:0:0" - }, - "scope": 446, - "src": "1090:115:0", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "external" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "body": { - "id": 162, - "nodeType": "Block", - "src": "1277:313:0", - "statements": [ - { - "assignments": [ - 117 - ], - "declarations": [ - { - "constant": false, - "id": 117, - "mutability": "mutable", - "name": "txHash", - "nameLocation": "1295:6:0", - "nodeType": "VariableDeclaration", - "scope": 162, - "src": "1287:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 116, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "1287:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "visibility": "internal" - } - ], - "id": 122, - "initialValue": { - "arguments": [ - { - "hexValue": "30", - "id": 120, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1312:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 119, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "1304:7:0", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_bytes32_$", - "typeString": "type(bytes32)" - }, - "typeName": { - "id": 118, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "1304:7:0", - "typeDescriptions": {} - } - }, - "id": 121, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1304:10:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1287:27:0" - }, - { - "assignments": [ - 124 - ], - "declarations": [ - { - "constant": false, - "id": 124, - "mutability": "mutable", - "name": "txHashIdx", - "nameLocation": "1332:9:0", - "nodeType": "VariableDeclaration", - "scope": 162, - "src": "1324:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 123, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1324:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 128, - "initialValue": { - "baseExpression": { - "id": 125, - "name": "_txHashIndexes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 57, - "src": "1344:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - } - }, - "id": 127, - "indexExpression": { - "id": 126, - "name": "_idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 110, - "src": "1359:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1344:20:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1324:40:0" - }, - { - "condition": { - "commonType": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "id": 136, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 131, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 129, - "name": "txHashIdx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 124, - "src": "1378:9:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "hexValue": "30", - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1390:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "1378:13:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "BinaryOperation", - "operator": "&&", - "rightExpression": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 135, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 132, - "name": "txHashIdx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 124, - "src": "1395:9:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "expression": { - "id": 133, - "name": "_txHashes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 64, - "src": "1408:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", - "typeString": "bytes32[] storage ref" - } - }, - "id": 134, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "src": "1408:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1395:29:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "src": "1378:46:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 146, - "nodeType": "IfStatement", - "src": "1374:110:0", - "trueBody": { - "id": 145, - "nodeType": "Block", - "src": "1426:58:0", - "statements": [ - { - "expression": { - "id": 143, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 137, - "name": "txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 117, - "src": "1440:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "baseExpression": { - "id": 138, - "name": "_txHashes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 64, - "src": "1449:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", - "typeString": "bytes32[] storage ref" - } - }, - "id": 142, - "indexExpression": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 141, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 139, - "name": "txHashIdx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 124, - "src": "1459:9:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "hexValue": "31", - "id": 140, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1471:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1459:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1449:24:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "src": "1440:33:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "id": 144, - "nodeType": "ExpressionStatement", - "src": "1440:33:0" - } - ] - } - }, - { - "assignments": [ - 149 - ], - "declarations": [ - { - "constant": false, - "id": 149, - "mutability": "mutable", - "name": "res", - "nameLocation": "1508:3:0", - "nodeType": "VariableDeclaration", - "scope": 162, - "src": "1494:17:0", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record" - }, - "typeName": { - "id": 148, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 147, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "1494:6:0" - }, - "referencedDeclaration": 28, - "src": "1494:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "visibility": "internal" - } - ], - "id": 159, - "initialValue": { - "arguments": [ - { - "baseExpression": { - "id": 151, - "name": "_amounts", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 49, - "src": "1521:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - } - }, - "id": 153, - "indexExpression": { - "id": 152, - "name": "_idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 110, - "src": "1530:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1521:14:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "baseExpression": { - "id": 154, - "name": "_votaAddrs", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "1537:10:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", - "typeString": "mapping(uint256 => address)" - } - }, - "id": 156, - "indexExpression": { - "id": 155, - "name": "_idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 110, - "src": "1548:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1537:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "id": 157, - "name": "txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 117, - "src": "1555:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - ], - "id": 150, - "name": "Record", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "1514:6:0", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_Record_$28_storage_ptr_$", - "typeString": "type(struct DoraBridge.Record storage pointer)" - } - }, - "id": 158, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1514:48:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1494:68:0" - }, - { - "expression": { - "id": 160, - "name": "res", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 149, - "src": "1580:3:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "functionReturnParameters": 115, - "id": 161, - "nodeType": "Return", - "src": "1573:10:0" - } - ] - }, - "functionSelector": "2c16cd8a", - "id": 163, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "record", - "nameLocation": "1220:6:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 111, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 110, - "mutability": "mutable", - "name": "_idx", - "nameLocation": "1235:4:0", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "1227:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 109, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1227:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "1226:14:0" - }, - "returnParameters": { - "id": 115, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 114, - "mutability": "mutable", - "name": "", - "nameLocation": "-1:-1:-1", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "1262:13:0", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record" - }, - "typeName": { - "id": 113, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 112, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "1262:6:0" - }, - "referencedDeclaration": 28, - "src": "1262:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "visibility": "internal" - } - ], - "src": "1261:15:0" - }, - "scope": 446, - "src": "1211:379:0", - "stateMutability": "view", - "virtual": false, - "visibility": "public" + "internalType": "address", + "name": "vota", + "type": "address" }, { - "body": { - "id": 217, - "nodeType": "Block", - "src": "1691:234:0", - "statements": [ - { - "assignments": [ - 176 - ], - "declarations": [ - { - "constant": false, - "id": 176, - "mutability": "mutable", - "name": "list", - "nameLocation": "1719:4:0", - "nodeType": "VariableDeclaration", - "scope": 217, - "src": "1701:22:0", - "stateVariable": false, - "storageLocation": "storage", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[]" - }, - "typeName": { - "baseType": { - "id": 174, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1701:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 175, - "nodeType": "ArrayTypeName", - "src": "1701:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[]" - } - }, - "visibility": "internal" - } - ], - "id": 180, - "initialValue": { - "baseExpression": { - "id": 177, - "name": "_usersRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 73, - "src": "1726:13:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", - "typeString": "mapping(address => uint256[] storage ref)" - } - }, - "id": 179, - "indexExpression": { - "id": 178, - "name": "_user", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 165, - "src": "1740:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1726:20:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage", - "typeString": "uint256[] storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1701:45:0" - }, - { - "assignments": [ - 182 - ], - "declarations": [ - { - "constant": false, - "id": 182, - "mutability": "mutable", - "name": "size", - "nameLocation": "1764:4:0", - "nodeType": "VariableDeclaration", - "scope": 217, - "src": "1756:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 181, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1756:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 185, - "initialValue": { - "expression": { - "id": 183, - "name": "list", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 176, - "src": "1771:4:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[] storage pointer" - } - }, - "id": 184, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "src": "1771:11:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1756:26:0" - }, - { - "expression": { - "id": 193, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 186, - "name": "results", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 170, - "src": "1793:7:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "arguments": [ - { - "id": 191, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 182, - "src": "1816:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 190, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "1803:12:0", - "typeDescriptions": { - "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_$", - "typeString": "function (uint256) pure returns (struct DoraBridge.Record memory[] memory)" - }, - "typeName": { - "baseType": { - "id": 188, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 187, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "1807:6:0" - }, - "referencedDeclaration": 28, - "src": "1807:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "id": 189, - "nodeType": "ArrayTypeName", - "src": "1807:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_storage_$dyn_storage_ptr", - "typeString": "struct DoraBridge.Record[]" - } - } - }, - "id": 192, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1803:18:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "src": "1793:28:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "id": 194, - "nodeType": "ExpressionStatement", - "src": "1793:28:0" - }, - { - "body": { - "id": 215, - "nodeType": "Block", - "src": "1866:53:0", - "statements": [ - { - "expression": { - "id": 213, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "baseExpression": { - "id": 205, - "name": "results", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 170, - "src": "1880:7:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "id": 207, - "indexExpression": { - "id": 206, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 196, - "src": "1888:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1880:10:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "arguments": [ - { - "baseExpression": { - "id": 209, - "name": "list", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 176, - "src": "1900:4:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[] storage pointer" - } - }, - "id": 211, - "indexExpression": { - "id": 210, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 196, - "src": "1905:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1900:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 208, - "name": "record", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 163, - "src": "1893:6:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_struct$_Record_$28_memory_ptr_$", - "typeString": "function (uint256) view returns (struct DoraBridge.Record memory)" - } - }, - "id": 212, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1893:15:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "src": "1880:28:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "id": 214, - "nodeType": "ExpressionStatement", - "src": "1880:28:0" - } - ] - }, - "condition": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 201, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 199, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 196, - "src": "1851:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "id": 200, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 182, - "src": "1855:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1851:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 216, - "initializationExpression": { - "assignments": [ - 196 - ], - "declarations": [ - { - "constant": false, - "id": 196, - "mutability": "mutable", - "name": "i", - "nameLocation": "1844:1:0", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "1836:9:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 195, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1836:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 198, - "initialValue": { - "hexValue": "30", - "id": 197, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1848:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "1836:13:0" - }, - "loopExpression": { - "expression": { - "id": 203, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1861:3:0", - "subExpression": { - "id": 202, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 196, - "src": "1861:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 204, - "nodeType": "ExpressionStatement", - "src": "1861:3:0" - }, - "nodeType": "ForStatement", - "src": "1831:88:0" - } - ] - }, - "functionSelector": "c06ac6a3", - "id": 218, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "recordOf", - "nameLocation": "1605:8:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 166, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 165, - "mutability": "mutable", - "name": "_user", - "nameLocation": "1631:5:0", - "nodeType": "VariableDeclaration", - "scope": 218, - "src": "1623:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 164, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1623:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - } - ], - "src": "1613:29:0" - }, - "returnParameters": { - "id": 171, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 170, - "mutability": "mutable", - "name": "results", - "nameLocation": "1682:7:0", - "nodeType": "VariableDeclaration", - "scope": 218, - "src": "1666:23:0", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record[]" - }, - "typeName": { - "baseType": { - "id": 168, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 167, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "1666:6:0" - }, - "referencedDeclaration": 28, - "src": "1666:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "id": 169, - "nodeType": "ArrayTypeName", - "src": "1666:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_storage_$dyn_storage_ptr", - "typeString": "struct DoraBridge.Record[]" - } - }, - "visibility": "internal" - } - ], - "src": "1665:25:0" - }, - "scope": 446, - "src": "1596:329:0", - "stateMutability": "view", - "virtual": false, - "visibility": "external" - }, + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" + } + ], + "internalType": "struct DoraBridge.Record[]", + "name": "results", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_count", + "type": "uint256" + } + ], + "name": "getUnprocessedRecords", + "outputs": [ + { + "internalType": "uint256", + "name": "size", + "type": "uint256" + }, + { + "components": [ { - "body": { - "id": 290, - "nodeType": "Block", - "src": "2054:368:0", - "statements": [ - { - "expression": { - "id": 233, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 229, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 223, - "src": "2064:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 232, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 230, - "name": "totalRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "2071:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "id": 231, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "2086:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2071:31:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2064:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 234, - "nodeType": "ExpressionStatement", - "src": "2064:38:0" - }, - { - "condition": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 237, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 235, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 223, - "src": "2116:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "id": 236, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 220, - "src": "2123:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2116:13:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 243, - "nodeType": "IfStatement", - "src": "2112:57:0", - "trueBody": { - "id": 242, - "nodeType": "Block", - "src": "2131:38:0", - "statements": [ - { - "expression": { - "id": 240, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 238, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 223, - "src": "2145:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 239, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 220, - "src": "2152:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2145:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 241, - "nodeType": "ExpressionStatement", - "src": "2145:13:0" - } - ] - } - }, - { - "expression": { - "id": 251, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 244, - "name": "records", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 227, - "src": "2178:7:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "arguments": [ - { - "id": 249, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 223, - "src": "2201:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 248, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "2188:12:0", - "typeDescriptions": { - "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr_$", - "typeString": "function (uint256) pure returns (struct DoraBridge.Record memory[] memory)" - }, - "typeName": { - "baseType": { - "id": 246, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 245, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "2192:6:0" - }, - "referencedDeclaration": 28, - "src": "2192:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "id": 247, - "nodeType": "ArrayTypeName", - "src": "2192:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_storage_$dyn_storage_ptr", - "typeString": "struct DoraBridge.Record[]" - } - } - }, - "id": 250, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2188:18:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "src": "2178:28:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "id": 252, - "nodeType": "ExpressionStatement", - "src": "2178:28:0" - }, - { - "assignments": [ - 254 - ], - "declarations": [ - { - "constant": false, - "id": 254, - "mutability": "mutable", - "name": "idx", - "nameLocation": "2225:3:0", - "nodeType": "VariableDeclaration", - "scope": 290, - "src": "2217:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 253, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2217:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 256, - "initialValue": { - "id": 255, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "2231:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "2217:30:0" - }, - { - "body": { - "id": 288, - "nodeType": "Block", - "src": "2292:124:0", - "statements": [ - { - "expression": { - "id": 274, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "expression": { - "baseExpression": { - "id": 267, - "name": "records", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 227, - "src": "2306:7:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "id": 269, - "indexExpression": { - "id": 268, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 258, - "src": "2314:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2306:10:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "id": 270, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "memberName": "amount", - "nodeType": "MemberAccess", - "referencedDeclaration": 23, - "src": "2306:17:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "baseExpression": { - "id": 271, - "name": "_amounts", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 49, - "src": "2326:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - } - }, - "id": 273, - "indexExpression": { - "id": 272, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 254, - "src": "2335:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2326:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2306:33:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 275, - "nodeType": "ExpressionStatement", - "src": "2306:33:0" - }, - { - "expression": { - "id": 283, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "expression": { - "baseExpression": { - "id": 276, - "name": "records", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 227, - "src": "2353:7:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record memory[] memory" - } - }, - "id": 278, - "indexExpression": { - "id": 277, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 258, - "src": "2361:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2353:10:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_memory_ptr", - "typeString": "struct DoraBridge.Record memory" - } - }, - "id": 279, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "memberName": "vota", - "nodeType": "MemberAccess", - "referencedDeclaration": 25, - "src": "2353:15:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "baseExpression": { - "id": 280, - "name": "_votaAddrs", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "2371:10:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", - "typeString": "mapping(uint256 => address)" - } - }, - "id": 282, - "indexExpression": { - "id": 281, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 254, - "src": "2382:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2371:15:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "2353:33:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 284, - "nodeType": "ExpressionStatement", - "src": "2353:33:0" - }, - { - "expression": { - "id": 286, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "2400:5:0", - "subExpression": { - "id": 285, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 254, - "src": "2400:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 287, - "nodeType": "ExpressionStatement", - "src": "2400:5:0" - } - ] - }, - "condition": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 263, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 261, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 258, - "src": "2277:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "id": 262, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 223, - "src": "2281:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2277:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 289, - "initializationExpression": { - "assignments": [ - 258 - ], - "declarations": [ - { - "constant": false, - "id": 258, - "mutability": "mutable", - "name": "i", - "nameLocation": "2270:1:0", - "nodeType": "VariableDeclaration", - "scope": 289, - "src": "2262:9:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 257, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2262:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 260, - "initialValue": { - "hexValue": "30", - "id": 259, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2274:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "2262:13:0" - }, - "loopExpression": { - "expression": { - "id": 265, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "2287:3:0", - "subExpression": { - "id": 264, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 258, - "src": "2287:1:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 266, - "nodeType": "ExpressionStatement", - "src": "2287:3:0" - }, - "nodeType": "ForStatement", - "src": "2257:159:0" - } - ] - }, - "functionSelector": "fad3fe18", - "id": 291, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "getUnprocessedRecords", - "nameLocation": "1940:21:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 221, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 220, - "mutability": "mutable", - "name": "_count", - "nameLocation": "1979:6:0", - "nodeType": "VariableDeclaration", - "scope": 291, - "src": "1971:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 219, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1971:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "1961:30:0" - }, - "returnParameters": { - "id": 228, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 223, - "mutability": "mutable", - "name": "size", - "nameLocation": "2023:4:0", - "nodeType": "VariableDeclaration", - "scope": 291, - "src": "2015:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 222, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2015:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 227, - "mutability": "mutable", - "name": "records", - "nameLocation": "2045:7:0", - "nodeType": "VariableDeclaration", - "scope": 291, - "src": "2029:23:0", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_memory_ptr_$dyn_memory_ptr", - "typeString": "struct DoraBridge.Record[]" - }, - "typeName": { - "baseType": { - "id": 225, - "nodeType": "UserDefinedTypeName", - "pathNode": { - "id": 224, - "name": "Record", - "nodeType": "IdentifierPath", - "referencedDeclaration": 28, - "src": "2029:6:0" - }, - "referencedDeclaration": 28, - "src": "2029:6:0", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Record_$28_storage_ptr", - "typeString": "struct DoraBridge.Record" - } - }, - "id": 226, - "nodeType": "ArrayTypeName", - "src": "2029:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_struct$_Record_$28_storage_$dyn_storage_ptr", - "typeString": "struct DoraBridge.Record[]" - } - }, - "visibility": "internal" - } - ], - "src": "2014:39:0" - }, - "scope": 446, - "src": "1931:491:0", - "stateMutability": "view", - "virtual": false, - "visibility": "external" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "body": { - "id": 357, - "nodeType": "Block", - "src": "2489:438:0", - "statements": [ - { - "expression": { - "arguments": [ - { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 301, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 299, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 293, - "src": "2507:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "id": 300, - "name": "amountThreshold", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 21, - "src": "2518:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2507:26:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "hexValue": "616d6f756e7420746f6f206c6f77", - "id": 302, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2535:16:0", - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd", - "typeString": "literal_string \"amount too low\"" - }, - "value": "amount too low" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_4a42219429419217897ae858b345308b47e6ecbd297a7e7e3d7e5a3a919d46dd", - "typeString": "literal_string \"amount too low\"" - } - ], - "id": 298, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "2499:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 303, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2499:53:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 304, - "nodeType": "ExpressionStatement", - "src": "2499:53:0" - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "expression": { - "id": 308, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 4294967281, - "src": "2603:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 309, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "src": "2603:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "arguments": [ - { - "hexValue": "31", - "id": 312, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2623:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - } - ], - "id": 311, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "2615:7:0", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": { - "id": 310, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2615:7:0", - "typeDescriptions": {} - } - }, - "id": 313, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2615:10:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "id": 314, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 293, - "src": "2627:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "id": 306, - "name": "token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 16, - "src": "2584:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$13", - "typeString": "contract ERC20" - } - }, - "id": 307, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transferFrom", - "nodeType": "MemberAccess", - "referencedDeclaration": 12, - "src": "2584:18:0", - "typeDescriptions": { - "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$", - "typeString": "function (address,address,uint256) external returns (bool)" - } - }, - "id": 315, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2584:51:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "hexValue": "7472616e73666572206572726f72", - "id": 316, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2649:16:0", - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96", - "typeString": "literal_string \"transfer error\"" - }, - "value": "transfer error" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_baabc2325ab24f1ef53c2a1597aa8e1538532aa7bda6f7cfed05f626a2f1ab96", - "typeString": "literal_string \"transfer error\"" - } - ], - "id": 305, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "2563:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 317, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2563:112:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 318, - "nodeType": "ExpressionStatement", - "src": "2563:112:0" - }, - { - "assignments": [ - 320 - ], - "declarations": [ - { - "constant": false, - "id": 320, - "mutability": "mutable", - "name": "idx", - "nameLocation": "2694:3:0", - "nodeType": "VariableDeclaration", - "scope": 357, - "src": "2686:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 319, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2686:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 322, - "initialValue": { - "id": 321, - "name": "totalRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "2700:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "2686:26:0" - }, - { - "expression": { - "id": 327, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "baseExpression": { - "id": 323, - "name": "_amounts", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 49, - "src": "2722:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - } - }, - "id": 325, - "indexExpression": { - "id": 324, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 320, - "src": "2731:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "2722:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 326, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 293, - "src": "2738:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2722:23:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 328, - "nodeType": "ExpressionStatement", - "src": "2722:23:0" - }, - { - "expression": { - "id": 333, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "baseExpression": { - "id": 329, - "name": "_votaAddrs", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "2755:10:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", - "typeString": "mapping(uint256 => address)" - } - }, - "id": 331, - "indexExpression": { - "id": 330, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 320, - "src": "2766:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "2755:15:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 332, - "name": "_votaAddr", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "2773:9:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "2755:27:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 334, - "nodeType": "ExpressionStatement", - "src": "2755:27:0" - }, - { - "expression": { - "arguments": [ - { - "id": 340, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 320, - "src": "2824:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "baseExpression": { - "id": 335, - "name": "_usersRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 73, - "src": "2793:13:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", - "typeString": "mapping(address => uint256[] storage ref)" - } - }, - "id": 338, - "indexExpression": { - "expression": { - "id": 336, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 4294967281, - "src": "2807:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 337, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "src": "2807:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2793:25:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage", - "typeString": "uint256[] storage ref" - } - }, - "id": 339, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "src": "2793:30:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_uint256_$dyn_storage_ptr_$_t_uint256_$returns$__$bound_to$_t_array$_t_uint256_$dyn_storage_ptr_$", - "typeString": "function (uint256[] storage pointer,uint256)" - } - }, - "id": 341, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2793:35:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 342, - "nodeType": "ExpressionStatement", - "src": "2793:35:0" - }, - { - "expression": { - "id": 347, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 343, - "name": "totalRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "2839:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 346, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 344, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 320, - "src": "2854:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "hexValue": "31", - "id": 345, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2860:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "2854:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2839:22:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 348, - "nodeType": "ExpressionStatement", - "src": "2839:22:0" - }, - { - "eventCall": { - "arguments": [ - { - "id": 350, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 320, - "src": "2884:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "expression": { - "id": 351, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 4294967281, - "src": "2889:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 352, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "src": "2889:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "id": 353, - "name": "_votaAddr", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "2901:9:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "id": 354, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 293, - "src": "2912:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 349, - "name": "Submit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 83, - "src": "2877:6:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (uint256,address,address,uint256)" - } - }, - "id": 355, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2877:43:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 356, - "nodeType": "EmitStatement", - "src": "2872:48:0" - } - ] - }, - "functionSelector": "f532e86a", - "id": 358, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "submit", - "nameLocation": "2437:6:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 296, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 293, - "mutability": "mutable", - "name": "_amount", - "nameLocation": "2452:7:0", - "nodeType": "VariableDeclaration", - "scope": 358, - "src": "2444:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 292, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2444:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 295, - "mutability": "mutable", - "name": "_votaAddr", - "nameLocation": "2469:9:0", - "nodeType": "VariableDeclaration", - "scope": 358, - "src": "2461:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 294, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2461:7:0", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "visibility": "internal" - } - ], - "src": "2443:36:0" - }, - "returnParameters": { - "id": 297, - "nodeType": "ParameterList", - "parameters": [], - "src": "2489:0:0" - }, - "scope": 446, - "src": "2428:499:0", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "external" + "internalType": "address", + "name": "vota", + "type": "address" }, { - "body": { - "id": 444, - "nodeType": "Block", - "src": "2992:616:0", - "statements": [ - { - "expression": { - "arguments": [ - { - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 369, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "expression": { - "id": 366, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 4294967281, - "src": "3010:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 367, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "src": "3010:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "id": 368, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 18, - "src": "3024:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "3010:19:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 365, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "3002:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 370, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3002:28:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 371, - "nodeType": "ExpressionStatement", - "src": "3002:28:0" - }, - { - "expression": { - "arguments": [ - { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 373, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 362, - "src": "3048:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "hexValue": "30", - "id": 374, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "3057:1:0", - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "3048:10:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 372, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "3040:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 376, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3040:19:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 377, - "nodeType": "ExpressionStatement", - "src": "3040:19:0" - }, - { - "expression": { - "arguments": [ - { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 383, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 381, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 379, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "3077:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "id": 380, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 362, - "src": "3096:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3077:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "id": 382, - "name": "totalRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "3106:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3077:41:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 378, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "3069:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 384, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3069:50:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 385, - "nodeType": "ExpressionStatement", - "src": "3069:50:0" - }, - { - "expression": { - "arguments": [ - { - "id": 390, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "3137:22:0", - "subExpression": { - "baseExpression": { - "id": 387, - "name": "_txHashesMap", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 68, - "src": "3138:12:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", - "typeString": "mapping(bytes32 => bool)" - } - }, - "id": 389, - "indexExpression": { - "id": 388, - "name": "_txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 360, - "src": "3151:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3138:21:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 386, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 4294967278, - 4294967278 - ], - "referencedDeclaration": 4294967278, - "src": "3129:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3129:31:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "ExpressionStatement", - "src": "3129:31:0" - }, - { - "expression": { - "id": 397, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "baseExpression": { - "id": 393, - "name": "_txHashesMap", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 68, - "src": "3171:12:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", - "typeString": "mapping(bytes32 => bool)" - } - }, - "id": 395, - "indexExpression": { - "id": 394, - "name": "_txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 360, - "src": "3184:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "3171:21:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "hexValue": "74727565", - "id": 396, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "3195:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "3171:28:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 398, - "nodeType": "ExpressionStatement", - "src": "3171:28:0" - }, - { - "expression": { - "arguments": [ - { - "id": 402, - "name": "_txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 360, - "src": "3225:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - ], - "expression": { - "id": 399, - "name": "_txHashes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 64, - "src": "3210:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", - "typeString": "bytes32[] storage ref" - } - }, - "id": 401, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "src": "3210:14:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_bytes32_$dyn_storage_ptr_$_t_bytes32_$returns$__$bound_to$_t_array$_t_bytes32_$dyn_storage_ptr_$", - "typeString": "function (bytes32[] storage pointer,bytes32)" - } - }, - "id": 403, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3210:23:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 404, - "nodeType": "ExpressionStatement", - "src": "3210:23:0" - }, - { - "assignments": [ - 406 - ], - "declarations": [ - { - "constant": false, - "id": 406, - "mutability": "mutable", - "name": "txHashIdx", - "nameLocation": "3251:9:0", - "nodeType": "VariableDeclaration", - "scope": 444, - "src": "3243:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 405, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3243:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 409, - "initialValue": { - "expression": { - "id": 407, - "name": "_txHashes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 64, - "src": "3263:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", - "typeString": "bytes32[] storage ref" - } - }, - "id": 408, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "src": "3263:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "3243:36:0" - }, - { - "assignments": [ - 411 - ], - "declarations": [ - { - "constant": false, - "id": 411, - "mutability": "mutable", - "name": "idx", - "nameLocation": "3298:3:0", - "nodeType": "VariableDeclaration", - "scope": 444, - "src": "3290:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 410, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3290:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 413, - "initialValue": { - "id": 412, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "3304:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "3290:30:0" - }, - { - "assignments": [ - 415 - ], - "declarations": [ - { - "constant": false, - "id": 415, - "mutability": "mutable", - "name": "newProcessedRecords", - "nameLocation": "3338:19:0", - "nodeType": "VariableDeclaration", - "scope": 444, - "src": "3330:27:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 414, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3330:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "id": 419, - "initialValue": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 418, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 416, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "3360:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "id": 417, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 362, - "src": "3379:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3360:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "3330:55:0" - }, - { - "body": { - "id": 432, - "nodeType": "Block", - "src": "3436:56:0", - "statements": [ - { - "expression": { - "id": 430, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "baseExpression": { - "id": 426, - "name": "_txHashIndexes", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 57, - "src": "3450:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", - "typeString": "mapping(uint256 => uint256)" - } - }, - "id": 428, - "indexExpression": { - "id": 427, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 411, - "src": "3465:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "3450:19:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 429, - "name": "txHashIdx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 406, - "src": "3472:9:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3450:31:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 431, - "nodeType": "ExpressionStatement", - "src": "3450:31:0" - } - ] - }, - "condition": { - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 422, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "id": 420, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 411, - "src": "3402:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "id": 421, - "name": "newProcessedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "3408:19:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3402:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 433, - "loopExpression": { - "expression": { - "id": 424, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "3429:5:0", - "subExpression": { - "id": 423, - "name": "idx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 411, - "src": "3429:3:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 425, - "nodeType": "ExpressionStatement", - "src": "3429:5:0" - }, - "nodeType": "ForStatement", - "src": "3395:97:0" - }, - { - "expression": { - "id": 436, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "id": 434, - "name": "processedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 61, - "src": "3502:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "id": 435, - "name": "newProcessedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "3521:19:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3502:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 437, - "nodeType": "ExpressionStatement", - "src": "3502:38:0" - }, - { - "eventCall": { - "arguments": [ - { - "id": 439, - "name": "_txHash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 360, - "src": "3564:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - { - "id": 440, - "name": "_count", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 362, - "src": "3573:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "id": 441, - "name": "newProcessedRecords", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "3581:19:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 438, - "name": "Process", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 91, - "src": "3556:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$", - "typeString": "function (bytes32,uint256,uint256)" - } - }, - "id": 442, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3556:45:0", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 443, - "nodeType": "EmitStatement", - "src": "3551:50:0" - } - ] - }, - "functionSelector": "acfd6ce6", - "id": 445, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "process", - "nameLocation": "2942:7:0", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 363, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 360, - "mutability": "mutable", - "name": "_txHash", - "nameLocation": "2958:7:0", - "nodeType": "VariableDeclaration", - "scope": 445, - "src": "2950:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 359, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "2950:7:0", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "visibility": "internal" - }, - { - "constant": false, - "id": 362, - "mutability": "mutable", - "name": "_count", - "nameLocation": "2975:6:0", - "nodeType": "VariableDeclaration", - "scope": 445, - "src": "2967:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 361, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2967:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "visibility": "internal" - } - ], - "src": "2949:33:0" - }, - "returnParameters": { - "id": 364, - "nodeType": "ParameterList", - "parameters": [], - "src": "2992:0:0" - }, - "scope": 446, - "src": "2933:675:0", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "external" + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" } ], - "scope": 447, - "src": "157:3453:0", - "usedErrors": [] + "internalType": "struct DoraBridge.Record[]", + "name": "records", + "type": "tuple[]" } ], - "src": "32:3579:0" + "stateMutability": "view", + "type": "function" }, - "compiler": { - "name": "solc", - "version": "0.8.13+commit.abaa5c0e.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "3.4.16", - "updatedAt": "2024-09-20T16:51:47.408Z", - "devdoc": { - "kind": "dev", - "methods": {}, - "version": 1 + { + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_votaAddr", + "type": "address" + } + ], + "name": "submit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_txHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_count", + "type": "uint256" + } + ], + "name": "process", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } -} \ No newline at end of file +] \ No newline at end of file