25109 lines
1.1 MiB
25109 lines
1.1 MiB
{
|
|
"contractName": "PredictionMarketContract",
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_polyToken",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "string",
|
|
"name": "question",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "timestamp",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "createdBy",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "string",
|
|
"name": "creatorImageHash",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "totalAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "totalYesAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "totalNoAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "QuestionCreated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "owner",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "polyToken",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "questions",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "question",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "timestamp",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "createdBy",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "creatorImageHash",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "totalAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "totalYesAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "totalNoAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "eventCompleted",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "resolverUrl",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "totalQuestions",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "winningAddresses",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "winningAmount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "_question",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "_creatorImageHash",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "_description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "_resolverUrl",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "createQuestion",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_questionId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "addYesBet",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_questionId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "addNoBet",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_questionId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getGraphData",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "timestamp",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct PredictionMarketContract.AmountAdded[]",
|
|
"name": "",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "timestamp",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct PredictionMarketContract.AmountAdded[]",
|
|
"name": "",
|
|
"type": "tuple[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_questionId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "eventOutcome",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "distributeWinningAmount",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.9+commit.e5eed63a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_polyToken\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"question\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"createdBy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"creatorImageHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalYesAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalNoAmount\",\"type\":\"uint256\"}],\"name\":\"QuestionCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_questionId\",\"type\":\"uint256\"}],\"name\":\"addNoBet\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_questionId\",\"type\":\"uint256\"}],\"name\":\"addYesBet\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_question\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_creatorImageHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_resolverUrl\",\"type\":\"string\"}],\"name\":\"createQuestion\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_questionId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"eventOutcome\",\"type\":\"bool\"}],\"name\":\"distributeWinningAmount\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_questionId\",\"type\":\"uint256\"}],\"name\":\"getGraphData\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"internalType\":\"struct PredictionMarketContract.AmountAdded[]\",\"name\":\"\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"internalType\":\"struct PredictionMarketContract.AmountAdded[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"polyToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"questions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"question\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"createdBy\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"creatorImageHash\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalYesAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalNoAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"eventCompleted\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"resolverUrl\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalQuestions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"winningAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"winningAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/Polymarket.sol\":\"PredictionMarketContract\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xb03df8481a954604ad0c9125680893b2e3f7ff770fe470e38b89ac61b84e8072\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b34655953d18ba3a45b762fb6bdbb6549af69a27435e10ece178742bf70baf45\",\"dweb:/ipfs/QmcqjUoFLLMyx7dbwSHUnDBH6aphkVHXWQvQRRev5EAWEh\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x027b891937d20ccf213fdb9c31531574256de774bda99d3a70ecef6e1913ed2a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://087318b21c528119f649899f5b5580566dd8d7b0303d4904bd0e8580c3545f14\",\"dweb:/ipfs/Qmbn5Mj7aUn8hJuQ8VrQjjEXRsXyJKykgnjR9p4C3nfLtL\"]},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0x83fe24f5c04a56091e50f4a345ff504c8bff658a76d4c43b16878c8f940c53b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d4c3df1a7ca104b633a7d81c6c6f5192367d150cd5a32cba81f7f27012729013\",\"dweb:/ipfs/QmSim72e3ZVsfgZt8UceCvbiSuMRHR6WDsiamqNzZahGSY\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x90565a39ae45c80f0468dc96c7b20d0afc3055f344c8203a0c9258239f350b9f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://26e8b38a7ac8e7b4463af00cf7fff1bf48ae9875765bf4f7751e100124d0bc8c\",\"dweb:/ipfs/QmWcsmkVr24xmmjfnBQZoemFniXjj3vwT78Cz6uqZW1Hux\"]},\"project:/contracts/Polymarket.sol\":{\"keccak256\":\"0x89bd632c20f1fdf48addc93b02ebb2e226a1cea209b5a293e014f739d0c7d9e4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://26002bdfead5c2395214ec1eb6a4efe1e2893f0cd2089476ed8c1e4b17bb996a\",\"dweb:/ipfs/QmbW99zJzcf8UEH4sjStKKPgaQ291GeyVR4obNMLMGdyCG\"]}},\"version\":1}",
|
|
"bytecode": "0x608060405260006003553480156200001657600080fd5b50604051620022353803806200223583398181016040528101906200003c91906200012e565b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000160565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000f682620000c9565b9050919050565b6200010881620000e9565b81146200011457600080fd5b50565b6000815190506200012881620000fd565b92915050565b600060208284031215620001475762000146620000c4565b5b6000620001578482850162000117565b91505092915050565b6120c580620001706000396000f3fe60806040526004361061009c5760003560e01c806390b985901161006457806390b9859014610198578063b78d6c1d146101b4578063ba66b612146101f1578063bea5b9141461021a578063c71edee614610245578063da6b4db8146102615761009c565b806314dd5762146100a157806331b1b978146100df5780636faa22a514610126578063724ba40b146101515780638da5cb5b1461016d575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c3919061155d565b61029e565b6040516100d69291906116cb565b60405180910390f35b3480156100eb57600080fd5b506101066004803603810190610101919061155d565b610450565b60405161011d9b9a999897969594939291906117d4565b60405180910390f35b34801561013257600080fd5b5061013b6106f7565b604051610148919061189b565b60405180910390f35b61016b600480360381019061016691906118e2565b61071d565b005b34801561017957600080fd5b50610182610f3a565b60405161018f919061189b565b60405180910390f35b6101b260048036038101906101ad919061155d565b610f5e565b005b3480156101c057600080fd5b506101db60048036038101906101d6919061155d565b6110b3565b6040516101e8919061189b565b60405180910390f35b3480156101fd57600080fd5b5061021860048036038101906102139190611a57565b6110f2565b005b34801561022657600080fd5b5061022f6112dc565b60405161023c9190611b2e565b60405180910390f35b61025f600480360381019061025a919061155d565b6112e2565b005b34801561026d57600080fd5b5061028860048036038101906102839190611b75565b611437565b6040516102959190611b2e565b60405180910390f35b6060806000600260008581526020019081526020016000209050806005018160060181805480602002602001604051908101604052809291908181526020016000905b8282101561037d57838290600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050815260200190600101906102e1565b50505050915080805480602002602001604051908101604052809291908181526020016000905b8282101561044057838290600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050815260200190600101906103a4565b5050505090509250925050915091565b600260205280600052604060002060009150905080600001549080600101805461047990611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546104a590611bd1565b80156104f25780601f106104c7576101008083540402835291602001916104f2565b820191906000526020600020905b8154815290600101906020018083116104d557829003601f168201915b5050505050908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600401805461053390611bd1565b80601f016020809104026020016040519081016040528092919081815260200182805461055f90611bd1565b80156105ac5780601f10610581576101008083540402835291602001916105ac565b820191906000526020600020905b81548152906001019060200180831161058f57829003601f168201915b50505050509080600701549080600801549080600901549080600a0160009054906101000a900460ff169080600b0180546105e690611bd1565b80601f016020809104026020016040519081016040528092919081815260200182805461061290611bd1565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b50505050509080600c01805461067490611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611bd1565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b505050505090508b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290611c4f565b60405180910390fd5b600082146107ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e590611cbb565b60405180910390fd5b60006002600084815260200190815260200160002090508115610ba25760005b81600501805490508110156109f4576000826008015483600501838154811061083a57610839611cdb565b5b906000526020600020906003020160010154846009015461085b9190611d39565b6108659190611dc2565b905082600501828154811061087d5761087c611cdb565b5b9060005260206000209060030201600101548161089a9190611df3565b600460008560050185815481106108b4576108b3611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461092f9190611df3565b92505081905550600583600501838154811061094e5761094d611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080806109ec90611e49565b91505061080e565b5060005b600580549050811015610b8e57600060058281548110610a1b57610a1a611cdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401610ae4929190611ef1565b602060405180830381600087803b158015610afe57600080fd5b505af1158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611f2f565b50600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080610b8690611e49565b9150506109f8565b5060056000610b9d919061144f565b610f35565b60005b8160060180549050811015610d8b5760008260090154836006018381548110610bd157610bd0611cdb565b5b9060005260206000209060030201600101548460080154610bf29190611d39565b610bfc9190611dc2565b9050826006018281548110610c1457610c13611cdb565b5b90600052602060002090600302016001015481610c319190611df3565b60046000856006018581548110610c4b57610c4a611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cc69190611df3565b925050819055506005836006018381548110610ce557610ce4611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550508080610d8390611e49565b915050610ba5565b5060005b600580549050811015610f2557600060058281548110610db257610db1611cdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401610e7b929190611ef1565b602060405180830381600087803b158015610e9557600080fd5b505af1158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd9190611f2f565b50600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080610f1d90611e49565b915050610d8f565b5060056000610f34919061144f565b5b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008114610fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9890611fa8565b60405180910390fd5b6000600260008381526020019081526020016000209050600060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152602001428152509050348260080160008282546110019190611df3565b925050819055503482600701600082825461101c9190611df3565b925050819055508160050181908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050505050565b600581815481106110c357600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790611c4f565b60405180910390fd5b600042905060006002600060035481526020019081526020016000209050600360008154809291906111b190611e49565b919050558160000181905550858160010190805190602001906111d5929190611470565b50818160020181905550338160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508481600401908051906020019061123a929190611470565b506000816007018190555060008160080181905550600081600901819055508381600b019080519060200190611271929190611470565b508281600c01908051906020019061128a929190611470565b507fd8960286cb5486e9a27d200d805d06e2eeda2fe2bd67967e36b466ecd440ac996003548784338960008060006040516112cc989796959493929190612003565b60405180910390a1505050505050565b60035481565b60008114611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c90611fa8565b60405180910390fd5b6000600260008381526020019081526020016000209050600060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152602001428152509050348260090160008282546113859190611df3565b92505081905550348260070160008282546113a09190611df3565b925050819055508160060181908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050505050565b60046020528060005260406000206000915090505481565b508054600082559060005260206000209081019061146d91906114f6565b50565b82805461147c90611bd1565b90600052602060002090601f01602090048101928261149e57600085556114e5565b82601f106114b757805160ff19168380011785556114e5565b828001600101855582156114e5579182015b828111156114e45782518255916020019190600101906114c9565b5b5090506114f291906114f6565b5090565b5b8082111561150f5760008160009055506001016114f7565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61153a81611527565b811461154557600080fd5b50565b60008135905061155781611531565b92915050565b6000602082840312156115735761157261151d565b5b600061158184828501611548565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006115e1826115b6565b9050919050565b6115f1816115d6565b82525050565b61160081611527565b82525050565b60608201600082015161161c60008501826115e8565b50602082015161162f60208501826115f7565b50604082015161164260408501826115f7565b50505050565b60006116548383611606565b60608301905092915050565b6000602082019050919050565b60006116788261158a565b6116828185611595565b935061168d836115a6565b8060005b838110156116be5781516116a58882611648565b97506116b083611660565b925050600181019050611691565b5085935050505092915050565b600060408201905081810360008301526116e5818561166d565b905081810360208301526116f9818461166d565b90509392505050565b61170b81611527565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561174b578082015181840152602081019050611730565b8381111561175a576000848401525b50505050565b6000601f19601f8301169050919050565b600061177c82611711565b611786818561171c565b935061179681856020860161172d565b61179f81611760565b840191505092915050565b6117b3816115d6565b82525050565b60008115159050919050565b6117ce816117b9565b82525050565b6000610160820190506117ea600083018e611702565b81810360208301526117fc818d611771565b905061180b604083018c611702565b611818606083018b6117aa565b818103608083015261182a818a611771565b905061183960a0830189611702565b61184660c0830188611702565b61185360e0830187611702565b6118616101008301866117c5565b8181036101208301526118748185611771565b90508181036101408301526118898184611771565b90509c9b505050505050505050505050565b60006020820190506118b060008301846117aa565b92915050565b6118bf816117b9565b81146118ca57600080fd5b50565b6000813590506118dc816118b6565b92915050565b600080604083850312156118f9576118f861151d565b5b600061190785828601611548565b9250506020611918858286016118cd565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61196482611760565b810181811067ffffffffffffffff821117156119835761198261192c565b5b80604052505050565b6000611996611513565b90506119a2828261195b565b919050565b600067ffffffffffffffff8211156119c2576119c161192c565b5b6119cb82611760565b9050602081019050919050565b82818337600083830152505050565b60006119fa6119f5846119a7565b61198c565b905082815260208101848484011115611a1657611a15611927565b5b611a218482856119d8565b509392505050565b600082601f830112611a3e57611a3d611922565b5b8135611a4e8482602086016119e7565b91505092915050565b60008060008060808587031215611a7157611a7061151d565b5b600085013567ffffffffffffffff811115611a8f57611a8e611522565b5b611a9b87828801611a29565b945050602085013567ffffffffffffffff811115611abc57611abb611522565b5b611ac887828801611a29565b935050604085013567ffffffffffffffff811115611ae957611ae8611522565b5b611af587828801611a29565b925050606085013567ffffffffffffffff811115611b1657611b15611522565b5b611b2287828801611a29565b91505092959194509250565b6000602082019050611b436000830184611702565b92915050565b611b52816115d6565b8114611b5d57600080fd5b50565b600081359050611b6f81611b49565b92915050565b600060208284031215611b8b57611b8a61151d565b5b6000611b9984828501611b60565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611be957607f821691505b60208210811415611bfd57611bfc611ba2565b5b50919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000611c39600c8361171c565b9150611c4482611c03565b602082019050919050565b60006020820190508181036000830152611c6881611c2c565b9050919050565b7f5175657374696f6e2049442063616e6e6f7420626520656d7074790000000000600082015250565b6000611ca5601b8361171c565b9150611cb082611c6f565b602082019050919050565b60006020820190508181036000830152611cd481611c98565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d4482611527565b9150611d4f83611527565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8857611d87611d0a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611dcd82611527565b9150611dd883611527565b925082611de857611de7611d93565b5b828204905092915050565b6000611dfe82611527565b9150611e0983611527565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e3e57611e3d611d0a565b5b828201905092915050565b6000611e5482611527565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e8757611e86611d0a565b5b600182019050919050565b6000819050919050565b6000611eb7611eb2611ead846115b6565b611e92565b6115b6565b9050919050565b6000611ec982611e9c565b9050919050565b6000611edb82611ebe565b9050919050565b611eeb81611ed0565b82525050565b6000604082019050611f066000830185611ee2565b611f136020830184611702565b9392505050565b600081519050611f29816118b6565b92915050565b600060208284031215611f4557611f4461151d565b5b6000611f5384828501611f1a565b91505092915050565b7f5175657374696f6e2049442063616e6e6f74206265206e756c6c000000000000600082015250565b6000611f92601a8361171c565b9150611f9d82611f5c565b602082019050919050565b60006020820190508181036000830152611fc181611f85565b9050919050565b6000819050919050565b6000611fed611fe8611fe384611fc8565b611e92565b611527565b9050919050565b611ffd81611fd2565b82525050565b600061010082019050612019600083018b611702565b818103602083015261202b818a611771565b905061203a6040830189611702565b61204760608301886117aa565b81810360808301526120598187611771565b905061206860a0830186611ff4565b61207560c0830185611ff4565b61208260e0830184611ff4565b999850505050505050505056fea2646970667358221220056907f75705a48c98da179be8ca6a26d98b620f6bfda5e9ef4ef44ec05b6e7f64736f6c63430008090033",
|
|
"deployedBytecode": "0x60806040526004361061009c5760003560e01c806390b985901161006457806390b9859014610198578063b78d6c1d146101b4578063ba66b612146101f1578063bea5b9141461021a578063c71edee614610245578063da6b4db8146102615761009c565b806314dd5762146100a157806331b1b978146100df5780636faa22a514610126578063724ba40b146101515780638da5cb5b1461016d575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c3919061155d565b61029e565b6040516100d69291906116cb565b60405180910390f35b3480156100eb57600080fd5b506101066004803603810190610101919061155d565b610450565b60405161011d9b9a999897969594939291906117d4565b60405180910390f35b34801561013257600080fd5b5061013b6106f7565b604051610148919061189b565b60405180910390f35b61016b600480360381019061016691906118e2565b61071d565b005b34801561017957600080fd5b50610182610f3a565b60405161018f919061189b565b60405180910390f35b6101b260048036038101906101ad919061155d565b610f5e565b005b3480156101c057600080fd5b506101db60048036038101906101d6919061155d565b6110b3565b6040516101e8919061189b565b60405180910390f35b3480156101fd57600080fd5b5061021860048036038101906102139190611a57565b6110f2565b005b34801561022657600080fd5b5061022f6112dc565b60405161023c9190611b2e565b60405180910390f35b61025f600480360381019061025a919061155d565b6112e2565b005b34801561026d57600080fd5b5061028860048036038101906102839190611b75565b611437565b6040516102959190611b2e565b60405180910390f35b6060806000600260008581526020019081526020016000209050806005018160060181805480602002602001604051908101604052809291908181526020016000905b8282101561037d57838290600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050815260200190600101906102e1565b50505050915080805480602002602001604051908101604052809291908181526020016000905b8282101561044057838290600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050815260200190600101906103a4565b5050505090509250925050915091565b600260205280600052604060002060009150905080600001549080600101805461047990611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546104a590611bd1565b80156104f25780601f106104c7576101008083540402835291602001916104f2565b820191906000526020600020905b8154815290600101906020018083116104d557829003601f168201915b5050505050908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600401805461053390611bd1565b80601f016020809104026020016040519081016040528092919081815260200182805461055f90611bd1565b80156105ac5780601f10610581576101008083540402835291602001916105ac565b820191906000526020600020905b81548152906001019060200180831161058f57829003601f168201915b50505050509080600701549080600801549080600901549080600a0160009054906101000a900460ff169080600b0180546105e690611bd1565b80601f016020809104026020016040519081016040528092919081815260200182805461061290611bd1565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b50505050509080600c01805461067490611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611bd1565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b505050505090508b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290611c4f565b60405180910390fd5b600082146107ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e590611cbb565b60405180910390fd5b60006002600084815260200190815260200160002090508115610ba25760005b81600501805490508110156109f4576000826008015483600501838154811061083a57610839611cdb565b5b906000526020600020906003020160010154846009015461085b9190611d39565b6108659190611dc2565b905082600501828154811061087d5761087c611cdb565b5b9060005260206000209060030201600101548161089a9190611df3565b600460008560050185815481106108b4576108b3611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461092f9190611df3565b92505081905550600583600501838154811061094e5761094d611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080806109ec90611e49565b91505061080e565b5060005b600580549050811015610b8e57600060058281548110610a1b57610a1a611cdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401610ae4929190611ef1565b602060405180830381600087803b158015610afe57600080fd5b505af1158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611f2f565b50600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080610b8690611e49565b9150506109f8565b5060056000610b9d919061144f565b610f35565b60005b8160060180549050811015610d8b5760008260090154836006018381548110610bd157610bd0611cdb565b5b9060005260206000209060030201600101548460080154610bf29190611d39565b610bfc9190611dc2565b9050826006018281548110610c1457610c13611cdb565b5b90600052602060002090600302016001015481610c319190611df3565b60046000856006018581548110610c4b57610c4a611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cc69190611df3565b925050819055506005836006018381548110610ce557610ce4611cdb565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550508080610d8390611e49565b915050610ba5565b5060005b600580549050811015610f2557600060058281548110610db257610db1611cdb565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401610e7b929190611ef1565b602060405180830381600087803b158015610e9557600080fd5b505af1158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd9190611f2f565b50600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080610f1d90611e49565b915050610d8f565b5060056000610f34919061144f565b5b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008114610fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9890611fa8565b60405180910390fd5b6000600260008381526020019081526020016000209050600060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152602001428152509050348260080160008282546110019190611df3565b925050819055503482600701600082825461101c9190611df3565b925050819055508160050181908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050505050565b600581815481106110c357600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790611c4f565b60405180910390fd5b600042905060006002600060035481526020019081526020016000209050600360008154809291906111b190611e49565b919050558160000181905550858160010190805190602001906111d5929190611470565b50818160020181905550338160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508481600401908051906020019061123a929190611470565b506000816007018190555060008160080181905550600081600901819055508381600b019080519060200190611271929190611470565b508281600c01908051906020019061128a929190611470565b507fd8960286cb5486e9a27d200d805d06e2eeda2fe2bd67967e36b466ecd440ac996003548784338960008060006040516112cc989796959493929190612003565b60405180910390a1505050505050565b60035481565b60008114611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c90611fa8565b60405180910390fd5b6000600260008381526020019081526020016000209050600060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152602001428152509050348260090160008282546113859190611df3565b92505081905550348260070160008282546113a09190611df3565b925050819055508160060181908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050505050565b60046020528060005260406000206000915090505481565b508054600082559060005260206000209081019061146d91906114f6565b50565b82805461147c90611bd1565b90600052602060002090601f01602090048101928261149e57600085556114e5565b82601f106114b757805160ff19168380011785556114e5565b828001600101855582156114e5579182015b828111156114e45782518255916020019190600101906114c9565b5b5090506114f291906114f6565b5090565b5b8082111561150f5760008160009055506001016114f7565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61153a81611527565b811461154557600080fd5b50565b60008135905061155781611531565b92915050565b6000602082840312156115735761157261151d565b5b600061158184828501611548565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006115e1826115b6565b9050919050565b6115f1816115d6565b82525050565b61160081611527565b82525050565b60608201600082015161161c60008501826115e8565b50602082015161162f60208501826115f7565b50604082015161164260408501826115f7565b50505050565b60006116548383611606565b60608301905092915050565b6000602082019050919050565b60006116788261158a565b6116828185611595565b935061168d836115a6565b8060005b838110156116be5781516116a58882611648565b97506116b083611660565b925050600181019050611691565b5085935050505092915050565b600060408201905081810360008301526116e5818561166d565b905081810360208301526116f9818461166d565b90509392505050565b61170b81611527565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561174b578082015181840152602081019050611730565b8381111561175a576000848401525b50505050565b6000601f19601f8301169050919050565b600061177c82611711565b611786818561171c565b935061179681856020860161172d565b61179f81611760565b840191505092915050565b6117b3816115d6565b82525050565b60008115159050919050565b6117ce816117b9565b82525050565b6000610160820190506117ea600083018e611702565b81810360208301526117fc818d611771565b905061180b604083018c611702565b611818606083018b6117aa565b818103608083015261182a818a611771565b905061183960a0830189611702565b61184660c0830188611702565b61185360e0830187611702565b6118616101008301866117c5565b8181036101208301526118748185611771565b90508181036101408301526118898184611771565b90509c9b505050505050505050505050565b60006020820190506118b060008301846117aa565b92915050565b6118bf816117b9565b81146118ca57600080fd5b50565b6000813590506118dc816118b6565b92915050565b600080604083850312156118f9576118f861151d565b5b600061190785828601611548565b9250506020611918858286016118cd565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61196482611760565b810181811067ffffffffffffffff821117156119835761198261192c565b5b80604052505050565b6000611996611513565b90506119a2828261195b565b919050565b600067ffffffffffffffff8211156119c2576119c161192c565b5b6119cb82611760565b9050602081019050919050565b82818337600083830152505050565b60006119fa6119f5846119a7565b61198c565b905082815260208101848484011115611a1657611a15611927565b5b611a218482856119d8565b509392505050565b600082601f830112611a3e57611a3d611922565b5b8135611a4e8482602086016119e7565b91505092915050565b60008060008060808587031215611a7157611a7061151d565b5b600085013567ffffffffffffffff811115611a8f57611a8e611522565b5b611a9b87828801611a29565b945050602085013567ffffffffffffffff811115611abc57611abb611522565b5b611ac887828801611a29565b935050604085013567ffffffffffffffff811115611ae957611ae8611522565b5b611af587828801611a29565b925050606085013567ffffffffffffffff811115611b1657611b15611522565b5b611b2287828801611a29565b91505092959194509250565b6000602082019050611b436000830184611702565b92915050565b611b52816115d6565b8114611b5d57600080fd5b50565b600081359050611b6f81611b49565b92915050565b600060208284031215611b8b57611b8a61151d565b5b6000611b9984828501611b60565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611be957607f821691505b60208210811415611bfd57611bfc611ba2565b5b50919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000611c39600c8361171c565b9150611c4482611c03565b602082019050919050565b60006020820190508181036000830152611c6881611c2c565b9050919050565b7f5175657374696f6e2049442063616e6e6f7420626520656d7074790000000000600082015250565b6000611ca5601b8361171c565b9150611cb082611c6f565b602082019050919050565b60006020820190508181036000830152611cd481611c98565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d4482611527565b9150611d4f83611527565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8857611d87611d0a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611dcd82611527565b9150611dd883611527565b925082611de857611de7611d93565b5b828204905092915050565b6000611dfe82611527565b9150611e0983611527565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e3e57611e3d611d0a565b5b828201905092915050565b6000611e5482611527565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e8757611e86611d0a565b5b600182019050919050565b6000819050919050565b6000611eb7611eb2611ead846115b6565b611e92565b6115b6565b9050919050565b6000611ec982611e9c565b9050919050565b6000611edb82611ebe565b9050919050565b611eeb81611ed0565b82525050565b6000604082019050611f066000830185611ee2565b611f136020830184611702565b9392505050565b600081519050611f29816118b6565b92915050565b600060208284031215611f4557611f4461151d565b5b6000611f5384828501611f1a565b91505092915050565b7f5175657374696f6e2049442063616e6e6f74206265206e756c6c000000000000600082015250565b6000611f92601a8361171c565b9150611f9d82611f5c565b602082019050919050565b60006020820190508181036000830152611fc181611f85565b9050919050565b6000819050919050565b6000611fed611fe8611fe384611fc8565b611e92565b611527565b9050919050565b611ffd81611fd2565b82525050565b600061010082019050612019600083018b611702565b818103602083015261202b818a611771565b905061203a6040830189611702565b61204760608301886117aa565b81810360808301526120598187611771565b905061206860a0830186611ff4565b61207560c0830185611ff4565b61208260e0830184611ff4565b999850505050505050505056fea2646970667358221220056907f75705a48c98da179be8ca6a26d98b620f6bfda5e9ef4ef44ec05b6e7f64736f6c63430008090033",
|
|
"immutableReferences": {},
|
|
"generatedSources": [
|
|
{
|
|
"ast": {
|
|
"nodeType": "YulBlock",
|
|
"src": "0:1199:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "47:35:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "57:19:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "73:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "67:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "67:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "57:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "allocate_unbounded",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"returnVariables": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "40:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "7:75:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "177:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "194:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "197:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "187:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "187:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "187:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "88:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "300:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "317:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "320:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "310:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "310:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "310:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "211:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "379:81:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "389:65:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "404:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "411:42:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "400:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "400:54:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "389:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "361:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "371:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "334:126:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "511:51:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "521:35:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "550:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "532:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "532:24:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "521:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "493:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "503:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "466:96:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "611:79:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "668:16:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "677:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "680:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "670:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "670:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "670:12:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "634:5:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "659:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "641:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "641:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "631:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "631:35:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "624:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "624:43:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "621:63:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "604:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "568:122:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "759:80:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "769:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "784:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "778:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "778:13:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "769:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "827:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "800:26:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "800:33:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "800:33:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_address_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "737:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "745:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "753:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "696:143:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "922:274:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "968:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "970:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "970:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "970:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "943:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "952:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "939:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "939:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "964:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "935:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "935:32:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "932:119:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "1061:128:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "1076:15:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1090:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1080:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1105:74:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1151:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1162:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1147:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1147:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1171:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_address_fromMemory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1115:31:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1115:64:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1105:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_address_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "892:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "903:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "915:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "845:351:5"
|
|
}
|
|
]
|
|
},
|
|
"contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n}\n",
|
|
"id": 5,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"deployedGeneratedSources": [
|
|
{
|
|
"ast": {
|
|
"nodeType": "YulBlock",
|
|
"src": "0:22009:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "47:35:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "57:19:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "73:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "67:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "67:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "57:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "allocate_unbounded",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"returnVariables": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "40:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "7:75:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "177:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "194:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "197:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "187:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "187:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "187:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "88:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "300:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "317:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "320:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "310:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "310:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "310:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "211:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "379:32:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "389:16:5",
|
|
"value": {
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "400:5:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "389:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "361:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "371:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "334:77:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "460:79:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "517:16:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "526:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "529:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "519:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "519:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "519:12:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "483:5:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "508:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "490:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "490:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "480:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "480:35:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "473:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "473:43:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "470:63:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "453:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "417:122:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "597:87:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "607:29:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "629:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "616:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "616:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "607:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "672:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "645:26:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "645:33:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "645:33:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "575:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "583:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "591:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "545:139:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "756:263:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "802:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "804:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "804:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "804:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "777:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "786:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "773:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "773:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "798:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "769:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "769:32:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "766:119:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "895:117:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "910:15:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "924:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "914:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "939:63:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "974:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "985:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "970:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "970:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "994:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "949:20:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "949:53:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "939:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "726:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "737:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "749:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "690:329:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1127:40:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1138:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1154:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1148:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1148:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1138:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_length_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1110:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1120:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1025:142:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1312:73:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1329:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1334:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1322:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1322:19:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1322:19:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1350:29:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1369:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1374:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1365:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1365:14:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1350:11:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_storeLengthForEncoding_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1284:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1289:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1300:11:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1173:212:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1491:60:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1501:11:5",
|
|
"value": {
|
|
"name": "ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1509:3:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1501:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1522:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1534:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1539:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1530:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1530:14:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1522:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_dataslot_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "ptr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1478:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1486:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1391:160:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1602:81:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1612:65:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1627:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1634:42:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1623:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1623:54:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1612:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1584:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1594:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1557:126:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1734:51:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1744:35:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1773:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1755:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1755:24:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1744:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1716:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1726:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1689:96:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1846:53:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1863:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1886:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1868:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1868:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1856:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1856:37:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1856:37:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_address_to_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1834:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1841:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1791:108:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1960:53:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1977:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2000:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1982:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1982:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1970:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1970:37:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1970:37:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_uint256_to_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1948:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1955:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1905:108:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2229:572:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "2239:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2255:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2260:4:5",
|
|
"type": "",
|
|
"value": "0x60"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2251:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2251:14:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2243:4:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "2275:164:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "2310:43:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2340:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2347:4:5",
|
|
"type": "",
|
|
"value": "0x00"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2336:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2336:16:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2330:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2330:23:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2314:12:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2400:12:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2418:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2423:4:5",
|
|
"type": "",
|
|
"value": "0x00"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2414:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2414:14:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_to_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2366:33:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2366:63:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2366:63:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "2449:166:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "2486:43:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2516:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2523:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2512:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2512:16:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2506:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2506:23:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2490:12:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2576:12:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2594:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2599:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2590:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2590:14:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2542:33:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2542:63:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2542:63:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "2625:169:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "2665:43:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2695:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2702:4:5",
|
|
"type": "",
|
|
"value": "0x40"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2691:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2691:16:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2685:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2685:23:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2669:12:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "memberValue0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2755:12:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2773:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2778:4:5",
|
|
"type": "",
|
|
"value": "0x40"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2769:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2769:14:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2721:33:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2721:63:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2721:63:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2216:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2223:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2117:684:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2943:155:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3043:6:5"
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3051:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2953:89:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2953:102:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2953:102:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3064:28:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3082:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3087:4:5",
|
|
"type": "",
|
|
"value": "0x60"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3078:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3078:14:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "updatedPos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3064:10:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encodeUpdatedPos_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2916:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2924:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "updatedPos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2932:10:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2807:291:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3207:38:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3217:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3229:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3234:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3225:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3225:14:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "next",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3217:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_nextElement_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "ptr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3194:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "next",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3202:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "3104:141:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3533:776:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "3543:96:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3633:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_length_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3557:75:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3557:82:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3547:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3648:121:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3757:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3762:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3655:101:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3655:114:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3648:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "3778:99:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3871:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_dataslot_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3793:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3793:84:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "baseRef",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3782:7:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "3886:21:5",
|
|
"value": {
|
|
"name": "baseRef",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3900:7:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "srcPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3890:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3976:308:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "3990:34:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "srcPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4017:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4011:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4011:13:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "elementValue0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3994:13:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4037:126:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "elementValue0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4144:13:5"
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4159:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encodeUpdatedPos_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4044:99:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4044:119:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4037:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4176:98:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "srcPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4267:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_nextElement_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4186:80:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4186:88:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "srcPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4176:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3938:1:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3941:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "lt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3935:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3935:13:5"
|
|
},
|
|
"nodeType": "YulForLoop",
|
|
"post": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3949:18:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3951:14:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3960:1:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3963:1:5",
|
|
"type": "",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3956:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3956:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3951:1:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"pre": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3920:14:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "3922:10:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3931:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3926:1:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"src": "3916:368:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4293:10:5",
|
|
"value": {
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4300:3:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4293:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3512:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3519:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3528:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "3353:956:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "4653:520:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4663:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4675:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4686:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4671:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4671:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4663:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4710:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4721:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4706:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4706:17:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4729:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4735:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4725:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4725:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4699:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4699:47:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "4699:47:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4755:172:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4913:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4922:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4763:149:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4763:164:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4755:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4948:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4959:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4944:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4944:18:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4968:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4974:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4964:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4964:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4937:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4937:48:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "4937:48:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4994:172:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5152:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5161:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5002:149:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5002:164:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4994:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4617:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4629:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4637:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4648:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "4315:858:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5244:53:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5261:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5284:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5266:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5266:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5254:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5254:37:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5254:37:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5232:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5239:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5179:118:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5362:40:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5373:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5389:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5383:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5383:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5373:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_length_t_string_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5345:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5355:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5303:99:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5504:73:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5521:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5526:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5514:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5514:19:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5514:19:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5542:29:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5561:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5566:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5557:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5557:14:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5542:11:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5476:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5481:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5492:11:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5408:169:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5632:258:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "5642:10:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5651:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5646:1:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5711:63:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5736:3:5"
|
|
},
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5741:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5732:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5732:11:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5755:3:5"
|
|
},
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5760:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5751:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5751:11:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5745:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5745:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5725:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5725:39:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5725:39:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5672:1:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5675:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "lt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5669:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5669:13:5"
|
|
},
|
|
"nodeType": "YulForLoop",
|
|
"post": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5683:19:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5685:15:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5694:1:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5697:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5690:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5690:10:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5685:1:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"pre": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5665:3:5",
|
|
"statements": []
|
|
},
|
|
"src": "5661:113:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5808:76:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5858:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5863:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5854:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5854:16:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5872:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5847:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5847:27:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5847:27:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "i",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5789:1:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5792:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5786:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5786:13:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "5783:101:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "copy_memory_to_memory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5614:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5619:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5624:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5583:307:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5944:54:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5954:38:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5972:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5979:2:5",
|
|
"type": "",
|
|
"value": "31"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5968:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5968:14:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5988:2:5",
|
|
"type": "",
|
|
"value": "31"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "not",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5984:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5984:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5964:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5964:28:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "result",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5954:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "round_up_to_mul_of_32",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5927:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "result",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5937:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5896:102:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "6096:272:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "6106:53:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6153:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_length_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6120:32:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6120:39:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6110:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "6168:78:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6234:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6239:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6175:58:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6175:71:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6168:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6281:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "6288:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6277:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6277:16:5"
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6295:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6300:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "copy_memory_to_memory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6255:21:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6255:52:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "6255:52:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "6316:46:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6327:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6354:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "round_up_to_mul_of_32",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6332:21:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6332:29:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6323:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6323:39:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6316:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6077:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6084:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6092:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "6004:364:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "6439:53:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6456:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6479:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6461:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6461:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6449:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6449:37:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "6449:37:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6427:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6434:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "6374:118:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "6540:48:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "6550:32:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6575:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6568:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6568:13:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6561:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6561:21:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6550:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_bool",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6522:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6532:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "6498:90:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "6653:50:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6670:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6690:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_bool",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6675:14:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6675:21:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "6663:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "6663:34:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "6663:34:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_bool_to_t_bool_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6641:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "6648:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "6594:109:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "7162:1231:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "7172:27:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7184:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7195:3:5",
|
|
"type": "",
|
|
"value": "352"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7180:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7180:19:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7172:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7253:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7266:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7277:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7262:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7262:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7209:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7209:71:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7209:71:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7301:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7312:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7297:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7297:18:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7321:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7327:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7317:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7317:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7290:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7290:48:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7290:48:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "7347:86:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7419:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7428:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7355:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7355:78:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7347:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7487:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7500:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7511:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7496:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7496:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7443:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7443:72:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7443:72:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7569:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7582:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7593:2:5",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7578:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7578:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7525:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7525:72:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7525:72:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7618:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7629:3:5",
|
|
"type": "",
|
|
"value": "128"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7614:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7614:19:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7639:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7645:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7635:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7635:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7607:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7607:49:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7607:49:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "7665:86:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value4",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7737:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7746:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7673:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7673:78:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7665:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value5",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7805:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7818:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7829:3:5",
|
|
"type": "",
|
|
"value": "160"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7814:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7814:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7761:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7761:73:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7761:73:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value6",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7888:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7901:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7912:3:5",
|
|
"type": "",
|
|
"value": "192"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7897:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7897:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7844:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7844:73:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7844:73:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value7",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7971:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7984:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "7995:3:5",
|
|
"type": "",
|
|
"value": "224"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7980:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7980:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "7927:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "7927:73:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "7927:73:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value8",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8048:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8061:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8072:3:5",
|
|
"type": "",
|
|
"value": "256"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8057:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8057:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_bool_to_t_bool_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8010:37:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8010:67:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8010:67:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8098:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8109:3:5",
|
|
"type": "",
|
|
"value": "288"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8094:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8094:19:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8119:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8125:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8115:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8115:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8087:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8087:49:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8087:49:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "8145:86:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value9",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8217:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8226:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8153:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8153:78:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8145:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8252:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8263:3:5",
|
|
"type": "",
|
|
"value": "320"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8248:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8248:19:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8273:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8279:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8269:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8269:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8241:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8241:49:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8241:49:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "8299:87:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value10",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8371:7:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8381:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8307:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8307:79:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8299:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256_t_bool_t_string_memory_ptr_t_string_memory_ptr__to_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256_t_bool_t_string_memory_ptr_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7053:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value10",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7065:7:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value9",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7074:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value8",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7082:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value7",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7090:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value6",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7098:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value5",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7106:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value4",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7114:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7122:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7130:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7138:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7146:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "7157:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "6709:1684:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "8497:124:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "8507:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8519:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8530:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8515:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8515:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8507:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8587:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8600:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8611:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8596:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8596:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8543:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8543:71:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8543:71:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8469:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8481:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8492:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "8399:222:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "8667:76:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "8721:16:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8730:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "8733:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8723:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8723:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8723:12:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8690:5:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8712:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_bool",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8697:14:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8697:21:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8687:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8687:32:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8680:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8680:40:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "8677:60:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_bool",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8660:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "8627:116:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "8798:84:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "8808:29:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8830:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8817:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8817:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8808:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8870:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_bool",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8846:23:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8846:30:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "8846:30:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_bool",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8776:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8784:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8792:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "8749:133:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "8968:388:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "9014:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9016:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9016:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9016:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8989:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8998:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8985:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8985:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9010:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "8981:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "8981:32:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "8978:119:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "9107:117:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "9122:15:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9136:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "9126:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "9151:63:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9186:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9197:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9182:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9182:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9206:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9161:20:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9161:53:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9151:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "9234:115:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "9249:16:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9263:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "9253:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "9279:60:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9311:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9322:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9307:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9307:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9331:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_bool",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9289:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9289:50:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9279:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_uint256t_bool",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8930:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8941:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8953:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "8961:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "8888:468:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "9451:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9468:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9471:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9461:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9461:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9461:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "9362:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "9574:28:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9591:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9594:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9584:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9584:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9584:12:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "9485:117:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "9636:152:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9653:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9656:77:5",
|
|
"type": "",
|
|
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9646:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9646:88:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9646:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9750:1:5",
|
|
"type": "",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9753:4:5",
|
|
"type": "",
|
|
"value": "0x41"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9743:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9743:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9743:15:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9774:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9777:4:5",
|
|
"type": "",
|
|
"value": "0x24"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9767:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9767:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "9767:15:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "panic_error_0x41",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "9608:180:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "9837:238:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "9847:58:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9869:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9899:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "round_up_to_mul_of_32",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9877:21:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9877:27:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9865:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9865:40:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "newFreePtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "9851:10:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10016:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x41",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10018:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10018:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10018:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "newFreePtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9959:10:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "9971:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9956:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9956:34:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "newFreePtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9995:10:5"
|
|
},
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10007:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "lt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9992:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9992:22:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "or",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "9953:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "9953:62:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "9950:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "10054:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
},
|
|
{
|
|
"name": "newFreePtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10058:10:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10047:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10047:22:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10047:22:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "finalize_allocation",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "9823:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulTypedName",
|
|
"src": "9831:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "9794:281:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10122:88:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "10132:30:5",
|
|
"value": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "allocate_unbounded",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10142:18:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10142:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10132:6:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10191:6:5"
|
|
},
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10199:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "finalize_allocation",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10171:19:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10171:33:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10171:33:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "allocate_memory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10106:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10115:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "10081:129:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10283:241:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10388:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x41",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10390:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10390:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10390:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10360:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "10368:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10357:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10357:30:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "10354:56:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "10420:37:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10450:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "round_up_to_mul_of_32",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10428:21:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10428:29:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10420:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "10494:23:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10506:4:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "10512:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10502:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10502:15:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10494:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_allocation_size_t_string_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10267:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "size",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10278:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "10216:308:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10581:103:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10604:3:5"
|
|
},
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10609:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10614:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldatacopy",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10591:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10591:30:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10591:30:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10662:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10667:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10658:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10658:16:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "10676:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10651:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10651:27:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10651:27:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "copy_calldata_to_memory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10563:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10568:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10573:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "10530:154:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10774:328:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "10784:75:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10851:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_allocation_size_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10809:41:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10809:49:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "allocate_memory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10793:15:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10793:66:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10784:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10875:5:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10882:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10868:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10868:21:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10868:21:5"
|
|
},
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "10898:27:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10913:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "10920:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10909:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10909:16:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10902:3:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "10963:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10965:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10965:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "10965:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10944:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10949:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10940:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10940:16:5"
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10958:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "10937:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "10937:25:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "10934:112:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11079:3:5"
|
|
},
|
|
{
|
|
"name": "dst",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11084:3:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11089:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "copy_calldata_to_memory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11055:23:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11055:41:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "11055:41:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_available_length_t_string_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "src",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10747:3:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10752:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10760:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulTypedName",
|
|
"src": "10768:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "10690:412:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "11184:278:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "11233:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11235:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11235:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "11235:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11212:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "11220:4:5",
|
|
"type": "",
|
|
"value": "0x1f"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11208:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11208:17:5"
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11227:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11204:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11204:27:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11197:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11197:35:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "11194:122:5"
|
|
},
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "11325:34:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11352:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11339:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11339:20:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11329:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "11368:88:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11429:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "11437:4:5",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11425:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11425:17:5"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11444:6:5"
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11452:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_available_length_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11377:47:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11377:79:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11368:5:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_string_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11162:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11170:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "array",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11178:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "11122:340:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "11625:1328:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "11672:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11674:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11674:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "11674:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11646:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11655:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11642:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11642:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "11667:3:5",
|
|
"type": "",
|
|
"value": "128"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11638:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11638:33:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "11635:120:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "11765:287:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "11780:45:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11811:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "11822:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11807:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11807:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11794:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11794:31:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11784:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "11872:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11874:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11874:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "11874:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11844:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "11852:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11841:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11841:30:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "11838:117:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "11969:73:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12014:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12025:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12010:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12010:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12034:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11979:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "11979:63:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "11969:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "12062:288:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "12077:46:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12108:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12119:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12104:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12104:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12091:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12091:32:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "12081:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "12170:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12172:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12172:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "12172:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12142:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12150:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12139:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12139:30:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "12136:117:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "12267:73:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12312:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12323:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12308:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12308:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12332:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12277:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12277:63:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12267:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "12360:288:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "12375:46:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12406:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12417:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12402:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12402:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12389:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12389:32:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "12379:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "12468:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12470:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12470:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "12470:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12440:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12448:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12437:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12437:30:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "12434:117:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "12565:73:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12610:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12621:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12606:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12606:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12630:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12575:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12575:63:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12565:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "12658:288:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "12673:46:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12704:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12715:2:5",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12700:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12700:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12687:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12687:32:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "12677:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "12766:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12768:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12768:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "12768:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12738:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "12746:18:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12735:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12735:30:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "12732:117:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "12863:73:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12908:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12919:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12904:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12904:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12928:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_string_memory_ptr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12873:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "12873:63:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "12863:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptrt_string_memory_ptr",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11571:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11582:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11594:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11602:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11610:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulTypedName",
|
|
"src": "11618:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "11468:1485:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13057:124:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "13067:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13079:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13090:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13075:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13075:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13067:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13147:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13160:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13171:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13156:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13156:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13103:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13103:71:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13103:71:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13029:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13041:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13052:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "12959:222:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13230:79:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13287:16:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13296:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13299:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13289:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13289:12:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13289:12:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13253:5:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13278:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13260:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13260:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13250:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13250:35:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13243:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13243:43:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "13240:63:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13223:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "13187:122:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13367:87:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "13377:29:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13399:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13386:12:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13386:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13377:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13442:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13415:26:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13415:33:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13415:33:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13345:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13353:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13361:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "13315:139:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13526:263:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13572:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13574:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13574:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13574:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13547:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13556:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13543:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13543:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13568:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13539:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13539:32:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "13536:119:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "13665:117:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "13680:15:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13694:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13684:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "13709:63:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13744:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13755:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13740:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13740:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13764:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13719:20:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13719:53:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13709:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13496:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13507:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "13519:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "13460:329:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "13823:152:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13840:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13843:77:5",
|
|
"type": "",
|
|
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13833:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13833:88:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13833:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13937:1:5",
|
|
"type": "",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13940:4:5",
|
|
"type": "",
|
|
"value": "0x22"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13930:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13930:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13930:15:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13961:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "13964:4:5",
|
|
"type": "",
|
|
"value": "0x24"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "13954:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "13954:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "13954:15:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "panic_error_0x22",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "13795:180:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "14032:269:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "14042:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14056:4:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14062:1:5",
|
|
"type": "",
|
|
"value": "2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "div",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14052:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14052:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14042:6:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "14073:38:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14103:4:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14109:1:5",
|
|
"type": "",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14099:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14099:12:5"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "outOfPlaceEncoding",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14077:18:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "14150:51:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "14164:27:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14178:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14186:4:5",
|
|
"type": "",
|
|
"value": "0x7f"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14174:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14174:17:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14164:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "outOfPlaceEncoding",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14130:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14123:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14123:26:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "14120:81:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "14253:42:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x22",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14267:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14267:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "14267:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "outOfPlaceEncoding",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14217:18:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14240:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14248:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "lt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14237:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14237:14:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14214:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14214:38:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "14211:84:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "extract_byte_array_length",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "data",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14016:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14025:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "13981:320:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "14413:56:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14435:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14443:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14431:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14431:14:5"
|
|
},
|
|
{
|
|
"hexValue": "556e617574686f72697a6564",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14447:14:5",
|
|
"type": "",
|
|
"value": "Unauthorized"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14424:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14424:38:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "14424:38:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14405:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "14307:162:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "14621:220:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "14631:74:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14697:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14702:2:5",
|
|
"type": "",
|
|
"value": "12"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14638:58:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14638:67:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14631:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14803:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14714:88:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14714:93:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "14714:93:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "14816:19:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14827:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "14832:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14823:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "14823:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "14816:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14609:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14617:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "14475:366:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "15018:248:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "15028:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15040:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15051:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15036:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15036:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15028:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15075:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15086:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15071:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15071:17:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15094:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15100:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15090:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15090:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15064:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15064:47:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "15064:47:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "15120:139:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15254:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15128:124:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15128:131:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15120:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "14998:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15013:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "14847:419:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "15378:71:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15400:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15408:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15396:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15396:14:5"
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f7420626520656d707479",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15412:29:5",
|
|
"type": "",
|
|
"value": "Question ID cannot be empty"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15389:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15389:53:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "15389:53:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15370:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "15272:177:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "15601:220:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "15611:74:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15677:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15682:2:5",
|
|
"type": "",
|
|
"value": "27"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15618:58:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15618:67:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15611:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15783:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15694:88:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15694:93:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "15694:93:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "15796:19:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15807:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "15812:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15803:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "15803:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "15796:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15589:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15597:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "15455:366:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "15998:248:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "16008:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16020:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16031:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16016:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16016:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16008:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16055:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16066:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16051:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16051:17:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16074:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16080:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16070:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16070:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16044:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16044:47:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16044:47:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "16100:139:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16234:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16108:124:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16108:131:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16100:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15978:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "15993:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "15827:419:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "16280:152:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16297:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16300:77:5",
|
|
"type": "",
|
|
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16290:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16290:88:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16290:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16394:1:5",
|
|
"type": "",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16397:4:5",
|
|
"type": "",
|
|
"value": "0x32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16387:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16387:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16387:15:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16418:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16421:4:5",
|
|
"type": "",
|
|
"value": "0x24"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16411:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16411:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16411:15:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "panic_error_0x32",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "16252:180:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "16466:152:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16483:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16486:77:5",
|
|
"type": "",
|
|
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16476:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16476:88:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16476:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16580:1:5",
|
|
"type": "",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16583:4:5",
|
|
"type": "",
|
|
"value": "0x11"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16573:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16573:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16573:15:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16604:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16607:4:5",
|
|
"type": "",
|
|
"value": "0x24"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16597:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16597:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16597:15:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "panic_error_0x11",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "16438:180:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "16672:300:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "16682:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16705:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16687:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16687:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16682:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "16716:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16739:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16721:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16721:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16716:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "16914:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x11",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16916:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16916:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "16916:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16826:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16819:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16819:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16812:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16812:17:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16834:1:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "16841:66:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
},
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16909:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "div",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16837:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16837:74:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16831:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16831:81:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16808:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16808:105:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "16805:131:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "16946:20:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16961:1:5"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16964:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mul",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16957:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "16957:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "product",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "16946:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "checked_mul_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulTypedName",
|
|
"src": "16655:1:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulTypedName",
|
|
"src": "16658:1:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "product",
|
|
"nodeType": "YulTypedName",
|
|
"src": "16664:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "16624:348:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17006:152:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17023:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17026:77:5",
|
|
"type": "",
|
|
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17016:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17016:88:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17016:88:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17120:1:5",
|
|
"type": "",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17123:4:5",
|
|
"type": "",
|
|
"value": "0x12"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17113:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17113:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17113:15:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17144:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17147:4:5",
|
|
"type": "",
|
|
"value": "0x24"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17137:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17137:15:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17137:15:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "panic_error_0x12",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "16978:180:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17206:143:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17216:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17239:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17221:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17221:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17216:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17250:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17273:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17255:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17255:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17250:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17297:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x12",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17299:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17299:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17299:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17294:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17287:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17287:9:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "17284:35:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17329:14:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17338:1:5"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17341:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "div",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17334:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17334:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "r",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17329:1:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "checked_div_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17195:1:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17198:1:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "r",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17204:1:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "17164:185:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17399:261:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17409:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17432:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17414:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17414:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17409:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17443:25:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17466:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17448:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17448:20:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17443:1:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17606:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x11",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17608:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17608:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17608:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17527:1:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17534:66:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17602:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17530:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17530:74:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "gt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17524:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17524:81:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "17521:107:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17638:16:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17649:1:5"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17652:1:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17645:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17645:9:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "sum",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17638:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "checked_add_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "x",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17386:1:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "y",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17389:1:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "sum",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17395:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "17355:305:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17709:190:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17719:33:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17746:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17728:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17728:24:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17719:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17842:22:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "panic_error_0x11",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17844:16:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17844:18:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "17844:18:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17767:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17774:66:5",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17764:2:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17764:77:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "17761:103:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17873:20:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17884:5:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "17891:1:5",
|
|
"type": "",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17880:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "17880:13:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "ret",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17873:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "increment_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17695:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "ret",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17705:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "17666:233:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "17937:28:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "17947:12:5",
|
|
"value": {
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17954:5:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "ret",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "17947:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "identity",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17923:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "ret",
|
|
"nodeType": "YulTypedName",
|
|
"src": "17933:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "17905:60:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18031:82:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "18041:66:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18099:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18081:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18081:24:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "identity",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18072:8:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18072:34:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18054:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18054:53:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18041:9:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "convert_t_uint160_to_t_uint160",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18011:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18021:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "17971:142:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18179:66:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "18189:50:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18233:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "convert_t_uint160_to_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18202:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18202:37:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18189:9:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "convert_t_uint160_to_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18159:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18169:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "18119:126:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18319:66:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "18329:50:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18373:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "convert_t_uint160_to_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18342:30:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18342:37:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18329:9:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "convert_t_address_payable_to_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18299:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18309:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "18251:134:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18464:74:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18481:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18525:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "convert_t_address_payable_to_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18486:38:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18486:45:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18474:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18474:58:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "18474:58:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_address_payable_to_t_address_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18452:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18459:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "18391:147:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18678:214:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "18688:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18700:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "18711:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18696:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18696:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18688:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18776:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18789:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "18800:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18785:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18785:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_payable_to_t_address_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18724:51:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18724:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "18724:79:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18857:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18870:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "18881:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18866:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18866:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18813:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18813:72:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "18813:72:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_address_payable_t_uint256__to_t_address_t_uint256__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18642:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18654:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18662:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18673:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "18544:348:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "18958:77:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "18968:22:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18983:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18977:5:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18977:13:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18968:5:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19023:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_bool",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "18999:23:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "18999:30:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "18999:30:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_bool_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18936:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18944:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "18952:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "18898:137:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "19115:271:5",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "19161:83:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19163:77:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19163:79:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "19163:79:5"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19136:7:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19145:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19132:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19132:23:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19157:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19128:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19128:32:5"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "19125:119:5"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "19254:125:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "19269:15:5",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19283:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19273:6:5",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "19298:71:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19341:9:5"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19352:6:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19337:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19337:22:5"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19361:7:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_bool_fromMemory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19308:28:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19308:61:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19298:6:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_bool_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19085:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19096:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19108:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "19041:345:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "19498:70:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19520:6:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19528:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19516:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19516:14:5"
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f74206265206e756c6c",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19532:28:5",
|
|
"type": "",
|
|
"value": "Question ID cannot be null"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19509:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19509:52:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "19509:52:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19490:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "19392:176:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "19720:220:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "19730:74:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19796:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19801:2:5",
|
|
"type": "",
|
|
"value": "26"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19737:58:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19737:67:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19730:3:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19902:3:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19813:88:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19813:93:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "19813:93:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "19915:19:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19926:3:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "19931:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19922:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "19922:12:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "19915:3:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19708:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "19716:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "19574:366:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "20117:248:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "20127:26:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20139:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "20150:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20135:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20135:18:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20127:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20174:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "20185:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20170:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20170:17:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20193:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20199:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20189:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20189:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20163:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20163:47:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "20163:47:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "20219:139:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20353:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20227:124:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20227:131:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20219:4:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20097:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20112:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "19946:419:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "20424:32:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "20434:16:5",
|
|
"value": {
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20445:5:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20434:7:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_rational_0_by_1",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20406:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20416:7:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "20371:85:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "20530:90:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "20540:74:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20606:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_rational_0_by_1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20580:25:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20580:32:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "identity",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20571:8:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20571:42:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20553:17:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20553:61:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20540:9:5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "convert_t_rational_0_by_1_to_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20510:5:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "converted",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20520:9:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "20462:158:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "20699:74:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20716:3:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20760:5:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "convert_t_rational_0_by_1_to_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20721:38:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20721:45:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "20709:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "20709:58:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "20709:58:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_rational_0_by_1_to_t_uint256_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20687:5:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "20694:3:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "20626:147:5"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "21137:869:5",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "21147:27:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21159:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21170:3:5",
|
|
"type": "",
|
|
"value": "256"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21155:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21155:19:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21147:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21228:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21241:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21252:1:5",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21237:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21237:17:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21184:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21184:71:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21184:71:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21276:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21287:2:5",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21272:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21272:18:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21296:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21302:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21292:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21292:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21265:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21265:48:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21265:48:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "21322:86:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21394:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21403:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21330:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21330:78:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21322:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21462:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21475:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21486:2:5",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21471:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21471:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21418:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21418:72:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21418:72:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21544:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21557:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21568:2:5",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21553:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21553:18:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21500:43:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21500:72:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21500:72:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21593:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21604:3:5",
|
|
"type": "",
|
|
"value": "128"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21589:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21589:19:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21614:4:5"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21620:9:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21610:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21610:20:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21582:6:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21582:49:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21582:49:5"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "21640:86:5",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value4",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21712:6:5"
|
|
},
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21721:4:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21648:63:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21648:78:5"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21640:4:5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value5",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21788:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21801:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21812:3:5",
|
|
"type": "",
|
|
"value": "160"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21797:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21797:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_rational_0_by_1_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21736:51:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21736:81:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21736:81:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value6",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21879:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21892:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21903:3:5",
|
|
"type": "",
|
|
"value": "192"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21888:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21888:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_rational_0_by_1_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21827:51:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21827:81:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21827:81:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value7",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21970:6:5"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21983:9:5"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "21994:3:5",
|
|
"type": "",
|
|
"value": "224"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21979:3:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21979:19:5"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_rational_0_by_1_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "21918:51:5"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "21918:81:5"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "21918:81:5"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_rational_0_by_1_t_rational_0_by_1_t_rational_0_by_1__to_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21053:9:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value7",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21065:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value6",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21073:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value5",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21081:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value4",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21089:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value3",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21097:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21105:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21113:6:5",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21121:6:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "21132:4:5",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "20779:1227:5"
|
|
}
|
|
]
|
|
},
|
|
"contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function array_length_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_t_uint256_to_t_uint256(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n // struct PredictionMarketContract.AmountAdded -> struct PredictionMarketContract.AmountAdded\n function abi_encode_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr(value, pos) {\n let tail := add(pos, 0x60)\n\n {\n // user\n\n let memberValue0 := mload(add(value, 0x00))\n abi_encode_t_address_to_t_address(memberValue0, add(pos, 0x00))\n }\n\n {\n // amount\n\n let memberValue0 := mload(add(value, 0x20))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x20))\n }\n\n {\n // timestamp\n\n let memberValue0 := mload(add(value, 0x40))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x40))\n }\n\n }\n\n function abi_encodeUpdatedPos_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr(value0, pos) -> updatedPos {\n abi_encode_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr(value0, pos)\n updatedPos := add(pos, 0x60)\n }\n\n function array_nextElement_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // struct PredictionMarketContract.AmountAdded[] -> struct PredictionMarketContract.AmountAdded[]\n function abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_struct$_AmountAdded_$738_memory_ptr_to_t_struct$_AmountAdded_$738_memory_ptr(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack(value0, tail)\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr_fromStack(value1, tail)\n\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_tuple_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256_t_bool_t_string_memory_ptr_t_string_memory_ptr__to_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256_t_bool_t_string_memory_ptr_t_string_memory_ptr__fromStack_reversed(headStart , value10, value9, value8, value7, value6, value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 352)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value1, tail)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value2, add(headStart, 64))\n\n abi_encode_t_address_to_t_address_fromStack(value3, add(headStart, 96))\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value4, tail)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value5, add(headStart, 160))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value6, add(headStart, 192))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value7, add(headStart, 224))\n\n abi_encode_t_bool_to_t_bool_fromStack(value8, add(headStart, 256))\n\n mstore(add(headStart, 288), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value9, tail)\n\n mstore(add(headStart, 320), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value10, tail)\n\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function validator_revert_t_bool(value) {\n if iszero(eq(value, cleanup_t_bool(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_bool(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_bool(value)\n }\n\n function abi_decode_tuple_t_uint256t_bool(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_bool(add(headStart, offset), dataEnd)\n }\n\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function copy_calldata_to_memory(src, dst, length) {\n calldatacopy(dst, src, length)\n // clear end\n mstore(add(dst, length), 0)\n }\n\n function abi_decode_available_length_t_string_memory_ptr(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_calldata_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_string_memory_ptr(add(offset, 0x20), length, end)\n }\n\n function abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptrt_string_memory_ptr(headStart, dataEnd) -> value0, value1, value2, value3 {\n if slt(sub(dataEnd, headStart), 128) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 32))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value1 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 64))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value2 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 96))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value3 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function store_literal_in_memory_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5(memPtr) {\n\n mstore(add(memPtr, 0), \"Unauthorized\")\n\n }\n\n function abi_encode_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 12)\n store_literal_in_memory_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566(memPtr) {\n\n mstore(add(memPtr, 0), \"Question ID cannot be empty\")\n\n }\n\n function abi_encode_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 27)\n store_literal_in_memory_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_mul_t_uint256(x, y) -> product {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x != 0 and y > (maxValue / x)\n if and(iszero(iszero(x)), gt(y, div(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, x))) { panic_error_0x11() }\n\n product := mul(x, y)\n }\n\n function panic_error_0x12() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x12)\n revert(0, 0x24)\n }\n\n function checked_div_t_uint256(x, y) -> r {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n if iszero(y) { panic_error_0x12() }\n\n r := div(x, y)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function increment_t_uint256(value) -> ret {\n value := cleanup_t_uint256(value)\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function identity(value) -> ret {\n ret := value\n }\n\n function convert_t_uint160_to_t_uint160(value) -> converted {\n converted := cleanup_t_uint160(identity(cleanup_t_uint160(value)))\n }\n\n function convert_t_uint160_to_t_address(value) -> converted {\n converted := convert_t_uint160_to_t_uint160(value)\n }\n\n function convert_t_address_payable_to_t_address(value) -> converted {\n converted := convert_t_uint160_to_t_address(value)\n }\n\n function abi_encode_t_address_payable_to_t_address_fromStack(value, pos) {\n mstore(pos, convert_t_address_payable_to_t_address(value))\n }\n\n function abi_encode_tuple_t_address_payable_t_uint256__to_t_address_t_uint256__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_address_payable_to_t_address_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value1, add(headStart, 32))\n\n }\n\n function abi_decode_t_bool_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_bool(value)\n }\n\n function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_bool_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function store_literal_in_memory_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399(memPtr) {\n\n mstore(add(memPtr, 0), \"Question ID cannot be null\")\n\n }\n\n function abi_encode_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 26)\n store_literal_in_memory_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function cleanup_t_rational_0_by_1(value) -> cleaned {\n cleaned := value\n }\n\n function convert_t_rational_0_by_1_to_t_uint256(value) -> converted {\n converted := cleanup_t_uint256(identity(cleanup_t_rational_0_by_1(value)))\n }\n\n function abi_encode_t_rational_0_by_1_to_t_uint256_fromStack(value, pos) {\n mstore(pos, convert_t_rational_0_by_1_to_t_uint256(value))\n }\n\n function abi_encode_tuple_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_rational_0_by_1_t_rational_0_by_1_t_rational_0_by_1__to_t_uint256_t_string_memory_ptr_t_uint256_t_address_t_string_memory_ptr_t_uint256_t_uint256_t_uint256__fromStack_reversed(headStart , value7, value6, value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 256)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value1, tail)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value2, add(headStart, 64))\n\n abi_encode_t_address_to_t_address_fromStack(value3, add(headStart, 96))\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value4, tail)\n\n abi_encode_t_rational_0_by_1_to_t_uint256_fromStack(value5, add(headStart, 160))\n\n abi_encode_t_rational_0_by_1_to_t_uint256_fromStack(value6, add(headStart, 192))\n\n abi_encode_t_rational_0_by_1_to_t_uint256_fromStack(value7, add(headStart, 224))\n\n }\n\n}\n",
|
|
"id": 5,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"sourceMap": "113:5136:4:-:0;;;294:1;262:33;;302:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;352:10;344:5;;:18;;;;;;;;;;;;;;;;;;384:10;372:9;;:22;;;;;;;;;;;;;;;;;;302:99;113:5136;;88:117:5;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:143::-;753:5;784:6;778:13;769:22;;800:33;827:5;800:33;:::i;:::-;696:143;;;;:::o;845:351::-;915:6;964:2;952:9;943:7;939:23;935:32;932:119;;;970:79;;:::i;:::-;932:119;1090:1;1115:64;1171:7;1162:6;1151:9;1147:22;1115:64;:::i;:::-;1105:74;;1061:128;845:351;;;;:::o;113:5136:4:-;;;;;;;",
|
|
"deployedSourceMap": "113:5136:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3190:258;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;210:46;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;179:24;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3454:1793;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;153:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2255:463;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;968:33;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1266:983;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;262:33;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2724:460;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;914:48;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3190:258;3278:20;3300;3336:26;3365:9;:22;3375:11;3365:22;;;;;;;;;;;3336:51;;3405:8;:17;;3424:8;:16;;3397:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3190:258;;;:::o;210:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;179:24::-;;;;;;;;;;;;;:::o;3454:1793::-;3594:5;;;;;;;;;;3580:19;;:10;:19;;;3572:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;3649:1;3634:11;:16;3626:56;;;;;;;;;;;;:::i;:::-;;;;;;;;;3693:26;3722:9;:22;3732:11;3722:22;;;;;;;;;;;3693:51;;3758:12;3754:1487;;;3791:9;3786:391;3810:8;:17;;:24;;;;3806:1;:28;3786:391;;;3859:14;3953:8;:23;;;3922:8;:17;;3940:1;3922:20;;;;;;;;:::i;:::-;;;;;;;;;;;;:27;;;3877:8;:22;;;:72;;;;:::i;:::-;3876:100;;;;:::i;:::-;3859:117;;4068:8;:17;;4086:1;4068:20;;;;;;;;:::i;:::-;;;;;;;;;;;;:27;;;4039:6;:56;;;;:::i;:::-;3994:13;:40;4008:8;:17;;4026:1;4008:20;;;;;;;;:::i;:::-;;;;;;;;;;;;:25;;;;;;;;;;;;3994:40;;;;;;;;;;;;;;;;:102;;;;;;;:::i;:::-;;;;;;;;4114:16;4136:8;:17;;4154:1;4136:20;;;;;;;;:::i;:::-;;;;;;;;;;;;:25;;;;;;;;;;;;4114:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3841:336;3836:3;;;;;:::i;:::-;;;;3786:391;;;;4196:9;4191:268;4215:16;:23;;;;4211:1;:27;4191:268;;;4263:24;4298:16;4315:1;4298:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4263:55;;4342:9;;;;;;;;;;;4336:25;;;4362:8;4372:13;:23;4386:8;4372:23;;;;;;;;;;;;;;;;4336:60;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4421:13;:23;4435:8;4421:23;;;;;;;;;;;;;;;4414:30;;;4245:214;4240:3;;;;;:::i;:::-;;;;4191:268;;;;4479:16;;4472:23;;;;:::i;:::-;3754:1487;;;4531:9;4526:386;4550:8;:16;;:23;;;;4546:1;:27;4526:386;;;4598:14;4692:8;:22;;;4662:8;:16;;4679:1;4662:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:26;;;4616:8;:23;;;:72;;;;:::i;:::-;4615:99;;;;:::i;:::-;4598:116;;4805:8;:16;;4822:1;4805:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:26;;;4776:6;:55;;;;:::i;:::-;4732:13;:39;4746:8;:16;;4763:1;4746:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:24;;;;;;;;;;;;4732:39;;;;;;;;;;;;;;;;:100;;;;;;;:::i;:::-;;;;;;;;4850:16;4872:8;:16;;4889:1;4872:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:24;;;;;;;;;;;;4850:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4580:332;4575:3;;;;;:::i;:::-;;;;4526:386;;;;4931:9;4926:268;4950:16;:23;;;;4946:1;:27;4926:268;;;4998:24;5033:16;5050:1;5033:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4998:55;;5077:9;;;;;;;;;;;5071:25;;;5097:8;5107:13;:23;5121:8;5107:23;;;;;;;;;;;;;;;;5071:60;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5156:13;:23;5170:8;5156:23;;;;;;;;;;;;;;;5149:30;;;4980:214;4975:3;;;;;:::i;:::-;;;;4926:268;;;;5214:16;;5207:23;;;;:::i;:::-;3754:1487;3562:1685;3454:1793;;:::o;153:20::-;;;;;;;;;;;;:::o;2255:463::-;2343:1;2328:11;:16;2320:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;2385:26;2414:9;:22;2424:11;2414:22;;;;;;;;;;;2385:51;;2446:30;2479:97;;;;;;;;2504:10;2479:97;;;;;;2528:9;2479:97;;;;2551:15;2479:97;;;2446:130;;2614:9;2587:8;:23;;;:36;;;;;;;:::i;:::-;;;;;;;;2657:9;2633:8;:20;;;:33;;;;;;;:::i;:::-;;;;;;;;2676:8;:17;;2699:11;2676:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2310:408;;2255:463;:::o;968:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1266:983::-;1481:5;;;;;;;;;;1467:19;;:10;:19;;;1459:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;1514:17;1534:15;1514:35;;1560:26;1589:9;:25;1599:14;;1589:25;;;;;;;;;;;1560:54;;1639:14;;:16;;;;;;;;;:::i;:::-;;;;;1625:8;:11;;:30;;;;1685:9;1665:8;:17;;:29;;;;;;;;;;;;:::i;:::-;;1725:9;1704:8;:18;;:30;;;;1765:10;1744:8;:18;;;:31;;;;;;;;;;;;;;;;;;1813:17;1785:8;:25;;:45;;;;;;;;;;;;:::i;:::-;;1863:1;1840:8;:20;;:24;;;;1900:1;1874:8;:23;;:27;;;;1936:1;1911:8;:22;;:26;;;;1970:12;1947:8;:20;;:35;;;;;;;;;;;;:::i;:::-;;2015:12;1992:8;:20;;:35;;;;;;;;;;;;:::i;:::-;;2043:199;2072:14;;2100:9;2123;2146:10;2170:17;2201:1;2216;2231;2043:199;;;;;;;;;;;;;:::i;:::-;;;;;;;;1449:800;;1266:983;;;;:::o;262:33::-;;;;:::o;2724:460::-;2811:1;2796:11;:16;2788:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;2853:26;2882:9;:22;2892:11;2882:22;;;;;;;;;;;2853:51;;2914:30;2947:97;;;;;;;;2972:10;2947:97;;;;;;2996:9;2947:97;;;;3019:15;2947:97;;;2914:130;;3081:9;3055:8;:22;;;:35;;;;;;;:::i;:::-;;;;;;;;3124:9;3100:8;:20;;;:33;;;;;;;:::i;:::-;;;;;;;;3143:8;:16;;3165:11;3143:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2778:406;;2724:460;:::o;914:48::-;;;;;;;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:75:5:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:142::-;1120:6;1154:5;1148:12;1138:22;;1025:142;;;:::o;1173:212::-;1300:11;1334:6;1329:3;1322:19;1374:4;1369:3;1365:14;1350:29;;1173:212;;;;:::o;1391:160::-;1486:4;1509:3;1501:11;;1539:4;1534:3;1530:14;1522:22;;1391:160;;;:::o;1557:126::-;1594:7;1634:42;1627:5;1623:54;1612:65;;1557:126;;;:::o;1689:96::-;1726:7;1755:24;1773:5;1755:24;:::i;:::-;1744:35;;1689:96;;;:::o;1791:108::-;1868:24;1886:5;1868:24;:::i;:::-;1863:3;1856:37;1791:108;;:::o;1905:::-;1982:24;2000:5;1982:24;:::i;:::-;1977:3;1970:37;1905:108;;:::o;2117:684::-;2260:4;2255:3;2251:14;2347:4;2340:5;2336:16;2330:23;2366:63;2423:4;2418:3;2414:14;2400:12;2366:63;:::i;:::-;2275:164;2523:4;2516:5;2512:16;2506:23;2542:63;2599:4;2594:3;2590:14;2576:12;2542:63;:::i;:::-;2449:166;2702:4;2695:5;2691:16;2685:23;2721:63;2778:4;2773:3;2769:14;2755:12;2721:63;:::i;:::-;2625:169;2229:572;2117:684;;:::o;2807:291::-;2932:10;2953:102;3051:3;3043:6;2953:102;:::i;:::-;3087:4;3082:3;3078:14;3064:28;;2807:291;;;;:::o;3104:141::-;3202:4;3234;3229:3;3225:14;3217:22;;3104:141;;;:::o;3353:956::-;3528:3;3557:82;3633:5;3557:82;:::i;:::-;3655:114;3762:6;3757:3;3655:114;:::i;:::-;3648:121;;3793:84;3871:5;3793:84;:::i;:::-;3900:7;3931:1;3916:368;3941:6;3938:1;3935:13;3916:368;;;4017:6;4011:13;4044:119;4159:3;4144:13;4044:119;:::i;:::-;4037:126;;4186:88;4267:6;4186:88;:::i;:::-;4176:98;;3976:308;3963:1;3960;3956:9;3951:14;;3916:368;;;3920:14;4300:3;4293:10;;3533:776;;;3353:956;;;;:::o;4315:858::-;4648:4;4686:2;4675:9;4671:18;4663:26;;4735:9;4729:4;4725:20;4721:1;4710:9;4706:17;4699:47;4763:164;4922:4;4913:6;4763:164;:::i;:::-;4755:172;;4974:9;4968:4;4964:20;4959:2;4948:9;4944:18;4937:48;5002:164;5161:4;5152:6;5002:164;:::i;:::-;4994:172;;4315:858;;;;;:::o;5179:118::-;5266:24;5284:5;5266:24;:::i;:::-;5261:3;5254:37;5179:118;;:::o;5303:99::-;5355:6;5389:5;5383:12;5373:22;;5303:99;;;:::o;5408:169::-;5492:11;5526:6;5521:3;5514:19;5566:4;5561:3;5557:14;5542:29;;5408:169;;;;:::o;5583:307::-;5651:1;5661:113;5675:6;5672:1;5669:13;5661:113;;;5760:1;5755:3;5751:11;5745:18;5741:1;5736:3;5732:11;5725:39;5697:2;5694:1;5690:10;5685:15;;5661:113;;;5792:6;5789:1;5786:13;5783:101;;;5872:1;5863:6;5858:3;5854:16;5847:27;5783:101;5632:258;5583:307;;;:::o;5896:102::-;5937:6;5988:2;5984:7;5979:2;5972:5;5968:14;5964:28;5954:38;;5896:102;;;:::o;6004:364::-;6092:3;6120:39;6153:5;6120:39;:::i;:::-;6175:71;6239:6;6234:3;6175:71;:::i;:::-;6168:78;;6255:52;6300:6;6295:3;6288:4;6281:5;6277:16;6255:52;:::i;:::-;6332:29;6354:6;6332:29;:::i;:::-;6327:3;6323:39;6316:46;;6096:272;6004:364;;;;:::o;6374:118::-;6461:24;6479:5;6461:24;:::i;:::-;6456:3;6449:37;6374:118;;:::o;6498:90::-;6532:7;6575:5;6568:13;6561:21;6550:32;;6498:90;;;:::o;6594:109::-;6675:21;6690:5;6675:21;:::i;:::-;6670:3;6663:34;6594:109;;:::o;6709:1684::-;7157:4;7195:3;7184:9;7180:19;7172:27;;7209:71;7277:1;7266:9;7262:17;7253:6;7209:71;:::i;:::-;7327:9;7321:4;7317:20;7312:2;7301:9;7297:18;7290:48;7355:78;7428:4;7419:6;7355:78;:::i;:::-;7347:86;;7443:72;7511:2;7500:9;7496:18;7487:6;7443:72;:::i;:::-;7525;7593:2;7582:9;7578:18;7569:6;7525:72;:::i;:::-;7645:9;7639:4;7635:20;7629:3;7618:9;7614:19;7607:49;7673:78;7746:4;7737:6;7673:78;:::i;:::-;7665:86;;7761:73;7829:3;7818:9;7814:19;7805:6;7761:73;:::i;:::-;7844;7912:3;7901:9;7897:19;7888:6;7844:73;:::i;:::-;7927;7995:3;7984:9;7980:19;7971:6;7927:73;:::i;:::-;8010:67;8072:3;8061:9;8057:19;8048:6;8010:67;:::i;:::-;8125:9;8119:4;8115:20;8109:3;8098:9;8094:19;8087:49;8153:78;8226:4;8217:6;8153:78;:::i;:::-;8145:86;;8279:9;8273:4;8269:20;8263:3;8252:9;8248:19;8241:49;8307:79;8381:4;8371:7;8307:79;:::i;:::-;8299:87;;6709:1684;;;;;;;;;;;;;;:::o;8399:222::-;8492:4;8530:2;8519:9;8515:18;8507:26;;8543:71;8611:1;8600:9;8596:17;8587:6;8543:71;:::i;:::-;8399:222;;;;:::o;8627:116::-;8697:21;8712:5;8697:21;:::i;:::-;8690:5;8687:32;8677:60;;8733:1;8730;8723:12;8677:60;8627:116;:::o;8749:133::-;8792:5;8830:6;8817:20;8808:29;;8846:30;8870:5;8846:30;:::i;:::-;8749:133;;;;:::o;8888:468::-;8953:6;8961;9010:2;8998:9;8989:7;8985:23;8981:32;8978:119;;;9016:79;;:::i;:::-;8978:119;9136:1;9161:53;9206:7;9197:6;9186:9;9182:22;9161:53;:::i;:::-;9151:63;;9107:117;9263:2;9289:50;9331:7;9322:6;9311:9;9307:22;9289:50;:::i;:::-;9279:60;;9234:115;8888:468;;;;;:::o;9362:117::-;9471:1;9468;9461:12;9485:117;9594:1;9591;9584:12;9608:180;9656:77;9653:1;9646:88;9753:4;9750:1;9743:15;9777:4;9774:1;9767:15;9794:281;9877:27;9899:4;9877:27;:::i;:::-;9869:6;9865:40;10007:6;9995:10;9992:22;9971:18;9959:10;9956:34;9953:62;9950:88;;;10018:18;;:::i;:::-;9950:88;10058:10;10054:2;10047:22;9837:238;9794:281;;:::o;10081:129::-;10115:6;10142:20;;:::i;:::-;10132:30;;10171:33;10199:4;10191:6;10171:33;:::i;:::-;10081:129;;;:::o;10216:308::-;10278:4;10368:18;10360:6;10357:30;10354:56;;;10390:18;;:::i;:::-;10354:56;10428:29;10450:6;10428:29;:::i;:::-;10420:37;;10512:4;10506;10502:15;10494:23;;10216:308;;;:::o;10530:154::-;10614:6;10609:3;10604;10591:30;10676:1;10667:6;10662:3;10658:16;10651:27;10530:154;;;:::o;10690:412::-;10768:5;10793:66;10809:49;10851:6;10809:49;:::i;:::-;10793:66;:::i;:::-;10784:75;;10882:6;10875:5;10868:21;10920:4;10913:5;10909:16;10958:3;10949:6;10944:3;10940:16;10937:25;10934:112;;;10965:79;;:::i;:::-;10934:112;11055:41;11089:6;11084:3;11079;11055:41;:::i;:::-;10774:328;10690:412;;;;;:::o;11122:340::-;11178:5;11227:3;11220:4;11212:6;11208:17;11204:27;11194:122;;11235:79;;:::i;:::-;11194:122;11352:6;11339:20;11377:79;11452:3;11444:6;11437:4;11429:6;11425:17;11377:79;:::i;:::-;11368:88;;11184:278;11122:340;;;;:::o;11468:1485::-;11594:6;11602;11610;11618;11667:3;11655:9;11646:7;11642:23;11638:33;11635:120;;;11674:79;;:::i;:::-;11635:120;11822:1;11811:9;11807:17;11794:31;11852:18;11844:6;11841:30;11838:117;;;11874:79;;:::i;:::-;11838:117;11979:63;12034:7;12025:6;12014:9;12010:22;11979:63;:::i;:::-;11969:73;;11765:287;12119:2;12108:9;12104:18;12091:32;12150:18;12142:6;12139:30;12136:117;;;12172:79;;:::i;:::-;12136:117;12277:63;12332:7;12323:6;12312:9;12308:22;12277:63;:::i;:::-;12267:73;;12062:288;12417:2;12406:9;12402:18;12389:32;12448:18;12440:6;12437:30;12434:117;;;12470:79;;:::i;:::-;12434:117;12575:63;12630:7;12621:6;12610:9;12606:22;12575:63;:::i;:::-;12565:73;;12360:288;12715:2;12704:9;12700:18;12687:32;12746:18;12738:6;12735:30;12732:117;;;12768:79;;:::i;:::-;12732:117;12873:63;12928:7;12919:6;12908:9;12904:22;12873:63;:::i;:::-;12863:73;;12658:288;11468:1485;;;;;;;:::o;12959:222::-;13052:4;13090:2;13079:9;13075:18;13067:26;;13103:71;13171:1;13160:9;13156:17;13147:6;13103:71;:::i;:::-;12959:222;;;;:::o;13187:122::-;13260:24;13278:5;13260:24;:::i;:::-;13253:5;13250:35;13240:63;;13299:1;13296;13289:12;13240:63;13187:122;:::o;13315:139::-;13361:5;13399:6;13386:20;13377:29;;13415:33;13442:5;13415:33;:::i;:::-;13315:139;;;;:::o;13460:329::-;13519:6;13568:2;13556:9;13547:7;13543:23;13539:32;13536:119;;;13574:79;;:::i;:::-;13536:119;13694:1;13719:53;13764:7;13755:6;13744:9;13740:22;13719:53;:::i;:::-;13709:63;;13665:117;13460:329;;;;:::o;13795:180::-;13843:77;13840:1;13833:88;13940:4;13937:1;13930:15;13964:4;13961:1;13954:15;13981:320;14025:6;14062:1;14056:4;14052:12;14042:22;;14109:1;14103:4;14099:12;14130:18;14120:81;;14186:4;14178:6;14174:17;14164:27;;14120:81;14248:2;14240:6;14237:14;14217:18;14214:38;14211:84;;;14267:18;;:::i;:::-;14211:84;14032:269;13981:320;;;:::o;14307:162::-;14447:14;14443:1;14435:6;14431:14;14424:38;14307:162;:::o;14475:366::-;14617:3;14638:67;14702:2;14697:3;14638:67;:::i;:::-;14631:74;;14714:93;14803:3;14714:93;:::i;:::-;14832:2;14827:3;14823:12;14816:19;;14475:366;;;:::o;14847:419::-;15013:4;15051:2;15040:9;15036:18;15028:26;;15100:9;15094:4;15090:20;15086:1;15075:9;15071:17;15064:47;15128:131;15254:4;15128:131;:::i;:::-;15120:139;;14847:419;;;:::o;15272:177::-;15412:29;15408:1;15400:6;15396:14;15389:53;15272:177;:::o;15455:366::-;15597:3;15618:67;15682:2;15677:3;15618:67;:::i;:::-;15611:74;;15694:93;15783:3;15694:93;:::i;:::-;15812:2;15807:3;15803:12;15796:19;;15455:366;;;:::o;15827:419::-;15993:4;16031:2;16020:9;16016:18;16008:26;;16080:9;16074:4;16070:20;16066:1;16055:9;16051:17;16044:47;16108:131;16234:4;16108:131;:::i;:::-;16100:139;;15827:419;;;:::o;16252:180::-;16300:77;16297:1;16290:88;16397:4;16394:1;16387:15;16421:4;16418:1;16411:15;16438:180;16486:77;16483:1;16476:88;16583:4;16580:1;16573:15;16607:4;16604:1;16597:15;16624:348;16664:7;16687:20;16705:1;16687:20;:::i;:::-;16682:25;;16721:20;16739:1;16721:20;:::i;:::-;16716:25;;16909:1;16841:66;16837:74;16834:1;16831:81;16826:1;16819:9;16812:17;16808:105;16805:131;;;16916:18;;:::i;:::-;16805:131;16964:1;16961;16957:9;16946:20;;16624:348;;;;:::o;16978:180::-;17026:77;17023:1;17016:88;17123:4;17120:1;17113:15;17147:4;17144:1;17137:15;17164:185;17204:1;17221:20;17239:1;17221:20;:::i;:::-;17216:25;;17255:20;17273:1;17255:20;:::i;:::-;17250:25;;17294:1;17284:35;;17299:18;;:::i;:::-;17284:35;17341:1;17338;17334:9;17329:14;;17164:185;;;;:::o;17355:305::-;17395:3;17414:20;17432:1;17414:20;:::i;:::-;17409:25;;17448:20;17466:1;17448:20;:::i;:::-;17443:25;;17602:1;17534:66;17530:74;17527:1;17524:81;17521:107;;;17608:18;;:::i;:::-;17521:107;17652:1;17649;17645:9;17638:16;;17355:305;;;;:::o;17666:233::-;17705:3;17728:24;17746:5;17728:24;:::i;:::-;17719:33;;17774:66;17767:5;17764:77;17761:103;;;17844:18;;:::i;:::-;17761:103;17891:1;17884:5;17880:13;17873:20;;17666:233;;;:::o;17905:60::-;17933:3;17954:5;17947:12;;17905:60;;;:::o;17971:142::-;18021:9;18054:53;18072:34;18081:24;18099:5;18081:24;:::i;:::-;18072:34;:::i;:::-;18054:53;:::i;:::-;18041:66;;17971:142;;;:::o;18119:126::-;18169:9;18202:37;18233:5;18202:37;:::i;:::-;18189:50;;18119:126;;;:::o;18251:134::-;18309:9;18342:37;18373:5;18342:37;:::i;:::-;18329:50;;18251:134;;;:::o;18391:147::-;18486:45;18525:5;18486:45;:::i;:::-;18481:3;18474:58;18391:147;;:::o;18544:348::-;18673:4;18711:2;18700:9;18696:18;18688:26;;18724:79;18800:1;18789:9;18785:17;18776:6;18724:79;:::i;:::-;18813:72;18881:2;18870:9;18866:18;18857:6;18813:72;:::i;:::-;18544:348;;;;;:::o;18898:137::-;18952:5;18983:6;18977:13;18968:22;;18999:30;19023:5;18999:30;:::i;:::-;18898:137;;;;:::o;19041:345::-;19108:6;19157:2;19145:9;19136:7;19132:23;19128:32;19125:119;;;19163:79;;:::i;:::-;19125:119;19283:1;19308:61;19361:7;19352:6;19341:9;19337:22;19308:61;:::i;:::-;19298:71;;19254:125;19041:345;;;;:::o;19392:176::-;19532:28;19528:1;19520:6;19516:14;19509:52;19392:176;:::o;19574:366::-;19716:3;19737:67;19801:2;19796:3;19737:67;:::i;:::-;19730:74;;19813:93;19902:3;19813:93;:::i;:::-;19931:2;19926:3;19922:12;19915:19;;19574:366;;;:::o;19946:419::-;20112:4;20150:2;20139:9;20135:18;20127:26;;20199:9;20193:4;20189:20;20185:1;20174:9;20170:17;20163:47;20227:131;20353:4;20227:131;:::i;:::-;20219:139;;19946:419;;;:::o;20371:85::-;20416:7;20445:5;20434:16;;20371:85;;;:::o;20462:158::-;20520:9;20553:61;20571:42;20580:32;20606:5;20580:32;:::i;:::-;20571:42;:::i;:::-;20553:61;:::i;:::-;20540:74;;20462:158;;;:::o;20626:147::-;20721:45;20760:5;20721:45;:::i;:::-;20716:3;20709:58;20626:147;;:::o;20779:1227::-;21132:4;21170:3;21159:9;21155:19;21147:27;;21184:71;21252:1;21241:9;21237:17;21228:6;21184:71;:::i;:::-;21302:9;21296:4;21292:20;21287:2;21276:9;21272:18;21265:48;21330:78;21403:4;21394:6;21330:78;:::i;:::-;21322:86;;21418:72;21486:2;21475:9;21471:18;21462:6;21418:72;:::i;:::-;21500;21568:2;21557:9;21553:18;21544:6;21500:72;:::i;:::-;21620:9;21614:4;21610:20;21604:3;21593:9;21589:19;21582:49;21648:78;21721:4;21712:6;21648:78;:::i;:::-;21640:86;;21736:81;21812:3;21801:9;21797:19;21788:6;21736:81;:::i;:::-;21827;21903:3;21892:9;21888:19;21879:6;21827:81;:::i;:::-;21918;21994:3;21983:9;21979:19;21970:6;21918:81;:::i;:::-;20779:1227;;;;;;;;;;;:::o",
|
|
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.6;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\n\ncontract PredictionMarketContract {\n address public owner;\n address public polyToken;\n\n mapping(uint256 => Questions) public questions;\n uint256 public totalQuestions = 0;\n\n constructor(address _polyToken) {\n owner = msg.sender;\n polyToken = _polyToken;\n }\n\n struct Questions {\n uint256 id;\n string question;\n uint256 timestamp;\n address createdBy;\n string creatorImageHash;\n AmountAdded[] yesCount;\n AmountAdded[] noCount;\n uint256 totalAmount;\n uint256 totalYesAmount;\n uint256 totalNoAmount;\n bool eventCompleted;\n string description;\n string resolverUrl;\n }\n\n struct AmountAdded {\n address user;\n uint256 amount;\n uint256 timestamp;\n }\n\n mapping(address => uint256) public winningAmount;\n address[] public winningAddresses;\n\n event QuestionCreated(\n uint256 id,\n string question,\n uint256 timestamp,\n address createdBy,\n string creatorImageHash,\n uint256 totalAmount,\n uint256 totalYesAmount,\n uint256 totalNoAmount\n );\n\n function createQuestion(\n string memory _question,\n string memory _creatorImageHash,\n string memory _description,\n string memory _resolverUrl\n ) public {\n require(msg.sender == owner, \"Unauthorized\");\n\n uint256 timestamp = block.timestamp;\n\n Questions storage question = questions[totalQuestions];\n\n question.id = totalQuestions++;\n question.question = _question;\n question.timestamp = timestamp;\n question.createdBy = msg.sender;\n question.creatorImageHash = _creatorImageHash;\n question.totalAmount = 0;\n question.totalYesAmount = 0;\n question.totalNoAmount = 0;\n question.description = _description;\n question.resolverUrl = _resolverUrl;\n\n emit QuestionCreated(\n totalQuestions,\n _question,\n timestamp,\n msg.sender,\n _creatorImageHash,\n 0,\n 0,\n 0\n );\n }\n\n function addYesBet(uint256 _questionId) public payable {\n require(_questionId == 0, \"Question ID cannot be null\");\n Questions storage question = questions[_questionId];\n AmountAdded memory amountAdded = AmountAdded(\n msg.sender,\n msg.value,\n block.timestamp\n );\n\n question.totalYesAmount += msg.value;\n question.totalAmount += msg.value;\n question.yesCount.push(amountAdded);\n }\n\n function addNoBet(uint256 _questionId) public payable {\n require(_questionId == 0, \"Question ID cannot be null\");\n Questions storage question = questions[_questionId];\n AmountAdded memory amountAdded = AmountAdded(\n msg.sender,\n msg.value,\n block.timestamp\n );\n\n question.totalNoAmount += msg.value;\n question.totalAmount += msg.value;\n question.noCount.push(amountAdded);\n }\n\n function getGraphData(uint256 _questionId)\n public\n view\n returns (AmountAdded[] memory, AmountAdded[] memory)\n {\n Questions storage question = questions[_questionId];\n return (question.yesCount, question.noCount);\n }\n\n function distributeWinningAmount(uint256 _questionId, bool eventOutcome)\n public\n payable\n {\n require(msg.sender == owner, \"Unauthorized\");\n require(_questionId == 0, \"Question ID cannot be empty\");\n\n Questions storage question = questions[_questionId];\n if (eventOutcome) {\n for (uint256 i = 0; i < question.yesCount.length; i++) {\n uint256 amount = (question.totalNoAmount *\n question.yesCount[i].amount) / question.totalYesAmount;\n winningAmount[question.yesCount[i].user] += (amount +\n question.yesCount[i].amount);\n winningAddresses.push(question.yesCount[i].user);\n }\n\n for (uint256 i = 0; i < winningAddresses.length; i++) {\n address payable _address = payable(winningAddresses[i]);\n ERC20(polyToken).transfer(_address, winningAmount[_address]);\n delete winningAmount[_address];\n }\n delete winningAddresses;\n } else {\n for (uint256 i = 0; i < question.noCount.length; i++) {\n uint256 amount = (question.totalYesAmount *\n question.noCount[i].amount) / question.totalNoAmount;\n winningAmount[question.noCount[i].user] += (amount +\n question.noCount[i].amount);\n winningAddresses.push(question.noCount[i].user);\n }\n\n for (uint256 i = 0; i < winningAddresses.length; i++) {\n address payable _address = payable(winningAddresses[i]);\n ERC20(polyToken).transfer(_address, winningAmount[_address]);\n delete winningAmount[_address];\n }\n delete winningAddresses;\n }\n }\n}\n\n// \"Will Modi win?\", \"abcd\", \"xyz\", \"https;//google.com\"\n",
|
|
"sourcePath": "/Users/viralsangani/Desktop/polymarket/contracts/Polymarket.sol",
|
|
"ast": {
|
|
"absolutePath": "project:/contracts/Polymarket.sol",
|
|
"exportedSymbols": {
|
|
"Context": [
|
|
670
|
|
],
|
|
"ERC20": [
|
|
545
|
|
],
|
|
"IERC20": [
|
|
623
|
|
],
|
|
"IERC20Metadata": [
|
|
648
|
|
],
|
|
"PredictionMarketContract": [
|
|
1231
|
|
]
|
|
},
|
|
"id": 1232,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 672,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".6"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:4"
|
|
},
|
|
{
|
|
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
|
|
"file": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
|
|
"id": 673,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 1232,
|
|
"sourceUnit": 546,
|
|
"src": "56:55:4",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "PredictionMarketContract",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 1231,
|
|
"linearizedBaseContracts": [
|
|
1231
|
|
],
|
|
"name": "PredictionMarketContract",
|
|
"nameLocation": "122:24:4",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "8da5cb5b",
|
|
"id": 675,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "168:5:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "153:20:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 674,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "153:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "6faa22a5",
|
|
"id": 677,
|
|
"mutability": "mutable",
|
|
"name": "polyToken",
|
|
"nameLocation": "194:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "179:24:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 676,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "179:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "31b1b978",
|
|
"id": 682,
|
|
"mutability": "mutable",
|
|
"name": "questions",
|
|
"nameLocation": "247:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "210:46:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions)"
|
|
},
|
|
"typeName": {
|
|
"id": 681,
|
|
"keyType": {
|
|
"id": 678,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "218:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "210:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions)"
|
|
},
|
|
"valueType": {
|
|
"id": 680,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 679,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "229:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "229:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "bea5b914",
|
|
"id": 685,
|
|
"mutability": "mutable",
|
|
"name": "totalQuestions",
|
|
"nameLocation": "277:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "262:33:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 683,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "262:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": {
|
|
"hexValue": "30",
|
|
"id": 684,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "294:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 699,
|
|
"nodeType": "Block",
|
|
"src": "334:67:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 693,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 690,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "344:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 691,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "352:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 692,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "352:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "344:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 694,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "344:18:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 697,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 695,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "372:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 696,
|
|
"name": "_polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 687,
|
|
"src": "384:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "372:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 698,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "372:22:4"
|
|
}
|
|
]
|
|
},
|
|
"id": 700,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 688,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 687,
|
|
"mutability": "mutable",
|
|
"name": "_polyToken",
|
|
"nameLocation": "322:10:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 700,
|
|
"src": "314:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 686,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "314:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "313:20:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 689,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "334:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "302:99:4",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "PredictionMarketContract.Questions",
|
|
"id": 731,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 702,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "442:2:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "434:10:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 701,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "434:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 704,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "461:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "454:15:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 703,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "454:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 706,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "487:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "479:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 705,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 708,
|
|
"mutability": "mutable",
|
|
"name": "createdBy",
|
|
"nameLocation": "514:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "506:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 707,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "506:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 710,
|
|
"mutability": "mutable",
|
|
"name": "creatorImageHash",
|
|
"nameLocation": "540:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "533:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 709,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "533:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 714,
|
|
"mutability": "mutable",
|
|
"name": "yesCount",
|
|
"nameLocation": "580:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "566:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 712,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 711,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "566:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "566:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 713,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "566:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 718,
|
|
"mutability": "mutable",
|
|
"name": "noCount",
|
|
"nameLocation": "612:7:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "598:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 716,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 715,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "598:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "598:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 717,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "598:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 720,
|
|
"mutability": "mutable",
|
|
"name": "totalAmount",
|
|
"nameLocation": "637:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "629:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 719,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "629:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 722,
|
|
"mutability": "mutable",
|
|
"name": "totalYesAmount",
|
|
"nameLocation": "666:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "658:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 721,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "658:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 724,
|
|
"mutability": "mutable",
|
|
"name": "totalNoAmount",
|
|
"nameLocation": "698:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "690:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 723,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "690:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 726,
|
|
"mutability": "mutable",
|
|
"name": "eventCompleted",
|
|
"nameLocation": "726:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "721:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 725,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "721:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 728,
|
|
"mutability": "mutable",
|
|
"name": "description",
|
|
"nameLocation": "757:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "750:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 727,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "750:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 730,
|
|
"mutability": "mutable",
|
|
"name": "resolverUrl",
|
|
"nameLocation": "785:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "778:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 729,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "778:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "Questions",
|
|
"nameLocation": "414:9:4",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1231,
|
|
"src": "407:396:4",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "PredictionMarketContract.AmountAdded",
|
|
"id": 738,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 733,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "846:4:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "838:12:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 732,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "838:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 735,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "868:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "860:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 734,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "860:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 737,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "892:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "884:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 736,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "884:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "AmountAdded",
|
|
"nameLocation": "816:11:4",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1231,
|
|
"src": "809:99:4",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "da6b4db8",
|
|
"id": 742,
|
|
"mutability": "mutable",
|
|
"name": "winningAmount",
|
|
"nameLocation": "949:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "914:48:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 741,
|
|
"keyType": {
|
|
"id": 739,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "922:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "914:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
},
|
|
"valueType": {
|
|
"id": 740,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "933:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "b78d6c1d",
|
|
"id": 745,
|
|
"mutability": "mutable",
|
|
"name": "winningAddresses",
|
|
"nameLocation": "985:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "968:33:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 743,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "968:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 744,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "968:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 763,
|
|
"name": "QuestionCreated",
|
|
"nameLocation": "1014:15:4",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 762,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 747,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "1047:2:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1039:10:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 746,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1039:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 749,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "1066:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1059:15:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 748,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1059:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 751,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "1092:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1084:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 750,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1084:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 753,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "createdBy",
|
|
"nameLocation": "1119:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1111:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 752,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1111:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 755,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "creatorImageHash",
|
|
"nameLocation": "1145:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1138:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 754,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1138:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 757,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalAmount",
|
|
"nameLocation": "1179:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1171:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 756,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1171:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 759,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalYesAmount",
|
|
"nameLocation": "1208:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1200:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 758,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1200:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 761,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalNoAmount",
|
|
"nameLocation": "1240:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1232:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 760,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1232:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1029:230:4"
|
|
},
|
|
"src": "1008:252:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 868,
|
|
"nodeType": "Block",
|
|
"src": "1449:800:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 778,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 775,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1467:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 776,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1467:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 777,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "1481:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "1467:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "556e617574686f72697a6564",
|
|
"id": 779,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1488:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
},
|
|
"value": "Unauthorized"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
}
|
|
],
|
|
"id": 774,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1459:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 780,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1459:44:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 781,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1459:44:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
783
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 783,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "1522:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 868,
|
|
"src": "1514:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 782,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1514:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 786,
|
|
"initialValue": {
|
|
"expression": {
|
|
"id": 784,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "1534:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 785,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1534:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1514:35:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
789
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 789,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "1578:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 868,
|
|
"src": "1560:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 788,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 787,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "1560:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "1560:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 793,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 790,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "1589:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 792,
|
|
"indexExpression": {
|
|
"id": 791,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "1599:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1589:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1560:54:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 799,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 794,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1625:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 796,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "id",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 702,
|
|
"src": "1625:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 798,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "1639:16:4",
|
|
"subExpression": {
|
|
"id": 797,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "1639:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1625:30:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 800,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1625:30:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 805,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 801,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1665:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 803,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "question",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 704,
|
|
"src": "1665:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 804,
|
|
"name": "_question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 765,
|
|
"src": "1685:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1665:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 806,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1665:29:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 811,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 807,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1704:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 809,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 706,
|
|
"src": "1704:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 810,
|
|
"name": "timestamp",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 783,
|
|
"src": "1725:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1704:30:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 812,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1704:30:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 818,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 813,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1744:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 815,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "createdBy",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 708,
|
|
"src": "1744:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 816,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1765:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 817,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1765:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "1744:31:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 819,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1744:31:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 824,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 820,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1785:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 822,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "creatorImageHash",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 710,
|
|
"src": "1785:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 823,
|
|
"name": "_creatorImageHash",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 767,
|
|
"src": "1813:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1785:45:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 825,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1785:45:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 830,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 826,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1840:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 828,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "1840:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 829,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1863:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1840:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 831,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1840:24:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 836,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 832,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1874:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 834,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "1874:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 835,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1900:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1874:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 837,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1874:27:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 842,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 838,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1911:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 840,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "1911:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 841,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1936:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1911:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 843,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1911:26:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 848,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 844,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1947:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 846,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "description",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 728,
|
|
"src": "1947:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 847,
|
|
"name": "_description",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 769,
|
|
"src": "1970:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1947:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 849,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1947:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 854,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 850,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1992:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 852,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "resolverUrl",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 730,
|
|
"src": "1992:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 853,
|
|
"name": "_resolverUrl",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 771,
|
|
"src": "2015:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1992:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 855,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1992:35:4"
|
|
},
|
|
{
|
|
"eventCall": {
|
|
"arguments": [
|
|
{
|
|
"id": 857,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "2072:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"id": 858,
|
|
"name": "_question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 765,
|
|
"src": "2100:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"id": 859,
|
|
"name": "timestamp",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 783,
|
|
"src": "2123:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 860,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2146:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 861,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2146:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"id": 862,
|
|
"name": "_creatorImageHash",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 767,
|
|
"src": "2170:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 863,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2201:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 864,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2216:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 865,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2231:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
}
|
|
],
|
|
"id": 856,
|
|
"name": "QuestionCreated",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 763,
|
|
"src": "2043:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$_t_address_$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
|
|
"typeString": "function (uint256,string memory,uint256,address,string memory,uint256,uint256,uint256)"
|
|
}
|
|
},
|
|
"id": 866,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2043:199:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 867,
|
|
"nodeType": "EmitStatement",
|
|
"src": "2038:204:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "ba66b612",
|
|
"id": 869,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "createQuestion",
|
|
"nameLocation": "1275:14:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 772,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 765,
|
|
"mutability": "mutable",
|
|
"name": "_question",
|
|
"nameLocation": "1313:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1299:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 764,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1299:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 767,
|
|
"mutability": "mutable",
|
|
"name": "_creatorImageHash",
|
|
"nameLocation": "1346:17:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1332:31:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 766,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1332:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 769,
|
|
"mutability": "mutable",
|
|
"name": "_description",
|
|
"nameLocation": "1387:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1373:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 768,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1373:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 771,
|
|
"mutability": "mutable",
|
|
"name": "_resolverUrl",
|
|
"nameLocation": "1423:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1409:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 770,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1409:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1289:152:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 773,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1449:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "1266:983:4",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 922,
|
|
"nodeType": "Block",
|
|
"src": "2310:408:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 877,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 875,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 871,
|
|
"src": "2328:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 876,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2343:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "2328:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f74206265206e756c6c",
|
|
"id": 878,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2346:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
},
|
|
"value": "Question ID cannot be null"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
}
|
|
],
|
|
"id": 874,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "2320:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 879,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2320:55:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 880,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2320:55:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
883
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 883,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "2403:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 922,
|
|
"src": "2385:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 882,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 881,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "2385:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "2385:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 887,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 884,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "2414:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 886,
|
|
"indexExpression": {
|
|
"id": 885,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 871,
|
|
"src": "2424:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "2414:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2385:51:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
890
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 890,
|
|
"mutability": "mutable",
|
|
"name": "amountAdded",
|
|
"nameLocation": "2465:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 922,
|
|
"src": "2446:30:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
},
|
|
"typeName": {
|
|
"id": 889,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 888,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "2446:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "2446:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 899,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 892,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2504:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 893,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2504:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 894,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2528:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 895,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2528:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 896,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "2551:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 897,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2551:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 891,
|
|
"name": "AmountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 738,
|
|
"src": "2479:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_struct$_AmountAdded_$738_storage_ptr_$",
|
|
"typeString": "type(struct PredictionMarketContract.AmountAdded storage pointer)"
|
|
}
|
|
},
|
|
"id": 898,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "structConstructorCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2479:97:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2446:130:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 905,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 900,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2587:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 902,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "2587:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 903,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2614:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 904,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2614:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2587:36:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 906,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2587:36:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 912,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 907,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2633:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 909,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "2633:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 910,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2657:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 911,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2657:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2633:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 913,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2633:33:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 919,
|
|
"name": "amountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 890,
|
|
"src": "2699:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"expression": {
|
|
"id": 914,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2676:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 917,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "2676:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 918,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2676:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$_t_struct$_AmountAdded_$738_storage_$returns$__$bound_to$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$",
|
|
"typeString": "function (struct PredictionMarketContract.AmountAdded storage ref[] storage pointer,struct PredictionMarketContract.AmountAdded storage ref)"
|
|
}
|
|
},
|
|
"id": 920,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2676:35:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 921,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2676:35:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "90b98590",
|
|
"id": 923,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addYesBet",
|
|
"nameLocation": "2264:9:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 872,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 871,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "2282:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 923,
|
|
"src": "2274:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 870,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2274:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2273:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 873,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2310:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "2255:463:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 976,
|
|
"nodeType": "Block",
|
|
"src": "2778:406:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 931,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 929,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 925,
|
|
"src": "2796:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 930,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2811:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "2796:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f74206265206e756c6c",
|
|
"id": 932,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2814:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
},
|
|
"value": "Question ID cannot be null"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
}
|
|
],
|
|
"id": 928,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "2788:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 933,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2788:55:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 934,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2788:55:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
937
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 937,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "2871:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 976,
|
|
"src": "2853:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 936,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 935,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "2853:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "2853:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 941,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 938,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "2882:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 940,
|
|
"indexExpression": {
|
|
"id": 939,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 925,
|
|
"src": "2892:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "2882:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2853:51:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
944
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 944,
|
|
"mutability": "mutable",
|
|
"name": "amountAdded",
|
|
"nameLocation": "2933:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 976,
|
|
"src": "2914:30:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
},
|
|
"typeName": {
|
|
"id": 943,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 942,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "2914:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "2914:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 953,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 946,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2972:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 947,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2972:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 948,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2996:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 949,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2996:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 950,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "3019:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 951,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3019:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 945,
|
|
"name": "AmountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 738,
|
|
"src": "2947:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_struct$_AmountAdded_$738_storage_ptr_$",
|
|
"typeString": "type(struct PredictionMarketContract.AmountAdded storage pointer)"
|
|
}
|
|
},
|
|
"id": 952,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "structConstructorCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2947:97:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2914:130:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 959,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 954,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3055:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 956,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "3055:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 957,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3081:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 958,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3081:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3055:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 960,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3055:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 966,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 961,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3100:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 963,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "3100:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 964,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3124:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 965,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3124:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3100:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 967,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3100:33:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 973,
|
|
"name": "amountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 944,
|
|
"src": "3165:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"expression": {
|
|
"id": 968,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3143:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 971,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "3143:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 972,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3143:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$_t_struct$_AmountAdded_$738_storage_$returns$__$bound_to$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$",
|
|
"typeString": "function (struct PredictionMarketContract.AmountAdded storage ref[] storage pointer,struct PredictionMarketContract.AmountAdded storage ref)"
|
|
}
|
|
},
|
|
"id": 974,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3143:34:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 975,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3143:34:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "c71edee6",
|
|
"id": 977,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addNoBet",
|
|
"nameLocation": "2733:8:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 926,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 925,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "2750:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 977,
|
|
"src": "2742:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 924,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2742:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2741:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 927,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2778:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "2724:460:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1003,
|
|
"nodeType": "Block",
|
|
"src": "3326:122:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
992
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 992,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "3354:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1003,
|
|
"src": "3336:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 991,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 990,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "3336:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "3336:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 996,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 993,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "3365:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 995,
|
|
"indexExpression": {
|
|
"id": 994,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 979,
|
|
"src": "3375:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3365:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3336:51:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"expression": {
|
|
"id": 997,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 992,
|
|
"src": "3405:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 998,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3405:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 999,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 992,
|
|
"src": "3424:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1000,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "3424:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
}
|
|
],
|
|
"id": 1001,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "3404:37:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_$",
|
|
"typeString": "tuple(struct PredictionMarketContract.AmountAdded storage ref[] storage ref,struct PredictionMarketContract.AmountAdded storage ref[] storage ref)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 989,
|
|
"id": 1002,
|
|
"nodeType": "Return",
|
|
"src": "3397:44:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "14dd5762",
|
|
"id": 1004,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getGraphData",
|
|
"nameLocation": "3199:12:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 980,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 979,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "3220:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3212:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 978,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3212:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3211:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 989,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 984,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3278:20:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 982,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 981,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "3278:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "3278:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 983,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3278:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 988,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3300:20:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 986,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 985,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "3300:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "3300:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 987,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3300:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3277:44:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "3190:258:4",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1229,
|
|
"nodeType": "Block",
|
|
"src": "3562:1685:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 1015,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1012,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3580:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 1013,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3580:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 1014,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "3594:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "3580:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "556e617574686f72697a6564",
|
|
"id": 1016,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3601:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
},
|
|
"value": "Unauthorized"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
}
|
|
],
|
|
"id": 1011,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "3572:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 1017,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3572:44:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1018,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3572:44:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1022,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1020,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1006,
|
|
"src": "3634:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 1021,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3649:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "3634:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f7420626520656d707479",
|
|
"id": 1023,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3652:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"typeString": "literal_string \"Question ID cannot be empty\""
|
|
},
|
|
"value": "Question ID cannot be empty"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"typeString": "literal_string \"Question ID cannot be empty\""
|
|
}
|
|
],
|
|
"id": 1019,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "3626:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 1024,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3626:56:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1025,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3626:56:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
1028
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1028,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "3711:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1229,
|
|
"src": "3693:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 1027,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1026,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "3693:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "3693:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1032,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 1029,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "3722:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 1031,
|
|
"indexExpression": {
|
|
"id": 1030,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1006,
|
|
"src": "3732:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3722:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3693:51:4"
|
|
},
|
|
{
|
|
"condition": {
|
|
"id": 1033,
|
|
"name": "eventOutcome",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1008,
|
|
"src": "3758:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": {
|
|
"id": 1227,
|
|
"nodeType": "Block",
|
|
"src": "4512:729:4",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"id": 1185,
|
|
"nodeType": "Block",
|
|
"src": "4580:332:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1144
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1144,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4606:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1185,
|
|
"src": "4598:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1143,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4598:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1157,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1156,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1152,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1145,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4616:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1146,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "4616:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1147,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4662:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1148,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4662:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1150,
|
|
"indexExpression": {
|
|
"id": 1149,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4679:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4662:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1151,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4662:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4616:72:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1153,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4615:74:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1154,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4692:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1155,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "4692:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4615:99:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4598:116:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1173,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"baseExpression": {
|
|
"id": 1158,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4732:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1164,
|
|
"indexExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1159,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4746:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1160,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4746:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1162,
|
|
"indexExpression": {
|
|
"id": 1161,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4763:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4746:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1163,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4746:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4732:39:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1171,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1165,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1144,
|
|
"src": "4776:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1166,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4805:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1167,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4805:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1169,
|
|
"indexExpression": {
|
|
"id": 1168,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4822:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4805:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1170,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4805:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4776:55:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1172,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4775:57:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4732:100:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1174,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4732:100:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1178,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4872:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1179,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4872:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1181,
|
|
"indexExpression": {
|
|
"id": 1180,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4889:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4872:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1182,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4872:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 1175,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4850:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1177,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4850:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_address_$dyn_storage_ptr_$_t_address_$returns$__$bound_to$_t_array$_t_address_$dyn_storage_ptr_$",
|
|
"typeString": "function (address[] storage pointer,address)"
|
|
}
|
|
},
|
|
"id": 1183,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4850:47:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1184,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4850:47:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1139,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1135,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4546:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"expression": {
|
|
"id": 1136,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4550:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1137,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4550:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1138,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4550:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4546:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1186,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1132
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1132,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4539:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1186,
|
|
"src": "4531:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1131,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4531:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1134,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1133,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4543:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4531:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1141,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4575:3:4",
|
|
"subExpression": {
|
|
"id": 1140,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4575:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1142,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4575:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4526:386:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1222,
|
|
"nodeType": "Block",
|
|
"src": "4980:214:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1199
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1199,
|
|
"mutability": "mutable",
|
|
"name": "_address",
|
|
"nameLocation": "5014:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1222,
|
|
"src": "4998:24:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 1198,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4998:15:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1206,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"baseExpression": {
|
|
"id": 1202,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "5033:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1204,
|
|
"indexExpression": {
|
|
"id": 1203,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "5050:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5033:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1201,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "5025:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_payable_$",
|
|
"typeString": "type(address payable)"
|
|
},
|
|
"typeName": {
|
|
"id": 1200,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5025:8:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 1205,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5025:28:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4998:55:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1211,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5097:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
{
|
|
"baseExpression": {
|
|
"id": 1212,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "5107:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1214,
|
|
"indexExpression": {
|
|
"id": 1213,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5121:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5107:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1208,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "5077:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1207,
|
|
"name": "ERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 545,
|
|
"src": "5071:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_ERC20_$545_$",
|
|
"typeString": "type(contract ERC20)"
|
|
}
|
|
},
|
|
"id": 1209,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5071:16:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC20_$545",
|
|
"typeString": "contract ERC20"
|
|
}
|
|
},
|
|
"id": 1210,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 119,
|
|
"src": "5071:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
|
|
"typeString": "function (address,uint256) external returns (bool)"
|
|
}
|
|
},
|
|
"id": 1215,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5071:60:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1216,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5071:60:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1220,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "5149:30:4",
|
|
"subExpression": {
|
|
"baseExpression": {
|
|
"id": 1217,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "5156:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1219,
|
|
"indexExpression": {
|
|
"id": 1218,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5170:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5156:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1221,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5149:30:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1194,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1191,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "4946:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1192,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4950:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1193,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4950:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4946:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1223,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1188
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1188,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4939:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1223,
|
|
"src": "4931:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1187,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4931:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1190,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1189,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4943:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4931:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1196,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4975:3:4",
|
|
"subExpression": {
|
|
"id": 1195,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "4975:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1197,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4975:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4926:268:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1225,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "5207:23:4",
|
|
"subExpression": {
|
|
"id": 1224,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "5214:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1226,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5207:23:4"
|
|
}
|
|
]
|
|
},
|
|
"id": 1228,
|
|
"nodeType": "IfStatement",
|
|
"src": "3754:1487:4",
|
|
"trueBody": {
|
|
"id": 1130,
|
|
"nodeType": "Block",
|
|
"src": "3772:734:4",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"id": 1088,
|
|
"nodeType": "Block",
|
|
"src": "3841:336:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1047
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1047,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "3867:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1088,
|
|
"src": "3859:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1046,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3859:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1060,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1059,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1055,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1048,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3877:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1049,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "3877:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1050,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3922:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1051,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3922:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1053,
|
|
"indexExpression": {
|
|
"id": 1052,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3940:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3922:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1054,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "3922:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3877:72:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1056,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "3876:74:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1057,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3953:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1058,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "3953:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3876:100:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3859:117:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1076,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"baseExpression": {
|
|
"id": 1061,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "3994:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1067,
|
|
"indexExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1062,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4008:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1063,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4008:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1065,
|
|
"indexExpression": {
|
|
"id": 1064,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4026:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4008:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1066,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4008:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3994:40:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1074,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1068,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1047,
|
|
"src": "4039:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1069,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4068:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1070,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4068:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1072,
|
|
"indexExpression": {
|
|
"id": 1071,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4086:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4068:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1073,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4068:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4039:56:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1075,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4038:58:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3994:102:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1077,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3994:102:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1081,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4136:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1082,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4136:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1084,
|
|
"indexExpression": {
|
|
"id": 1083,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4154:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4136:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1085,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4136:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 1078,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4114:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1080,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4114:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_address_$dyn_storage_ptr_$_t_address_$returns$__$bound_to$_t_array$_t_address_$dyn_storage_ptr_$",
|
|
"typeString": "function (address[] storage pointer,address)"
|
|
}
|
|
},
|
|
"id": 1086,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4114:48:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1087,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4114:48:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1042,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1038,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3806:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"expression": {
|
|
"id": 1039,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3810:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1040,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3810:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1041,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3810:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3806:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1089,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1035
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1035,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "3799:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1089,
|
|
"src": "3791:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1034,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3791:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1037,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1036,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3803:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3791:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1044,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "3836:3:4",
|
|
"subExpression": {
|
|
"id": 1043,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3836:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1045,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3836:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "3786:391:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1125,
|
|
"nodeType": "Block",
|
|
"src": "4245:214:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1102
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1102,
|
|
"mutability": "mutable",
|
|
"name": "_address",
|
|
"nameLocation": "4279:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1125,
|
|
"src": "4263:24:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 1101,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4263:15:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1109,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"baseExpression": {
|
|
"id": 1105,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4298:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1107,
|
|
"indexExpression": {
|
|
"id": 1106,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4315:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4298:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1104,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "4290:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_payable_$",
|
|
"typeString": "type(address payable)"
|
|
},
|
|
"typeName": {
|
|
"id": 1103,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4290:8:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 1108,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4290:28:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4263:55:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1114,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4362:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
{
|
|
"baseExpression": {
|
|
"id": 1115,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4372:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1117,
|
|
"indexExpression": {
|
|
"id": 1116,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4386:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4372:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1111,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "4342:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1110,
|
|
"name": "ERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 545,
|
|
"src": "4336:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_ERC20_$545_$",
|
|
"typeString": "type(contract ERC20)"
|
|
}
|
|
},
|
|
"id": 1112,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4336:16:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC20_$545",
|
|
"typeString": "contract ERC20"
|
|
}
|
|
},
|
|
"id": 1113,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 119,
|
|
"src": "4336:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
|
|
"typeString": "function (address,uint256) external returns (bool)"
|
|
}
|
|
},
|
|
"id": 1118,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4336:60:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1119,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4336:60:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1123,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "4414:30:4",
|
|
"subExpression": {
|
|
"baseExpression": {
|
|
"id": 1120,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4421:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1122,
|
|
"indexExpression": {
|
|
"id": 1121,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4435:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4421:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1124,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4414:30:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1097,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1094,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4211:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1095,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4215:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1096,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4215:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4211:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1126,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1091
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1091,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4204:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1126,
|
|
"src": "4196:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1090,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4196:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1093,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1092,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4208:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4196:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1099,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4240:3:4",
|
|
"subExpression": {
|
|
"id": 1098,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4240:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1100,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4240:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4191:268:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1128,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "4472:23:4",
|
|
"subExpression": {
|
|
"id": 1127,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4479:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1129,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4472:23:4"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "724ba40b",
|
|
"id": 1230,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "distributeWinningAmount",
|
|
"nameLocation": "3463:23:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 1009,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 1006,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "3495:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1230,
|
|
"src": "3487:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1005,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3487:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1008,
|
|
"mutability": "mutable",
|
|
"name": "eventOutcome",
|
|
"nameLocation": "3513:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1230,
|
|
"src": "3508:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1007,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3508:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3486:40:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 1010,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "3562:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "3454:1793:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 1232,
|
|
"src": "113:5136:4",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:5276:4"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "project:/contracts/Polymarket.sol",
|
|
"exportedSymbols": {
|
|
"Context": [
|
|
670
|
|
],
|
|
"ERC20": [
|
|
545
|
|
],
|
|
"IERC20": [
|
|
623
|
|
],
|
|
"IERC20Metadata": [
|
|
648
|
|
],
|
|
"PredictionMarketContract": [
|
|
1231
|
|
]
|
|
},
|
|
"id": 1232,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 672,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".6"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:4"
|
|
},
|
|
{
|
|
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
|
|
"file": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
|
|
"id": 673,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 1232,
|
|
"sourceUnit": 546,
|
|
"src": "56:55:4",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "PredictionMarketContract",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 1231,
|
|
"linearizedBaseContracts": [
|
|
1231
|
|
],
|
|
"name": "PredictionMarketContract",
|
|
"nameLocation": "122:24:4",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "8da5cb5b",
|
|
"id": 675,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "168:5:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "153:20:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 674,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "153:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "6faa22a5",
|
|
"id": 677,
|
|
"mutability": "mutable",
|
|
"name": "polyToken",
|
|
"nameLocation": "194:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "179:24:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 676,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "179:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "31b1b978",
|
|
"id": 682,
|
|
"mutability": "mutable",
|
|
"name": "questions",
|
|
"nameLocation": "247:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "210:46:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions)"
|
|
},
|
|
"typeName": {
|
|
"id": 681,
|
|
"keyType": {
|
|
"id": 678,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "218:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "210:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions)"
|
|
},
|
|
"valueType": {
|
|
"id": 680,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 679,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "229:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "229:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "bea5b914",
|
|
"id": 685,
|
|
"mutability": "mutable",
|
|
"name": "totalQuestions",
|
|
"nameLocation": "277:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "262:33:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 683,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "262:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": {
|
|
"hexValue": "30",
|
|
"id": 684,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "294:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 699,
|
|
"nodeType": "Block",
|
|
"src": "334:67:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 693,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 690,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "344:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 691,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "352:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 692,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "352:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "344:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 694,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "344:18:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 697,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 695,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "372:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 696,
|
|
"name": "_polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 687,
|
|
"src": "384:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "372:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 698,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "372:22:4"
|
|
}
|
|
]
|
|
},
|
|
"id": 700,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 688,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 687,
|
|
"mutability": "mutable",
|
|
"name": "_polyToken",
|
|
"nameLocation": "322:10:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 700,
|
|
"src": "314:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 686,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "314:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "313:20:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 689,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "334:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "302:99:4",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "PredictionMarketContract.Questions",
|
|
"id": 731,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 702,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "442:2:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "434:10:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 701,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "434:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 704,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "461:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "454:15:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 703,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "454:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 706,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "487:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "479:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 705,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 708,
|
|
"mutability": "mutable",
|
|
"name": "createdBy",
|
|
"nameLocation": "514:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "506:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 707,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "506:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 710,
|
|
"mutability": "mutable",
|
|
"name": "creatorImageHash",
|
|
"nameLocation": "540:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "533:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 709,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "533:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 714,
|
|
"mutability": "mutable",
|
|
"name": "yesCount",
|
|
"nameLocation": "580:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "566:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 712,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 711,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "566:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "566:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 713,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "566:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 718,
|
|
"mutability": "mutable",
|
|
"name": "noCount",
|
|
"nameLocation": "612:7:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "598:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 716,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 715,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "598:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "598:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 717,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "598:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 720,
|
|
"mutability": "mutable",
|
|
"name": "totalAmount",
|
|
"nameLocation": "637:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "629:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 719,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "629:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 722,
|
|
"mutability": "mutable",
|
|
"name": "totalYesAmount",
|
|
"nameLocation": "666:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "658:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 721,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "658:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 724,
|
|
"mutability": "mutable",
|
|
"name": "totalNoAmount",
|
|
"nameLocation": "698:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "690:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 723,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "690:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 726,
|
|
"mutability": "mutable",
|
|
"name": "eventCompleted",
|
|
"nameLocation": "726:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "721:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 725,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "721:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 728,
|
|
"mutability": "mutable",
|
|
"name": "description",
|
|
"nameLocation": "757:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "750:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 727,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "750:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 730,
|
|
"mutability": "mutable",
|
|
"name": "resolverUrl",
|
|
"nameLocation": "785:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 731,
|
|
"src": "778:18:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 729,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "778:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "Questions",
|
|
"nameLocation": "414:9:4",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1231,
|
|
"src": "407:396:4",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "PredictionMarketContract.AmountAdded",
|
|
"id": 738,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 733,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "846:4:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "838:12:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 732,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "838:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 735,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "868:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "860:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 734,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "860:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 737,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "892:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 738,
|
|
"src": "884:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 736,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "884:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "AmountAdded",
|
|
"nameLocation": "816:11:4",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1231,
|
|
"src": "809:99:4",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "da6b4db8",
|
|
"id": 742,
|
|
"mutability": "mutable",
|
|
"name": "winningAmount",
|
|
"nameLocation": "949:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "914:48:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 741,
|
|
"keyType": {
|
|
"id": 739,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "922:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "914:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
},
|
|
"valueType": {
|
|
"id": 740,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "933:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "b78d6c1d",
|
|
"id": 745,
|
|
"mutability": "mutable",
|
|
"name": "winningAddresses",
|
|
"nameLocation": "985:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1231,
|
|
"src": "968:33:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 743,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "968:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 744,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "968:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 763,
|
|
"name": "QuestionCreated",
|
|
"nameLocation": "1014:15:4",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 762,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 747,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "1047:2:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1039:10:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 746,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1039:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 749,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "1066:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1059:15:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 748,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1059:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 751,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "1092:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1084:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 750,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1084:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 753,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "createdBy",
|
|
"nameLocation": "1119:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1111:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 752,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1111:7:4",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 755,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "creatorImageHash",
|
|
"nameLocation": "1145:16:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1138:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 754,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1138:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 757,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalAmount",
|
|
"nameLocation": "1179:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1171:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 756,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1171:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 759,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalYesAmount",
|
|
"nameLocation": "1208:14:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1200:22:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 758,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1200:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 761,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalNoAmount",
|
|
"nameLocation": "1240:13:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 763,
|
|
"src": "1232:21:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 760,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1232:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1029:230:4"
|
|
},
|
|
"src": "1008:252:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 868,
|
|
"nodeType": "Block",
|
|
"src": "1449:800:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 778,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 775,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1467:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 776,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1467:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 777,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "1481:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "1467:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "556e617574686f72697a6564",
|
|
"id": 779,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1488:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
},
|
|
"value": "Unauthorized"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
}
|
|
],
|
|
"id": 774,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1459:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 780,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1459:44:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 781,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1459:44:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
783
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 783,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "1522:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 868,
|
|
"src": "1514:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 782,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1514:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 786,
|
|
"initialValue": {
|
|
"expression": {
|
|
"id": 784,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "1534:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 785,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1534:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1514:35:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
789
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 789,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "1578:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 868,
|
|
"src": "1560:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 788,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 787,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "1560:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "1560:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 793,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 790,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "1589:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 792,
|
|
"indexExpression": {
|
|
"id": 791,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "1599:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1589:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1560:54:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 799,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 794,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1625:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 796,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "id",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 702,
|
|
"src": "1625:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 798,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "1639:16:4",
|
|
"subExpression": {
|
|
"id": 797,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "1639:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1625:30:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 800,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1625:30:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 805,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 801,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1665:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 803,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "question",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 704,
|
|
"src": "1665:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 804,
|
|
"name": "_question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 765,
|
|
"src": "1685:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1665:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 806,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1665:29:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 811,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 807,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1704:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 809,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 706,
|
|
"src": "1704:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 810,
|
|
"name": "timestamp",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 783,
|
|
"src": "1725:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1704:30:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 812,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1704:30:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 818,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 813,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1744:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 815,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "createdBy",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 708,
|
|
"src": "1744:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 816,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1765:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 817,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1765:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "1744:31:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 819,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1744:31:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 824,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 820,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1785:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 822,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "creatorImageHash",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 710,
|
|
"src": "1785:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 823,
|
|
"name": "_creatorImageHash",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 767,
|
|
"src": "1813:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1785:45:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 825,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1785:45:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 830,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 826,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1840:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 828,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "1840:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 829,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1863:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1840:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 831,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1840:24:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 836,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 832,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1874:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 834,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "1874:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 835,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1900:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1874:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 837,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1874:27:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 842,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 838,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1911:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 840,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "1911:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "30",
|
|
"id": 841,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1936:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1911:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 843,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1911:26:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 848,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 844,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1947:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 846,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "description",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 728,
|
|
"src": "1947:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 847,
|
|
"name": "_description",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 769,
|
|
"src": "1970:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1947:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 849,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1947:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 854,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 850,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 789,
|
|
"src": "1992:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 852,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "resolverUrl",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 730,
|
|
"src": "1992:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 853,
|
|
"name": "_resolverUrl",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 771,
|
|
"src": "2015:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
"src": "1992:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage",
|
|
"typeString": "string storage ref"
|
|
}
|
|
},
|
|
"id": 855,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1992:35:4"
|
|
},
|
|
{
|
|
"eventCall": {
|
|
"arguments": [
|
|
{
|
|
"id": 857,
|
|
"name": "totalQuestions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 685,
|
|
"src": "2072:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"id": 858,
|
|
"name": "_question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 765,
|
|
"src": "2100:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"id": 859,
|
|
"name": "timestamp",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 783,
|
|
"src": "2123:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 860,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2146:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 861,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2146:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"id": 862,
|
|
"name": "_creatorImageHash",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 767,
|
|
"src": "2170:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 863,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2201:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 864,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2216:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 865,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2231:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
}
|
|
],
|
|
"id": 856,
|
|
"name": "QuestionCreated",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 763,
|
|
"src": "2043:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$_t_address_$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
|
|
"typeString": "function (uint256,string memory,uint256,address,string memory,uint256,uint256,uint256)"
|
|
}
|
|
},
|
|
"id": 866,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2043:199:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 867,
|
|
"nodeType": "EmitStatement",
|
|
"src": "2038:204:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "ba66b612",
|
|
"id": 869,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "createQuestion",
|
|
"nameLocation": "1275:14:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 772,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 765,
|
|
"mutability": "mutable",
|
|
"name": "_question",
|
|
"nameLocation": "1313:9:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1299:23:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 764,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1299:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 767,
|
|
"mutability": "mutable",
|
|
"name": "_creatorImageHash",
|
|
"nameLocation": "1346:17:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1332:31:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 766,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1332:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 769,
|
|
"mutability": "mutable",
|
|
"name": "_description",
|
|
"nameLocation": "1387:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1373:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 768,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1373:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 771,
|
|
"mutability": "mutable",
|
|
"name": "_resolverUrl",
|
|
"nameLocation": "1423:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 869,
|
|
"src": "1409:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 770,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1409:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1289:152:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 773,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1449:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "1266:983:4",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 922,
|
|
"nodeType": "Block",
|
|
"src": "2310:408:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 877,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 875,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 871,
|
|
"src": "2328:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 876,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2343:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "2328:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f74206265206e756c6c",
|
|
"id": 878,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2346:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
},
|
|
"value": "Question ID cannot be null"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
}
|
|
],
|
|
"id": 874,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "2320:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 879,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2320:55:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 880,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2320:55:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
883
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 883,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "2403:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 922,
|
|
"src": "2385:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 882,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 881,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "2385:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "2385:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 887,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 884,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "2414:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 886,
|
|
"indexExpression": {
|
|
"id": 885,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 871,
|
|
"src": "2424:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "2414:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2385:51:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
890
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 890,
|
|
"mutability": "mutable",
|
|
"name": "amountAdded",
|
|
"nameLocation": "2465:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 922,
|
|
"src": "2446:30:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
},
|
|
"typeName": {
|
|
"id": 889,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 888,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "2446:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "2446:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 899,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 892,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2504:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 893,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2504:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 894,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2528:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 895,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2528:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 896,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "2551:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 897,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2551:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 891,
|
|
"name": "AmountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 738,
|
|
"src": "2479:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_struct$_AmountAdded_$738_storage_ptr_$",
|
|
"typeString": "type(struct PredictionMarketContract.AmountAdded storage pointer)"
|
|
}
|
|
},
|
|
"id": 898,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "structConstructorCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2479:97:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2446:130:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 905,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 900,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2587:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 902,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "2587:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 903,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2614:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 904,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2614:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2587:36:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 906,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2587:36:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 912,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 907,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2633:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 909,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "2633:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 910,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2657:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 911,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2657:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2633:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 913,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2633:33:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 919,
|
|
"name": "amountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 890,
|
|
"src": "2699:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"expression": {
|
|
"id": 914,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "2676:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 917,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "2676:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 918,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2676:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$_t_struct$_AmountAdded_$738_storage_$returns$__$bound_to$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$",
|
|
"typeString": "function (struct PredictionMarketContract.AmountAdded storage ref[] storage pointer,struct PredictionMarketContract.AmountAdded storage ref)"
|
|
}
|
|
},
|
|
"id": 920,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2676:35:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 921,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2676:35:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "90b98590",
|
|
"id": 923,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addYesBet",
|
|
"nameLocation": "2264:9:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 872,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 871,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "2282:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 923,
|
|
"src": "2274:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 870,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2274:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2273:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 873,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2310:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "2255:463:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 976,
|
|
"nodeType": "Block",
|
|
"src": "2778:406:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 931,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 929,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 925,
|
|
"src": "2796:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 930,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2811:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "2796:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f74206265206e756c6c",
|
|
"id": 932,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2814:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
},
|
|
"value": "Question ID cannot be null"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_720093372377ee82d1b8d8ae36441bb07af8c1f7a4496ba21ad735967895d399",
|
|
"typeString": "literal_string \"Question ID cannot be null\""
|
|
}
|
|
],
|
|
"id": 928,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "2788:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 933,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2788:55:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 934,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "2788:55:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
937
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 937,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "2871:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 976,
|
|
"src": "2853:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 936,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 935,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "2853:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "2853:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 941,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 938,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "2882:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 940,
|
|
"indexExpression": {
|
|
"id": 939,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 925,
|
|
"src": "2892:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "2882:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2853:51:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
944
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 944,
|
|
"mutability": "mutable",
|
|
"name": "amountAdded",
|
|
"nameLocation": "2933:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 976,
|
|
"src": "2914:30:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
},
|
|
"typeName": {
|
|
"id": 943,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 942,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "2914:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "2914:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 953,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 946,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2972:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 947,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2972:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 948,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "2996:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 949,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "2996:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 950,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "3019:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 951,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3019:15:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 945,
|
|
"name": "AmountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 738,
|
|
"src": "2947:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_struct$_AmountAdded_$738_storage_ptr_$",
|
|
"typeString": "type(struct PredictionMarketContract.AmountAdded storage pointer)"
|
|
}
|
|
},
|
|
"id": 952,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "structConstructorCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "2947:97:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "2914:130:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 959,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 954,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3055:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 956,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "3055:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 957,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3081:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 958,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3081:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3055:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 960,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3055:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 966,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"expression": {
|
|
"id": 961,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3100:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 963,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"memberName": "totalAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 720,
|
|
"src": "3100:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"expression": {
|
|
"id": 964,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3124:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 965,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "value",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3124:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3100:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 967,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3100:33:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 973,
|
|
"name": "amountAdded",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 944,
|
|
"src": "3165:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded memory"
|
|
}
|
|
],
|
|
"expression": {
|
|
"expression": {
|
|
"id": 968,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 937,
|
|
"src": "3143:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 971,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "3143:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 972,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3143:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$_t_struct$_AmountAdded_$738_storage_$returns$__$bound_to$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr_$",
|
|
"typeString": "function (struct PredictionMarketContract.AmountAdded storage ref[] storage pointer,struct PredictionMarketContract.AmountAdded storage ref)"
|
|
}
|
|
},
|
|
"id": 974,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3143:34:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 975,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3143:34:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "c71edee6",
|
|
"id": 977,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addNoBet",
|
|
"nameLocation": "2733:8:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 926,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 925,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "2750:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 977,
|
|
"src": "2742:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 924,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2742:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2741:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 927,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2778:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "2724:460:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1003,
|
|
"nodeType": "Block",
|
|
"src": "3326:122:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
992
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 992,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "3354:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1003,
|
|
"src": "3336:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 991,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 990,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "3336:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "3336:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 996,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 993,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "3365:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 995,
|
|
"indexExpression": {
|
|
"id": 994,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 979,
|
|
"src": "3375:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3365:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3336:51:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"expression": {
|
|
"id": 997,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 992,
|
|
"src": "3405:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 998,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3405:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 999,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 992,
|
|
"src": "3424:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1000,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "3424:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
}
|
|
],
|
|
"id": 1001,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "3404:37:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_$_t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_$",
|
|
"typeString": "tuple(struct PredictionMarketContract.AmountAdded storage ref[] storage ref,struct PredictionMarketContract.AmountAdded storage ref[] storage ref)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 989,
|
|
"id": 1002,
|
|
"nodeType": "Return",
|
|
"src": "3397:44:4"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "14dd5762",
|
|
"id": 1004,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getGraphData",
|
|
"nameLocation": "3199:12:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 980,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 979,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "3220:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3212:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 978,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3212:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3211:21:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 989,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 984,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3278:20:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 982,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 981,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "3278:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "3278:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 983,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3278:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 988,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1004,
|
|
"src": "3300:20:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 986,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 985,
|
|
"name": "AmountAdded",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 738,
|
|
"src": "3300:11:4"
|
|
},
|
|
"referencedDeclaration": 738,
|
|
"src": "3300:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded"
|
|
}
|
|
},
|
|
"id": 987,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3300:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3277:44:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "3190:258:4",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1229,
|
|
"nodeType": "Block",
|
|
"src": "3562:1685:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 1015,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1012,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "3580:3:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 1013,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3580:10:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 1014,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 675,
|
|
"src": "3594:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "3580:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "556e617574686f72697a6564",
|
|
"id": 1016,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3601:14:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
},
|
|
"value": "Unauthorized"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5",
|
|
"typeString": "literal_string \"Unauthorized\""
|
|
}
|
|
],
|
|
"id": 1011,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "3572:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 1017,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3572:44:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1018,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3572:44:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1022,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1020,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1006,
|
|
"src": "3634:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 1021,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3649:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "3634:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "5175657374696f6e2049442063616e6e6f7420626520656d707479",
|
|
"id": 1023,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3652:29:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"typeString": "literal_string \"Question ID cannot be empty\""
|
|
},
|
|
"value": "Question ID cannot be empty"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_a5714f03925be58bcdaaa07e6eff7e26e9f02ef2487f0093189509ce36e45566",
|
|
"typeString": "literal_string \"Question ID cannot be empty\""
|
|
}
|
|
],
|
|
"id": 1019,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "3626:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 1024,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "3626:56:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1025,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3626:56:4"
|
|
},
|
|
{
|
|
"assignments": [
|
|
1028
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1028,
|
|
"mutability": "mutable",
|
|
"name": "question",
|
|
"nameLocation": "3711:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1229,
|
|
"src": "3693:26:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "storage",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
},
|
|
"typeName": {
|
|
"id": 1027,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1026,
|
|
"name": "Questions",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 731,
|
|
"src": "3693:9:4"
|
|
},
|
|
"referencedDeclaration": 731,
|
|
"src": "3693:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1032,
|
|
"initialValue": {
|
|
"baseExpression": {
|
|
"id": 1029,
|
|
"name": "questions",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 682,
|
|
"src": "3722:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Questions_$731_storage_$",
|
|
"typeString": "mapping(uint256 => struct PredictionMarketContract.Questions storage ref)"
|
|
}
|
|
},
|
|
"id": 1031,
|
|
"indexExpression": {
|
|
"id": 1030,
|
|
"name": "_questionId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1006,
|
|
"src": "3732:11:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3722:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage",
|
|
"typeString": "struct PredictionMarketContract.Questions storage ref"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3693:51:4"
|
|
},
|
|
{
|
|
"condition": {
|
|
"id": 1033,
|
|
"name": "eventOutcome",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1008,
|
|
"src": "3758:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": {
|
|
"id": 1227,
|
|
"nodeType": "Block",
|
|
"src": "4512:729:4",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"id": 1185,
|
|
"nodeType": "Block",
|
|
"src": "4580:332:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1144
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1144,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4606:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1185,
|
|
"src": "4598:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1143,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4598:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1157,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1156,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1152,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1145,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4616:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1146,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "4616:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1147,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4662:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1148,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4662:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1150,
|
|
"indexExpression": {
|
|
"id": 1149,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4679:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4662:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1151,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4662:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4616:72:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1153,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4615:74:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1154,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4692:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1155,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "4692:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4615:99:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4598:116:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1173,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"baseExpression": {
|
|
"id": 1158,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4732:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1164,
|
|
"indexExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1159,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4746:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1160,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4746:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1162,
|
|
"indexExpression": {
|
|
"id": 1161,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4763:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4746:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1163,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4746:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4732:39:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1171,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1165,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1144,
|
|
"src": "4776:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1166,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4805:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1167,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4805:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1169,
|
|
"indexExpression": {
|
|
"id": 1168,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4822:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4805:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1170,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4805:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4776:55:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1172,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4775:57:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4732:100:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1174,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4732:100:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1178,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4872:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1179,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4872:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1181,
|
|
"indexExpression": {
|
|
"id": 1180,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4889:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4872:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1182,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4872:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 1175,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4850:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1177,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4850:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_address_$dyn_storage_ptr_$_t_address_$returns$__$bound_to$_t_array$_t_address_$dyn_storage_ptr_$",
|
|
"typeString": "function (address[] storage pointer,address)"
|
|
}
|
|
},
|
|
"id": 1183,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4850:47:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1184,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4850:47:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1139,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1135,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4546:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"expression": {
|
|
"id": 1136,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4550:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1137,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "noCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 718,
|
|
"src": "4550:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1138,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4550:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4546:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1186,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1132
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1132,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4539:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1186,
|
|
"src": "4531:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1131,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4531:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1134,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1133,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4543:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4531:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1141,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4575:3:4",
|
|
"subExpression": {
|
|
"id": 1140,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1132,
|
|
"src": "4575:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1142,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4575:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4526:386:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1222,
|
|
"nodeType": "Block",
|
|
"src": "4980:214:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1199
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1199,
|
|
"mutability": "mutable",
|
|
"name": "_address",
|
|
"nameLocation": "5014:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1222,
|
|
"src": "4998:24:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 1198,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4998:15:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1206,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"baseExpression": {
|
|
"id": 1202,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "5033:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1204,
|
|
"indexExpression": {
|
|
"id": 1203,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "5050:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5033:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1201,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "5025:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_payable_$",
|
|
"typeString": "type(address payable)"
|
|
},
|
|
"typeName": {
|
|
"id": 1200,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5025:8:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 1205,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5025:28:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4998:55:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1211,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5097:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
{
|
|
"baseExpression": {
|
|
"id": 1212,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "5107:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1214,
|
|
"indexExpression": {
|
|
"id": 1213,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5121:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5107:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1208,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "5077:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1207,
|
|
"name": "ERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 545,
|
|
"src": "5071:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_ERC20_$545_$",
|
|
"typeString": "type(contract ERC20)"
|
|
}
|
|
},
|
|
"id": 1209,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5071:16:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC20_$545",
|
|
"typeString": "contract ERC20"
|
|
}
|
|
},
|
|
"id": 1210,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 119,
|
|
"src": "5071:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
|
|
"typeString": "function (address,uint256) external returns (bool)"
|
|
}
|
|
},
|
|
"id": 1215,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5071:60:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1216,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5071:60:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1220,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "5149:30:4",
|
|
"subExpression": {
|
|
"baseExpression": {
|
|
"id": 1217,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "5156:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1219,
|
|
"indexExpression": {
|
|
"id": 1218,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1199,
|
|
"src": "5170:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "5156:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1221,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5149:30:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1194,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1191,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "4946:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1192,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4950:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1193,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4950:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4946:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1223,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1188
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1188,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4939:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1223,
|
|
"src": "4931:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1187,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4931:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1190,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1189,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4943:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4931:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1196,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4975:3:4",
|
|
"subExpression": {
|
|
"id": 1195,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1188,
|
|
"src": "4975:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1197,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4975:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4926:268:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1225,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "5207:23:4",
|
|
"subExpression": {
|
|
"id": 1224,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "5214:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1226,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5207:23:4"
|
|
}
|
|
]
|
|
},
|
|
"id": 1228,
|
|
"nodeType": "IfStatement",
|
|
"src": "3754:1487:4",
|
|
"trueBody": {
|
|
"id": 1130,
|
|
"nodeType": "Block",
|
|
"src": "3772:734:4",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"id": 1088,
|
|
"nodeType": "Block",
|
|
"src": "3841:336:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1047
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1047,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "3867:6:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1088,
|
|
"src": "3859:14:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1046,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3859:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1060,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1059,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1055,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 1048,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3877:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1049,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalNoAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 724,
|
|
"src": "3877:22:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1050,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3922:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1051,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3922:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1053,
|
|
"indexExpression": {
|
|
"id": 1052,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3940:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3922:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1054,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "3922:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3877:72:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1056,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "3876:74:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1057,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3953:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1058,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "totalYesAmount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 722,
|
|
"src": "3953:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3876:100:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3859:117:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1076,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"baseExpression": {
|
|
"id": 1061,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "3994:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1067,
|
|
"indexExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1062,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4008:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1063,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4008:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1065,
|
|
"indexExpression": {
|
|
"id": 1064,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4026:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4008:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1066,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4008:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "3994:40:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "+=",
|
|
"rightHandSide": {
|
|
"components": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1074,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1068,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1047,
|
|
"src": "4039:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1069,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4068:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1070,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4068:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1072,
|
|
"indexExpression": {
|
|
"id": 1071,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4086:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4068:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1073,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "amount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 735,
|
|
"src": "4068:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4039:56:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 1075,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "4038:58:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3994:102:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1077,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3994:102:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"baseExpression": {
|
|
"expression": {
|
|
"id": 1081,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "4136:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1082,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "4136:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1084,
|
|
"indexExpression": {
|
|
"id": 1083,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "4154:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4136:20:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_AmountAdded_$738_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref"
|
|
}
|
|
},
|
|
"id": 1085,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "user",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 733,
|
|
"src": "4136:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 1078,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4114:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1080,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "push",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4114:21:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_address_$dyn_storage_ptr_$_t_address_$returns$__$bound_to$_t_array$_t_address_$dyn_storage_ptr_$",
|
|
"typeString": "function (address[] storage pointer,address)"
|
|
}
|
|
},
|
|
"id": 1086,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4114:48:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1087,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4114:48:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1042,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1038,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3806:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"expression": {
|
|
"id": 1039,
|
|
"name": "question",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1028,
|
|
"src": "3810:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Questions_$731_storage_ptr",
|
|
"typeString": "struct PredictionMarketContract.Questions storage pointer"
|
|
}
|
|
},
|
|
"id": 1040,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "yesCount",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 714,
|
|
"src": "3810:17:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_AmountAdded_$738_storage_$dyn_storage",
|
|
"typeString": "struct PredictionMarketContract.AmountAdded storage ref[] storage ref"
|
|
}
|
|
},
|
|
"id": 1041,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "3810:24:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3806:28:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1089,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1035
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1035,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "3799:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1089,
|
|
"src": "3791:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1034,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3791:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1037,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1036,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "3803:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "3791:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1044,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "3836:3:4",
|
|
"subExpression": {
|
|
"id": 1043,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1035,
|
|
"src": "3836:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1045,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "3836:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "3786:391:4"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 1125,
|
|
"nodeType": "Block",
|
|
"src": "4245:214:4",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
1102
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1102,
|
|
"mutability": "mutable",
|
|
"name": "_address",
|
|
"nameLocation": "4279:8:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1125,
|
|
"src": "4263:24:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 1101,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4263:15:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1109,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"baseExpression": {
|
|
"id": 1105,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4298:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1107,
|
|
"indexExpression": {
|
|
"id": 1106,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4315:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4298:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1104,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "4290:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_payable_$",
|
|
"typeString": "type(address payable)"
|
|
},
|
|
"typeName": {
|
|
"id": 1103,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4290:8:4",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 1108,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4290:28:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4263:55:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1114,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4362:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
{
|
|
"baseExpression": {
|
|
"id": 1115,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4372:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1117,
|
|
"indexExpression": {
|
|
"id": 1116,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4386:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4372:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 1111,
|
|
"name": "polyToken",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 677,
|
|
"src": "4342:9:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 1110,
|
|
"name": "ERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 545,
|
|
"src": "4336:5:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_ERC20_$545_$",
|
|
"typeString": "type(contract ERC20)"
|
|
}
|
|
},
|
|
"id": 1112,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4336:16:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC20_$545",
|
|
"typeString": "contract ERC20"
|
|
}
|
|
},
|
|
"id": 1113,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 119,
|
|
"src": "4336:25:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
|
|
"typeString": "function (address,uint256) external returns (bool)"
|
|
}
|
|
},
|
|
"id": 1118,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4336:60:4",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1119,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4336:60:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1123,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "4414:30:4",
|
|
"subExpression": {
|
|
"baseExpression": {
|
|
"id": 1120,
|
|
"name": "winningAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 742,
|
|
"src": "4421:13:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
|
"typeString": "mapping(address => uint256)"
|
|
}
|
|
},
|
|
"id": 1122,
|
|
"indexExpression": {
|
|
"id": 1121,
|
|
"name": "_address",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1102,
|
|
"src": "4435:8:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "4421:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1124,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4414:30:4"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 1097,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 1094,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4211:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 1095,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4215:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"id": 1096,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "length",
|
|
"nodeType": "MemberAccess",
|
|
"src": "4215:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4211:27:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 1126,
|
|
"initializationExpression": {
|
|
"assignments": [
|
|
1091
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 1091,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "4204:1:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1126,
|
|
"src": "4196:9:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1090,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4196:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 1093,
|
|
"initialValue": {
|
|
"hexValue": "30",
|
|
"id": 1092,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "4208:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "4196:13:4"
|
|
},
|
|
"loopExpression": {
|
|
"expression": {
|
|
"id": 1099,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "4240:3:4",
|
|
"subExpression": {
|
|
"id": 1098,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1091,
|
|
"src": "4240:1:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1100,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4240:3:4"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "4191:268:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 1128,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "delete",
|
|
"prefix": true,
|
|
"src": "4472:23:4",
|
|
"subExpression": {
|
|
"id": 1127,
|
|
"name": "winningAddresses",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 745,
|
|
"src": "4479:16:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage",
|
|
"typeString": "address[] storage ref"
|
|
}
|
|
},
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 1129,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4472:23:4"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "724ba40b",
|
|
"id": 1230,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "distributeWinningAmount",
|
|
"nameLocation": "3463:23:4",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 1009,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 1006,
|
|
"mutability": "mutable",
|
|
"name": "_questionId",
|
|
"nameLocation": "3495:11:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1230,
|
|
"src": "3487:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1005,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3487:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1008,
|
|
"mutability": "mutable",
|
|
"name": "eventOutcome",
|
|
"nameLocation": "3513:12:4",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1230,
|
|
"src": "3508:17:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1007,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3508:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3486:40:4"
|
|
},
|
|
"returnParameters": {
|
|
"id": 1010,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "3562:0:4"
|
|
},
|
|
"scope": 1231,
|
|
"src": "3454:1793:4",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 1232,
|
|
"src": "113:5136:4",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:5276:4"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.9+commit.e5eed63a.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.1",
|
|
"updatedAt": "2021-11-02T10:42:59.150Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
} |