5312 lines
376 KiB
JSON
5312 lines
376 KiB
JSON
{
|
|
"contractName": "OpenSource",
|
|
"abi": [
|
|
{
|
|
"inputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "token_name",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "owner",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "total_supply",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "string[]",
|
|
"name": "username",
|
|
"type": "string[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "balance",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"name": "createRepo",
|
|
"outputs": [
|
|
{
|
|
"internalType": "int256",
|
|
"name": "",
|
|
"type": "int256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "username",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "selectUserAllBalance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string[]",
|
|
"name": "",
|
|
"type": "string[]"
|
|
},
|
|
{
|
|
"internalType": "string[]",
|
|
"name": "",
|
|
"type": "string[]"
|
|
},
|
|
{
|
|
"internalType": "int256[]",
|
|
"name": "",
|
|
"type": "int256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"metadata": "{\"compiler\":{\"version\":\"0.7.0+commit.9e61f92b\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"token_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"owner\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"total_supply\",\"type\":\"uint256\"},{\"internalType\":\"string[]\",\"name\":\"username\",\"type\":\"string[]\"},{\"internalType\":\"uint256[]\",\"name\":\"balance\",\"type\":\"uint256[]\"}],\"name\":\"createRepo\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"username\",\"type\":\"string\"}],\"name\":\"selectUserAllBalance\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"},{\"internalType\":\"int256[]\",\"name\":\"\",\"type\":\"int256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/qiubing/\\u684c\\u9762/trustie-fisco-bcos/contract/opensource/opensource.sol\":\"OpenSource\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/qiubing/\\u684c\\u9762/trustie-fisco-bcos/contract/opensource/Table.sol\":{\"keccak256\":\"0x889fa74c239f73768a278affdfcb8d869650f3732308390982943ec640590196\",\"urls\":[\"bzz-raw://ef4984fd064d08dab682c2e6092d12f6cfcce9acc2ff7b22b638b42127f24424\",\"dweb:/ipfs/QmR5ypx4Wemy3Qp6Sea2XVTy6U3QJbVczh4JWDRDPEiuGc\"]},\"/home/qiubing/\\u684c\\u9762/trustie-fisco-bcos/contract/opensource/opensource.sol\":{\"keccak256\":\"0xe2b2e17b9bd4b10bc240f4165b120e6eece270f2dd165f9a983da7fd9400d2f0\",\"urls\":[\"bzz-raw://ca6598ee1976e3b9420a03dbfc1ed8765d6c00ce378774f4cae9e6da7a12f534\",\"dweb:/ipfs/QmPqpsgVSLzaLKk9dPDeFFZo8FDzTmsGUbrV93a6FzmD3b\"]}},\"version\":1}",
|
|
"bytecode": "60806040523480156200001157600080fd5b50600080546001600160a01b03191661100117908190556040805180820182526004808252637265706f60e01b60208301529151632b0025b560e11b81526001600160a01b0393909316926356004b6a926200006f9291016200023b565b602060405180830381600087803b1580156200008a57600080fd5b505af11580156200009f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000c591906200016c565b506000546040805180820182526004808252633ab9b2b960e11b60208301529151632b0025b560e11b81526001600160a01b03909316926356004b6a926200010f929101620001d3565b602060405180830381600087803b1580156200012a57600080fd5b505af11580156200013f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016591906200016c565b50620002a9565b6000602082840312156200017e578081fd5b5051919050565b60008151808452815b81811015620001ac576020818501810151868301820152016200018e565b81811115620001be5782602083870101525b50601f01601f19169290920160200192915050565b600060608252620001e8606083018462000185565b82810380602085015260048252633ab9b2b960e11b6020830152604081016040850152506012604082015271746f6b656e5f6e616d652c62616c616e636560701b60608201526080810191505092915050565b60006060825262000250606083018462000185565b828103806020850152600a825269746f6b656e5f6e616d6560b01b60208301526040810160408501525060126040820152716f776e65722c746f74616c5f737570706c7960701b60608201526080810191505092915050565b6114a980620002b96000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806383e9c79f1461003b578063c50573fa14610064575b600080fd5b61004e610049366004611084565b610086565b60405161005b9190611284565b60405180910390f35b610077610072366004610fdf565b610748565b60405161005b9392919061121c565b600061009186610cc4565b1515600114156100a557506103e81961073f565b6000805b83518110156100d5578381815181106100be57fe5b6020026020010151820191508060010190506100a9565b818610156100ea576103e9199250505061073f565b600080546040805180820182526004808252637265706f60e01b6020830152915163f23f63c960e01b81526001600160a01b039093169263f23f63c99261013292910161128d565b60206040518083038186803b15801561014a57600080fd5b505afa15801561015e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101829190610fa4565b600080546040805180820182526004808252633ab9b2b960e11b6020830152915163f23f63c960e01b815294955092936001600160a01b039092169263f23f63c9926101ce920161128d565b60206040518083038186803b1580156101e657600080fd5b505afa1580156101fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021e9190610fa4565b90506000826001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102939190610fa4565b6040516374a15a8b60e11b81529091506001600160a01b0382169063e942b516906102c2908e90600401611363565b600060405180830381600087803b1580156102dc57600080fd5b505af11580156102f0573d6000803e3d6000fd5b50506040516374a15a8b60e11b81526001600160a01b038416925063e942b5169150610320908d906004016112ca565b600060405180830381600087803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b5050604051638a42ebe960e01b81526001600160a01b0384169250638a42ebe9915061037e908c906004016112f9565b600060405180830381600087803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50506040516318d7d61b60e11b8152600092506001600160a01b03861691506331afac36906103e1908f9086906004016112a0565b602060405180830381600087803b1580156103fb57600080fd5b505af115801561040f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104339190610fc7565b90508060011461044a57955061073f945050505050565b6000836001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561048557600080fd5b505afa158015610499573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bd9190610fa4565b9050600095505b885186101561073657836001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e9190610fa4565b9050826001600160a01b031663e942b5168b888151811061055b57fe5b60200260200101516040518263ffffffff1660e01b815260040161057f919061133f565b600060405180830381600087803b15801561059957600080fd5b505af11580156105ad573d6000803e3d6000fd5b50505050826001600160a01b031663e942b5168e6040518263ffffffff1660e01b81526004016105dd9190611363565b600060405180830381600087803b1580156105f757600080fd5b505af115801561060b573d6000803e3d6000fd5b50505050826001600160a01b0316638a42ebe98a888151811061062a57fe5b60200260200101516040518263ffffffff1660e01b815260040161064e9190611397565b600060405180830381600087803b15801561066857600080fd5b505af115801561067c573d6000803e3d6000fd5b50505050836001600160a01b03166331afac368b888151811061069b57fe5b6020026020010151836040518363ffffffff1660e01b81526004016106c19291906112a0565b602060405180830381600087803b1580156106db57600080fd5b505af11580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190610fc7565b91508160011461072b5750955061073f945050505050565b8560010195506104c4565b50955050505050505b95945050505050565b600080546040805180820182526004808252633ab9b2b960e11b6020830152915163f23f63c960e01b81526060948594859491936001600160a01b039091169263f23f63c99261079992910161128d565b60206040518083038186803b1580156107b157600080fd5b505afa1580156107c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e99190610fa4565b90506000816001600160a01b0316637857d7c96040518163ffffffff1660e01b815260040160206040518083038186803b15801561082657600080fd5b505afa15801561083a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085e9190610fa4565b90506000826001600160a01b031663e8434e3988846040518363ffffffff1660e01b81526004016108909291906112a0565b60206040518083038186803b1580156108a857600080fd5b505afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e09190610fa4565b90506060816001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091d57600080fd5b505afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109559190610fc7565b67ffffffffffffffff8111801561096b57600080fd5b5060405190808252806020026020018201604052801561099f57816020015b606081526020019060019003908161098a5790505b5090506060826001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156109dd57600080fd5b505afa1580156109f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a159190610fc7565b67ffffffffffffffff81118015610a2b57600080fd5b50604051908082528060200260200182016040528015610a5f57816020015b6060815260200190600190039081610a4a5790505b5090506060836001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9d57600080fd5b505afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190610fc7565b67ffffffffffffffff81118015610aeb57600080fd5b50604051908082528060200260200182016040528015610b15578160200160208202803683370190505b50905060005b846001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c9190610fc7565b811215610cb35760405163042338cf60e51b81526000906001600160a01b0387169063846719e090610bc2908590600401611284565b60206040518083038186803b158015610bda57600080fd5b505afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c129190610fa4565b604051639c981fcb60e01b81529091506001600160a01b03821690639c981fcb90610c3f90600401611327565b60006040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c93919081019061101a565b858381518110610c9f57fe5b602090810291909101015250600101610b1b565b509199909850909650945050505050565b600080546040805180820182526004808252637265706f60e01b6020830152915163f23f63c960e01b815284936001600160a01b03169263f23f63c992610d0d9290910161128d565b60206040518083038186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d9190610fa4565b90506000816001600160a01b0316637857d7c96040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9a57600080fd5b505afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190610fa4565b90506000826001600160a01b031663e8434e3986846040518363ffffffff1660e01b8152600401610e049291906112a0565b60206040518083038186803b158015610e1c57600080fd5b505afa158015610e30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e549190610fa4565b90506000816001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e9157600080fd5b505afa158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec99190610fc7565b1315610edb5760019350505050610ee3565b600093505050505b919050565b600082601f830112610ef8578081fd5b8135610f0b610f06826113e7565b6113c0565b818152915060208083019084810181840286018201871015610f2c57600080fd5b60005b84811015610f4b57813584529282019290820190600101610f2f565b505050505092915050565b600082601f830112610f66578081fd5b8135610f74610f0682611407565b9150808252836020828501011115610f8b57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610fb5578081fd5b8151610fc08161145b565b9392505050565b600060208284031215610fd8578081fd5b5051919050565b600060208284031215610ff0578081fd5b813567ffffffffffffffff811115611006578182fd5b61101284828501610f56565b949350505050565b60006020828403121561102b578081fd5b815167ffffffffffffffff811115611041578182fd5b8201601f81018413611051578182fd5b805161105f610f0682611407565b818152856020838501011115611073578384fd5b61073f82602083016020860161142b565b600080600080600060a0868803121561109b578081fd5b853567ffffffffffffffff808211156110b2578283fd5b6110be89838a01610f56565b96506020915081880135818111156110d4578384fd5b6110e08a828b01610f56565b965050604088013594506060880135818111156110fb578384fd5b8801601f81018a1361110b578384fd5b8035611119610f06826113e7565b81815284810190838601875b8481101561114e5761113c8f898435890101610f56565b84529287019290870190600101611125565b50909750505050608089013592505080821115611169578283fd5b5061117688828901610ee8565b9150509295509295909350565b60008282518085526020808601955080818302840101818601855b848110156111cc57601f198684030189526111ba8383516111d9565b9884019892509083019060010161119e565b5090979650505050505050565b600081518084526111f181602086016020860161142b565b601f01601f19169290920160200192915050565b60048152633ab9b2b960e11b602082015260400190565b60006060825261122f6060830186611183565b6020838203818501526112428287611183565b84810360408601528551808252828701935090820190845b818110156112765784518352938301939183019160010161125a565b509098975050505050505050565b90815260200190565b600060208252610fc060208301846111d9565b6000604082526112b360408301856111d9565b905060018060a01b03831660208301529392505050565b600060408252600560408301526437bbb732b960d91b606083015260806020830152610fc060808301846111d9565b6040808252600c908201526b746f74616c5f737570706c7960a01b6060820152602081019190915260800190565b60006020825261133960208301611205565b92915050565b60006040825261135160408301611205565b828103602084015261101281856111d9565b600060408252600a604083015269746f6b656e5f6e616d6560b01b606083015260806020830152610fc060808301846111d9565b60408082526007908201526662616c616e636560c81b6060820152602081019190915260800190565b60405181810167ffffffffffffffff811182821017156113df57600080fd5b604052919050565b600067ffffffffffffffff8211156113fd578081fd5b5060209081020190565b600067ffffffffffffffff82111561141d578081fd5b50601f01601f191660200190565b60005b8381101561144657818101518382015260200161142e565b83811115611455576000848401525b50505050565b6001600160a01b038116811461147057600080fd5b5056fea26469706673582212206ab1ab7b0e2afbdbd1c9763b901257df3bd01935b3e2bb8c1a4b305eae0c245c64736f6c63430007000033",
|
|
"deployedBytecode": "608060405234801561001057600080fd5b50600436106100365760003560e01c806383e9c79f1461003b578063c50573fa14610064575b600080fd5b61004e610049366004611084565b610086565b60405161005b9190611284565b60405180910390f35b610077610072366004610fdf565b610748565b60405161005b9392919061121c565b600061009186610cc4565b1515600114156100a557506103e81961073f565b6000805b83518110156100d5578381815181106100be57fe5b6020026020010151820191508060010190506100a9565b818610156100ea576103e9199250505061073f565b600080546040805180820182526004808252637265706f60e01b6020830152915163f23f63c960e01b81526001600160a01b039093169263f23f63c99261013292910161128d565b60206040518083038186803b15801561014a57600080fd5b505afa15801561015e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101829190610fa4565b600080546040805180820182526004808252633ab9b2b960e11b6020830152915163f23f63c960e01b815294955092936001600160a01b039092169263f23f63c9926101ce920161128d565b60206040518083038186803b1580156101e657600080fd5b505afa1580156101fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021e9190610fa4565b90506000826001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102939190610fa4565b6040516374a15a8b60e11b81529091506001600160a01b0382169063e942b516906102c2908e90600401611363565b600060405180830381600087803b1580156102dc57600080fd5b505af11580156102f0573d6000803e3d6000fd5b50506040516374a15a8b60e11b81526001600160a01b038416925063e942b5169150610320908d906004016112ca565b600060405180830381600087803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b5050604051638a42ebe960e01b81526001600160a01b0384169250638a42ebe9915061037e908c906004016112f9565b600060405180830381600087803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50506040516318d7d61b60e11b8152600092506001600160a01b03861691506331afac36906103e1908f9086906004016112a0565b602060405180830381600087803b1580156103fb57600080fd5b505af115801561040f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104339190610fc7565b90508060011461044a57955061073f945050505050565b6000836001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561048557600080fd5b505afa158015610499573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bd9190610fa4565b9050600095505b885186101561073657836001600160a01b03166313db93466040518163ffffffff1660e01b815260040160206040518083038186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e9190610fa4565b9050826001600160a01b031663e942b5168b888151811061055b57fe5b60200260200101516040518263ffffffff1660e01b815260040161057f919061133f565b600060405180830381600087803b15801561059957600080fd5b505af11580156105ad573d6000803e3d6000fd5b50505050826001600160a01b031663e942b5168e6040518263ffffffff1660e01b81526004016105dd9190611363565b600060405180830381600087803b1580156105f757600080fd5b505af115801561060b573d6000803e3d6000fd5b50505050826001600160a01b0316638a42ebe98a888151811061062a57fe5b60200260200101516040518263ffffffff1660e01b815260040161064e9190611397565b600060405180830381600087803b15801561066857600080fd5b505af115801561067c573d6000803e3d6000fd5b50505050836001600160a01b03166331afac368b888151811061069b57fe5b6020026020010151836040518363ffffffff1660e01b81526004016106c19291906112a0565b602060405180830381600087803b1580156106db57600080fd5b505af11580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190610fc7565b91508160011461072b5750955061073f945050505050565b8560010195506104c4565b50955050505050505b95945050505050565b600080546040805180820182526004808252633ab9b2b960e11b6020830152915163f23f63c960e01b81526060948594859491936001600160a01b039091169263f23f63c99261079992910161128d565b60206040518083038186803b1580156107b157600080fd5b505afa1580156107c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e99190610fa4565b90506000816001600160a01b0316637857d7c96040518163ffffffff1660e01b815260040160206040518083038186803b15801561082657600080fd5b505afa15801561083a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085e9190610fa4565b90506000826001600160a01b031663e8434e3988846040518363ffffffff1660e01b81526004016108909291906112a0565b60206040518083038186803b1580156108a857600080fd5b505afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e09190610fa4565b90506060816001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091d57600080fd5b505afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109559190610fc7565b67ffffffffffffffff8111801561096b57600080fd5b5060405190808252806020026020018201604052801561099f57816020015b606081526020019060019003908161098a5790505b5090506060826001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156109dd57600080fd5b505afa1580156109f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a159190610fc7565b67ffffffffffffffff81118015610a2b57600080fd5b50604051908082528060200260200182016040528015610a5f57816020015b6060815260200190600190039081610a4a5790505b5090506060836001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9d57600080fd5b505afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190610fc7565b67ffffffffffffffff81118015610aeb57600080fd5b50604051908082528060200260200182016040528015610b15578160200160208202803683370190505b50905060005b846001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c9190610fc7565b811215610cb35760405163042338cf60e51b81526000906001600160a01b0387169063846719e090610bc2908590600401611284565b60206040518083038186803b158015610bda57600080fd5b505afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c129190610fa4565b604051639c981fcb60e01b81529091506001600160a01b03821690639c981fcb90610c3f90600401611327565b60006040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c93919081019061101a565b858381518110610c9f57fe5b602090810291909101015250600101610b1b565b509199909850909650945050505050565b600080546040805180820182526004808252637265706f60e01b6020830152915163f23f63c960e01b815284936001600160a01b03169263f23f63c992610d0d9290910161128d565b60206040518083038186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d9190610fa4565b90506000816001600160a01b0316637857d7c96040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9a57600080fd5b505afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190610fa4565b90506000826001600160a01b031663e8434e3986846040518363ffffffff1660e01b8152600401610e049291906112a0565b60206040518083038186803b158015610e1c57600080fd5b505afa158015610e30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e549190610fa4565b90506000816001600160a01b031663949d225d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e9157600080fd5b505afa158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec99190610fc7565b1315610edb5760019350505050610ee3565b600093505050505b919050565b600082601f830112610ef8578081fd5b8135610f0b610f06826113e7565b6113c0565b818152915060208083019084810181840286018201871015610f2c57600080fd5b60005b84811015610f4b57813584529282019290820190600101610f2f565b505050505092915050565b600082601f830112610f66578081fd5b8135610f74610f0682611407565b9150808252836020828501011115610f8b57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610fb5578081fd5b8151610fc08161145b565b9392505050565b600060208284031215610fd8578081fd5b5051919050565b600060208284031215610ff0578081fd5b813567ffffffffffffffff811115611006578182fd5b61101284828501610f56565b949350505050565b60006020828403121561102b578081fd5b815167ffffffffffffffff811115611041578182fd5b8201601f81018413611051578182fd5b805161105f610f0682611407565b818152856020838501011115611073578384fd5b61073f82602083016020860161142b565b600080600080600060a0868803121561109b578081fd5b853567ffffffffffffffff808211156110b2578283fd5b6110be89838a01610f56565b96506020915081880135818111156110d4578384fd5b6110e08a828b01610f56565b965050604088013594506060880135818111156110fb578384fd5b8801601f81018a1361110b578384fd5b8035611119610f06826113e7565b81815284810190838601875b8481101561114e5761113c8f898435890101610f56565b84529287019290870190600101611125565b50909750505050608089013592505080821115611169578283fd5b5061117688828901610ee8565b9150509295509295909350565b60008282518085526020808601955080818302840101818601855b848110156111cc57601f198684030189526111ba8383516111d9565b9884019892509083019060010161119e565b5090979650505050505050565b600081518084526111f181602086016020860161142b565b601f01601f19169290920160200192915050565b60048152633ab9b2b960e11b602082015260400190565b60006060825261122f6060830186611183565b6020838203818501526112428287611183565b84810360408601528551808252828701935090820190845b818110156112765784518352938301939183019160010161125a565b509098975050505050505050565b90815260200190565b600060208252610fc060208301846111d9565b6000604082526112b360408301856111d9565b905060018060a01b03831660208301529392505050565b600060408252600560408301526437bbb732b960d91b606083015260806020830152610fc060808301846111d9565b6040808252600c908201526b746f74616c5f737570706c7960a01b6060820152602081019190915260800190565b60006020825261133960208301611205565b92915050565b60006040825261135160408301611205565b828103602084015261101281856111d9565b600060408252600a604083015269746f6b656e5f6e616d6560b01b606083015260806020830152610fc060808301846111d9565b60408082526007908201526662616c616e636560c81b6060820152602081019190915260800190565b60405181810167ffffffffffffffff811182821017156113df57600080fd5b604052919050565b600067ffffffffffffffff8211156113fd578081fd5b5060209081020190565b600067ffffffffffffffff82111561141d578081fd5b50601f01601f191660200190565b60005b8381101561144657818101518382015260200161142e565b83811115611455576000848401525b50505050565b6001600160a01b038116811461147057600080fd5b5056fea26469706673582212206ab1ab7b0e2afbdbd1c9763b901257df3bd01935b3e2bb8c1a4b305eae0c245c64736f6c63430007000033",
|
|
"sourceMap": "91:3408:1:-:0;;;231:384;;;;;;;;;-1:-1:-1;262:12:1;:35;;-1:-1:-1;;;;;;262:35:1;290:6;262:35;;;;;485:10;;;;;;;;;;;;-1:-1:-1;;;485:10:1;;;;460:72;;-1:-1:-1;;;460:72:1;;-1:-1:-1;;;;;460:12:1;;;;;:24;;:72;;485:10;460:72;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;542:12:1;;567:10;;;;;;;;;;;;-1:-1:-1;;;567:10:1;;;;542:66;;-1:-1:-1;;;542:66:1;;-1:-1:-1;;;;;542:12:1;;;;:24;;:66;;567:10;542:66;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;91:3408;;144:261:-1;;258:2;246:9;237:7;233:23;229:32;226:2;;;-1:-1;;264:12;226:2;-1:-1;82:13;;220:185;-1:-1;220:185::o;412:347::-;;557:5;3993:12;4150:6;4145:3;4138:19;-1:-1;4357:101;4371:6;4368:1;4365:13;4357:101;;;4187:4;4438:11;;;;;4432:18;4419:11;;;;;4412:39;4386:10;4357:101;;;4473:6;4470:1;4467:13;4464:2;;;-1:-1;4187:4;4529:6;4182:3;4520:16;;4513:27;4464:2;-1:-1;4645:7;4629:14;-1:-1;;4625:28;715:39;;;;4187:4;715:39;;504:255;-1:-1;;504:255::o;2051:920::-;;2400:2;2421:17;2414:47;2475:78;2400:2;2389:9;2385:18;2539:6;2475:78;:::i;:::-;2601:9;2595:4;2591:20;;2586:2;2575:9;2571:18;2564:48;1645:1;4145:3;4138:19;-1:-1;;;2586:2;4182:3;4178:14;1660:27;2795:20;;;2790:2;2779:9;2775:18;2768:48;;1318:2;1706:12;4182:3;1706:12;4138:19;-1:-1;;;2400:2;4182:3;4178:14;1334:41;1394:12;4182:3;1394:12;2822:139;;;2371:600;;;;:::o;2978:920::-;;3327:2;3348:17;3341:47;3402:78;3327:2;3316:9;3312:18;3466:6;3402:78;:::i;:::-;3528:9;3522:4;3518:20;;3513:2;3502:9;3498:18;3491:48;1957:2;4145:3;4138:19;-1:-1;;;3513:2;4182:3;4178:14;1973:33;2025:12;3722:20;;2025:12;3706:9;3702:18;3695:48;;991:2;2025:12;4182:3;2025:12;4138:19;-1:-1;;;3327:2;4182:3;4178:14;1007:41;1067:12;4182:3;1067:12;3749:139;;;3298:600;;;;:::o;:::-;91:3408:1;;;;;;",
|
|
"deployedSourceMap": "91:3408:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;640:1483;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2160:968;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;640:1483::-;813:6;839:29;857:10;839:17;:29::i;:::-;:37;;872:4;839:37;835:80;;;-1:-1:-1;;;892:12:1;;835:80;924:21;;982:89;998:7;:14;994:1;:18;982:89;;;1050:7;1058:1;1050:10;;;;;;;;;;;;;;1033:27;;;;1014:3;;;;;982:89;;;1099:13;1084:12;:28;1080:71;;;-1:-1:-1;;1128:12:1;;;;;;1080:71;1160:16;1179:12;;1202:10;;;;;;;;;;;;-1:-1:-1;;;1202:10:1;;;;1179:34;;-1:-1:-1;;;1179:34:1;;-1:-1:-1;;;;;1179:12:1;;;;:22;;:34;;1202:10;1179:34;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1223:16;1242:12;;1265:10;;;;;;;;;;;;-1:-1:-1;;;1265:10:1;;;;1242:34;;-1:-1:-1;;;1242:34:1;;1160:53;;-1:-1:-1;1223:16:1;;-1:-1:-1;;;;;1242:12:1;;;;:22;;:34;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1223:53;;1287:16;1306:10;-1:-1:-1;;;;;1306:19:1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1337:40;;-1:-1:-1;;;1337:40:1;;1287;;-1:-1:-1;;;;;;1337:14:1;;;;;:40;;1366:10;;1337:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1387:30:1;;-1:-1:-1;;;1387:30:1;;-1:-1:-1;;;;;1387:14:1;;;-1:-1:-1;1387:14:1;;-1:-1:-1;1387:30:1;;1411:5;;1387:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1427:44:1;;-1:-1:-1;;;1427:44:1;;-1:-1:-1;;;;;1427:14:1;;;-1:-1:-1;1427:14:1;;-1:-1:-1;1427:44:1;;1458:12;;1427:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1497:41:1;;-1:-1:-1;;;1497:41:1;;1482:12;;-1:-1:-1;;;;;;1497:17:1;;;-1:-1:-1;1497:17:1;;:41;;1515:10;;1527;;1497:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1482:56;;1552:5;1561:1;1552:10;1548:53;;1585:5;-1:-1:-1;1578:12:1;;-1:-1:-1;;;;;1578:12:1;1548:53;1611:16;1630:10;-1:-1:-1;;;;;1630:19:1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1611:40;;1670:1;1666:5;;1661:388;1677:7;:14;1673:1;:18;1661:388;;;1725:10;-1:-1:-1;;;;;1725:19:1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1712:34;;1760:10;-1:-1:-1;;;;;1760:14:1;;1783:8;1792:1;1783:11;;;;;;;;;;;;;;1760:35;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1809:10;-1:-1:-1;;;;;1809:14:1;;1838:10;1809:40;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1863:10;-1:-1:-1;;;;;1863:14:1;;1889:7;1897:1;1889:10;;;;;;;;;;;;;;1863:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1922:10;-1:-1:-1;;;;;1922:17:1;;1940:8;1949:1;1940:11;;;;;;;;;;;;;;1953:10;1922:42;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1914:50;;1982:5;1991:1;1982:10;1978:61;;-1:-1:-1;2019:5:1;-1:-1:-1;2012:12:1;;-1:-1:-1;;;;;2012:12:1;1978:61;1693:3;;;;;1661:388;;;-1:-1:-1;2111:5:1;-1:-1:-1;;;;;;640:1483:1;;;;;;;;:::o;2160:968::-;2325:16;2344:12;;2367:10;;;;;;;;;;;;-1:-1:-1;;;2367:10:1;;;;2344:34;;-1:-1:-1;;;2344:34:1;;2260:15;;;;;;2325:16;;-1:-1:-1;;;;;2344:12:1;;;;:22;;:34;;2367:10;2344:34;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2325:53;;2389:19;2411:10;-1:-1:-1;;;;;2411:23:1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2389:47;;2447:15;2465:10;-1:-1:-1;;;;;2465:17:1;;2483:8;2493:9;2465:38;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2447:56;;2513:29;2566:7;-1:-1:-1;;;;;2566:12:1;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2545:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2513:69;;2592:31;2647:7;-1:-1:-1;;;;;2647:12:1;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2626:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2592:71;;2673:28;2725:7;-1:-1:-1;;;;;2725:12:1;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2704:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2704:37:1;;2673:68;;2757:8;2752:306;2775:7;-1:-1:-1;;;;;2775:12:1;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2771:1;:18;2752:306;;;2824:14;;-1:-1:-1;;;2824:14:1;;2810:11;;-1:-1:-1;;;;;2824:11:1;;;;;:14;;2836:1;;2824:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2881:23;;-1:-1:-1;;;2881:23:1;;2810:28;;-1:-1:-1;;;;;;2881:15:1;;;;;:23;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2881:23:1;;;;;;;;;;;;:::i;:::-;2853:13;2875:1;2853:25;;;;;;;;;;;;;;;;;:51;-1:-1:-1;2791:3:1;;2752:306;;;-1:-1:-1;3076:13:1;;3091:15;;-1:-1:-1;3076:13:1;;-1:-1:-1;2160:968:1;-1:-1:-1;;;;;2160:968:1:o;3135:362::-;3205:4;3240:12;;3263:10;;;;;;;;;;;;-1:-1:-1;;;3263:10:1;;;;3240:34;;-1:-1:-1;;;3240:34:1;;3205:4;;-1:-1:-1;;;;;3240:12:1;;:22;;:34;;3263:10;;3240:34;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3221:53;;3284:19;3306:10;-1:-1:-1;;;;;3306:23:1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3284:47;;3341:15;3359:10;-1:-1:-1;;;;;3359:17:1;;3377:10;3389:9;3359:40;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3341:58;;3430:1;3413:7;-1:-1:-1;;;;;3413:12:1;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:18;3409:60;;;3454:4;3447:11;;;;;;;3409:60;3485:5;3478:12;;;;;3135:362;;;;:::o;756:707:-1:-;;873:3;866:4;858:6;854:17;850:27;840:2;;-1:-1;;881:12;840:2;928:6;915:20;950:80;965:64;1022:6;965:64;:::i;:::-;950:80;:::i;:::-;1058:21;;;941:89;-1:-1;1102:4;1115:14;;;;1090:17;;;1204;;;1195:27;;;;1192:36;-1:-1;1189:2;;;1241:1;;1231:12;1189:2;1266:1;1251:206;1276:6;1273:1;1270:13;1251:206;;;3261:20;;1344:50;;1408:14;;;;1436;;;;1298:1;1291:9;1251:206;;;1255:14;;;;;833:630;;;;:::o;2291:442::-;;2393:3;2386:4;2378:6;2374:17;2370:27;2360:2;;-1:-1;;2401:12;2360:2;2448:6;2435:20;2470:65;2485:49;2527:6;2485:49;:::i;2470:65::-;2461:74;;2555:6;2548:5;2541:21;2659:3;2591:4;2650:6;2583;2641:16;;2638:25;2635:2;;;2676:1;;2666:12;2635:2;21982:6;2591:4;2583:6;2579:17;2591:4;2617:5;2613:16;21959:30;22038:1;22020:16;;;2591:4;22020:16;22013:27;2617:5;2353:380;-1:-1;;2353:380::o;3331:297::-;;3463:2;3451:9;3442:7;3438:23;3434:32;3431:2;;;-1:-1;;3469:12;3431:2;1572:6;1566:13;1584:50;1628:5;1584:50;:::i;:::-;3521:91;3425:203;-1:-1;;;3425:203::o;4527:261::-;;4641:2;4629:9;4620:7;4616:23;4612:32;4609:2;;;-1:-1;;4647:12;4609:2;-1:-1;2228:13;;4603:185;-1:-1;4603:185::o;4795:347::-;;4909:2;4897:9;4888:7;4884:23;4880:32;4877:2;;;-1:-1;;4915:12;4877:2;4973:17;4960:31;5011:18;5003:6;5000:30;4997:2;;;-1:-1;;5033:12;4997:2;5063:63;5118:7;5109:6;5098:9;5094:22;5063:63;:::i;:::-;5053:73;4871:271;-1:-1;;;;4871:271::o;5149:362::-;;5274:2;5262:9;5253:7;5249:23;5245:32;5242:2;;;-1:-1;;5280:12;5242:2;5331:17;5325:24;5369:18;5361:6;5358:30;5355:2;;;-1:-1;;5391:12;5355:2;5463:22;;2848:4;2836:17;;2832:27;-1:-1;2822:2;;-1:-1;;2863:12;2822:2;2903:6;2897:13;2925:65;2940:49;2982:6;2940:49;:::i;2925:65::-;3010:6;3003:5;2996:21;3114:3;5274:2;3105:6;3038;3096:16;;3093:25;3090:2;;;-1:-1;;3121:12;3090:2;3141:39;3173:6;5274:2;3072:5;3068:16;5274:2;3038:6;3034:17;3141:39;:::i;5518:1247::-;;;;;;5770:3;5758:9;5749:7;5745:23;5741:33;5738:2;;;-1:-1;;5777:12;5738:2;5835:17;5822:31;5873:18;;5865:6;5862:30;5859:2;;;-1:-1;;5895:12;5859:2;5925:63;5980:7;5971:6;5960:9;5956:22;5925:63;:::i;:::-;5915:73;;6053:2;;;;6042:9;6038:18;6025:32;5873:18;6069:6;6066:30;6063:2;;;-1:-1;;6099:12;6063:2;6129:63;6184:7;6175:6;6164:9;6160:22;6129:63;:::i;:::-;6119:73;;;6229:2;6272:9;6268:22;3261:20;6237:63;;6365:2;6354:9;6350:18;6337:32;5873:18;6381:6;6378:30;6375:2;;;-1:-1;;6411:12;6375:2;6497:22;;142:4;130:17;;126:27;-1:-1;116:2;;-1:-1;;157:12;116:2;204:6;191:20;226:90;241:74;308:6;241:74;:::i;226:90::-;344:21;;;401:14;;;;376:17;;;-1:-1;481:243;506:6;503:1;500:13;481:243;;;613:47;656:3;6053:2;589:3;576:17;380:6;564:30;;613:47;:::i;:::-;601:60;;675:14;;;;703;;;;528:1;521:9;481:243;;;-1:-1;6431:98;;-1:-1;;;;6594:3;6579:19;;6566:33;;-1:-1;;6608:30;;;6605:2;;;-1:-1;;6641:12;6605:2;;6671:78;6741:7;6732:6;6721:9;6717:22;6671:78;:::i;:::-;6661:88;;;5732:1033;;;;;;;;:::o;7900:928::-;;8051:78;8123:5;19211:12;19904:6;19899:3;19892:19;19941:4;;19936:3;19932:14;8135:103;;19941:4;;8295:6;8291:17;19936:3;8282:27;;19941:4;8390:5;18898:14;-1:-1;8429:360;8454:6;8451:1;8448:13;8429:360;;;8506:20;;19936:3;8510:4;8506:20;;8501:3;8494:33;7072:66;7134:3;8561:6;8555:13;7072:66;:::i;:::-;8768:14;;;;8575:92;-1:-1;19623:14;;;;8476:1;8469:9;8429:360;;;-1:-1;8812:10;;8044:784;-1:-1;;;;;;;8044:784::o;9386:327::-;;9521:5;19211:12;19904:6;19899:3;19892:19;9605:52;9650:6;19941:4;19936:3;19932:14;19941:4;9631:5;9627:16;9605:52;:::i;:::-;8506:20;22399:14;-1:-1;;22395:28;9669:39;;;;19941:4;9669:39;;9468:245;-1:-1;;9468:245::o;10709:303::-;10933:1;19892:19;;-1:-1;;;19941:4;19932:14;;10948:27;10994:12;;;10855:157::o;11774:964::-;;12145:2;12166:17;12159:47;12220:128;12145:2;12134:9;12130:18;12334:6;12220:128;:::i;:::-;12381:2;12396:9;12390:4;12386:20;12381:2;12370:9;12366:18;12359:48;12421:128;12544:4;12535:6;12421:128;:::i;:::-;12587:20;;;12582:2;12567:18;;12560:48;19211:12;;19892:19;;;18898:14;;;;-1:-1;19932:14;;;;-1:-1;7584:257;7609:6;7606:1;7603:13;7584:257;;;7670:13;;9221:36;;19623:14;;;;6922;;;;7631:1;7624:9;7584:257;;;-1:-1;12614:114;;12116:622;-1:-1;;;;;;;;12116:622::o;12745:218::-;9221:36;;;12870:2;12855:18;;12841:122::o;12970:310::-;;13117:2;13138:17;13131:47;13192:78;13117:2;13106:9;13102:18;13256:6;13192:78;:::i;13287:455::-;;13479:2;13500:17;13493:47;13554:78;13479:2;13468:9;13464:18;13618:6;13554:78;:::i;:::-;13546:86;;5011:18;;21190:42;;;20571:5;21179:54;13728:2;13717:9;13713:18;8924:67;13450:292;;;;;:::o;14203:615::-;;14451:2;14472:17;14465:47;10299:1;14451:2;14440:9;14436:18;19892:19;-1:-1;;;19932:14;14440:9;19932:14;10314:28;10361:12;19941:4;14679:9;14675:18;14668:48;14730:78;10361:12;14440:9;10361:12;14794:6;14730:78;:::i;14825:527::-;15053:2;15067:47;;;10612:2;15038:18;;;19892:19;-1:-1;;;19932:14;;;10628:35;19941:4;15323:18;;9221:36;;;;10682:12;;;15024:328::o;15359:416::-;;15559:2;15580:17;15573:47;15634:131;15559:2;15548:9;15544:18;15634:131;:::i;:::-;15626:139;15530:245;-1:-1;;15530:245::o;15782:615::-;;16030:2;16051:17;16044:47;16105:131;16030:2;16019:9;16015:18;16105:131;:::i;:::-;16284:9;16278:4;16274:20;16269:2;16258:9;16254:18;16247:48;16309:78;16382:4;16373:6;16309:78;:::i;16404:615::-;;16652:2;16673:17;16666:47;11245:2;16652;16641:9;16637:18;19892:19;-1:-1;;;19932:14;16641:9;19932:14;11261:33;11313:12;19941:4;16880:9;16876:18;16869:48;16931:78;11313:12;16641:9;11313:12;16995:6;16931:78;:::i;17026:527::-;17254:2;17268:47;;;11564:1;17239:18;;;19892:19;-1:-1;;;19932:14;;;11579:30;19941:4;17524:18;;9221:36;;;;11628:12;;;17225:328::o;17560:256::-;17622:2;17616:9;17648:17;;;17723:18;17708:34;;17744:22;;;17705:62;17702:2;;;17780:1;;17770:12;17702:2;17622;17789:22;17600:216;;-1:-1;17600:216::o;17823:314::-;;17992:18;17984:6;17981:30;17978:2;;;-1:-1;;18014:12;17978:2;-1:-1;18059:4;18047:17;;;18112:15;;17915:222::o;18455:322::-;;18599:18;18591:6;18588:30;18585:2;;;-1:-1;;18621:12;18585:2;-1:-1;8506:20;18675:17;-1:-1;;18671:33;18762:4;18752:15;;18522:255::o;22055:268::-;22120:1;22127:101;22141:6;22138:1;22135:13;22127:101;;;22208:11;;;22202:18;22189:11;;;22182:39;22163:2;22156:10;22127:101;;;22243:6;22240:1;22237:13;22234:2;;;22120:1;22299:6;22294:3;22290:16;22283:27;22234:2;;22104:219;;;:::o;22436:151::-;-1:-1;;;;;21179:54;;22512:52;;22502:2;;22578:1;;22568:12;22502:2;22496:91;:::o",
|
|
"sourcePath": "/home/qiubing/桌面/trustie-fisco-bcos/contract/opensource/opensource.sol",
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.7.0+commit.9e61f92b"
|
|
},
|
|
"ast": {
|
|
"absolutePath": "/home/qiubing/桌面/trustie-fisco-bcos/contract/opensource/opensource.sol",
|
|
"exportedSymbols": {
|
|
"OpenSource": [
|
|
691
|
|
]
|
|
},
|
|
"id": 692,
|
|
"license": null,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 304,
|
|
"literals": [
|
|
"solidity",
|
|
">=",
|
|
"0.4",
|
|
".24",
|
|
"<=",
|
|
"0.7",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:32:1"
|
|
},
|
|
{
|
|
"id": 305,
|
|
"literals": [
|
|
"experimental",
|
|
"ABIEncoderV2"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "33:33:1"
|
|
},
|
|
{
|
|
"absolutePath": "/home/qiubing/桌面/trustie-fisco-bcos/contract/opensource/Table.sol",
|
|
"file": "./Table.sol",
|
|
"id": 306,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 692,
|
|
"sourceUnit": 303,
|
|
"src": "68:21:1",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"documentation": null,
|
|
"fullyImplemented": true,
|
|
"id": 691,
|
|
"linearizedBaseContracts": [
|
|
691
|
|
],
|
|
"name": "OpenSource",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": false,
|
|
"id": 308,
|
|
"mutability": "mutable",
|
|
"name": "tableFactory",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 691,
|
|
"src": "117:25:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 307,
|
|
"name": "TableFactory",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 22,
|
|
"src": "117:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"id": 311,
|
|
"mutability": "constant",
|
|
"name": "REPO_TABLE",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 691,
|
|
"src": "148:35:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 309,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "148:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "7265706f",
|
|
"id": 310,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "177:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_bceafcdac7d4d1be7149d50319ec9a027b85708e52611751865285cb5f24811c",
|
|
"typeString": "literal_string \"repo\""
|
|
},
|
|
"value": "repo"
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"id": 314,
|
|
"mutability": "constant",
|
|
"name": "USER_TABLE",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 691,
|
|
"src": "189:35:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 312,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "189:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "75736572",
|
|
"id": 313,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "218:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
"value": "user"
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 339,
|
|
"nodeType": "Block",
|
|
"src": "252:363:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 321,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 317,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "262:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "307831303031",
|
|
"id": 319,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "290:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_4097_by_1",
|
|
"typeString": "int_const 4097"
|
|
},
|
|
"value": "0x1001"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_rational_4097_by_1",
|
|
"typeString": "int_const 4097"
|
|
}
|
|
],
|
|
"id": 318,
|
|
"name": "TableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 22,
|
|
"src": "277:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_TableFactory_$22_$",
|
|
"typeString": "type(contract TableFactory)"
|
|
}
|
|
},
|
|
"id": 320,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "277:20:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"src": "262:35:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 322,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "262:35:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 326,
|
|
"name": "REPO_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 311,
|
|
"src": "485:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "746f6b656e5f6e616d65",
|
|
"id": 327,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "497:12:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
"value": "token_name"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "6f776e65722c746f74616c5f737570706c79",
|
|
"id": 328,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "511:20:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_012e6228780046738e168539abfe18392b3ab4873d4dec8762f6d4c4c6450a2a",
|
|
"typeString": "literal_string \"owner,total_supply\""
|
|
},
|
|
"value": "owner,total_supply"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_012e6228780046738e168539abfe18392b3ab4873d4dec8762f6d4c4c6450a2a",
|
|
"typeString": "literal_string \"owner,total_supply\""
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 323,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "460:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 325,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "createTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 21,
|
|
"src": "460:24:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_int256_$",
|
|
"typeString": "function (string memory,string memory,string memory) external returns (int256)"
|
|
}
|
|
},
|
|
"id": 329,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "460:72:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 330,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "460:72:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 334,
|
|
"name": "USER_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 314,
|
|
"src": "567:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "75736572",
|
|
"id": 335,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "579:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
"value": "user"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "746f6b656e5f6e616d652c62616c616e6365",
|
|
"id": 336,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "587:20:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_32f289bef023601576ff5c4f2732e432c2d6b08b446f04a529188d54c8383832",
|
|
"typeString": "literal_string \"token_name,balance\""
|
|
},
|
|
"value": "token_name,balance"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_32f289bef023601576ff5c4f2732e432c2d6b08b446f04a529188d54c8383832",
|
|
"typeString": "literal_string \"token_name,balance\""
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 331,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "542:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 333,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "createTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 21,
|
|
"src": "542:24:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_int256_$",
|
|
"typeString": "function (string memory,string memory,string memory) external returns (int256)"
|
|
}
|
|
},
|
|
"id": 337,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "542:66:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 338,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "542:66:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 340,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 315,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "242:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 316,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "252:0:1"
|
|
},
|
|
"scope": 691,
|
|
"src": "231:384:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 527,
|
|
"nodeType": "Block",
|
|
"src": "825:1298:1",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"id": 361,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 358,
|
|
"name": "token_name",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 342,
|
|
"src": "857:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"id": 357,
|
|
"name": "judgeReposExisted",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 690,
|
|
"src": "839:17:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$returns$_t_bool_$",
|
|
"typeString": "function (string memory) returns (bool)"
|
|
}
|
|
},
|
|
"id": 359,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "839:29:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 360,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "872:4:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"src": "839:37:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": null,
|
|
"id": 366,
|
|
"nodeType": "IfStatement",
|
|
"src": "835:80:1",
|
|
"trueBody": {
|
|
"id": 365,
|
|
"nodeType": "Block",
|
|
"src": "878:37:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 363,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "-",
|
|
"prefix": true,
|
|
"src": "899:5:1",
|
|
"subExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "31303031",
|
|
"id": 362,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "900:4:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_1001_by_1",
|
|
"typeString": "int_const 1001"
|
|
},
|
|
"value": "1001"
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_minus_1001_by_1",
|
|
"typeString": "int_const -1001"
|
|
}
|
|
},
|
|
"functionReturnParameters": 356,
|
|
"id": 364,
|
|
"nodeType": "Return",
|
|
"src": "892:12:1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"assignments": [
|
|
368
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 368,
|
|
"mutability": "mutable",
|
|
"name": "total_balance",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "924:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 367,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "924:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 370,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 369,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "948:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "924:25:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
372
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 372,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "959:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 371,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "959:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 374,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 373,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "971:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "959:13:1"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 392,
|
|
"nodeType": "Block",
|
|
"src": "1019:52:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 390,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 386,
|
|
"name": "total_balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 368,
|
|
"src": "1033:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 387,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 352,
|
|
"src": "1050:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[] memory"
|
|
}
|
|
},
|
|
"id": 389,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 388,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1058:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1050:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1033:27:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 391,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1033:27:1"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 382,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 379,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "994:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 380,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 352,
|
|
"src": "998:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[] memory"
|
|
}
|
|
},
|
|
"id": 381,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "998:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "994:18:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 393,
|
|
"initializationExpression": {
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 377,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 375,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "987:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 376,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "991:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "987:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 378,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "987:5:1"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 384,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": true,
|
|
"src": "1014:3:1",
|
|
"subExpression": {
|
|
"argumentTypes": null,
|
|
"id": 383,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1016:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 385,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1014:3:1"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "982:89:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 396,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 394,
|
|
"name": "total_supply",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 346,
|
|
"src": "1084:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"id": 395,
|
|
"name": "total_balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 368,
|
|
"src": "1099:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1084:28:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": null,
|
|
"id": 401,
|
|
"nodeType": "IfStatement",
|
|
"src": "1080:71:1",
|
|
"trueBody": {
|
|
"id": 400,
|
|
"nodeType": "Block",
|
|
"src": "1114:37:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 398,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "-",
|
|
"prefix": true,
|
|
"src": "1135:5:1",
|
|
"subExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "31303032",
|
|
"id": 397,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1136:4:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_1002_by_1",
|
|
"typeString": "int_const 1002"
|
|
},
|
|
"value": "1002"
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_minus_1002_by_1",
|
|
"typeString": "int_const -1002"
|
|
}
|
|
},
|
|
"functionReturnParameters": 356,
|
|
"id": 399,
|
|
"nodeType": "Return",
|
|
"src": "1128:12:1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"assignments": [
|
|
403
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 403,
|
|
"mutability": "mutable",
|
|
"name": "repo_table",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "1160:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 402,
|
|
"name": "Table",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 254,
|
|
"src": "1160:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 408,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 406,
|
|
"name": "REPO_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 311,
|
|
"src": "1202:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 404,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "1179:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 405,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "openTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 9,
|
|
"src": "1179:22:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_contract$_Table_$254_$",
|
|
"typeString": "function (string memory) view external returns (contract Table)"
|
|
}
|
|
},
|
|
"id": 407,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1179:34:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1160:53:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
410
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 410,
|
|
"mutability": "mutable",
|
|
"name": "user_table",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "1223:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 409,
|
|
"name": "Table",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 254,
|
|
"src": "1223:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 415,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 413,
|
|
"name": "USER_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 314,
|
|
"src": "1265:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 411,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "1242:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 412,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "openTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 9,
|
|
"src": "1242:22:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_contract$_Table_$254_$",
|
|
"typeString": "function (string memory) view external returns (contract Table)"
|
|
}
|
|
},
|
|
"id": 414,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1242:34:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1223:53:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
417
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 417,
|
|
"mutability": "mutable",
|
|
"name": "repo_entry",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "1287:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 416,
|
|
"name": "Entry",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 184,
|
|
"src": "1287:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 421,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 418,
|
|
"name": "repo_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 403,
|
|
"src": "1306:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 419,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "newEntry",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 247,
|
|
"src": "1306:19:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Entry_$184_$",
|
|
"typeString": "function () view external returns (contract Entry)"
|
|
}
|
|
},
|
|
"id": 420,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1306:21:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1287:40:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "746f6b656e5f6e616d65",
|
|
"id": 425,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1352:12:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
"value": "token_name"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 426,
|
|
"name": "token_name",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 342,
|
|
"src": "1366:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 422,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1337:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 424,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 175,
|
|
"src": "1337:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (string memory,string memory) external"
|
|
}
|
|
},
|
|
"id": 427,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1337:40:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 428,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1337:40:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "6f776e6572",
|
|
"id": 432,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1402:7:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_02016836a56b71f0d02689e69e326f4f4c1b9057164ef592671cf0d37c8040c0",
|
|
"typeString": "literal_string \"owner\""
|
|
},
|
|
"value": "owner"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 433,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 344,
|
|
"src": "1411:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_02016836a56b71f0d02689e69e326f4f4c1b9057164ef592671cf0d37c8040c0",
|
|
"typeString": "literal_string \"owner\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 429,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1387:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 431,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 175,
|
|
"src": "1387:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (string memory,string memory) external"
|
|
}
|
|
},
|
|
"id": 434,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1387:30:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 435,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1387:30:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "746f74616c5f737570706c79",
|
|
"id": 439,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1442:14:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_b1557182e4359a1f0c6301278e8f5b35a776ab58d39892581e357578fb287836",
|
|
"typeString": "literal_string \"total_supply\""
|
|
},
|
|
"value": "total_supply"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 440,
|
|
"name": "total_supply",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 346,
|
|
"src": "1458:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_b1557182e4359a1f0c6301278e8f5b35a776ab58d39892581e357578fb287836",
|
|
"typeString": "literal_string \"total_supply\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 436,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1427:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 438,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 167,
|
|
"src": "1427:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$",
|
|
"typeString": "function (string memory,uint256) external"
|
|
}
|
|
},
|
|
"id": 441,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1427:44:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 442,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1427:44:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
444
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 444,
|
|
"mutability": "mutable",
|
|
"name": "count",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "1482:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"typeName": {
|
|
"id": 443,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1482:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 450,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 447,
|
|
"name": "token_name",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 342,
|
|
"src": "1515:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 448,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1527:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 445,
|
|
"name": "repo_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 403,
|
|
"src": "1497:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 446,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "insert",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 219,
|
|
"src": "1497:17:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_contract$_Entry_$184_$returns$_t_int256_$",
|
|
"typeString": "function (string memory,contract Entry) external returns (int256)"
|
|
}
|
|
},
|
|
"id": 449,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1497:41:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1482:56:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"id": 453,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 451,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "1552:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "31",
|
|
"id": 452,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1561:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_1_by_1",
|
|
"typeString": "int_const 1"
|
|
},
|
|
"value": "1"
|
|
},
|
|
"src": "1552:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": null,
|
|
"id": 457,
|
|
"nodeType": "IfStatement",
|
|
"src": "1548:53:1",
|
|
"trueBody": {
|
|
"id": 456,
|
|
"nodeType": "Block",
|
|
"src": "1564:37:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 454,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "1585:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 356,
|
|
"id": 455,
|
|
"nodeType": "Return",
|
|
"src": "1578:12:1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"assignments": [
|
|
459
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 459,
|
|
"mutability": "mutable",
|
|
"name": "user_entry",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 527,
|
|
"src": "1611:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 458,
|
|
"name": "Entry",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 184,
|
|
"src": "1611:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 463,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 460,
|
|
"name": "user_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 410,
|
|
"src": "1630:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 461,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "newEntry",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 247,
|
|
"src": "1630:19:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Entry_$184_$",
|
|
"typeString": "function () view external returns (contract Entry)"
|
|
}
|
|
},
|
|
"id": 462,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1630:21:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1611:40:1"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 523,
|
|
"nodeType": "Block",
|
|
"src": "1698:351:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 479,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 475,
|
|
"name": "user_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 459,
|
|
"src": "1712:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 476,
|
|
"name": "user_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 410,
|
|
"src": "1725:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 477,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "newEntry",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 247,
|
|
"src": "1725:19:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Entry_$184_$",
|
|
"typeString": "function () view external returns (contract Entry)"
|
|
}
|
|
},
|
|
"id": 478,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1725:21:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"src": "1712:34:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 480,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1712:34:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "75736572",
|
|
"id": 484,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1775:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
"value": "user"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 485,
|
|
"name": "username",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 349,
|
|
"src": "1783:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
"id": 487,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 486,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1792:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1783:11:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 481,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1760:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 483,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 175,
|
|
"src": "1760:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (string memory,string memory) external"
|
|
}
|
|
},
|
|
"id": 488,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1760:35:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 489,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1760:35:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "746f6b656e5f6e616d65",
|
|
"id": 493,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1824:12:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
"value": "token_name"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 494,
|
|
"name": "token_name",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 342,
|
|
"src": "1838:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_d661ed6ec150db4c9eda8cf42d28babbb36c01bca789b3fad6d18ebb4ff1a04b",
|
|
"typeString": "literal_string \"token_name\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 490,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1809:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 492,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 175,
|
|
"src": "1809:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (string memory,string memory) external"
|
|
}
|
|
},
|
|
"id": 495,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1809:40:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 496,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1809:40:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "62616c616e6365",
|
|
"id": 500,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1878:9:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_ea06f38f7e4f15e87567361213c28f235cccdaa1d7fd34c9db1dfe9489c6a091",
|
|
"typeString": "literal_string \"balance\""
|
|
},
|
|
"value": "balance"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 501,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 352,
|
|
"src": "1889:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[] memory"
|
|
}
|
|
},
|
|
"id": 503,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 502,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1897:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1889:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_ea06f38f7e4f15e87567361213c28f235cccdaa1d7fd34c9db1dfe9489c6a091",
|
|
"typeString": "literal_string \"balance\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 497,
|
|
"name": "repo_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 417,
|
|
"src": "1863:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 499,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "set",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 167,
|
|
"src": "1863:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$",
|
|
"typeString": "function (string memory,uint256) external"
|
|
}
|
|
},
|
|
"id": 504,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1863:37:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 505,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1863:37:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 514,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 506,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "1914:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 509,
|
|
"name": "username",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 349,
|
|
"src": "1940:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
"id": 511,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 510,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1949:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1940:11:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 512,
|
|
"name": "user_entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 459,
|
|
"src": "1953:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 507,
|
|
"name": "user_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 410,
|
|
"src": "1922:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 508,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "insert",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 219,
|
|
"src": "1922:17:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$_t_contract$_Entry_$184_$returns$_t_int256_$",
|
|
"typeString": "function (string memory,contract Entry) external returns (int256)"
|
|
}
|
|
},
|
|
"id": 513,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1922:42:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"src": "1914:50:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 515,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1914:50:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"id": 518,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 516,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "1982:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "31",
|
|
"id": 517,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1991:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_1_by_1",
|
|
"typeString": "int_const 1"
|
|
},
|
|
"value": "1"
|
|
},
|
|
"src": "1982:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": null,
|
|
"id": 522,
|
|
"nodeType": "IfStatement",
|
|
"src": "1978:61:1",
|
|
"trueBody": {
|
|
"id": 521,
|
|
"nodeType": "Block",
|
|
"src": "1994:45:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 519,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "2019:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 356,
|
|
"id": 520,
|
|
"nodeType": "Return",
|
|
"src": "2012:12:1"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 471,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 468,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1673:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 469,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 352,
|
|
"src": "1677:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[] memory"
|
|
}
|
|
},
|
|
"id": 470,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "1677:14:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1673:18:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 524,
|
|
"initializationExpression": {
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 466,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"id": 464,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1666:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 465,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1670:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1666:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 467,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1666:5:1"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 473,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": true,
|
|
"src": "1693:3:1",
|
|
"subExpression": {
|
|
"argumentTypes": null,
|
|
"id": 472,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 372,
|
|
"src": "1695:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 474,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1693:3:1"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "1661:388:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 525,
|
|
"name": "count",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 444,
|
|
"src": "2111:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 356,
|
|
"id": 526,
|
|
"nodeType": "Return",
|
|
"src": "2104:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"functionSelector": "83e9c79f",
|
|
"id": 528,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "createRepo",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 353,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 342,
|
|
"mutability": "mutable",
|
|
"name": "token_name",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "660:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 341,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "660:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 344,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "686:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 343,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "686:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 346,
|
|
"mutability": "mutable",
|
|
"name": "total_supply",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "707:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 345,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "707:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 349,
|
|
"mutability": "mutable",
|
|
"name": "username",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "729:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 347,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "729:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 348,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "729:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 352,
|
|
"mutability": "mutable",
|
|
"name": "balance",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "755:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 350,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "755:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 351,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "755:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "659:121:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 356,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 355,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 528,
|
|
"src": "813:6:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"typeName": {
|
|
"id": 354,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "813:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "812:8:1"
|
|
},
|
|
"scope": 691,
|
|
"src": "640:1483:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 649,
|
|
"nodeType": "Block",
|
|
"src": "2315:813:1",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
543
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 543,
|
|
"mutability": "mutable",
|
|
"name": "user_table",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2325:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 542,
|
|
"name": "Table",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 254,
|
|
"src": "2325:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 548,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 546,
|
|
"name": "USER_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 314,
|
|
"src": "2367:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 544,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "2344:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 545,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "openTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 9,
|
|
"src": "2344:22:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_contract$_Table_$254_$",
|
|
"typeString": "function (string memory) view external returns (contract Table)"
|
|
}
|
|
},
|
|
"id": 547,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2344:34:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2325:53:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
550
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 550,
|
|
"mutability": "mutable",
|
|
"name": "condition",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2389:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 549,
|
|
"name": "Condition",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 101,
|
|
"src": "2389:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 554,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 551,
|
|
"name": "user_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 543,
|
|
"src": "2411:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 552,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "newCondition",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 253,
|
|
"src": "2411:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Condition_$101_$",
|
|
"typeString": "function () view external returns (contract Condition)"
|
|
}
|
|
},
|
|
"id": 553,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2411:25:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2389:47:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
556
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 556,
|
|
"mutability": "mutable",
|
|
"name": "entries",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2447:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 555,
|
|
"name": "Entries",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 199,
|
|
"src": "2447:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 562,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 559,
|
|
"name": "username",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 530,
|
|
"src": "2483:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 560,
|
|
"name": "condition",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 550,
|
|
"src": "2493:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 557,
|
|
"name": "user_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 543,
|
|
"src": "2465:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 558,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "select",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 209,
|
|
"src": "2465:17:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$_t_contract$_Condition_$101_$returns$_t_contract$_Entries_$199_$",
|
|
"typeString": "function (string memory,contract Condition) view external returns (contract Entries)"
|
|
}
|
|
},
|
|
"id": 561,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2465:38:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2447:56:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
567
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 567,
|
|
"mutability": "mutable",
|
|
"name": "username_list",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2513:29:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 565,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2513:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 566,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2513:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 578,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 573,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 556,
|
|
"src": "2566:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 574,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "size",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 198,
|
|
"src": "2566:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_int256_$",
|
|
"typeString": "function () view external returns (int256)"
|
|
}
|
|
},
|
|
"id": 575,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2566:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
],
|
|
"id": 572,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "2558:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint256_$",
|
|
"typeString": "type(uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 571,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2558:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": null,
|
|
"typeString": null
|
|
}
|
|
}
|
|
},
|
|
"id": 576,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2558:23:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 570,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "NewExpression",
|
|
"src": "2545:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$",
|
|
"typeString": "function (uint256) pure returns (string memory[] memory)"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 568,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2549:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 569,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2549:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
}
|
|
},
|
|
"id": 577,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2545:37:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2513:69:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
583
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 583,
|
|
"mutability": "mutable",
|
|
"name": "token_name_list",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2592:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 581,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2592:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 582,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2592:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 594,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 589,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 556,
|
|
"src": "2647:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 590,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "size",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 198,
|
|
"src": "2647:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_int256_$",
|
|
"typeString": "function () view external returns (int256)"
|
|
}
|
|
},
|
|
"id": 591,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2647:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
],
|
|
"id": 588,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "2639:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint256_$",
|
|
"typeString": "type(uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 587,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2639:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": null,
|
|
"typeString": null
|
|
}
|
|
}
|
|
},
|
|
"id": 592,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2639:23:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 586,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "NewExpression",
|
|
"src": "2626:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$",
|
|
"typeString": "function (uint256) pure returns (string memory[] memory)"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 584,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2630:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 585,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2630:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
}
|
|
},
|
|
"id": 593,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2626:37:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2592:71:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
599
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 599,
|
|
"mutability": "mutable",
|
|
"name": "balance_list",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 649,
|
|
"src": "2673:28:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
|
|
"typeString": "int256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 597,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2673:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 598,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2673:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
|
|
"typeString": "int256[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 610,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 605,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 556,
|
|
"src": "2725:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 606,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "size",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 198,
|
|
"src": "2725:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_int256_$",
|
|
"typeString": "function () view external returns (int256)"
|
|
}
|
|
},
|
|
"id": 607,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2725:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
],
|
|
"id": 604,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "2717:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint256_$",
|
|
"typeString": "type(uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 603,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2717:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": null,
|
|
"typeString": null
|
|
}
|
|
}
|
|
},
|
|
"id": 608,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2717:23:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 602,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "NewExpression",
|
|
"src": "2704:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_int256_$dyn_memory_ptr_$",
|
|
"typeString": "function (uint256) pure returns (int256[] memory)"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 600,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2708:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 601,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2708:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
|
|
"typeString": "int256[]"
|
|
}
|
|
}
|
|
},
|
|
"id": 609,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2704:37:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
|
|
"typeString": "int256[] memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2673:68:1"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 642,
|
|
"nodeType": "Block",
|
|
"src": "2796:262:1",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
624
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 624,
|
|
"mutability": "mutable",
|
|
"name": "entry",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 642,
|
|
"src": "2810:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 623,
|
|
"name": "Entry",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 184,
|
|
"src": "2810:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 629,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 627,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 612,
|
|
"src": "2836:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 625,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 556,
|
|
"src": "2824:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 626,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "get",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 192,
|
|
"src": "2824:11:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_int256_$returns$_t_contract$_Entry_$184_$",
|
|
"typeString": "function (int256) view external returns (contract Entry)"
|
|
}
|
|
},
|
|
"id": 628,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2824:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2810:28:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 640,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 630,
|
|
"name": "username_list",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 567,
|
|
"src": "2853:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
"id": 635,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 633,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 612,
|
|
"src": "2875:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
],
|
|
"id": 632,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "2867:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint256_$",
|
|
"typeString": "type(uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 631,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2867:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": null,
|
|
"typeString": null
|
|
}
|
|
}
|
|
},
|
|
"id": 634,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2867:10:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "2853:25:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "75736572",
|
|
"id": 638,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2897:6:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
},
|
|
"value": "user"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_cb61ad33d3763aed2bc16c0f57ff251ac638d3d03ab7550adfd3e166c2e7adb6",
|
|
"typeString": "literal_string \"user\""
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 636,
|
|
"name": "entry",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 624,
|
|
"src": "2881:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entry_$184",
|
|
"typeString": "contract Entry"
|
|
}
|
|
},
|
|
"id": 637,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "getString",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 151,
|
|
"src": "2881:15:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$",
|
|
"typeString": "function (string memory) view external returns (string memory)"
|
|
}
|
|
},
|
|
"id": 639,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2881:23:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "2853:51:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"id": 641,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2853:51:1"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"id": 619,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 615,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 612,
|
|
"src": "2771:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 616,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 556,
|
|
"src": "2775:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 617,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "size",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 198,
|
|
"src": "2775:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_int256_$",
|
|
"typeString": "function () view external returns (int256)"
|
|
}
|
|
},
|
|
"id": 618,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2775:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"src": "2771:18:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 643,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
612
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 612,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 643,
|
|
"src": "2757:8:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"typeName": {
|
|
"id": 611,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2757:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 614,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 613,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2768:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2757:12:1"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 621,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": true,
|
|
"src": "2791:3:1",
|
|
"subExpression": {
|
|
"argumentTypes": null,
|
|
"id": 620,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 612,
|
|
"src": "2793:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 622,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2791:3:1"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "2752:306:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"components": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 644,
|
|
"name": "username_list",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 567,
|
|
"src": "3076:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 645,
|
|
"name": "token_name_list",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 583,
|
|
"src": "3091:15:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string memory[] memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 646,
|
|
"name": "balance_list",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 599,
|
|
"src": "3108:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
|
|
"typeString": "int256[] memory"
|
|
}
|
|
}
|
|
],
|
|
"id": 647,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "3075:46:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_array$_t_int256_$dyn_memory_ptr_$",
|
|
"typeString": "tuple(string memory[] memory,string memory[] memory,int256[] memory)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 541,
|
|
"id": 648,
|
|
"nodeType": "Return",
|
|
"src": "3068:53:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"functionSelector": "c50573fa",
|
|
"id": 650,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "selectUserAllBalance",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 531,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 530,
|
|
"mutability": "mutable",
|
|
"name": "username",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 650,
|
|
"src": "2190:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 529,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2190:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2189:24:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 541,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 534,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 650,
|
|
"src": "2260:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 532,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2260:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 533,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2260:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 537,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 650,
|
|
"src": "2277:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "string[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 535,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2277:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"id": 536,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2277:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
|
|
"typeString": "string[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 540,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 650,
|
|
"src": "2294:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
|
|
"typeString": "int256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 538,
|
|
"name": "int256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2294:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"id": 539,
|
|
"length": null,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2294:8:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
|
|
"typeString": "int256[]"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2259:51:1"
|
|
},
|
|
"scope": 691,
|
|
"src": "2160:968:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 689,
|
|
"nodeType": "Block",
|
|
"src": "3211:286:1",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
658
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 658,
|
|
"mutability": "mutable",
|
|
"name": "repo_table",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 689,
|
|
"src": "3221:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 657,
|
|
"name": "Table",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 254,
|
|
"src": "3221:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 663,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 661,
|
|
"name": "REPO_TABLE",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 311,
|
|
"src": "3263:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 659,
|
|
"name": "tableFactory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 308,
|
|
"src": "3240:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_TableFactory_$22",
|
|
"typeString": "contract TableFactory"
|
|
}
|
|
},
|
|
"id": 660,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "openTable",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 9,
|
|
"src": "3240:22:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_contract$_Table_$254_$",
|
|
"typeString": "function (string memory) view external returns (contract Table)"
|
|
}
|
|
},
|
|
"id": 662,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3240:34:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3221:53:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
665
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 665,
|
|
"mutability": "mutable",
|
|
"name": "condition",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 689,
|
|
"src": "3284:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 664,
|
|
"name": "Condition",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 101,
|
|
"src": "3284:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 669,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 666,
|
|
"name": "repo_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 658,
|
|
"src": "3306:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 667,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "newCondition",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 253,
|
|
"src": "3306:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Condition_$101_$",
|
|
"typeString": "function () view external returns (contract Condition)"
|
|
}
|
|
},
|
|
"id": 668,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3306:25:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3284:47:1"
|
|
},
|
|
{
|
|
"assignments": [
|
|
671
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 671,
|
|
"mutability": "mutable",
|
|
"name": "entries",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 689,
|
|
"src": "3341:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
},
|
|
"typeName": {
|
|
"contractScope": null,
|
|
"id": 670,
|
|
"name": "Entries",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 199,
|
|
"src": "3341:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 677,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 674,
|
|
"name": "token_name",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 652,
|
|
"src": "3377:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 675,
|
|
"name": "condition",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 665,
|
|
"src": "3389:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_contract$_Condition_$101",
|
|
"typeString": "contract Condition"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 672,
|
|
"name": "repo_table",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 658,
|
|
"src": "3359:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Table_$254",
|
|
"typeString": "contract Table"
|
|
}
|
|
},
|
|
"id": 673,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "select",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 209,
|
|
"src": "3359:17:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$_t_contract$_Condition_$101_$returns$_t_contract$_Entries_$199_$",
|
|
"typeString": "function (string memory,contract Condition) view external returns (contract Entries)"
|
|
}
|
|
},
|
|
"id": 676,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3359:40:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3341:58:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
},
|
|
"id": 682,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 678,
|
|
"name": "entries",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 671,
|
|
"src": "3413:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Entries_$199",
|
|
"typeString": "contract Entries"
|
|
}
|
|
},
|
|
"id": 679,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "size",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 198,
|
|
"src": "3413:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_int256_$",
|
|
"typeString": "function () view external returns (int256)"
|
|
}
|
|
},
|
|
"id": 680,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3413:14:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int256",
|
|
"typeString": "int256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30",
|
|
"id": 681,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3430:1:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "3413:18:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": null,
|
|
"id": 686,
|
|
"nodeType": "IfStatement",
|
|
"src": "3409:60:1",
|
|
"trueBody": {
|
|
"id": 685,
|
|
"nodeType": "Block",
|
|
"src": "3433:36:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 683,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3454:4:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"functionReturnParameters": 656,
|
|
"id": 684,
|
|
"nodeType": "Return",
|
|
"src": "3447:11:1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "66616c7365",
|
|
"id": 687,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3485:5:1",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
"functionReturnParameters": 656,
|
|
"id": 688,
|
|
"nodeType": "Return",
|
|
"src": "3478:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 690,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "judgeReposExisted",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 653,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 652,
|
|
"mutability": "mutable",
|
|
"name": "token_name",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 690,
|
|
"src": "3162:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 651,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3162:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3161:26:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 656,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 655,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 690,
|
|
"src": "3205:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 654,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3205:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3204:6:1"
|
|
},
|
|
"scope": 691,
|
|
"src": "3135:362:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "private"
|
|
}
|
|
],
|
|
"scope": 692,
|
|
"src": "91:3408:1"
|
|
}
|
|
],
|
|
"src": "0:3499:1"
|
|
},
|
|
"functionHashes": {
|
|
"createRepo(string,string,uint256,string[],uint256[])": "83e9c79f",
|
|
"selectUserAllBalance(string)": "c50573fa"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "1057800",
|
|
"executionCost": "infinite",
|
|
"totalCost": "infinite"
|
|
},
|
|
"external": {
|
|
"createRepo(string,string,uint256,string[],uint256[])": "infinite",
|
|
"selectUserAllBalance(string)": "infinite"
|
|
},
|
|
"internal": {
|
|
"judgeReposExisted(string memory)": "infinite"
|
|
}
|
|
}
|
|
} |