From de10fa8a8f35f0170e9099f1147619173a5ee932 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Thu, 12 Oct 2023 20:44:03 +0200 Subject: [PATCH] Update ABI's --- backend/src/abi/BondingManagerTarget.json | 1131 +++++---------------- backend/src/abi/RoundsManagerTarget.json | 229 +---- backend/src/abi/TicketBrokerTarget.json | 376 +------ 3 files changed, 256 insertions(+), 1480 deletions(-) diff --git a/backend/src/abi/BondingManagerTarget.json b/backend/src/abi/BondingManagerTarget.json index 0977aa9..efa6550 100644 --- a/backend/src/abi/BondingManagerTarget.json +++ b/backend/src/abi/BondingManagerTarget.json @@ -1,5 +1,7 @@ { - "address": "0x3757DB506ECd9CBE643660C0F5b70db5b321202C", + "_format": "hh-sol-artifact-1", + "contractName": "BondingManager", + "sourceName": "contracts/bonding/BondingManager.sol", "abi": [ { "inputs": [ @@ -299,6 +301,31 @@ "name": "TransferBond", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "transcoder", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "treasury", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "TreasuryReward", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -491,6 +518,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "_account", + "type": "address" + } + ], + "name": "checkpointBondingState", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -881,6 +921,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "nextRoundTreasuryRewardCutRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1069,6 +1122,32 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_ceiling", + "type": "uint256" + } + ], + "name": "setTreasuryBalanceCeiling", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_cutRate", + "type": "uint256" + } + ], + "name": "setTreasuryRewardCutRate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -1245,6 +1324,32 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "treasuryBalanceCeiling", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "treasuryRewardCutRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1349,910 +1454,154 @@ "type": "function" } ], - "transactionHash": "0x9fa315b88ca626d035a29b7a3ba4db5996bdd711490b24e37ccd64a74a194ec5", - "receipt": { - "to": null, - "from": "0xB5Af4138f0f33be0D6414Eb25271B9C2Dc245fb5", - "contractAddress": "0x3757DB506ECd9CBE643660C0F5b70db5b321202C", - "transactionIndex": 0, - "gasUsed": "64037927", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x2cf15132b784f96e7462597389147f08d2308379df441cb0c41ba3783414dbe3", - "transactionHash": "0x9fa315b88ca626d035a29b7a3ba4db5996bdd711490b24e37ccd64a74a194ec5", - "logs": [], - "blockNumber": 6897365, - "cumulativeGasUsed": "29733427", - "status": 1, - "byzantium": true + "bytecode": "0x60806040523480156200001157600080fd5b50604051620054b5380380620054b583398101604081905262000034916200005a565b600080546001600160a01b0319166001600160a01b03929092169190911790556200008c565b6000602082840312156200006d57600080fd5b81516001600160a01b03811681146200008557600080fd5b9392505050565b615419806200009c6000396000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c80635dce99481161019d5780639d0b2c7a116100e9578063cf33a0d5116100a2578063ee4e804a1161007c578063ee4e804a1461083d578063f10d1de114610850578063f595f1cc14610863578063f77c47911461087657600080fd5b8063cf33a0d514610804578063d52bd62b14610817578063eaffb3f91461082a57600080fd5b80639d0b2c7a146107115780639ef9df9414610724578063a576623114610737578063a64ad59514610740578063ad3b1b47146107de578063b78d27dc146107f157600080fd5b80637fc4606f1161015657806388a6c7491161013057806388a6c749146106c35780638b2f1652146106cb57806392eefe9b146106eb5780639500ed9b146106fe57600080fd5b80637fc4606f1461069457806381871056146106a757806384a16bbc146106ba57600080fd5b80635dce994814610574578063673a456b1461062657806368ba170c146106395780636bd9add41461064c5780636cf6d6751461065f578063713f22161461068c57600080fd5b80632a4e0d551161025c5780634196ee751161021557806351720b41116101ef57806351720b4114610552578063558f8f441461055b5780635a2a75a9146105645780635c50c3561461056c57600080fd5b80634196ee751461052d57806343d3461a14610536578063465501d31461054957600080fd5b80632a4e0d55146104745780633550aa101461048a5780633a080e931461049d5780633aeb512c146104b057806340e6f271146104c3578063412f83b6146104d657600080fd5b806322bf9d7c116102ae57806322bf9d7c14610381578063235c96031461039457806324454fc4146103bf57806324b1babf1461043b57806325d5971f1461044e57806327de9e321461046157600080fd5b80630584a373146102f6578063062e98b81461030b578063088023741461031e5780630fd02fc1146103465780631544fc6714610359578063228cb73314610379575b600080fd5b610309610304366004614ebc565b610889565b005b610309610319366004614f0f565b6109dc565b61033161032c366004614f88565b610cb1565b60405190151581526020015b60405180910390f35b610331610354366004614fa5565b610d63565b61036c610367366004614f88565b610d94565b60405161033d9190614fe7565b610309610e50565b61030961038f366004615001565b610e5d565b6103a76103a2366004614f88565b61126c565b6040516001600160a01b03909116815260200161033d565b6104136103cd366004614fa5565b6001600160a01b03909116600090815260046020818152604080842094845260039485019091529091208054600182015460028301549483015492909301549094929392565b604080519586526020860194909452928401919091526060830152608082015260a00161033d565b610309610449366004615047565b611307565b61030961045c366004615047565b611353565b61030961046f366004615047565b61159d565b61047c6115ac565b60405190815260200161033d565b610309610498366004615060565b611638565b6103096104ab366004614fa5565b611a6c565b6103096104be36600461508f565b611a79565b6103096104d1366004615047565b611d9d565b6105186104e4366004614fa5565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522080546001909101549091565b6040805192835260208301919091520161033d565b61047c60055481565b6103096105443660046150c4565b611dfc565b61047c60065481565b61047c60015481565b61047c600c5481565b61047c611e09565b60055461047c565b6105dc610582366004614f88565b6001600160a01b031660009081526004602081905260409091208054600182015460028301549383015460058401546006850154600786015460088701546009880154600a90980154969995989794969395929491939092565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e08401526101008301526101208201526101400161033d565b610309610634366004615047565b611e44565b610331610647366004614f88565b611efa565b61030961065a3660046150e6565b611f32565b6002546106739067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161033d565b610309611f41565b6103096106a2366004615121565b612098565b6103096106b5366004615163565b612120565b61047c600e5481565b6103a76125a1565b6106de6106d9366004614f88565b612627565b60405161033d919061519c565b6103096106f9366004614f88565b612647565b61030961070c366004615121565b61269d565b61047c61071f366004614fa5565b612a60565b61047c610732366004614f88565b612af3565b61047c600d5481565b61079b61074e366004614f88565b6001600160a01b0390811660009081526003602081905260409091208054600182015460028301549383015460048401546005850154600690950154939792969590951694909390929091565b6040805197885260208801969096526001600160a01b03909416948601949094526060850191909152608084015260a083019190915260c082015260e00161033d565b6103096107ec366004614fa5565b612b12565b6103096107ff3660046151b0565b612cd6565b610309610812366004615047565b612ce6565b610309610825366004614f88565b612cf7565b610309610838366004615047565b612d25565b61030961084b3660046151d5565b612d31565b61030961085e366004615262565b6132e2565b61047c610871366004614fa5565b613349565b6000546103a7906001600160a01b031681565b6108916133dc565b6108996134a0565b336108a381613564565b60026108ae33610d94565b60028111156108bf576108bf614fd1565b146109115760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d75737420626520756e626f6e64656400000000000000000060448201526064015b60405180910390fd5b610994600161091e613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095657600080fd5b505afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e919061528c565b90613689565b3360008181526003602052604090206004810192909255600290910180546001600160a01b0319166001600160a01b0388161790556109d590858585613695565b5050505050565b6109e46133dc565b6109ec6134a0565b6109f533613564565b336000908152600360205260408082206001600160a01b038981168452919092206002830154909116610a2988888861269d565b6006830154600090610a3c906001613822565b905060008460070160008381526020019081526020016000206001015490508460070160008381526020019081526020016000206000808201600090556001820160009055505060008460060154905060405180604001604052808c8152602001838152508560070160008381526020019081526020016000206000820151816000015560208201518160010155905050610ae56001866006015461368990919063ffffffff16565b600686015560408051848152602081018390529081018c90526001600160a01b038d169033907ff136b986590e86cf1abd7b6600186a7a1178ad3cbbdf0f3312e79f6214a2a5679060600160405180910390a36000610b42613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b7a57600080fd5b505afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb2919061528c565b600587015490915081811015610bcd57610bcd8e838361382e565b60028701546001600160a01b0316158015610be757508654155b15610c62578d6001600160a01b0316866001600160a01b03161415610c1e5760405162461bcd60e51b8152600401610908906152a5565b6001600160a01b038e16610c445760405162461bcd60e51b8152600401610908906152a5565b6002870180546001600160a01b0319166001600160a01b0388161790555b6002610c6d8f610d94565b6002811115610c7e57610c7e614fd1565b1415610c9557610c8f826001613689565b60048801555b610ca18e848c8c613695565b5050505050505050505050505050565b6001600160a01b038116600090815260046020526040812081610cd2613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0a57600080fd5b505afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d42919061528c565b905080826005015411158015610d5b5750816006015481105b949350505050565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522060010154151590565b6001600160a01b03811660009081526003602052604081208054610dbb5750600292915050565b610dc3613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e33919061528c565b81600401541115610e475750600092915050565b50600192915050565b610e5b600080612120565b565b610e656133dc565b610e6d6139ba565b83610e7781613564565b6001600160a01b03851660009081526003602052604090208054869190156111e6576001600160a01b038716600090815260036020526040812054610ebc9087613ab5565b60405163b0138c4760e01b8152600760048201526001600160a01b038a16602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015610f1957600080fd5b505af4158015610f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5191906152d0565b15610f5f57610f5f88613ace565b8154610f6b9082613822565b82556001610f7889610d94565b6002811115610f8957610f89614fd1565b1415610fdc5760028201546001600160a01b031660009081526003602081905260409091200154610fba9082613822565b60028301546001600160a01b0316600090815260036020819052604090912001555b806001600160a01b0388161561112b576000610ff88388613ab5565b9050611002613bc7565b60405163e7a49c2b60e01b81526001600160a01b038b8116600483015260248201849052919091169063e7a49c2b90604401600060405180830381600087803b15801561104e57600080fd5b505af1158015611062573d6000803e3d6000fd5b5050505061106e613bc7565b6001600160a01b031663c7ee98c26110868484613822565b6040518263ffffffff1660e01b81526004016110a491815260200190565b600060405180830381600087803b1580156110be57600080fd5b505af11580156110d2573d6000803e3d6000fd5b5050604080516001600160a01b038d8116825260208201889052918101859052908d1692507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22915060600160405180910390a2506111df565b611133613bc7565b6001600160a01b031663c7ee98c2826040518263ffffffff1660e01b815260040161116091815260200190565b600060405180830381600087803b15801561117a57600080fd5b505af115801561118e573d6000803e3d6000fd5b5050604080516000808252602082018790528183015290516001600160a01b038d1693507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c2292509081900360600190a25b5050611235565b604080516001600160a01b038881168252600060208301819052828401529151918916917ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c229181900360600190a25b506001600160a01b03811660009081526003602090815260408083206004909252909120611264918391613c18565b505050505050565b60405163e189dedb60e01b8152600760048201526001600160a01b038216602482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063e189dedb9060440160206040518083038186803b1580156112c957600080fd5b505af41580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130191906152f2565b92915050565b61130f6133dc565b6113176134a0565b3361132133613564565b6001600160a01b0381166000908152600360209081526040808320600490925290912061134f918391613c18565b5050565b61135b6133dc565b6113636134a0565b33600081815260036020908152604080832085845260078101909252909120909161138e9084610d63565b6113d65760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610908565b6113de613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561141657600080fd5b505afa15801561142a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144e919061528c565b816001015411156114c75760405162461bcd60e51b815260206004820152603b60248201527f776974686472617720726f756e64206d757374206265206265666f7265206f7260448201527f20657175616c20746f207468652063757272656e7420726f756e6400000000006064820152608401610908565b805460018083015460008681526007860160205260408120818155909201919091556114f1613bc7565b60405163e7a49c2b60e01b8152336004820152602481018490526001600160a01b03919091169063e7a49c2b90604401600060405180830381600087803b15801561153b57600080fd5b505af115801561154f573d6000803e3d6000fd5b505060408051888152602081018690529081018490523392507f1340f1a8f3d456a649e1a12071dfa15655e3d09252131d0f980c3b405cc8dd2e915060600160405180910390a25050505050565b6115a98160008061269d565b50565b604051631665d9cb60e31b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063b32ece58906024015b60206040518083038186803b1580156115fb57600080fd5b505af415801561160f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611633919061528c565b905090565b6116406133dc565b6116486134a0565b611650613610565b6001600160a01b0316636841f2536040518163ffffffff1660e01b815260040160206040518083038186803b15801561168857600080fd5b505afa15801561169c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c091906152d0565b156117335760405162461bcd60e51b815260206004820152603760248201527f63616e277420757064617465207472616e73636f64657220706172616d732c2060448201527f63757272656e7420726f756e64206973206c6f636b65640000000000000000006064820152608401610908565b61174084620f4240101590565b61178c5760405162461bcd60e51b815260206004820152601c60248201527f696e76616c6964207265776172644375742070657263656e74616765000000006044820152606401610908565b61179983620f4240101590565b6117e55760405162461bcd60e51b815260206004820152601b60248201527f696e76616c69642066656553686172652070657263656e7461676500000000006044820152606401610908565b6117ee33611efa565b61183a5760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610908565b33600090815260046020526040812090611852613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561188a57600080fd5b505afa15801561189e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c2919061528c565b90506118cd33610cb1565b15806118d95750815481145b6119635760405162461bcd60e51b815260206004820152604f60248201527f63616c6c65722063616e277420626520616374697665206f72206d757374206860448201527f61766520616c72656164792063616c6c65642072657761726420666f7220746860648201526e194818dd5c9c995b9d081c9bdd5b99608a1b608482015260a401610908565b600182018690556002820185905560405163b0138c4760e01b81526007600482015233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b1580156119c257600080fd5b505af41580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa91906152d0565b611a29573360008181526003602081905260409091200154611a299190611a22846001613689565b8787613d44565b604080518781526020810187905233917f7346854431dbb3eb8e373c604abf89e90f4865b8447e1e2834d7b3e4677bf544910160405180910390a2505050505050565b61134f8282600080610889565b611a816133dc565b611a89614067565b611a9283611efa565b611ade5760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610908565b6000611ae8613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b2057600080fd5b505afa158015611b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b58919061528c565b6001600160a01b03851660009081526004602090815260408083208054600782015486865260038301909452918420949550939092611ba185611b9c886001613822565b614162565b905083861115611beb5760018581015460028088015492850191909155830155600485015486811015611be257600081815260038701602052604090205483555b85600801549350505b81546060820151158015611bfe57508685145b15611d2d576000611c0d613bc7565b90506000611cca611cc1836001600160a01b0316632de22cdb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5057600080fd5b505afa158015611c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c88919061528c565b846001600160a01b0316639ae6309a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095657600080fd5b84600554614207565b90506000611cda82600c5461422d565b9050611ce68282613822565b91506000611cf8838860010154613ab5565b90506000611d068483613822565b6003890154909150611d229087611d1d8482613689565b614207565b606088015250505050505b6000611d3d8a8560020154613ab5565b90506000611d4b8b83613822565b90506000611d5a838886614207565b9050611d778261098e838c6009015461368990919063ffffffff16565b60098a0155611d87868685614249565b50505050600a9094019490945550505050505050565b611da56142c4565b600e8190556040516000805160206153c483398151915290611df190602080825260169082015275747265617375727942616c616e63654365696c696e6760501b604082015260600190565b60405180910390a150565b61134f8282600080611638565b6040516339ade16560e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063735bc2ca906024016115e3565b611e4c6142c4565b60405163a176adaf60e01b8152600760048201526024810182905273__$d23c89be677d40ab24c636937040b6165f$__9063a176adaf9060440160006040518083038186803b158015611e9e57600080fd5b505af4158015611eb2573d6000803e3d6000fd5b505050506000805160206153c4833981519152604051611df1906020808252601490820152736e756d4163746976655472616e73636f6465727360601b604082015260600190565b6001600160a01b0380821660008181526003602052604081206002810154919390929116148015611f2b5750805415155b9392505050565b61126486338787878787612d31565b611f496143a8565b600654600555600c54600d5414611faf57600d54600c556040516000805160206153c483398151915290611fa69060208082526015908201527474726561737572795265776172644375745261746560581b604082015260600190565b60405180910390a15b611fb76144a3565b6001600160a01b031663ef105c91600554611fd0613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200857600080fd5b505afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612040919061528c565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381600087803b15801561207e57600080fd5b505af1158015612092573d6000803e3d6000fd5b50505050565b6120a06133dc565b6120a86134a0565b336120b281613564565b60026120bd33610d94565b60028111156120ce576120ce614fd1565b14156121145760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610908565b61209233858585613695565b6121286133dc565b6121306134a0565b33600061213b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561217357600080fd5b505afa158015612187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ab919061528c565b90506121b633610cb1565b61220e5760405162461bcd60e51b815260206004820152602360248201527f63616c6c6572206d75737420626520616e20616374697665207472616e73636f6044820152623232b960e91b6064820152608401610908565b3360009081526004602052604090205481141561228c5760405162461bcd60e51b815260206004820152603660248201527f63616c6c65722068617320616c72656164792063616c6c65642072657761726460448201527508199bdc881d1a194818dd5c9c995b9d081c9bdd5b9960521b6064820152608401610908565b33600090815260046020908152604080832084845260038101909252909120600180830154600280850154928401919091558201556004820154838110156122e257600081815260038401602052604090205482555b600e54156123a85760006122f46144f4565b6001600160a01b03166370a0823161230a614545565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561234957600080fd5b505afa15801561235d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612381919061528c565b9050600e54811015801561239757506000600d54115b156123a6576123a66000614596565b505b60006123b2613bc7565b8354600554604051637dbedad560e01b81529293506000926001600160a01b03851692637dbedad5926123f092600401918252602082015260400190565b602060405180830381600087803b15801561240a57600080fd5b505af115801561241e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612442919061528c565b9050600061245282600c5461422d565b90508015612510576000612464614545565b60405163e7a49c2b60e01b81526001600160a01b038083166004830152602482018590529192509085169063e7a49c2b90604401600060405180830381600087803b1580156124b257600080fd5b505af11580156124c6573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018690523393507f40e200718fe552021167687e5491d09f5931275b6f88f14a462650f0effb523792500160405180910390a2505b600061251c8383613822565b905061252b33828a8e8e61465a565b87875560405181815233907f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc99060200160405180910390a2505050506001600160a01b0385166000908152600360209081526040808320600490925290912061259c95508694509092509050613c18565b505050565b604051632ebb2fed60e01b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__90632ebb2fed9060240160206040518083038186803b1580156125ef57600080fd5b505af4158015612603573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163391906152f2565b600061263282611efa565b1561263f57506001919050565b506000919050565b61264f61471c565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001611df1565b6126a56133dc565b6126ad6134a0565b336126b781613564565b3360016126c333610d94565b60028111156126d4576126d4614fd1565b146127195760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610908565b336000908152600360205260409020856127815760405162461bcd60e51b8152602060048201526024808201527f756e626f6e6420616d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610908565b80548611156127de5760405162461bcd60e51b8152602060048201526024808201527f616d6f756e742069732067726561746572207468616e20626f6e64656420616d6044820152631bdd5b9d60e21b6064820152608401610908565b60028101546001600160a01b031660006127f6613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561282e57600080fd5b505afa158015612842573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612866919061528c565b60025490915060009061288490839067ffffffffffffffff16613689565b60068501546040805180820182528c81526020808201858152600085815260078b01909252929020905181559051600191820155919250906128c7908290613689565b600686015584546128d8908b613822565b808655612995576002850180546001600160a01b0319169055600060048087019190915560405163b0138c4760e01b815260079181019190915233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561294f57600080fd5b505af4158015612963573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298791906152d0565b156129955761299533613ace565b6129a1848b8b8b614776565b6001600160a01b03841633146129df576001600160a01b038416600090815260036020908152604080832060049092529091206129df918691613c18565b60408051828152602081018c905290810183905233906001600160a01b038616907f2d5d98d189bee5496a08db2a5948cb7e5e786f09d17d0c3f228eb41776c24a069060600160405180910390a35050506001600160a01b038316600090815260036020908152604080832060049092529091206109d59350849250613c18565b600080612a6b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612aa357600080fd5b505afa158015612ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adb919061528c565b90506000612ae985836149b3565b5095945050505050565b6001600160a01b03166000908152600360208190526040909120015490565b612b1a6133dc565b612b226134a0565b33612b2c81613564565b336001600160a01b038416612b775760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610908565b3360009081526003602052604090206001015483811015612bda5760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e74206665657320746f2077697468647261770000006044820152606401610908565b612be48185613822565b33600090815260036020526040902060010155612bff613bc7565b6040516320283da960e01b81526001600160a01b0387811660048301526024820187905291909116906320283da990604401600060405180830381600087803b158015612c4b57600080fd5b505af1158015612c5f573d6000803e3d6000fd5b5050604080516001600160a01b0389168152602081018890523393507f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e492500160405180910390a2506001600160a01b03811660009081526003602090815260408083206004909252909120612092918391613c18565b61134f8282600080600080611f32565b612cee6142c4565b6115a981614596565b6001600160a01b038116600090815260036020908152604080832060049092529091206115a9918391613c18565b6115a981600080612098565b612d396133dc565b612d416134a0565b612d4a86613564565b6001600160a01b038616600090815260036020526040812090612d6b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612da357600080fd5b505afa158015612db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ddb919061528c565b600283015483549192508a916001600160a01b03918216918b163314801590612e1d5750612e07614a78565b6001600160a01b0316336001600160a01b031614155b15612f25576001600160a01b038b16612e485760405162461bcd60e51b8152600401610908906152a5565b6002612e538c610d94565b6002811115612e6457612e64614fd1565b1415612ec4578a6001600160a01b03168a6001600160a01b03161415612ebf5760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f44454c454741544560801b6044820152606401610908565b612f25565b896001600160a01b0316826001600160a01b031614612f255760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f44454c45474154455f4348414e47450000000000000000006044820152606401610908565b6002612f308c610d94565b6002811115612f4157612f41614fd1565b1415612f5c57612f52846001613689565b6004860155613055565b600081118015612f7e5750896001600160a01b0316826001600160a01b031614155b1561305557612f8c8b611efa565b15612fff5760405162461bcd60e51b815260206004820152603d60248201527f72656769737465726564207472616e73636f646572732063616e27742064656c60448201527f656761746520746f7761726473206f74686572206164647265737365730000006064820152608401610908565b61300a846001613689565b60048601556130198382613689565b925061302782828b8b614776565b6001600160a01b03821660009081526003602090815260408083206004909252909120613055918491613c18565b6001600160a01b038a166000908152600460209081526040808320878452600380820190935292209081015461309d57613093828360000154614ac9565b6060015160038201555b60048101546130be576130b48283600a0154614ac9565b6080015160048201555b5050600083116131215760405162461bcd60e51b815260206004820152602860248201527f64656c65676174696f6e20616d6f756e74206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610908565b6002850180546001600160a01b0319166001600160a01b038c16179055613148818d613689565b85556131568a848989614b2c565b8a6001600160a01b03168a6001600160a01b03161461319d576001600160a01b038a166000908152600360209081526040808320600490925290912061319d918c91613c18565b8b1561324b576131ab6144f4565b6001600160a01b03166323b872dd336131c2613bc7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018f9052606401602060405180830381600087803b15801561321157600080fd5b505af1158015613225573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061324991906152d0565b505b8a6001600160a01b0316826001600160a01b03168b6001600160a01b03167fe5917769f276ddca9f2ee7c6b0b33e1d1e1b61008010ce622c632dd20d168a238f89600001546040516132a7929190918252602082015260400190565b60405180910390a46001600160a01b038b1660009081526004602052604090206132d4908c908790613c18565b505050505050505050505050565b6132ea6142c4565b6002805467ffffffffffffffff831667ffffffffffffffff199091161790556040516000805160206153c483398151915290611df1906020808252600f908201526e1d5b989bdb991a5b99d4195c9a5bd9608a1b604082015260600190565b600080613354613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561338c57600080fd5b505afa1580156133a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c4919061528c565b905060006133d285836149b3565b9695505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561342857600080fd5b505afa15801561343c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061346091906152d0565b15610e5b5760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b6044820152606401610908565b6134a8613610565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156134e057600080fd5b505afa1580156134f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351891906152d0565b610e5b5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a65646044820152606401610908565b600061356e613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156135a657600080fd5b505afa1580156135ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135de919061528c565b6001600160a01b0383166000908152600360205260409020600501549091508181101561259c5761259c83838361382e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b15801561367557600080fd5b505afa158015612603573d6000803e3d6000fd5b6000611f2b8284615325565b6001600160a01b0384166000908152600360209081526040808320868452600781019092529091208591906136ca8387610d63565b6137125760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610908565b805482546137209082613689565b8355600087815260078401602052604081208181556001015560028301546001600160a01b031661375381838989614b2c565b886001600160a01b0316816001600160a01b03161461379a576001600160a01b0381166000908152600360209081526040808320600490925290912061379a918391613c18565b886001600160a01b0316816001600160a01b03167f9f5b64cc71e1e26ff178caaa7877a04d8ce66fde989251870e80e6fbee690c178a856040516137e8929190918252602082015260400190565b60405180910390a3505050506001600160a01b038116600090815260036020908152604080832060049092529091206109d5918391613c18565b6000611f2b828461533d565b6001600160a01b038316600090815260036020526040812090613852836001613689565b82546001840154600285015492935090916001600160a01b03161561392c5761387b87876149b3565b60028601546001600160a01b031660009081526004602090815260408083208b84526003808201909352922090810154939550919350916138d6578154888110156138d4576138ca8382614ac9565b6060015160038301555b505b600481015461390257600a82015488811015613900576138f68382614ac9565b6080015160048301555b505b60028601546001600160a01b038a8116911614156139295760006009830181905560088301555b50505b600284015484546001600160a01b03808a169216907fd7eab0765b772ea6ea859d5633baf737502198012e930f257f90013d9b2110949061396e908690613822565b600188015461397e908690613822565b6040805192835260208301919091528101879052606081018a905260800160405180910390a36005840195909555825550600101919091555050565b600054604051631c2d8fb360e31b81527f121833d5ee4fda5e1a4034c2b7be8155c158142541dea26f39122c796649233f60048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b158015613a1d57600080fd5b505afa158015613a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a5591906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d7573742062652056657269666965720000000000000000006044820152606401610908565b6000611f2b620f4240613ac88585614d5c565b90614d68565b604051635d35e00760e01b8152600760048201526001600160a01b038216602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b158015613b2857600080fd5b505af4158015613b3c573d6000803e3d6000fd5b50505050613b55613b4c82612af3565b60065490613822565b6006556000613b67600161091e613610565b6001600160a01b0383166000818152600460205260409081902060060183905551919250907ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c90613bbb9084815260200190565b60405180910390a25050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d989060240161365d565b6000613c22613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015613c5a57600080fd5b505afa158015613c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c92919061528c565b613c9d906001615325565b9050613ca76144a3565b8354600285015460038601546005870154865460405163e35c3e4360e01b81526001600160a01b038b811660048301526024820189905260448201969096529385166064850152608484019290925260a483015260c482015291169063e35c3e439060e401600060405180830381600087803b158015613d2657600080fd5b505af1158015613d3a573d6000803e3d6000fd5b5050505050505050565b6006546040516304aa129960e41b81526007600482015273__$d23c89be677d40ab24c636937040b6165f$__90634aa129909060240160206040518083038186803b158015613d9257600080fd5b505af4158015613da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dca91906152d0565b15613f5557604051633972059360e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__906372e40b269060240160206040518083038186803b158015613e1d57600080fd5b505af4158015613e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e5591906152f2565b90506000613e6282612af3565b9050808711613e73575050506109d5565b604051635d35e00760e01b8152600760048201526001600160a01b038316602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b158015613ecd57600080fd5b505af4158015613ee1573d6000803e3d6000fd5b5050506001600160a01b038316600090815260046020526040902060060187905550613f0d8382613822565b9250816001600160a01b03167ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c87604051613f4a91815260200190565b60405180910390a250505b6040516327dd54d360e11b815273__$d23c89be677d40ab24c636937040b6165f$__90634fbaa9a690613f95906007908a908a9089908990600401615354565b60006040518083038186803b158015613fad57600080fd5b505af4158015613fc1573d6000803e3d6000fd5b50505050613fd8858261368990919063ffffffff16565b6001600160a01b03871660009081526004602081815260408084209283018990556005830189905560001960068401558884526003830190915290912087905590915060068290556040518581526001600160a01b038816907f65d72d782835d64c3287844a829608d5abdc7e864cc9affe96d910ab3db665e99060200160405180910390a250505050505050565b600054604051631c2d8fb360e31b81527fbd1aa3e8d2464256d7fd3dcf645c16418d5d8c51d971f1ad7d57e7b1b5eee23960048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b1580156140ca57600080fd5b505afa1580156140de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061410291906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206d757374206265205469636b657442726f6b657200000000006044820152606401610908565b6141946040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b61419e8383614ac9565b83546060820151919250901580156141b557508281105b156141cf576141c48482614ac9565b606090810151908301525b600a84015460808301511580156141e557508381105b156141ff576141f48582614ac9565b608090810151908401525b505092915050565b6000610d5b6b033b2e3c9fd0803ce8000000613ac86142268686614d74565b8790614d5c565b6000611f2b6b033b2e3c9fd0803ce8000000613ac88585614d5c565b6080820151606083015160009061426a57614265600180614d74565b614270565b83606001515b90508460040154600014156142a75761429861429182858860000154614207565b8390613689565b85600401819055505050505050565b6142986142b982858860000154614207565b600487015490613689565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561431057600080fd5b505afa158015614324573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061434891906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e6572006044820152606401610908565b600054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b15801561440b57600080fd5b505afa15801561441f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061444391906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206d75737420626520526f756e64734d616e61676572000000006044820152606401610908565b60008054604051631c2d8fb360e31b81527f2a1b465fbcae519904f0fb11f93e73dfbeb47ec54530ec444279610af8cf06b260048201526001600160a01b039091169063e16c7d989060240161365d565b60008054604051631c2d8fb360e31b81527f3443e257065fe41dd0e4d1f5a1b73a22a62e300962b57f30cddf41d0f8273ba760048201526001600160a01b039091169063e16c7d989060240161365d565b60008054604051631c2d8fb360e31b81527f6efca2866b731ee4984990bacad4cde10f1ef764fb54a5206bdfd291695b1a9b60048201526001600160a01b039091169063e16c7d989060240161365d565b6145ac816b033b2e3c9fd0803ce8000000101590565b6146075760405162461bcd60e51b815260206004820152602660248201527f5f6375745261746520697320696e76616c696420707265636973652070657263604482015265656e7461676560d01b6064820152608401610908565b600d8190556040516000805160206153c483398151915290611df1906020808252601e908201527f6e657874526f756e645472656173757279526577617264437574526174650000604082015260600190565b6001600160a01b0385166000908152600460209081526040808320868452600381019092528220815491929091614692908490614ac9565b90508260080154836007018190555060006146b1888460010154613ab5565b905060006146bf8983613822565b905060006146d68287600701548760000154614207565b90506146f38361098e83896008015461368990919063ffffffff16565b6008870155614703858584614d90565b61470f8b8b8a8a614b2c565b5050505050505050505050565b6000546001600160a01b03163314610e5b5760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572000000000000006044820152606401610908565b6001600160a01b03841660009081526004602052604081209061479886612af3565b905060006147a68287613822565b60405163b0138c4760e01b8152600760048201526001600160a01b038916602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561480357600080fd5b505af4158015614817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061483b91906152d0565b1561498b57600061484a613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561488257600080fd5b505afa158015614896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148ba919061528c565b905060006148c9826001613689565b604051631c11bf7f60e11b815290915073__$d23c89be677d40ab24c636937040b6165f$__906338237efe9061490c906007908d9088908d908d90600401615354565b60006040518083038186803b15801561492457600080fd5b505af4158015614938573d6000803e3d6000fd5b505060065461494a9250905089613822565b600655600485015482111561496d57600082815260038601602052604090208490555b60048501819055600081815260038601602052604090208390555b50505b6001600160a01b03909616600090815260036020819052604090912001959095555050505050565b6001600160a01b038083166000908152600360209081526040808320600281015490941683526004909152812060018084015484546005860154909591949193926149fe9190613689565b60028401549091506001600160a01b039081169088168114878311614a3a57614a3484614a2c856001613822565b8a8a8a614dde565b90975095505b8015614a6c576008840154614a50908890613689565b9650614a6984600901548761368990919063ffffffff16565b95505b50505050509250929050565b60008054604051631c2d8fb360e31b81527f74b6d21e0d4650f622c903126d418c1a52bcc99ea7acb0db0809fc0eeae6c7c360048201526001600160a01b039091169063e16c7d989060240161365d565b614afb6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000828152600393840160208181526040832095860154606085015293909152909152600490910154608082015290565b6001600160a01b038416600090815260046020526040812090614b4e86612af3565b90506000614b5c8287613689565b9050614b6787611efa565b1561498b576000614b76613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015614bae57600080fd5b505afa158015614bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614be6919061528c565b90506000614bf5826001613689565b60405163b0138c4760e01b8152600760048201526001600160a01b038b16602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015614c5257600080fd5b505af4158015614c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c8a91906152d0565b15614d4f57604051631c11bf7f60e11b815273__$d23c89be677d40ab24c636937040b6165f$__906338237efe90614ccf906007908d9088908d908d90600401615354565b60006040518083038186803b158015614ce757600080fd5b505af4158015614cfb573d6000803e3d6000fd5b5050600654614d0d9250905089613689565b6006556004850154821115614d3057600082815260038601602052604090208490555b6000818152600386016020526040902083905560048501819055614988565b6149888984838a8a613d44565b6000611f2b8284615382565b6000611f2b82846153a1565b6000611f2b82613ac8856b033b2e3c9fd0803ce8000000614d5c565b6000826060015160001415614daf57614daa600180614d74565b614db5565b82606001515b9050614dd0614dc982848760000154614207565b8290613689565b846003018190555050505050565b6000806000614ded8888614ac9565b90506000614dfb8988614162565b9050614e0982828888614e19565b9350935050509550959350505050565b600080856060015160001415614e3a57614e34600180614d74565b60608701525b6060850151614e5457614e4e600180614d74565b60608601525b614e87614e8085614e768960800151896080015161382290919063ffffffff16565b8960600151614207565b8490613689565b9050614e9c8486606001518860600151614207565b915094509492505050565b6001600160a01b03811681146115a957600080fd5b60008060008060808587031215614ed257600080fd5b8435614edd81614ea7565b9350602085013592506040850135614ef481614ea7565b91506060850135614f0481614ea7565b939692955090935050565b60008060008060008060c08789031215614f2857600080fd5b8635614f3381614ea7565b9550602087013594506040870135614f4a81614ea7565b93506060870135614f5a81614ea7565b92506080870135614f6a81614ea7565b915060a0870135614f7a81614ea7565b809150509295509295509295565b600060208284031215614f9a57600080fd5b8135611f2b81614ea7565b60008060408385031215614fb857600080fd5b8235614fc381614ea7565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614ffb57614ffb614fd1565b91905290565b6000806000806080858703121561501757600080fd5b843561502281614ea7565b9350602085013561503281614ea7565b93969395505050506040820135916060013590565b60006020828403121561505957600080fd5b5035919050565b6000806000806080858703121561507657600080fd5b84359350602085013592506040850135614ef481614ea7565b6000806000606084860312156150a457600080fd5b83356150af81614ea7565b95602085013595506040909401359392505050565b600080604083850312156150d757600080fd5b50508035926020909101359150565b60008060008060008060c087890312156150ff57600080fd5b86359550602087013561511181614ea7565b94506040870135614f4a81614ea7565b60008060006060848603121561513657600080fd5b83359250602084013561514881614ea7565b9150604084013561515881614ea7565b809150509250925092565b6000806040838503121561517657600080fd5b823561518181614ea7565b9150602083013561519181614ea7565b809150509250929050565b6020810160028310614ffb57614ffb614fd1565b600080604083850312156151c357600080fd5b82359150602083013561519181614ea7565b600080600080600080600060e0888a0312156151f057600080fd5b87359650602088013561520281614ea7565b9550604088013561521281614ea7565b9450606088013561522281614ea7565b9350608088013561523281614ea7565b925060a088013561524281614ea7565b915060c088013561525281614ea7565b8091505092959891949750929550565b60006020828403121561527457600080fd5b813567ffffffffffffffff81168114611f2b57600080fd5b60006020828403121561529e57600080fd5b5051919050565b60208082526011908201527024a72b20a624a22fa222a622a3a0aa27a960791b604082015260600190565b6000602082840312156152e257600080fd5b81518015158114611f2b57600080fd5b60006020828403121561530457600080fd5b8151611f2b81614ea7565b634e487b7160e01b600052601160045260246000fd5b600082198211156153385761533861530f565b500190565b60008282101561534f5761534f61530f565b500390565b9485526001600160a01b03938416602086015260408501929092528216606084015216608082015260a00190565b600081600019048311821515161561539c5761539c61530f565b500290565b6000826153be57634e487b7160e01b600052601260045260246000fd5b50049056fe9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674a2646970667358221220afdf5b3e1de9b7deb0ecca46d0224b820dd44a9e754f9b651721ecebf290d39664736f6c63430008090033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102f15760003560e01c80635dce99481161019d5780639d0b2c7a116100e9578063cf33a0d5116100a2578063ee4e804a1161007c578063ee4e804a1461083d578063f10d1de114610850578063f595f1cc14610863578063f77c47911461087657600080fd5b8063cf33a0d514610804578063d52bd62b14610817578063eaffb3f91461082a57600080fd5b80639d0b2c7a146107115780639ef9df9414610724578063a576623114610737578063a64ad59514610740578063ad3b1b47146107de578063b78d27dc146107f157600080fd5b80637fc4606f1161015657806388a6c7491161013057806388a6c749146106c35780638b2f1652146106cb57806392eefe9b146106eb5780639500ed9b146106fe57600080fd5b80637fc4606f1461069457806381871056146106a757806384a16bbc146106ba57600080fd5b80635dce994814610574578063673a456b1461062657806368ba170c146106395780636bd9add41461064c5780636cf6d6751461065f578063713f22161461068c57600080fd5b80632a4e0d551161025c5780634196ee751161021557806351720b41116101ef57806351720b4114610552578063558f8f441461055b5780635a2a75a9146105645780635c50c3561461056c57600080fd5b80634196ee751461052d57806343d3461a14610536578063465501d31461054957600080fd5b80632a4e0d55146104745780633550aa101461048a5780633a080e931461049d5780633aeb512c146104b057806340e6f271146104c3578063412f83b6146104d657600080fd5b806322bf9d7c116102ae57806322bf9d7c14610381578063235c96031461039457806324454fc4146103bf57806324b1babf1461043b57806325d5971f1461044e57806327de9e321461046157600080fd5b80630584a373146102f6578063062e98b81461030b578063088023741461031e5780630fd02fc1146103465780631544fc6714610359578063228cb73314610379575b600080fd5b610309610304366004614ebc565b610889565b005b610309610319366004614f0f565b6109dc565b61033161032c366004614f88565b610cb1565b60405190151581526020015b60405180910390f35b610331610354366004614fa5565b610d63565b61036c610367366004614f88565b610d94565b60405161033d9190614fe7565b610309610e50565b61030961038f366004615001565b610e5d565b6103a76103a2366004614f88565b61126c565b6040516001600160a01b03909116815260200161033d565b6104136103cd366004614fa5565b6001600160a01b03909116600090815260046020818152604080842094845260039485019091529091208054600182015460028301549483015492909301549094929392565b604080519586526020860194909452928401919091526060830152608082015260a00161033d565b610309610449366004615047565b611307565b61030961045c366004615047565b611353565b61030961046f366004615047565b61159d565b61047c6115ac565b60405190815260200161033d565b610309610498366004615060565b611638565b6103096104ab366004614fa5565b611a6c565b6103096104be36600461508f565b611a79565b6103096104d1366004615047565b611d9d565b6105186104e4366004614fa5565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522080546001909101549091565b6040805192835260208301919091520161033d565b61047c60055481565b6103096105443660046150c4565b611dfc565b61047c60065481565b61047c60015481565b61047c600c5481565b61047c611e09565b60055461047c565b6105dc610582366004614f88565b6001600160a01b031660009081526004602081905260409091208054600182015460028301549383015460058401546006850154600786015460088701546009880154600a90980154969995989794969395929491939092565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e08401526101008301526101208201526101400161033d565b610309610634366004615047565b611e44565b610331610647366004614f88565b611efa565b61030961065a3660046150e6565b611f32565b6002546106739067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161033d565b610309611f41565b6103096106a2366004615121565b612098565b6103096106b5366004615163565b612120565b61047c600e5481565b6103a76125a1565b6106de6106d9366004614f88565b612627565b60405161033d919061519c565b6103096106f9366004614f88565b612647565b61030961070c366004615121565b61269d565b61047c61071f366004614fa5565b612a60565b61047c610732366004614f88565b612af3565b61047c600d5481565b61079b61074e366004614f88565b6001600160a01b0390811660009081526003602081905260409091208054600182015460028301549383015460048401546005850154600690950154939792969590951694909390929091565b6040805197885260208801969096526001600160a01b03909416948601949094526060850191909152608084015260a083019190915260c082015260e00161033d565b6103096107ec366004614fa5565b612b12565b6103096107ff3660046151b0565b612cd6565b610309610812366004615047565b612ce6565b610309610825366004614f88565b612cf7565b610309610838366004615047565b612d25565b61030961084b3660046151d5565b612d31565b61030961085e366004615262565b6132e2565b61047c610871366004614fa5565b613349565b6000546103a7906001600160a01b031681565b6108916133dc565b6108996134a0565b336108a381613564565b60026108ae33610d94565b60028111156108bf576108bf614fd1565b146109115760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d75737420626520756e626f6e64656400000000000000000060448201526064015b60405180910390fd5b610994600161091e613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095657600080fd5b505afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e919061528c565b90613689565b3360008181526003602052604090206004810192909255600290910180546001600160a01b0319166001600160a01b0388161790556109d590858585613695565b5050505050565b6109e46133dc565b6109ec6134a0565b6109f533613564565b336000908152600360205260408082206001600160a01b038981168452919092206002830154909116610a2988888861269d565b6006830154600090610a3c906001613822565b905060008460070160008381526020019081526020016000206001015490508460070160008381526020019081526020016000206000808201600090556001820160009055505060008460060154905060405180604001604052808c8152602001838152508560070160008381526020019081526020016000206000820151816000015560208201518160010155905050610ae56001866006015461368990919063ffffffff16565b600686015560408051848152602081018390529081018c90526001600160a01b038d169033907ff136b986590e86cf1abd7b6600186a7a1178ad3cbbdf0f3312e79f6214a2a5679060600160405180910390a36000610b42613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b7a57600080fd5b505afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb2919061528c565b600587015490915081811015610bcd57610bcd8e838361382e565b60028701546001600160a01b0316158015610be757508654155b15610c62578d6001600160a01b0316866001600160a01b03161415610c1e5760405162461bcd60e51b8152600401610908906152a5565b6001600160a01b038e16610c445760405162461bcd60e51b8152600401610908906152a5565b6002870180546001600160a01b0319166001600160a01b0388161790555b6002610c6d8f610d94565b6002811115610c7e57610c7e614fd1565b1415610c9557610c8f826001613689565b60048801555b610ca18e848c8c613695565b5050505050505050505050505050565b6001600160a01b038116600090815260046020526040812081610cd2613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0a57600080fd5b505afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d42919061528c565b905080826005015411158015610d5b5750816006015481105b949350505050565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522060010154151590565b6001600160a01b03811660009081526003602052604081208054610dbb5750600292915050565b610dc3613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e33919061528c565b81600401541115610e475750600092915050565b50600192915050565b610e5b600080612120565b565b610e656133dc565b610e6d6139ba565b83610e7781613564565b6001600160a01b03851660009081526003602052604090208054869190156111e6576001600160a01b038716600090815260036020526040812054610ebc9087613ab5565b60405163b0138c4760e01b8152600760048201526001600160a01b038a16602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015610f1957600080fd5b505af4158015610f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5191906152d0565b15610f5f57610f5f88613ace565b8154610f6b9082613822565b82556001610f7889610d94565b6002811115610f8957610f89614fd1565b1415610fdc5760028201546001600160a01b031660009081526003602081905260409091200154610fba9082613822565b60028301546001600160a01b0316600090815260036020819052604090912001555b806001600160a01b0388161561112b576000610ff88388613ab5565b9050611002613bc7565b60405163e7a49c2b60e01b81526001600160a01b038b8116600483015260248201849052919091169063e7a49c2b90604401600060405180830381600087803b15801561104e57600080fd5b505af1158015611062573d6000803e3d6000fd5b5050505061106e613bc7565b6001600160a01b031663c7ee98c26110868484613822565b6040518263ffffffff1660e01b81526004016110a491815260200190565b600060405180830381600087803b1580156110be57600080fd5b505af11580156110d2573d6000803e3d6000fd5b5050604080516001600160a01b038d8116825260208201889052918101859052908d1692507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22915060600160405180910390a2506111df565b611133613bc7565b6001600160a01b031663c7ee98c2826040518263ffffffff1660e01b815260040161116091815260200190565b600060405180830381600087803b15801561117a57600080fd5b505af115801561118e573d6000803e3d6000fd5b5050604080516000808252602082018790528183015290516001600160a01b038d1693507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c2292509081900360600190a25b5050611235565b604080516001600160a01b038881168252600060208301819052828401529151918916917ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c229181900360600190a25b506001600160a01b03811660009081526003602090815260408083206004909252909120611264918391613c18565b505050505050565b60405163e189dedb60e01b8152600760048201526001600160a01b038216602482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063e189dedb9060440160206040518083038186803b1580156112c957600080fd5b505af41580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130191906152f2565b92915050565b61130f6133dc565b6113176134a0565b3361132133613564565b6001600160a01b0381166000908152600360209081526040808320600490925290912061134f918391613c18565b5050565b61135b6133dc565b6113636134a0565b33600081815260036020908152604080832085845260078101909252909120909161138e9084610d63565b6113d65760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610908565b6113de613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561141657600080fd5b505afa15801561142a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144e919061528c565b816001015411156114c75760405162461bcd60e51b815260206004820152603b60248201527f776974686472617720726f756e64206d757374206265206265666f7265206f7260448201527f20657175616c20746f207468652063757272656e7420726f756e6400000000006064820152608401610908565b805460018083015460008681526007860160205260408120818155909201919091556114f1613bc7565b60405163e7a49c2b60e01b8152336004820152602481018490526001600160a01b03919091169063e7a49c2b90604401600060405180830381600087803b15801561153b57600080fd5b505af115801561154f573d6000803e3d6000fd5b505060408051888152602081018690529081018490523392507f1340f1a8f3d456a649e1a12071dfa15655e3d09252131d0f980c3b405cc8dd2e915060600160405180910390a25050505050565b6115a98160008061269d565b50565b604051631665d9cb60e31b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063b32ece58906024015b60206040518083038186803b1580156115fb57600080fd5b505af415801561160f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611633919061528c565b905090565b6116406133dc565b6116486134a0565b611650613610565b6001600160a01b0316636841f2536040518163ffffffff1660e01b815260040160206040518083038186803b15801561168857600080fd5b505afa15801561169c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c091906152d0565b156117335760405162461bcd60e51b815260206004820152603760248201527f63616e277420757064617465207472616e73636f64657220706172616d732c2060448201527f63757272656e7420726f756e64206973206c6f636b65640000000000000000006064820152608401610908565b61174084620f4240101590565b61178c5760405162461bcd60e51b815260206004820152601c60248201527f696e76616c6964207265776172644375742070657263656e74616765000000006044820152606401610908565b61179983620f4240101590565b6117e55760405162461bcd60e51b815260206004820152601b60248201527f696e76616c69642066656553686172652070657263656e7461676500000000006044820152606401610908565b6117ee33611efa565b61183a5760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610908565b33600090815260046020526040812090611852613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561188a57600080fd5b505afa15801561189e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c2919061528c565b90506118cd33610cb1565b15806118d95750815481145b6119635760405162461bcd60e51b815260206004820152604f60248201527f63616c6c65722063616e277420626520616374697665206f72206d757374206860448201527f61766520616c72656164792063616c6c65642072657761726420666f7220746860648201526e194818dd5c9c995b9d081c9bdd5b99608a1b608482015260a401610908565b600182018690556002820185905560405163b0138c4760e01b81526007600482015233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b1580156119c257600080fd5b505af41580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa91906152d0565b611a29573360008181526003602081905260409091200154611a299190611a22846001613689565b8787613d44565b604080518781526020810187905233917f7346854431dbb3eb8e373c604abf89e90f4865b8447e1e2834d7b3e4677bf544910160405180910390a2505050505050565b61134f8282600080610889565b611a816133dc565b611a89614067565b611a9283611efa565b611ade5760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610908565b6000611ae8613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b2057600080fd5b505afa158015611b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b58919061528c565b6001600160a01b03851660009081526004602090815260408083208054600782015486865260038301909452918420949550939092611ba185611b9c886001613822565b614162565b905083861115611beb5760018581015460028088015492850191909155830155600485015486811015611be257600081815260038701602052604090205483555b85600801549350505b81546060820151158015611bfe57508685145b15611d2d576000611c0d613bc7565b90506000611cca611cc1836001600160a01b0316632de22cdb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5057600080fd5b505afa158015611c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c88919061528c565b846001600160a01b0316639ae6309a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095657600080fd5b84600554614207565b90506000611cda82600c5461422d565b9050611ce68282613822565b91506000611cf8838860010154613ab5565b90506000611d068483613822565b6003890154909150611d229087611d1d8482613689565b614207565b606088015250505050505b6000611d3d8a8560020154613ab5565b90506000611d4b8b83613822565b90506000611d5a838886614207565b9050611d778261098e838c6009015461368990919063ffffffff16565b60098a0155611d87868685614249565b50505050600a9094019490945550505050505050565b611da56142c4565b600e8190556040516000805160206153c483398151915290611df190602080825260169082015275747265617375727942616c616e63654365696c696e6760501b604082015260600190565b60405180910390a150565b61134f8282600080611638565b6040516339ade16560e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063735bc2ca906024016115e3565b611e4c6142c4565b60405163a176adaf60e01b8152600760048201526024810182905273__$d23c89be677d40ab24c636937040b6165f$__9063a176adaf9060440160006040518083038186803b158015611e9e57600080fd5b505af4158015611eb2573d6000803e3d6000fd5b505050506000805160206153c4833981519152604051611df1906020808252601490820152736e756d4163746976655472616e73636f6465727360601b604082015260600190565b6001600160a01b0380821660008181526003602052604081206002810154919390929116148015611f2b5750805415155b9392505050565b61126486338787878787612d31565b611f496143a8565b600654600555600c54600d5414611faf57600d54600c556040516000805160206153c483398151915290611fa69060208082526015908201527474726561737572795265776172644375745261746560581b604082015260600190565b60405180910390a15b611fb76144a3565b6001600160a01b031663ef105c91600554611fd0613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200857600080fd5b505afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612040919061528c565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381600087803b15801561207e57600080fd5b505af1158015612092573d6000803e3d6000fd5b50505050565b6120a06133dc565b6120a86134a0565b336120b281613564565b60026120bd33610d94565b60028111156120ce576120ce614fd1565b14156121145760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610908565b61209233858585613695565b6121286133dc565b6121306134a0565b33600061213b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561217357600080fd5b505afa158015612187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ab919061528c565b90506121b633610cb1565b61220e5760405162461bcd60e51b815260206004820152602360248201527f63616c6c6572206d75737420626520616e20616374697665207472616e73636f6044820152623232b960e91b6064820152608401610908565b3360009081526004602052604090205481141561228c5760405162461bcd60e51b815260206004820152603660248201527f63616c6c65722068617320616c72656164792063616c6c65642072657761726460448201527508199bdc881d1a194818dd5c9c995b9d081c9bdd5b9960521b6064820152608401610908565b33600090815260046020908152604080832084845260038101909252909120600180830154600280850154928401919091558201556004820154838110156122e257600081815260038401602052604090205482555b600e54156123a85760006122f46144f4565b6001600160a01b03166370a0823161230a614545565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561234957600080fd5b505afa15801561235d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612381919061528c565b9050600e54811015801561239757506000600d54115b156123a6576123a66000614596565b505b60006123b2613bc7565b8354600554604051637dbedad560e01b81529293506000926001600160a01b03851692637dbedad5926123f092600401918252602082015260400190565b602060405180830381600087803b15801561240a57600080fd5b505af115801561241e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612442919061528c565b9050600061245282600c5461422d565b90508015612510576000612464614545565b60405163e7a49c2b60e01b81526001600160a01b038083166004830152602482018590529192509085169063e7a49c2b90604401600060405180830381600087803b1580156124b257600080fd5b505af11580156124c6573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018690523393507f40e200718fe552021167687e5491d09f5931275b6f88f14a462650f0effb523792500160405180910390a2505b600061251c8383613822565b905061252b33828a8e8e61465a565b87875560405181815233907f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc99060200160405180910390a2505050506001600160a01b0385166000908152600360209081526040808320600490925290912061259c95508694509092509050613c18565b505050565b604051632ebb2fed60e01b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__90632ebb2fed9060240160206040518083038186803b1580156125ef57600080fd5b505af4158015612603573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163391906152f2565b600061263282611efa565b1561263f57506001919050565b506000919050565b61264f61471c565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001611df1565b6126a56133dc565b6126ad6134a0565b336126b781613564565b3360016126c333610d94565b60028111156126d4576126d4614fd1565b146127195760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610908565b336000908152600360205260409020856127815760405162461bcd60e51b8152602060048201526024808201527f756e626f6e6420616d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610908565b80548611156127de5760405162461bcd60e51b8152602060048201526024808201527f616d6f756e742069732067726561746572207468616e20626f6e64656420616d6044820152631bdd5b9d60e21b6064820152608401610908565b60028101546001600160a01b031660006127f6613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561282e57600080fd5b505afa158015612842573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612866919061528c565b60025490915060009061288490839067ffffffffffffffff16613689565b60068501546040805180820182528c81526020808201858152600085815260078b01909252929020905181559051600191820155919250906128c7908290613689565b600686015584546128d8908b613822565b808655612995576002850180546001600160a01b0319169055600060048087019190915560405163b0138c4760e01b815260079181019190915233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561294f57600080fd5b505af4158015612963573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298791906152d0565b156129955761299533613ace565b6129a1848b8b8b614776565b6001600160a01b03841633146129df576001600160a01b038416600090815260036020908152604080832060049092529091206129df918691613c18565b60408051828152602081018c905290810183905233906001600160a01b038616907f2d5d98d189bee5496a08db2a5948cb7e5e786f09d17d0c3f228eb41776c24a069060600160405180910390a35050506001600160a01b038316600090815260036020908152604080832060049092529091206109d59350849250613c18565b600080612a6b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612aa357600080fd5b505afa158015612ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adb919061528c565b90506000612ae985836149b3565b5095945050505050565b6001600160a01b03166000908152600360208190526040909120015490565b612b1a6133dc565b612b226134a0565b33612b2c81613564565b336001600160a01b038416612b775760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610908565b3360009081526003602052604090206001015483811015612bda5760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e74206665657320746f2077697468647261770000006044820152606401610908565b612be48185613822565b33600090815260036020526040902060010155612bff613bc7565b6040516320283da960e01b81526001600160a01b0387811660048301526024820187905291909116906320283da990604401600060405180830381600087803b158015612c4b57600080fd5b505af1158015612c5f573d6000803e3d6000fd5b5050604080516001600160a01b0389168152602081018890523393507f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e492500160405180910390a2506001600160a01b03811660009081526003602090815260408083206004909252909120612092918391613c18565b61134f8282600080600080611f32565b612cee6142c4565b6115a981614596565b6001600160a01b038116600090815260036020908152604080832060049092529091206115a9918391613c18565b6115a981600080612098565b612d396133dc565b612d416134a0565b612d4a86613564565b6001600160a01b038616600090815260036020526040812090612d6b613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612da357600080fd5b505afa158015612db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ddb919061528c565b600283015483549192508a916001600160a01b03918216918b163314801590612e1d5750612e07614a78565b6001600160a01b0316336001600160a01b031614155b15612f25576001600160a01b038b16612e485760405162461bcd60e51b8152600401610908906152a5565b6002612e538c610d94565b6002811115612e6457612e64614fd1565b1415612ec4578a6001600160a01b03168a6001600160a01b03161415612ebf5760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f44454c454741544560801b6044820152606401610908565b612f25565b896001600160a01b0316826001600160a01b031614612f255760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f44454c45474154455f4348414e47450000000000000000006044820152606401610908565b6002612f308c610d94565b6002811115612f4157612f41614fd1565b1415612f5c57612f52846001613689565b6004860155613055565b600081118015612f7e5750896001600160a01b0316826001600160a01b031614155b1561305557612f8c8b611efa565b15612fff5760405162461bcd60e51b815260206004820152603d60248201527f72656769737465726564207472616e73636f646572732063616e27742064656c60448201527f656761746520746f7761726473206f74686572206164647265737365730000006064820152608401610908565b61300a846001613689565b60048601556130198382613689565b925061302782828b8b614776565b6001600160a01b03821660009081526003602090815260408083206004909252909120613055918491613c18565b6001600160a01b038a166000908152600460209081526040808320878452600380820190935292209081015461309d57613093828360000154614ac9565b6060015160038201555b60048101546130be576130b48283600a0154614ac9565b6080015160048201555b5050600083116131215760405162461bcd60e51b815260206004820152602860248201527f64656c65676174696f6e20616d6f756e74206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610908565b6002850180546001600160a01b0319166001600160a01b038c16179055613148818d613689565b85556131568a848989614b2c565b8a6001600160a01b03168a6001600160a01b03161461319d576001600160a01b038a166000908152600360209081526040808320600490925290912061319d918c91613c18565b8b1561324b576131ab6144f4565b6001600160a01b03166323b872dd336131c2613bc7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018f9052606401602060405180830381600087803b15801561321157600080fd5b505af1158015613225573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061324991906152d0565b505b8a6001600160a01b0316826001600160a01b03168b6001600160a01b03167fe5917769f276ddca9f2ee7c6b0b33e1d1e1b61008010ce622c632dd20d168a238f89600001546040516132a7929190918252602082015260400190565b60405180910390a46001600160a01b038b1660009081526004602052604090206132d4908c908790613c18565b505050505050505050505050565b6132ea6142c4565b6002805467ffffffffffffffff831667ffffffffffffffff199091161790556040516000805160206153c483398151915290611df1906020808252600f908201526e1d5b989bdb991a5b99d4195c9a5bd9608a1b604082015260600190565b600080613354613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561338c57600080fd5b505afa1580156133a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c4919061528c565b905060006133d285836149b3565b9695505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561342857600080fd5b505afa15801561343c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061346091906152d0565b15610e5b5760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b6044820152606401610908565b6134a8613610565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156134e057600080fd5b505afa1580156134f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351891906152d0565b610e5b5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a65646044820152606401610908565b600061356e613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156135a657600080fd5b505afa1580156135ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135de919061528c565b6001600160a01b0383166000908152600360205260409020600501549091508181101561259c5761259c83838361382e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b15801561367557600080fd5b505afa158015612603573d6000803e3d6000fd5b6000611f2b8284615325565b6001600160a01b0384166000908152600360209081526040808320868452600781019092529091208591906136ca8387610d63565b6137125760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610908565b805482546137209082613689565b8355600087815260078401602052604081208181556001015560028301546001600160a01b031661375381838989614b2c565b886001600160a01b0316816001600160a01b03161461379a576001600160a01b0381166000908152600360209081526040808320600490925290912061379a918391613c18565b886001600160a01b0316816001600160a01b03167f9f5b64cc71e1e26ff178caaa7877a04d8ce66fde989251870e80e6fbee690c178a856040516137e8929190918252602082015260400190565b60405180910390a3505050506001600160a01b038116600090815260036020908152604080832060049092529091206109d5918391613c18565b6000611f2b828461533d565b6001600160a01b038316600090815260036020526040812090613852836001613689565b82546001840154600285015492935090916001600160a01b03161561392c5761387b87876149b3565b60028601546001600160a01b031660009081526004602090815260408083208b84526003808201909352922090810154939550919350916138d6578154888110156138d4576138ca8382614ac9565b6060015160038301555b505b600481015461390257600a82015488811015613900576138f68382614ac9565b6080015160048301555b505b60028601546001600160a01b038a8116911614156139295760006009830181905560088301555b50505b600284015484546001600160a01b03808a169216907fd7eab0765b772ea6ea859d5633baf737502198012e930f257f90013d9b2110949061396e908690613822565b600188015461397e908690613822565b6040805192835260208301919091528101879052606081018a905260800160405180910390a36005840195909555825550600101919091555050565b600054604051631c2d8fb360e31b81527f121833d5ee4fda5e1a4034c2b7be8155c158142541dea26f39122c796649233f60048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b158015613a1d57600080fd5b505afa158015613a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a5591906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d7573742062652056657269666965720000000000000000006044820152606401610908565b6000611f2b620f4240613ac88585614d5c565b90614d68565b604051635d35e00760e01b8152600760048201526001600160a01b038216602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b158015613b2857600080fd5b505af4158015613b3c573d6000803e3d6000fd5b50505050613b55613b4c82612af3565b60065490613822565b6006556000613b67600161091e613610565b6001600160a01b0383166000818152600460205260409081902060060183905551919250907ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c90613bbb9084815260200190565b60405180910390a25050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d989060240161365d565b6000613c22613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015613c5a57600080fd5b505afa158015613c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c92919061528c565b613c9d906001615325565b9050613ca76144a3565b8354600285015460038601546005870154865460405163e35c3e4360e01b81526001600160a01b038b811660048301526024820189905260448201969096529385166064850152608484019290925260a483015260c482015291169063e35c3e439060e401600060405180830381600087803b158015613d2657600080fd5b505af1158015613d3a573d6000803e3d6000fd5b5050505050505050565b6006546040516304aa129960e41b81526007600482015273__$d23c89be677d40ab24c636937040b6165f$__90634aa129909060240160206040518083038186803b158015613d9257600080fd5b505af4158015613da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dca91906152d0565b15613f5557604051633972059360e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__906372e40b269060240160206040518083038186803b158015613e1d57600080fd5b505af4158015613e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e5591906152f2565b90506000613e6282612af3565b9050808711613e73575050506109d5565b604051635d35e00760e01b8152600760048201526001600160a01b038316602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b158015613ecd57600080fd5b505af4158015613ee1573d6000803e3d6000fd5b5050506001600160a01b038316600090815260046020526040902060060187905550613f0d8382613822565b9250816001600160a01b03167ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c87604051613f4a91815260200190565b60405180910390a250505b6040516327dd54d360e11b815273__$d23c89be677d40ab24c636937040b6165f$__90634fbaa9a690613f95906007908a908a9089908990600401615354565b60006040518083038186803b158015613fad57600080fd5b505af4158015613fc1573d6000803e3d6000fd5b50505050613fd8858261368990919063ffffffff16565b6001600160a01b03871660009081526004602081815260408084209283018990556005830189905560001960068401558884526003830190915290912087905590915060068290556040518581526001600160a01b038816907f65d72d782835d64c3287844a829608d5abdc7e864cc9affe96d910ab3db665e99060200160405180910390a250505050505050565b600054604051631c2d8fb360e31b81527fbd1aa3e8d2464256d7fd3dcf645c16418d5d8c51d971f1ad7d57e7b1b5eee23960048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b1580156140ca57600080fd5b505afa1580156140de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061410291906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206d757374206265205469636b657442726f6b657200000000006044820152606401610908565b6141946040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b61419e8383614ac9565b83546060820151919250901580156141b557508281105b156141cf576141c48482614ac9565b606090810151908301525b600a84015460808301511580156141e557508381105b156141ff576141f48582614ac9565b608090810151908401525b505092915050565b6000610d5b6b033b2e3c9fd0803ce8000000613ac86142268686614d74565b8790614d5c565b6000611f2b6b033b2e3c9fd0803ce8000000613ac88585614d5c565b6080820151606083015160009061426a57614265600180614d74565b614270565b83606001515b90508460040154600014156142a75761429861429182858860000154614207565b8390613689565b85600401819055505050505050565b6142986142b982858860000154614207565b600487015490613689565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561431057600080fd5b505afa158015614324573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061434891906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e6572006044820152606401610908565b600054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b15801561440b57600080fd5b505afa15801561441f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061444391906152f2565b6001600160a01b0316336001600160a01b031614610e5b5760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206d75737420626520526f756e64734d616e61676572000000006044820152606401610908565b60008054604051631c2d8fb360e31b81527f2a1b465fbcae519904f0fb11f93e73dfbeb47ec54530ec444279610af8cf06b260048201526001600160a01b039091169063e16c7d989060240161365d565b60008054604051631c2d8fb360e31b81527f3443e257065fe41dd0e4d1f5a1b73a22a62e300962b57f30cddf41d0f8273ba760048201526001600160a01b039091169063e16c7d989060240161365d565b60008054604051631c2d8fb360e31b81527f6efca2866b731ee4984990bacad4cde10f1ef764fb54a5206bdfd291695b1a9b60048201526001600160a01b039091169063e16c7d989060240161365d565b6145ac816b033b2e3c9fd0803ce8000000101590565b6146075760405162461bcd60e51b815260206004820152602660248201527f5f6375745261746520697320696e76616c696420707265636973652070657263604482015265656e7461676560d01b6064820152608401610908565b600d8190556040516000805160206153c483398151915290611df1906020808252601e908201527f6e657874526f756e645472656173757279526577617264437574526174650000604082015260600190565b6001600160a01b0385166000908152600460209081526040808320868452600381019092528220815491929091614692908490614ac9565b90508260080154836007018190555060006146b1888460010154613ab5565b905060006146bf8983613822565b905060006146d68287600701548760000154614207565b90506146f38361098e83896008015461368990919063ffffffff16565b6008870155614703858584614d90565b61470f8b8b8a8a614b2c565b5050505050505050505050565b6000546001600160a01b03163314610e5b5760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572000000000000006044820152606401610908565b6001600160a01b03841660009081526004602052604081209061479886612af3565b905060006147a68287613822565b60405163b0138c4760e01b8152600760048201526001600160a01b038916602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561480357600080fd5b505af4158015614817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061483b91906152d0565b1561498b57600061484a613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561488257600080fd5b505afa158015614896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148ba919061528c565b905060006148c9826001613689565b604051631c11bf7f60e11b815290915073__$d23c89be677d40ab24c636937040b6165f$__906338237efe9061490c906007908d9088908d908d90600401615354565b60006040518083038186803b15801561492457600080fd5b505af4158015614938573d6000803e3d6000fd5b505060065461494a9250905089613822565b600655600485015482111561496d57600082815260038601602052604090208490555b60048501819055600081815260038601602052604090208390555b50505b6001600160a01b03909616600090815260036020819052604090912001959095555050505050565b6001600160a01b038083166000908152600360209081526040808320600281015490941683526004909152812060018084015484546005860154909591949193926149fe9190613689565b60028401549091506001600160a01b039081169088168114878311614a3a57614a3484614a2c856001613822565b8a8a8a614dde565b90975095505b8015614a6c576008840154614a50908890613689565b9650614a6984600901548761368990919063ffffffff16565b95505b50505050509250929050565b60008054604051631c2d8fb360e31b81527f74b6d21e0d4650f622c903126d418c1a52bcc99ea7acb0db0809fc0eeae6c7c360048201526001600160a01b039091169063e16c7d989060240161365d565b614afb6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000828152600393840160208181526040832095860154606085015293909152909152600490910154608082015290565b6001600160a01b038416600090815260046020526040812090614b4e86612af3565b90506000614b5c8287613689565b9050614b6787611efa565b1561498b576000614b76613610565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015614bae57600080fd5b505afa158015614bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614be6919061528c565b90506000614bf5826001613689565b60405163b0138c4760e01b8152600760048201526001600160a01b038b16602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015614c5257600080fd5b505af4158015614c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c8a91906152d0565b15614d4f57604051631c11bf7f60e11b815273__$d23c89be677d40ab24c636937040b6165f$__906338237efe90614ccf906007908d9088908d908d90600401615354565b60006040518083038186803b158015614ce757600080fd5b505af4158015614cfb573d6000803e3d6000fd5b5050600654614d0d9250905089613689565b6006556004850154821115614d3057600082815260038601602052604090208490555b6000818152600386016020526040902083905560048501819055614988565b6149888984838a8a613d44565b6000611f2b8284615382565b6000611f2b82846153a1565b6000611f2b82613ac8856b033b2e3c9fd0803ce8000000614d5c565b6000826060015160001415614daf57614daa600180614d74565b614db5565b82606001515b9050614dd0614dc982848760000154614207565b8290613689565b846003018190555050505050565b6000806000614ded8888614ac9565b90506000614dfb8988614162565b9050614e0982828888614e19565b9350935050509550959350505050565b600080856060015160001415614e3a57614e34600180614d74565b60608701525b6060850151614e5457614e4e600180614d74565b60608601525b614e87614e8085614e768960800151896080015161382290919063ffffffff16565b8960600151614207565b8490613689565b9050614e9c8486606001518860600151614207565b915094509492505050565b6001600160a01b03811681146115a957600080fd5b60008060008060808587031215614ed257600080fd5b8435614edd81614ea7565b9350602085013592506040850135614ef481614ea7565b91506060850135614f0481614ea7565b939692955090935050565b60008060008060008060c08789031215614f2857600080fd5b8635614f3381614ea7565b9550602087013594506040870135614f4a81614ea7565b93506060870135614f5a81614ea7565b92506080870135614f6a81614ea7565b915060a0870135614f7a81614ea7565b809150509295509295509295565b600060208284031215614f9a57600080fd5b8135611f2b81614ea7565b60008060408385031215614fb857600080fd5b8235614fc381614ea7565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614ffb57614ffb614fd1565b91905290565b6000806000806080858703121561501757600080fd5b843561502281614ea7565b9350602085013561503281614ea7565b93969395505050506040820135916060013590565b60006020828403121561505957600080fd5b5035919050565b6000806000806080858703121561507657600080fd5b84359350602085013592506040850135614ef481614ea7565b6000806000606084860312156150a457600080fd5b83356150af81614ea7565b95602085013595506040909401359392505050565b600080604083850312156150d757600080fd5b50508035926020909101359150565b60008060008060008060c087890312156150ff57600080fd5b86359550602087013561511181614ea7565b94506040870135614f4a81614ea7565b60008060006060848603121561513657600080fd5b83359250602084013561514881614ea7565b9150604084013561515881614ea7565b809150509250925092565b6000806040838503121561517657600080fd5b823561518181614ea7565b9150602083013561519181614ea7565b809150509250929050565b6020810160028310614ffb57614ffb614fd1565b600080604083850312156151c357600080fd5b82359150602083013561519181614ea7565b600080600080600080600060e0888a0312156151f057600080fd5b87359650602088013561520281614ea7565b9550604088013561521281614ea7565b9450606088013561522281614ea7565b9350608088013561523281614ea7565b925060a088013561524281614ea7565b915060c088013561525281614ea7565b8091505092959891949750929550565b60006020828403121561527457600080fd5b813567ffffffffffffffff81168114611f2b57600080fd5b60006020828403121561529e57600080fd5b5051919050565b60208082526011908201527024a72b20a624a22fa222a622a3a0aa27a960791b604082015260600190565b6000602082840312156152e257600080fd5b81518015158114611f2b57600080fd5b60006020828403121561530457600080fd5b8151611f2b81614ea7565b634e487b7160e01b600052601160045260246000fd5b600082198211156153385761533861530f565b500190565b60008282101561534f5761534f61530f565b500390565b9485526001600160a01b03938416602086015260408501929092528216606084015216608082015260a00190565b600081600019048311821515161561539c5761539c61530f565b500290565b6000826153be57634e487b7160e01b600052601260045260246000fd5b50049056fe9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674a2646970667358221220afdf5b3e1de9b7deb0ecca46d0224b820dd44a9e754f9b651721ecebf290d39664736f6c63430008090033", + "linkReferences": { + "contracts/libraries/SortedDoublyLL.sol": { + "SortedDoublyLL": [ + { + "length": 20, + "start": 3968 + }, + { + "length": 20, + "start": 4912 + }, + { + "length": 20, + "start": 5729 + }, + { + "length": 20, + "start": 6697 + }, + { + "length": 20, + "start": 7870 + }, + { + "length": 20, + "start": 7941 + }, + { + "length": 20, + "start": 9814 + }, + { + "length": 20, + "start": 10678 + }, + { + "length": 20, + "start": 15247 + }, + { + "length": 20, + "start": 15865 + }, + { + "length": 20, + "start": 16004 + }, + { + "length": 20, + "start": 16180 + }, + { + "length": 20, + "start": 16384 + }, + { + "length": 20, + "start": 18538 + }, + { + "length": 20, + "start": 18807 + }, + { + "length": 20, + "start": 19641 + }, + { + "length": 20, + "start": 19770 + } + ] + } }, - "args": [ - "0xD8E8328501E9645d16Cf49539efC04f734606ee4" - ], - "numDeployments": 3, - "solcInputHash": "3ff5221b290e455902c32c32981b5340", - "metadata": "{\"compiler\":{\"version\":\"0.8.9+commit.e5eed63a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newDelegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldDelegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"additionalAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bondedAmount\",\"type\":\"uint256\"}],\"name\":\"Bond\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endRound\",\"type\":\"uint256\"}],\"name\":\"EarningsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"param\",\"type\":\"string\"}],\"name\":\"ParameterUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unbondingLockId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Rebond\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"transcoder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Reward\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"transcoder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"activationRound\",\"type\":\"uint256\"}],\"name\":\"TranscoderActivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"transcoder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deactivationRound\",\"type\":\"uint256\"}],\"name\":\"TranscoderDeactivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"transcoder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"finder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"penalty\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finderReward\",\"type\":\"uint256\"}],\"name\":\"TranscoderSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"transcoder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardCut\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeShare\",\"type\":\"uint256\"}],\"name\":\"TranscoderUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldDelegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newDelegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldUnbondingLockId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newUnbondingLockId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TransferBond\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unbondingLockId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawRound\",\"type\":\"uint256\"}],\"name\":\"Unbond\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawFees\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unbondingLockId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawRound\",\"type\":\"uint256\"}],\"name\":\"WithdrawStake\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"bond\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosNext\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currDelegateNewPosNext\",\"type\":\"address\"}],\"name\":\"bondForWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosNext\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currDelegateNewPosNext\",\"type\":\"address\"}],\"name\":\"bondWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_endRound\",\"type\":\"uint256\"}],\"name\":\"claimEarnings\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contract IController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRoundTotalActiveStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"}],\"name\":\"delegatorStatus\",\"outputs\":[{\"internalType\":\"enum BondingManager.DelegatorStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"}],\"name\":\"getDelegator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bondedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"delegateAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"delegatedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastClaimRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nextUnbondingLockId\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"}],\"name\":\"getDelegatorUnbondingLock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawRound\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFirstTranscoderInPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"getNextTranscoderInPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalBonded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"getTranscoder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastRewardRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardCut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastActiveStakeUpdateRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"activationRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deactivationRound\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"activeCumulativeRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cumulativeRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cumulativeFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastFeeRound\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_round\",\"type\":\"uint256\"}],\"name\":\"getTranscoderEarningsPoolForRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalStake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"transcoderRewardCut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"transcoderFeeShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cumulativeRewardFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cumulativeFeeFactor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTranscoderPoolMaxSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTranscoderPoolSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"isActiveTranscoder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"isRegisteredTranscoder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"}],\"name\":\"isValidUnbondingLock\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextRoundTotalActiveStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_endRound\",\"type\":\"uint256\"}],\"name\":\"pendingFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_endRound\",\"type\":\"uint256\"}],\"name\":\"pendingStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"}],\"name\":\"rebond\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"}],\"name\":\"rebondFromUnbonded\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_newPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newPosNext\",\"type\":\"address\"}],\"name\":\"rebondFromUnbondedWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_newPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newPosNext\",\"type\":\"address\"}],\"name\":\"rebondWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newPosNext\",\"type\":\"address\"}],\"name\":\"rewardWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"setCurrentRoundTotalActiveStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_numActiveTranscoders\",\"type\":\"uint256\"}],\"name\":\"setNumActiveTranscoders\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_unbondingPeriod\",\"type\":\"uint64\"}],\"name\":\"setUnbondingPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_finder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_slashAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_finderFee\",\"type\":\"uint256\"}],\"name\":\"slashTranscoder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"targetContractId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rewardCut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeShare\",\"type\":\"uint256\"}],\"name\":\"transcoder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"transcoderStatus\",\"outputs\":[{\"internalType\":\"enum BondingManager.TranscoderStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"}],\"name\":\"transcoderTotalStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rewardCut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeShare\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_newPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newPosNext\",\"type\":\"address\"}],\"name\":\"transcoderWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_oldDelegateNewPosNext\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newDelegateNewPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newDelegateNewPosNext\",\"type\":\"address\"}],\"name\":\"transferBond\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"unbond\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_newPosPrev\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newPosNext\",\"type\":\"address\"}],\"name\":\"unbondWithHint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unbondingPeriod\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_transcoder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_round\",\"type\":\"uint256\"}],\"name\":\"updateTranscoderWithFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_unbondingLockId\",\"type\":\"uint256\"}],\"name\":\"withdrawStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"bond(uint256,address)\":{\"params\":{\"_amount\":\"The amount of tokens to stake\",\"_to\":\"The address of the transcoder to stake towards\"}},\"bondForWithHint(uint256,address,address,address,address,address,address)\":{\"details\":\"If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_amount\":\"The amount of tokens to stake.\",\"_currDelegateNewPosNext\":\"The address of the next transcoder in the pool for the current delegate\",\"_currDelegateNewPosPrev\":\"The address of the previous transcoder in the pool for the current delegate\",\"_oldDelegateNewPosNext\":\"The address of the next transcoder in the pool for the old delegate\",\"_oldDelegateNewPosPrev\":\"The address of the previous transcoder in the pool for the old delegate\",\"_owner\":\"The address of the owner of the bond\",\"_to\":\"The address of the transcoder to stake towards\"}},\"bondWithHint(uint256,address,address,address,address,address)\":{\"details\":\"If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_amount\":\"The amount of tokens to stake.\",\"_currDelegateNewPosNext\":\"The address of the next transcoder in the pool for the current delegate\",\"_currDelegateNewPosPrev\":\"The address of the previous transcoder in the pool for the current delegate\",\"_oldDelegateNewPosNext\":\"The address of the next transcoder in the pool for the old delegate\",\"_oldDelegateNewPosPrev\":\"The address of the previous transcoder in the pool for the old delegate\",\"_to\":\"The address of the transcoder to stake towards\"}},\"claimEarnings(uint256)\":{\"params\":{\"_endRound\":\"The last round for which to claim token pools shares for a delegator\"}},\"constructor\":{\"details\":\"This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setUnbondingPeriod() - setNumActiveTranscoders() - setMaxEarningsClaimsRounds()\",\"params\":{\"_controller\":\"Address of Controller that this contract will be registered with\"}},\"delegatorStatus(address)\":{\"params\":{\"_delegator\":\"Address of delegator\"},\"returns\":{\"_0\":\"bonded, unbonded or pending delegator status\"}},\"getDelegator(address)\":{\"params\":{\"_delegator\":\"Address of delegator\"},\"returns\":{\"bondedAmount\":\"total amount bonded by '_delegator'\",\"delegateAddress\":\"address '_delegator' has bonded to\",\"delegatedAmount\":\"total amount delegated to '_delegator'\",\"fees\":\"amount of fees collected by '_delegator'\",\"lastClaimRound\":\"round for which '_delegator' has last claimed earnings\",\"nextUnbondingLockId\":\"ID for the next unbonding lock created for '_delegator'\",\"startRound\":\"round in which bond for '_delegator' became effective\"}},\"getDelegatorUnbondingLock(address,uint256)\":{\"params\":{\"_delegator\":\"Address of delegator\",\"_unbondingLockId\":\"ID of unbonding lock\"},\"returns\":{\"amount\":\"of stake locked up by unbonding lock\",\"withdrawRound\":\"round in which 'amount' becomes available for withdrawal\"}},\"getFirstTranscoderInPool()\":{\"returns\":{\"_0\":\"address for transcoder with highest stake in transcoder pool\"}},\"getNextTranscoderInPool(address)\":{\"params\":{\"_transcoder\":\"Address of a transcoder in the pool\"},\"returns\":{\"_0\":\"address for the transcoder after '_transcoder' in transcoder pool\"}},\"getTotalBonded()\":{\"returns\":{\"_0\":\"total active stake for the current round\"}},\"getTranscoder(address)\":{\"params\":{\"_transcoder\":\"Address of transcoder\"},\"returns\":{\"activationRound\":\"Round in which transcoder became active\",\"activeCumulativeRewards\":\"Transcoder's cumulative rewards that are currently active\",\"cumulativeFees\":\"Transcoder's cumulative fees (earned via its active staked rewards and its fee share)\",\"cumulativeRewards\":\"Transcoder's cumulative rewards (earned via its active staked rewards and its reward cut)\",\"deactivationRound\":\"Round in which transcoder will no longer be active\",\"feeShare\":\"Transcoder's fee share\",\"lastActiveStakeUpdateRound\":\"Round in which transcoder's stake was last updated while active\",\"lastFeeRound\":\"Latest round that the transcoder received fees\",\"lastRewardRound\":\"Trancoder's last reward round\",\"rewardCut\":\"Transcoder's reward cut\"}},\"getTranscoderEarningsPoolForRound(address,uint256)\":{\"params\":{\"_round\":\"Round number\",\"_transcoder\":\"Address of transcoder\"},\"returns\":{\"cumulativeFeeFactor\":\"The cumulative fee factor for delegator fees calculation (only used after LIP-36)\",\"cumulativeRewardFactor\":\"The cumulative reward factor for delegator rewards calculation (only used after LIP-36)\",\"totalStake\":\"Transcoder's total stake in '_round'\",\"transcoderFeeShare\":\"Transcoder's fee share for '_round'\",\"transcoderRewardCut\":\"Transcoder's reward cut for '_round'\"}},\"getTranscoderPoolMaxSize()\":{\"returns\":{\"_0\":\"transcoder pool max size\"}},\"getTranscoderPoolSize()\":{\"returns\":{\"_0\":\"transcoder pool current size\"}},\"isActiveTranscoder(address)\":{\"params\":{\"_transcoder\":\"Transcoder address\"},\"returns\":{\"_0\":\"true if transcoder is active\"}},\"isRegisteredTranscoder(address)\":{\"params\":{\"_transcoder\":\"Transcoder address\"},\"returns\":{\"_0\":\"true if transcoder is self-bonded\"}},\"isValidUnbondingLock(address,uint256)\":{\"params\":{\"_delegator\":\"Address of delegator\",\"_unbondingLockId\":\"ID of unbonding lock\"},\"returns\":{\"_0\":\"true if unbondingLock for ID has a non-zero withdraw round\"}},\"pendingFees(address,uint256)\":{\"params\":{\"_delegator\":\"Address of delegator\",\"_endRound\":\"The last round to compute pending fees from\"},\"returns\":{\"_0\":\"Pending fees for '_delegator' since last claiming fees\"}},\"pendingStake(address,uint256)\":{\"params\":{\"_delegator\":\"Address of delegator\",\"_endRound\":\"The last round to compute pending stake from\"},\"returns\":{\"_0\":\"Pending bonded stake for '_delegator' since last claiming rewards\"}},\"rebond(uint256)\":{\"params\":{\"_unbondingLockId\":\"ID of unbonding lock to rebond with\"}},\"rebondFromUnbonded(address,uint256)\":{\"params\":{\"_to\":\"Address of delegate\",\"_unbondingLockId\":\"ID of unbonding lock to rebond with\"}},\"rebondFromUnbondedWithHint(address,uint256,address,address)\":{\"details\":\"If the delegate joins the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_newPosNext\":\"Address of next transcoder in pool if the delegate joins the pool\",\"_newPosPrev\":\"Address of previous transcoder in pool if the delegate joins the pool\",\"_to\":\"Address of delegate\",\"_unbondingLockId\":\"ID of unbonding lock to rebond with\"}},\"rebondWithHint(uint256,address,address)\":{\"details\":\"If the delegate is in the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints\",\"params\":{\"_newPosNext\":\"Address of next transcoder in pool if the delegate is in the pool\",\"_newPosPrev\":\"Address of previous transcoder in pool if the delegate is in the pool\",\"_unbondingLockId\":\"ID of unbonding lock to rebond with\"}},\"rewardWithHint(address,address)\":{\"details\":\"If the caller is in the transcoder pool, the caller can provide an optional hint for its insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_newPosNext\":\"Address of next transcoder in pool if the caller is in the pool\",\"_newPosPrev\":\"Address of previous transcoder in pool if the caller is in the pool\"}},\"setController(address)\":{\"params\":{\"_controller\":\"Controller contract address\"}},\"setNumActiveTranscoders(uint256)\":{\"params\":{\"_numActiveTranscoders\":\"Number of active transcoders\"}},\"setUnbondingPeriod(uint64)\":{\"params\":{\"_unbondingPeriod\":\"Rounds between unbonding and possible withdrawal\"}},\"slashTranscoder(address,address,uint256,uint256)\":{\"params\":{\"_finder\":\"Finder that proved a transcoder violated a slashing condition. Null address if there is no finder\",\"_finderFee\":\"Percentage of penalty awarded to finder. Zero if there is no finder\",\"_slashAmount\":\"Percentage of transcoder bond to be slashed\",\"_transcoder\":\"Transcoder address\"}},\"transcoder(uint256,uint256)\":{\"details\":\"Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR\",\"params\":{\"_feeShare\":\"% of fees paid to delegators by a transcoder\",\"_rewardCut\":\"% of reward paid to transcoder by a delegator\"}},\"transcoderStatus(address)\":{\"params\":{\"_transcoder\":\"Address of transcoder\"},\"returns\":{\"_0\":\"registered or not registered transcoder status\"}},\"transcoderTotalStake(address)\":{\"params\":{\"_transcoder\":\"Address of transcoder\"},\"returns\":{\"_0\":\"total bonded stake for a delegator\"}},\"transcoderWithHint(uint256,uint256,address,address)\":{\"details\":\"Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR. If the caller is going to be added to the pool, the caller can provide an optional hint for the insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position - in the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_feeShare\":\"% of fees paid to delegators by a transcoder\",\"_newPosNext\":\"Address of next transcoder in pool if the caller joins the pool\",\"_newPosPrev\":\"Address of previous transcoder in pool if the caller joins the pool\",\"_rewardCut\":\"% of reward paid to transcoder by a delegator\"}},\"transferBond(address,uint256,address,address,address,address)\":{\"details\":\"If the original delegate is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the target delegate is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_newDelegateNewPosPrev` and `_newDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\",\"params\":{\"_amount\":\"Portion of the bond to transfer to receiver\",\"_delegator\":\"Receiver of the bond\",\"_newDelegateNewPosNext\":\"Address of next transcoder in pool if the delegate is in the pool\",\"_newDelegateNewPosPrev\":\"Address of previous transcoder in pool if the delegate is in the pool\",\"_oldDelegateNewPosNext\":\"Address of next transcoder in pool if the delegate remains in the pool\",\"_oldDelegateNewPosPrev\":\"Address of previous transcoder in pool if the delegate remains in the pool\"}},\"unbond(uint256)\":{\"params\":{\"_amount\":\"Amount of tokens to unbond\"}},\"unbondWithHint(uint256,address,address)\":{\"details\":\"If the caller remains in the transcoder pool, the caller can provide an optional hint for its insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints\",\"params\":{\"_amount\":\"Amount of tokens to unbond\",\"_newPosNext\":\"Address of next transcoder in pool if the caller remains in the pool\",\"_newPosPrev\":\"Address of previous transcoder in pool if the caller remains in the pool\"}},\"updateTranscoderWithFees(address,uint256,uint256)\":{\"params\":{\"_fees\":\"Fees to be added to the fee pool\",\"_transcoder\":\"Transcoder address\"}},\"withdrawStake(uint256)\":{\"params\":{\"_unbondingLockId\":\"ID of unbonding lock to withdraw with\"}}},\"title\":\"BondingManager\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"bond(uint256,address)\":{\"notice\":\"Delegate stake towards a specific address\"},\"bondForWithHint(uint256,address,address,address,address,address,address)\":{\"notice\":\"Delegates stake \\\"on behalf of\\\" another address towards a specific address and updates the transcoder pool using optional list hints if needed\"},\"bondWithHint(uint256,address,address,address,address,address)\":{\"notice\":\"Delegates stake towards a specific address and updates the transcoder pool using optional list hints if needed\"},\"claimEarnings(uint256)\":{\"notice\":\"Claim token pools shares for a delegator from its lastClaimRound through the end round\"},\"constructor\":{\"notice\":\"BondingManager constructor. Only invokes constructor of base Manager contract with provided Controller address\"},\"delegatorStatus(address)\":{\"notice\":\"Computes delegator status\"},\"getDelegator(address)\":{\"notice\":\"Return delegator info\"},\"getDelegatorUnbondingLock(address,uint256)\":{\"notice\":\"Return delegator's unbonding lock info\"},\"getFirstTranscoderInPool()\":{\"notice\":\"Returns transcoder with most stake in pool\"},\"getNextTranscoderInPool(address)\":{\"notice\":\"Returns next transcoder in pool for a given transcoder\"},\"getTotalBonded()\":{\"notice\":\"Return total bonded tokens\"},\"getTranscoder(address)\":{\"notice\":\"Return transcoder information\"},\"getTranscoderEarningsPoolForRound(address,uint256)\":{\"notice\":\"Return transcoder's earnings pool for a given round\"},\"getTranscoderPoolMaxSize()\":{\"notice\":\"Returns max size of transcoder pool\"},\"getTranscoderPoolSize()\":{\"notice\":\"Returns size of transcoder pool\"},\"isActiveTranscoder(address)\":{\"notice\":\"Return whether a transcoder is active for the current round\"},\"isRegisteredTranscoder(address)\":{\"notice\":\"Return whether a transcoder is registered\"},\"isValidUnbondingLock(address,uint256)\":{\"notice\":\"Return whether an unbonding lock for a delegator is valid\"},\"pendingFees(address,uint256)\":{\"notice\":\"Returns pending fees for a delegator from its lastClaimRound through an end round\"},\"pendingStake(address,uint256)\":{\"notice\":\"Returns pending bonded stake for a delegator from its lastClaimRound through an end round\"},\"rebond(uint256)\":{\"notice\":\"Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status\"},\"rebondFromUnbonded(address,uint256)\":{\"notice\":\"Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status\"},\"rebondFromUnbondedWithHint(address,uint256,address,address)\":{\"notice\":\"Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status and updates the transcoder pool using an optional list hint if needed\"},\"rebondWithHint(uint256,address,address)\":{\"notice\":\"Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status and updates the transcoder pool using an optional list hint if needed\"},\"reward()\":{\"notice\":\"Mint token rewards for an active transcoder and its delegators\"},\"rewardWithHint(address,address)\":{\"notice\":\"Mint token rewards for an active transcoder and its delegators and update the transcoder pool using an optional list hint if needed\"},\"setController(address)\":{\"notice\":\"Set controller. Only callable by current controller\"},\"setCurrentRoundTotalActiveStake()\":{\"notice\":\"Called during round initialization to set the total active stake for the round. Only callable by the RoundsManager\"},\"setNumActiveTranscoders(uint256)\":{\"notice\":\"Set maximum number of active transcoders. Only callable by Controller owner\"},\"setUnbondingPeriod(uint64)\":{\"notice\":\"Set unbonding period. Only callable by Controller owner\"},\"slashTranscoder(address,address,uint256,uint256)\":{\"notice\":\"Slash a transcoder. Only callable by the Verifier\"},\"transcoder(uint256,uint256)\":{\"notice\":\"Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it\"},\"transcoderStatus(address)\":{\"notice\":\"Computes transcoder status\"},\"transcoderTotalStake(address)\":{\"notice\":\"Returns total bonded stake for a transcoder\"},\"transcoderWithHint(uint256,uint256,address,address)\":{\"notice\":\"Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it using an optional list hint\"},\"transferBond(address,uint256,address,address,address,address)\":{\"notice\":\"Transfers ownership of a bond to a new delegator using optional hints if needed If the receiver is already bonded to a different delegate than the bond owner then the stake goes to the receiver's delegate otherwise the receiver's delegate is set as the owner's delegate\"},\"unbond(uint256)\":{\"notice\":\"Unbond an amount of the delegator's bonded stake\"},\"unbondWithHint(uint256,address,address)\":{\"notice\":\"Unbond an amount of the delegator's bonded stake and updates the transcoder pool using an optional list hint if needed\"},\"updateTranscoderWithFees(address,uint256,uint256)\":{\"notice\":\"Update transcoder's fee pool. Only callable by the TicketBroker\"},\"withdrawFees(address,uint256)\":{\"notice\":\"Withdraws fees to the caller\"},\"withdrawStake(uint256)\":{\"notice\":\"Withdraws tokens for an unbonding lock that has existed through an unbonding period\"}},\"notice\":\"Manages bonding, transcoder and rewards/fee accounting related operations of the Livepeer protocol\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bonding/BondingManager.sol\":\"BondingManager\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address sender,\\n address recipient,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x61437cb513a887a1bbad006e7b1c8b414478427d33de47c5600af3c748f108da\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n// CAUTION\\n// This version of SafeMath should only be used with Solidity 0.8 or later,\\n// because it relies on the compiler's built in overflow checks.\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations.\\n *\\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\\n * now has built in overflow checking.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a + b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a * b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator.\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa2f576be637946f767aa56601c26d717f48a0aff44f82e46f13807eea1009a21\",\"license\":\"MIT\"},\"contracts/IController.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./zeppelin/Pausable.sol\\\";\\n\\nabstract contract IController is Pausable {\\n event SetContractInfo(bytes32 id, address contractAddress, bytes20 gitCommitHash);\\n\\n function setContractInfo(\\n bytes32 _id,\\n address _contractAddress,\\n bytes20 _gitCommitHash\\n ) external virtual;\\n\\n function updateController(bytes32 _id, address _controller) external virtual;\\n\\n function getContract(bytes32 _id) public view virtual returns (address);\\n}\\n\",\"keccak256\":\"0x34ea30a2b44d0cbec58fc1d703476ff0085b0fdadab0cd65c35c00b8867f7546\",\"license\":\"MIT\"},\"contracts/IManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\ninterface IManager {\\n event SetController(address controller);\\n event ParameterUpdate(string param);\\n\\n function setController(address _controller) external;\\n}\\n\",\"keccak256\":\"0xc179e4cecc593741514237d5194b4aaac6b829789629fa19ed04f572a8530481\",\"license\":\"MIT\"},\"contracts/Manager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./IManager.sol\\\";\\nimport \\\"./IController.sol\\\";\\n\\ncontract Manager is IManager {\\n // Controller that contract is registered with\\n IController public controller;\\n\\n // Check if sender is controller\\n modifier onlyController() {\\n _onlyController();\\n _;\\n }\\n\\n // Check if sender is controller owner\\n modifier onlyControllerOwner() {\\n _onlyControllerOwner();\\n _;\\n }\\n\\n // Check if controller is not paused\\n modifier whenSystemNotPaused() {\\n _whenSystemNotPaused();\\n _;\\n }\\n\\n // Check if controller is paused\\n modifier whenSystemPaused() {\\n _whenSystemPaused();\\n _;\\n }\\n\\n constructor(address _controller) {\\n controller = IController(_controller);\\n }\\n\\n /**\\n * @notice Set controller. Only callable by current controller\\n * @param _controller Controller contract address\\n */\\n function setController(address _controller) external onlyController {\\n controller = IController(_controller);\\n\\n emit SetController(_controller);\\n }\\n\\n function _onlyController() private view {\\n require(msg.sender == address(controller), \\\"caller must be Controller\\\");\\n }\\n\\n function _onlyControllerOwner() private view {\\n require(msg.sender == controller.owner(), \\\"caller must be Controller owner\\\");\\n }\\n\\n function _whenSystemNotPaused() private view {\\n require(!controller.paused(), \\\"system is paused\\\");\\n }\\n\\n function _whenSystemPaused() private view {\\n require(controller.paused(), \\\"system is not paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xc415e3f42da9f82ddd5953031f3f26aed824368fcc34d3b8a17015bfe80dc109\",\"license\":\"MIT\"},\"contracts/ManagerProxyTarget.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Manager.sol\\\";\\n\\n/**\\n * @title ManagerProxyTarget\\n * @notice The base contract that target contracts used by a proxy contract should inherit from\\n * @dev Both the target contract and the proxy contract (implemented as ManagerProxy) MUST inherit from ManagerProxyTarget in order to guarantee\\n that both contracts have the same storage layout. Differing storage layouts in a proxy contract and target contract can\\n potentially break the delegate proxy upgradeability mechanism\\n */\\nabstract contract ManagerProxyTarget is Manager {\\n // Used to look up target contract address in controller's registry\\n bytes32 public targetContractId;\\n}\\n\",\"keccak256\":\"0x920bcc2def240e06272dc06cbcb9f12976f1698cd4f1020c165af25ee837e553\",\"license\":\"MIT\"},\"contracts/bonding/BondingManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../ManagerProxyTarget.sol\\\";\\nimport \\\"./IBondingManager.sol\\\";\\nimport \\\"../libraries/SortedDoublyLL.sol\\\";\\nimport \\\"../libraries/MathUtils.sol\\\";\\nimport \\\"../libraries/PreciseMathUtils.sol\\\";\\nimport \\\"./libraries/EarningsPool.sol\\\";\\nimport \\\"./libraries/EarningsPoolLIP36.sol\\\";\\nimport \\\"../token/ILivepeerToken.sol\\\";\\nimport \\\"../token/IMinter.sol\\\";\\nimport \\\"../rounds/IRoundsManager.sol\\\";\\nimport \\\"../snapshots/IMerkleSnapshot.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\n/**\\n * @title BondingManager\\n * @notice Manages bonding, transcoder and rewards/fee accounting related operations of the Livepeer protocol\\n */\\ncontract BondingManager is ManagerProxyTarget, IBondingManager {\\n using SafeMath for uint256;\\n using SortedDoublyLL for SortedDoublyLL.Data;\\n using EarningsPool for EarningsPool.Data;\\n using EarningsPoolLIP36 for EarningsPool.Data;\\n\\n // Constants\\n // Occurances are replaced at compile time\\n // and computed to a single value if possible by the optimizer\\n uint256 constant MAX_FUTURE_ROUND = 2**256 - 1;\\n\\n // Time between unbonding and possible withdrawl in rounds\\n uint64 public unbondingPeriod;\\n\\n // Represents a transcoder's current state\\n struct Transcoder {\\n uint256 lastRewardRound; // Last round that the transcoder called reward\\n uint256 rewardCut; // % of reward paid to transcoder by a delegator\\n uint256 feeShare; // % of fees paid to delegators by transcoder\\n mapping(uint256 => EarningsPool.Data) earningsPoolPerRound; // Mapping of round => earnings pool for the round\\n uint256 lastActiveStakeUpdateRound; // Round for which the stake was last updated while the transcoder is active\\n uint256 activationRound; // Round in which the transcoder became active - 0 if inactive\\n uint256 deactivationRound; // Round in which the transcoder will become inactive\\n uint256 activeCumulativeRewards; // The transcoder's cumulative rewards that are active in the current round\\n uint256 cumulativeRewards; // The transcoder's cumulative rewards (earned via the its active staked rewards and its reward cut).\\n uint256 cumulativeFees; // The transcoder's cumulative fees (earned via the its active staked rewards and its fee share)\\n uint256 lastFeeRound; // Latest round in which the transcoder received fees\\n }\\n\\n // The various states a transcoder can be in\\n enum TranscoderStatus {\\n NotRegistered,\\n Registered\\n }\\n\\n // Represents a delegator's current state\\n struct Delegator {\\n uint256 bondedAmount; // The amount of bonded tokens\\n uint256 fees; // The amount of fees collected\\n address delegateAddress; // The address delegated to\\n uint256 delegatedAmount; // The amount of tokens delegated to the delegator\\n uint256 startRound; // The round the delegator transitions to bonded phase and is delegated to someone\\n uint256 lastClaimRound; // The last round during which the delegator claimed its earnings\\n uint256 nextUnbondingLockId; // ID for the next unbonding lock created\\n mapping(uint256 => UnbondingLock) unbondingLocks; // Mapping of unbonding lock ID => unbonding lock\\n }\\n\\n // The various states a delegator can be in\\n enum DelegatorStatus {\\n Pending,\\n Bonded,\\n Unbonded\\n }\\n\\n // Represents an amount of tokens that are being unbonded\\n struct UnbondingLock {\\n uint256 amount; // Amount of tokens being unbonded\\n uint256 withdrawRound; // Round at which unbonding period is over and tokens can be withdrawn\\n }\\n\\n // Keep track of the known transcoders and delegators\\n mapping(address => Delegator) private delegators;\\n mapping(address => Transcoder) private transcoders;\\n\\n // The total active stake (sum of the stake of active set members) for the current round\\n uint256 public currentRoundTotalActiveStake;\\n // The total active stake (sum of the stake of active set members) for the next round\\n uint256 public nextRoundTotalActiveStake;\\n\\n // The transcoder pool is used to keep track of the transcoders that are eligible for activation.\\n // The pool keeps track of the pending active set in round N and the start of round N + 1 transcoders\\n // in the pool are locked into the active set for round N + 1\\n SortedDoublyLL.Data private transcoderPool;\\n\\n // Check if sender is TicketBroker\\n modifier onlyTicketBroker() {\\n _onlyTicketBroker();\\n _;\\n }\\n\\n // Check if sender is RoundsManager\\n modifier onlyRoundsManager() {\\n _onlyRoundsManager();\\n _;\\n }\\n\\n // Check if sender is Verifier\\n modifier onlyVerifier() {\\n _onlyVerifier();\\n _;\\n }\\n\\n // Check if current round is initialized\\n modifier currentRoundInitialized() {\\n _currentRoundInitialized();\\n _;\\n }\\n\\n // Automatically claim earnings from lastClaimRound through the current round\\n modifier autoClaimEarnings() {\\n _autoClaimEarnings();\\n _;\\n }\\n\\n /**\\n * @notice BondingManager constructor. Only invokes constructor of base Manager contract with provided Controller address\\n * @dev This constructor will not initialize any state variables besides `controller`. The following setter functions\\n * should be used to initialize state variables post-deployment:\\n * - setUnbondingPeriod()\\n * - setNumActiveTranscoders()\\n * - setMaxEarningsClaimsRounds()\\n * @param _controller Address of Controller that this contract will be registered with\\n */\\n constructor(address _controller) Manager(_controller) {}\\n\\n /**\\n * @notice Set unbonding period. Only callable by Controller owner\\n * @param _unbondingPeriod Rounds between unbonding and possible withdrawal\\n */\\n function setUnbondingPeriod(uint64 _unbondingPeriod) external onlyControllerOwner {\\n unbondingPeriod = _unbondingPeriod;\\n\\n emit ParameterUpdate(\\\"unbondingPeriod\\\");\\n }\\n\\n /**\\n * @notice Set maximum number of active transcoders. Only callable by Controller owner\\n * @param _numActiveTranscoders Number of active transcoders\\n */\\n function setNumActiveTranscoders(uint256 _numActiveTranscoders) external onlyControllerOwner {\\n transcoderPool.setMaxSize(_numActiveTranscoders);\\n\\n emit ParameterUpdate(\\\"numActiveTranscoders\\\");\\n }\\n\\n /**\\n * @notice Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it\\n * @dev Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR\\n * @param _rewardCut % of reward paid to transcoder by a delegator\\n * @param _feeShare % of fees paid to delegators by a transcoder\\n */\\n function transcoder(uint256 _rewardCut, uint256 _feeShare) external {\\n transcoderWithHint(_rewardCut, _feeShare, address(0), address(0));\\n }\\n\\n /**\\n * @notice Delegate stake towards a specific address\\n * @param _amount The amount of tokens to stake\\n * @param _to The address of the transcoder to stake towards\\n */\\n function bond(uint256 _amount, address _to) external {\\n bondWithHint(_amount, _to, address(0), address(0), address(0), address(0));\\n }\\n\\n /**\\n * @notice Unbond an amount of the delegator's bonded stake\\n * @param _amount Amount of tokens to unbond\\n */\\n function unbond(uint256 _amount) external {\\n unbondWithHint(_amount, address(0), address(0));\\n }\\n\\n /**\\n * @notice Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status\\n * @param _unbondingLockId ID of unbonding lock to rebond with\\n */\\n function rebond(uint256 _unbondingLockId) external {\\n rebondWithHint(_unbondingLockId, address(0), address(0));\\n }\\n\\n /**\\n * @notice Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status\\n * @param _to Address of delegate\\n * @param _unbondingLockId ID of unbonding lock to rebond with\\n */\\n function rebondFromUnbonded(address _to, uint256 _unbondingLockId) external {\\n rebondFromUnbondedWithHint(_to, _unbondingLockId, address(0), address(0));\\n }\\n\\n /**\\n * @notice Withdraws tokens for an unbonding lock that has existed through an unbonding period\\n * @param _unbondingLockId ID of unbonding lock to withdraw with\\n */\\n function withdrawStake(uint256 _unbondingLockId) external whenSystemNotPaused currentRoundInitialized {\\n Delegator storage del = delegators[msg.sender];\\n UnbondingLock storage lock = del.unbondingLocks[_unbondingLockId];\\n\\n require(isValidUnbondingLock(msg.sender, _unbondingLockId), \\\"invalid unbonding lock ID\\\");\\n require(\\n lock.withdrawRound <= roundsManager().currentRound(),\\n \\\"withdraw round must be before or equal to the current round\\\"\\n );\\n\\n uint256 amount = lock.amount;\\n uint256 withdrawRound = lock.withdrawRound;\\n // Delete unbonding lock\\n delete del.unbondingLocks[_unbondingLockId];\\n\\n // Tell Minter to transfer stake (LPT) to the delegator\\n minter().trustedTransferTokens(msg.sender, amount);\\n\\n emit WithdrawStake(msg.sender, _unbondingLockId, amount, withdrawRound);\\n }\\n\\n /**\\n * @notice Withdraws fees to the caller\\n */\\n function withdrawFees(address payable _recipient, uint256 _amount)\\n external\\n whenSystemNotPaused\\n currentRoundInitialized\\n autoClaimEarnings\\n {\\n require(_recipient != address(0), \\\"invalid recipient\\\");\\n uint256 fees = delegators[msg.sender].fees;\\n require(fees >= _amount, \\\"insufficient fees to withdraw\\\");\\n delegators[msg.sender].fees = fees.sub(_amount);\\n\\n // Tell Minter to transfer fees (ETH) to the address\\n minter().trustedWithdrawETH(_recipient, _amount);\\n\\n emit WithdrawFees(msg.sender, _recipient, _amount);\\n }\\n\\n /**\\n * @notice Mint token rewards for an active transcoder and its delegators\\n */\\n function reward() external {\\n rewardWithHint(address(0), address(0));\\n }\\n\\n /**\\n * @notice Update transcoder's fee pool. Only callable by the TicketBroker\\n * @param _transcoder Transcoder address\\n * @param _fees Fees to be added to the fee pool\\n */\\n function updateTranscoderWithFees(\\n address _transcoder,\\n uint256 _fees,\\n uint256 _round\\n ) external whenSystemNotPaused onlyTicketBroker {\\n // Silence unused param compiler warning\\n _round;\\n\\n require(isRegisteredTranscoder(_transcoder), \\\"transcoder must be registered\\\");\\n\\n uint256 currentRound = roundsManager().currentRound();\\n\\n Transcoder storage t = transcoders[_transcoder];\\n\\n uint256 lastRewardRound = t.lastRewardRound;\\n uint256 activeCumulativeRewards = t.activeCumulativeRewards;\\n\\n // LIP-36: Add fees for the current round instead of '_round'\\n // https://github.com/livepeer/LIPs/issues/35#issuecomment-673659199\\n EarningsPool.Data storage earningsPool = t.earningsPoolPerRound[currentRound];\\n EarningsPool.Data memory prevEarningsPool = latestCumulativeFactorsPool(t, currentRound.sub(1));\\n\\n // if transcoder hasn't called 'reward()' for '_round' its 'transcoderFeeShare', 'transcoderRewardCut' and 'totalStake'\\n // on the 'EarningsPool' for '_round' would not be initialized and the fee distribution wouldn't happen as expected\\n // for cumulative fee calculation this would result in division by zero.\\n if (currentRound > lastRewardRound) {\\n earningsPool.setCommission(t.rewardCut, t.feeShare);\\n\\n uint256 lastUpdateRound = t.lastActiveStakeUpdateRound;\\n if (lastUpdateRound < currentRound) {\\n earningsPool.setStake(t.earningsPoolPerRound[lastUpdateRound].totalStake);\\n }\\n\\n // If reward() has not been called yet in the current round, then the transcoder's activeCumulativeRewards has not\\n // yet been set in for the round. When the transcoder calls reward() its activeCumulativeRewards will be set to its\\n // current cumulativeRewards. So, we can just use the transcoder's cumulativeRewards here because this will become\\n // the transcoder's activeCumulativeRewards if it calls reward() later on in the current round\\n activeCumulativeRewards = t.cumulativeRewards;\\n }\\n\\n uint256 totalStake = earningsPool.totalStake;\\n if (prevEarningsPool.cumulativeRewardFactor == 0 && lastRewardRound == currentRound) {\\n // if transcoder called reward for 'currentRound' but not for 'currentRound - 1' (missed reward call)\\n // retroactively calculate what its cumulativeRewardFactor would have been for 'currentRound - 1' (cfr. previous lastRewardRound for transcoder)\\n // based on rewards for currentRound\\n IMinter mtr = minter();\\n uint256 rewards = PreciseMathUtils.percOf(\\n mtr.currentMintableTokens().add(mtr.currentMintedTokens()),\\n totalStake,\\n currentRoundTotalActiveStake\\n );\\n uint256 transcoderCommissionRewards = MathUtils.percOf(rewards, earningsPool.transcoderRewardCut);\\n uint256 delegatorsRewards = rewards.sub(transcoderCommissionRewards);\\n\\n prevEarningsPool.cumulativeRewardFactor = PreciseMathUtils.percOf(\\n earningsPool.cumulativeRewardFactor,\\n totalStake,\\n delegatorsRewards.add(totalStake)\\n );\\n }\\n\\n uint256 delegatorsFees = MathUtils.percOf(_fees, earningsPool.transcoderFeeShare);\\n uint256 transcoderCommissionFees = _fees.sub(delegatorsFees);\\n // Calculate the fees earned by the transcoder's earned rewards\\n uint256 transcoderRewardStakeFees = PreciseMathUtils.percOf(\\n delegatorsFees,\\n activeCumulativeRewards,\\n totalStake\\n );\\n // Track fees earned by the transcoder based on its earned rewards and feeShare\\n t.cumulativeFees = t.cumulativeFees.add(transcoderRewardStakeFees).add(transcoderCommissionFees);\\n // Update cumulative fee factor with new fees\\n // The cumulativeFeeFactor is used to calculate fees for all delegators including the transcoder (self-delegated)\\n // Note that delegatorsFees includes transcoderRewardStakeFees, but no delegator will claim that amount using\\n // the earnings claiming algorithm and instead that amount is accounted for in the transcoder's cumulativeFees field\\n earningsPool.updateCumulativeFeeFactor(prevEarningsPool, delegatorsFees);\\n\\n t.lastFeeRound = currentRound;\\n }\\n\\n /**\\n * @notice Slash a transcoder. Only callable by the Verifier\\n * @param _transcoder Transcoder address\\n * @param _finder Finder that proved a transcoder violated a slashing condition. Null address if there is no finder\\n * @param _slashAmount Percentage of transcoder bond to be slashed\\n * @param _finderFee Percentage of penalty awarded to finder. Zero if there is no finder\\n */\\n function slashTranscoder(\\n address _transcoder,\\n address _finder,\\n uint256 _slashAmount,\\n uint256 _finderFee\\n ) external whenSystemNotPaused onlyVerifier {\\n Delegator storage del = delegators[_transcoder];\\n\\n if (del.bondedAmount > 0) {\\n uint256 penalty = MathUtils.percOf(delegators[_transcoder].bondedAmount, _slashAmount);\\n\\n // If active transcoder, resign it\\n if (transcoderPool.contains(_transcoder)) {\\n resignTranscoder(_transcoder);\\n }\\n\\n // Decrease bonded stake\\n del.bondedAmount = del.bondedAmount.sub(penalty);\\n\\n // If still bonded decrease delegate's delegated amount\\n if (delegatorStatus(_transcoder) == DelegatorStatus.Bonded) {\\n delegators[del.delegateAddress].delegatedAmount = delegators[del.delegateAddress].delegatedAmount.sub(\\n penalty\\n );\\n }\\n\\n // Account for penalty\\n uint256 burnAmount = penalty;\\n\\n // Award finder fee if there is a finder address\\n if (_finder != address(0)) {\\n uint256 finderAmount = MathUtils.percOf(penalty, _finderFee);\\n minter().trustedTransferTokens(_finder, finderAmount);\\n\\n // Minter burns the slashed funds - finder reward\\n minter().trustedBurnTokens(burnAmount.sub(finderAmount));\\n\\n emit TranscoderSlashed(_transcoder, _finder, penalty, finderAmount);\\n } else {\\n // Minter burns the slashed funds\\n minter().trustedBurnTokens(burnAmount);\\n\\n emit TranscoderSlashed(_transcoder, address(0), penalty, 0);\\n }\\n } else {\\n emit TranscoderSlashed(_transcoder, _finder, 0, 0);\\n }\\n }\\n\\n /**\\n * @notice Claim token pools shares for a delegator from its lastClaimRound through the end round\\n * @param _endRound The last round for which to claim token pools shares for a delegator\\n */\\n function claimEarnings(uint256 _endRound) external whenSystemNotPaused currentRoundInitialized {\\n // Silence unused param compiler warning\\n _endRound;\\n\\n _autoClaimEarnings();\\n }\\n\\n /**\\n * @notice Called during round initialization to set the total active stake for the round. Only callable by the RoundsManager\\n */\\n function setCurrentRoundTotalActiveStake() external onlyRoundsManager {\\n currentRoundTotalActiveStake = nextRoundTotalActiveStake;\\n }\\n\\n /**\\n * @notice Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it using an optional list hint\\n * @dev Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR. If the caller is going to be added to the pool, the\\n * caller can provide an optional hint for the insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will\\n * be executed starting at the hint to find the correct position - in the best case, the hint is the correct position so no search is executed.\\n * See SortedDoublyLL.sol for details on list hints\\n * @param _rewardCut % of reward paid to transcoder by a delegator\\n * @param _feeShare % of fees paid to delegators by a transcoder\\n * @param _newPosPrev Address of previous transcoder in pool if the caller joins the pool\\n * @param _newPosNext Address of next transcoder in pool if the caller joins the pool\\n */\\n function transcoderWithHint(\\n uint256 _rewardCut,\\n uint256 _feeShare,\\n address _newPosPrev,\\n address _newPosNext\\n ) public whenSystemNotPaused currentRoundInitialized {\\n require(!roundsManager().currentRoundLocked(), \\\"can't update transcoder params, current round is locked\\\");\\n require(MathUtils.validPerc(_rewardCut), \\\"invalid rewardCut percentage\\\");\\n require(MathUtils.validPerc(_feeShare), \\\"invalid feeShare percentage\\\");\\n require(isRegisteredTranscoder(msg.sender), \\\"transcoder must be registered\\\");\\n\\n Transcoder storage t = transcoders[msg.sender];\\n uint256 currentRound = roundsManager().currentRound();\\n\\n require(\\n !isActiveTranscoder(msg.sender) || t.lastRewardRound == currentRound,\\n \\\"caller can't be active or must have already called reward for the current round\\\"\\n );\\n\\n t.rewardCut = _rewardCut;\\n t.feeShare = _feeShare;\\n\\n if (!transcoderPool.contains(msg.sender)) {\\n tryToJoinActiveSet(\\n msg.sender,\\n delegators[msg.sender].delegatedAmount,\\n currentRound.add(1),\\n _newPosPrev,\\n _newPosNext\\n );\\n }\\n\\n emit TranscoderUpdate(msg.sender, _rewardCut, _feeShare);\\n }\\n\\n /**\\n * @notice Delegates stake \\\"on behalf of\\\" another address towards a specific address\\n * and updates the transcoder pool using optional list hints if needed\\n * @dev If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint\\n * for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params.\\n * If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the\\n * insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params.\\n * In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint\\n * is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\\n * @param _amount The amount of tokens to stake.\\n * @param _owner The address of the owner of the bond\\n * @param _to The address of the transcoder to stake towards\\n * @param _oldDelegateNewPosPrev The address of the previous transcoder in the pool for the old delegate\\n * @param _oldDelegateNewPosNext The address of the next transcoder in the pool for the old delegate\\n * @param _currDelegateNewPosPrev The address of the previous transcoder in the pool for the current delegate\\n * @param _currDelegateNewPosNext The address of the next transcoder in the pool for the current delegate\\n */\\n function bondForWithHint(\\n uint256 _amount,\\n address _owner,\\n address _to,\\n address _oldDelegateNewPosPrev,\\n address _oldDelegateNewPosNext,\\n address _currDelegateNewPosPrev,\\n address _currDelegateNewPosNext\\n ) public whenSystemNotPaused currentRoundInitialized autoClaimEarnings {\\n Delegator storage del = delegators[_owner];\\n\\n uint256 currentRound = roundsManager().currentRound();\\n // Amount to delegate\\n uint256 delegationAmount = _amount;\\n // Current delegate\\n address currentDelegate = del.delegateAddress;\\n // Current bonded amount\\n uint256 currentBondedAmount = del.bondedAmount;\\n\\n if (delegatorStatus(_owner) == DelegatorStatus.Unbonded) {\\n // New delegate\\n // Set start round\\n // Don't set start round if delegator is in pending state because the start round would not change\\n del.startRound = currentRound.add(1);\\n // Unbonded state = no existing delegate and no bonded stake\\n // Thus, delegation amount = provided amount\\n } else if (currentBondedAmount > 0 && currentDelegate != _to) {\\n // A registered transcoder cannot delegate its bonded stake toward another address\\n // because it can only be delegated toward itself\\n // In the future, if delegation towards another registered transcoder as an already\\n // registered transcoder becomes useful (i.e. for transitive delegation), this restriction\\n // could be removed\\n require(!isRegisteredTranscoder(_owner), \\\"registered transcoders can't delegate towards other addresses\\\");\\n // Changing delegate\\n // Set start round\\n del.startRound = currentRound.add(1);\\n // Update amount to delegate with previous delegation amount\\n delegationAmount = delegationAmount.add(currentBondedAmount);\\n\\n decreaseTotalStake(currentDelegate, currentBondedAmount, _oldDelegateNewPosPrev, _oldDelegateNewPosNext);\\n }\\n\\n {\\n Transcoder storage newDelegate = transcoders[_to];\\n EarningsPool.Data storage currPool = newDelegate.earningsPoolPerRound[currentRound];\\n if (currPool.cumulativeRewardFactor == 0) {\\n currPool.cumulativeRewardFactor = cumulativeFactorsPool(newDelegate, newDelegate.lastRewardRound)\\n .cumulativeRewardFactor;\\n }\\n if (currPool.cumulativeFeeFactor == 0) {\\n currPool.cumulativeFeeFactor = cumulativeFactorsPool(newDelegate, newDelegate.lastFeeRound)\\n .cumulativeFeeFactor;\\n }\\n }\\n\\n // cannot delegate to someone without having bonded stake\\n require(delegationAmount > 0, \\\"delegation amount must be greater than 0\\\");\\n // Update delegate\\n del.delegateAddress = _to;\\n // Update bonded amount\\n del.bondedAmount = currentBondedAmount.add(_amount);\\n\\n increaseTotalStake(_to, delegationAmount, _currDelegateNewPosPrev, _currDelegateNewPosNext);\\n\\n if (_amount > 0) {\\n // Transfer the LPT to the Minter\\n livepeerToken().transferFrom(msg.sender, address(minter()), _amount);\\n }\\n\\n emit Bond(_to, currentDelegate, _owner, _amount, del.bondedAmount);\\n }\\n\\n /**\\n * @notice Delegates stake towards a specific address and updates the transcoder pool using optional list hints if needed\\n * @dev If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint\\n * for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params.\\n * If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the\\n * insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params.\\n * In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint\\n * is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\\n * @param _amount The amount of tokens to stake.\\n * @param _to The address of the transcoder to stake towards\\n * @param _oldDelegateNewPosPrev The address of the previous transcoder in the pool for the old delegate\\n * @param _oldDelegateNewPosNext The address of the next transcoder in the pool for the old delegate\\n * @param _currDelegateNewPosPrev The address of the previous transcoder in the pool for the current delegate\\n * @param _currDelegateNewPosNext The address of the next transcoder in the pool for the current delegate\\n */\\n function bondWithHint(\\n uint256 _amount,\\n address _to,\\n address _oldDelegateNewPosPrev,\\n address _oldDelegateNewPosNext,\\n address _currDelegateNewPosPrev,\\n address _currDelegateNewPosNext\\n ) public {\\n bondForWithHint(\\n _amount,\\n msg.sender,\\n _to,\\n _oldDelegateNewPosPrev,\\n _oldDelegateNewPosNext,\\n _currDelegateNewPosPrev,\\n _currDelegateNewPosNext\\n );\\n }\\n\\n /**\\n * @notice Transfers ownership of a bond to a new delegator using optional hints if needed\\n *\\n * If the receiver is already bonded to a different delegate than the bond owner then the stake goes\\n * to the receiver's delegate otherwise the receiver's delegate is set as the owner's delegate\\n *\\n * @dev If the original delegate is in the transcoder pool, the caller can provide an optional hint for the\\n * insertion position of the delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params.\\n * If the target delegate is in the transcoder pool, the caller can provide an optional hint for the\\n * insertion position of the delegate via the `_newDelegateNewPosPrev` and `_newDelegateNewPosNext` params.\\n *\\n * In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint\\n * is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\\n * @param _delegator Receiver of the bond\\n * @param _amount Portion of the bond to transfer to receiver\\n * @param _oldDelegateNewPosPrev Address of previous transcoder in pool if the delegate remains in the pool\\n * @param _oldDelegateNewPosNext Address of next transcoder in pool if the delegate remains in the pool\\n * @param _newDelegateNewPosPrev Address of previous transcoder in pool if the delegate is in the pool\\n * @param _newDelegateNewPosNext Address of next transcoder in pool if the delegate is in the pool\\n */\\n function transferBond(\\n address _delegator,\\n uint256 _amount,\\n address _oldDelegateNewPosPrev,\\n address _oldDelegateNewPosNext,\\n address _newDelegateNewPosPrev,\\n address _newDelegateNewPosNext\\n ) public whenSystemNotPaused currentRoundInitialized autoClaimEarnings {\\n Delegator storage oldDel = delegators[msg.sender];\\n // Cache delegate address of caller before unbondWithHint because\\n // if unbondWithHint is for a full unbond the caller's delegate address will be set to null\\n address oldDelDelegate = oldDel.delegateAddress;\\n\\n unbondWithHint(_amount, _oldDelegateNewPosPrev, _oldDelegateNewPosNext);\\n\\n Delegator storage newDel = delegators[_delegator];\\n\\n uint256 oldDelUnbondingLockId = oldDel.nextUnbondingLockId.sub(1);\\n uint256 withdrawRound = oldDel.unbondingLocks[oldDelUnbondingLockId].withdrawRound;\\n\\n // Burn lock for current owner\\n delete oldDel.unbondingLocks[oldDelUnbondingLockId];\\n\\n // Create lock for new owner\\n uint256 newDelUnbondingLockId = newDel.nextUnbondingLockId;\\n\\n newDel.unbondingLocks[newDelUnbondingLockId] = UnbondingLock({ amount: _amount, withdrawRound: withdrawRound });\\n newDel.nextUnbondingLockId = newDel.nextUnbondingLockId.add(1);\\n\\n emit TransferBond(msg.sender, _delegator, oldDelUnbondingLockId, newDelUnbondingLockId, _amount);\\n\\n // Claim earnings for receiver before processing unbonding lock\\n uint256 currentRound = roundsManager().currentRound();\\n uint256 lastClaimRound = newDel.lastClaimRound;\\n if (lastClaimRound < currentRound) {\\n updateDelegatorWithEarnings(_delegator, currentRound, lastClaimRound);\\n }\\n\\n // Rebond lock for new owner\\n if (newDel.delegateAddress == address(0)) {\\n newDel.delegateAddress = oldDelDelegate;\\n }\\n\\n // Move to Pending state if receiver is currently in Unbonded state\\n if (delegatorStatus(_delegator) == DelegatorStatus.Unbonded) {\\n newDel.startRound = currentRound.add(1);\\n }\\n\\n // Process rebond using unbonding lock\\n processRebond(_delegator, newDelUnbondingLockId, _newDelegateNewPosPrev, _newDelegateNewPosNext);\\n }\\n\\n /**\\n * @notice Unbond an amount of the delegator's bonded stake and updates the transcoder pool using an optional list hint if needed\\n * @dev If the caller remains in the transcoder pool, the caller can provide an optional hint for its insertion position in the\\n * pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position.\\n * In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints\\n * @param _amount Amount of tokens to unbond\\n * @param _newPosPrev Address of previous transcoder in pool if the caller remains in the pool\\n * @param _newPosNext Address of next transcoder in pool if the caller remains in the pool\\n */\\n function unbondWithHint(\\n uint256 _amount,\\n address _newPosPrev,\\n address _newPosNext\\n ) public whenSystemNotPaused currentRoundInitialized autoClaimEarnings {\\n require(delegatorStatus(msg.sender) == DelegatorStatus.Bonded, \\\"caller must be bonded\\\");\\n\\n Delegator storage del = delegators[msg.sender];\\n\\n require(_amount > 0, \\\"unbond amount must be greater than 0\\\");\\n require(_amount <= del.bondedAmount, \\\"amount is greater than bonded amount\\\");\\n\\n address currentDelegate = del.delegateAddress;\\n uint256 currentRound = roundsManager().currentRound();\\n uint256 withdrawRound = currentRound.add(unbondingPeriod);\\n uint256 unbondingLockId = del.nextUnbondingLockId;\\n\\n // Create new unbonding lock\\n del.unbondingLocks[unbondingLockId] = UnbondingLock({ amount: _amount, withdrawRound: withdrawRound });\\n // Increment ID for next unbonding lock\\n del.nextUnbondingLockId = unbondingLockId.add(1);\\n // Decrease delegator's bonded amount\\n del.bondedAmount = del.bondedAmount.sub(_amount);\\n\\n if (del.bondedAmount == 0) {\\n // Delegator no longer delegated to anyone if it does not have a bonded amount\\n del.delegateAddress = address(0);\\n // Delegator does not have a start round if it is no longer delegated to anyone\\n del.startRound = 0;\\n\\n if (transcoderPool.contains(msg.sender)) {\\n resignTranscoder(msg.sender);\\n }\\n }\\n\\n // If msg.sender was resigned this statement will only decrease delegators[currentDelegate].delegatedAmount\\n decreaseTotalStake(currentDelegate, _amount, _newPosPrev, _newPosNext);\\n\\n emit Unbond(currentDelegate, msg.sender, unbondingLockId, _amount, withdrawRound);\\n }\\n\\n /**\\n * @notice Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status and updates\\n * the transcoder pool using an optional list hint if needed\\n * @dev If the delegate is in the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the\\n * pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position.\\n * In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints\\n * @param _unbondingLockId ID of unbonding lock to rebond with\\n * @param _newPosPrev Address of previous transcoder in pool if the delegate is in the pool\\n * @param _newPosNext Address of next transcoder in pool if the delegate is in the pool\\n */\\n function rebondWithHint(\\n uint256 _unbondingLockId,\\n address _newPosPrev,\\n address _newPosNext\\n ) public whenSystemNotPaused currentRoundInitialized autoClaimEarnings {\\n require(delegatorStatus(msg.sender) != DelegatorStatus.Unbonded, \\\"caller must be bonded\\\");\\n\\n // Process rebond using unbonding lock\\n processRebond(msg.sender, _unbondingLockId, _newPosPrev, _newPosNext);\\n }\\n\\n /**\\n * @notice Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status and updates the transcoder pool using\\n * an optional list hint if needed\\n * @dev If the delegate joins the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the\\n * pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position.\\n * In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\\n * @param _to Address of delegate\\n * @param _unbondingLockId ID of unbonding lock to rebond with\\n * @param _newPosPrev Address of previous transcoder in pool if the delegate joins the pool\\n * @param _newPosNext Address of next transcoder in pool if the delegate joins the pool\\n */\\n function rebondFromUnbondedWithHint(\\n address _to,\\n uint256 _unbondingLockId,\\n address _newPosPrev,\\n address _newPosNext\\n ) public whenSystemNotPaused currentRoundInitialized autoClaimEarnings {\\n require(delegatorStatus(msg.sender) == DelegatorStatus.Unbonded, \\\"caller must be unbonded\\\");\\n\\n // Set delegator's start round and transition into Pending state\\n delegators[msg.sender].startRound = roundsManager().currentRound().add(1);\\n // Set delegator's delegate\\n delegators[msg.sender].delegateAddress = _to;\\n // Process rebond using unbonding lock\\n processRebond(msg.sender, _unbondingLockId, _newPosPrev, _newPosNext);\\n }\\n\\n /**\\n * @notice Mint token rewards for an active transcoder and its delegators and update the transcoder pool using an optional list hint if needed\\n * @dev If the caller is in the transcoder pool, the caller can provide an optional hint for its insertion position in the\\n * pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position.\\n * In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints\\n * @param _newPosPrev Address of previous transcoder in pool if the caller is in the pool\\n * @param _newPosNext Address of next transcoder in pool if the caller is in the pool\\n */\\n function rewardWithHint(address _newPosPrev, address _newPosNext)\\n public\\n whenSystemNotPaused\\n currentRoundInitialized\\n {\\n uint256 currentRound = roundsManager().currentRound();\\n\\n require(isActiveTranscoder(msg.sender), \\\"caller must be an active transcoder\\\");\\n require(\\n transcoders[msg.sender].lastRewardRound != currentRound,\\n \\\"caller has already called reward for the current round\\\"\\n );\\n\\n Transcoder storage t = transcoders[msg.sender];\\n EarningsPool.Data storage earningsPool = t.earningsPoolPerRound[currentRound];\\n\\n // Set last round that transcoder called reward\\n earningsPool.setCommission(t.rewardCut, t.feeShare);\\n\\n // If transcoder didn't receive stake updates during the previous round and hasn't called reward for > 1 round\\n // the 'totalStake' on its 'EarningsPool' for the current round wouldn't be initialized\\n // Thus we sync the the transcoder's stake to when it was last updated\\n // 'updateTrancoderWithRewards()' will set the update round to 'currentRound +1' so this synchronization shouldn't occur frequently\\n uint256 lastUpdateRound = t.lastActiveStakeUpdateRound;\\n if (lastUpdateRound < currentRound) {\\n earningsPool.setStake(t.earningsPoolPerRound[lastUpdateRound].totalStake);\\n }\\n\\n // Create reward based on active transcoder's stake relative to the total active stake\\n // rewardTokens = (current mintable tokens for the round * active transcoder stake) / total active stake\\n uint256 rewardTokens = minter().createReward(earningsPool.totalStake, currentRoundTotalActiveStake);\\n\\n updateTranscoderWithRewards(msg.sender, rewardTokens, currentRound, _newPosPrev, _newPosNext);\\n\\n // Set last round that transcoder called reward\\n t.lastRewardRound = currentRound;\\n\\n emit Reward(msg.sender, rewardTokens);\\n }\\n\\n /**\\n * @notice Returns pending bonded stake for a delegator from its lastClaimRound through an end round\\n * @param _delegator Address of delegator\\n * @param _endRound The last round to compute pending stake from\\n * @return Pending bonded stake for '_delegator' since last claiming rewards\\n */\\n function pendingStake(address _delegator, uint256 _endRound) public view returns (uint256) {\\n // Silence unused param compiler warning\\n _endRound;\\n\\n uint256 endRound = roundsManager().currentRound();\\n (uint256 stake, ) = pendingStakeAndFees(_delegator, endRound);\\n return stake;\\n }\\n\\n /**\\n * @notice Returns pending fees for a delegator from its lastClaimRound through an end round\\n * @param _delegator Address of delegator\\n * @param _endRound The last round to compute pending fees from\\n * @return Pending fees for '_delegator' since last claiming fees\\n */\\n function pendingFees(address _delegator, uint256 _endRound) public view returns (uint256) {\\n // Silence unused param compiler warning\\n _endRound;\\n\\n uint256 endRound = roundsManager().currentRound();\\n (, uint256 fees) = pendingStakeAndFees(_delegator, endRound);\\n return fees;\\n }\\n\\n /**\\n * @notice Returns total bonded stake for a transcoder\\n * @param _transcoder Address of transcoder\\n * @return total bonded stake for a delegator\\n */\\n function transcoderTotalStake(address _transcoder) public view returns (uint256) {\\n return delegators[_transcoder].delegatedAmount;\\n }\\n\\n /**\\n * @notice Computes transcoder status\\n * @param _transcoder Address of transcoder\\n * @return registered or not registered transcoder status\\n */\\n function transcoderStatus(address _transcoder) public view returns (TranscoderStatus) {\\n if (isRegisteredTranscoder(_transcoder)) return TranscoderStatus.Registered;\\n return TranscoderStatus.NotRegistered;\\n }\\n\\n /**\\n * @notice Computes delegator status\\n * @param _delegator Address of delegator\\n * @return bonded, unbonded or pending delegator status\\n */\\n function delegatorStatus(address _delegator) public view returns (DelegatorStatus) {\\n Delegator storage del = delegators[_delegator];\\n\\n if (del.bondedAmount == 0) {\\n // Delegator unbonded all its tokens\\n return DelegatorStatus.Unbonded;\\n } else if (del.startRound > roundsManager().currentRound()) {\\n // Delegator round start is in the future\\n return DelegatorStatus.Pending;\\n } else {\\n // Delegator round start is now or in the past\\n // del.startRound != 0 here because if del.startRound = 0 then del.bondedAmount = 0 which\\n // would trigger the first if clause\\n return DelegatorStatus.Bonded;\\n }\\n }\\n\\n /**\\n * @notice Return transcoder information\\n * @param _transcoder Address of transcoder\\n * @return lastRewardRound Trancoder's last reward round\\n * @return rewardCut Transcoder's reward cut\\n * @return feeShare Transcoder's fee share\\n * @return lastActiveStakeUpdateRound Round in which transcoder's stake was last updated while active\\n * @return activationRound Round in which transcoder became active\\n * @return deactivationRound Round in which transcoder will no longer be active\\n * @return activeCumulativeRewards Transcoder's cumulative rewards that are currently active\\n * @return cumulativeRewards Transcoder's cumulative rewards (earned via its active staked rewards and its reward cut)\\n * @return cumulativeFees Transcoder's cumulative fees (earned via its active staked rewards and its fee share)\\n * @return lastFeeRound Latest round that the transcoder received fees\\n */\\n function getTranscoder(address _transcoder)\\n public\\n view\\n returns (\\n uint256 lastRewardRound,\\n uint256 rewardCut,\\n uint256 feeShare,\\n uint256 lastActiveStakeUpdateRound,\\n uint256 activationRound,\\n uint256 deactivationRound,\\n uint256 activeCumulativeRewards,\\n uint256 cumulativeRewards,\\n uint256 cumulativeFees,\\n uint256 lastFeeRound\\n )\\n {\\n Transcoder storage t = transcoders[_transcoder];\\n\\n lastRewardRound = t.lastRewardRound;\\n rewardCut = t.rewardCut;\\n feeShare = t.feeShare;\\n lastActiveStakeUpdateRound = t.lastActiveStakeUpdateRound;\\n activationRound = t.activationRound;\\n deactivationRound = t.deactivationRound;\\n activeCumulativeRewards = t.activeCumulativeRewards;\\n cumulativeRewards = t.cumulativeRewards;\\n cumulativeFees = t.cumulativeFees;\\n lastFeeRound = t.lastFeeRound;\\n }\\n\\n /**\\n * @notice Return transcoder's earnings pool for a given round\\n * @param _transcoder Address of transcoder\\n * @param _round Round number\\n * @return totalStake Transcoder's total stake in '_round'\\n * @return transcoderRewardCut Transcoder's reward cut for '_round'\\n * @return transcoderFeeShare Transcoder's fee share for '_round'\\n * @return cumulativeRewardFactor The cumulative reward factor for delegator rewards calculation (only used after LIP-36)\\n * @return cumulativeFeeFactor The cumulative fee factor for delegator fees calculation (only used after LIP-36)\\n */\\n function getTranscoderEarningsPoolForRound(address _transcoder, uint256 _round)\\n public\\n view\\n returns (\\n uint256 totalStake,\\n uint256 transcoderRewardCut,\\n uint256 transcoderFeeShare,\\n uint256 cumulativeRewardFactor,\\n uint256 cumulativeFeeFactor\\n )\\n {\\n EarningsPool.Data storage earningsPool = transcoders[_transcoder].earningsPoolPerRound[_round];\\n\\n totalStake = earningsPool.totalStake;\\n transcoderRewardCut = earningsPool.transcoderRewardCut;\\n transcoderFeeShare = earningsPool.transcoderFeeShare;\\n cumulativeRewardFactor = earningsPool.cumulativeRewardFactor;\\n cumulativeFeeFactor = earningsPool.cumulativeFeeFactor;\\n }\\n\\n /**\\n * @notice Return delegator info\\n * @param _delegator Address of delegator\\n * @return bondedAmount total amount bonded by '_delegator'\\n * @return fees amount of fees collected by '_delegator'\\n * @return delegateAddress address '_delegator' has bonded to\\n * @return delegatedAmount total amount delegated to '_delegator'\\n * @return startRound round in which bond for '_delegator' became effective\\n * @return lastClaimRound round for which '_delegator' has last claimed earnings\\n * @return nextUnbondingLockId ID for the next unbonding lock created for '_delegator'\\n */\\n function getDelegator(address _delegator)\\n public\\n view\\n returns (\\n uint256 bondedAmount,\\n uint256 fees,\\n address delegateAddress,\\n uint256 delegatedAmount,\\n uint256 startRound,\\n uint256 lastClaimRound,\\n uint256 nextUnbondingLockId\\n )\\n {\\n Delegator storage del = delegators[_delegator];\\n\\n bondedAmount = del.bondedAmount;\\n fees = del.fees;\\n delegateAddress = del.delegateAddress;\\n delegatedAmount = del.delegatedAmount;\\n startRound = del.startRound;\\n lastClaimRound = del.lastClaimRound;\\n nextUnbondingLockId = del.nextUnbondingLockId;\\n }\\n\\n /**\\n * @notice Return delegator's unbonding lock info\\n * @param _delegator Address of delegator\\n * @param _unbondingLockId ID of unbonding lock\\n * @return amount of stake locked up by unbonding lock\\n * @return withdrawRound round in which 'amount' becomes available for withdrawal\\n */\\n function getDelegatorUnbondingLock(address _delegator, uint256 _unbondingLockId)\\n public\\n view\\n returns (uint256 amount, uint256 withdrawRound)\\n {\\n UnbondingLock storage lock = delegators[_delegator].unbondingLocks[_unbondingLockId];\\n\\n return (lock.amount, lock.withdrawRound);\\n }\\n\\n /**\\n * @notice Returns max size of transcoder pool\\n * @return transcoder pool max size\\n */\\n function getTranscoderPoolMaxSize() public view returns (uint256) {\\n return transcoderPool.getMaxSize();\\n }\\n\\n /**\\n * @notice Returns size of transcoder pool\\n * @return transcoder pool current size\\n */\\n function getTranscoderPoolSize() public view returns (uint256) {\\n return transcoderPool.getSize();\\n }\\n\\n /**\\n * @notice Returns transcoder with most stake in pool\\n * @return address for transcoder with highest stake in transcoder pool\\n */\\n function getFirstTranscoderInPool() public view returns (address) {\\n return transcoderPool.getFirst();\\n }\\n\\n /**\\n * @notice Returns next transcoder in pool for a given transcoder\\n * @param _transcoder Address of a transcoder in the pool\\n * @return address for the transcoder after '_transcoder' in transcoder pool\\n */\\n function getNextTranscoderInPool(address _transcoder) public view returns (address) {\\n return transcoderPool.getNext(_transcoder);\\n }\\n\\n /**\\n * @notice Return total bonded tokens\\n * @return total active stake for the current round\\n */\\n function getTotalBonded() public view returns (uint256) {\\n return currentRoundTotalActiveStake;\\n }\\n\\n /**\\n * @notice Return whether a transcoder is active for the current round\\n * @param _transcoder Transcoder address\\n * @return true if transcoder is active\\n */\\n function isActiveTranscoder(address _transcoder) public view returns (bool) {\\n Transcoder storage t = transcoders[_transcoder];\\n uint256 currentRound = roundsManager().currentRound();\\n return t.activationRound <= currentRound && currentRound < t.deactivationRound;\\n }\\n\\n /**\\n * @notice Return whether a transcoder is registered\\n * @param _transcoder Transcoder address\\n * @return true if transcoder is self-bonded\\n */\\n function isRegisteredTranscoder(address _transcoder) public view returns (bool) {\\n Delegator storage d = delegators[_transcoder];\\n return d.delegateAddress == _transcoder && d.bondedAmount > 0;\\n }\\n\\n /**\\n * @notice Return whether an unbonding lock for a delegator is valid\\n * @param _delegator Address of delegator\\n * @param _unbondingLockId ID of unbonding lock\\n * @return true if unbondingLock for ID has a non-zero withdraw round\\n */\\n function isValidUnbondingLock(address _delegator, uint256 _unbondingLockId) public view returns (bool) {\\n // A unbonding lock is only valid if it has a non-zero withdraw round (the default value is zero)\\n return delegators[_delegator].unbondingLocks[_unbondingLockId].withdrawRound > 0;\\n }\\n\\n /**\\n * @notice Return an EarningsPool.Data struct with cumulative factors for a given round that are rescaled if needed\\n * @param _transcoder Storage pointer to a transcoder struct\\n * @param _round The round to fetch the cumulative factors for\\n */\\n function cumulativeFactorsPool(Transcoder storage _transcoder, uint256 _round)\\n internal\\n view\\n returns (EarningsPool.Data memory pool)\\n {\\n pool.cumulativeRewardFactor = _transcoder.earningsPoolPerRound[_round].cumulativeRewardFactor;\\n pool.cumulativeFeeFactor = _transcoder.earningsPoolPerRound[_round].cumulativeFeeFactor;\\n\\n return pool;\\n }\\n\\n /**\\n * @notice Return an EarningsPool.Data struct with the latest cumulative factors for a given round\\n * @param _transcoder Storage pointer to a transcoder struct\\n * @param _round The round to fetch the latest cumulative factors for\\n * @return pool An EarningsPool.Data populated with the latest cumulative factors for _round\\n */\\n function latestCumulativeFactorsPool(Transcoder storage _transcoder, uint256 _round)\\n internal\\n view\\n returns (EarningsPool.Data memory pool)\\n {\\n pool = cumulativeFactorsPool(_transcoder, _round);\\n\\n uint256 lastRewardRound = _transcoder.lastRewardRound;\\n // Only use the cumulativeRewardFactor for lastRewardRound if lastRewardRound is before _round\\n if (pool.cumulativeRewardFactor == 0 && lastRewardRound < _round) {\\n pool.cumulativeRewardFactor = cumulativeFactorsPool(_transcoder, lastRewardRound).cumulativeRewardFactor;\\n }\\n\\n uint256 lastFeeRound = _transcoder.lastFeeRound;\\n // Only use the cumulativeFeeFactor for lastFeeRound if lastFeeRound is before _round\\n if (pool.cumulativeFeeFactor == 0 && lastFeeRound < _round) {\\n pool.cumulativeFeeFactor = cumulativeFactorsPool(_transcoder, lastFeeRound).cumulativeFeeFactor;\\n }\\n\\n return pool;\\n }\\n\\n /**\\n * @notice Return a delegator's cumulative stake and fees using the LIP-36 earnings claiming algorithm\\n * @param _transcoder Storage pointer to a transcoder struct for a delegator's delegate\\n * @param _startRound The round for the start cumulative factors\\n * @param _endRound The round for the end cumulative factors\\n * @param _stake The delegator's initial stake before including earned rewards\\n * @param _fees The delegator's initial fees before including earned fees\\n * @return cStake , cFees where cStake is the delegator's cumulative stake including earned rewards and cFees is the delegator's cumulative fees including earned fees\\n */\\n function delegatorCumulativeStakeAndFees(\\n Transcoder storage _transcoder,\\n uint256 _startRound,\\n uint256 _endRound,\\n uint256 _stake,\\n uint256 _fees\\n ) internal view returns (uint256 cStake, uint256 cFees) {\\n // Fetch start cumulative factors\\n EarningsPool.Data memory startPool = cumulativeFactorsPool(_transcoder, _startRound);\\n\\n // If the start cumulativeRewardFactor is 0 set the default value to PreciseMathUtils.percPoints(1, 1)\\n if (startPool.cumulativeRewardFactor == 0) {\\n startPool.cumulativeRewardFactor = PreciseMathUtils.percPoints(1, 1);\\n }\\n\\n // Fetch end cumulative factors\\n EarningsPool.Data memory endPool = latestCumulativeFactorsPool(_transcoder, _endRound);\\n\\n // If the end cumulativeRewardFactor is 0 set the default value to PreciseMathUtils.percPoints(1, 1)\\n if (endPool.cumulativeRewardFactor == 0) {\\n endPool.cumulativeRewardFactor = PreciseMathUtils.percPoints(1, 1);\\n }\\n\\n cFees = _fees.add(\\n PreciseMathUtils.percOf(\\n _stake,\\n endPool.cumulativeFeeFactor.sub(startPool.cumulativeFeeFactor),\\n startPool.cumulativeRewardFactor\\n )\\n );\\n\\n cStake = PreciseMathUtils.percOf(_stake, endPool.cumulativeRewardFactor, startPool.cumulativeRewardFactor);\\n\\n return (cStake, cFees);\\n }\\n\\n /**\\n * @notice Return the pending stake and fees for a delegator\\n * @param _delegator Address of a delegator\\n * @param _endRound The last round to claim earnings for when calculating the pending stake and fees\\n * @return stake , fees where stake is the delegator's pending stake and fees is the delegator's pending fees\\n */\\n function pendingStakeAndFees(address _delegator, uint256 _endRound)\\n internal\\n view\\n returns (uint256 stake, uint256 fees)\\n {\\n Delegator storage del = delegators[_delegator];\\n Transcoder storage t = transcoders[del.delegateAddress];\\n\\n fees = del.fees;\\n stake = del.bondedAmount;\\n\\n uint256 startRound = del.lastClaimRound.add(1);\\n address delegateAddr = del.delegateAddress;\\n bool isTranscoder = _delegator == delegateAddr;\\n\\n // Make sure there is a round to claim i.e. end round - (start round - 1) > 0\\n if (startRound <= _endRound) {\\n (stake, fees) = delegatorCumulativeStakeAndFees(t, startRound.sub(1), _endRound, stake, fees);\\n }\\n // cumulativeRewards and cumulativeFees will track *all* rewards/fees earned by the transcoder\\n // so it is important that this is only executed with the end round as the current round or else\\n // the returned stake and fees will reflect rewards/fees earned in the future relative to the end round\\n if (isTranscoder) {\\n stake = stake.add(t.cumulativeRewards);\\n fees = fees.add(t.cumulativeFees);\\n }\\n\\n return (stake, fees);\\n }\\n\\n /**\\n * @dev Increase the total stake for a delegate and updates its 'lastActiveStakeUpdateRound'\\n * @param _delegate The delegate to increase the stake for\\n * @param _amount The amount to increase the stake for '_delegate' by\\n */\\n function increaseTotalStake(\\n address _delegate,\\n uint256 _amount,\\n address _newPosPrev,\\n address _newPosNext\\n ) internal {\\n if (isRegisteredTranscoder(_delegate)) {\\n uint256 currStake = transcoderTotalStake(_delegate);\\n uint256 newStake = currStake.add(_amount);\\n uint256 currRound = roundsManager().currentRound();\\n uint256 nextRound = currRound.add(1);\\n\\n // If the transcoder is already in the active set update its stake and return\\n if (transcoderPool.contains(_delegate)) {\\n transcoderPool.updateKey(_delegate, newStake, _newPosPrev, _newPosNext);\\n nextRoundTotalActiveStake = nextRoundTotalActiveStake.add(_amount);\\n Transcoder storage t = transcoders[_delegate];\\n\\n // currStake (the transcoder's delegatedAmount field) will reflect the transcoder's stake from lastActiveStakeUpdateRound\\n // because it is updated every time lastActiveStakeUpdateRound is updated\\n // The current active total stake is set to currStake to ensure that the value can be used in updateTranscoderWithRewards()\\n // and updateTranscoderWithFees() when lastActiveStakeUpdateRound > currentRound\\n if (t.lastActiveStakeUpdateRound < currRound) {\\n t.earningsPoolPerRound[currRound].setStake(currStake);\\n }\\n\\n t.earningsPoolPerRound[nextRound].setStake(newStake);\\n t.lastActiveStakeUpdateRound = nextRound;\\n } else {\\n // Check if the transcoder is eligible to join the active set in the update round\\n tryToJoinActiveSet(_delegate, newStake, nextRound, _newPosPrev, _newPosNext);\\n }\\n }\\n\\n // Increase delegate's delegated amount\\n delegators[_delegate].delegatedAmount = delegators[_delegate].delegatedAmount.add(_amount);\\n }\\n\\n /**\\n * @dev Decrease the total stake for a delegate and updates its 'lastActiveStakeUpdateRound'\\n * @param _delegate The transcoder to decrease the stake for\\n * @param _amount The amount to decrease the stake for '_delegate' by\\n */\\n function decreaseTotalStake(\\n address _delegate,\\n uint256 _amount,\\n address _newPosPrev,\\n address _newPosNext\\n ) internal {\\n if (transcoderPool.contains(_delegate)) {\\n uint256 currStake = transcoderTotalStake(_delegate);\\n uint256 newStake = currStake.sub(_amount);\\n uint256 currRound = roundsManager().currentRound();\\n uint256 nextRound = currRound.add(1);\\n\\n transcoderPool.updateKey(_delegate, newStake, _newPosPrev, _newPosNext);\\n nextRoundTotalActiveStake = nextRoundTotalActiveStake.sub(_amount);\\n Transcoder storage t = transcoders[_delegate];\\n\\n // currStake (the transcoder's delegatedAmount field) will reflect the transcoder's stake from lastActiveStakeUpdateRound\\n // because it is updated every time lastActiveStakeUpdateRound is updated\\n // The current active total stake is set to currStake to ensure that the value can be used in updateTranscoderWithRewards()\\n // and updateTranscoderWithFees() when lastActiveStakeUpdateRound > currentRound\\n if (t.lastActiveStakeUpdateRound < currRound) {\\n t.earningsPoolPerRound[currRound].setStake(currStake);\\n }\\n\\n t.lastActiveStakeUpdateRound = nextRound;\\n t.earningsPoolPerRound[nextRound].setStake(newStake);\\n }\\n\\n // Decrease old delegate's delegated amount\\n delegators[_delegate].delegatedAmount = delegators[_delegate].delegatedAmount.sub(_amount);\\n }\\n\\n /**\\n * @dev Tries to add a transcoder to active transcoder pool, evicts the active transcoder with the lowest stake if the pool is full\\n * @param _transcoder The transcoder to insert into the transcoder pool\\n * @param _totalStake The total stake for '_transcoder'\\n * @param _activationRound The round in which the transcoder should become active\\n */\\n function tryToJoinActiveSet(\\n address _transcoder,\\n uint256 _totalStake,\\n uint256 _activationRound,\\n address _newPosPrev,\\n address _newPosNext\\n ) internal {\\n uint256 pendingNextRoundTotalActiveStake = nextRoundTotalActiveStake;\\n\\n if (transcoderPool.isFull()) {\\n address lastTranscoder = transcoderPool.getLast();\\n uint256 lastStake = transcoderTotalStake(lastTranscoder);\\n\\n // If the pool is full and the transcoder has less stake than the least stake transcoder in the pool\\n // then the transcoder is unable to join the active set for the next round\\n if (_totalStake <= lastStake) {\\n return;\\n }\\n\\n // Evict the least stake transcoder from the active set for the next round\\n // Not zeroing 'Transcoder.lastActiveStakeUpdateRound' saves gas (5k when transcoder is evicted and 20k when transcoder is reinserted)\\n // There should be no side-effects as long as the value is properly updated on stake updates\\n // Not zeroing the stake on the current round's 'EarningsPool' saves gas and should have no side effects as long as\\n // 'EarningsPool.setStake()' is called whenever a transcoder becomes active again.\\n transcoderPool.remove(lastTranscoder);\\n transcoders[lastTranscoder].deactivationRound = _activationRound;\\n pendingNextRoundTotalActiveStake = pendingNextRoundTotalActiveStake.sub(lastStake);\\n\\n emit TranscoderDeactivated(lastTranscoder, _activationRound);\\n }\\n\\n transcoderPool.insert(_transcoder, _totalStake, _newPosPrev, _newPosNext);\\n pendingNextRoundTotalActiveStake = pendingNextRoundTotalActiveStake.add(_totalStake);\\n Transcoder storage t = transcoders[_transcoder];\\n t.lastActiveStakeUpdateRound = _activationRound;\\n t.activationRound = _activationRound;\\n t.deactivationRound = MAX_FUTURE_ROUND;\\n t.earningsPoolPerRound[_activationRound].setStake(_totalStake);\\n nextRoundTotalActiveStake = pendingNextRoundTotalActiveStake;\\n emit TranscoderActivated(_transcoder, _activationRound);\\n }\\n\\n /**\\n * @dev Remove a transcoder from the pool and deactivate it\\n */\\n function resignTranscoder(address _transcoder) internal {\\n // Not zeroing 'Transcoder.lastActiveStakeUpdateRound' saves gas (5k when transcoder is evicted and 20k when transcoder is reinserted)\\n // There should be no side-effects as long as the value is properly updated on stake updates\\n // Not zeroing the stake on the current round's 'EarningsPool' saves gas and should have no side effects as long as\\n // 'EarningsPool.setStake()' is called whenever a transcoder becomes active again.\\n transcoderPool.remove(_transcoder);\\n nextRoundTotalActiveStake = nextRoundTotalActiveStake.sub(transcoderTotalStake(_transcoder));\\n uint256 deactivationRound = roundsManager().currentRound().add(1);\\n transcoders[_transcoder].deactivationRound = deactivationRound;\\n emit TranscoderDeactivated(_transcoder, deactivationRound);\\n }\\n\\n /**\\n * @dev Update a transcoder with rewards and update the transcoder pool with an optional list hint if needed.\\n * See SortedDoublyLL.sol for details on list hints\\n * @param _transcoder Address of transcoder\\n * @param _rewards Amount of rewards\\n * @param _round Round that transcoder is updated\\n * @param _newPosPrev Address of previous transcoder in pool if the transcoder is in the pool\\n * @param _newPosNext Address of next transcoder in pool if the transcoder is in the pool\\n */\\n function updateTranscoderWithRewards(\\n address _transcoder,\\n uint256 _rewards,\\n uint256 _round,\\n address _newPosPrev,\\n address _newPosNext\\n ) internal {\\n Transcoder storage t = transcoders[_transcoder];\\n EarningsPool.Data storage earningsPool = t.earningsPoolPerRound[_round];\\n EarningsPool.Data memory prevEarningsPool = cumulativeFactorsPool(t, t.lastRewardRound);\\n\\n t.activeCumulativeRewards = t.cumulativeRewards;\\n\\n uint256 transcoderCommissionRewards = MathUtils.percOf(_rewards, earningsPool.transcoderRewardCut);\\n uint256 delegatorsRewards = _rewards.sub(transcoderCommissionRewards);\\n // Calculate the rewards earned by the transcoder's earned rewards\\n uint256 transcoderRewardStakeRewards = PreciseMathUtils.percOf(\\n delegatorsRewards,\\n t.activeCumulativeRewards,\\n earningsPool.totalStake\\n );\\n // Track rewards earned by the transcoder based on its earned rewards and rewardCut\\n t.cumulativeRewards = t.cumulativeRewards.add(transcoderRewardStakeRewards).add(transcoderCommissionRewards);\\n // Update cumulative reward factor with new rewards\\n // The cumulativeRewardFactor is used to calculate rewards for all delegators including the transcoder (self-delegated)\\n // Note that delegatorsRewards includes transcoderRewardStakeRewards, but no delegator will claim that amount using\\n // the earnings claiming algorithm and instead that amount is accounted for in the transcoder's cumulativeRewards field\\n earningsPool.updateCumulativeRewardFactor(prevEarningsPool, delegatorsRewards);\\n // Update transcoder's total stake with rewards\\n increaseTotalStake(_transcoder, _rewards, _newPosPrev, _newPosNext);\\n }\\n\\n /**\\n * @dev Update a delegator with token pools shares from its lastClaimRound through a given round\\n * @param _delegator Delegator address\\n * @param _endRound The last round for which to update a delegator's stake with earnings pool shares\\n * @param _lastClaimRound The round for which a delegator has last claimed earnings\\n */\\n function updateDelegatorWithEarnings(\\n address _delegator,\\n uint256 _endRound,\\n uint256 _lastClaimRound\\n ) internal {\\n Delegator storage del = delegators[_delegator];\\n uint256 startRound = _lastClaimRound.add(1);\\n uint256 currentBondedAmount = del.bondedAmount;\\n uint256 currentFees = del.fees;\\n\\n // Only will have earnings to claim if you have a delegate\\n // If not delegated, skip the earnings claim process\\n if (del.delegateAddress != address(0)) {\\n (currentBondedAmount, currentFees) = pendingStakeAndFees(_delegator, _endRound);\\n\\n // Check whether the endEarningsPool is initialised\\n // If it is not initialised set it's cumulative factors so that they can be used when a delegator\\n // next claims earnings as the start cumulative factors (see delegatorCumulativeStakeAndFees())\\n Transcoder storage t = transcoders[del.delegateAddress];\\n EarningsPool.Data storage endEarningsPool = t.earningsPoolPerRound[_endRound];\\n if (endEarningsPool.cumulativeRewardFactor == 0) {\\n uint256 lastRewardRound = t.lastRewardRound;\\n if (lastRewardRound < _endRound) {\\n endEarningsPool.cumulativeRewardFactor = cumulativeFactorsPool(t, lastRewardRound)\\n .cumulativeRewardFactor;\\n }\\n }\\n if (endEarningsPool.cumulativeFeeFactor == 0) {\\n uint256 lastFeeRound = t.lastFeeRound;\\n if (lastFeeRound < _endRound) {\\n endEarningsPool.cumulativeFeeFactor = cumulativeFactorsPool(t, lastFeeRound).cumulativeFeeFactor;\\n }\\n }\\n\\n if (del.delegateAddress == _delegator) {\\n t.cumulativeFees = 0;\\n t.cumulativeRewards = 0;\\n // activeCumulativeRewards is not cleared here because the next reward() call will set it to cumulativeRewards\\n }\\n }\\n\\n emit EarningsClaimed(\\n del.delegateAddress,\\n _delegator,\\n currentBondedAmount.sub(del.bondedAmount),\\n currentFees.sub(del.fees),\\n startRound,\\n _endRound\\n );\\n\\n del.lastClaimRound = _endRound;\\n // Rewards are bonded by default\\n del.bondedAmount = currentBondedAmount;\\n del.fees = currentFees;\\n }\\n\\n /**\\n * @dev Update the state of a delegator and its delegate by processing a rebond using an unbonding lock and update the transcoder pool with an optional\\n * list hint if needed. See SortedDoublyLL.sol for details on list hints\\n * @param _delegator Address of delegator\\n * @param _unbondingLockId ID of unbonding lock to rebond with\\n * @param _newPosPrev Address of previous transcoder in pool if the delegate is already in or joins the pool\\n * @param _newPosNext Address of next transcoder in pool if the delegate is already in or joins the pool\\n */\\n function processRebond(\\n address _delegator,\\n uint256 _unbondingLockId,\\n address _newPosPrev,\\n address _newPosNext\\n ) internal {\\n Delegator storage del = delegators[_delegator];\\n UnbondingLock storage lock = del.unbondingLocks[_unbondingLockId];\\n\\n require(isValidUnbondingLock(_delegator, _unbondingLockId), \\\"invalid unbonding lock ID\\\");\\n\\n uint256 amount = lock.amount;\\n // Increase delegator's bonded amount\\n del.bondedAmount = del.bondedAmount.add(amount);\\n\\n // Delete lock\\n delete del.unbondingLocks[_unbondingLockId];\\n\\n increaseTotalStake(del.delegateAddress, amount, _newPosPrev, _newPosNext);\\n\\n emit Rebond(del.delegateAddress, _delegator, _unbondingLockId, amount);\\n }\\n\\n /**\\n * @dev Return LivepeerToken interface\\n * @return Livepeer token contract registered with Controller\\n */\\n function livepeerToken() internal view returns (ILivepeerToken) {\\n return ILivepeerToken(controller.getContract(keccak256(\\\"LivepeerToken\\\")));\\n }\\n\\n /**\\n * @dev Return Minter interface\\n * @return Minter contract registered with Controller\\n */\\n function minter() internal view returns (IMinter) {\\n return IMinter(controller.getContract(keccak256(\\\"Minter\\\")));\\n }\\n\\n /**\\n * @dev Return RoundsManager interface\\n * @return RoundsManager contract registered with Controller\\n */\\n function roundsManager() internal view returns (IRoundsManager) {\\n return IRoundsManager(controller.getContract(keccak256(\\\"RoundsManager\\\")));\\n }\\n\\n function _onlyTicketBroker() internal view {\\n require(msg.sender == controller.getContract(keccak256(\\\"TicketBroker\\\")), \\\"caller must be TicketBroker\\\");\\n }\\n\\n function _onlyRoundsManager() internal view {\\n require(msg.sender == controller.getContract(keccak256(\\\"RoundsManager\\\")), \\\"caller must be RoundsManager\\\");\\n }\\n\\n function _onlyVerifier() internal view {\\n require(msg.sender == controller.getContract(keccak256(\\\"Verifier\\\")), \\\"caller must be Verifier\\\");\\n }\\n\\n function _currentRoundInitialized() internal view {\\n require(roundsManager().currentRoundInitialized(), \\\"current round is not initialized\\\");\\n }\\n\\n function _autoClaimEarnings() internal {\\n uint256 currentRound = roundsManager().currentRound();\\n uint256 lastClaimRound = delegators[msg.sender].lastClaimRound;\\n if (lastClaimRound < currentRound) {\\n updateDelegatorWithEarnings(msg.sender, currentRound, lastClaimRound);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xe1bbb7de3d413515bb96cd745429e4bbb3f68f7fcc1a275dc31827472df9162d\",\"license\":\"MIT\"},\"contracts/bonding/IBondingManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Interface for BondingManager\\n * TODO: switch to interface type\\n */\\ninterface IBondingManager {\\n event TranscoderUpdate(address indexed transcoder, uint256 rewardCut, uint256 feeShare);\\n event TranscoderActivated(address indexed transcoder, uint256 activationRound);\\n event TranscoderDeactivated(address indexed transcoder, uint256 deactivationRound);\\n event TranscoderSlashed(address indexed transcoder, address finder, uint256 penalty, uint256 finderReward);\\n event Reward(address indexed transcoder, uint256 amount);\\n event Bond(\\n address indexed newDelegate,\\n address indexed oldDelegate,\\n address indexed delegator,\\n uint256 additionalAmount,\\n uint256 bondedAmount\\n );\\n event Unbond(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 unbondingLockId,\\n uint256 amount,\\n uint256 withdrawRound\\n );\\n event Rebond(address indexed delegate, address indexed delegator, uint256 unbondingLockId, uint256 amount);\\n event TransferBond(\\n address indexed oldDelegator,\\n address indexed newDelegator,\\n uint256 oldUnbondingLockId,\\n uint256 newUnbondingLockId,\\n uint256 amount\\n );\\n event WithdrawStake(address indexed delegator, uint256 unbondingLockId, uint256 amount, uint256 withdrawRound);\\n event WithdrawFees(address indexed delegator, address recipient, uint256 amount);\\n event EarningsClaimed(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 rewards,\\n uint256 fees,\\n uint256 startRound,\\n uint256 endRound\\n );\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event Bond(address indexed delegate, address indexed delegator);\\n // event Unbond(address indexed delegate, address indexed delegator);\\n // event WithdrawStake(address indexed delegator);\\n // event TranscoderUpdate(address indexed transcoder, uint256 pendingRewardCut, uint256 pendingFeeShare, uint256 pendingPricePerSegment, bool registered);\\n // event TranscoderEvicted(address indexed transcoder);\\n // event TranscoderResigned(address indexed transcoder);\\n\\n // External functions\\n function updateTranscoderWithFees(\\n address _transcoder,\\n uint256 _fees,\\n uint256 _round\\n ) external;\\n\\n function slashTranscoder(\\n address _transcoder,\\n address _finder,\\n uint256 _slashAmount,\\n uint256 _finderFee\\n ) external;\\n\\n function setCurrentRoundTotalActiveStake() external;\\n\\n // Public functions\\n function getTranscoderPoolSize() external view returns (uint256);\\n\\n function transcoderTotalStake(address _transcoder) external view returns (uint256);\\n\\n function isActiveTranscoder(address _transcoder) external view returns (bool);\\n\\n function getTotalBonded() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x6406378868b556ca91b1ab6cccd036695c8984d30a225f75a5979cb9aa7c1df2\",\"license\":\"MIT\"},\"contracts/bonding/libraries/EarningsPool.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../../libraries/MathUtils.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\n/**\\n * @title EarningsPool\\n * @dev Manages reward and fee pools for delegators and transcoders\\n */\\nlibrary EarningsPool {\\n using SafeMath for uint256;\\n\\n struct Data {\\n uint256 totalStake; // Transcoder's total stake during the earnings pool's round\\n uint256 transcoderRewardCut; // Transcoder's reward cut during the earnings pool's round\\n uint256 transcoderFeeShare; // Transcoder's fee share during the earnings pool's round\\n // LIP-36 (https://github.com/livepeer/LIPs/blob/master/LIPs/LIP-36.md) fields\\n // See EarningsPoolLIP36.sol\\n uint256 cumulativeRewardFactor;\\n uint256 cumulativeFeeFactor;\\n }\\n\\n /**\\n * @dev Sets transcoderRewardCut and transcoderFeeshare for an EarningsPool\\n * @param earningsPool Storage pointer to EarningsPool struct\\n * @param _rewardCut Reward cut of transcoder during the earnings pool's round\\n * @param _feeShare Fee share of transcoder during the earnings pool's round\\n */\\n function setCommission(\\n EarningsPool.Data storage earningsPool,\\n uint256 _rewardCut,\\n uint256 _feeShare\\n ) internal {\\n earningsPool.transcoderRewardCut = _rewardCut;\\n earningsPool.transcoderFeeShare = _feeShare;\\n }\\n\\n /**\\n * @dev Sets totalStake for an EarningsPool\\n * @param earningsPool Storage pointer to EarningsPool struct\\n * @param _stake Total stake of the transcoder during the earnings pool's round\\n */\\n function setStake(EarningsPool.Data storage earningsPool, uint256 _stake) internal {\\n earningsPool.totalStake = _stake;\\n }\\n}\\n\",\"keccak256\":\"0x0a281920caf1429fc6afe7de303b8067c182190a450a190c8b9dc282aa7edfa0\",\"license\":\"MIT\"},\"contracts/bonding/libraries/EarningsPoolLIP36.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./EarningsPool.sol\\\";\\nimport \\\"../../libraries/PreciseMathUtils.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nlibrary EarningsPoolLIP36 {\\n using SafeMath for uint256;\\n\\n /**\\n * @notice Update the cumulative fee factor stored in an earnings pool with new fees\\n * @param earningsPool Storage pointer to EarningsPools.Data struct\\n * @param _prevEarningsPool In-memory EarningsPool.Data struct that stores the previous cumulative reward and fee factors\\n * @param _fees Amount of new fees\\n */\\n function updateCumulativeFeeFactor(\\n EarningsPool.Data storage earningsPool,\\n EarningsPool.Data memory _prevEarningsPool,\\n uint256 _fees\\n ) internal {\\n uint256 prevCumulativeFeeFactor = _prevEarningsPool.cumulativeFeeFactor;\\n uint256 prevCumulativeRewardFactor = _prevEarningsPool.cumulativeRewardFactor != 0\\n ? _prevEarningsPool.cumulativeRewardFactor\\n : PreciseMathUtils.percPoints(1, 1);\\n\\n // Initialize the cumulativeFeeFactor when adding fees for the first time\\n if (earningsPool.cumulativeFeeFactor == 0) {\\n earningsPool.cumulativeFeeFactor = prevCumulativeFeeFactor.add(\\n PreciseMathUtils.percOf(prevCumulativeRewardFactor, _fees, earningsPool.totalStake)\\n );\\n return;\\n }\\n\\n earningsPool.cumulativeFeeFactor = earningsPool.cumulativeFeeFactor.add(\\n PreciseMathUtils.percOf(prevCumulativeRewardFactor, _fees, earningsPool.totalStake)\\n );\\n }\\n\\n /**\\n * @notice Update the cumulative reward factor stored in an earnings pool with new rewards\\n * @param earningsPool Storage pointer to EarningsPool.Data struct\\n * @param _prevEarningsPool Storage pointer to EarningsPool.Data struct that stores the previous cumulative reward factor\\n * @param _rewards Amount of new rewards\\n */\\n function updateCumulativeRewardFactor(\\n EarningsPool.Data storage earningsPool,\\n EarningsPool.Data memory _prevEarningsPool,\\n uint256 _rewards\\n ) internal {\\n uint256 prevCumulativeRewardFactor = _prevEarningsPool.cumulativeRewardFactor != 0\\n ? _prevEarningsPool.cumulativeRewardFactor\\n : PreciseMathUtils.percPoints(1, 1);\\n\\n earningsPool.cumulativeRewardFactor = prevCumulativeRewardFactor.add(\\n PreciseMathUtils.percOf(prevCumulativeRewardFactor, _rewards, earningsPool.totalStake)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xbcdc25cc40f8c62d38ed116d67b6c05469cc32e1fc97846e853f7860f29ac8e7\",\"license\":\"MIT\"},\"contracts/libraries/MathUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nlibrary MathUtils {\\n using SafeMath for uint256;\\n\\n // Divisor used for representing percentages\\n uint256 public constant PERC_DIVISOR = 1000000;\\n\\n /**\\n * @dev Returns whether an amount is a valid percentage out of PERC_DIVISOR\\n * @param _amount Amount that is supposed to be a percentage\\n */\\n function validPerc(uint256 _amount) internal pure returns (bool) {\\n return _amount <= PERC_DIVISOR;\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage\\n * @param _fracDenom Denominator of fraction representing the percentage\\n */\\n function percOf(\\n uint256 _amount,\\n uint256 _fracNum,\\n uint256 _fracDenom\\n ) internal pure returns (uint256) {\\n return _amount.mul(percPoints(_fracNum, _fracDenom)).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction over PERC_DIVISOR\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage with PERC_DIVISOR as the denominator\\n */\\n function percOf(uint256 _amount, uint256 _fracNum) internal pure returns (uint256) {\\n return _amount.mul(_fracNum).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage representation of a fraction\\n * @param _fracNum Numerator of fraction represeting the percentage\\n * @param _fracDenom Denominator of fraction represeting the percentage\\n */\\n function percPoints(uint256 _fracNum, uint256 _fracDenom) internal pure returns (uint256) {\\n return _fracNum.mul(PERC_DIVISOR).div(_fracDenom);\\n }\\n}\\n\",\"keccak256\":\"0x1df26c159dc63d804d3fda28e41b18487e8619009082c56e013aa6c9a58de253\",\"license\":\"MIT\"},\"contracts/libraries/PreciseMathUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nlibrary PreciseMathUtils {\\n using SafeMath for uint256;\\n\\n // Divisor used for representing percentages\\n uint256 public constant PERC_DIVISOR = 10**27;\\n\\n /**\\n * @dev Returns whether an amount is a valid percentage out of PERC_DIVISOR\\n * @param _amount Amount that is supposed to be a percentage\\n */\\n function validPerc(uint256 _amount) internal pure returns (bool) {\\n return _amount <= PERC_DIVISOR;\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage\\n * @param _fracDenom Denominator of fraction representing the percentage\\n */\\n function percOf(\\n uint256 _amount,\\n uint256 _fracNum,\\n uint256 _fracDenom\\n ) internal pure returns (uint256) {\\n return _amount.mul(percPoints(_fracNum, _fracDenom)).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction over PERC_DIVISOR\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage with PERC_DIVISOR as the denominator\\n */\\n function percOf(uint256 _amount, uint256 _fracNum) internal pure returns (uint256) {\\n return _amount.mul(_fracNum).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage representation of a fraction\\n * @param _fracNum Numerator of fraction represeting the percentage\\n * @param _fracDenom Denominator of fraction represeting the percentage\\n */\\n function percPoints(uint256 _fracNum, uint256 _fracDenom) internal pure returns (uint256) {\\n return _fracNum.mul(PERC_DIVISOR).div(_fracDenom);\\n }\\n}\\n\",\"keccak256\":\"0x89ebb6e1db8b184d655c6c2726e3fd862a239767f8d249ca376b286ade675a9d\",\"license\":\"MIT\"},\"contracts/libraries/SortedDoublyLL.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\n/**\\n * @title A sorted doubly linked list with nodes sorted in descending order. Optionally accepts insert position hints\\n *\\n * Given a new node with a `key`, a hint is of the form `(prevId, nextId)` s.t. `prevId` and `nextId` are adjacent in the list.\\n * `prevId` is a node with a key >= `key` and `nextId` is a node with a key <= `key`. If the sender provides a hint that is a valid insert position\\n * the insert operation is a constant time storage write. However, the provided hint in a given transaction might be a valid insert position, but if other transactions are included first, when\\n * the given transaction is executed the provided hint may no longer be a valid insert position. For example, one of the nodes referenced might be removed or their keys may\\n * be updated such that the the pair of nodes in the hint no longer represent a valid insert position. If one of the nodes in the hint becomes invalid, we still try to use the other\\n * valid node as a starting point for finding the appropriate insert position. If both nodes in the hint become invalid, we use the head of the list as a starting point\\n * to find the appropriate insert position.\\n */\\nlibrary SortedDoublyLL {\\n using SafeMath for uint256;\\n\\n // Information for a node in the list\\n struct Node {\\n uint256 key; // Node's key used for sorting\\n address nextId; // Id of next node (smaller key) in the list\\n address prevId; // Id of previous node (larger key) in the list\\n }\\n\\n // Information for the list\\n struct Data {\\n address head; // Head of the list. Also the node in the list with the largest key\\n address tail; // Tail of the list. Also the node in the list with the smallest key\\n uint256 maxSize; // Maximum size of the list\\n uint256 size; // Current size of the list\\n mapping(address => Node) nodes; // Track the corresponding ids for each node in the list\\n }\\n\\n /**\\n * @dev Set the maximum size of the list\\n * @param _size Maximum size\\n */\\n function setMaxSize(Data storage self, uint256 _size) public {\\n require(_size > self.maxSize, \\\"new max size must be greater than old max size\\\");\\n\\n self.maxSize = _size;\\n }\\n\\n /**\\n * @dev Add a node to the list\\n * @param _id Node's id\\n * @param _key Node's key\\n * @param _prevId Id of previous node for the insert position\\n * @param _nextId Id of next node for the insert position\\n */\\n function insert(\\n Data storage self,\\n address _id,\\n uint256 _key,\\n address _prevId,\\n address _nextId\\n ) public {\\n // List must not be full\\n require(!isFull(self), \\\"list is full\\\");\\n // List must not already contain node\\n require(!contains(self, _id), \\\"node already in list\\\");\\n // Node id must not be null\\n require(_id != address(0), \\\"node id is null\\\");\\n // Key must be non-zero\\n require(_key > 0, \\\"key is zero\\\");\\n\\n address prevId = _prevId;\\n address nextId = _nextId;\\n\\n if (!validInsertPosition(self, _key, prevId, nextId)) {\\n // Sender's hint was not a valid insert position\\n // Use sender's hint to find a valid insert position\\n (prevId, nextId) = findInsertPosition(self, _key, prevId, nextId);\\n }\\n\\n self.nodes[_id].key = _key;\\n\\n if (prevId == address(0) && nextId == address(0)) {\\n // Insert as head and tail\\n self.head = _id;\\n self.tail = _id;\\n } else if (prevId == address(0)) {\\n // Insert before `prevId` as the head\\n self.nodes[_id].nextId = self.head;\\n self.nodes[self.head].prevId = _id;\\n self.head = _id;\\n } else if (nextId == address(0)) {\\n // Insert after `nextId` as the tail\\n self.nodes[_id].prevId = self.tail;\\n self.nodes[self.tail].nextId = _id;\\n self.tail = _id;\\n } else {\\n // Insert at insert position between `prevId` and `nextId`\\n self.nodes[_id].nextId = nextId;\\n self.nodes[_id].prevId = prevId;\\n self.nodes[prevId].nextId = _id;\\n self.nodes[nextId].prevId = _id;\\n }\\n\\n self.size = self.size.add(1);\\n }\\n\\n /**\\n * @dev Remove a node from the list\\n * @param _id Node's id\\n */\\n function remove(Data storage self, address _id) public {\\n // List must contain the node\\n require(contains(self, _id), \\\"node not in list\\\");\\n\\n if (self.size > 1) {\\n // List contains more than a single node\\n if (_id == self.head) {\\n // The removed node is the head\\n // Set head to next node\\n self.head = self.nodes[_id].nextId;\\n // Set prev pointer of new head to null\\n self.nodes[self.head].prevId = address(0);\\n } else if (_id == self.tail) {\\n // The removed node is the tail\\n // Set tail to previous node\\n self.tail = self.nodes[_id].prevId;\\n // Set next pointer of new tail to null\\n self.nodes[self.tail].nextId = address(0);\\n } else {\\n // The removed node is neither the head nor the tail\\n // Set next pointer of previous node to the next node\\n self.nodes[self.nodes[_id].prevId].nextId = self.nodes[_id].nextId;\\n // Set prev pointer of next node to the previous node\\n self.nodes[self.nodes[_id].nextId].prevId = self.nodes[_id].prevId;\\n }\\n } else {\\n // List contains a single node\\n // Set the head and tail to null\\n self.head = address(0);\\n self.tail = address(0);\\n }\\n\\n delete self.nodes[_id];\\n self.size = self.size.sub(1);\\n }\\n\\n /**\\n * @dev Update the key of a node in the list\\n * @param _id Node's id\\n * @param _newKey Node's new key\\n * @param _prevId Id of previous node for the new insert position\\n * @param _nextId Id of next node for the new insert position\\n */\\n function updateKey(\\n Data storage self,\\n address _id,\\n uint256 _newKey,\\n address _prevId,\\n address _nextId\\n ) public {\\n // List must contain the node\\n require(contains(self, _id), \\\"node not in list\\\");\\n\\n // Remove node from the list\\n remove(self, _id);\\n\\n if (_newKey > 0) {\\n // Insert node if it has a non-zero key\\n insert(self, _id, _newKey, _prevId, _nextId);\\n }\\n }\\n\\n /**\\n * @dev Checks if the list contains a node\\n * @param _id Address of transcoder\\n * @return true if '_id' is in list\\n */\\n function contains(Data storage self, address _id) public view returns (bool) {\\n // List only contains non-zero keys, so if key is non-zero the node exists\\n return self.nodes[_id].key > 0;\\n }\\n\\n /**\\n * @dev Checks if the list is full\\n * @return true if list is full\\n */\\n function isFull(Data storage self) public view returns (bool) {\\n return self.size == self.maxSize;\\n }\\n\\n /**\\n * @dev Checks if the list is empty\\n * @return true if list is empty\\n */\\n function isEmpty(Data storage self) public view returns (bool) {\\n return self.size == 0;\\n }\\n\\n /**\\n * @dev Returns the current size of the list\\n * @return current size of the list\\n */\\n function getSize(Data storage self) public view returns (uint256) {\\n return self.size;\\n }\\n\\n /**\\n * @dev Returns the maximum size of the list\\n */\\n function getMaxSize(Data storage self) public view returns (uint256) {\\n return self.maxSize;\\n }\\n\\n /**\\n * @dev Returns the key of a node in the list\\n * @param _id Node's id\\n * @return key for node with '_id'\\n */\\n function getKey(Data storage self, address _id) public view returns (uint256) {\\n return self.nodes[_id].key;\\n }\\n\\n /**\\n * @dev Returns the first node in the list (node with the largest key)\\n * @return address for the head of the list\\n */\\n function getFirst(Data storage self) public view returns (address) {\\n return self.head;\\n }\\n\\n /**\\n * @dev Returns the last node in the list (node with the smallest key)\\n * @return address for the tail of the list\\n */\\n function getLast(Data storage self) public view returns (address) {\\n return self.tail;\\n }\\n\\n /**\\n * @dev Returns the next node (with a smaller key) in the list for a given node\\n * @param _id Node's id\\n * @return address for the node following node in list with '_id'\\n */\\n function getNext(Data storage self, address _id) public view returns (address) {\\n return self.nodes[_id].nextId;\\n }\\n\\n /**\\n * @dev Returns the previous node (with a larger key) in the list for a given node\\n * @param _id Node's id\\n * address for the node before node in list with '_id'\\n */\\n function getPrev(Data storage self, address _id) public view returns (address) {\\n return self.nodes[_id].prevId;\\n }\\n\\n /**\\n * @dev Check if a pair of nodes is a valid insertion point for a new node with the given key\\n * @param _key Node's key\\n * @param _prevId Id of previous node for the insert position\\n * @param _nextId Id of next node for the insert position\\n * @return if the insert position is valid\\n */\\n function validInsertPosition(\\n Data storage self,\\n uint256 _key,\\n address _prevId,\\n address _nextId\\n ) public view returns (bool) {\\n if (_prevId == address(0) && _nextId == address(0)) {\\n // `(null, null)` is a valid insert position if the list is empty\\n return isEmpty(self);\\n } else if (_prevId == address(0)) {\\n // `(null, _nextId)` is a valid insert position if `_nextId` is the head of the list\\n return self.head == _nextId && _key >= self.nodes[_nextId].key;\\n } else if (_nextId == address(0)) {\\n // `(_prevId, null)` is a valid insert position if `_prevId` is the tail of the list\\n return self.tail == _prevId && _key <= self.nodes[_prevId].key;\\n } else {\\n // `(_prevId, _nextId)` is a valid insert position if they are adjacent nodes and `_key` falls between the two nodes' keys\\n return\\n self.nodes[_prevId].nextId == _nextId &&\\n self.nodes[_prevId].key >= _key &&\\n _key >= self.nodes[_nextId].key;\\n }\\n }\\n\\n /**\\n * @dev Descend the list (larger keys to smaller keys) to find a valid insert position\\n * @param _key Node's key\\n * @param _startId Id of node to start ascending the list from\\n */\\n function descendList(\\n Data storage self,\\n uint256 _key,\\n address _startId\\n ) private view returns (address, address) {\\n // If `_startId` is the head, check if the insert position is before the head\\n if (self.head == _startId && _key >= self.nodes[_startId].key) {\\n return (address(0), _startId);\\n }\\n\\n address prevId = _startId;\\n address nextId = self.nodes[prevId].nextId;\\n\\n // Descend the list until we reach the end or until we find a valid insert position\\n while (prevId != address(0) && !validInsertPosition(self, _key, prevId, nextId)) {\\n prevId = self.nodes[prevId].nextId;\\n nextId = self.nodes[prevId].nextId;\\n }\\n\\n return (prevId, nextId);\\n }\\n\\n /**\\n * @dev Ascend the list (smaller keys to larger keys) to find a valid insert position\\n * @param _key Node's key\\n * @param _startId Id of node to start descending the list from\\n */\\n function ascendList(\\n Data storage self,\\n uint256 _key,\\n address _startId\\n ) private view returns (address, address) {\\n // If `_startId` is the tail, check if the insert position is after the tail\\n if (self.tail == _startId && _key <= self.nodes[_startId].key) {\\n return (_startId, address(0));\\n }\\n\\n address nextId = _startId;\\n address prevId = self.nodes[nextId].prevId;\\n\\n // Ascend the list until we reach the end or until we find a valid insertion point\\n while (nextId != address(0) && !validInsertPosition(self, _key, prevId, nextId)) {\\n nextId = self.nodes[nextId].prevId;\\n prevId = self.nodes[nextId].prevId;\\n }\\n\\n return (prevId, nextId);\\n }\\n\\n /**\\n * @dev Find the insert position for a new node with the given key\\n * @param _key Node's key\\n * @param _prevId Id of previous node for the insert position\\n * @param _nextId Id of next node for the insert position\\n */\\n function findInsertPosition(\\n Data storage self,\\n uint256 _key,\\n address _prevId,\\n address _nextId\\n ) private view returns (address, address) {\\n address prevId = _prevId;\\n address nextId = _nextId;\\n\\n if (prevId != address(0)) {\\n if (!contains(self, prevId) || _key > self.nodes[prevId].key) {\\n // `prevId` does not exist anymore or now has a smaller key than the given key\\n prevId = address(0);\\n }\\n }\\n\\n if (nextId != address(0)) {\\n if (!contains(self, nextId) || _key < self.nodes[nextId].key) {\\n // `nextId` does not exist anymore or now has a larger key than the given key\\n nextId = address(0);\\n }\\n }\\n\\n if (prevId == address(0) && nextId == address(0)) {\\n // No hint - descend list starting from head\\n return descendList(self, _key, self.head);\\n } else if (prevId == address(0)) {\\n // No `prevId` for hint - ascend list starting from `nextId`\\n return ascendList(self, _key, nextId);\\n } else if (nextId == address(0)) {\\n // No `nextId` for hint - descend list starting from `prevId`\\n return descendList(self, _key, prevId);\\n } else {\\n // Descend list starting from `prevId`\\n return descendList(self, _key, prevId);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdd26a77d6b76a7885f1a59c4b8cc6b8c1e21382012cbd9da136529160370e216\",\"license\":\"MIT\"},\"contracts/rounds/IRoundsManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title RoundsManager interface\\n */\\ninterface IRoundsManager {\\n // Events\\n event NewRound(uint256 indexed round, bytes32 blockHash);\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event NewRound(uint256 round)\\n\\n // External functions\\n function initializeRound() external;\\n\\n function lipUpgradeRound(uint256 _lip) external view returns (uint256);\\n\\n // Public functions\\n function blockNum() external view returns (uint256);\\n\\n function blockHash(uint256 _block) external view returns (bytes32);\\n\\n function blockHashForRound(uint256 _round) external view returns (bytes32);\\n\\n function currentRound() external view returns (uint256);\\n\\n function currentRoundStartBlock() external view returns (uint256);\\n\\n function currentRoundInitialized() external view returns (bool);\\n\\n function currentRoundLocked() external view returns (bool);\\n}\\n\",\"keccak256\":\"0xfc453a476bb68b874c21678a128b46ffcad0af69008e0e3e857d46499214f75f\",\"license\":\"MIT\"},\"contracts/snapshots/IMerkleSnapshot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\ninterface IMerkleSnapshot {\\n function verify(\\n bytes32 _id,\\n bytes32[] calldata _proof,\\n bytes32 _leaf\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xdc35b4faac2739b596a0773123dfe4dadfe3ecabc2ac48325b4732146cd90180\",\"license\":\"MIT\"},\"contracts/token/ILivepeerToken.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\ninterface ILivepeerToken is IERC20 {\\n function mint(address _to, uint256 _amount) external;\\n\\n function burn(uint256 _amount) external;\\n}\\n\",\"keccak256\":\"0xe9f35b4fd415a199993ac13e273149f9f8f2cf3d14c06927f05c40a9d6d048e1\",\"license\":\"MIT\"},\"contracts/token/IMinter.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../IController.sol\\\";\\n\\n/**\\n * @title Minter interface\\n */\\ninterface IMinter {\\n // Events\\n event SetCurrentRewardTokens(uint256 currentMintableTokens, uint256 currentInflation);\\n\\n // External functions\\n function createReward(uint256 _fracNum, uint256 _fracDenom) external returns (uint256);\\n\\n function trustedTransferTokens(address _to, uint256 _amount) external;\\n\\n function trustedBurnTokens(uint256 _amount) external;\\n\\n function trustedWithdrawETH(address payable _to, uint256 _amount) external;\\n\\n function depositETH() external payable returns (bool);\\n\\n function setCurrentRewardTokens() external;\\n\\n function currentMintableTokens() external view returns (uint256);\\n\\n function currentMintedTokens() external view returns (uint256);\\n\\n // Public functions\\n function getController() external view returns (IController);\\n}\\n\",\"keccak256\":\"0x3fbb7a4239a8b5979fb4c45a41495e9694a9f454de82dca3cf6a14dfe71255c7\",\"license\":\"MIT\"},\"contracts/zeppelin/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Ownable\\n * @dev The Ownable contract has an owner address, and provides basic authorization control\\n * functions, this simplifies the implementation of \\\"user permissions\\\".\\n */\\ncontract Ownable {\\n address public owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\\n * account.\\n */\\n constructor() {\\n owner = msg.sender;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(msg.sender == owner);\\n _;\\n }\\n\\n /**\\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\\n * @param newOwner The address to transfer ownership to.\\n */\\n function transferOwnership(address newOwner) public onlyOwner {\\n require(newOwner != address(0));\\n emit OwnershipTransferred(owner, newOwner);\\n owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x64f114689f2f161c4a4b8fc8442ab914436a33e6021bf17401eaeac73319a419\",\"license\":\"MIT\"},\"contracts/zeppelin/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Ownable.sol\\\";\\n\\n/**\\n * @title Pausable\\n * @dev Base contract which allows children to implement an emergency stop mechanism.\\n */\\ncontract Pausable is Ownable {\\n event Pause();\\n event Unpause();\\n\\n bool public paused;\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused);\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n */\\n modifier whenPaused() {\\n require(paused);\\n _;\\n }\\n\\n /**\\n * @dev called by the owner to pause, triggers stopped state\\n */\\n function pause() public onlyOwner whenNotPaused {\\n paused = true;\\n emit Pause();\\n }\\n\\n /**\\n * @dev called by the owner to unpause, returns to normal state\\n */\\n function unpause() public onlyOwner whenPaused {\\n paused = false;\\n emit Unpause();\\n }\\n}\\n\",\"keccak256\":\"0xe9635fcac46c22547a08f6977a8c75e7341411f1201f60bdd4c79c26e6c286ef\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b50604051620049753803806200497583398101604081905262000034916200005a565b600080546001600160a01b0319166001600160a01b03929092169190911790556200008c565b6000602082840312156200006d57600080fd5b81516001600160a01b03811681146200008557600080fd5b9392505050565b6148d9806200009c6000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80635c50c3561161015c57806392eefe9b116100ce578063b78d27dc11610087578063b78d27dc14610751578063eaffb3f914610764578063ee4e804a14610777578063f10d1de11461078a578063f595f1cc1461079d578063f77c4791146107b057600080fd5b806392eefe9b146106545780639500ed9b146106675780639d0b2c7a1461067a5780639ef9df941461068d578063a64ad595146106a0578063ad3b1b471461073e57600080fd5b80636cf6d675116101205780636cf6d675146105d1578063713f2216146105fe5780637fc4606f14610606578063818710561461061957806388a6c7491461062c5780638b2f16521461063457600080fd5b80635c50c356146104de5780635dce9948146104e6578063673a456b1461059857806368ba170c146105ab5780636bd9add4146105be57600080fd5b806327de9e32116101f5578063412f83b6116101b9578063412f83b6146104515780634196ee75146104a857806343d3461a146104b1578063465501d3146104c457806351720b41146104cd5780635a2a75a9146104d657600080fd5b806327de9e32146103ef5780632a4e0d55146104025780633550aa10146104185780633a080e931461042b5780633aeb512c1461043e57600080fd5b8063228cb73311610247578063228cb7331461030757806322bf9d7c1461030f578063235c96031461032257806324454fc41461034d57806324b1babf146103c957806325d5971f146103dc57600080fd5b80630584a37314610284578063062e98b81461029957806308802374146102ac5780630fd02fc1146102d45780631544fc67146102e7575b600080fd5b6102976102923660046143c7565b6107c3565b005b6102976102a736600461441a565b610913565b6102bf6102ba366004614493565b610b8e565b60405190151581526020015b60405180910390f35b6102bf6102e23660046144b0565b610c40565b6102fa6102f5366004614493565b610c71565b6040516102cb91906144f2565b610297610d2d565b61029761031d36600461450c565b610d3a565b610335610330366004614493565b611111565b6040516001600160a01b0390911681526020016102cb565b6103a161035b3660046144b0565b6001600160a01b03909116600090815260046020818152604080842094845260039485019091529091208054600182015460028301549483015492909301549094929392565b604080519586526020860194909452928401919091526060830152608082015260a0016102cb565b6102976103d7366004614552565b6111ac565b6102976103ea366004614552565b6111c7565b6102976103fd366004614552565b611407565b61040a611413565b6040519081526020016102cb565b61029761042636600461456b565b61149f565b6102976104393660046144b0565b6118d3565b61029761044c36600461459a565b6118e4565b61049361045f3660046144b0565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522080546001909101549091565b604080519283526020830191909152016102cb565b61040a60055481565b6102976104bf3660046145cf565b611beb565b61040a60065481565b61040a60015481565b61040a611bf8565b60055461040a565b61054e6104f4366004614493565b6001600160a01b031660009081526004602081905260409091208054600182015460028301549383015460058401546006850154600786015460088701546009880154600a90980154969995989794969395929491939092565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016102cb565b6102976105a6366004614552565b611c33565b6102bf6105b9366004614493565b611d06565b6102976105cc3660046145f1565b611d3e565b6002546105e59067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102cb565b610297611d55565b61029761061436600461462c565b611d65565b61029761062736600461466e565b611df0565b610335612093565b610647610642366004614493565b612119565b6040516102cb91906146a7565b610297610662366004614493565b612139565b61029761067536600461462c565b61218f565b61040a6106883660046144b0565b6124e8565b61040a61069b366004614493565b61257b565b6106fb6106ae366004614493565b6001600160a01b0390811660009081526003602081905260409091208054600182015460028301549383015460048401546005850154600690950154939792969590951694909390929091565b6040805197885260208801969096526001600160a01b03909416948601949094526060850191909152608084015260a083019190915260c082015260e0016102cb565b61029761074c3660046144b0565b61259a565b61029761075f3660046146bb565b612731565b610297610772366004614552565b612741565b6102976107853660046146e0565b61274d565b61029761079836600461476d565b612b30565b61040a6107ab3660046144b0565b612ba9565b600054610335906001600160a01b031681565b6107cb612c3c565b6107d3612d00565b6107db612dc4565b60026107e633610c71565b60028111156107f7576107f76144dc565b146108495760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d75737420626520756e626f6e64656400000000000000000060448201526064015b60405180910390fd5b6108cc6001610856612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088e57600080fd5b505afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190614797565b90612ee0565b3360008181526003602052604090206004810192909255600290910180546001600160a01b0319166001600160a01b03871617905561090d90848484612eec565b50505050565b61091b612c3c565b610923612d00565b61092b612dc4565b33600090815260036020526040902060028101546001600160a01b031661095387878761218f565b6001600160a01b0388166000908152600360205260408120600684015490919061097e906001612ffc565b905060008460070160008381526020019081526020016000206001015490508460070160008381526020019081526020016000206000808201600090556001820160009055505060008360060154905060405180604001604052808c8152602001838152508460070160008381526020019081526020016000206000820151816000015560208201518160010155905050610a2760018560060154612ee090919063ffffffff16565b600685015560408051848152602081018390529081018c90526001600160a01b038d169033907ff136b986590e86cf1abd7b6600186a7a1178ad3cbbdf0f3312e79f6214a2a5679060600160405180910390a36000610a84612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610abc57600080fd5b505afa158015610ad0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af49190614797565b600586015490915081811015610b0f57610b0f8e8383613008565b60028601546001600160a01b0316610b3f576002860180546001600160a01b0319166001600160a01b0389161790555b6002610b4a8f610c71565b6002811115610b5b57610b5b6144dc565b1415610b7257610b6c826001612ee0565b60048701555b610b7e8e848c8c612eec565b5050505050505050505050505050565b6001600160a01b038116600090815260046020526040812081610baf612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610be757600080fd5b505afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f9190614797565b905080826005015411158015610c385750816006015481105b949350505050565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522060010154151590565b6001600160a01b03811660009081526003602052604081208054610c985750600292915050565b610ca0612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cd857600080fd5b505afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d109190614797565b81600401541115610d245750600092915050565b50600192915050565b610d38600080611df0565b565b610d42612c3c565b610d4a613194565b6001600160a01b03841660009081526003602052604090208054156110b6576001600160a01b038516600090815260036020526040812054610d8c908561328f565b60405163b0138c4760e01b8152600760048201526001600160a01b038816602482015290915073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b0138c479060440160206040518083038186803b158015610de957600080fd5b505af4158015610dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2191906147b0565b15610e2f57610e2f866132a8565b8154610e3b9082612ffc565b82556001610e4887610c71565b6002811115610e5957610e596144dc565b1415610eac5760028201546001600160a01b031660009081526003602081905260409091200154610e8a9082612ffc565b60028301546001600160a01b0316600090815260036020819052604090912001555b806001600160a01b03861615610ffb576000610ec8838661328f565b9050610ed26133a1565b60405163e7a49c2b60e01b81526001600160a01b03898116600483015260248201849052919091169063e7a49c2b90604401600060405180830381600087803b158015610f1e57600080fd5b505af1158015610f32573d6000803e3d6000fd5b50505050610f3e6133a1565b6001600160a01b031663c7ee98c2610f568484612ffc565b6040518263ffffffff1660e01b8152600401610f7491815260200190565b600060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b5050604080516001600160a01b038b8116825260208201889052918101859052908b1692507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22915060600160405180910390a2506110af565b6110036133a1565b6001600160a01b031663c7ee98c2826040518263ffffffff1660e01b815260040161103091815260200190565b600060405180830381600087803b15801561104a57600080fd5b505af115801561105e573d6000803e3d6000fd5b5050604080516000808252602082018790528183015290516001600160a01b038b1693507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c2292509081900360600190a25b505061110a565b604080516001600160a01b03868116825260006020830181905292820192909252908616907ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22906060015b60405180910390a25b5050505050565b60405163e189dedb60e01b8152600760048201526001600160a01b038216602482015260009073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063e189dedb9060440160206040518083038186803b15801561116e57600080fd5b505af4158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a691906147d2565b92915050565b6111b4612c3c565b6111bc612d00565b6111c4612dc4565b50565b6111cf612c3c565b6111d7612d00565b3360008181526003602090815260408083208584526007810190925290912090916112029084610c40565b61124a5760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610840565b611252612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561128a57600080fd5b505afa15801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c29190614797565b8160010154111561133b5760405162461bcd60e51b815260206004820152603b60248201527f776974686472617720726f756e64206d757374206265206265666f7265206f7260448201527f20657175616c20746f207468652063757272656e7420726f756e6400000000006064820152608401610840565b805460018083015460008681526007860160205260408120818155909201919091556113656133a1565b60405163e7a49c2b60e01b8152336004820152602481018490526001600160a01b03919091169063e7a49c2b90604401600060405180830381600087803b1580156113af57600080fd5b505af11580156113c3573d6000803e3d6000fd5b505060408051888152602081018690529081018490523392507f1340f1a8f3d456a649e1a12071dfa15655e3d09252131d0f980c3b405cc8dd2e9150606001611101565b6111c48160008061218f565b604051631665d9cb60e31b81526007600482015260009073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b32ece58906024015b60206040518083038186803b15801561146257600080fd5b505af4158015611476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a9190614797565b905090565b6114a7612c3c565b6114af612d00565b6114b7612e67565b6001600160a01b0316636841f2536040518163ffffffff1660e01b815260040160206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152791906147b0565b1561159a5760405162461bcd60e51b815260206004820152603760248201527f63616e277420757064617465207472616e73636f64657220706172616d732c2060448201527f63757272656e7420726f756e64206973206c6f636b65640000000000000000006064820152608401610840565b6115a784620f4240101590565b6115f35760405162461bcd60e51b815260206004820152601c60248201527f696e76616c6964207265776172644375742070657263656e74616765000000006044820152606401610840565b61160083620f4240101590565b61164c5760405162461bcd60e51b815260206004820152601b60248201527f696e76616c69642066656553686172652070657263656e7461676500000000006044820152606401610840565b61165533611d06565b6116a15760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610840565b336000908152600460205260408120906116b9612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116f157600080fd5b505afa158015611705573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117299190614797565b905061173433610b8e565b15806117405750815481145b6117ca5760405162461bcd60e51b815260206004820152604f60248201527f63616c6c65722063616e277420626520616374697665206f72206d757374206860448201527f61766520616c72656164792063616c6c65642072657761726420666f7220746860648201526e194818dd5c9c995b9d081c9bdd5b99608a1b608482015260a401610840565b600182018690556002820185905560405163b0138c4760e01b81526007600482015233602482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b0138c479060440160206040518083038186803b15801561182957600080fd5b505af415801561183d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186191906147b0565b6118905733600081815260036020819052604090912001546118909190611889846001612ee0565b87876133f2565b604080518781526020810187905233917f7346854431dbb3eb8e373c604abf89e90f4865b8447e1e2834d7b3e4677bf544910160405180910390a2505050505050565b6118e082826000806107c3565b5050565b6118ec612c3c565b6118f4613709565b6118fd83611d06565b6119495760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610840565b6000611953612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561198b57600080fd5b505afa15801561199f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c39190614797565b6001600160a01b03851660009081526004602090815260408083208054600782015486865260038301909452918420949550939092611a0c85611a07886001612ffc565b613804565b905083861115611a565760018581015460028088015492850191909155830155600485015486811015611a4d57600081815260038701602052604090205483555b85600801549350505b81546060820151158015611a6957508685145b15611b7b576000611a786133a1565b90506000611b35611b2c836001600160a01b0316632de22cdb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611abb57600080fd5b505afa158015611acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af39190614797565b846001600160a01b0316639ae6309a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088e57600080fd5b846005546138a9565b90506000611b4782876001015461328f565b90506000611b558383612ffc565b6003880154909150611b719086611b6c8482612ee0565b6138a9565b6060870152505050505b6000611b8b8a856002015461328f565b90506000611b998b83612ffc565b90506000611ba88388866138a9565b9050611bc5826108c6838c60090154612ee090919063ffffffff16565b60098a0155611bd58686856138cf565b50505050600a9094019490945550505050505050565b6118e0828260008061149f565b6040516339ade16560e11b81526007600482015260009073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063735bc2ca9060240161144a565b611c3b61394a565b60405163a176adaf60e01b8152600760048201526024810182905273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063a176adaf9060440160006040518083038186803b158015611c8d57600080fd5b505af4158015611ca1573d6000803e3d6000fd5b505050507f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051611cfb906020808252601490820152736e756d4163746976655472616e73636f6465727360601b604082015260600190565b60405180910390a150565b6001600160a01b0380821660008181526003602052604081206002810154919390929116148015611d375750805415155b9392505050565b611d4d8633878787878761274d565b505050505050565b611d5d613a2e565b600654600555565b611d6d612c3c565b611d75612d00565b611d7d612dc4565b6002611d8833610c71565b6002811115611d9957611d996144dc565b1415611ddf5760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610840565b611deb33848484612eec565b505050565b611df8612c3c565b611e00612d00565b6000611e0a612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e4257600080fd5b505afa158015611e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7a9190614797565b9050611e8533610b8e565b611edd5760405162461bcd60e51b815260206004820152602360248201527f63616c6c6572206d75737420626520616e20616374697665207472616e73636f6044820152623232b960e91b6064820152608401610840565b33600090815260046020526040902054811415611f5b5760405162461bcd60e51b815260206004820152603660248201527f63616c6c65722068617320616c72656164792063616c6c65642072657761726460448201527508199bdc881d1a194818dd5c9c995b9d081c9bdd5b9960521b6064820152608401610840565b3360009081526004602090815260408083208484526003810190925290912060018083015460028085015492840191909155820155600482015483811015611fb157600081815260038401602052604090205482555b6000611fbb6133a1565b8354600554604051637dbedad560e01b8152600481019290925260248201526001600160a01b039190911690637dbedad590604401602060405180830381600087803b15801561200a57600080fd5b505af115801561201e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120429190614797565b90506120513382878a8a613b29565b84845560405181815233907f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc9906020015b60405180910390a250505050505050565b604051632ebb2fed60e01b81526007600482015260009073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb90632ebb2fed9060240160206040518083038186803b1580156120e157600080fd5b505af41580156120f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a91906147d2565b600061212482611d06565b1561213157506001919050565b506000919050565b612141613beb565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001611cfb565b612197612c3c565b61219f612d00565b6121a7612dc4565b60016121b233610c71565b60028111156121c3576121c36144dc565b146122085760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610840565b336000908152600360205260409020836122705760405162461bcd60e51b8152602060048201526024808201527f756e626f6e6420616d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610840565b80548411156122cd5760405162461bcd60e51b8152602060048201526024808201527f616d6f756e742069732067726561746572207468616e20626f6e64656420616d6044820152631bdd5b9d60e21b6064820152608401610840565b60028101546001600160a01b031660006122e5612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561231d57600080fd5b505afa158015612331573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123559190614797565b60025490915060009061237390839067ffffffffffffffff16612ee0565b60068501546040805180820182528a81526020808201858152600085815260078b01909252929020905181559051600191820155919250906123b6908290612ee0565b600686015584546123c79089612ffc565b808655612484576002850180546001600160a01b0319169055600060048087019190915560405163b0138c4760e01b815260079181019190915233602482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b0138c479060440160206040518083038186803b15801561243e57600080fd5b505af4158015612452573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247691906147b0565b1561248457612484336132a8565b61249084898989613c45565b60408051828152602081018a905290810183905233906001600160a01b038616907f2d5d98d189bee5496a08db2a5948cb7e5e786f09d17d0c3f228eb41776c24a069060600160405180910390a35050505050505050565b6000806124f3612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561252b57600080fd5b505afa15801561253f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125639190614797565b905060006125718583613ea8565b5095945050505050565b6001600160a01b03166000908152600360208190526040909120015490565b6125a2612c3c565b6125aa612d00565b6125b2612dc4565b6001600160a01b0382166125fc5760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610840565b336000908152600360205260409020600101548181101561265f5760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e74206665657320746f2077697468647261770000006044820152606401610840565b6126698183612ffc565b336000908152600360205260409020600101556126846133a1565b6040516320283da960e01b81526001600160a01b0385811660048301526024820185905291909116906320283da990604401600060405180830381600087803b1580156126d057600080fd5b505af11580156126e4573d6000803e3d6000fd5b5050604080516001600160a01b0387168152602081018690523393507f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e492500160405180910390a2505050565b6118e08282600080600080611d3e565b6111c481600080611d65565b612755612c3c565b61275d612d00565b612765612dc4565b6001600160a01b038616600090815260036020526040812090612786612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127be57600080fd5b505afa1580156127d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127f69190614797565b60028084015484549293508b926001600160a01b03909116916128188c610c71565b6002811115612829576128296144dc565b14156128445761283a846001612ee0565b600486015561290f565b6000811180156128665750896001600160a01b0316826001600160a01b031614155b1561290f576128748b611d06565b156128e75760405162461bcd60e51b815260206004820152603d60248201527f72656769737465726564207472616e73636f646572732063616e27742064656c60448201527f656761746520746f7761726473206f74686572206164647265737365730000006064820152608401610840565b6128f2846001612ee0565b60048601556129018382612ee0565b925061290f82828b8b613c45565b6001600160a01b038a16600090815260046020908152604080832087845260038082019093529220908101546129575761294d828360000154613f6d565b6060015160038201555b60048101546129785761296e8283600a0154613f6d565b6080015160048201555b5050600083116129db5760405162461bcd60e51b815260206004820152602860248201527f64656c65676174696f6e20616d6f756e74206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610840565b6002850180546001600160a01b0319166001600160a01b038c16179055612a02818d612ee0565b8555612a108a848989613fd0565b8b15612abe57612a1e61422e565b6001600160a01b03166323b872dd33612a356133a1565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018f9052606401602060405180830381600087803b158015612a8457600080fd5b505af1158015612a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abc91906147b0565b505b8a6001600160a01b0316826001600160a01b03168b6001600160a01b03167fe5917769f276ddca9f2ee7c6b0b33e1d1e1b61008010ce622c632dd20d168a238f8960000154604051612b1a929190918252602082015260400190565b60405180910390a4505050505050505050505050565b612b3861394a565b6002805467ffffffffffffffff831667ffffffffffffffff199091161790556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490611cfb906020808252600f908201526e1d5b989bdb991a5b99d4195c9a5bd9608a1b604082015260600190565b600080612bb4612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bec57600080fd5b505afa158015612c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c249190614797565b90506000612c328583613ea8565b9695505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015612c8857600080fd5b505afa158015612c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc091906147b0565b15610d385760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b6044820152606401610840565b612d08612e67565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d4057600080fd5b505afa158015612d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7891906147b0565b610d385760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a65646044820152606401610840565b6000612dce612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e0657600080fd5b505afa158015612e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3e9190614797565b33600090815260036020526040902060050154909150818110156118e0576118e0338383613008565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015612ecc57600080fd5b505afa1580156120f5573d6000803e3d6000fd5b6000611d378284614805565b6001600160a01b038416600090815260036020908152604080832086845260078101909252909120612f1e8686610c40565b612f665760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610840565b80548254612f749082612ee0565b835560008681526007840160205260408120818155600101556002830154612fa7906001600160a01b0316828787613fd0565b600283015460408051888152602081018490526001600160a01b038a81169316917f9f5b64cc71e1e26ff178caaa7877a04d8ce66fde989251870e80e6fbee690c17910160405180910390a350505050505050565b6000611d37828461481d565b6001600160a01b03831660009081526003602052604081209061302c836001612ee0565b82546001840154600285015492935090916001600160a01b031615613106576130558787613ea8565b60028601546001600160a01b031660009081526004602090815260408083208b84526003808201909352922090810154939550919350916130b0578154888110156130ae576130a48382613f6d565b6060015160038301555b505b60048101546130dc57600a820154888110156130da576130d08382613f6d565b6080015160048301555b505b60028601546001600160a01b038a8116911614156131035760006009830181905560088301555b50505b600284015484546001600160a01b03808a169216907fd7eab0765b772ea6ea859d5633baf737502198012e930f257f90013d9b21109490613148908690612ffc565b6001880154613158908690612ffc565b6040805192835260208301919091528101879052606081018a905260800160405180910390a36005840195909555825550600101919091555050565b600054604051631c2d8fb360e31b81527f121833d5ee4fda5e1a4034c2b7be8155c158142541dea26f39122c796649233f60048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b1580156131f757600080fd5b505afa15801561320b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322f91906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d7573742062652056657269666965720000000000000000006044820152606401610840565b6000611d37620f42406132a2858561427f565b9061428b565b604051635d35e00760e01b8152600760048201526001600160a01b038216602482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb90635d35e0079060440160006040518083038186803b15801561330257600080fd5b505af4158015613316573d6000803e3d6000fd5b5050505061332f6133268261257b565b60065490612ffc565b60065560006133416001610856612e67565b6001600160a01b0383166000818152600460205260409081902060060183905551919250907ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c906133959084815260200190565b60405180910390a25050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401612eb4565b6006546040516304aa129960e41b81526007600482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb90634aa129909060240160206040518083038186803b15801561344057600080fd5b505af4158015613454573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061347891906147b0565b1561360357604051633972059360e11b81526007600482015260009073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb906372e40b269060240160206040518083038186803b1580156134cb57600080fd5b505af41580156134df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350391906147d2565b905060006135108261257b565b90508087116135215750505061110a565b604051635d35e00760e01b8152600760048201526001600160a01b038316602482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb90635d35e0079060440160006040518083038186803b15801561357b57600080fd5b505af415801561358f573d6000803e3d6000fd5b5050506001600160a01b0383166000908152600460205260409020600601879055506135bb8382612ffc565b9250816001600160a01b03167ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c876040516135f891815260200190565b60405180910390a250505b6040516327dd54d360e11b815273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb90634fbaa9a690613643906007908a908a9089908990600401614834565b60006040518083038186803b15801561365b57600080fd5b505af415801561366f573d6000803e3d6000fd5b505050506136868582612ee090919063ffffffff16565b6001600160a01b03871660009081526004602081815260408084209283018990556005830189905560001960068401558884526003830190915290912087905590915060068290556040518581526001600160a01b038816907f65d72d782835d64c3287844a829608d5abdc7e864cc9affe96d910ab3db665e990602001612082565b600054604051631c2d8fb360e31b81527fbd1aa3e8d2464256d7fd3dcf645c16418d5d8c51d971f1ad7d57e7b1b5eee23960048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b15801561376c57600080fd5b505afa158015613780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a491906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206d757374206265205469636b657442726f6b657200000000006044820152606401610840565b6138366040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6138408383613f6d565b835460608201519192509015801561385757508281105b15613871576138668482613f6d565b606090810151908301525b600a840154608083015115801561388757508381105b156138a1576138968582613f6d565b608090810151908401525b505092915050565b6000610c386b033b2e3c9fd0803ce80000006132a26138c88686614297565b879061427f565b608082015160608301516000906138f0576138eb600180614297565b6138f6565b83606001515b905084600401546000141561392d5761391e613917828588600001546138a9565b8390612ee0565b85600401819055505050505050565b61391e61393f828588600001546138a9565b600487015490612ee0565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561399657600080fd5b505afa1580156139aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139ce91906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e6572006044820152606401610840565b600054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b158015613a9157600080fd5b505afa158015613aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ac991906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206d75737420626520526f756e64734d616e61676572000000006044820152606401610840565b6001600160a01b0385166000908152600460209081526040808320868452600381019092528220815491929091613b61908490613f6d565b9050826008015483600701819055506000613b8088846001015461328f565b90506000613b8e8983612ffc565b90506000613ba582876007015487600001546138a9565b9050613bc2836108c6838960080154612ee090919063ffffffff16565b6008870155613bd28585846142b3565b613bde8b8b8a8a613fd0565b5050505050505050505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572000000000000006044820152606401610840565b60405163b0138c4760e01b8152600760048201526001600160a01b038516602482015273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b0138c479060440160206040518083038186803b158015613c9f57600080fd5b505af4158015613cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cd791906147b0565b15613e5b576000613ce78561257b565b90506000613cf58286612ffc565b90506000613d01612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015613d3957600080fd5b505afa158015613d4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d719190614797565b90506000613d80826001612ee0565b604051631c11bf7f60e11b815290915073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb906338237efe90613dc3906007908c9088908c908c90600401614834565b60006040518083038186803b158015613ddb57600080fd5b505af4158015613def573d6000803e3d6000fd5b5050600654613e019250905088612ffc565b6006556001600160a01b038816600090815260046020819052604090912090810154831115613e3e57600083815260038201602052604090208590555b600481018290556000918252600301602052604090209190915550505b6001600160a01b03841660009081526003602081905260409091200154613e829084612ffc565b6001600160a01b0390941660009081526003602081905260409091200193909355505050565b6001600160a01b03808316600090815260036020908152604080832060028101549094168352600490915281206001808401548454600586015490959194919392613ef39190612ee0565b60028401549091506001600160a01b039081169088168114878311613f2f57613f2984613f21856001612ffc565b8a8a8a614301565b90975095505b8015613f61576008840154613f45908890612ee0565b9650613f5e846009015487612ee090919063ffffffff16565b95505b50505050509250929050565b613f9f6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000828152600393840160208181526040832095860154606085015293909152909152600490910154608082015290565b613fd984611d06565b15614207576000613fe98561257b565b90506000613ff78286612ee0565b90506000614003612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561403b57600080fd5b505afa15801561404f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140739190614797565b90506000614082826001612ee0565b60405163b0138c4760e01b8152600760048201526001600160a01b038a16602482015290915073C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb9063b0138c479060440160206040518083038186803b1580156140df57600080fd5b505af41580156140f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061411791906147b0565b156141f557604051631c11bf7f60e11b815273C45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb906338237efe9061415c906007908c9088908c908c90600401614834565b60006040518083038186803b15801561417457600080fd5b505af4158015614188573d6000803e3d6000fd5b505060065461419a9250905088612ee0565b6006556001600160a01b0388166000908152600460208190526040909120908101548311156141d757600083815260038201602052604090208590555b60008281526003820160205260409020849055600401819055614202565b61420288848389896133f2565b505050505b6001600160a01b03841660009081526003602081905260409091200154613e829084612ee0565b60008054604051631c2d8fb360e31b81527f3443e257065fe41dd0e4d1f5a1b73a22a62e300962b57f30cddf41d0f8273ba760048201526001600160a01b039091169063e16c7d9890602401612eb4565b6000611d378284614862565b6000611d378284614881565b6000611d37826132a2856b033b2e3c9fd0803ce800000061427f565b60008260600151600014156142d2576142cd600180614297565b6142d8565b82606001515b90506142f36142ec828487600001546138a9565b8290612ee0565b846003018190555050505050565b60008060006143108888613f6d565b90508060600151600014156143305761432a600180614297565b60608201525b600061433c8988613804565b905080606001516000141561435c57614356600180614297565b60608201525b61438f6143888761437e85608001518560800151612ffc90919063ffffffff16565b85606001516138a9565b8690612ee0565b92506143a486826060015184606001516138a9565b935050509550959350505050565b6001600160a01b03811681146111c457600080fd5b600080600080608085870312156143dd57600080fd5b84356143e8816143b2565b93506020850135925060408501356143ff816143b2565b9150606085013561440f816143b2565b939692955090935050565b60008060008060008060c0878903121561443357600080fd5b863561443e816143b2565b9550602087013594506040870135614455816143b2565b93506060870135614465816143b2565b92506080870135614475816143b2565b915060a0870135614485816143b2565b809150509295509295509295565b6000602082840312156144a557600080fd5b8135611d37816143b2565b600080604083850312156144c357600080fd5b82356144ce816143b2565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614506576145066144dc565b91905290565b6000806000806080858703121561452257600080fd5b843561452d816143b2565b9350602085013561453d816143b2565b93969395505050506040820135916060013590565b60006020828403121561456457600080fd5b5035919050565b6000806000806080858703121561458157600080fd5b843593506020850135925060408501356143ff816143b2565b6000806000606084860312156145af57600080fd5b83356145ba816143b2565b95602085013595506040909401359392505050565b600080604083850312156145e257600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561460a57600080fd5b86359550602087013561461c816143b2565b94506040870135614455816143b2565b60008060006060848603121561464157600080fd5b833592506020840135614653816143b2565b91506040840135614663816143b2565b809150509250925092565b6000806040838503121561468157600080fd5b823561468c816143b2565b9150602083013561469c816143b2565b809150509250929050565b6020810160028310614506576145066144dc565b600080604083850312156146ce57600080fd5b82359150602083013561469c816143b2565b600080600080600080600060e0888a0312156146fb57600080fd5b87359650602088013561470d816143b2565b9550604088013561471d816143b2565b9450606088013561472d816143b2565b9350608088013561473d816143b2565b925060a088013561474d816143b2565b915060c088013561475d816143b2565b8091505092959891949750929550565b60006020828403121561477f57600080fd5b813567ffffffffffffffff81168114611d3757600080fd5b6000602082840312156147a957600080fd5b5051919050565b6000602082840312156147c257600080fd5b81518015158114611d3757600080fd5b6000602082840312156147e457600080fd5b8151611d37816143b2565b634e487b7160e01b600052601160045260246000fd5b60008219821115614818576148186147ef565b500190565b60008282101561482f5761482f6147ef565b500390565b9485526001600160a01b03938416602086015260408501929092528216606084015216608082015260a00190565b600081600019048311821515161561487c5761487c6147ef565b500290565b60008261489e57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122084ef728ebfb0333127dbaf5c1958d15f6c7667ad0536c0afa147b43b535ef28b64736f6c63430008090033", - "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061027f5760003560e01c80635c50c3561161015c57806392eefe9b116100ce578063b78d27dc11610087578063b78d27dc14610751578063eaffb3f914610764578063ee4e804a14610777578063f10d1de11461078a578063f595f1cc1461079d578063f77c4791146107b057600080fd5b806392eefe9b146106545780639500ed9b146106675780639d0b2c7a1461067a5780639ef9df941461068d578063a64ad595146106a0578063ad3b1b471461073e57600080fd5b80636cf6d675116101205780636cf6d675146105d1578063713f2216146105fe5780637fc4606f14610606578063818710561461061957806388a6c7491461062c5780638b2f16521461063457600080fd5b80635c50c356146104de5780635dce9948146104e6578063673a456b1461059857806368ba170c146105ab5780636bd9add4146105be57600080fd5b806327de9e32116101f5578063412f83b6116101b9578063412f83b6146104515780634196ee75146104a857806343d3461a146104b1578063465501d3146104c457806351720b41146104cd5780635a2a75a9146104d657600080fd5b806327de9e32146103ef5780632a4e0d55146104025780633550aa10146104185780633a080e931461042b5780633aeb512c1461043e57600080fd5b8063228cb73311610247578063228cb7331461030757806322bf9d7c1461030f578063235c96031461032257806324454fc41461034d57806324b1babf146103c957806325d5971f146103dc57600080fd5b80630584a37314610284578063062e98b81461029957806308802374146102ac5780630fd02fc1146102d45780631544fc67146102e7575b600080fd5b6102976102923660046143c7565b6107c3565b005b6102976102a736600461441a565b610913565b6102bf6102ba366004614493565b610b8e565b60405190151581526020015b60405180910390f35b6102bf6102e23660046144b0565b610c40565b6102fa6102f5366004614493565b610c71565b6040516102cb91906144f2565b610297610d2d565b61029761031d36600461450c565b610d3a565b610335610330366004614493565b611111565b6040516001600160a01b0390911681526020016102cb565b6103a161035b3660046144b0565b6001600160a01b03909116600090815260046020818152604080842094845260039485019091529091208054600182015460028301549483015492909301549094929392565b604080519586526020860194909452928401919091526060830152608082015260a0016102cb565b6102976103d7366004614552565b6111ac565b6102976103ea366004614552565b6111c7565b6102976103fd366004614552565b611407565b61040a611413565b6040519081526020016102cb565b61029761042636600461456b565b61149f565b6102976104393660046144b0565b6118d3565b61029761044c36600461459a565b6118e4565b61049361045f3660046144b0565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522080546001909101549091565b604080519283526020830191909152016102cb565b61040a60055481565b6102976104bf3660046145cf565b611beb565b61040a60065481565b61040a60015481565b61040a611bf8565b60055461040a565b61054e6104f4366004614493565b6001600160a01b031660009081526004602081905260409091208054600182015460028301549383015460058401546006850154600786015460088701546009880154600a90980154969995989794969395929491939092565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016102cb565b6102976105a6366004614552565b611c33565b6102bf6105b9366004614493565b611d06565b6102976105cc3660046145f1565b611d3e565b6002546105e59067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102cb565b610297611d55565b61029761061436600461462c565b611d65565b61029761062736600461466e565b611df0565b610335612093565b610647610642366004614493565b612119565b6040516102cb91906146a7565b610297610662366004614493565b612139565b61029761067536600461462c565b61218f565b61040a6106883660046144b0565b6124e8565b61040a61069b366004614493565b61257b565b6106fb6106ae366004614493565b6001600160a01b0390811660009081526003602081905260409091208054600182015460028301549383015460048401546005850154600690950154939792969590951694909390929091565b6040805197885260208801969096526001600160a01b03909416948601949094526060850191909152608084015260a083019190915260c082015260e0016102cb565b61029761074c3660046144b0565b61259a565b61029761075f3660046146bb565b612731565b610297610772366004614552565b612741565b6102976107853660046146e0565b61274d565b61029761079836600461476d565b612b30565b61040a6107ab3660046144b0565b612ba9565b600054610335906001600160a01b031681565b6107cb612c3c565b6107d3612d00565b6107db612dc4565b60026107e633610c71565b60028111156107f7576107f76144dc565b146108495760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d75737420626520756e626f6e64656400000000000000000060448201526064015b60405180910390fd5b6108cc6001610856612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088e57600080fd5b505afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190614797565b90612ee0565b3360008181526003602052604090206004810192909255600290910180546001600160a01b0319166001600160a01b03871617905561090d90848484612eec565b50505050565b61091b612c3c565b610923612d00565b61092b612dc4565b33600090815260036020526040902060028101546001600160a01b031661095387878761218f565b6001600160a01b0388166000908152600360205260408120600684015490919061097e906001612ffc565b905060008460070160008381526020019081526020016000206001015490508460070160008381526020019081526020016000206000808201600090556001820160009055505060008360060154905060405180604001604052808c8152602001838152508460070160008381526020019081526020016000206000820151816000015560208201518160010155905050610a2760018560060154612ee090919063ffffffff16565b600685015560408051848152602081018390529081018c90526001600160a01b038d169033907ff136b986590e86cf1abd7b6600186a7a1178ad3cbbdf0f3312e79f6214a2a5679060600160405180910390a36000610a84612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610abc57600080fd5b505afa158015610ad0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af49190614797565b600586015490915081811015610b0f57610b0f8e8383613008565b60028601546001600160a01b0316610b3f576002860180546001600160a01b0319166001600160a01b0389161790555b6002610b4a8f610c71565b6002811115610b5b57610b5b6144dc565b1415610b7257610b6c826001612ee0565b60048701555b610b7e8e848c8c612eec565b5050505050505050505050505050565b6001600160a01b038116600090815260046020526040812081610baf612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610be757600080fd5b505afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f9190614797565b905080826005015411158015610c385750816006015481105b949350505050565b6001600160a01b03919091166000908152600360209081526040808320938352600790930190522060010154151590565b6001600160a01b03811660009081526003602052604081208054610c985750600292915050565b610ca0612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cd857600080fd5b505afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d109190614797565b81600401541115610d245750600092915050565b50600192915050565b610d38600080611df0565b565b610d42612c3c565b610d4a613194565b6001600160a01b03841660009081526003602052604090208054156110b6576001600160a01b038516600090815260036020526040812054610d8c908561328f565b60405163b0138c4760e01b8152600760048201526001600160a01b038816602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015610de957600080fd5b505af4158015610dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2191906147b0565b15610e2f57610e2f866132a8565b8154610e3b9082612ffc565b82556001610e4887610c71565b6002811115610e5957610e596144dc565b1415610eac5760028201546001600160a01b031660009081526003602081905260409091200154610e8a9082612ffc565b60028301546001600160a01b0316600090815260036020819052604090912001555b806001600160a01b03861615610ffb576000610ec8838661328f565b9050610ed26133a1565b60405163e7a49c2b60e01b81526001600160a01b03898116600483015260248201849052919091169063e7a49c2b90604401600060405180830381600087803b158015610f1e57600080fd5b505af1158015610f32573d6000803e3d6000fd5b50505050610f3e6133a1565b6001600160a01b031663c7ee98c2610f568484612ffc565b6040518263ffffffff1660e01b8152600401610f7491815260200190565b600060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b5050604080516001600160a01b038b8116825260208201889052918101859052908b1692507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22915060600160405180910390a2506110af565b6110036133a1565b6001600160a01b031663c7ee98c2826040518263ffffffff1660e01b815260040161103091815260200190565b600060405180830381600087803b15801561104a57600080fd5b505af115801561105e573d6000803e3d6000fd5b5050604080516000808252602082018790528183015290516001600160a01b038b1693507ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c2292509081900360600190a25b505061110a565b604080516001600160a01b03868116825260006020830181905292820192909252908616907ff4b71fed8e2c9a8c67c388bc6d35ad20b9368a24eed6d565459f2b277b6c0c22906060015b60405180910390a25b5050505050565b60405163e189dedb60e01b8152600760048201526001600160a01b038216602482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063e189dedb9060440160206040518083038186803b15801561116e57600080fd5b505af4158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a691906147d2565b92915050565b6111b4612c3c565b6111bc612d00565b6111c4612dc4565b50565b6111cf612c3c565b6111d7612d00565b3360008181526003602090815260408083208584526007810190925290912090916112029084610c40565b61124a5760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610840565b611252612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561128a57600080fd5b505afa15801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c29190614797565b8160010154111561133b5760405162461bcd60e51b815260206004820152603b60248201527f776974686472617720726f756e64206d757374206265206265666f7265206f7260448201527f20657175616c20746f207468652063757272656e7420726f756e6400000000006064820152608401610840565b805460018083015460008681526007860160205260408120818155909201919091556113656133a1565b60405163e7a49c2b60e01b8152336004820152602481018490526001600160a01b03919091169063e7a49c2b90604401600060405180830381600087803b1580156113af57600080fd5b505af11580156113c3573d6000803e3d6000fd5b505060408051888152602081018690529081018490523392507f1340f1a8f3d456a649e1a12071dfa15655e3d09252131d0f980c3b405cc8dd2e9150606001611101565b6111c48160008061218f565b604051631665d9cb60e31b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063b32ece58906024015b60206040518083038186803b15801561146257600080fd5b505af4158015611476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a9190614797565b905090565b6114a7612c3c565b6114af612d00565b6114b7612e67565b6001600160a01b0316636841f2536040518163ffffffff1660e01b815260040160206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152791906147b0565b1561159a5760405162461bcd60e51b815260206004820152603760248201527f63616e277420757064617465207472616e73636f64657220706172616d732c2060448201527f63757272656e7420726f756e64206973206c6f636b65640000000000000000006064820152608401610840565b6115a784620f4240101590565b6115f35760405162461bcd60e51b815260206004820152601c60248201527f696e76616c6964207265776172644375742070657263656e74616765000000006044820152606401610840565b61160083620f4240101590565b61164c5760405162461bcd60e51b815260206004820152601b60248201527f696e76616c69642066656553686172652070657263656e7461676500000000006044820152606401610840565b61165533611d06565b6116a15760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610840565b336000908152600460205260408120906116b9612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116f157600080fd5b505afa158015611705573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117299190614797565b905061173433610b8e565b15806117405750815481145b6117ca5760405162461bcd60e51b815260206004820152604f60248201527f63616c6c65722063616e277420626520616374697665206f72206d757374206860448201527f61766520616c72656164792063616c6c65642072657761726420666f7220746860648201526e194818dd5c9c995b9d081c9bdd5b99608a1b608482015260a401610840565b600182018690556002820185905560405163b0138c4760e01b81526007600482015233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561182957600080fd5b505af415801561183d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186191906147b0565b6118905733600081815260036020819052604090912001546118909190611889846001612ee0565b87876133f2565b604080518781526020810187905233917f7346854431dbb3eb8e373c604abf89e90f4865b8447e1e2834d7b3e4677bf544910160405180910390a2505050505050565b6118e082826000806107c3565b5050565b6118ec612c3c565b6118f4613709565b6118fd83611d06565b6119495760405162461bcd60e51b815260206004820152601d60248201527f7472616e73636f646572206d75737420626520726567697374657265640000006044820152606401610840565b6000611953612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561198b57600080fd5b505afa15801561199f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c39190614797565b6001600160a01b03851660009081526004602090815260408083208054600782015486865260038301909452918420949550939092611a0c85611a07886001612ffc565b613804565b905083861115611a565760018581015460028088015492850191909155830155600485015486811015611a4d57600081815260038701602052604090205483555b85600801549350505b81546060820151158015611a6957508685145b15611b7b576000611a786133a1565b90506000611b35611b2c836001600160a01b0316632de22cdb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611abb57600080fd5b505afa158015611acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af39190614797565b846001600160a01b0316639ae6309a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088e57600080fd5b846005546138a9565b90506000611b4782876001015461328f565b90506000611b558383612ffc565b6003880154909150611b719086611b6c8482612ee0565b6138a9565b6060870152505050505b6000611b8b8a856002015461328f565b90506000611b998b83612ffc565b90506000611ba88388866138a9565b9050611bc5826108c6838c60090154612ee090919063ffffffff16565b60098a0155611bd58686856138cf565b50505050600a9094019490945550505050505050565b6118e0828260008061149f565b6040516339ade16560e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__9063735bc2ca9060240161144a565b611c3b61394a565b60405163a176adaf60e01b8152600760048201526024810182905273__$d23c89be677d40ab24c636937040b6165f$__9063a176adaf9060440160006040518083038186803b158015611c8d57600080fd5b505af4158015611ca1573d6000803e3d6000fd5b505050507f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051611cfb906020808252601490820152736e756d4163746976655472616e73636f6465727360601b604082015260600190565b60405180910390a150565b6001600160a01b0380821660008181526003602052604081206002810154919390929116148015611d375750805415155b9392505050565b611d4d8633878787878761274d565b505050505050565b611d5d613a2e565b600654600555565b611d6d612c3c565b611d75612d00565b611d7d612dc4565b6002611d8833610c71565b6002811115611d9957611d996144dc565b1415611ddf5760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610840565b611deb33848484612eec565b505050565b611df8612c3c565b611e00612d00565b6000611e0a612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e4257600080fd5b505afa158015611e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7a9190614797565b9050611e8533610b8e565b611edd5760405162461bcd60e51b815260206004820152602360248201527f63616c6c6572206d75737420626520616e20616374697665207472616e73636f6044820152623232b960e91b6064820152608401610840565b33600090815260046020526040902054811415611f5b5760405162461bcd60e51b815260206004820152603660248201527f63616c6c65722068617320616c72656164792063616c6c65642072657761726460448201527508199bdc881d1a194818dd5c9c995b9d081c9bdd5b9960521b6064820152608401610840565b3360009081526004602090815260408083208484526003810190925290912060018083015460028085015492840191909155820155600482015483811015611fb157600081815260038401602052604090205482555b6000611fbb6133a1565b8354600554604051637dbedad560e01b8152600481019290925260248201526001600160a01b039190911690637dbedad590604401602060405180830381600087803b15801561200a57600080fd5b505af115801561201e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120429190614797565b90506120513382878a8a613b29565b84845560405181815233907f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc9906020015b60405180910390a250505050505050565b604051632ebb2fed60e01b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__90632ebb2fed9060240160206040518083038186803b1580156120e157600080fd5b505af41580156120f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a91906147d2565b600061212482611d06565b1561213157506001919050565b506000919050565b612141613beb565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001611cfb565b612197612c3c565b61219f612d00565b6121a7612dc4565b60016121b233610c71565b60028111156121c3576121c36144dc565b146122085760405162461bcd60e51b815260206004820152601560248201527418d85b1b195c881b5d5cdd08189948189bdb991959605a1b6044820152606401610840565b336000908152600360205260409020836122705760405162461bcd60e51b8152602060048201526024808201527f756e626f6e6420616d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610840565b80548411156122cd5760405162461bcd60e51b8152602060048201526024808201527f616d6f756e742069732067726561746572207468616e20626f6e64656420616d6044820152631bdd5b9d60e21b6064820152608401610840565b60028101546001600160a01b031660006122e5612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561231d57600080fd5b505afa158015612331573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123559190614797565b60025490915060009061237390839067ffffffffffffffff16612ee0565b60068501546040805180820182528a81526020808201858152600085815260078b01909252929020905181559051600191820155919250906123b6908290612ee0565b600686015584546123c79089612ffc565b808655612484576002850180546001600160a01b0319169055600060048087019190915560405163b0138c4760e01b815260079181019190915233602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b15801561243e57600080fd5b505af4158015612452573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247691906147b0565b1561248457612484336132a8565b61249084898989613c45565b60408051828152602081018a905290810183905233906001600160a01b038616907f2d5d98d189bee5496a08db2a5948cb7e5e786f09d17d0c3f228eb41776c24a069060600160405180910390a35050505050505050565b6000806124f3612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561252b57600080fd5b505afa15801561253f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125639190614797565b905060006125718583613ea8565b5095945050505050565b6001600160a01b03166000908152600360208190526040909120015490565b6125a2612c3c565b6125aa612d00565b6125b2612dc4565b6001600160a01b0382166125fc5760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610840565b336000908152600360205260409020600101548181101561265f5760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e74206665657320746f2077697468647261770000006044820152606401610840565b6126698183612ffc565b336000908152600360205260409020600101556126846133a1565b6040516320283da960e01b81526001600160a01b0385811660048301526024820185905291909116906320283da990604401600060405180830381600087803b1580156126d057600080fd5b505af11580156126e4573d6000803e3d6000fd5b5050604080516001600160a01b0387168152602081018690523393507f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e492500160405180910390a2505050565b6118e08282600080600080611d3e565b6111c481600080611d65565b612755612c3c565b61275d612d00565b612765612dc4565b6001600160a01b038616600090815260036020526040812090612786612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127be57600080fd5b505afa1580156127d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127f69190614797565b60028084015484549293508b926001600160a01b03909116916128188c610c71565b6002811115612829576128296144dc565b14156128445761283a846001612ee0565b600486015561290f565b6000811180156128665750896001600160a01b0316826001600160a01b031614155b1561290f576128748b611d06565b156128e75760405162461bcd60e51b815260206004820152603d60248201527f72656769737465726564207472616e73636f646572732063616e27742064656c60448201527f656761746520746f7761726473206f74686572206164647265737365730000006064820152608401610840565b6128f2846001612ee0565b60048601556129018382612ee0565b925061290f82828b8b613c45565b6001600160a01b038a16600090815260046020908152604080832087845260038082019093529220908101546129575761294d828360000154613f6d565b6060015160038201555b60048101546129785761296e8283600a0154613f6d565b6080015160048201555b5050600083116129db5760405162461bcd60e51b815260206004820152602860248201527f64656c65676174696f6e20616d6f756e74206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610840565b6002850180546001600160a01b0319166001600160a01b038c16179055612a02818d612ee0565b8555612a108a848989613fd0565b8b15612abe57612a1e61422e565b6001600160a01b03166323b872dd33612a356133a1565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018f9052606401602060405180830381600087803b158015612a8457600080fd5b505af1158015612a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abc91906147b0565b505b8a6001600160a01b0316826001600160a01b03168b6001600160a01b03167fe5917769f276ddca9f2ee7c6b0b33e1d1e1b61008010ce622c632dd20d168a238f8960000154604051612b1a929190918252602082015260400190565b60405180910390a4505050505050505050505050565b612b3861394a565b6002805467ffffffffffffffff831667ffffffffffffffff199091161790556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490611cfb906020808252600f908201526e1d5b989bdb991a5b99d4195c9a5bd9608a1b604082015260600190565b600080612bb4612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bec57600080fd5b505afa158015612c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c249190614797565b90506000612c328583613ea8565b9695505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015612c8857600080fd5b505afa158015612c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc091906147b0565b15610d385760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b6044820152606401610840565b612d08612e67565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d4057600080fd5b505afa158015612d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7891906147b0565b610d385760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a65646044820152606401610840565b6000612dce612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e0657600080fd5b505afa158015612e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3e9190614797565b33600090815260036020526040902060050154909150818110156118e0576118e0338383613008565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015612ecc57600080fd5b505afa1580156120f5573d6000803e3d6000fd5b6000611d378284614805565b6001600160a01b038416600090815260036020908152604080832086845260078101909252909120612f1e8686610c40565b612f665760405162461bcd60e51b81526020600482015260196024820152781a5b9d985b1a59081d5b989bdb991a5b99c81b1bd8dac81251603a1b6044820152606401610840565b80548254612f749082612ee0565b835560008681526007840160205260408120818155600101556002830154612fa7906001600160a01b0316828787613fd0565b600283015460408051888152602081018490526001600160a01b038a81169316917f9f5b64cc71e1e26ff178caaa7877a04d8ce66fde989251870e80e6fbee690c17910160405180910390a350505050505050565b6000611d37828461481d565b6001600160a01b03831660009081526003602052604081209061302c836001612ee0565b82546001840154600285015492935090916001600160a01b031615613106576130558787613ea8565b60028601546001600160a01b031660009081526004602090815260408083208b84526003808201909352922090810154939550919350916130b0578154888110156130ae576130a48382613f6d565b6060015160038301555b505b60048101546130dc57600a820154888110156130da576130d08382613f6d565b6080015160048301555b505b60028601546001600160a01b038a8116911614156131035760006009830181905560088301555b50505b600284015484546001600160a01b03808a169216907fd7eab0765b772ea6ea859d5633baf737502198012e930f257f90013d9b21109490613148908690612ffc565b6001880154613158908690612ffc565b6040805192835260208301919091528101879052606081018a905260800160405180910390a36005840195909555825550600101919091555050565b600054604051631c2d8fb360e31b81527f121833d5ee4fda5e1a4034c2b7be8155c158142541dea26f39122c796649233f60048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b1580156131f757600080fd5b505afa15801561320b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322f91906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206d7573742062652056657269666965720000000000000000006044820152606401610840565b6000611d37620f42406132a2858561427f565b9061428b565b604051635d35e00760e01b8152600760048201526001600160a01b038216602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b15801561330257600080fd5b505af4158015613316573d6000803e3d6000fd5b5050505061332f6133268261257b565b60065490612ffc565b60065560006133416001610856612e67565b6001600160a01b0383166000818152600460205260409081902060060183905551919250907ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c906133959084815260200190565b60405180910390a25050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401612eb4565b6006546040516304aa129960e41b81526007600482015273__$d23c89be677d40ab24c636937040b6165f$__90634aa129909060240160206040518083038186803b15801561344057600080fd5b505af4158015613454573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061347891906147b0565b1561360357604051633972059360e11b81526007600482015260009073__$d23c89be677d40ab24c636937040b6165f$__906372e40b269060240160206040518083038186803b1580156134cb57600080fd5b505af41580156134df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350391906147d2565b905060006135108261257b565b90508087116135215750505061110a565b604051635d35e00760e01b8152600760048201526001600160a01b038316602482015273__$d23c89be677d40ab24c636937040b6165f$__90635d35e0079060440160006040518083038186803b15801561357b57600080fd5b505af415801561358f573d6000803e3d6000fd5b5050506001600160a01b0383166000908152600460205260409020600601879055506135bb8382612ffc565b9250816001600160a01b03167ffee3e693fc72d0a0a673805f3e606c551f4c677b9072444b90dd2d0406bc995c876040516135f891815260200190565b60405180910390a250505b6040516327dd54d360e11b815273__$d23c89be677d40ab24c636937040b6165f$__90634fbaa9a690613643906007908a908a9089908990600401614834565b60006040518083038186803b15801561365b57600080fd5b505af415801561366f573d6000803e3d6000fd5b505050506136868582612ee090919063ffffffff16565b6001600160a01b03871660009081526004602081815260408084209283018990556005830189905560001960068401558884526003830190915290912087905590915060068290556040518581526001600160a01b038816907f65d72d782835d64c3287844a829608d5abdc7e864cc9affe96d910ab3db665e990602001612082565b600054604051631c2d8fb360e31b81527fbd1aa3e8d2464256d7fd3dcf645c16418d5d8c51d971f1ad7d57e7b1b5eee23960048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b15801561376c57600080fd5b505afa158015613780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a491906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206d757374206265205469636b657442726f6b657200000000006044820152606401610840565b6138366040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6138408383613f6d565b835460608201519192509015801561385757508281105b15613871576138668482613f6d565b606090810151908301525b600a840154608083015115801561388757508381105b156138a1576138968582613f6d565b608090810151908401525b505092915050565b6000610c386b033b2e3c9fd0803ce80000006132a26138c88686614297565b879061427f565b608082015160608301516000906138f0576138eb600180614297565b6138f6565b83606001515b905084600401546000141561392d5761391e613917828588600001546138a9565b8390612ee0565b85600401819055505050505050565b61391e61393f828588600001546138a9565b600487015490612ee0565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561399657600080fd5b505afa1580156139aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139ce91906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e6572006044820152606401610840565b600054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d989060240160206040518083038186803b158015613a9157600080fd5b505afa158015613aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ac991906147d2565b6001600160a01b0316336001600160a01b031614610d385760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206d75737420626520526f756e64734d616e61676572000000006044820152606401610840565b6001600160a01b0385166000908152600460209081526040808320868452600381019092528220815491929091613b61908490613f6d565b9050826008015483600701819055506000613b8088846001015461328f565b90506000613b8e8983612ffc565b90506000613ba582876007015487600001546138a9565b9050613bc2836108c6838960080154612ee090919063ffffffff16565b6008870155613bd28585846142b3565b613bde8b8b8a8a613fd0565b5050505050505050505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572000000000000006044820152606401610840565b60405163b0138c4760e01b8152600760048201526001600160a01b038516602482015273__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b158015613c9f57600080fd5b505af4158015613cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cd791906147b0565b15613e5b576000613ce78561257b565b90506000613cf58286612ffc565b90506000613d01612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015613d3957600080fd5b505afa158015613d4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d719190614797565b90506000613d80826001612ee0565b604051631c11bf7f60e11b815290915073__$d23c89be677d40ab24c636937040b6165f$__906338237efe90613dc3906007908c9088908c908c90600401614834565b60006040518083038186803b158015613ddb57600080fd5b505af4158015613def573d6000803e3d6000fd5b5050600654613e019250905088612ffc565b6006556001600160a01b038816600090815260046020819052604090912090810154831115613e3e57600083815260038201602052604090208590555b600481018290556000918252600301602052604090209190915550505b6001600160a01b03841660009081526003602081905260409091200154613e829084612ffc565b6001600160a01b0390941660009081526003602081905260409091200193909355505050565b6001600160a01b03808316600090815260036020908152604080832060028101549094168352600490915281206001808401548454600586015490959194919392613ef39190612ee0565b60028401549091506001600160a01b039081169088168114878311613f2f57613f2984613f21856001612ffc565b8a8a8a614301565b90975095505b8015613f61576008840154613f45908890612ee0565b9650613f5e846009015487612ee090919063ffffffff16565b95505b50505050509250929050565b613f9f6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000828152600393840160208181526040832095860154606085015293909152909152600490910154608082015290565b613fd984611d06565b15614207576000613fe98561257b565b90506000613ff78286612ee0565b90506000614003612e67565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561403b57600080fd5b505afa15801561404f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140739190614797565b90506000614082826001612ee0565b60405163b0138c4760e01b8152600760048201526001600160a01b038a16602482015290915073__$d23c89be677d40ab24c636937040b6165f$__9063b0138c479060440160206040518083038186803b1580156140df57600080fd5b505af41580156140f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061411791906147b0565b156141f557604051631c11bf7f60e11b815273__$d23c89be677d40ab24c636937040b6165f$__906338237efe9061415c906007908c9088908c908c90600401614834565b60006040518083038186803b15801561417457600080fd5b505af4158015614188573d6000803e3d6000fd5b505060065461419a9250905088612ee0565b6006556001600160a01b0388166000908152600460208190526040909120908101548311156141d757600083815260038201602052604090208590555b60008281526003820160205260409020849055600401819055614202565b61420288848389896133f2565b505050505b6001600160a01b03841660009081526003602081905260409091200154613e829084612ee0565b60008054604051631c2d8fb360e31b81527f3443e257065fe41dd0e4d1f5a1b73a22a62e300962b57f30cddf41d0f8273ba760048201526001600160a01b039091169063e16c7d9890602401612eb4565b6000611d378284614862565b6000611d378284614881565b6000611d37826132a2856b033b2e3c9fd0803ce800000061427f565b60008260600151600014156142d2576142cd600180614297565b6142d8565b82606001515b90506142f36142ec828487600001546138a9565b8290612ee0565b846003018190555050505050565b60008060006143108888613f6d565b90508060600151600014156143305761432a600180614297565b60608201525b600061433c8988613804565b905080606001516000141561435c57614356600180614297565b60608201525b61438f6143888761437e85608001518560800151612ffc90919063ffffffff16565b85606001516138a9565b8690612ee0565b92506143a486826060015184606001516138a9565b935050509550959350505050565b6001600160a01b03811681146111c457600080fd5b600080600080608085870312156143dd57600080fd5b84356143e8816143b2565b93506020850135925060408501356143ff816143b2565b9150606085013561440f816143b2565b939692955090935050565b60008060008060008060c0878903121561443357600080fd5b863561443e816143b2565b9550602087013594506040870135614455816143b2565b93506060870135614465816143b2565b92506080870135614475816143b2565b915060a0870135614485816143b2565b809150509295509295509295565b6000602082840312156144a557600080fd5b8135611d37816143b2565b600080604083850312156144c357600080fd5b82356144ce816143b2565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614506576145066144dc565b91905290565b6000806000806080858703121561452257600080fd5b843561452d816143b2565b9350602085013561453d816143b2565b93969395505050506040820135916060013590565b60006020828403121561456457600080fd5b5035919050565b6000806000806080858703121561458157600080fd5b843593506020850135925060408501356143ff816143b2565b6000806000606084860312156145af57600080fd5b83356145ba816143b2565b95602085013595506040909401359392505050565b600080604083850312156145e257600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561460a57600080fd5b86359550602087013561461c816143b2565b94506040870135614455816143b2565b60008060006060848603121561464157600080fd5b833592506020840135614653816143b2565b91506040840135614663816143b2565b809150509250925092565b6000806040838503121561468157600080fd5b823561468c816143b2565b9150602083013561469c816143b2565b809150509250929050565b6020810160028310614506576145066144dc565b600080604083850312156146ce57600080fd5b82359150602083013561469c816143b2565b600080600080600080600060e0888a0312156146fb57600080fd5b87359650602088013561470d816143b2565b9550604088013561471d816143b2565b9450606088013561472d816143b2565b9350608088013561473d816143b2565b925060a088013561474d816143b2565b915060c088013561475d816143b2565b8091505092959891949750929550565b60006020828403121561477f57600080fd5b813567ffffffffffffffff81168114611d3757600080fd5b6000602082840312156147a957600080fd5b5051919050565b6000602082840312156147c257600080fd5b81518015158114611d3757600080fd5b6000602082840312156147e457600080fd5b8151611d37816143b2565b634e487b7160e01b600052601160045260246000fd5b60008219821115614818576148186147ef565b500190565b60008282101561482f5761482f6147ef565b500390565b9485526001600160a01b03938416602086015260408501929092528216606084015216608082015260a00190565b600081600019048311821515161561487c5761487c6147ef565b500290565b60008261489e57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122084ef728ebfb0333127dbaf5c1958d15f6c7667ad0536c0afa147b43b535ef28b64736f6c63430008090033", - "libraries": { - "SortedDoublyLL": "0xC45f6918F7Bcac7aBc8fe05302b3cDF39776cdeb" - }, - "devdoc": { - "kind": "dev", - "methods": { - "bond(uint256,address)": { - "params": { - "_amount": "The amount of tokens to stake", - "_to": "The address of the transcoder to stake towards" - } - }, - "bondForWithHint(uint256,address,address,address,address,address,address)": { - "details": "If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_amount": "The amount of tokens to stake.", - "_currDelegateNewPosNext": "The address of the next transcoder in the pool for the current delegate", - "_currDelegateNewPosPrev": "The address of the previous transcoder in the pool for the current delegate", - "_oldDelegateNewPosNext": "The address of the next transcoder in the pool for the old delegate", - "_oldDelegateNewPosPrev": "The address of the previous transcoder in the pool for the old delegate", - "_owner": "The address of the owner of the bond", - "_to": "The address of the transcoder to stake towards" - } - }, - "bondWithHint(uint256,address,address,address,address,address)": { - "details": "If the caller is decreasing the stake of its old delegate in the transcoder pool, the caller can provide an optional hint for the insertion position of the old delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the caller is delegating to a delegate that is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_currDelegateNewPosPrev` and `_currDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_amount": "The amount of tokens to stake.", - "_currDelegateNewPosNext": "The address of the next transcoder in the pool for the current delegate", - "_currDelegateNewPosPrev": "The address of the previous transcoder in the pool for the current delegate", - "_oldDelegateNewPosNext": "The address of the next transcoder in the pool for the old delegate", - "_oldDelegateNewPosPrev": "The address of the previous transcoder in the pool for the old delegate", - "_to": "The address of the transcoder to stake towards" - } - }, - "claimEarnings(uint256)": { - "params": { - "_endRound": "The last round for which to claim token pools shares for a delegator" - } - }, - "constructor": { - "details": "This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setUnbondingPeriod() - setNumActiveTranscoders() - setMaxEarningsClaimsRounds()", - "params": { - "_controller": "Address of Controller that this contract will be registered with" - } - }, - "delegatorStatus(address)": { - "params": { - "_delegator": "Address of delegator" + "deployedLinkReferences": { + "contracts/libraries/SortedDoublyLL.sol": { + "SortedDoublyLL": [ + { + "length": 20, + "start": 3812 }, - "returns": { - "_0": "bonded, unbonded or pending delegator status" - } - }, - "getDelegator(address)": { - "params": { - "_delegator": "Address of delegator" + { + "length": 20, + "start": 4756 }, - "returns": { - "bondedAmount": "total amount bonded by '_delegator'", - "delegateAddress": "address '_delegator' has bonded to", - "delegatedAmount": "total amount delegated to '_delegator'", - "fees": "amount of fees collected by '_delegator'", - "lastClaimRound": "round for which '_delegator' has last claimed earnings", - "nextUnbondingLockId": "ID for the next unbonding lock created for '_delegator'", - "startRound": "round in which bond for '_delegator' became effective" - } - }, - "getDelegatorUnbondingLock(address,uint256)": { - "params": { - "_delegator": "Address of delegator", - "_unbondingLockId": "ID of unbonding lock" + { + "length": 20, + "start": 5573 }, - "returns": { - "amount": "of stake locked up by unbonding lock", - "withdrawRound": "round in which 'amount' becomes available for withdrawal" - } - }, - "getFirstTranscoderInPool()": { - "returns": { - "_0": "address for transcoder with highest stake in transcoder pool" - } - }, - "getNextTranscoderInPool(address)": { - "params": { - "_transcoder": "Address of a transcoder in the pool" + { + "length": 20, + "start": 6541 }, - "returns": { - "_0": "address for the transcoder after '_transcoder' in transcoder pool" - } - }, - "getTotalBonded()": { - "returns": { - "_0": "total active stake for the current round" - } - }, - "getTranscoder(address)": { - "params": { - "_transcoder": "Address of transcoder" + { + "length": 20, + "start": 7714 }, - "returns": { - "activationRound": "Round in which transcoder became active", - "activeCumulativeRewards": "Transcoder's cumulative rewards that are currently active", - "cumulativeFees": "Transcoder's cumulative fees (earned via its active staked rewards and its fee share)", - "cumulativeRewards": "Transcoder's cumulative rewards (earned via its active staked rewards and its reward cut)", - "deactivationRound": "Round in which transcoder will no longer be active", - "feeShare": "Transcoder's fee share", - "lastActiveStakeUpdateRound": "Round in which transcoder's stake was last updated while active", - "lastFeeRound": "Latest round that the transcoder received fees", - "lastRewardRound": "Trancoder's last reward round", - "rewardCut": "Transcoder's reward cut" - } - }, - "getTranscoderEarningsPoolForRound(address,uint256)": { - "params": { - "_round": "Round number", - "_transcoder": "Address of transcoder" + { + "length": 20, + "start": 7785 }, - "returns": { - "cumulativeFeeFactor": "The cumulative fee factor for delegator fees calculation (only used after LIP-36)", - "cumulativeRewardFactor": "The cumulative reward factor for delegator rewards calculation (only used after LIP-36)", - "totalStake": "Transcoder's total stake in '_round'", - "transcoderFeeShare": "Transcoder's fee share for '_round'", - "transcoderRewardCut": "Transcoder's reward cut for '_round'" - } - }, - "getTranscoderPoolMaxSize()": { - "returns": { - "_0": "transcoder pool max size" - } - }, - "getTranscoderPoolSize()": { - "returns": { - "_0": "transcoder pool current size" - } - }, - "isActiveTranscoder(address)": { - "params": { - "_transcoder": "Transcoder address" + { + "length": 20, + "start": 9658 }, - "returns": { - "_0": "true if transcoder is active" - } - }, - "isRegisteredTranscoder(address)": { - "params": { - "_transcoder": "Transcoder address" + { + "length": 20, + "start": 10522 }, - "returns": { - "_0": "true if transcoder is self-bonded" - } - }, - "isValidUnbondingLock(address,uint256)": { - "params": { - "_delegator": "Address of delegator", - "_unbondingLockId": "ID of unbonding lock" + { + "length": 20, + "start": 15091 }, - "returns": { - "_0": "true if unbondingLock for ID has a non-zero withdraw round" - } - }, - "pendingFees(address,uint256)": { - "params": { - "_delegator": "Address of delegator", - "_endRound": "The last round to compute pending fees from" + { + "length": 20, + "start": 15709 }, - "returns": { - "_0": "Pending fees for '_delegator' since last claiming fees" - } - }, - "pendingStake(address,uint256)": { - "params": { - "_delegator": "Address of delegator", - "_endRound": "The last round to compute pending stake from" + { + "length": 20, + "start": 15848 }, - "returns": { - "_0": "Pending bonded stake for '_delegator' since last claiming rewards" - } - }, - "rebond(uint256)": { - "params": { - "_unbondingLockId": "ID of unbonding lock to rebond with" - } - }, - "rebondFromUnbonded(address,uint256)": { - "params": { - "_to": "Address of delegate", - "_unbondingLockId": "ID of unbonding lock to rebond with" - } - }, - "rebondFromUnbondedWithHint(address,uint256,address,address)": { - "details": "If the delegate joins the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_newPosNext": "Address of next transcoder in pool if the delegate joins the pool", - "_newPosPrev": "Address of previous transcoder in pool if the delegate joins the pool", - "_to": "Address of delegate", - "_unbondingLockId": "ID of unbonding lock to rebond with" - } - }, - "rebondWithHint(uint256,address,address)": { - "details": "If the delegate is in the transcoder pool, the caller can provide an optional hint for the delegate's insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints", - "params": { - "_newPosNext": "Address of next transcoder in pool if the delegate is in the pool", - "_newPosPrev": "Address of previous transcoder in pool if the delegate is in the pool", - "_unbondingLockId": "ID of unbonding lock to rebond with" - } - }, - "rewardWithHint(address,address)": { - "details": "If the caller is in the transcoder pool, the caller can provide an optional hint for its insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_newPosNext": "Address of next transcoder in pool if the caller is in the pool", - "_newPosPrev": "Address of previous transcoder in pool if the caller is in the pool" - } - }, - "setController(address)": { - "params": { - "_controller": "Controller contract address" - } - }, - "setNumActiveTranscoders(uint256)": { - "params": { - "_numActiveTranscoders": "Number of active transcoders" - } - }, - "setUnbondingPeriod(uint64)": { - "params": { - "_unbondingPeriod": "Rounds between unbonding and possible withdrawal" - } - }, - "slashTranscoder(address,address,uint256,uint256)": { - "params": { - "_finder": "Finder that proved a transcoder violated a slashing condition. Null address if there is no finder", - "_finderFee": "Percentage of penalty awarded to finder. Zero if there is no finder", - "_slashAmount": "Percentage of transcoder bond to be slashed", - "_transcoder": "Transcoder address" - } - }, - "transcoder(uint256,uint256)": { - "details": "Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR", - "params": { - "_feeShare": "% of fees paid to delegators by a transcoder", - "_rewardCut": "% of reward paid to transcoder by a delegator" - } - }, - "transcoderStatus(address)": { - "params": { - "_transcoder": "Address of transcoder" + { + "length": 20, + "start": 16024 }, - "returns": { - "_0": "registered or not registered transcoder status" - } - }, - "transcoderTotalStake(address)": { - "params": { - "_transcoder": "Address of transcoder" + { + "length": 20, + "start": 16228 }, - "returns": { - "_0": "total bonded stake for a delegator" + { + "length": 20, + "start": 18382 + }, + { + "length": 20, + "start": 18651 + }, + { + "length": 20, + "start": 19485 + }, + { + "length": 20, + "start": 19614 } - }, - "transcoderWithHint(uint256,uint256,address,address)": { - "details": "Percentages are represented as numerators of fractions over MathUtils.PERC_DIVISOR. If the caller is going to be added to the pool, the caller can provide an optional hint for the insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position - in the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_feeShare": "% of fees paid to delegators by a transcoder", - "_newPosNext": "Address of next transcoder in pool if the caller joins the pool", - "_newPosPrev": "Address of previous transcoder in pool if the caller joins the pool", - "_rewardCut": "% of reward paid to transcoder by a delegator" - } - }, - "transferBond(address,uint256,address,address,address,address)": { - "details": "If the original delegate is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_oldDelegateNewPosPrev` and `_oldDelegateNewPosNext` params. If the target delegate is in the transcoder pool, the caller can provide an optional hint for the insertion position of the delegate via the `_newDelegateNewPosPrev` and `_newDelegateNewPosNext` params. In both cases, a linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol for details on list hints", - "params": { - "_amount": "Portion of the bond to transfer to receiver", - "_delegator": "Receiver of the bond", - "_newDelegateNewPosNext": "Address of next transcoder in pool if the delegate is in the pool", - "_newDelegateNewPosPrev": "Address of previous transcoder in pool if the delegate is in the pool", - "_oldDelegateNewPosNext": "Address of next transcoder in pool if the delegate remains in the pool", - "_oldDelegateNewPosPrev": "Address of previous transcoder in pool if the delegate remains in the pool" - } - }, - "unbond(uint256)": { - "params": { - "_amount": "Amount of tokens to unbond" - } - }, - "unbondWithHint(uint256,address,address)": { - "details": "If the caller remains in the transcoder pool, the caller can provide an optional hint for its insertion position in the pool via the `_newPosPrev` and `_newPosNext` params. A linear search will be executed starting at the hint to find the correct position. In the best case, the hint is the correct position so no search is executed. See SortedDoublyLL.sol details on list hints", - "params": { - "_amount": "Amount of tokens to unbond", - "_newPosNext": "Address of next transcoder in pool if the caller remains in the pool", - "_newPosPrev": "Address of previous transcoder in pool if the caller remains in the pool" - } - }, - "updateTranscoderWithFees(address,uint256,uint256)": { - "params": { - "_fees": "Fees to be added to the fee pool", - "_transcoder": "Transcoder address" - } - }, - "withdrawStake(uint256)": { - "params": { - "_unbondingLockId": "ID of unbonding lock to withdraw with" - } - } - }, - "title": "BondingManager", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "bond(uint256,address)": { - "notice": "Delegate stake towards a specific address" - }, - "bondForWithHint(uint256,address,address,address,address,address,address)": { - "notice": "Delegates stake \"on behalf of\" another address towards a specific address and updates the transcoder pool using optional list hints if needed" - }, - "bondWithHint(uint256,address,address,address,address,address)": { - "notice": "Delegates stake towards a specific address and updates the transcoder pool using optional list hints if needed" - }, - "claimEarnings(uint256)": { - "notice": "Claim token pools shares for a delegator from its lastClaimRound through the end round" - }, - "constructor": { - "notice": "BondingManager constructor. Only invokes constructor of base Manager contract with provided Controller address" - }, - "delegatorStatus(address)": { - "notice": "Computes delegator status" - }, - "getDelegator(address)": { - "notice": "Return delegator info" - }, - "getDelegatorUnbondingLock(address,uint256)": { - "notice": "Return delegator's unbonding lock info" - }, - "getFirstTranscoderInPool()": { - "notice": "Returns transcoder with most stake in pool" - }, - "getNextTranscoderInPool(address)": { - "notice": "Returns next transcoder in pool for a given transcoder" - }, - "getTotalBonded()": { - "notice": "Return total bonded tokens" - }, - "getTranscoder(address)": { - "notice": "Return transcoder information" - }, - "getTranscoderEarningsPoolForRound(address,uint256)": { - "notice": "Return transcoder's earnings pool for a given round" - }, - "getTranscoderPoolMaxSize()": { - "notice": "Returns max size of transcoder pool" - }, - "getTranscoderPoolSize()": { - "notice": "Returns size of transcoder pool" - }, - "isActiveTranscoder(address)": { - "notice": "Return whether a transcoder is active for the current round" - }, - "isRegisteredTranscoder(address)": { - "notice": "Return whether a transcoder is registered" - }, - "isValidUnbondingLock(address,uint256)": { - "notice": "Return whether an unbonding lock for a delegator is valid" - }, - "pendingFees(address,uint256)": { - "notice": "Returns pending fees for a delegator from its lastClaimRound through an end round" - }, - "pendingStake(address,uint256)": { - "notice": "Returns pending bonded stake for a delegator from its lastClaimRound through an end round" - }, - "rebond(uint256)": { - "notice": "Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status" - }, - "rebondFromUnbonded(address,uint256)": { - "notice": "Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status" - }, - "rebondFromUnbondedWithHint(address,uint256,address,address)": { - "notice": "Rebond tokens for an unbonding lock to a delegate while a delegator is in the Unbonded status and updates the transcoder pool using an optional list hint if needed" - }, - "rebondWithHint(uint256,address,address)": { - "notice": "Rebond tokens for an unbonding lock to a delegator's current delegate while a delegator is in the Bonded or Pending status and updates the transcoder pool using an optional list hint if needed" - }, - "reward()": { - "notice": "Mint token rewards for an active transcoder and its delegators" - }, - "rewardWithHint(address,address)": { - "notice": "Mint token rewards for an active transcoder and its delegators and update the transcoder pool using an optional list hint if needed" - }, - "setController(address)": { - "notice": "Set controller. Only callable by current controller" - }, - "setCurrentRoundTotalActiveStake()": { - "notice": "Called during round initialization to set the total active stake for the round. Only callable by the RoundsManager" - }, - "setNumActiveTranscoders(uint256)": { - "notice": "Set maximum number of active transcoders. Only callable by Controller owner" - }, - "setUnbondingPeriod(uint64)": { - "notice": "Set unbonding period. Only callable by Controller owner" - }, - "slashTranscoder(address,address,uint256,uint256)": { - "notice": "Slash a transcoder. Only callable by the Verifier" - }, - "transcoder(uint256,uint256)": { - "notice": "Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it" - }, - "transcoderStatus(address)": { - "notice": "Computes transcoder status" - }, - "transcoderTotalStake(address)": { - "notice": "Returns total bonded stake for a transcoder" - }, - "transcoderWithHint(uint256,uint256,address,address)": { - "notice": "Sets commission rates as a transcoder and if the caller is not in the transcoder pool tries to add it using an optional list hint" - }, - "transferBond(address,uint256,address,address,address,address)": { - "notice": "Transfers ownership of a bond to a new delegator using optional hints if needed If the receiver is already bonded to a different delegate than the bond owner then the stake goes to the receiver's delegate otherwise the receiver's delegate is set as the owner's delegate" - }, - "unbond(uint256)": { - "notice": "Unbond an amount of the delegator's bonded stake" - }, - "unbondWithHint(uint256,address,address)": { - "notice": "Unbond an amount of the delegator's bonded stake and updates the transcoder pool using an optional list hint if needed" - }, - "updateTranscoderWithFees(address,uint256,uint256)": { - "notice": "Update transcoder's fee pool. Only callable by the TicketBroker" - }, - "withdrawFees(address,uint256)": { - "notice": "Withdraws fees to the caller" - }, - "withdrawStake(uint256)": { - "notice": "Withdraws tokens for an unbonding lock that has existed through an unbonding period" - } - }, - "notice": "Manages bonding, transcoder and rewards/fee accounting related operations of the Livepeer protocol", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2670, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "controller", - "offset": 0, - "slot": "0", - "type": "t_contract(IController)2645" - }, - { - "astId": 2852, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "targetContractId", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - }, - { - "astId": 2962, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "unbondingPeriod", - "offset": 0, - "slot": "2", - "type": "t_uint64" - }, - { - "astId": 3025, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "delegators", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_struct(Delegator)3011_storage)" - }, - { - "astId": 3030, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "transcoders", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_address,t_struct(Transcoder)2988_storage)" - }, - { - "astId": 3032, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "currentRoundTotalActiveStake", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 3034, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "nextRoundTotalActiveStake", - "offset": 0, - "slot": "6", - "type": "t_uint256" - }, - { - "astId": 3037, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "transcoderPool", - "offset": 0, - "slot": "7", - "type": "t_struct(Data)7357_storage" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_contract(IController)2645": { - "encoding": "inplace", - "label": "contract IController", - "numberOfBytes": "20" - }, - "t_mapping(t_address,t_struct(Delegator)3011_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => struct BondingManager.Delegator)", - "numberOfBytes": "32", - "value": "t_struct(Delegator)3011_storage" - }, - "t_mapping(t_address,t_struct(Node)7343_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => struct SortedDoublyLL.Node)", - "numberOfBytes": "32", - "value": "t_struct(Node)7343_storage" - }, - "t_mapping(t_address,t_struct(Transcoder)2988_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => struct BondingManager.Transcoder)", - "numberOfBytes": "32", - "value": "t_struct(Transcoder)2988_storage" - }, - "t_mapping(t_uint256,t_struct(Data)6607_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct EarningsPool.Data)", - "numberOfBytes": "32", - "value": "t_struct(Data)6607_storage" - }, - "t_mapping(t_uint256,t_struct(UnbondingLock)3020_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct BondingManager.UnbondingLock)", - "numberOfBytes": "32", - "value": "t_struct(UnbondingLock)3020_storage" - }, - "t_struct(Data)6607_storage": { - "encoding": "inplace", - "label": "struct EarningsPool.Data", - "members": [ - { - "astId": 6598, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "totalStake", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 6600, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "transcoderRewardCut", - "offset": 0, - "slot": "1", - "type": "t_uint256" - }, - { - "astId": 6602, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "transcoderFeeShare", - "offset": 0, - "slot": "2", - "type": "t_uint256" - }, - { - "astId": 6604, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "cumulativeRewardFactor", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 6606, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "cumulativeFeeFactor", - "offset": 0, - "slot": "4", - "type": "t_uint256" - } - ], - "numberOfBytes": "160" - }, - "t_struct(Data)7357_storage": { - "encoding": "inplace", - "label": "struct SortedDoublyLL.Data", - "members": [ - { - "astId": 7345, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "head", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 7347, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "tail", - "offset": 0, - "slot": "1", - "type": "t_address" - }, - { - "astId": 7349, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "maxSize", - "offset": 0, - "slot": "2", - "type": "t_uint256" - }, - { - "astId": 7351, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "size", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 7356, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "nodes", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_address,t_struct(Node)7343_storage)" - } - ], - "numberOfBytes": "160" - }, - "t_struct(Delegator)3011_storage": { - "encoding": "inplace", - "label": "struct BondingManager.Delegator", - "members": [ - { - "astId": 2993, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "bondedAmount", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 2995, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "fees", - "offset": 0, - "slot": "1", - "type": "t_uint256" - }, - { - "astId": 2997, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "delegateAddress", - "offset": 0, - "slot": "2", - "type": "t_address" - }, - { - "astId": 2999, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "delegatedAmount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 3001, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "startRound", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 3003, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "lastClaimRound", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 3005, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "nextUnbondingLockId", - "offset": 0, - "slot": "6", - "type": "t_uint256" - }, - { - "astId": 3010, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "unbondingLocks", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_uint256,t_struct(UnbondingLock)3020_storage)" - } - ], - "numberOfBytes": "256" - }, - "t_struct(Node)7343_storage": { - "encoding": "inplace", - "label": "struct SortedDoublyLL.Node", - "members": [ - { - "astId": 7338, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "key", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 7340, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "nextId", - "offset": 0, - "slot": "1", - "type": "t_address" - }, - { - "astId": 7342, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "prevId", - "offset": 0, - "slot": "2", - "type": "t_address" - } - ], - "numberOfBytes": "96" - }, - "t_struct(Transcoder)2988_storage": { - "encoding": "inplace", - "label": "struct BondingManager.Transcoder", - "members": [ - { - "astId": 2964, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "lastRewardRound", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 2966, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "rewardCut", - "offset": 0, - "slot": "1", - "type": "t_uint256" - }, - { - "astId": 2968, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "feeShare", - "offset": 0, - "slot": "2", - "type": "t_uint256" - }, - { - "astId": 2973, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "earningsPoolPerRound", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(Data)6607_storage)" - }, - { - "astId": 2975, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "lastActiveStakeUpdateRound", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 2977, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "activationRound", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 2979, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "deactivationRound", - "offset": 0, - "slot": "6", - "type": "t_uint256" - }, - { - "astId": 2981, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "activeCumulativeRewards", - "offset": 0, - "slot": "7", - "type": "t_uint256" - }, - { - "astId": 2983, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "cumulativeRewards", - "offset": 0, - "slot": "8", - "type": "t_uint256" - }, - { - "astId": 2985, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "cumulativeFees", - "offset": 0, - "slot": "9", - "type": "t_uint256" - }, - { - "astId": 2987, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "lastFeeRound", - "offset": 0, - "slot": "10", - "type": "t_uint256" - } - ], - "numberOfBytes": "352" - }, - "t_struct(UnbondingLock)3020_storage": { - "encoding": "inplace", - "label": "struct BondingManager.UnbondingLock", - "members": [ - { - "astId": 3017, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "amount", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 3019, - "contract": "contracts/bonding/BondingManager.sol:BondingManager", - "label": "withdrawRound", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint64": { - "encoding": "inplace", - "label": "uint64", - "numberOfBytes": "8" - } + ] } } -} \ No newline at end of file +} diff --git a/backend/src/abi/RoundsManagerTarget.json b/backend/src/abi/RoundsManagerTarget.json index c19b50c..b71cd9b 100644 --- a/backend/src/abi/RoundsManagerTarget.json +++ b/backend/src/abi/RoundsManagerTarget.json @@ -1,5 +1,7 @@ { - "address": "0x92d804Ed49D92438aEA6fe552BD9163aacb7E841", + "_format": "hh-sol-artifact-1", + "contractName": "RoundsManager", + "sourceName": "contracts/rounds/RoundsManager.sol", "abi": [ { "inputs": [ @@ -335,223 +337,8 @@ "type": "function" } ], - "transactionHash": "0x9a5240b2fc734fee4afc554620fe87af3d31b12f95f0e76c4d74b56b6c07c5f8", - "receipt": { - "to": null, - "from": "0xB5Af4138f0f33be0D6414Eb25271B9C2Dc245fb5", - "contractAddress": "0x92d804Ed49D92438aEA6fe552BD9163aacb7E841", - "transactionIndex": 0, - "gasUsed": "11852484", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xa605f2f5b26db29a1f731110c0d78ef472d5016a330aa268ea3da73aa0cfe731", - "transactionHash": "0x9a5240b2fc734fee4afc554620fe87af3d31b12f95f0e76c4d74b56b6c07c5f8", - "logs": [], - "blockNumber": 5856389, - "cumulativeGasUsed": "5285984", - "status": 1, - "byzantium": true - }, - "args": [ - "0xD8E8328501E9645d16Cf49539efC04f734606ee4" - ], - "numDeployments": 1, - "solcInputHash": "fbb7c6c031c5ea66d51283bdfeec92b9", - "metadata": "{\"compiler\":{\"version\":\"0.8.9+commit.e5eed63a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"round\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"name\":\"NewRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"param\",\"type\":\"string\"}],\"name\":\"ParameterUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_block\",\"type\":\"uint256\"}],\"name\":\"blockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_round\",\"type\":\"uint256\"}],\"name\":\"blockHashForRound\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blockNum\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contract IController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRoundInitialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRoundLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRoundStartBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initializeRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastInitializedRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRoundLengthUpdateRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRoundLengthUpdateStartBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"lipUpgradeRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roundLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roundLockAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_lip\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_round\",\"type\":\"uint256\"}],\"name\":\"setLIPUpgradeRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_roundLength\",\"type\":\"uint256\"}],\"name\":\"setRoundLength\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_roundLockAmount\",\"type\":\"uint256\"}],\"name\":\"setRoundLockAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"targetContractId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"blockHashForRound(uint256)\":{\"params\":{\"_round\":\"Round number\"},\"returns\":{\"_0\":\"Blockhash for `_round`\"}},\"constructor\":{\"details\":\"This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setRoundLength() - setRoundLockAmount()\",\"params\":{\"_controller\":\"Address of Controller that this contract will be registered with\"}},\"setController(address)\":{\"params\":{\"_controller\":\"Controller contract address\"}},\"setLIPUpgradeRound(uint256,uint256)\":{\"params\":{\"_lip\":\"the LIP number.\",\"_round\":\"(optional) the round in which the LIP becomes active\"}},\"setRoundLength(uint256)\":{\"params\":{\"_roundLength\":\"Round length in blocks\"}},\"setRoundLockAmount(uint256)\":{\"params\":{\"_roundLockAmount\":\"Round lock amount as a % of the number of blocks in a round\"}}},\"title\":\"RoundsManager\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"blockHash(uint256)\":{\"notice\":\"Return blockhash for a block\"},\"blockHashForRound(uint256)\":{\"notice\":\"Return blockhash for a round\"},\"blockNum()\":{\"notice\":\"Return current block number\"},\"constructor\":{\"notice\":\"RoundsManager constructor. Only invokes constructor of base Manager contract with provided Controller address\"},\"currentRound()\":{\"notice\":\"Return current round\"},\"currentRoundInitialized()\":{\"notice\":\"Check if current round is initialized\"},\"currentRoundLocked()\":{\"notice\":\"Check if we are in the lock period of the current round\"},\"currentRoundStartBlock()\":{\"notice\":\"Return start block of current round\"},\"initializeRound()\":{\"notice\":\"Initialize the current round. Called once at the start of any round\"},\"setController(address)\":{\"notice\":\"Set controller. Only callable by current controller\"},\"setLIPUpgradeRound(uint256,uint256)\":{\"notice\":\"setLIPUpgradeRound sets the round an LIP upgrade would become active.\"},\"setRoundLength(uint256)\":{\"notice\":\"Set round length. Only callable by the controller owner\"},\"setRoundLockAmount(uint256)\":{\"notice\":\"Set round lock amount. Only callable by the controller owner\"}},\"notice\":\"Manages round progression and other blockchain time related operations of the Livepeer protocol\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/rounds/RoundsManager.sol\":\"RoundsManager\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n// CAUTION\\n// This version of SafeMath should only be used with Solidity 0.8 or later,\\n// because it relies on the compiler's built in overflow checks.\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations.\\n *\\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\\n * now has built in overflow checking.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a + b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a * b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator.\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa2f576be637946f767aa56601c26d717f48a0aff44f82e46f13807eea1009a21\",\"license\":\"MIT\"},\"contracts/IController.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./zeppelin/Pausable.sol\\\";\\n\\nabstract contract IController is Pausable {\\n event SetContractInfo(bytes32 id, address contractAddress, bytes20 gitCommitHash);\\n\\n function setContractInfo(\\n bytes32 _id,\\n address _contractAddress,\\n bytes20 _gitCommitHash\\n ) external virtual;\\n\\n function updateController(bytes32 _id, address _controller) external virtual;\\n\\n function getContract(bytes32 _id) public view virtual returns (address);\\n}\\n\",\"keccak256\":\"0x34ea30a2b44d0cbec58fc1d703476ff0085b0fdadab0cd65c35c00b8867f7546\",\"license\":\"MIT\"},\"contracts/IManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\ninterface IManager {\\n event SetController(address controller);\\n event ParameterUpdate(string param);\\n\\n function setController(address _controller) external;\\n}\\n\",\"keccak256\":\"0xc179e4cecc593741514237d5194b4aaac6b829789629fa19ed04f572a8530481\",\"license\":\"MIT\"},\"contracts/Manager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./IManager.sol\\\";\\nimport \\\"./IController.sol\\\";\\n\\ncontract Manager is IManager {\\n // Controller that contract is registered with\\n IController public controller;\\n\\n // Check if sender is controller\\n modifier onlyController() {\\n _onlyController();\\n _;\\n }\\n\\n // Check if sender is controller owner\\n modifier onlyControllerOwner() {\\n _onlyControllerOwner();\\n _;\\n }\\n\\n // Check if controller is not paused\\n modifier whenSystemNotPaused() {\\n _whenSystemNotPaused();\\n _;\\n }\\n\\n // Check if controller is paused\\n modifier whenSystemPaused() {\\n _whenSystemPaused();\\n _;\\n }\\n\\n constructor(address _controller) {\\n controller = IController(_controller);\\n }\\n\\n /**\\n * @notice Set controller. Only callable by current controller\\n * @param _controller Controller contract address\\n */\\n function setController(address _controller) external onlyController {\\n controller = IController(_controller);\\n\\n emit SetController(_controller);\\n }\\n\\n function _onlyController() private view {\\n require(msg.sender == address(controller), \\\"caller must be Controller\\\");\\n }\\n\\n function _onlyControllerOwner() private view {\\n require(msg.sender == controller.owner(), \\\"caller must be Controller owner\\\");\\n }\\n\\n function _whenSystemNotPaused() private view {\\n require(!controller.paused(), \\\"system is paused\\\");\\n }\\n\\n function _whenSystemPaused() private view {\\n require(controller.paused(), \\\"system is not paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xc415e3f42da9f82ddd5953031f3f26aed824368fcc34d3b8a17015bfe80dc109\",\"license\":\"MIT\"},\"contracts/ManagerProxyTarget.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Manager.sol\\\";\\n\\n/**\\n * @title ManagerProxyTarget\\n * @notice The base contract that target contracts used by a proxy contract should inherit from\\n * @dev Both the target contract and the proxy contract (implemented as ManagerProxy) MUST inherit from ManagerProxyTarget in order to guarantee\\n that both contracts have the same storage layout. Differing storage layouts in a proxy contract and target contract can\\n potentially break the delegate proxy upgradeability mechanism\\n */\\nabstract contract ManagerProxyTarget is Manager {\\n // Used to look up target contract address in controller's registry\\n bytes32 public targetContractId;\\n}\\n\",\"keccak256\":\"0x920bcc2def240e06272dc06cbcb9f12976f1698cd4f1020c165af25ee837e553\",\"license\":\"MIT\"},\"contracts/bonding/IBondingManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Interface for BondingManager\\n * TODO: switch to interface type\\n */\\ninterface IBondingManager {\\n event TranscoderUpdate(address indexed transcoder, uint256 rewardCut, uint256 feeShare);\\n event TranscoderActivated(address indexed transcoder, uint256 activationRound);\\n event TranscoderDeactivated(address indexed transcoder, uint256 deactivationRound);\\n event TranscoderSlashed(address indexed transcoder, address finder, uint256 penalty, uint256 finderReward);\\n event Reward(address indexed transcoder, uint256 amount);\\n event Bond(\\n address indexed newDelegate,\\n address indexed oldDelegate,\\n address indexed delegator,\\n uint256 additionalAmount,\\n uint256 bondedAmount\\n );\\n event Unbond(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 unbondingLockId,\\n uint256 amount,\\n uint256 withdrawRound\\n );\\n event Rebond(address indexed delegate, address indexed delegator, uint256 unbondingLockId, uint256 amount);\\n event TransferBond(\\n address indexed oldDelegator,\\n address indexed newDelegator,\\n uint256 oldUnbondingLockId,\\n uint256 newUnbondingLockId,\\n uint256 amount\\n );\\n event WithdrawStake(address indexed delegator, uint256 unbondingLockId, uint256 amount, uint256 withdrawRound);\\n event WithdrawFees(address indexed delegator, address recipient, uint256 amount);\\n event EarningsClaimed(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 rewards,\\n uint256 fees,\\n uint256 startRound,\\n uint256 endRound\\n );\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event Bond(address indexed delegate, address indexed delegator);\\n // event Unbond(address indexed delegate, address indexed delegator);\\n // event WithdrawStake(address indexed delegator);\\n // event TranscoderUpdate(address indexed transcoder, uint256 pendingRewardCut, uint256 pendingFeeShare, uint256 pendingPricePerSegment, bool registered);\\n // event TranscoderEvicted(address indexed transcoder);\\n // event TranscoderResigned(address indexed transcoder);\\n\\n // External functions\\n function updateTranscoderWithFees(\\n address _transcoder,\\n uint256 _fees,\\n uint256 _round\\n ) external;\\n\\n function slashTranscoder(\\n address _transcoder,\\n address _finder,\\n uint256 _slashAmount,\\n uint256 _finderFee\\n ) external;\\n\\n function setCurrentRoundTotalActiveStake() external;\\n\\n // Public functions\\n function getTranscoderPoolSize() external view returns (uint256);\\n\\n function transcoderTotalStake(address _transcoder) external view returns (uint256);\\n\\n function isActiveTranscoder(address _transcoder) external view returns (bool);\\n\\n function getTotalBonded() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x6406378868b556ca91b1ab6cccd036695c8984d30a225f75a5979cb9aa7c1df2\",\"license\":\"MIT\"},\"contracts/libraries/MathUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nlibrary MathUtils {\\n using SafeMath for uint256;\\n\\n // Divisor used for representing percentages\\n uint256 public constant PERC_DIVISOR = 1000000;\\n\\n /**\\n * @dev Returns whether an amount is a valid percentage out of PERC_DIVISOR\\n * @param _amount Amount that is supposed to be a percentage\\n */\\n function validPerc(uint256 _amount) internal pure returns (bool) {\\n return _amount <= PERC_DIVISOR;\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage\\n * @param _fracDenom Denominator of fraction representing the percentage\\n */\\n function percOf(\\n uint256 _amount,\\n uint256 _fracNum,\\n uint256 _fracDenom\\n ) internal pure returns (uint256) {\\n return _amount.mul(percPoints(_fracNum, _fracDenom)).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage of a value with the percentage represented by a fraction over PERC_DIVISOR\\n * @param _amount Amount to take the percentage of\\n * @param _fracNum Numerator of fraction representing the percentage with PERC_DIVISOR as the denominator\\n */\\n function percOf(uint256 _amount, uint256 _fracNum) internal pure returns (uint256) {\\n return _amount.mul(_fracNum).div(PERC_DIVISOR);\\n }\\n\\n /**\\n * @dev Compute percentage representation of a fraction\\n * @param _fracNum Numerator of fraction represeting the percentage\\n * @param _fracDenom Denominator of fraction represeting the percentage\\n */\\n function percPoints(uint256 _fracNum, uint256 _fracDenom) internal pure returns (uint256) {\\n return _fracNum.mul(PERC_DIVISOR).div(_fracDenom);\\n }\\n}\\n\",\"keccak256\":\"0x1df26c159dc63d804d3fda28e41b18487e8619009082c56e013aa6c9a58de253\",\"license\":\"MIT\"},\"contracts/rounds/IRoundsManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title RoundsManager interface\\n */\\ninterface IRoundsManager {\\n // Events\\n event NewRound(uint256 indexed round, bytes32 blockHash);\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event NewRound(uint256 round)\\n\\n // External functions\\n function initializeRound() external;\\n\\n function lipUpgradeRound(uint256 _lip) external view returns (uint256);\\n\\n // Public functions\\n function blockNum() external view returns (uint256);\\n\\n function blockHash(uint256 _block) external view returns (bytes32);\\n\\n function blockHashForRound(uint256 _round) external view returns (bytes32);\\n\\n function currentRound() external view returns (uint256);\\n\\n function currentRoundStartBlock() external view returns (uint256);\\n\\n function currentRoundInitialized() external view returns (bool);\\n\\n function currentRoundLocked() external view returns (bool);\\n}\\n\",\"keccak256\":\"0xfc453a476bb68b874c21678a128b46ffcad0af69008e0e3e857d46499214f75f\",\"license\":\"MIT\"},\"contracts/rounds/RoundsManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../ManagerProxyTarget.sol\\\";\\nimport \\\"./IRoundsManager.sol\\\";\\nimport \\\"../bonding/IBondingManager.sol\\\";\\nimport \\\"../token/IMinter.sol\\\";\\nimport \\\"../libraries/MathUtils.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\n/**\\n * @title RoundsManager\\n * @notice Manages round progression and other blockchain time related operations of the Livepeer protocol\\n */\\ncontract RoundsManager is ManagerProxyTarget, IRoundsManager {\\n using SafeMath for uint256;\\n\\n // Round length in blocks\\n uint256 public roundLength;\\n // Lock period of a round as a % of round length\\n // Transcoders cannot join the transcoder pool or change their rates during the lock period at the end of a round\\n // The lock period provides delegators time to review transcoder information without changes\\n // # of blocks in the lock period = (roundLength * roundLockAmount) / PERC_DIVISOR\\n uint256 public roundLockAmount;\\n // Last initialized round. After first round, this is the last round during which initializeRound() was called\\n uint256 public lastInitializedRound;\\n // Round in which roundLength was last updated\\n uint256 public lastRoundLengthUpdateRound;\\n // Start block of the round in which roundLength was last updated\\n uint256 public lastRoundLengthUpdateStartBlock;\\n\\n // Mapping round number => block hash for the round\\n mapping(uint256 => bytes32) internal _blockHashForRound;\\n\\n // LIP Upgrade Rounds\\n // These can be used in conditionals to ensure backwards compatibility or skip such backwards compatibility logic\\n // in case 'currentRound' > LIP-X upgrade round\\n mapping(uint256 => uint256) public lipUpgradeRound; // mapping (LIP-number > round number)\\n\\n /**\\n * @notice RoundsManager constructor. Only invokes constructor of base Manager contract with provided Controller address\\n * @dev This constructor will not initialize any state variables besides `controller`. The following setter functions\\n * should be used to initialize state variables post-deployment:\\n * - setRoundLength()\\n * - setRoundLockAmount()\\n * @param _controller Address of Controller that this contract will be registered with\\n */\\n constructor(address _controller) Manager(_controller) {}\\n\\n /**\\n * @notice Set round length. Only callable by the controller owner\\n * @param _roundLength Round length in blocks\\n */\\n function setRoundLength(uint256 _roundLength) external onlyControllerOwner {\\n require(_roundLength > 0, \\\"round length cannot be 0\\\");\\n\\n if (roundLength == 0) {\\n // If first time initializing roundLength, set roundLength before\\n // lastRoundLengthUpdateRound and lastRoundLengthUpdateStartBlock\\n roundLength = _roundLength;\\n lastRoundLengthUpdateRound = currentRound();\\n lastRoundLengthUpdateStartBlock = currentRoundStartBlock();\\n } else {\\n // If updating roundLength, set roundLength after\\n // lastRoundLengthUpdateRound and lastRoundLengthUpdateStartBlock\\n lastRoundLengthUpdateRound = currentRound();\\n lastRoundLengthUpdateStartBlock = currentRoundStartBlock();\\n roundLength = _roundLength;\\n }\\n\\n emit ParameterUpdate(\\\"roundLength\\\");\\n }\\n\\n /**\\n * @notice Set round lock amount. Only callable by the controller owner\\n * @param _roundLockAmount Round lock amount as a % of the number of blocks in a round\\n */\\n function setRoundLockAmount(uint256 _roundLockAmount) external onlyControllerOwner {\\n require(MathUtils.validPerc(_roundLockAmount), \\\"round lock amount must be a valid percentage\\\");\\n\\n roundLockAmount = _roundLockAmount;\\n\\n emit ParameterUpdate(\\\"roundLockAmount\\\");\\n }\\n\\n /**\\n * @notice Initialize the current round. Called once at the start of any round\\n */\\n function initializeRound() external whenSystemNotPaused {\\n uint256 currRound = currentRound();\\n\\n // Check if already called for the current round\\n require(lastInitializedRound < currRound, \\\"round already initialized\\\");\\n\\n // Set current round as initialized\\n lastInitializedRound = currRound;\\n // Store block hash for round\\n bytes32 roundBlockHash = blockHash(blockNum().sub(1));\\n _blockHashForRound[currRound] = roundBlockHash;\\n // Set total active stake for the round\\n bondingManager().setCurrentRoundTotalActiveStake();\\n // Set mintable rewards for the round\\n minter().setCurrentRewardTokens();\\n\\n emit NewRound(currRound, roundBlockHash);\\n }\\n\\n /**\\n * @notice setLIPUpgradeRound sets the round an LIP upgrade would become active.\\n * @param _lip the LIP number.\\n * @param _round (optional) the round in which the LIP becomes active\\n */\\n function setLIPUpgradeRound(uint256 _lip, uint256 _round) external onlyControllerOwner {\\n require(lipUpgradeRound[_lip] == 0, \\\"LIP upgrade round already set\\\");\\n lipUpgradeRound[_lip] = _round;\\n }\\n\\n /**\\n * @notice Return current block number\\n */\\n function blockNum() public view virtual returns (uint256) {\\n return block.number;\\n }\\n\\n /**\\n * @notice Return blockhash for a block\\n */\\n function blockHash(uint256 _block) public view virtual returns (bytes32) {\\n uint256 currentBlock = blockNum();\\n require(_block < currentBlock, \\\"can only retrieve past block hashes\\\");\\n require(currentBlock < 256 || _block >= currentBlock - 256, \\\"can only retrieve hashes for last 256 blocks\\\");\\n\\n return blockhash(_block);\\n }\\n\\n /**\\n * @notice Return blockhash for a round\\n * @param _round Round number\\n * @return Blockhash for `_round`\\n */\\n function blockHashForRound(uint256 _round) public view returns (bytes32) {\\n return _blockHashForRound[_round];\\n }\\n\\n /**\\n * @notice Return current round\\n */\\n function currentRound() public view returns (uint256) {\\n // Compute # of rounds since roundLength was last updated\\n uint256 roundsSinceUpdate = blockNum().sub(lastRoundLengthUpdateStartBlock).div(roundLength);\\n // Current round = round that roundLength was last updated + # of rounds since roundLength was last updated\\n return lastRoundLengthUpdateRound.add(roundsSinceUpdate);\\n }\\n\\n /**\\n * @notice Return start block of current round\\n */\\n function currentRoundStartBlock() public view returns (uint256) {\\n // Compute # of rounds since roundLength was last updated\\n uint256 roundsSinceUpdate = blockNum().sub(lastRoundLengthUpdateStartBlock).div(roundLength);\\n // Current round start block = start block of round that roundLength was last updated + (# of rounds since roundLenght was last updated * roundLength)\\n return lastRoundLengthUpdateStartBlock.add(roundsSinceUpdate.mul(roundLength));\\n }\\n\\n /**\\n * @notice Check if current round is initialized\\n */\\n function currentRoundInitialized() public view returns (bool) {\\n return lastInitializedRound == currentRound();\\n }\\n\\n /**\\n * @notice Check if we are in the lock period of the current round\\n */\\n function currentRoundLocked() public view returns (bool) {\\n uint256 lockedBlocks = MathUtils.percOf(roundLength, roundLockAmount);\\n return blockNum().sub(currentRoundStartBlock()) >= roundLength.sub(lockedBlocks);\\n }\\n\\n /**\\n * @dev Return BondingManager interface\\n */\\n function bondingManager() internal view returns (IBondingManager) {\\n return IBondingManager(controller.getContract(keccak256(\\\"BondingManager\\\")));\\n }\\n\\n /**\\n * @dev Return Minter interface\\n */\\n function minter() internal view returns (IMinter) {\\n return IMinter(controller.getContract(keccak256(\\\"Minter\\\")));\\n }\\n}\\n\",\"keccak256\":\"0xec79cd1fc0bfe9a9535be77412dbb4748fa27d069ffd65842fba0ce2f063a256\",\"license\":\"MIT\"},\"contracts/token/IMinter.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../IController.sol\\\";\\n\\n/**\\n * @title Minter interface\\n */\\ninterface IMinter {\\n // Events\\n event SetCurrentRewardTokens(uint256 currentMintableTokens, uint256 currentInflation);\\n\\n // External functions\\n function createReward(uint256 _fracNum, uint256 _fracDenom) external returns (uint256);\\n\\n function trustedTransferTokens(address _to, uint256 _amount) external;\\n\\n function trustedBurnTokens(uint256 _amount) external;\\n\\n function trustedWithdrawETH(address payable _to, uint256 _amount) external;\\n\\n function depositETH() external payable returns (bool);\\n\\n function setCurrentRewardTokens() external;\\n\\n function currentMintableTokens() external view returns (uint256);\\n\\n function currentMintedTokens() external view returns (uint256);\\n\\n // Public functions\\n function getController() external view returns (IController);\\n}\\n\",\"keccak256\":\"0x3fbb7a4239a8b5979fb4c45a41495e9694a9f454de82dca3cf6a14dfe71255c7\",\"license\":\"MIT\"},\"contracts/zeppelin/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Ownable\\n * @dev The Ownable contract has an owner address, and provides basic authorization control\\n * functions, this simplifies the implementation of \\\"user permissions\\\".\\n */\\ncontract Ownable {\\n address public owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\\n * account.\\n */\\n constructor() {\\n owner = msg.sender;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(msg.sender == owner);\\n _;\\n }\\n\\n /**\\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\\n * @param newOwner The address to transfer ownership to.\\n */\\n function transferOwnership(address newOwner) public onlyOwner {\\n require(newOwner != address(0));\\n emit OwnershipTransferred(owner, newOwner);\\n owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x64f114689f2f161c4a4b8fc8442ab914436a33e6021bf17401eaeac73319a419\",\"license\":\"MIT\"},\"contracts/zeppelin/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Ownable.sol\\\";\\n\\n/**\\n * @title Pausable\\n * @dev Base contract which allows children to implement an emergency stop mechanism.\\n */\\ncontract Pausable is Ownable {\\n event Pause();\\n event Unpause();\\n\\n bool public paused;\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused);\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n */\\n modifier whenPaused() {\\n require(paused);\\n _;\\n }\\n\\n /**\\n * @dev called by the owner to pause, triggers stopped state\\n */\\n function pause() public onlyOwner whenNotPaused {\\n paused = true;\\n emit Pause();\\n }\\n\\n /**\\n * @dev called by the owner to unpause, returns to normal state\\n */\\n function unpause() public onlyOwner whenPaused {\\n paused = false;\\n emit Unpause();\\n }\\n}\\n\",\"keccak256\":\"0xe9635fcac46c22547a08f6977a8c75e7341411f1201f60bdd4c79c26e6c286ef\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50604051610d6d380380610d6d83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610cda806100936000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806385df51fd116100ad5780638fa148f2116100715780638fa148f21461022d57806392eefe9b14610235578063d4807fb214610248578063f5b490d514610250578063f77c47911461025957600080fd5b806385df51fd146101fa5780638807f36e1461020d5780638a19c8bc146102165780638ae63d6d1461021e5780638b649b941461022457600080fd5b80633aa4add4116100f45780633aa4add4146101ad57806351720b41146101cd578063668abff7146101d6578063681312f5146101df5780636841f253146101f257600080fd5b80630b1573b8146101315780630fe1dfa81461014657806313013e7a146101625780631e6d4c2214610175578063219bc76c14610195575b600080fd5b61014461013f366004610b6f565b610284565b005b61014f60055481565b6040519081526020015b60405180910390f35b610144610170366004610b88565b610361565b61014f610183366004610b6f565b60086020526000908152604090205481565b61019d6103d7565b6040519015158152602001610159565b61014f6101bb366004610b6f565b60009081526007602052604090205490565b61014f60015481565b61014f60065481565b6101446101ed366004610b6f565b6103ea565b61019d6104d2565b61014f610208366004610b6f565b61050e565b61014f60045481565b61014f6105ee565b4361014f565b61014f60025481565b61014f610620565b610144610243366004610bc2565b610659565b6101446106af565b61014f60035481565b60005461026c906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61028c61082e565b61029981620f4240101590565b6102ff5760405162461bcd60e51b815260206004820152602c60248201527f726f756e64206c6f636b20616d6f756e74206d75737420626520612076616c6960448201526b642070657263656e7461676560a01b60648201526084015b60405180910390fd5b60038190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610356906020808252600f908201526e1c9bdd5b99131bd8dad05b5bdd5b9d608a1b604082015260600190565b60405180910390a150565b61036961082e565b600082815260086020526040902054156103c55760405162461bcd60e51b815260206004820152601d60248201527f4c4950207570677261646520726f756e6420616c72656164792073657400000060448201526064016102f6565b60009182526008602052604090912055565b60006103e16105ee565b60045414905090565b6103f261082e565b600081116104425760405162461bcd60e51b815260206004820152601860248201527f726f756e64206c656e6774682063616e6e6f742062652030000000000000000060448201526064016102f6565b6002546104695760028190556104566105ee565b600555610461610620565b600655610485565b6104716105ee565b60055561047c610620565b60065560028190555b7f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051610356906020808252600b908201526a0e4deeadcc898cadccee8d60ab1b604082015260600190565b6000806104e3600254600354610914565b6002549091506104f3908261092e565b6105066104fe610620565b435b9061092e565b101591505090565b60004380831061056c5760405162461bcd60e51b815260206004820152602360248201527f63616e206f6e6c79207265747269657665207061737420626c6f636b2068617360448201526268657360e81b60648201526084016102f6565b610100811080610587575061058361010082610bf5565b8310155b6105e85760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c792072657472696576652068617368657320666f72206c617360448201526b742032353620626c6f636b7360a01b60648201526084016102f6565b50504090565b60008061060a6002546106046006546105004390565b9061093a565b60055490915061061a9082610946565b91505090565b6000806106366002546106046006546105004390565b905061061a6106506002548361095290919063ffffffff16565b60065490610946565b61066161095e565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610356565b6106b76109b8565b60006106c16105ee565b905080600454106107145760405162461bcd60e51b815260206004820152601960248201527f726f756e6420616c726561647920696e697469616c697a65640000000000000060448201526064016102f6565b60048190556000610729610208600143610500565b60008381526007602052604090208190559050610744610a7c565b6001600160a01b031663713f22166040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b5050505061079e610b1e565b6001600160a01b031663ece2064c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50505050817f22f2fc17c5daf07db2379b3a03a8ef20a183f761097a58fce219c8a14619e7868260405161082291815260200190565b60405180910390a25050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087a57600080fd5b505afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610c0c565b6001600160a01b0316336001600160a01b0316146109125760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e65720060448201526064016102f6565b565b6000610927620f42406106048585610952565b9392505050565b60006109278284610bf5565b60006109278284610c29565b60006109278284610c4b565b60006109278284610c63565b6000546001600160a01b031633146109125760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c65720000000000000060448201526064016102f6565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0457600080fd5b505afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190610c82565b156109125760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b60448201526064016102f6565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b199190610c0c565b905090565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401610ac9565b600060208284031215610b8157600080fd5b5035919050565b60008060408385031215610b9b57600080fd5b50508035926020909101359150565b6001600160a01b0381168114610bbf57600080fd5b50565b600060208284031215610bd457600080fd5b813561092781610baa565b634e487b7160e01b600052601160045260246000fd5b600082821015610c0757610c07610bdf565b500390565b600060208284031215610c1e57600080fd5b815161092781610baa565b600082610c4657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c5e57610c5e610bdf565b500190565b6000816000190483118215151615610c7d57610c7d610bdf565b500290565b600060208284031215610c9457600080fd5b8151801515811461092757600080fdfea264697066735822122038a3be6ebcad41c67dfb6b79971be280af806be29f54716b4573e7ec12cd640264736f6c63430008090033", - "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806385df51fd116100ad5780638fa148f2116100715780638fa148f21461022d57806392eefe9b14610235578063d4807fb214610248578063f5b490d514610250578063f77c47911461025957600080fd5b806385df51fd146101fa5780638807f36e1461020d5780638a19c8bc146102165780638ae63d6d1461021e5780638b649b941461022457600080fd5b80633aa4add4116100f45780633aa4add4146101ad57806351720b41146101cd578063668abff7146101d6578063681312f5146101df5780636841f253146101f257600080fd5b80630b1573b8146101315780630fe1dfa81461014657806313013e7a146101625780631e6d4c2214610175578063219bc76c14610195575b600080fd5b61014461013f366004610b6f565b610284565b005b61014f60055481565b6040519081526020015b60405180910390f35b610144610170366004610b88565b610361565b61014f610183366004610b6f565b60086020526000908152604090205481565b61019d6103d7565b6040519015158152602001610159565b61014f6101bb366004610b6f565b60009081526007602052604090205490565b61014f60015481565b61014f60065481565b6101446101ed366004610b6f565b6103ea565b61019d6104d2565b61014f610208366004610b6f565b61050e565b61014f60045481565b61014f6105ee565b4361014f565b61014f60025481565b61014f610620565b610144610243366004610bc2565b610659565b6101446106af565b61014f60035481565b60005461026c906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61028c61082e565b61029981620f4240101590565b6102ff5760405162461bcd60e51b815260206004820152602c60248201527f726f756e64206c6f636b20616d6f756e74206d75737420626520612076616c6960448201526b642070657263656e7461676560a01b60648201526084015b60405180910390fd5b60038190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610356906020808252600f908201526e1c9bdd5b99131bd8dad05b5bdd5b9d608a1b604082015260600190565b60405180910390a150565b61036961082e565b600082815260086020526040902054156103c55760405162461bcd60e51b815260206004820152601d60248201527f4c4950207570677261646520726f756e6420616c72656164792073657400000060448201526064016102f6565b60009182526008602052604090912055565b60006103e16105ee565b60045414905090565b6103f261082e565b600081116104425760405162461bcd60e51b815260206004820152601860248201527f726f756e64206c656e6774682063616e6e6f742062652030000000000000000060448201526064016102f6565b6002546104695760028190556104566105ee565b600555610461610620565b600655610485565b6104716105ee565b60055561047c610620565b60065560028190555b7f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051610356906020808252600b908201526a0e4deeadcc898cadccee8d60ab1b604082015260600190565b6000806104e3600254600354610914565b6002549091506104f3908261092e565b6105066104fe610620565b435b9061092e565b101591505090565b60004380831061056c5760405162461bcd60e51b815260206004820152602360248201527f63616e206f6e6c79207265747269657665207061737420626c6f636b2068617360448201526268657360e81b60648201526084016102f6565b610100811080610587575061058361010082610bf5565b8310155b6105e85760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c792072657472696576652068617368657320666f72206c617360448201526b742032353620626c6f636b7360a01b60648201526084016102f6565b50504090565b60008061060a6002546106046006546105004390565b9061093a565b60055490915061061a9082610946565b91505090565b6000806106366002546106046006546105004390565b905061061a6106506002548361095290919063ffffffff16565b60065490610946565b61066161095e565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610356565b6106b76109b8565b60006106c16105ee565b905080600454106107145760405162461bcd60e51b815260206004820152601960248201527f726f756e6420616c726561647920696e697469616c697a65640000000000000060448201526064016102f6565b60048190556000610729610208600143610500565b60008381526007602052604090208190559050610744610a7c565b6001600160a01b031663713f22166040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b5050505061079e610b1e565b6001600160a01b031663ece2064c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50505050817f22f2fc17c5daf07db2379b3a03a8ef20a183f761097a58fce219c8a14619e7868260405161082291815260200190565b60405180910390a25050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087a57600080fd5b505afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610c0c565b6001600160a01b0316336001600160a01b0316146109125760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e65720060448201526064016102f6565b565b6000610927620f42406106048585610952565b9392505050565b60006109278284610bf5565b60006109278284610c29565b60006109278284610c4b565b60006109278284610c63565b6000546001600160a01b031633146109125760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c65720000000000000060448201526064016102f6565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0457600080fd5b505afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190610c82565b156109125760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b60448201526064016102f6565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b199190610c0c565b905090565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401610ac9565b600060208284031215610b8157600080fd5b5035919050565b60008060408385031215610b9b57600080fd5b50508035926020909101359150565b6001600160a01b0381168114610bbf57600080fd5b50565b600060208284031215610bd457600080fd5b813561092781610baa565b634e487b7160e01b600052601160045260246000fd5b600082821015610c0757610c07610bdf565b500390565b600060208284031215610c1e57600080fd5b815161092781610baa565b600082610c4657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c5e57610c5e610bdf565b500190565b6000816000190483118215151615610c7d57610c7d610bdf565b500290565b600060208284031215610c9457600080fd5b8151801515811461092757600080fdfea264697066735822122038a3be6ebcad41c67dfb6b79971be280af806be29f54716b4573e7ec12cd640264736f6c63430008090033", - "devdoc": { - "kind": "dev", - "methods": { - "blockHashForRound(uint256)": { - "params": { - "_round": "Round number" - }, - "returns": { - "_0": "Blockhash for `_round`" - } - }, - "constructor": { - "details": "This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setRoundLength() - setRoundLockAmount()", - "params": { - "_controller": "Address of Controller that this contract will be registered with" - } - }, - "setController(address)": { - "params": { - "_controller": "Controller contract address" - } - }, - "setLIPUpgradeRound(uint256,uint256)": { - "params": { - "_lip": "the LIP number.", - "_round": "(optional) the round in which the LIP becomes active" - } - }, - "setRoundLength(uint256)": { - "params": { - "_roundLength": "Round length in blocks" - } - }, - "setRoundLockAmount(uint256)": { - "params": { - "_roundLockAmount": "Round lock amount as a % of the number of blocks in a round" - } - } - }, - "title": "RoundsManager", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "blockHash(uint256)": { - "notice": "Return blockhash for a block" - }, - "blockHashForRound(uint256)": { - "notice": "Return blockhash for a round" - }, - "blockNum()": { - "notice": "Return current block number" - }, - "constructor": { - "notice": "RoundsManager constructor. Only invokes constructor of base Manager contract with provided Controller address" - }, - "currentRound()": { - "notice": "Return current round" - }, - "currentRoundInitialized()": { - "notice": "Check if current round is initialized" - }, - "currentRoundLocked()": { - "notice": "Check if we are in the lock period of the current round" - }, - "currentRoundStartBlock()": { - "notice": "Return start block of current round" - }, - "initializeRound()": { - "notice": "Initialize the current round. Called once at the start of any round" - }, - "setController(address)": { - "notice": "Set controller. Only callable by current controller" - }, - "setLIPUpgradeRound(uint256,uint256)": { - "notice": "setLIPUpgradeRound sets the round an LIP upgrade would become active." - }, - "setRoundLength(uint256)": { - "notice": "Set round length. Only callable by the controller owner" - }, - "setRoundLockAmount(uint256)": { - "notice": "Set round lock amount. Only callable by the controller owner" - } - }, - "notice": "Manages round progression and other blockchain time related operations of the Livepeer protocol", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2670, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "controller", - "offset": 0, - "slot": "0", - "type": "t_contract(IController)2645" - }, - { - "astId": 2852, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "targetContractId", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - }, - { - "astId": 10232, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "roundLength", - "offset": 0, - "slot": "2", - "type": "t_uint256" - }, - { - "astId": 10234, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "roundLockAmount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 10236, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "lastInitializedRound", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 10238, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "lastRoundLengthUpdateRound", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 10240, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "lastRoundLengthUpdateStartBlock", - "offset": 0, - "slot": "6", - "type": "t_uint256" - }, - { - "astId": 10244, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "_blockHashForRound", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_uint256,t_bytes32)" - }, - { - "astId": 10248, - "contract": "contracts/rounds/RoundsManager.sol:RoundsManager", - "label": "lipUpgradeRound", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_uint256,t_uint256)" - } - ], - "types": { - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_contract(IController)2645": { - "encoding": "inplace", - "label": "contract IController", - "numberOfBytes": "20" - }, - "t_mapping(t_uint256,t_bytes32)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_uint256,t_uint256)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} \ No newline at end of file + "bytecode": "0x608060405234801561001057600080fd5b50604051610d6d380380610d6d83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610cda806100936000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806385df51fd116100ad5780638fa148f2116100715780638fa148f21461022d57806392eefe9b14610235578063d4807fb214610248578063f5b490d514610250578063f77c47911461025957600080fd5b806385df51fd146101fa5780638807f36e1461020d5780638a19c8bc146102165780638ae63d6d1461021e5780638b649b941461022457600080fd5b80633aa4add4116100f45780633aa4add4146101ad57806351720b41146101cd578063668abff7146101d6578063681312f5146101df5780636841f253146101f257600080fd5b80630b1573b8146101315780630fe1dfa81461014657806313013e7a146101625780631e6d4c2214610175578063219bc76c14610195575b600080fd5b61014461013f366004610b6f565b610284565b005b61014f60055481565b6040519081526020015b60405180910390f35b610144610170366004610b88565b610361565b61014f610183366004610b6f565b60086020526000908152604090205481565b61019d6103d7565b6040519015158152602001610159565b61014f6101bb366004610b6f565b60009081526007602052604090205490565b61014f60015481565b61014f60065481565b6101446101ed366004610b6f565b6103ea565b61019d6104d2565b61014f610208366004610b6f565b61050e565b61014f60045481565b61014f6105ee565b4361014f565b61014f60025481565b61014f610620565b610144610243366004610bc2565b610659565b6101446106af565b61014f60035481565b60005461026c906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61028c61082e565b61029981620f4240101590565b6102ff5760405162461bcd60e51b815260206004820152602c60248201527f726f756e64206c6f636b20616d6f756e74206d75737420626520612076616c6960448201526b642070657263656e7461676560a01b60648201526084015b60405180910390fd5b60038190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610356906020808252600f908201526e1c9bdd5b99131bd8dad05b5bdd5b9d608a1b604082015260600190565b60405180910390a150565b61036961082e565b600082815260086020526040902054156103c55760405162461bcd60e51b815260206004820152601d60248201527f4c4950207570677261646520726f756e6420616c72656164792073657400000060448201526064016102f6565b60009182526008602052604090912055565b60006103e16105ee565b60045414905090565b6103f261082e565b600081116104425760405162461bcd60e51b815260206004820152601860248201527f726f756e64206c656e6774682063616e6e6f742062652030000000000000000060448201526064016102f6565b6002546104695760028190556104566105ee565b600555610461610620565b600655610485565b6104716105ee565b60055561047c610620565b60065560028190555b7f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051610356906020808252600b908201526a0e4deeadcc898cadccee8d60ab1b604082015260600190565b6000806104e3600254600354610914565b6002549091506104f3908261092e565b6105066104fe610620565b435b9061092e565b101591505090565b60004380831061056c5760405162461bcd60e51b815260206004820152602360248201527f63616e206f6e6c79207265747269657665207061737420626c6f636b2068617360448201526268657360e81b60648201526084016102f6565b610100811080610587575061058361010082610bf5565b8310155b6105e85760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c792072657472696576652068617368657320666f72206c617360448201526b742032353620626c6f636b7360a01b60648201526084016102f6565b50504090565b60008061060a6002546106046006546105004390565b9061093a565b60055490915061061a9082610946565b91505090565b6000806106366002546106046006546105004390565b905061061a6106506002548361095290919063ffffffff16565b60065490610946565b61066161095e565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610356565b6106b76109b8565b60006106c16105ee565b905080600454106107145760405162461bcd60e51b815260206004820152601960248201527f726f756e6420616c726561647920696e697469616c697a65640000000000000060448201526064016102f6565b60048190556000610729610208600143610500565b60008381526007602052604090208190559050610744610a7c565b6001600160a01b031663713f22166040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b5050505061079e610b1e565b6001600160a01b031663ece2064c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50505050817f22f2fc17c5daf07db2379b3a03a8ef20a183f761097a58fce219c8a14619e7868260405161082291815260200190565b60405180910390a25050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087a57600080fd5b505afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610c0c565b6001600160a01b0316336001600160a01b0316146109125760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e65720060448201526064016102f6565b565b6000610927620f42406106048585610952565b9392505050565b60006109278284610bf5565b60006109278284610c29565b60006109278284610c4b565b60006109278284610c63565b6000546001600160a01b031633146109125760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c65720000000000000060448201526064016102f6565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0457600080fd5b505afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190610c82565b156109125760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b60448201526064016102f6565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b199190610c0c565b905090565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401610ac9565b600060208284031215610b8157600080fd5b5035919050565b60008060408385031215610b9b57600080fd5b50508035926020909101359150565b6001600160a01b0381168114610bbf57600080fd5b50565b600060208284031215610bd457600080fd5b813561092781610baa565b634e487b7160e01b600052601160045260246000fd5b600082821015610c0757610c07610bdf565b500390565b600060208284031215610c1e57600080fd5b815161092781610baa565b600082610c4657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c5e57610c5e610bdf565b500190565b6000816000190483118215151615610c7d57610c7d610bdf565b500290565b600060208284031215610c9457600080fd5b8151801515811461092757600080fdfea264697066735822122052739efdff1d04af57f8b84674aad0b40361c990016642bc288e22f4bd7e64f264736f6c63430008090033", + "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806385df51fd116100ad5780638fa148f2116100715780638fa148f21461022d57806392eefe9b14610235578063d4807fb214610248578063f5b490d514610250578063f77c47911461025957600080fd5b806385df51fd146101fa5780638807f36e1461020d5780638a19c8bc146102165780638ae63d6d1461021e5780638b649b941461022457600080fd5b80633aa4add4116100f45780633aa4add4146101ad57806351720b41146101cd578063668abff7146101d6578063681312f5146101df5780636841f253146101f257600080fd5b80630b1573b8146101315780630fe1dfa81461014657806313013e7a146101625780631e6d4c2214610175578063219bc76c14610195575b600080fd5b61014461013f366004610b6f565b610284565b005b61014f60055481565b6040519081526020015b60405180910390f35b610144610170366004610b88565b610361565b61014f610183366004610b6f565b60086020526000908152604090205481565b61019d6103d7565b6040519015158152602001610159565b61014f6101bb366004610b6f565b60009081526007602052604090205490565b61014f60015481565b61014f60065481565b6101446101ed366004610b6f565b6103ea565b61019d6104d2565b61014f610208366004610b6f565b61050e565b61014f60045481565b61014f6105ee565b4361014f565b61014f60025481565b61014f610620565b610144610243366004610bc2565b610659565b6101446106af565b61014f60035481565b60005461026c906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61028c61082e565b61029981620f4240101590565b6102ff5760405162461bcd60e51b815260206004820152602c60248201527f726f756e64206c6f636b20616d6f756e74206d75737420626520612076616c6960448201526b642070657263656e7461676560a01b60648201526084015b60405180910390fd5b60038190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610356906020808252600f908201526e1c9bdd5b99131bd8dad05b5bdd5b9d608a1b604082015260600190565b60405180910390a150565b61036961082e565b600082815260086020526040902054156103c55760405162461bcd60e51b815260206004820152601d60248201527f4c4950207570677261646520726f756e6420616c72656164792073657400000060448201526064016102f6565b60009182526008602052604090912055565b60006103e16105ee565b60045414905090565b6103f261082e565b600081116104425760405162461bcd60e51b815260206004820152601860248201527f726f756e64206c656e6774682063616e6e6f742062652030000000000000000060448201526064016102f6565b6002546104695760028190556104566105ee565b600555610461610620565b600655610485565b6104716105ee565b60055561047c610620565b60065560028190555b7f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674604051610356906020808252600b908201526a0e4deeadcc898cadccee8d60ab1b604082015260600190565b6000806104e3600254600354610914565b6002549091506104f3908261092e565b6105066104fe610620565b435b9061092e565b101591505090565b60004380831061056c5760405162461bcd60e51b815260206004820152602360248201527f63616e206f6e6c79207265747269657665207061737420626c6f636b2068617360448201526268657360e81b60648201526084016102f6565b610100811080610587575061058361010082610bf5565b8310155b6105e85760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c792072657472696576652068617368657320666f72206c617360448201526b742032353620626c6f636b7360a01b60648201526084016102f6565b50504090565b60008061060a6002546106046006546105004390565b9061093a565b60055490915061061a9082610946565b91505090565b6000806106366002546106046006546105004390565b905061061a6106506002548361095290919063ffffffff16565b60065490610946565b61066161095e565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610356565b6106b76109b8565b60006106c16105ee565b905080600454106107145760405162461bcd60e51b815260206004820152601960248201527f726f756e6420616c726561647920696e697469616c697a65640000000000000060448201526064016102f6565b60048190556000610729610208600143610500565b60008381526007602052604090208190559050610744610a7c565b6001600160a01b031663713f22166040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b5050505061079e610b1e565b6001600160a01b031663ece2064c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50505050817f22f2fc17c5daf07db2379b3a03a8ef20a183f761097a58fce219c8a14619e7868260405161082291815260200190565b60405180910390a25050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087a57600080fd5b505afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610c0c565b6001600160a01b0316336001600160a01b0316146109125760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e65720060448201526064016102f6565b565b6000610927620f42406106048585610952565b9392505050565b60006109278284610bf5565b60006109278284610c29565b60006109278284610c4b565b60006109278284610c63565b6000546001600160a01b031633146109125760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c65720000000000000060448201526064016102f6565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0457600080fd5b505afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190610c82565b156109125760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b60448201526064016102f6565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b199190610c0c565b905090565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d9890602401610ac9565b600060208284031215610b8157600080fd5b5035919050565b60008060408385031215610b9b57600080fd5b50508035926020909101359150565b6001600160a01b0381168114610bbf57600080fd5b50565b600060208284031215610bd457600080fd5b813561092781610baa565b634e487b7160e01b600052601160045260246000fd5b600082821015610c0757610c07610bdf565b500390565b600060208284031215610c1e57600080fd5b815161092781610baa565b600082610c4657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c5e57610c5e610bdf565b500190565b6000816000190483118215151615610c7d57610c7d610bdf565b500290565b600060208284031215610c9457600080fd5b8151801515811461092757600080fdfea264697066735822122052739efdff1d04af57f8b84674aad0b40361c990016642bc288e22f4bd7e64f264736f6c63430008090033", + "linkReferences": {}, + "deployedLinkReferences": {} +} diff --git a/backend/src/abi/TicketBrokerTarget.json b/backend/src/abi/TicketBrokerTarget.json index 1fbaf5a..6293cb4 100644 --- a/backend/src/abi/TicketBrokerTarget.json +++ b/backend/src/abi/TicketBrokerTarget.json @@ -1,5 +1,7 @@ { - "address": "0x7Beb84c52ce96DFd90431FAA97378994a8baa6df", + "_format": "hh-sol-artifact-1", + "contractName": "TicketBroker", + "sourceName": "contracts/pm/TicketBroker.sol", "abi": [ { "inputs": [ @@ -747,370 +749,8 @@ "type": "function" } ], - "transactionHash": "0x4a8616020e1883bcb5fb88ad16ca619255d59b718ad20d58358b7c6acbe06cff", - "receipt": { - "to": null, - "from": "0xB5Af4138f0f33be0D6414Eb25271B9C2Dc245fb5", - "contractAddress": "0x7Beb84c52ce96DFd90431FAA97378994a8baa6df", - "transactionIndex": 0, - "gasUsed": "41421177", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x442b27e8a7182deeec6190ce130a1c61aa87db7f5fea16c961251b82e37e6efb", - "transactionHash": "0x4a8616020e1883bcb5fb88ad16ca619255d59b718ad20d58358b7c6acbe06cff", - "logs": [], - "blockNumber": 5856351, - "cumulativeGasUsed": "19139697", - "status": 1, - "byzantium": true - }, - "args": [ - "0xD8E8328501E9645d16Cf49539efC04f734606ee4" - ], - "numDeployments": 1, - "solcInputHash": "fbb7c6c031c5ea66d51283bdfeec92b9", - "metadata": "{\"compiler\":{\"version\":\"0.8.9+commit.e5eed63a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DepositFunded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"param\",\"type\":\"string\"}],\"name\":\"ParameterUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserveHolder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"claimant\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ReserveClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserveHolder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ReserveFunded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endRound\",\"type\":\"uint256\"}],\"name\":\"Unlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UnlockCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"faceValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"winProb\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"senderNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"recipientRand\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"auxData\",\"type\":\"bytes\"}],\"name\":\"WinningTicketRedeemed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WinningTicketTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deposit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"faceValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"winProb\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"senderNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"recipientRandHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"auxData\",\"type\":\"bytes\"}],\"internalType\":\"struct MTicketBrokerCore.Ticket[]\",\"name\":\"_tickets\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes[]\",\"name\":\"_sigs\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_recipientRands\",\"type\":\"uint256[]\"}],\"name\":\"batchRedeemWinningTickets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelUnlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_reserveHolder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_claimant\",\"type\":\"address\"}],\"name\":\"claimableReserve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_reserveHolder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_claimant\",\"type\":\"address\"}],\"name\":\"claimedReserve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contract IController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fundDeposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_depositAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reserveAmount\",\"type\":\"uint256\"}],\"name\":\"fundDepositAndReserve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_depositAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reserveAmount\",\"type\":\"uint256\"}],\"name\":\"fundDepositAndReserveFor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fundReserve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_reserveHolder\",\"type\":\"address\"}],\"name\":\"getReserveInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fundsRemaining\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimedInCurrentRound\",\"type\":\"uint256\"}],\"internalType\":\"struct MReserve.ReserveInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"getSenderInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"deposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawRound\",\"type\":\"uint256\"}],\"internalType\":\"struct MixinTicketBrokerCore.Sender\",\"name\":\"sender\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fundsRemaining\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimedInCurrentRound\",\"type\":\"uint256\"}],\"internalType\":\"struct MReserve.ReserveInfo\",\"name\":\"reserve\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"faceValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"winProb\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"senderNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"recipientRandHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"auxData\",\"type\":\"bytes\"}],\"internalType\":\"struct MTicketBrokerCore.Ticket\",\"name\":\"_ticket\",\"type\":\"tuple\"}],\"name\":\"getTicketHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"isUnlockInProgress\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"faceValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"winProb\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"senderNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"recipientRandHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"auxData\",\"type\":\"bytes\"}],\"internalType\":\"struct MTicketBrokerCore.Ticket\",\"name\":\"_ticket\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_sig\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_recipientRand\",\"type\":\"uint256\"}],\"name\":\"redeemWinningTicket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_ticketValidityPeriod\",\"type\":\"uint256\"}],\"name\":\"setTicketValidityPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_unlockPeriod\",\"type\":\"uint256\"}],\"name\":\"setUnlockPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"targetContractId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ticketValidityPeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockPeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"usedTickets\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"batchRedeemWinningTickets((address,address,uint256,uint256,uint256,bytes32,bytes)[],bytes[],uint256[])\":{\"params\":{\"_recipientRands\":\"Array of preimages for the recipientRandHash included in each ticket (`_recipientRands[i]` corresponds to `_tickets[i]`)\",\"_sigs\":\"Array of sender signatures over the hash of tickets (`_sigs[i]` corresponds to `_tickets[i]`)\",\"_tickets\":\"Array of winning tickets to be redeemed in order to claim payment\"}},\"claimableReserve(address,address)\":{\"details\":\"Returns the amount of funds claimable by a claimant from a reserve in the current round\",\"params\":{\"_claimant\":\"Address of claimant\",\"_reserveHolder\":\"Address of reserve holder\"},\"returns\":{\"_0\":\"Amount of funds claimable by `_claimant` from the reserve for `_reserveHolder` in the current round\"}},\"claimedReserve(address,address)\":{\"details\":\"Returns the amount of funds claimed by a claimant from a reserve in the current round\",\"params\":{\"_claimant\":\"Address of claimant\",\"_reserveHolder\":\"Address of reserve holder\"},\"returns\":{\"_0\":\"Amount of funds claimed by `_claimant` from the reserve for `_reserveHolder` in the current round\"}},\"constructor\":{\"details\":\"This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setUnlockPeriod() - setTicketValidityPeriod()\",\"params\":{\"_controller\":\"Address of Controller that this contract will be registered with\"}},\"fundDepositAndReserve(uint256,uint256)\":{\"params\":{\"_depositAmount\":\"Amount of ETH to add to the caller's deposit\",\"_reserveAmount\":\"Amount of ETH to add to the caller's reserve\"}},\"fundDepositAndReserveFor(address,uint256,uint256)\":{\"params\":{\"_depositAmount\":\"Amount of ETH to add to the address' deposit\",\"_reserveAmount\":\"Amount of ETH to add to the address' reserve\"}},\"getReserveInfo(address)\":{\"details\":\"Returns info about a reserve\",\"params\":{\"_reserveHolder\":\"Address of reserve holder\"},\"returns\":{\"info\":\"Info about the reserve for `_reserveHolder`\"}},\"getSenderInfo(address)\":{\"params\":{\"_sender\":\"Address of sender\"},\"returns\":{\"reserve\":\"Info about the reserve for `_sender`\",\"sender\":\"Info about the sender for `_sender`\"}},\"getTicketHash((address,address,uint256,uint256,uint256,bytes32,bytes))\":{\"details\":\"Returns the hash of a ticket\",\"params\":{\"_ticket\":\"Ticket to be hashed\"},\"returns\":{\"_0\":\"keccak256 hash of `_ticket`\"}},\"isUnlockInProgress(address)\":{\"params\":{\"_sender\":\"Address of sender\"},\"returns\":{\"_0\":\"Boolean indicating whether `_sender` has an unlock in progress\"}},\"redeemWinningTicket((address,address,uint256,uint256,uint256,bytes32,bytes),bytes,uint256)\":{\"params\":{\"_recipientRand\":\"The preimage for the recipientRandHash included in `_ticket`\",\"_sig\":\"Sender's signature over the hash of `_ticket`\",\"_ticket\":\"Winning ticket to be redeemed in order to claim payment\"}},\"setController(address)\":{\"params\":{\"_controller\":\"Controller contract address\"}},\"setTicketValidityPeriod(uint256)\":{\"params\":{\"_ticketValidityPeriod\":\"Value for ticketValidityPeriod\"}},\"setUnlockPeriod(uint256)\":{\"params\":{\"_unlockPeriod\":\"Value for unlockPeriod\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"batchRedeemWinningTickets((address,address,uint256,uint256,uint256,bytes32,bytes)[],bytes[],uint256[])\":{\"notice\":\"Redeems multiple winning tickets. The function will redeem all of the provided tickets and handle any failures gracefully without reverting the entire function\"},\"cancelUnlock()\":{\"notice\":\"Cancels the unlock period for the caller\"},\"constructor\":{\"notice\":\"TicketBroker constructor. Only invokes constructor of base Manager contract with provided Controller address\"},\"fundDeposit()\":{\"notice\":\"Adds ETH to the caller's deposit\"},\"fundDepositAndReserve(uint256,uint256)\":{\"notice\":\"Adds ETH to the caller's deposit and reserve\"},\"fundDepositAndReserveFor(address,uint256,uint256)\":{\"notice\":\"Adds ETH to the address' deposit and reserve\"},\"fundReserve()\":{\"notice\":\"Adds ETH to the caller's reserve\"},\"getSenderInfo(address)\":{\"notice\":\"Returns info about a sender\"},\"isUnlockInProgress(address)\":{\"notice\":\"Returns whether a sender is currently in the unlock period\"},\"redeemWinningTicket((address,address,uint256,uint256,uint256,bytes32,bytes),bytes,uint256)\":{\"notice\":\"Redeems a winning ticket that has been signed by a sender and reveals the recipient recipientRand that corresponds to the recipientRandHash included in the ticket\"},\"setController(address)\":{\"notice\":\"Set controller. Only callable by current controller\"},\"setTicketValidityPeriod(uint256)\":{\"notice\":\"Sets ticketValidityPeriod value. Only callable by the Controller owner\"},\"setUnlockPeriod(uint256)\":{\"notice\":\"Sets unlockPeriod value. Only callable by the Controller owner\"},\"unlock()\":{\"notice\":\"Initiates the unlock period for the caller\"},\"withdraw()\":{\"notice\":\"Withdraws all ETH from the caller's deposit and reserve\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/pm/TicketBroker.sol\":\"TicketBroker\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n}\\n\",\"keccak256\":\"0x32c202bd28995dd20c4347b7c6467a6d3241c74c8ad3edcbb610cd9205916c45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n } else if (error == RecoverError.InvalidSignatureV) {\\n revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n // Check the signature length\\n // - case 65: r,s,v signature (standard)\\n // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else if (signature.length == 64) {\\n bytes32 r;\\n bytes32 vs;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n assembly {\\n r := mload(add(signature, 0x20))\\n vs := mload(add(signature, 0x40))\\n }\\n return tryRecover(hash, r, vs);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s;\\n uint8 v;\\n assembly {\\n s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\\n v := add(shr(255, vs), 27)\\n }\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n if (v != 27 && v != 28) {\\n return (address(0), RecoverError.InvalidSignatureV);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xe9e291de7ffe06e66503c6700b1bb84ff6e0989cbb974653628d8994e7c97f03\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n// CAUTION\\n// This version of SafeMath should only be used with Solidity 0.8 or later,\\n// because it relies on the compiler's built in overflow checks.\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations.\\n *\\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\\n * now has built in overflow checking.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a + b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a * b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator.\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa2f576be637946f767aa56601c26d717f48a0aff44f82e46f13807eea1009a21\",\"license\":\"MIT\"},\"contracts/IController.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./zeppelin/Pausable.sol\\\";\\n\\nabstract contract IController is Pausable {\\n event SetContractInfo(bytes32 id, address contractAddress, bytes20 gitCommitHash);\\n\\n function setContractInfo(\\n bytes32 _id,\\n address _contractAddress,\\n bytes20 _gitCommitHash\\n ) external virtual;\\n\\n function updateController(bytes32 _id, address _controller) external virtual;\\n\\n function getContract(bytes32 _id) public view virtual returns (address);\\n}\\n\",\"keccak256\":\"0x34ea30a2b44d0cbec58fc1d703476ff0085b0fdadab0cd65c35c00b8867f7546\",\"license\":\"MIT\"},\"contracts/IManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\ninterface IManager {\\n event SetController(address controller);\\n event ParameterUpdate(string param);\\n\\n function setController(address _controller) external;\\n}\\n\",\"keccak256\":\"0xc179e4cecc593741514237d5194b4aaac6b829789629fa19ed04f572a8530481\",\"license\":\"MIT\"},\"contracts/Manager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./IManager.sol\\\";\\nimport \\\"./IController.sol\\\";\\n\\ncontract Manager is IManager {\\n // Controller that contract is registered with\\n IController public controller;\\n\\n // Check if sender is controller\\n modifier onlyController() {\\n _onlyController();\\n _;\\n }\\n\\n // Check if sender is controller owner\\n modifier onlyControllerOwner() {\\n _onlyControllerOwner();\\n _;\\n }\\n\\n // Check if controller is not paused\\n modifier whenSystemNotPaused() {\\n _whenSystemNotPaused();\\n _;\\n }\\n\\n // Check if controller is paused\\n modifier whenSystemPaused() {\\n _whenSystemPaused();\\n _;\\n }\\n\\n constructor(address _controller) {\\n controller = IController(_controller);\\n }\\n\\n /**\\n * @notice Set controller. Only callable by current controller\\n * @param _controller Controller contract address\\n */\\n function setController(address _controller) external onlyController {\\n controller = IController(_controller);\\n\\n emit SetController(_controller);\\n }\\n\\n function _onlyController() private view {\\n require(msg.sender == address(controller), \\\"caller must be Controller\\\");\\n }\\n\\n function _onlyControllerOwner() private view {\\n require(msg.sender == controller.owner(), \\\"caller must be Controller owner\\\");\\n }\\n\\n function _whenSystemNotPaused() private view {\\n require(!controller.paused(), \\\"system is paused\\\");\\n }\\n\\n function _whenSystemPaused() private view {\\n require(controller.paused(), \\\"system is not paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xc415e3f42da9f82ddd5953031f3f26aed824368fcc34d3b8a17015bfe80dc109\",\"license\":\"MIT\"},\"contracts/ManagerProxyTarget.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Manager.sol\\\";\\n\\n/**\\n * @title ManagerProxyTarget\\n * @notice The base contract that target contracts used by a proxy contract should inherit from\\n * @dev Both the target contract and the proxy contract (implemented as ManagerProxy) MUST inherit from ManagerProxyTarget in order to guarantee\\n that both contracts have the same storage layout. Differing storage layouts in a proxy contract and target contract can\\n potentially break the delegate proxy upgradeability mechanism\\n */\\nabstract contract ManagerProxyTarget is Manager {\\n // Used to look up target contract address in controller's registry\\n bytes32 public targetContractId;\\n}\\n\",\"keccak256\":\"0x920bcc2def240e06272dc06cbcb9f12976f1698cd4f1020c165af25ee837e553\",\"license\":\"MIT\"},\"contracts/bonding/IBondingManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Interface for BondingManager\\n * TODO: switch to interface type\\n */\\ninterface IBondingManager {\\n event TranscoderUpdate(address indexed transcoder, uint256 rewardCut, uint256 feeShare);\\n event TranscoderActivated(address indexed transcoder, uint256 activationRound);\\n event TranscoderDeactivated(address indexed transcoder, uint256 deactivationRound);\\n event TranscoderSlashed(address indexed transcoder, address finder, uint256 penalty, uint256 finderReward);\\n event Reward(address indexed transcoder, uint256 amount);\\n event Bond(\\n address indexed newDelegate,\\n address indexed oldDelegate,\\n address indexed delegator,\\n uint256 additionalAmount,\\n uint256 bondedAmount\\n );\\n event Unbond(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 unbondingLockId,\\n uint256 amount,\\n uint256 withdrawRound\\n );\\n event Rebond(address indexed delegate, address indexed delegator, uint256 unbondingLockId, uint256 amount);\\n event TransferBond(\\n address indexed oldDelegator,\\n address indexed newDelegator,\\n uint256 oldUnbondingLockId,\\n uint256 newUnbondingLockId,\\n uint256 amount\\n );\\n event WithdrawStake(address indexed delegator, uint256 unbondingLockId, uint256 amount, uint256 withdrawRound);\\n event WithdrawFees(address indexed delegator, address recipient, uint256 amount);\\n event EarningsClaimed(\\n address indexed delegate,\\n address indexed delegator,\\n uint256 rewards,\\n uint256 fees,\\n uint256 startRound,\\n uint256 endRound\\n );\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event Bond(address indexed delegate, address indexed delegator);\\n // event Unbond(address indexed delegate, address indexed delegator);\\n // event WithdrawStake(address indexed delegator);\\n // event TranscoderUpdate(address indexed transcoder, uint256 pendingRewardCut, uint256 pendingFeeShare, uint256 pendingPricePerSegment, bool registered);\\n // event TranscoderEvicted(address indexed transcoder);\\n // event TranscoderResigned(address indexed transcoder);\\n\\n // External functions\\n function updateTranscoderWithFees(\\n address _transcoder,\\n uint256 _fees,\\n uint256 _round\\n ) external;\\n\\n function slashTranscoder(\\n address _transcoder,\\n address _finder,\\n uint256 _slashAmount,\\n uint256 _finderFee\\n ) external;\\n\\n function setCurrentRoundTotalActiveStake() external;\\n\\n // Public functions\\n function getTranscoderPoolSize() external view returns (uint256);\\n\\n function transcoderTotalStake(address _transcoder) external view returns (uint256);\\n\\n function isActiveTranscoder(address _transcoder) external view returns (bool);\\n\\n function getTotalBonded() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x6406378868b556ca91b1ab6cccd036695c8984d30a225f75a5979cb9aa7c1df2\",\"license\":\"MIT\"},\"contracts/pm/TicketBroker.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./mixins/MixinContractRegistry.sol\\\";\\nimport \\\"./mixins/MixinReserve.sol\\\";\\nimport \\\"./mixins/MixinTicketBrokerCore.sol\\\";\\nimport \\\"./mixins/MixinTicketProcessor.sol\\\";\\nimport \\\"./mixins/MixinWrappers.sol\\\";\\n\\ncontract TicketBroker is\\n MixinContractRegistry,\\n MixinReserve,\\n MixinTicketBrokerCore,\\n MixinTicketProcessor,\\n MixinWrappers\\n{\\n /**\\n * @notice TicketBroker constructor. Only invokes constructor of base Manager contract with provided Controller address\\n * @dev This constructor will not initialize any state variables besides `controller`. The following setter functions\\n * should be used to initialize state variables post-deployment:\\n * - setUnlockPeriod()\\n * - setTicketValidityPeriod()\\n * @param _controller Address of Controller that this contract will be registered with\\n */\\n constructor(address _controller)\\n MixinContractRegistry(_controller)\\n MixinReserve()\\n MixinTicketBrokerCore()\\n MixinTicketProcessor()\\n {}\\n\\n /**\\n * @notice Sets unlockPeriod value. Only callable by the Controller owner\\n * @param _unlockPeriod Value for unlockPeriod\\n */\\n function setUnlockPeriod(uint256 _unlockPeriod) external onlyControllerOwner {\\n unlockPeriod = _unlockPeriod;\\n\\n emit ParameterUpdate(\\\"unlockPeriod\\\");\\n }\\n\\n /**\\n * @notice Sets ticketValidityPeriod value. Only callable by the Controller owner\\n * @param _ticketValidityPeriod Value for ticketValidityPeriod\\n */\\n function setTicketValidityPeriod(uint256 _ticketValidityPeriod) external onlyControllerOwner {\\n require(_ticketValidityPeriod > 0, \\\"ticketValidityPeriod must be greater than 0\\\");\\n\\n ticketValidityPeriod = _ticketValidityPeriod;\\n\\n emit ParameterUpdate(\\\"ticketValidityPeriod\\\");\\n }\\n}\\n\",\"keccak256\":\"0x3e1b4458d61a3c20e23707bde667f936af006668f1ec4a69b2322ff7e79336e7\",\"license\":\"MIT\"},\"contracts/pm/mixins/MixinContractRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../../ManagerProxyTarget.sol\\\";\\nimport \\\"./interfaces/MContractRegistry.sol\\\";\\n\\nabstract contract MixinContractRegistry is MContractRegistry, ManagerProxyTarget {\\n /**\\n * @dev Checks if the current round has been initialized\\n */\\n modifier currentRoundInitialized() override {\\n require(roundsManager().currentRoundInitialized(), \\\"current round is not initialized\\\");\\n _;\\n }\\n\\n constructor(address _controller) Manager(_controller) {}\\n\\n /**\\n * @dev Returns an instance of the IBondingManager interface\\n */\\n function bondingManager() internal view override returns (IBondingManager) {\\n return IBondingManager(controller.getContract(keccak256(\\\"BondingManager\\\")));\\n }\\n\\n /**\\n * @dev Returns an instance of the IMinter interface\\n */\\n function minter() internal view override returns (IMinter) {\\n return IMinter(controller.getContract(keccak256(\\\"Minter\\\")));\\n }\\n\\n /**\\n * @dev Returns an instance of the IRoundsManager interface\\n */\\n function roundsManager() internal view override returns (IRoundsManager) {\\n return IRoundsManager(controller.getContract(keccak256(\\\"RoundsManager\\\")));\\n }\\n}\\n\",\"keccak256\":\"0xaf3b21d532c7fdcd02606045c66646b035a257a27dea374b8c8487339778ee2a\",\"license\":\"MIT\"},\"contracts/pm/mixins/MixinReserve.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./interfaces/MReserve.sol\\\";\\nimport \\\"./MixinContractRegistry.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nabstract contract MixinReserve is MixinContractRegistry, MReserve {\\n using SafeMath for uint256;\\n\\n struct Reserve {\\n uint256 funds; // Amount of funds in the reserve\\n mapping(uint256 => uint256) claimedForRound; // Mapping of round => total amount claimed\\n mapping(uint256 => mapping(address => uint256)) claimedByAddress; // Mapping of round => claimant address => amount claimed\\n }\\n\\n // Mapping of address => reserve\\n mapping(address => Reserve) internal reserves;\\n\\n /**\\n * @dev Returns info about a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @return info Info about the reserve for `_reserveHolder`\\n */\\n function getReserveInfo(address _reserveHolder) public view override returns (ReserveInfo memory info) {\\n info.fundsRemaining = remainingReserve(_reserveHolder);\\n info.claimedInCurrentRound = reserves[_reserveHolder].claimedForRound[roundsManager().currentRound()];\\n }\\n\\n /**\\n * @dev Returns the amount of funds claimable by a claimant from a reserve in the current round\\n * @param _reserveHolder Address of reserve holder\\n * @param _claimant Address of claimant\\n * @return Amount of funds claimable by `_claimant` from the reserve for `_reserveHolder` in the current round\\n */\\n function claimableReserve(address _reserveHolder, address _claimant) public view returns (uint256) {\\n Reserve storage reserve = reserves[_reserveHolder];\\n\\n uint256 currentRound = roundsManager().currentRound();\\n\\n if (!bondingManager().isActiveTranscoder(_claimant)) {\\n return 0;\\n }\\n\\n uint256 poolSize = bondingManager().getTranscoderPoolSize();\\n if (poolSize == 0) {\\n return 0;\\n }\\n\\n // Total claimable funds = remaining funds + amount claimed for the round\\n uint256 totalClaimable = reserve.funds.add(reserve.claimedForRound[currentRound]);\\n return totalClaimable.div(poolSize).sub(reserve.claimedByAddress[currentRound][_claimant]);\\n }\\n\\n /**\\n * @dev Returns the amount of funds claimed by a claimant from a reserve in the current round\\n * @param _reserveHolder Address of reserve holder\\n * @param _claimant Address of claimant\\n * @return Amount of funds claimed by `_claimant` from the reserve for `_reserveHolder` in the current round\\n */\\n function claimedReserve(address _reserveHolder, address _claimant) public view override returns (uint256) {\\n Reserve storage reserve = reserves[_reserveHolder];\\n uint256 currentRound = roundsManager().currentRound();\\n return reserve.claimedByAddress[currentRound][_claimant];\\n }\\n\\n /**\\n * @dev Adds funds to a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @param _amount Amount of funds to add to reserve\\n */\\n function addReserve(address _reserveHolder, uint256 _amount) internal override {\\n reserves[_reserveHolder].funds = reserves[_reserveHolder].funds.add(_amount);\\n\\n emit ReserveFunded(_reserveHolder, _amount);\\n }\\n\\n /**\\n * @dev Clears contract storage used for a reserve\\n * @param _reserveHolder Address of reserve holder\\n */\\n function clearReserve(address _reserveHolder) internal override {\\n // This delete operation will only clear reserve.funds and will not clear the storage for reserve.claimedForRound\\n // reserve.claimedByAddress because these fields are mappings and the Solidity `delete` keyword will not modify mappings.\\n // This *could* be a problem in the following scenario:\\n //\\n // 1) In round N, for address A, reserve.claimedForRound[N] > 0 and reserve.claimedByAddress[N][r_i] > 0 where r_i is\\n // a member of the active set in round N\\n // 2) This function is called by MixinTicketBrokerCore.withdraw() in round N\\n // 3) Address A funds its reserve again\\n //\\n // After step 3, A has reserve.funds > 0, reserve.claimedForRound[N] > 0 and reserve.claimedByAddress[N][r_i] > 0\\n // despite having funded a fresh reserve after previously withdrawing all of its funds in the same round.\\n // We prevent this scenario by disallowing reserve claims starting at an address' withdraw round in\\n // MixinTicketBrokerCore.redeemWinningTicket()\\n delete reserves[_reserveHolder];\\n }\\n\\n /**\\n * @dev Claims funds from a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @param _claimant Address of claimant\\n * @param _amount Amount of funds to claim from the reserve\\n * @return Amount of funds (<= `_amount`) claimed by `_claimant` from the reserve for `_reserveHolder`\\n */\\n function claimFromReserve(\\n address _reserveHolder,\\n address _claimant,\\n uint256 _amount\\n ) internal override returns (uint256) {\\n uint256 claimableFunds = claimableReserve(_reserveHolder, _claimant);\\n // If the given amount > claimableFunds then claim claimableFunds\\n // If the given amount <= claimableFunds then claim the given amount\\n uint256 claimAmount = _amount > claimableFunds ? claimableFunds : _amount;\\n\\n if (claimAmount > 0) {\\n uint256 currentRound = roundsManager().currentRound();\\n Reserve storage reserve = reserves[_reserveHolder];\\n // Increase total amount claimed for the round\\n reserve.claimedForRound[currentRound] = reserve.claimedForRound[currentRound].add(claimAmount);\\n // Increase amount claimed by claimant for the round\\n reserve.claimedByAddress[currentRound][_claimant] = reserve.claimedByAddress[currentRound][_claimant].add(\\n claimAmount\\n );\\n // Decrease remaining reserve\\n reserve.funds = reserve.funds.sub(claimAmount);\\n\\n emit ReserveClaimed(_reserveHolder, _claimant, claimAmount);\\n }\\n\\n return claimAmount;\\n }\\n\\n /**\\n * @dev Returns the amount of funds remaining in a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @return Amount of funds remaining in the reserve for `_reserveHolder`\\n */\\n function remainingReserve(address _reserveHolder) internal view override returns (uint256) {\\n return reserves[_reserveHolder].funds;\\n }\\n}\\n\",\"keccak256\":\"0x1b1d7694fe606eb1c0ba2e203889b416804bd1547ee63ed572c1c628f219c775\",\"license\":\"MIT\"},\"contracts/pm/mixins/MixinTicketBrokerCore.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./interfaces/MReserve.sol\\\";\\nimport \\\"./interfaces/MTicketProcessor.sol\\\";\\nimport \\\"./interfaces/MTicketBrokerCore.sol\\\";\\nimport \\\"./MixinContractRegistry.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nabstract contract MixinTicketBrokerCore is MixinContractRegistry, MReserve, MTicketProcessor, MTicketBrokerCore {\\n using SafeMath for uint256;\\n\\n struct Sender {\\n uint256 deposit; // Amount of funds deposited\\n uint256 withdrawRound; // Round that sender can withdraw deposit & reserve\\n }\\n\\n // Mapping of address => Sender\\n mapping(address => Sender) internal senders;\\n\\n // Number of rounds before a sender can withdraw after requesting an unlock\\n uint256 public unlockPeriod;\\n\\n // Mapping of ticket hashes => boolean indicating if ticket was redeemed\\n mapping(bytes32 => bool) public usedTickets;\\n\\n // Checks if msg.value is equal to the given deposit and reserve amounts\\n modifier checkDepositReserveETHValueSplit(uint256 _depositAmount, uint256 _reserveAmount) {\\n require(\\n msg.value == _depositAmount.add(_reserveAmount),\\n \\\"msg.value does not equal sum of deposit amount and reserve amount\\\"\\n );\\n\\n _;\\n }\\n\\n // Process deposit funding\\n modifier processDeposit(address _sender, uint256 _amount) {\\n Sender storage sender = senders[_sender];\\n sender.deposit = sender.deposit.add(_amount);\\n if (_isUnlockInProgress(sender)) {\\n _cancelUnlock(sender, _sender);\\n }\\n\\n _;\\n\\n emit DepositFunded(_sender, _amount);\\n }\\n\\n // Process reserve funding\\n modifier processReserve(address _sender, uint256 _amount) {\\n Sender storage sender = senders[_sender];\\n addReserve(_sender, _amount);\\n if (_isUnlockInProgress(sender)) {\\n _cancelUnlock(sender, _sender);\\n }\\n\\n _;\\n }\\n\\n /**\\n * @notice Adds ETH to the caller's deposit\\n */\\n function fundDeposit() external payable whenSystemNotPaused processDeposit(msg.sender, msg.value) {\\n processFunding(msg.value);\\n }\\n\\n /**\\n * @notice Adds ETH to the caller's reserve\\n */\\n function fundReserve() external payable whenSystemNotPaused processReserve(msg.sender, msg.value) {\\n processFunding(msg.value);\\n }\\n\\n /**\\n * @notice Adds ETH to the caller's deposit and reserve\\n * @param _depositAmount Amount of ETH to add to the caller's deposit\\n * @param _reserveAmount Amount of ETH to add to the caller's reserve\\n */\\n function fundDepositAndReserve(uint256 _depositAmount, uint256 _reserveAmount) external payable {\\n fundDepositAndReserveFor(msg.sender, _depositAmount, _reserveAmount);\\n }\\n\\n /**\\n * @notice Adds ETH to the address' deposit and reserve\\n * @param _depositAmount Amount of ETH to add to the address' deposit\\n * @param _reserveAmount Amount of ETH to add to the address' reserve\\n */\\n function fundDepositAndReserveFor(\\n address _addr,\\n uint256 _depositAmount,\\n uint256 _reserveAmount\\n )\\n public\\n payable\\n whenSystemNotPaused\\n checkDepositReserveETHValueSplit(_depositAmount, _reserveAmount)\\n processDeposit(_addr, _depositAmount)\\n processReserve(_addr, _reserveAmount)\\n {\\n processFunding(msg.value);\\n }\\n\\n /**\\n * @notice Redeems a winning ticket that has been signed by a sender and reveals the\\n recipient recipientRand that corresponds to the recipientRandHash included in the ticket\\n * @param _ticket Winning ticket to be redeemed in order to claim payment\\n * @param _sig Sender's signature over the hash of `_ticket`\\n * @param _recipientRand The preimage for the recipientRandHash included in `_ticket`\\n */\\n function redeemWinningTicket(\\n Ticket memory _ticket,\\n bytes memory _sig,\\n uint256 _recipientRand\\n ) public whenSystemNotPaused currentRoundInitialized {\\n bytes32 ticketHash = getTicketHash(_ticket);\\n\\n // Require a valid winning ticket for redemption\\n requireValidWinningTicket(_ticket, ticketHash, _sig, _recipientRand);\\n\\n Sender storage sender = senders[_ticket.sender];\\n\\n // Require sender to be locked\\n require(isLocked(sender), \\\"sender is unlocked\\\");\\n // Require either a non-zero deposit or non-zero reserve for the sender\\n require(sender.deposit > 0 || remainingReserve(_ticket.sender) > 0, \\\"sender deposit and reserve are zero\\\");\\n\\n // Mark ticket as used to prevent replay attacks involving redeeming\\n // the same winning ticket multiple times\\n usedTickets[ticketHash] = true;\\n\\n uint256 amountToTransfer;\\n\\n if (_ticket.faceValue > sender.deposit) {\\n // If ticket face value > sender's deposit then claim from\\n // the sender's reserve\\n\\n amountToTransfer = sender.deposit.add(\\n claimFromReserve(_ticket.sender, _ticket.recipient, _ticket.faceValue.sub(sender.deposit))\\n );\\n\\n sender.deposit = 0;\\n } else {\\n // If ticket face value <= sender's deposit then only deduct\\n // from sender's deposit\\n\\n amountToTransfer = _ticket.faceValue;\\n sender.deposit = sender.deposit.sub(_ticket.faceValue);\\n }\\n\\n if (amountToTransfer > 0) {\\n winningTicketTransfer(_ticket.recipient, amountToTransfer, _ticket.auxData);\\n\\n emit WinningTicketTransfer(_ticket.sender, _ticket.recipient, amountToTransfer);\\n }\\n\\n emit WinningTicketRedeemed(\\n _ticket.sender,\\n _ticket.recipient,\\n _ticket.faceValue,\\n _ticket.winProb,\\n _ticket.senderNonce,\\n _recipientRand,\\n _ticket.auxData\\n );\\n }\\n\\n /**\\n * @notice Initiates the unlock period for the caller\\n */\\n function unlock() public whenSystemNotPaused {\\n Sender storage sender = senders[msg.sender];\\n\\n require(sender.deposit > 0 || remainingReserve(msg.sender) > 0, \\\"sender deposit and reserve are zero\\\");\\n require(!_isUnlockInProgress(sender), \\\"unlock already initiated\\\");\\n\\n uint256 currentRound = roundsManager().currentRound();\\n sender.withdrawRound = currentRound.add(unlockPeriod);\\n\\n emit Unlock(msg.sender, currentRound, sender.withdrawRound);\\n }\\n\\n /**\\n * @notice Cancels the unlock period for the caller\\n */\\n function cancelUnlock() public whenSystemNotPaused {\\n Sender storage sender = senders[msg.sender];\\n\\n _cancelUnlock(sender, msg.sender);\\n }\\n\\n /**\\n * @notice Withdraws all ETH from the caller's deposit and reserve\\n */\\n function withdraw() public whenSystemNotPaused {\\n Sender storage sender = senders[msg.sender];\\n\\n uint256 deposit = sender.deposit;\\n uint256 reserve = remainingReserve(msg.sender);\\n\\n require(deposit > 0 || reserve > 0, \\\"sender deposit and reserve are zero\\\");\\n require(_isUnlockInProgress(sender), \\\"no unlock request in progress\\\");\\n require(!isLocked(sender), \\\"account is locked\\\");\\n\\n sender.deposit = 0;\\n clearReserve(msg.sender);\\n\\n withdrawTransfer(payable(msg.sender), deposit.add(reserve));\\n\\n emit Withdrawal(msg.sender, deposit, reserve);\\n }\\n\\n /**\\n * @notice Returns whether a sender is currently in the unlock period\\n * @param _sender Address of sender\\n * @return Boolean indicating whether `_sender` has an unlock in progress\\n */\\n function isUnlockInProgress(address _sender) public view returns (bool) {\\n Sender memory sender = senders[_sender];\\n return _isUnlockInProgress(sender);\\n }\\n\\n /**\\n * @notice Returns info about a sender\\n * @param _sender Address of sender\\n * @return sender Info about the sender for `_sender`\\n * @return reserve Info about the reserve for `_sender`\\n */\\n function getSenderInfo(address _sender) public view returns (Sender memory sender, ReserveInfo memory reserve) {\\n sender = senders[_sender];\\n reserve = getReserveInfo(_sender);\\n }\\n\\n /**\\n * @dev Returns the hash of a ticket\\n * @param _ticket Ticket to be hashed\\n * @return keccak256 hash of `_ticket`\\n */\\n function getTicketHash(Ticket memory _ticket) public pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encodePacked(\\n _ticket.recipient,\\n _ticket.sender,\\n _ticket.faceValue,\\n _ticket.winProb,\\n _ticket.senderNonce,\\n _ticket.recipientRandHash,\\n _ticket.auxData\\n )\\n );\\n }\\n\\n /**\\n * @dev Helper to cancel an unlock\\n * @param _sender Sender that is cancelling an unlock\\n * @param _senderAddress Address of sender\\n */\\n function _cancelUnlock(Sender storage _sender, address _senderAddress) internal {\\n require(_isUnlockInProgress(_sender), \\\"no unlock request in progress\\\");\\n\\n _sender.withdrawRound = 0;\\n\\n emit UnlockCancelled(_senderAddress);\\n }\\n\\n /**\\n * @dev Validates a winning ticket, succeeds or reverts\\n * @param _ticket Winning ticket to be validated\\n * @param _ticketHash Hash of `_ticket`\\n * @param _sig Sender's signature over `_ticketHash`\\n * @param _recipientRand The preimage for the recipientRandHash included in `_ticket`\\n */\\n function requireValidWinningTicket(\\n Ticket memory _ticket,\\n bytes32 _ticketHash,\\n bytes memory _sig,\\n uint256 _recipientRand\\n ) internal view {\\n require(_ticket.recipient != address(0), \\\"ticket recipient is null address\\\");\\n require(_ticket.sender != address(0), \\\"ticket sender is null address\\\");\\n\\n requireValidTicketAuxData(_ticket.auxData);\\n\\n require(\\n keccak256(abi.encodePacked(_recipientRand)) == _ticket.recipientRandHash,\\n \\\"recipientRand does not match recipientRandHash\\\"\\n );\\n\\n require(!usedTickets[_ticketHash], \\\"ticket is used\\\");\\n\\n require(isValidTicketSig(_ticket.sender, _sig, _ticketHash), \\\"invalid signature over ticket hash\\\");\\n\\n require(isWinningTicket(_sig, _recipientRand, _ticket.winProb), \\\"ticket did not win\\\");\\n }\\n\\n /**\\n * @dev Returns whether a sender is locked\\n * @param _sender Sender to check for locked status\\n * @return Boolean indicating whether sender is currently locked\\n */\\n function isLocked(Sender memory _sender) internal view returns (bool) {\\n return _sender.withdrawRound == 0 || roundsManager().currentRound() < _sender.withdrawRound;\\n }\\n\\n /**\\n * @dev Returns whether a signature over a ticket hash is valid for a sender\\n * @param _sender Address of sender\\n * @param _sig Signature over `_ticketHash`\\n * @param _ticketHash Hash of the ticket\\n * @return Boolean indicating whether `_sig` is valid signature over `_ticketHash` for `_sender`\\n */\\n function isValidTicketSig(\\n address _sender,\\n bytes memory _sig,\\n bytes32 _ticketHash\\n ) internal pure returns (bool) {\\n address signer = ECDSA.recover(ECDSA.toEthSignedMessageHash(_ticketHash), _sig);\\n return signer != address(0) && _sender == signer;\\n }\\n\\n /**\\n * @dev Returns whether a ticket won\\n * @param _sig Sender's signature over the ticket\\n * @param _recipientRand The preimage for the recipientRandHash included in the ticket\\n * @param _winProb The winning probability of the ticket\\n * @return Boolean indicating whether the ticket won\\n */\\n function isWinningTicket(\\n bytes memory _sig,\\n uint256 _recipientRand,\\n uint256 _winProb\\n ) internal pure returns (bool) {\\n return uint256(keccak256(abi.encodePacked(_sig, _recipientRand))) < _winProb;\\n }\\n\\n /**\\n * @dev Helper to check if a sender is currently in the unlock period\\n * @param _sender Sender to check for an unlock\\n * @return Boolean indicating whether the sender is currently in the unlock period\\n */\\n function _isUnlockInProgress(Sender memory _sender) internal pure returns (bool) {\\n return _sender.withdrawRound > 0;\\n }\\n}\\n\",\"keccak256\":\"0x44f9b93f0f831a21119e77285a6fae45ca7a5087711b9a46effd62c46eb79386\",\"license\":\"MIT\"},\"contracts/pm/mixins/MixinTicketProcessor.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./interfaces/MTicketProcessor.sol\\\";\\nimport \\\"./MixinContractRegistry.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/math/SafeMath.sol\\\";\\n\\nabstract contract MixinTicketProcessor is MixinContractRegistry, MTicketProcessor {\\n using SafeMath for uint256;\\n\\n // Number of rounds that a ticket is valid for starting from\\n // its creationRound\\n uint256 public ticketValidityPeriod;\\n\\n /**\\n * @dev Process sent funds.\\n * @param _amount Amount of funds sent\\n */\\n function processFunding(uint256 _amount) internal override {\\n // Send funds to Minter\\n minter().depositETH{ value: _amount }();\\n }\\n\\n /**\\n * @dev Transfer withdrawal funds for a ticket sender\\n * @param _amount Amount of withdrawal funds\\n */\\n function withdrawTransfer(address payable _sender, uint256 _amount) internal override {\\n // Ask Minter to send withdrawal funds to the ticket sender\\n minter().trustedWithdrawETH(_sender, _amount);\\n }\\n\\n /**\\n * @dev Transfer funds for a recipient's winning ticket\\n * @param _recipient Address of recipient\\n * @param _amount Amount of funds for the winning ticket\\n * @param _auxData Auxilary data for the winning ticket\\n */\\n function winningTicketTransfer(\\n address _recipient,\\n uint256 _amount,\\n bytes memory _auxData\\n ) internal override {\\n (uint256 creationRound, ) = getCreationRoundAndBlockHash(_auxData);\\n\\n // Ask BondingManager to update fee pool for recipient with\\n // winning ticket funds\\n bondingManager().updateTranscoderWithFees(_recipient, _amount, creationRound);\\n }\\n\\n /**\\n * @dev Validates a ticket's auxilary data (succeeds or reverts)\\n * @param _auxData Auxilary data inclueded in a ticket\\n */\\n function requireValidTicketAuxData(bytes memory _auxData) internal view override {\\n (uint256 creationRound, bytes32 creationRoundBlockHash) = getCreationRoundAndBlockHash(_auxData);\\n bytes32 blockHash = roundsManager().blockHashForRound(creationRound);\\n\\n require(blockHash != bytes32(0), \\\"ticket creationRound does not have a block hash\\\");\\n require(creationRoundBlockHash == blockHash, \\\"ticket creationRoundBlockHash invalid for creationRound\\\");\\n\\n uint256 currRound = roundsManager().currentRound();\\n\\n require(creationRound.add(ticketValidityPeriod) > currRound, \\\"ticket is expired\\\");\\n }\\n\\n /**\\n * @dev Returns a ticket's creationRound and creationRoundBlockHash parsed from ticket auxilary data\\n * @param _auxData Auxilary data for a ticket\\n * @return creationRound and creationRoundBlockHash parsed from `_auxData`\\n */\\n function getCreationRoundAndBlockHash(bytes memory _auxData)\\n internal\\n pure\\n returns (uint256 creationRound, bytes32 creationRoundBlockHash)\\n {\\n require(_auxData.length == 64, \\\"invalid length for ticket auxData: must be 64 bytes\\\");\\n\\n // _auxData format:\\n // Bytes [0:31] = creationRound\\n // Bytes [32:63] = creationRoundBlockHash\\n assembly {\\n creationRound := mload(add(_auxData, 32))\\n creationRoundBlockHash := mload(add(_auxData, 64))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x38a3a855f30ebce7af979a0876f11943b6064bc652908c47572f93a202989c41\",\"license\":\"MIT\"},\"contracts/pm/mixins/MixinWrappers.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./interfaces/MTicketBrokerCore.sol\\\";\\nimport \\\"./MixinContractRegistry.sol\\\";\\n\\nabstract contract MixinWrappers is MixinContractRegistry, MTicketBrokerCore {\\n /**\\n * @notice Redeems multiple winning tickets. The function will redeem all of the provided tickets and handle any failures gracefully without reverting the entire function\\n * @param _tickets Array of winning tickets to be redeemed in order to claim payment\\n * @param _sigs Array of sender signatures over the hash of tickets (`_sigs[i]` corresponds to `_tickets[i]`)\\n * @param _recipientRands Array of preimages for the recipientRandHash included in each ticket (`_recipientRands[i]` corresponds to `_tickets[i]`)\\n */\\n function batchRedeemWinningTickets(\\n Ticket[] memory _tickets,\\n bytes[] memory _sigs,\\n uint256[] memory _recipientRands\\n ) public whenSystemNotPaused currentRoundInitialized {\\n for (uint256 i = 0; i < _tickets.length; i++) {\\n redeemWinningTicketNoRevert(_tickets[i], _sigs[i], _recipientRands[i]);\\n }\\n }\\n\\n /**\\n * @dev Redeems a winning ticket that has been signed by a sender and reveals the\\n recipient recipientRand that corresponds to the recipientRandHash included in the ticket\\n This function wraps `redeemWinningTicket()` and returns false if the underlying call reverts\\n * @param _ticket Winning ticket to be redeemed in order to claim payment\\n * @param _sig Sender's signature over the hash of `_ticket`\\n * @param _recipientRand The preimage for the recipientRandHash included in `_ticket`\\n * @return success Boolean indicating whether the underlying `redeemWinningTicket()` call succeeded\\n */\\n function redeemWinningTicketNoRevert(\\n Ticket memory _ticket,\\n bytes memory _sig,\\n uint256 _recipientRand\\n ) internal returns (bool success) {\\n // ABI encode calldata for `redeemWinningTicket()`\\n // A tuple type is used to represent the Ticket struct in the function signature\\n bytes memory redeemWinningTicketCalldata = abi.encodeWithSignature(\\n \\\"redeemWinningTicket((address,address,uint256,uint256,uint256,bytes32,bytes),bytes,uint256)\\\",\\n _ticket,\\n _sig,\\n _recipientRand\\n );\\n\\n // Call `redeemWinningTicket()`\\n // solium-disable-next-line\\n (success, ) = address(this).call(redeemWinningTicketCalldata);\\n }\\n}\\n\",\"keccak256\":\"0xf0831bba68089167c5cc9ed9a04564d0a68e1454bd65cf91083103197d047b1d\",\"license\":\"MIT\"},\"contracts/pm/mixins/interfaces/MContractRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../../../bonding/IBondingManager.sol\\\";\\nimport \\\"../../../token/IMinter.sol\\\";\\nimport \\\"../../../rounds/IRoundsManager.sol\\\";\\n\\nabstract contract MContractRegistry {\\n /**\\n * @notice Checks if the current round has been initialized\\n * @dev Executes the 'currentRoundInitialized' modifier in 'MixinContractRegistry'\\n */\\n modifier currentRoundInitialized() virtual {\\n _;\\n }\\n\\n /**\\n * @dev Returns an instance of the IBondingManager interface\\n */\\n function bondingManager() internal view virtual returns (IBondingManager);\\n\\n /**\\n * @dev Returns an instance of the IMinter interface\\n */\\n function minter() internal view virtual returns (IMinter);\\n\\n /**\\n * @dev Returns an instance of the IRoundsManager interface\\n */\\n function roundsManager() internal view virtual returns (IRoundsManager);\\n}\\n\",\"keccak256\":\"0xc58fb56b6ccfe36e5e09322ca1793a805668c84877cf6856403da51e2e35a359\",\"license\":\"MIT\"},\"contracts/pm/mixins/interfaces/MReserve.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nabstract contract MReserve {\\n struct ReserveInfo {\\n uint256 fundsRemaining; // Funds remaining in reserve\\n uint256 claimedInCurrentRound; // Funds claimed from reserve in current round\\n }\\n\\n // Emitted when funds are added to a reserve\\n event ReserveFunded(address indexed reserveHolder, uint256 amount);\\n // Emitted when funds are claimed from a reserve\\n event ReserveClaimed(address indexed reserveHolder, address claimant, uint256 amount);\\n\\n /**\\n * @notice Returns info about a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @return info Info about the reserve for `_reserveHolder`\\n */\\n function getReserveInfo(address _reserveHolder) public view virtual returns (ReserveInfo memory info);\\n\\n /**\\n * @notice Returns the amount of funds claimed by a claimant from a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @param _claimant Address of claimant\\n * @return Amount of funds claimed by `_claimant` from the reserve for `_reserveHolder`\\n */\\n function claimedReserve(address _reserveHolder, address _claimant) public view virtual returns (uint256);\\n\\n /**\\n * @dev Adds funds to a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @param _amount Amount of funds to add to reserve\\n */\\n function addReserve(address _reserveHolder, uint256 _amount) internal virtual;\\n\\n /**\\n * @dev Clears contract storage used for a reserve\\n * @param _reserveHolder Address of reserve holder\\n */\\n function clearReserve(address _reserveHolder) internal virtual;\\n\\n /**\\n * @dev Claims funds from a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @param _claimant Address of claimant\\n * @param _amount Amount of funds to claim from the reserve\\n * @return Amount of funds (<= `_amount`) claimed by `_claimant` from the reserve for `_reserveHolder`\\n */\\n function claimFromReserve(\\n address _reserveHolder,\\n address _claimant,\\n uint256 _amount\\n ) internal virtual returns (uint256);\\n\\n /**\\n * @dev Returns the amount of funds remaining in a reserve\\n * @param _reserveHolder Address of reserve holder\\n * @return Amount of funds remaining in the reserve for `_reserveHolder`\\n */\\n function remainingReserve(address _reserveHolder) internal view virtual returns (uint256);\\n}\\n\",\"keccak256\":\"0x01229dd7088e23db674d032c239d90a14e8922532a82c7d46a3e7fe5fa234827\",\"license\":\"MIT\"},\"contracts/pm/mixins/interfaces/MTicketBrokerCore.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nabstract contract MTicketBrokerCore {\\n struct Ticket {\\n address recipient; // Address of ticket recipient\\n address sender; // Address of ticket sender\\n uint256 faceValue; // Face value of ticket paid to recipient if ticket wins\\n uint256 winProb; // Probability ticket will win represented as winProb / (2^256 - 1)\\n uint256 senderNonce; // Sender's monotonically increasing counter for each ticket\\n bytes32 recipientRandHash; // keccak256 hash commitment to recipient's random value\\n bytes auxData; // Auxilary data included in ticket used for additional validation\\n }\\n\\n // Emitted when funds are added to a sender's deposit\\n event DepositFunded(address indexed sender, uint256 amount);\\n // Emitted when a winning ticket is redeemed\\n event WinningTicketRedeemed(\\n address indexed sender,\\n address indexed recipient,\\n uint256 faceValue,\\n uint256 winProb,\\n uint256 senderNonce,\\n uint256 recipientRand,\\n bytes auxData\\n );\\n // Emitted when a funds transfer for a winning ticket redemption is executed\\n event WinningTicketTransfer(address indexed sender, address indexed recipient, uint256 amount);\\n // Emitted when a sender requests an unlock\\n event Unlock(address indexed sender, uint256 startRound, uint256 endRound);\\n // Emitted when a sender cancels an unlock\\n event UnlockCancelled(address indexed sender);\\n // Emitted when a sender withdraws its deposit & reserve\\n event Withdrawal(address indexed sender, uint256 deposit, uint256 reserve);\\n}\\n\",\"keccak256\":\"0x80c3b528a357a1895fc5e3d6a7b935db89ab1ba10a0af677d677b7a66434bc0f\",\"license\":\"MIT\"},\"contracts/pm/mixins/interfaces/MTicketProcessor.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nabstract contract MTicketProcessor {\\n /**\\n * @dev Process sent funds.\\n * @param _amount Amount of funds sent\\n */\\n function processFunding(uint256 _amount) internal virtual;\\n\\n /**\\n * @dev Transfer withdrawal funds for a ticket sender\\n * @param _amount Amount of withdrawal funds\\n */\\n function withdrawTransfer(address payable _sender, uint256 _amount) internal virtual;\\n\\n /**\\n * @dev Transfer funds for a recipient's winning ticket\\n * @param _recipient Address of recipient\\n * @param _amount Amount of funds for the winning ticket\\n * @param _auxData Auxilary data for the winning ticket\\n */\\n function winningTicketTransfer(\\n address _recipient,\\n uint256 _amount,\\n bytes memory _auxData\\n ) internal virtual;\\n\\n /**\\n * @dev Validates a ticket's auxilary data (succeeds or reverts)\\n * @param _auxData Auxilary data inclueded in a ticket\\n */\\n function requireValidTicketAuxData(bytes memory _auxData) internal view virtual;\\n}\\n\",\"keccak256\":\"0xe026045f70ec840465b6d146cd4ddc5ea8b9a8e8ee0c6288f44649dd3c4a12e9\",\"license\":\"MIT\"},\"contracts/rounds/IRoundsManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title RoundsManager interface\\n */\\ninterface IRoundsManager {\\n // Events\\n event NewRound(uint256 indexed round, bytes32 blockHash);\\n\\n // Deprecated events\\n // These event signatures can be used to construct the appropriate topic hashes to filter for past logs corresponding\\n // to these deprecated events.\\n // event NewRound(uint256 round)\\n\\n // External functions\\n function initializeRound() external;\\n\\n function lipUpgradeRound(uint256 _lip) external view returns (uint256);\\n\\n // Public functions\\n function blockNum() external view returns (uint256);\\n\\n function blockHash(uint256 _block) external view returns (bytes32);\\n\\n function blockHashForRound(uint256 _round) external view returns (bytes32);\\n\\n function currentRound() external view returns (uint256);\\n\\n function currentRoundStartBlock() external view returns (uint256);\\n\\n function currentRoundInitialized() external view returns (bool);\\n\\n function currentRoundLocked() external view returns (bool);\\n}\\n\",\"keccak256\":\"0xfc453a476bb68b874c21678a128b46ffcad0af69008e0e3e857d46499214f75f\",\"license\":\"MIT\"},\"contracts/token/IMinter.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"../IController.sol\\\";\\n\\n/**\\n * @title Minter interface\\n */\\ninterface IMinter {\\n // Events\\n event SetCurrentRewardTokens(uint256 currentMintableTokens, uint256 currentInflation);\\n\\n // External functions\\n function createReward(uint256 _fracNum, uint256 _fracDenom) external returns (uint256);\\n\\n function trustedTransferTokens(address _to, uint256 _amount) external;\\n\\n function trustedBurnTokens(uint256 _amount) external;\\n\\n function trustedWithdrawETH(address payable _to, uint256 _amount) external;\\n\\n function depositETH() external payable returns (bool);\\n\\n function setCurrentRewardTokens() external;\\n\\n function currentMintableTokens() external view returns (uint256);\\n\\n function currentMintedTokens() external view returns (uint256);\\n\\n // Public functions\\n function getController() external view returns (IController);\\n}\\n\",\"keccak256\":\"0x3fbb7a4239a8b5979fb4c45a41495e9694a9f454de82dca3cf6a14dfe71255c7\",\"license\":\"MIT\"},\"contracts/zeppelin/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\n/**\\n * @title Ownable\\n * @dev The Ownable contract has an owner address, and provides basic authorization control\\n * functions, this simplifies the implementation of \\\"user permissions\\\".\\n */\\ncontract Ownable {\\n address public owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\\n * account.\\n */\\n constructor() {\\n owner = msg.sender;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(msg.sender == owner);\\n _;\\n }\\n\\n /**\\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\\n * @param newOwner The address to transfer ownership to.\\n */\\n function transferOwnership(address newOwner) public onlyOwner {\\n require(newOwner != address(0));\\n emit OwnershipTransferred(owner, newOwner);\\n owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x64f114689f2f161c4a4b8fc8442ab914436a33e6021bf17401eaeac73319a419\",\"license\":\"MIT\"},\"contracts/zeppelin/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.9;\\n\\nimport \\\"./Ownable.sol\\\";\\n\\n/**\\n * @title Pausable\\n * @dev Base contract which allows children to implement an emergency stop mechanism.\\n */\\ncontract Pausable is Ownable {\\n event Pause();\\n event Unpause();\\n\\n bool public paused;\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused);\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n */\\n modifier whenPaused() {\\n require(paused);\\n _;\\n }\\n\\n /**\\n * @dev called by the owner to pause, triggers stopped state\\n */\\n function pause() public onlyOwner whenNotPaused {\\n paused = true;\\n emit Pause();\\n }\\n\\n /**\\n * @dev called by the owner to unpause, returns to normal state\\n */\\n function unpause() public onlyOwner whenPaused {\\n paused = false;\\n emit Unpause();\\n }\\n}\\n\",\"keccak256\":\"0xe9635fcac46c22547a08f6977a8c75e7341411f1201f60bdd4c79c26e6c286ef\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b5060405162002f5e38038062002f5e83398101604081905262000034916200005a565b600080546001600160a01b0319166001600160a01b03929092169190911790556200008c565b6000602082840312156200006d57600080fd5b81516001600160a01b03811681146200008557600080fd5b9392505050565b612ec2806200009c6000396000f3fe6080604052600436106101405760003560e01c806381779f38116100b6578063c2c4c2c81161006f578063c2c4c2c814610329578063c92978081461033e578063d01b808e1461035e578063e1a589da1461037e578063ec8b3cb6146103ac578063f77c4791146103cc57600080fd5b806381779f381461028b578063856a2cf8146102ab57806392eefe9b146102c1578063989f789c146102e1578063a69df4b5146102f4578063b03fa8641461030957600080fd5b8063511f407311610108578063511f4073146101f557806351720b411461020857806359a515ba1461021e5780635b6333eb1461024e5780636caa736b1461027b5780636f9c3c8f1461028357600080fd5b8063121cdcc21461014557806320d3a0b41461017a5780633ccfd60b1461019e5780633d0ddf84146101b55780634ac826da146101d5575b600080fd5b34801561015157600080fd5b5061016561016036600461266e565b610404565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061019060045481565b604051908152602001610171565b3480156101aa57600080fd5b506101b3610440565b005b3480156101c157600080fd5b506101b36101d036600461268b565b6105c6565b3480156101e157600080fd5b506101906101f03660046126a4565b61062d565b6101b36102033660046126dd565b6106ef565b34801561021457600080fd5b5061019060015481565b34801561022a57600080fd5b5061016561023936600461268b565b60056020526000908152604090205460ff1681565b34801561025a57600080fd5b5061026e61026936600461266e565b6106fe565b60405161017191906126ff565b6101b36107cc565b6101b3610862565b34801561029757600080fd5b506101906102a63660046126a4565b6108bd565b3480156102b757600080fd5b5061019060065481565b3480156102cd57600080fd5b506101b36102dc36600461266e565b610ad2565b6101b36102ef366004612716565b610b28565b34801561030057600080fd5b506101b3610cb7565b34801561031557600080fd5b506101906103243660046128bd565b610e4b565b34801561033557600080fd5b506101b3610e9d565b34801561034a57600080fd5b506101b361035936600461268b565b610ec3565b34801561036a57600080fd5b506101b3610379366004612a09565b610f8b565b34801561038a57600080fd5b5061039e61039936600461266e565b6110d2565b604051610171929190612b01565b3480156103b857600080fd5b506101b36103c7366004612b27565b611133565b3480156103d857600080fd5b506000546103ec906001600160a01b031681565b6040516001600160a01b039091168152602001610171565b6001600160a01b0381166000908152600360209081526040808320815180830190925280548252600101549181018290529015155b9392505050565b610448611445565b33600090815260036020908152604080832080546002909352922054811515806104725750600081115b6104975760405162461bcd60e51b815260040161048e90612b94565b60405180910390fd5b6040805180820190915283548152600184015460209091018190526104fe5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b60408051808201909152835481526001840154602082015261051f9061150b565b156105605760405162461bcd60e51b81526020600482015260116024820152701858d8dbdd5b9d081a5cc81b1bd8dad959607a1b604482015260640161048e565b60008084553381526002602052604081205561058533610580848461159f565b6115ab565b604080518381526020810183905233917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb91015b60405180910390a2505050565b6105ce61161b565b60048190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252600c908201526b1d5b9b1bd8dad4195c9a5bd960a21b604082015260600190565b60405180910390a150565b6001600160a01b03821660009081526002602052604081208161064e6116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561068657600080fd5b505afa15801561069a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106be9190612bd7565b60009081526002909201602090815260408084206001600160a01b0387168552909152909120549150505b92915050565b6106fa338383610b28565b5050565b604080518082018252600080825260208083018290526001600160a01b0385168083526002808352948320805485529083529390529091600101906107416116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561077957600080fd5b505afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190612bd7565b81526020808201929092526040016000205490820152919050565b6107d4611445565b33600081815260036020526040902080543491906107f2908361159f565b80825560408051808201909152908152600182015460209091018190521561081e5761081e81846117a1565b61082734611846565b826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f836040516105b991815260200190565b61086a611445565b336000818152600360205260409020349061088583836118c1565b604080518082019091528154815260018201546020909101819052156108af576108af81846117a1565b6108b834611846565b505050565b6001600160a01b0382166000908152600260205260408120816108de6116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190612bd7565b9050610958611933565b60405163022008dd60e21b81526001600160a01b038681166004830152919091169063088023749060240160206040518083038186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d39190612bf0565b6109e2576000925050506106e9565b60006109ec611933565b6001600160a01b0316632a4e0d556040518163ffffffff1660e01b815260040160206040518083038186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5c9190612bd7565b905080610a6f57600093505050506106e9565b60008281526001840160205260408120548454610a8b9161159f565b600084815260028601602090815260408083206001600160a01b038b168452909152902054909150610ac790610ac18385611984565b90611990565b979650505050505050565b610ada61199c565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610622565b610b30611445565b8181610b3c828261159f565b3414610bba5760405162461bcd60e51b815260206004820152604160248201527f6d73672e76616c756520646f6573206e6f7420657175616c2073756d206f662060448201527f6465706f73697420616d6f756e7420616e64207265736572766520616d6f756e6064820152601d60fa1b608482015260a40161048e565b6001600160a01b0385166000908152600360205260409020805486918691610be2908361159f565b808255604080518082019091529081526001820154602090910181905215610c0e57610c0e81846117a1565b6001600160a01b038816600090815260036020526040902088908790610c3483836118c1565b60408051808201909152815481526001820154602090910181905215610c5e57610c5e81846117a1565b610c6734611846565b505050826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f83604051610ca591815260200190565b60405180910390a25050505050505050565b610cbf611445565b3360009081526003602052604090208054151580610cea575033600090815260026020526040812054115b610d065760405162461bcd60e51b815260040161048e90612b94565b60408051808201909152815481526001820154602090910181905215610d6e5760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b20616c726561647920696e697469617465640000000000000000604482015260640161048e565b6000610d786116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de89190612bd7565b9050610dff6004548261159f90919063ffffffff16565b6001830181905560405133917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c200491610e3f91858252602082015260400190565b60405180910390a25050565b80516020808301516040808501516060860151608087015160a088015160c08901519451600098610e80989097969101612c3e565b604051602081830303815290604052805190602001209050919050565b610ea5611445565b33600081815260036020526040902090610ec09082906117a1565b50565b610ecb61161b565b60008111610f2f5760405162461bcd60e51b815260206004820152602b60248201527f7469636b657456616c6964697479506572696f64206d7573742062652067726560448201526a061746572207468616e20360ac1b606482015260840161048e565b60068190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252601490820152731d1a58dad95d15985b1a591a5d1e54195c9a5bd960621b604082015260600190565b610f93611445565b610f9b6116ff565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b9190612bf0565b6110575760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b60005b83518110156110cc576110b984828151811061107857611078612ca0565b602002602001015184838151811061109257611092612ca0565b60200260200101518484815181106110ac576110ac612ca0565b60200260200101516119f6565b50806110c481612ccc565b91505061105a565b50505050565b60408051808201825260008082526020918201819052825180840184528181528083018290526001600160a01b03851682526003835290839020835180850190945280548452600101549183019190915261112c836106fe565b9050915091565b61113b611445565b6111436116ff565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561117b57600080fd5b505afa15801561118f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b39190612bf0565b6111ff5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b600061120a84610e4b565b905061121884828585611a97565b6020808501516001600160a01b03166000908152600382526040908190208151808301909252805482526001810154928201929092526112579061150b565b6112985760405162461bcd60e51b81526020600482015260126024820152711cd95b99195c881a5cc81d5b9b1bd8dad95960721b604482015260640161048e565b80541515806112c9575060006112c786602001516001600160a01b031660009081526002602052604090205490565b115b6112e55760405162461bcd60e51b815260040161048e90612b94565b600082815260056020526040808220805460ff19166001179055825490870151111561134e5761134361133b8760200151886000015161133686600001548b6040015161199090919063ffffffff16565b611ce6565b83549061159f565b600083559050611363565b50604085015181546113609082611990565b82555b80156113d25761137c8660000151828860c00151611e7e565b85600001516001600160a01b031686602001516001600160a01b03167f8b87351a208c06e3ceee59d80725fd77a23b4129e1b51ca231fc89b40712649c836040516113c991815260200190565b60405180910390a35b85600001516001600160a01b031686602001516001600160a01b03167fc389eb51ed006dbf2528507f010efdf5225ea596e1e1741d74f550dab1925ee7886040015189606001518a60800151898c60c00151604051611435959493929190612d13565b60405180910390a3505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561149157600080fd5b505afa1580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190612bf0565b156115095760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b604482015260640161048e565b565b60008160200151600014806106e9575081602001516115286116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561156057600080fd5b505afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115989190612bd7565b1092915050565b60006104398284612d3e565b6115b3611f05565b6040516320283da960e01b81526001600160a01b0384811660048301526024820184905291909116906320283da990604401600060405180830381600087803b1580156115ff57600080fd5b505af1158015611613573d6000803e3d6000fd5b505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561166757600080fd5b505afa15801561167b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169f9190612d56565b6001600160a01b0316336001600160a01b0316146115095760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e657200604482015260640161048e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b15801561176457600080fd5b505afa158015611778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179c9190612d56565b905090565b6040805180820190915282548152600183015460209091018190526118085760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b6000600183018190556040516001600160a01b038316917ffa044b7b93a40365dc68049797c2eb06918523d694e5d56e406cac3eb35578e591a25050565b61184e611f05565b6001600160a01b031663f6326fb3826040518263ffffffff1660e01b81526004016020604051808303818588803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106fa9190612bf0565b6001600160a01b0382166000908152600260205260409020546118e4908261159f565b6001600160a01b038316600081815260026020526040908190209290925590517fb52b99b9e83551fcbd069b559cc3e823e2a1a3bad8ece46561ea77524394c85090610e3f9084815260200190565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d989060240161174c565b60006104398284612d73565b60006104398284612d95565b6000546001600160a01b031633146115095760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c657200000000000000604482015260640161048e565b600080848484604051602401611a0e93929190612dac565b60408051601f198184030181529181526020820180516001600160e01b03166376459e5b60e11b179052519091503090611a49908390612e38565b6000604051808303816000865af19150503d8060008114611a86576040519150601f19603f3d011682016040523d82523d6000602084013e611a8b565b606091505b50909695505050505050565b83516001600160a01b0316611aee5760405162461bcd60e51b815260206004820181905260248201527f7469636b657420726563697069656e74206973206e756c6c2061646472657373604482015260640161048e565b60208401516001600160a01b0316611b485760405162461bcd60e51b815260206004820152601d60248201527f7469636b65742073656e646572206973206e756c6c2061646472657373000000604482015260640161048e565b611b558460c00151611f56565b60a08401516040805160208101849052016040516020818303038152906040528051906020012014611be05760405162461bcd60e51b815260206004820152602e60248201527f726563697069656e7452616e6420646f6573206e6f74206d617463682072656360448201526d0d2e0d2cadce8a4c2dcc890c2e6d60931b606482015260840161048e565b60008381526005602052604090205460ff1615611c305760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d081a5cc81d5cd95960921b604482015260640161048e565b611c3f846020015183856121a3565b611c965760405162461bcd60e51b815260206004820152602260248201527f696e76616c6964207369676e6174757265206f766572207469636b65742068616044820152610e6d60f31b606482015260840161048e565b611ca5828286606001516121eb565b6110cc5760405162461bcd60e51b81526020600482015260126024820152713a34b1b5b2ba103234b2103737ba103bb4b760711b604482015260640161048e565b600080611cf385856108bd565b90506000818411611d045783611d06565b815b90508015611e75576000611d186116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d5057600080fd5b505afa158015611d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d889190612bd7565b6001600160a01b0388166000908152600260209081526040808320848452600181019092529091205491925090611dbf908461159f565b60008381526001830160209081526040808320939093556002840181528282206001600160a01b038b16835290522054611df9908461159f565b600083815260028301602090815260408083206001600160a01b038c1684529091529020558054611e2a9084611990565b8155604080516001600160a01b038981168252602082018690528a16917f5c2b394723f408a40a60335e24b71829642e35f350cebe2036a96a66e895ea98910160405180910390a250505b95945050505050565b6000611e8982612222565b509050611e94611933565b604051630ebad44b60e21b81526001600160a01b03868116600483015260248201869052604482018490529190911690633aeb512c90606401600060405180830381600087803b158015611ee757600080fd5b505af1158015611efb573d6000803e3d6000fd5b5050505050505050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d989060240161174c565b600080611f6283612222565b915091506000611f706116ff565b6001600160a01b0316633aa4add4846040518263ffffffff1660e01b8152600401611f9d91815260200190565b60206040518083038186803b158015611fb557600080fd5b505afa158015611fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fed9190612bd7565b9050806120545760405162461bcd60e51b815260206004820152602f60248201527f7469636b6574206372656174696f6e526f756e6420646f6573206e6f7420686160448201526e0ecca40c240c4d8dec6d640d0c2e6d608b1b606482015260840161048e565b8082146120c95760405162461bcd60e51b815260206004820152603760248201527f7469636b6574206372656174696f6e526f756e64426c6f636b4861736820696e60448201527f76616c696420666f72206372656174696f6e526f756e64000000000000000000606482015260840161048e565b60006120d36116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561210b57600080fd5b505afa15801561211f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121439190612bd7565b90508061215b6006548661159f90919063ffffffff16565b1161219c5760405162461bcd60e51b81526020600482015260116024820152701d1a58dad95d081a5cc8195e1c1a5c9959607a1b604482015260640161048e565b5050505050565b6000806121b86121b2846122a3565b856122de565b90506001600160a01b03811615801590611e755750806001600160a01b0316856001600160a01b03161495945050505050565b6000818484604051602001612201929190612e54565b60408051601f19818403018152919052805160209091012010949350505050565b60008082516040146122925760405162461bcd60e51b815260206004820152603360248201527f696e76616c6964206c656e67746820666f72207469636b657420617578446174604482015272613a206d75737420626520363420627974657360681b606482015260840161048e565b505060208101516040909101519091565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610e80565b60008060006122ed8585612302565b915091506122fa81612372565b509392505050565b6000808251604114156123395760208301516040840151606085015160001a61232d8782858561252d565b9450945050505061236b565b825160401415612363576020830151604084015161235886838361261a565b93509350505061236b565b506000905060025b9250929050565b600081600481111561238657612386612e76565b141561238f5750565b60018160048111156123a3576123a3612e76565b14156123f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048e565b600281600481111561240557612405612e76565b14156124535760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048e565b600381600481111561246757612467612e76565b14156124c05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161048e565b60048160048111156124d4576124d4612e76565b1415610ec05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161048e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125645750600090506003612611565b8460ff16601b1415801561257c57508460ff16601c14155b1561258d5750600090506004612611565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156125e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661260a57600060019250925050612611565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161263b8782888561252d565b935093505050935093915050565b6001600160a01b0381168114610ec057600080fd5b803561266981612649565b919050565b60006020828403121561268057600080fd5b813561043981612649565b60006020828403121561269d57600080fd5b5035919050565b600080604083850312156126b757600080fd5b82356126c281612649565b915060208301356126d281612649565b809150509250929050565b600080604083850312156126f057600080fd5b50508035926020909101359150565b8151815260208083015190820152604081016106e9565b60008060006060848603121561272b57600080fd5b833561273681612649565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156127845761278461274b565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156127b3576127b361274b565b604052919050565b600082601f8301126127cc57600080fd5b813567ffffffffffffffff8111156127e6576127e661274b565b6127f9601f8201601f191660200161278a565b81815284602083860101111561280e57600080fd5b816020850160208301376000918101602001919091529392505050565b600060e0828403121561283d57600080fd5b612845612761565b90506128508261265e565b815261285e6020830161265e565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013567ffffffffffffffff8111156128a557600080fd5b6128b1848285016127bb565b60c08301525092915050565b6000602082840312156128cf57600080fd5b813567ffffffffffffffff8111156128e657600080fd5b6128f28482850161282b565b949350505050565b600067ffffffffffffffff8211156129145761291461274b565b5060051b60200190565b600082601f83011261292f57600080fd5b8135602061294461293f836128fa565b61278a565b82815260059290921b8401810191818101908684111561296357600080fd5b8286015b848110156129a357803567ffffffffffffffff8111156129875760008081fd5b6129958986838b01016127bb565b845250918301918301612967565b509695505050505050565b600082601f8301126129bf57600080fd5b813560206129cf61293f836128fa565b82815260059290921b840181019181810190868411156129ee57600080fd5b8286015b848110156129a357803583529183019183016129f2565b600080600060608486031215612a1e57600080fd5b833567ffffffffffffffff80821115612a3657600080fd5b818601915086601f830112612a4a57600080fd5b81356020612a5a61293f836128fa565b82815260059290921b8401810191818101908a841115612a7957600080fd5b8286015b84811015612ab157803586811115612a955760008081fd5b612aa38d86838b010161282b565b845250918301918301612a7d565b5097505087013592505080821115612ac857600080fd5b612ad48783880161291e565b93506040860135915080821115612aea57600080fd5b50612af7868287016129ae565b9150509250925092565b825181526020808401518183015282516040830152820151606082015260808101610439565b600080600060608486031215612b3c57600080fd5b833567ffffffffffffffff80821115612b5457600080fd5b612b608783880161282b565b94506020860135915080821115612b7657600080fd5b50612b83868287016127bb565b925050604084013590509250925092565b60208082526023908201527f73656e646572206465706f73697420616e64207265736572766520617265207a60408201526265726f60e81b606082015260800190565b600060208284031215612be957600080fd5b5051919050565b600060208284031215612c0257600080fd5b8151801515811461043957600080fd5b60005b83811015612c2d578181015183820152602001612c15565b838111156110cc5750506000910152565b60006bffffffffffffffffffffffff19808a60601b168352808960601b166014840152508660288301528560488301528460688301528360888301528251612c8d8160a8850160208701612c12565b9190910160a80198975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ce057612ce0612cb6565b5060010190565b60008151808452612cff816020860160208601612c12565b601f01601f19169290920160200192915050565b85815284602082015283604082015282606082015260a060808201526000610ac760a0830184612ce7565b60008219821115612d5157612d51612cb6565b500190565b600060208284031215612d6857600080fd5b815161043981612649565b600082612d9057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612da757612da7612cb6565b500390565b60608152600060018060a01b0380865116606084015280602087015116608084015250604085015160a0830152606085015160c0830152608085015160e083015260a085015161010083015260c085015160e0610120840152612e13610140840182612ce7565b90508281036020840152612e278186612ce7565b915050826040830152949350505050565b60008251612e4a818460208701612c12565b9190910192915050565b60008351612e66818460208801612c12565b9190910191825250602001919050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122039ff1a1f689899210b80919adb3cf06775169e17291ef7e3b4278f644bf67bf264736f6c63430008090033", - "deployedBytecode": "0x6080604052600436106101405760003560e01c806381779f38116100b6578063c2c4c2c81161006f578063c2c4c2c814610329578063c92978081461033e578063d01b808e1461035e578063e1a589da1461037e578063ec8b3cb6146103ac578063f77c4791146103cc57600080fd5b806381779f381461028b578063856a2cf8146102ab57806392eefe9b146102c1578063989f789c146102e1578063a69df4b5146102f4578063b03fa8641461030957600080fd5b8063511f407311610108578063511f4073146101f557806351720b411461020857806359a515ba1461021e5780635b6333eb1461024e5780636caa736b1461027b5780636f9c3c8f1461028357600080fd5b8063121cdcc21461014557806320d3a0b41461017a5780633ccfd60b1461019e5780633d0ddf84146101b55780634ac826da146101d5575b600080fd5b34801561015157600080fd5b5061016561016036600461266e565b610404565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061019060045481565b604051908152602001610171565b3480156101aa57600080fd5b506101b3610440565b005b3480156101c157600080fd5b506101b36101d036600461268b565b6105c6565b3480156101e157600080fd5b506101906101f03660046126a4565b61062d565b6101b36102033660046126dd565b6106ef565b34801561021457600080fd5b5061019060015481565b34801561022a57600080fd5b5061016561023936600461268b565b60056020526000908152604090205460ff1681565b34801561025a57600080fd5b5061026e61026936600461266e565b6106fe565b60405161017191906126ff565b6101b36107cc565b6101b3610862565b34801561029757600080fd5b506101906102a63660046126a4565b6108bd565b3480156102b757600080fd5b5061019060065481565b3480156102cd57600080fd5b506101b36102dc36600461266e565b610ad2565b6101b36102ef366004612716565b610b28565b34801561030057600080fd5b506101b3610cb7565b34801561031557600080fd5b506101906103243660046128bd565b610e4b565b34801561033557600080fd5b506101b3610e9d565b34801561034a57600080fd5b506101b361035936600461268b565b610ec3565b34801561036a57600080fd5b506101b3610379366004612a09565b610f8b565b34801561038a57600080fd5b5061039e61039936600461266e565b6110d2565b604051610171929190612b01565b3480156103b857600080fd5b506101b36103c7366004612b27565b611133565b3480156103d857600080fd5b506000546103ec906001600160a01b031681565b6040516001600160a01b039091168152602001610171565b6001600160a01b0381166000908152600360209081526040808320815180830190925280548252600101549181018290529015155b9392505050565b610448611445565b33600090815260036020908152604080832080546002909352922054811515806104725750600081115b6104975760405162461bcd60e51b815260040161048e90612b94565b60405180910390fd5b6040805180820190915283548152600184015460209091018190526104fe5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b60408051808201909152835481526001840154602082015261051f9061150b565b156105605760405162461bcd60e51b81526020600482015260116024820152701858d8dbdd5b9d081a5cc81b1bd8dad959607a1b604482015260640161048e565b60008084553381526002602052604081205561058533610580848461159f565b6115ab565b604080518381526020810183905233917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb91015b60405180910390a2505050565b6105ce61161b565b60048190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252600c908201526b1d5b9b1bd8dad4195c9a5bd960a21b604082015260600190565b60405180910390a150565b6001600160a01b03821660009081526002602052604081208161064e6116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561068657600080fd5b505afa15801561069a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106be9190612bd7565b60009081526002909201602090815260408084206001600160a01b0387168552909152909120549150505b92915050565b6106fa338383610b28565b5050565b604080518082018252600080825260208083018290526001600160a01b0385168083526002808352948320805485529083529390529091600101906107416116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561077957600080fd5b505afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190612bd7565b81526020808201929092526040016000205490820152919050565b6107d4611445565b33600081815260036020526040902080543491906107f2908361159f565b80825560408051808201909152908152600182015460209091018190521561081e5761081e81846117a1565b61082734611846565b826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f836040516105b991815260200190565b61086a611445565b336000818152600360205260409020349061088583836118c1565b604080518082019091528154815260018201546020909101819052156108af576108af81846117a1565b6108b834611846565b505050565b6001600160a01b0382166000908152600260205260408120816108de6116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190612bd7565b9050610958611933565b60405163022008dd60e21b81526001600160a01b038681166004830152919091169063088023749060240160206040518083038186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d39190612bf0565b6109e2576000925050506106e9565b60006109ec611933565b6001600160a01b0316632a4e0d556040518163ffffffff1660e01b815260040160206040518083038186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5c9190612bd7565b905080610a6f57600093505050506106e9565b60008281526001840160205260408120548454610a8b9161159f565b600084815260028601602090815260408083206001600160a01b038b168452909152902054909150610ac790610ac18385611984565b90611990565b979650505050505050565b610ada61199c565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610622565b610b30611445565b8181610b3c828261159f565b3414610bba5760405162461bcd60e51b815260206004820152604160248201527f6d73672e76616c756520646f6573206e6f7420657175616c2073756d206f662060448201527f6465706f73697420616d6f756e7420616e64207265736572766520616d6f756e6064820152601d60fa1b608482015260a40161048e565b6001600160a01b0385166000908152600360205260409020805486918691610be2908361159f565b808255604080518082019091529081526001820154602090910181905215610c0e57610c0e81846117a1565b6001600160a01b038816600090815260036020526040902088908790610c3483836118c1565b60408051808201909152815481526001820154602090910181905215610c5e57610c5e81846117a1565b610c6734611846565b505050826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f83604051610ca591815260200190565b60405180910390a25050505050505050565b610cbf611445565b3360009081526003602052604090208054151580610cea575033600090815260026020526040812054115b610d065760405162461bcd60e51b815260040161048e90612b94565b60408051808201909152815481526001820154602090910181905215610d6e5760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b20616c726561647920696e697469617465640000000000000000604482015260640161048e565b6000610d786116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de89190612bd7565b9050610dff6004548261159f90919063ffffffff16565b6001830181905560405133917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c200491610e3f91858252602082015260400190565b60405180910390a25050565b80516020808301516040808501516060860151608087015160a088015160c08901519451600098610e80989097969101612c3e565b604051602081830303815290604052805190602001209050919050565b610ea5611445565b33600081815260036020526040902090610ec09082906117a1565b50565b610ecb61161b565b60008111610f2f5760405162461bcd60e51b815260206004820152602b60248201527f7469636b657456616c6964697479506572696f64206d7573742062652067726560448201526a061746572207468616e20360ac1b606482015260840161048e565b60068190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252601490820152731d1a58dad95d15985b1a591a5d1e54195c9a5bd960621b604082015260600190565b610f93611445565b610f9b6116ff565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b9190612bf0565b6110575760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b60005b83518110156110cc576110b984828151811061107857611078612ca0565b602002602001015184838151811061109257611092612ca0565b60200260200101518484815181106110ac576110ac612ca0565b60200260200101516119f6565b50806110c481612ccc565b91505061105a565b50505050565b60408051808201825260008082526020918201819052825180840184528181528083018290526001600160a01b03851682526003835290839020835180850190945280548452600101549183019190915261112c836106fe565b9050915091565b61113b611445565b6111436116ff565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561117b57600080fd5b505afa15801561118f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b39190612bf0565b6111ff5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b600061120a84610e4b565b905061121884828585611a97565b6020808501516001600160a01b03166000908152600382526040908190208151808301909252805482526001810154928201929092526112579061150b565b6112985760405162461bcd60e51b81526020600482015260126024820152711cd95b99195c881a5cc81d5b9b1bd8dad95960721b604482015260640161048e565b80541515806112c9575060006112c786602001516001600160a01b031660009081526002602052604090205490565b115b6112e55760405162461bcd60e51b815260040161048e90612b94565b600082815260056020526040808220805460ff19166001179055825490870151111561134e5761134361133b8760200151886000015161133686600001548b6040015161199090919063ffffffff16565b611ce6565b83549061159f565b600083559050611363565b50604085015181546113609082611990565b82555b80156113d25761137c8660000151828860c00151611e7e565b85600001516001600160a01b031686602001516001600160a01b03167f8b87351a208c06e3ceee59d80725fd77a23b4129e1b51ca231fc89b40712649c836040516113c991815260200190565b60405180910390a35b85600001516001600160a01b031686602001516001600160a01b03167fc389eb51ed006dbf2528507f010efdf5225ea596e1e1741d74f550dab1925ee7886040015189606001518a60800151898c60c00151604051611435959493929190612d13565b60405180910390a3505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561149157600080fd5b505afa1580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190612bf0565b156115095760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b604482015260640161048e565b565b60008160200151600014806106e9575081602001516115286116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561156057600080fd5b505afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115989190612bd7565b1092915050565b60006104398284612d3e565b6115b3611f05565b6040516320283da960e01b81526001600160a01b0384811660048301526024820184905291909116906320283da990604401600060405180830381600087803b1580156115ff57600080fd5b505af1158015611613573d6000803e3d6000fd5b505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561166757600080fd5b505afa15801561167b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169f9190612d56565b6001600160a01b0316336001600160a01b0316146115095760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e657200604482015260640161048e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b15801561176457600080fd5b505afa158015611778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179c9190612d56565b905090565b6040805180820190915282548152600183015460209091018190526118085760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b6000600183018190556040516001600160a01b038316917ffa044b7b93a40365dc68049797c2eb06918523d694e5d56e406cac3eb35578e591a25050565b61184e611f05565b6001600160a01b031663f6326fb3826040518263ffffffff1660e01b81526004016020604051808303818588803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106fa9190612bf0565b6001600160a01b0382166000908152600260205260409020546118e4908261159f565b6001600160a01b038316600081815260026020526040908190209290925590517fb52b99b9e83551fcbd069b559cc3e823e2a1a3bad8ece46561ea77524394c85090610e3f9084815260200190565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d989060240161174c565b60006104398284612d73565b60006104398284612d95565b6000546001600160a01b031633146115095760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c657200000000000000604482015260640161048e565b600080848484604051602401611a0e93929190612dac565b60408051601f198184030181529181526020820180516001600160e01b03166376459e5b60e11b179052519091503090611a49908390612e38565b6000604051808303816000865af19150503d8060008114611a86576040519150601f19603f3d011682016040523d82523d6000602084013e611a8b565b606091505b50909695505050505050565b83516001600160a01b0316611aee5760405162461bcd60e51b815260206004820181905260248201527f7469636b657420726563697069656e74206973206e756c6c2061646472657373604482015260640161048e565b60208401516001600160a01b0316611b485760405162461bcd60e51b815260206004820152601d60248201527f7469636b65742073656e646572206973206e756c6c2061646472657373000000604482015260640161048e565b611b558460c00151611f56565b60a08401516040805160208101849052016040516020818303038152906040528051906020012014611be05760405162461bcd60e51b815260206004820152602e60248201527f726563697069656e7452616e6420646f6573206e6f74206d617463682072656360448201526d0d2e0d2cadce8a4c2dcc890c2e6d60931b606482015260840161048e565b60008381526005602052604090205460ff1615611c305760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d081a5cc81d5cd95960921b604482015260640161048e565b611c3f846020015183856121a3565b611c965760405162461bcd60e51b815260206004820152602260248201527f696e76616c6964207369676e6174757265206f766572207469636b65742068616044820152610e6d60f31b606482015260840161048e565b611ca5828286606001516121eb565b6110cc5760405162461bcd60e51b81526020600482015260126024820152713a34b1b5b2ba103234b2103737ba103bb4b760711b604482015260640161048e565b600080611cf385856108bd565b90506000818411611d045783611d06565b815b90508015611e75576000611d186116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d5057600080fd5b505afa158015611d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d889190612bd7565b6001600160a01b0388166000908152600260209081526040808320848452600181019092529091205491925090611dbf908461159f565b60008381526001830160209081526040808320939093556002840181528282206001600160a01b038b16835290522054611df9908461159f565b600083815260028301602090815260408083206001600160a01b038c1684529091529020558054611e2a9084611990565b8155604080516001600160a01b038981168252602082018690528a16917f5c2b394723f408a40a60335e24b71829642e35f350cebe2036a96a66e895ea98910160405180910390a250505b95945050505050565b6000611e8982612222565b509050611e94611933565b604051630ebad44b60e21b81526001600160a01b03868116600483015260248201869052604482018490529190911690633aeb512c90606401600060405180830381600087803b158015611ee757600080fd5b505af1158015611efb573d6000803e3d6000fd5b5050505050505050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d989060240161174c565b600080611f6283612222565b915091506000611f706116ff565b6001600160a01b0316633aa4add4846040518263ffffffff1660e01b8152600401611f9d91815260200190565b60206040518083038186803b158015611fb557600080fd5b505afa158015611fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fed9190612bd7565b9050806120545760405162461bcd60e51b815260206004820152602f60248201527f7469636b6574206372656174696f6e526f756e6420646f6573206e6f7420686160448201526e0ecca40c240c4d8dec6d640d0c2e6d608b1b606482015260840161048e565b8082146120c95760405162461bcd60e51b815260206004820152603760248201527f7469636b6574206372656174696f6e526f756e64426c6f636b4861736820696e60448201527f76616c696420666f72206372656174696f6e526f756e64000000000000000000606482015260840161048e565b60006120d36116ff565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561210b57600080fd5b505afa15801561211f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121439190612bd7565b90508061215b6006548661159f90919063ffffffff16565b1161219c5760405162461bcd60e51b81526020600482015260116024820152701d1a58dad95d081a5cc8195e1c1a5c9959607a1b604482015260640161048e565b5050505050565b6000806121b86121b2846122a3565b856122de565b90506001600160a01b03811615801590611e755750806001600160a01b0316856001600160a01b03161495945050505050565b6000818484604051602001612201929190612e54565b60408051601f19818403018152919052805160209091012010949350505050565b60008082516040146122925760405162461bcd60e51b815260206004820152603360248201527f696e76616c6964206c656e67746820666f72207469636b657420617578446174604482015272613a206d75737420626520363420627974657360681b606482015260840161048e565b505060208101516040909101519091565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610e80565b60008060006122ed8585612302565b915091506122fa81612372565b509392505050565b6000808251604114156123395760208301516040840151606085015160001a61232d8782858561252d565b9450945050505061236b565b825160401415612363576020830151604084015161235886838361261a565b93509350505061236b565b506000905060025b9250929050565b600081600481111561238657612386612e76565b141561238f5750565b60018160048111156123a3576123a3612e76565b14156123f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048e565b600281600481111561240557612405612e76565b14156124535760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048e565b600381600481111561246757612467612e76565b14156124c05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161048e565b60048160048111156124d4576124d4612e76565b1415610ec05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161048e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125645750600090506003612611565b8460ff16601b1415801561257c57508460ff16601c14155b1561258d5750600090506004612611565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156125e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661260a57600060019250925050612611565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161263b8782888561252d565b935093505050935093915050565b6001600160a01b0381168114610ec057600080fd5b803561266981612649565b919050565b60006020828403121561268057600080fd5b813561043981612649565b60006020828403121561269d57600080fd5b5035919050565b600080604083850312156126b757600080fd5b82356126c281612649565b915060208301356126d281612649565b809150509250929050565b600080604083850312156126f057600080fd5b50508035926020909101359150565b8151815260208083015190820152604081016106e9565b60008060006060848603121561272b57600080fd5b833561273681612649565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156127845761278461274b565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156127b3576127b361274b565b604052919050565b600082601f8301126127cc57600080fd5b813567ffffffffffffffff8111156127e6576127e661274b565b6127f9601f8201601f191660200161278a565b81815284602083860101111561280e57600080fd5b816020850160208301376000918101602001919091529392505050565b600060e0828403121561283d57600080fd5b612845612761565b90506128508261265e565b815261285e6020830161265e565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013567ffffffffffffffff8111156128a557600080fd5b6128b1848285016127bb565b60c08301525092915050565b6000602082840312156128cf57600080fd5b813567ffffffffffffffff8111156128e657600080fd5b6128f28482850161282b565b949350505050565b600067ffffffffffffffff8211156129145761291461274b565b5060051b60200190565b600082601f83011261292f57600080fd5b8135602061294461293f836128fa565b61278a565b82815260059290921b8401810191818101908684111561296357600080fd5b8286015b848110156129a357803567ffffffffffffffff8111156129875760008081fd5b6129958986838b01016127bb565b845250918301918301612967565b509695505050505050565b600082601f8301126129bf57600080fd5b813560206129cf61293f836128fa565b82815260059290921b840181019181810190868411156129ee57600080fd5b8286015b848110156129a357803583529183019183016129f2565b600080600060608486031215612a1e57600080fd5b833567ffffffffffffffff80821115612a3657600080fd5b818601915086601f830112612a4a57600080fd5b81356020612a5a61293f836128fa565b82815260059290921b8401810191818101908a841115612a7957600080fd5b8286015b84811015612ab157803586811115612a955760008081fd5b612aa38d86838b010161282b565b845250918301918301612a7d565b5097505087013592505080821115612ac857600080fd5b612ad48783880161291e565b93506040860135915080821115612aea57600080fd5b50612af7868287016129ae565b9150509250925092565b825181526020808401518183015282516040830152820151606082015260808101610439565b600080600060608486031215612b3c57600080fd5b833567ffffffffffffffff80821115612b5457600080fd5b612b608783880161282b565b94506020860135915080821115612b7657600080fd5b50612b83868287016127bb565b925050604084013590509250925092565b60208082526023908201527f73656e646572206465706f73697420616e64207265736572766520617265207a60408201526265726f60e81b606082015260800190565b600060208284031215612be957600080fd5b5051919050565b600060208284031215612c0257600080fd5b8151801515811461043957600080fd5b60005b83811015612c2d578181015183820152602001612c15565b838111156110cc5750506000910152565b60006bffffffffffffffffffffffff19808a60601b168352808960601b166014840152508660288301528560488301528460688301528360888301528251612c8d8160a8850160208701612c12565b9190910160a80198975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ce057612ce0612cb6565b5060010190565b60008151808452612cff816020860160208601612c12565b601f01601f19169290920160200192915050565b85815284602082015283604082015282606082015260a060808201526000610ac760a0830184612ce7565b60008219821115612d5157612d51612cb6565b500190565b600060208284031215612d6857600080fd5b815161043981612649565b600082612d9057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612da757612da7612cb6565b500390565b60608152600060018060a01b0380865116606084015280602087015116608084015250604085015160a0830152606085015160c0830152608085015160e083015260a085015161010083015260c085015160e0610120840152612e13610140840182612ce7565b90508281036020840152612e278186612ce7565b915050826040830152949350505050565b60008251612e4a818460208701612c12565b9190910192915050565b60008351612e66818460208801612c12565b9190910191825250602001919050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122039ff1a1f689899210b80919adb3cf06775169e17291ef7e3b4278f644bf67bf264736f6c63430008090033", - "devdoc": { - "kind": "dev", - "methods": { - "batchRedeemWinningTickets((address,address,uint256,uint256,uint256,bytes32,bytes)[],bytes[],uint256[])": { - "params": { - "_recipientRands": "Array of preimages for the recipientRandHash included in each ticket (`_recipientRands[i]` corresponds to `_tickets[i]`)", - "_sigs": "Array of sender signatures over the hash of tickets (`_sigs[i]` corresponds to `_tickets[i]`)", - "_tickets": "Array of winning tickets to be redeemed in order to claim payment" - } - }, - "claimableReserve(address,address)": { - "details": "Returns the amount of funds claimable by a claimant from a reserve in the current round", - "params": { - "_claimant": "Address of claimant", - "_reserveHolder": "Address of reserve holder" - }, - "returns": { - "_0": "Amount of funds claimable by `_claimant` from the reserve for `_reserveHolder` in the current round" - } - }, - "claimedReserve(address,address)": { - "details": "Returns the amount of funds claimed by a claimant from a reserve in the current round", - "params": { - "_claimant": "Address of claimant", - "_reserveHolder": "Address of reserve holder" - }, - "returns": { - "_0": "Amount of funds claimed by `_claimant` from the reserve for `_reserveHolder` in the current round" - } - }, - "constructor": { - "details": "This constructor will not initialize any state variables besides `controller`. The following setter functions should be used to initialize state variables post-deployment: - setUnlockPeriod() - setTicketValidityPeriod()", - "params": { - "_controller": "Address of Controller that this contract will be registered with" - } - }, - "fundDepositAndReserve(uint256,uint256)": { - "params": { - "_depositAmount": "Amount of ETH to add to the caller's deposit", - "_reserveAmount": "Amount of ETH to add to the caller's reserve" - } - }, - "fundDepositAndReserveFor(address,uint256,uint256)": { - "params": { - "_depositAmount": "Amount of ETH to add to the address' deposit", - "_reserveAmount": "Amount of ETH to add to the address' reserve" - } - }, - "getReserveInfo(address)": { - "details": "Returns info about a reserve", - "params": { - "_reserveHolder": "Address of reserve holder" - }, - "returns": { - "info": "Info about the reserve for `_reserveHolder`" - } - }, - "getSenderInfo(address)": { - "params": { - "_sender": "Address of sender" - }, - "returns": { - "reserve": "Info about the reserve for `_sender`", - "sender": "Info about the sender for `_sender`" - } - }, - "getTicketHash((address,address,uint256,uint256,uint256,bytes32,bytes))": { - "details": "Returns the hash of a ticket", - "params": { - "_ticket": "Ticket to be hashed" - }, - "returns": { - "_0": "keccak256 hash of `_ticket`" - } - }, - "isUnlockInProgress(address)": { - "params": { - "_sender": "Address of sender" - }, - "returns": { - "_0": "Boolean indicating whether `_sender` has an unlock in progress" - } - }, - "redeemWinningTicket((address,address,uint256,uint256,uint256,bytes32,bytes),bytes,uint256)": { - "params": { - "_recipientRand": "The preimage for the recipientRandHash included in `_ticket`", - "_sig": "Sender's signature over the hash of `_ticket`", - "_ticket": "Winning ticket to be redeemed in order to claim payment" - } - }, - "setController(address)": { - "params": { - "_controller": "Controller contract address" - } - }, - "setTicketValidityPeriod(uint256)": { - "params": { - "_ticketValidityPeriod": "Value for ticketValidityPeriod" - } - }, - "setUnlockPeriod(uint256)": { - "params": { - "_unlockPeriod": "Value for unlockPeriod" - } - } - }, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "batchRedeemWinningTickets((address,address,uint256,uint256,uint256,bytes32,bytes)[],bytes[],uint256[])": { - "notice": "Redeems multiple winning tickets. The function will redeem all of the provided tickets and handle any failures gracefully without reverting the entire function" - }, - "cancelUnlock()": { - "notice": "Cancels the unlock period for the caller" - }, - "constructor": { - "notice": "TicketBroker constructor. Only invokes constructor of base Manager contract with provided Controller address" - }, - "fundDeposit()": { - "notice": "Adds ETH to the caller's deposit" - }, - "fundDepositAndReserve(uint256,uint256)": { - "notice": "Adds ETH to the caller's deposit and reserve" - }, - "fundDepositAndReserveFor(address,uint256,uint256)": { - "notice": "Adds ETH to the address' deposit and reserve" - }, - "fundReserve()": { - "notice": "Adds ETH to the caller's reserve" - }, - "getSenderInfo(address)": { - "notice": "Returns info about a sender" - }, - "isUnlockInProgress(address)": { - "notice": "Returns whether a sender is currently in the unlock period" - }, - "redeemWinningTicket((address,address,uint256,uint256,uint256,bytes32,bytes),bytes,uint256)": { - "notice": "Redeems a winning ticket that has been signed by a sender and reveals the recipient recipientRand that corresponds to the recipientRandHash included in the ticket" - }, - "setController(address)": { - "notice": "Set controller. Only callable by current controller" - }, - "setTicketValidityPeriod(uint256)": { - "notice": "Sets ticketValidityPeriod value. Only callable by the Controller owner" - }, - "setUnlockPeriod(uint256)": { - "notice": "Sets unlockPeriod value. Only callable by the Controller owner" - }, - "unlock()": { - "notice": "Initiates the unlock period for the caller" - }, - "withdraw()": { - "notice": "Withdraws all ETH from the caller's deposit and reserve" - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2670, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "controller", - "offset": 0, - "slot": "0", - "type": "t_contract(IController)2645" - }, - { - "astId": 2852, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "targetContractId", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - }, - { - "astId": 8525, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "reserves", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_struct(Reserve)8520_storage)" - }, - { - "astId": 8849, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "senders", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_struct(Sender)8844_storage)" - }, - { - "astId": 8851, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "unlockPeriod", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 8855, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "usedTickets", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bool)" - }, - { - "astId": 9644, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "ticketValidityPeriod", - "offset": 0, - "slot": "6", - "type": "t_uint256" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_contract(IController)2645": { - "encoding": "inplace", - "label": "contract IController", - "numberOfBytes": "20" - }, - "t_mapping(t_address,t_struct(Reserve)8520_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => struct MixinReserve.Reserve)", - "numberOfBytes": "32", - "value": "t_struct(Reserve)8520_storage" - }, - "t_mapping(t_address,t_struct(Sender)8844_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => struct MixinTicketBrokerCore.Sender)", - "numberOfBytes": "32", - "value": "t_struct(Sender)8844_storage" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bool)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_uint256,t_mapping(t_address,t_uint256))": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => mapping(address => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_address,t_uint256)" - }, - "t_mapping(t_uint256,t_uint256)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_struct(Reserve)8520_storage": { - "encoding": "inplace", - "label": "struct MixinReserve.Reserve", - "members": [ - { - "astId": 8509, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "funds", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 8513, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "claimedForRound", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_uint256,t_uint256)" - }, - { - "astId": 8519, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "claimedByAddress", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_uint256,t_mapping(t_address,t_uint256))" - } - ], - "numberOfBytes": "96" - }, - "t_struct(Sender)8844_storage": { - "encoding": "inplace", - "label": "struct MixinTicketBrokerCore.Sender", - "members": [ - { - "astId": 8841, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "deposit", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 8843, - "contract": "contracts/pm/TicketBroker.sol:TicketBroker", - "label": "withdrawRound", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} \ No newline at end of file + "bytecode": "0x60806040523480156200001157600080fd5b5060405162002f0338038062002f0383398101604081905262000034916200005a565b600080546001600160a01b0319166001600160a01b03929092169190911790556200008c565b6000602082840312156200006d57600080fd5b81516001600160a01b03811681146200008557600080fd5b9392505050565b612e67806200009c6000396000f3fe6080604052600436106101405760003560e01c806381779f38116100b6578063c2c4c2c81161006f578063c2c4c2c814610329578063c92978081461033e578063d01b808e1461035e578063e1a589da1461037e578063ec8b3cb6146103ac578063f77c4791146103cc57600080fd5b806381779f381461028b578063856a2cf8146102ab57806392eefe9b146102c1578063989f789c146102e1578063a69df4b5146102f4578063b03fa8641461030957600080fd5b8063511f407311610108578063511f4073146101f557806351720b411461020857806359a515ba1461021e5780635b6333eb1461024e5780636caa736b1461027b5780636f9c3c8f1461028357600080fd5b8063121cdcc21461014557806320d3a0b41461017a5780633ccfd60b1461019e5780633d0ddf84146101b55780634ac826da146101d5575b600080fd5b34801561015157600080fd5b50610165610160366004612613565b610404565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061019060045481565b604051908152602001610171565b3480156101aa57600080fd5b506101b3610440565b005b3480156101c157600080fd5b506101b36101d0366004612630565b6105c6565b3480156101e157600080fd5b506101906101f0366004612649565b61062d565b6101b3610203366004612682565b6106ef565b34801561021457600080fd5b5061019060015481565b34801561022a57600080fd5b50610165610239366004612630565b60056020526000908152604090205460ff1681565b34801561025a57600080fd5b5061026e610269366004612613565b6106fe565b60405161017191906126a4565b6101b36107cc565b6101b3610878565b34801561029757600080fd5b506101906102a6366004612649565b6108e9565b3480156102b757600080fd5b5061019060065481565b3480156102cd57600080fd5b506101b36102dc366004612613565b610afe565b6101b36102ef3660046126bb565b610b54565b34801561030057600080fd5b506101b3610d0f565b34801561031557600080fd5b50610190610324366004612862565b610ea3565b34801561033557600080fd5b506101b3610ef5565b34801561034a57600080fd5b506101b3610359366004612630565b610f1b565b34801561036a57600080fd5b506101b36103793660046129ae565b610fe3565b34801561038a57600080fd5b5061039e610399366004612613565b61112a565b604051610171929190612aa6565b3480156103b857600080fd5b506101b36103c7366004612acc565b61118b565b3480156103d857600080fd5b506000546103ec906001600160a01b031681565b6040516001600160a01b039091168152602001610171565b6001600160a01b0381166000908152600360209081526040808320815180830190925280548252600101549181018290529015155b9392505050565b61044861149d565b33600090815260036020908152604080832080546002909352922054811515806104725750600081115b6104975760405162461bcd60e51b815260040161048e90612b39565b60405180910390fd5b6040805180820190915283548152600184015460209091018190526104fe5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b60408051808201909152835481526001840154602082015261051f90611563565b156105605760405162461bcd60e51b81526020600482015260116024820152701858d8dbdd5b9d081a5cc81b1bd8dad959607a1b604482015260640161048e565b6000808455338152600260205260408120556105853361058084846115f7565b611603565b604080518381526020810183905233917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb91015b60405180910390a2505050565b6105ce611673565b60048190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252600c908201526b1d5b9b1bd8dad4195c9a5bd960a21b604082015260600190565b60405180910390a150565b6001600160a01b03821660009081526002602052604081208161064e611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561068657600080fd5b505afa15801561069a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106be9190612b7c565b60009081526002909201602090815260408084206001600160a01b0387168552909152909120549150505b92915050565b6106fa338383610b54565b5050565b604080518082018252600080825260208083018290526001600160a01b038516808352600280835294832080548552908352939052909160010190610741611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561077957600080fd5b505afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190612b7c565b81526020808201929092526040016000205490820152919050565b6107d461149d565b33600081815260036020526040902080543491906107f290836115f7565b8155336001600160a01b038416148015610825575060408051808201909152815481526001820154602090910181905215155b156108345761083481846117f9565b61083d3461189e565b826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f836040516105b991815260200190565b61088061149d565b336000818152600360205260409020349061089b8383611919565b336001600160a01b0384161480156108cc575060408051808201909152815481526001820154602090910181905215155b156108db576108db81846117f9565b6108e43461189e565b505050565b6001600160a01b03821660009081526002602052604081208161090a611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561094257600080fd5b505afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a9190612b7c565b905061098461198b565b60405163022008dd60e21b81526001600160a01b038681166004830152919091169063088023749060240160206040518083038186803b1580156109c757600080fd5b505afa1580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190612b95565b610a0e576000925050506106e9565b6000610a1861198b565b6001600160a01b0316632a4e0d556040518163ffffffff1660e01b815260040160206040518083038186803b158015610a5057600080fd5b505afa158015610a64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a889190612b7c565b905080610a9b57600093505050506106e9565b60008281526001840160205260408120548454610ab7916115f7565b600084815260028601602090815260408083206001600160a01b038b168452909152902054909150610af390610aed83856119dc565b906119e8565b979650505050505050565b610b066119f4565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610622565b610b5c61149d565b8181610b6882826115f7565b3414610be65760405162461bcd60e51b815260206004820152604160248201527f6d73672e76616c756520646f6573206e6f7420657175616c2073756d206f662060448201527f6465706f73697420616d6f756e7420616e64207265736572766520616d6f756e6064820152601d60fa1b608482015260a40161048e565b6001600160a01b0385166000908152600360205260409020805486918691610c0e90836115f7565b8155336001600160a01b038416148015610c41575060408051808201909152815481526001820154602090910181905215155b15610c5057610c5081846117f9565b6001600160a01b038816600090815260036020526040902088908790610c768383611919565b336001600160a01b038416148015610ca7575060408051808201909152815481526001820154602090910181905215155b15610cb657610cb681846117f9565b610cbf3461189e565b505050826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f83604051610cfd91815260200190565b60405180910390a25050505050505050565b610d1761149d565b3360009081526003602052604090208054151580610d42575033600090815260026020526040812054115b610d5e5760405162461bcd60e51b815260040161048e90612b39565b60408051808201909152815481526001820154602090910181905215610dc65760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b20616c726561647920696e697469617465640000000000000000604482015260640161048e565b6000610dd0611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e0857600080fd5b505afa158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e409190612b7c565b9050610e57600454826115f790919063ffffffff16565b6001830181905560405133917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c200491610e9791858252602082015260400190565b60405180910390a25050565b80516020808301516040808501516060860151608087015160a088015160c08901519451600098610ed8989097969101612be3565b604051602081830303815290604052805190602001209050919050565b610efd61149d565b33600081815260036020526040902090610f189082906117f9565b50565b610f23611673565b60008111610f875760405162461bcd60e51b815260206004820152602b60248201527f7469636b657456616c6964697479506572696f64206d7573742062652067726560448201526a061746572207468616e20360ac1b606482015260840161048e565b60068190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252601490820152731d1a58dad95d15985b1a591a5d1e54195c9a5bd960621b604082015260600190565b610feb61149d565b610ff3611757565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561102b57600080fd5b505afa15801561103f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110639190612b95565b6110af5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b60005b8351811015611124576111118482815181106110d0576110d0612c45565b60200260200101518483815181106110ea576110ea612c45565b602002602001015184848151811061110457611104612c45565b6020026020010151611a4e565b508061111c81612c71565b9150506110b2565b50505050565b60408051808201825260008082526020918201819052825180840184528181528083018290526001600160a01b038516825260038352908390208351808501909452805484526001015491830191909152611184836106fe565b9050915091565b61119361149d565b61119b611757565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d357600080fd5b505afa1580156111e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120b9190612b95565b6112575760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b600061126284610ea3565b905061127084828585611aef565b6020808501516001600160a01b03166000908152600382526040908190208151808301909252805482526001810154928201929092526112af90611563565b6112f05760405162461bcd60e51b81526020600482015260126024820152711cd95b99195c881a5cc81d5b9b1bd8dad95960721b604482015260640161048e565b80541515806113215750600061131f86602001516001600160a01b031660009081526002602052604090205490565b115b61133d5760405162461bcd60e51b815260040161048e90612b39565b600082815260056020526040808220805460ff1916600117905582549087015111156113a65761139b6113938760200151886000015161138e86600001548b604001516119e890919063ffffffff16565b611d3e565b8354906115f7565b6000835590506113bb565b50604085015181546113b890826119e8565b82555b801561142a576113d48660000151828860c00151611ed6565b85600001516001600160a01b031686602001516001600160a01b03167f8b87351a208c06e3ceee59d80725fd77a23b4129e1b51ca231fc89b40712649c8360405161142191815260200190565b60405180910390a35b85600001516001600160a01b031686602001516001600160a01b03167fc389eb51ed006dbf2528507f010efdf5225ea596e1e1741d74f550dab1925ee7886040015189606001518a60800151898c60c0015160405161148d959493929190612cb8565b60405180910390a3505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e957600080fd5b505afa1580156114fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115219190612b95565b156115615760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b604482015260640161048e565b565b60008160200151600014806106e957508160200151611580611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115b857600080fd5b505afa1580156115cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f09190612b7c565b1092915050565b60006104398284612ce3565b61160b611f5d565b6040516320283da960e01b81526001600160a01b0384811660048301526024820184905291909116906320283da990604401600060405180830381600087803b15801561165757600080fd5b505af115801561166b573d6000803e3d6000fd5b505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116bf57600080fd5b505afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612cfb565b6001600160a01b0316336001600160a01b0316146115615760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e657200604482015260640161048e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b1580156117bc57600080fd5b505afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f49190612cfb565b905090565b6040805180820190915282548152600183015460209091018190526118605760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b6000600183018190556040516001600160a01b038316917ffa044b7b93a40365dc68049797c2eb06918523d694e5d56e406cac3eb35578e591a25050565b6118a6611f5d565b6001600160a01b031663f6326fb3826040518263ffffffff1660e01b81526004016020604051808303818588803b1580156118e057600080fd5b505af11580156118f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106fa9190612b95565b6001600160a01b03821660009081526002602052604090205461193c90826115f7565b6001600160a01b038316600081815260026020526040908190209290925590517fb52b99b9e83551fcbd069b559cc3e823e2a1a3bad8ece46561ea77524394c85090610e979084815260200190565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024016117a4565b60006104398284612d18565b60006104398284612d3a565b6000546001600160a01b031633146115615760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c657200000000000000604482015260640161048e565b600080848484604051602401611a6693929190612d51565b60408051601f198184030181529181526020820180516001600160e01b03166376459e5b60e11b179052519091503090611aa1908390612ddd565b6000604051808303816000865af19150503d8060008114611ade576040519150601f19603f3d011682016040523d82523d6000602084013e611ae3565b606091505b50909695505050505050565b83516001600160a01b0316611b465760405162461bcd60e51b815260206004820181905260248201527f7469636b657420726563697069656e74206973206e756c6c2061646472657373604482015260640161048e565b60208401516001600160a01b0316611ba05760405162461bcd60e51b815260206004820152601d60248201527f7469636b65742073656e646572206973206e756c6c2061646472657373000000604482015260640161048e565b611bad8460c00151611fae565b60a08401516040805160208101849052016040516020818303038152906040528051906020012014611c385760405162461bcd60e51b815260206004820152602e60248201527f726563697069656e7452616e6420646f6573206e6f74206d617463682072656360448201526d0d2e0d2cadce8a4c2dcc890c2e6d60931b606482015260840161048e565b60008381526005602052604090205460ff1615611c885760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d081a5cc81d5cd95960921b604482015260640161048e565b611c97846020015183856121fb565b611cee5760405162461bcd60e51b815260206004820152602260248201527f696e76616c6964207369676e6174757265206f766572207469636b65742068616044820152610e6d60f31b606482015260840161048e565b611cfd828286606001516122ba565b6111245760405162461bcd60e51b81526020600482015260126024820152713a34b1b5b2ba103234b2103737ba103bb4b760711b604482015260640161048e565b600080611d4b85856108e9565b90506000818411611d5c5783611d5e565b815b90508015611ecd576000611d70611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611da857600080fd5b505afa158015611dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de09190612b7c565b6001600160a01b0388166000908152600260209081526040808320848452600181019092529091205491925090611e1790846115f7565b60008381526001830160209081526040808320939093556002840181528282206001600160a01b038b16835290522054611e5190846115f7565b600083815260028301602090815260408083206001600160a01b038c1684529091529020558054611e8290846119e8565b8155604080516001600160a01b038981168252602082018690528a16917f5c2b394723f408a40a60335e24b71829642e35f350cebe2036a96a66e895ea98910160405180910390a250505b95945050505050565b6000611ee1826122f1565b509050611eec61198b565b604051630ebad44b60e21b81526001600160a01b03868116600483015260248201869052604482018490529190911690633aeb512c90606401600060405180830381600087803b158015611f3f57600080fd5b505af1158015611f53573d6000803e3d6000fd5b5050505050505050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d98906024016117a4565b600080611fba836122f1565b915091506000611fc8611757565b6001600160a01b0316633aa4add4846040518263ffffffff1660e01b8152600401611ff591815260200190565b60206040518083038186803b15801561200d57600080fd5b505afa158015612021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120459190612b7c565b9050806120ac5760405162461bcd60e51b815260206004820152602f60248201527f7469636b6574206372656174696f6e526f756e6420646f6573206e6f7420686160448201526e0ecca40c240c4d8dec6d640d0c2e6d608b1b606482015260840161048e565b8082146121215760405162461bcd60e51b815260206004820152603760248201527f7469636b6574206372656174696f6e526f756e64426c6f636b4861736820696e60448201527f76616c696420666f72206372656174696f6e526f756e64000000000000000000606482015260840161048e565b600061212b611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561216357600080fd5b505afa158015612177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219b9190612b7c565b9050806121b3600654866115f790919063ffffffff16565b116121f45760405162461bcd60e51b81526020600482015260116024820152701d1a58dad95d081a5cc8195e1c1a5c9959607a1b604482015260640161048e565b5050505050565b6000825160411461224e5760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f5349474e41545552455f4c454e4754480000000000000000604482015260640161048e565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c839052603c81206122879085612372565b90506001600160a01b03811615801590611ecd5750806001600160a01b0316856001600160a01b03161495945050505050565b60008184846040516020016122d0929190612df9565b60408051601f19818403018152919052805160209091012010949350505050565b60008082516040146123615760405162461bcd60e51b815260206004820152603360248201527f696e76616c6964206c656e67746820666f72207469636b657420617578446174604482015272613a206d75737420626520363420627974657360681b606482015260840161048e565b505060208101516040909101519091565b60008060006123818585612396565b9150915061238e816123dc565b509392505050565b6000808251604114156123cd5760208301516040840151606085015160001a6123c18782858561252a565b945094505050506123d5565b506000905060025b9250929050565b60008160048111156123f0576123f0612e1b565b14156123f95750565b600181600481111561240d5761240d612e1b565b141561245b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048e565b600281600481111561246f5761246f612e1b565b14156124bd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048e565b60038160048111156124d1576124d1612e1b565b1415610f185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161048e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561256157506000905060036125e5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156125b5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125de576000600192509250506125e5565b9150600090505b94509492505050565b6001600160a01b0381168114610f1857600080fd5b803561260e816125ee565b919050565b60006020828403121561262557600080fd5b8135610439816125ee565b60006020828403121561264257600080fd5b5035919050565b6000806040838503121561265c57600080fd5b8235612667816125ee565b91506020830135612677816125ee565b809150509250929050565b6000806040838503121561269557600080fd5b50508035926020909101359150565b8151815260208083015190820152604081016106e9565b6000806000606084860312156126d057600080fd5b83356126db816125ee565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715612729576127296126f0565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612758576127586126f0565b604052919050565b600082601f83011261277157600080fd5b813567ffffffffffffffff81111561278b5761278b6126f0565b61279e601f8201601f191660200161272f565b8181528460208386010111156127b357600080fd5b816020850160208301376000918101602001919091529392505050565b600060e082840312156127e257600080fd5b6127ea612706565b90506127f582612603565b815261280360208301612603565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013567ffffffffffffffff81111561284a57600080fd5b61285684828501612760565b60c08301525092915050565b60006020828403121561287457600080fd5b813567ffffffffffffffff81111561288b57600080fd5b612897848285016127d0565b949350505050565b600067ffffffffffffffff8211156128b9576128b96126f0565b5060051b60200190565b600082601f8301126128d457600080fd5b813560206128e96128e48361289f565b61272f565b82815260059290921b8401810191818101908684111561290857600080fd5b8286015b8481101561294857803567ffffffffffffffff81111561292c5760008081fd5b61293a8986838b0101612760565b84525091830191830161290c565b509695505050505050565b600082601f83011261296457600080fd5b813560206129746128e48361289f565b82815260059290921b8401810191818101908684111561299357600080fd5b8286015b848110156129485780358352918301918301612997565b6000806000606084860312156129c357600080fd5b833567ffffffffffffffff808211156129db57600080fd5b818601915086601f8301126129ef57600080fd5b813560206129ff6128e48361289f565b82815260059290921b8401810191818101908a841115612a1e57600080fd5b8286015b84811015612a5657803586811115612a3a5760008081fd5b612a488d86838b01016127d0565b845250918301918301612a22565b5097505087013592505080821115612a6d57600080fd5b612a79878388016128c3565b93506040860135915080821115612a8f57600080fd5b50612a9c86828701612953565b9150509250925092565b825181526020808401518183015282516040830152820151606082015260808101610439565b600080600060608486031215612ae157600080fd5b833567ffffffffffffffff80821115612af957600080fd5b612b05878388016127d0565b94506020860135915080821115612b1b57600080fd5b50612b2886828701612760565b925050604084013590509250925092565b60208082526023908201527f73656e646572206465706f73697420616e64207265736572766520617265207a60408201526265726f60e81b606082015260800190565b600060208284031215612b8e57600080fd5b5051919050565b600060208284031215612ba757600080fd5b8151801515811461043957600080fd5b60005b83811015612bd2578181015183820152602001612bba565b838111156111245750506000910152565b60006bffffffffffffffffffffffff19808a60601b168352808960601b166014840152508660288301528560488301528460688301528360888301528251612c328160a8850160208701612bb7565b9190910160a80198975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c8557612c85612c5b565b5060010190565b60008151808452612ca4816020860160208601612bb7565b601f01601f19169290920160200192915050565b85815284602082015283604082015282606082015260a060808201526000610af360a0830184612c8c565b60008219821115612cf657612cf6612c5b565b500190565b600060208284031215612d0d57600080fd5b8151610439816125ee565b600082612d3557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612d4c57612d4c612c5b565b500390565b60608152600060018060a01b0380865116606084015280602087015116608084015250604085015160a0830152606085015160c0830152608085015160e083015260a085015161010083015260c085015160e0610120840152612db8610140840182612c8c565b90508281036020840152612dcc8186612c8c565b915050826040830152949350505050565b60008251612def818460208701612bb7565b9190910192915050565b60008351612e0b818460208801612bb7565b9190910191825250602001919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220eda6dc8094b448759baad5d1a1f5a01c50c2978f51e51e2e9fbfaebbe39b798564736f6c63430008090033", + "deployedBytecode": "0x6080604052600436106101405760003560e01c806381779f38116100b6578063c2c4c2c81161006f578063c2c4c2c814610329578063c92978081461033e578063d01b808e1461035e578063e1a589da1461037e578063ec8b3cb6146103ac578063f77c4791146103cc57600080fd5b806381779f381461028b578063856a2cf8146102ab57806392eefe9b146102c1578063989f789c146102e1578063a69df4b5146102f4578063b03fa8641461030957600080fd5b8063511f407311610108578063511f4073146101f557806351720b411461020857806359a515ba1461021e5780635b6333eb1461024e5780636caa736b1461027b5780636f9c3c8f1461028357600080fd5b8063121cdcc21461014557806320d3a0b41461017a5780633ccfd60b1461019e5780633d0ddf84146101b55780634ac826da146101d5575b600080fd5b34801561015157600080fd5b50610165610160366004612613565b610404565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061019060045481565b604051908152602001610171565b3480156101aa57600080fd5b506101b3610440565b005b3480156101c157600080fd5b506101b36101d0366004612630565b6105c6565b3480156101e157600080fd5b506101906101f0366004612649565b61062d565b6101b3610203366004612682565b6106ef565b34801561021457600080fd5b5061019060015481565b34801561022a57600080fd5b50610165610239366004612630565b60056020526000908152604090205460ff1681565b34801561025a57600080fd5b5061026e610269366004612613565b6106fe565b60405161017191906126a4565b6101b36107cc565b6101b3610878565b34801561029757600080fd5b506101906102a6366004612649565b6108e9565b3480156102b757600080fd5b5061019060065481565b3480156102cd57600080fd5b506101b36102dc366004612613565b610afe565b6101b36102ef3660046126bb565b610b54565b34801561030057600080fd5b506101b3610d0f565b34801561031557600080fd5b50610190610324366004612862565b610ea3565b34801561033557600080fd5b506101b3610ef5565b34801561034a57600080fd5b506101b3610359366004612630565b610f1b565b34801561036a57600080fd5b506101b36103793660046129ae565b610fe3565b34801561038a57600080fd5b5061039e610399366004612613565b61112a565b604051610171929190612aa6565b3480156103b857600080fd5b506101b36103c7366004612acc565b61118b565b3480156103d857600080fd5b506000546103ec906001600160a01b031681565b6040516001600160a01b039091168152602001610171565b6001600160a01b0381166000908152600360209081526040808320815180830190925280548252600101549181018290529015155b9392505050565b61044861149d565b33600090815260036020908152604080832080546002909352922054811515806104725750600081115b6104975760405162461bcd60e51b815260040161048e90612b39565b60405180910390fd5b6040805180820190915283548152600184015460209091018190526104fe5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b60408051808201909152835481526001840154602082015261051f90611563565b156105605760405162461bcd60e51b81526020600482015260116024820152701858d8dbdd5b9d081a5cc81b1bd8dad959607a1b604482015260640161048e565b6000808455338152600260205260408120556105853361058084846115f7565b611603565b604080518381526020810183905233917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb91015b60405180910390a2505050565b6105ce611673565b60048190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252600c908201526b1d5b9b1bd8dad4195c9a5bd960a21b604082015260600190565b60405180910390a150565b6001600160a01b03821660009081526002602052604081208161064e611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561068657600080fd5b505afa15801561069a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106be9190612b7c565b60009081526002909201602090815260408084206001600160a01b0387168552909152909120549150505b92915050565b6106fa338383610b54565b5050565b604080518082018252600080825260208083018290526001600160a01b038516808352600280835294832080548552908352939052909160010190610741611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561077957600080fd5b505afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190612b7c565b81526020808201929092526040016000205490820152919050565b6107d461149d565b33600081815260036020526040902080543491906107f290836115f7565b8155336001600160a01b038416148015610825575060408051808201909152815481526001820154602090910181905215155b156108345761083481846117f9565b61083d3461189e565b826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f836040516105b991815260200190565b61088061149d565b336000818152600360205260409020349061089b8383611919565b336001600160a01b0384161480156108cc575060408051808201909152815481526001820154602090910181905215155b156108db576108db81846117f9565b6108e43461189e565b505050565b6001600160a01b03821660009081526002602052604081208161090a611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561094257600080fd5b505afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a9190612b7c565b905061098461198b565b60405163022008dd60e21b81526001600160a01b038681166004830152919091169063088023749060240160206040518083038186803b1580156109c757600080fd5b505afa1580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190612b95565b610a0e576000925050506106e9565b6000610a1861198b565b6001600160a01b0316632a4e0d556040518163ffffffff1660e01b815260040160206040518083038186803b158015610a5057600080fd5b505afa158015610a64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a889190612b7c565b905080610a9b57600093505050506106e9565b60008281526001840160205260408120548454610ab7916115f7565b600084815260028601602090815260408083206001600160a01b038b168452909152902054909150610af390610aed83856119dc565b906119e8565b979650505050505050565b610b066119f4565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090602001610622565b610b5c61149d565b8181610b6882826115f7565b3414610be65760405162461bcd60e51b815260206004820152604160248201527f6d73672e76616c756520646f6573206e6f7420657175616c2073756d206f662060448201527f6465706f73697420616d6f756e7420616e64207265736572766520616d6f756e6064820152601d60fa1b608482015260a40161048e565b6001600160a01b0385166000908152600360205260409020805486918691610c0e90836115f7565b8155336001600160a01b038416148015610c41575060408051808201909152815481526001820154602090910181905215155b15610c5057610c5081846117f9565b6001600160a01b038816600090815260036020526040902088908790610c768383611919565b336001600160a01b038416148015610ca7575060408051808201909152815481526001820154602090910181905215155b15610cb657610cb681846117f9565b610cbf3461189e565b505050826001600160a01b03167f5159e237d952190e68d5215430f305831be7c9c8776d1377c76679ae4773413f83604051610cfd91815260200190565b60405180910390a25050505050505050565b610d1761149d565b3360009081526003602052604090208054151580610d42575033600090815260026020526040812054115b610d5e5760405162461bcd60e51b815260040161048e90612b39565b60408051808201909152815481526001820154602090910181905215610dc65760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b20616c726561647920696e697469617465640000000000000000604482015260640161048e565b6000610dd0611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e0857600080fd5b505afa158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e409190612b7c565b9050610e57600454826115f790919063ffffffff16565b6001830181905560405133917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c200491610e9791858252602082015260400190565b60405180910390a25050565b80516020808301516040808501516060860151608087015160a088015160c08901519451600098610ed8989097969101612be3565b604051602081830303815290604052805190602001209050919050565b610efd61149d565b33600081815260036020526040902090610f189082906117f9565b50565b610f23611673565b60008111610f875760405162461bcd60e51b815260206004820152602b60248201527f7469636b657456616c6964697479506572696f64206d7573742062652067726560448201526a061746572207468616e20360ac1b606482015260840161048e565b60068190556040517f9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd67490610622906020808252601490820152731d1a58dad95d15985b1a591a5d1e54195c9a5bd960621b604082015260600190565b610feb61149d565b610ff3611757565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561102b57600080fd5b505afa15801561103f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110639190612b95565b6110af5760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b60005b8351811015611124576111118482815181106110d0576110d0612c45565b60200260200101518483815181106110ea576110ea612c45565b602002602001015184848151811061110457611104612c45565b6020026020010151611a4e565b508061111c81612c71565b9150506110b2565b50505050565b60408051808201825260008082526020918201819052825180840184528181528083018290526001600160a01b038516825260038352908390208351808501909452805484526001015491830191909152611184836106fe565b9050915091565b61119361149d565b61119b611757565b6001600160a01b031663219bc76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d357600080fd5b505afa1580156111e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120b9190612b95565b6112575760405162461bcd60e51b815260206004820181905260248201527f63757272656e7420726f756e64206973206e6f7420696e697469616c697a6564604482015260640161048e565b600061126284610ea3565b905061127084828585611aef565b6020808501516001600160a01b03166000908152600382526040908190208151808301909252805482526001810154928201929092526112af90611563565b6112f05760405162461bcd60e51b81526020600482015260126024820152711cd95b99195c881a5cc81d5b9b1bd8dad95960721b604482015260640161048e565b80541515806113215750600061131f86602001516001600160a01b031660009081526002602052604090205490565b115b61133d5760405162461bcd60e51b815260040161048e90612b39565b600082815260056020526040808220805460ff1916600117905582549087015111156113a65761139b6113938760200151886000015161138e86600001548b604001516119e890919063ffffffff16565b611d3e565b8354906115f7565b6000835590506113bb565b50604085015181546113b890826119e8565b82555b801561142a576113d48660000151828860c00151611ed6565b85600001516001600160a01b031686602001516001600160a01b03167f8b87351a208c06e3ceee59d80725fd77a23b4129e1b51ca231fc89b40712649c8360405161142191815260200190565b60405180910390a35b85600001516001600160a01b031686602001516001600160a01b03167fc389eb51ed006dbf2528507f010efdf5225ea596e1e1741d74f550dab1925ee7886040015189606001518a60800151898c60c0015160405161148d959493929190612cb8565b60405180910390a3505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e957600080fd5b505afa1580156114fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115219190612b95565b156115615760405162461bcd60e51b815260206004820152601060248201526f1cde5cdd195b481a5cc81c185d5cd95960821b604482015260640161048e565b565b60008160200151600014806106e957508160200151611580611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115b857600080fd5b505afa1580156115cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f09190612b7c565b1092915050565b60006104398284612ce3565b61160b611f5d565b6040516320283da960e01b81526001600160a01b0384811660048301526024820184905291909116906320283da990604401600060405180830381600087803b15801561165757600080fd5b505af115801561166b573d6000803e3d6000fd5b505050505050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116bf57600080fd5b505afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612cfb565b6001600160a01b0316336001600160a01b0316146115615760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206d75737420626520436f6e74726f6c6c6572206f776e657200604482015260640161048e565b60008054604051631c2d8fb360e31b81527fe8438ea868df48e3fc21f2f087b993c9b1837dc0f6135064161ce7d7a1701fe860048201526001600160a01b039091169063e16c7d98906024015b60206040518083038186803b1580156117bc57600080fd5b505afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f49190612cfb565b905090565b6040805180820190915282548152600183015460209091018190526118605760405162461bcd60e51b815260206004820152601d60248201527f6e6f20756e6c6f636b207265717565737420696e2070726f6772657373000000604482015260640161048e565b6000600183018190556040516001600160a01b038316917ffa044b7b93a40365dc68049797c2eb06918523d694e5d56e406cac3eb35578e591a25050565b6118a6611f5d565b6001600160a01b031663f6326fb3826040518263ffffffff1660e01b81526004016020604051808303818588803b1580156118e057600080fd5b505af11580156118f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106fa9190612b95565b6001600160a01b03821660009081526002602052604090205461193c90826115f7565b6001600160a01b038316600081815260026020526040908190209290925590517fb52b99b9e83551fcbd069b559cc3e823e2a1a3bad8ece46561ea77524394c85090610e979084815260200190565b60008054604051631c2d8fb360e31b81527f2517d59a36a86548e38734e8ab416f42afff4bca78706a66ad65750dae7f9e3760048201526001600160a01b039091169063e16c7d98906024016117a4565b60006104398284612d18565b60006104398284612d3a565b6000546001600160a01b031633146115615760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206d75737420626520436f6e74726f6c6c657200000000000000604482015260640161048e565b600080848484604051602401611a6693929190612d51565b60408051601f198184030181529181526020820180516001600160e01b03166376459e5b60e11b179052519091503090611aa1908390612ddd565b6000604051808303816000865af19150503d8060008114611ade576040519150601f19603f3d011682016040523d82523d6000602084013e611ae3565b606091505b50909695505050505050565b83516001600160a01b0316611b465760405162461bcd60e51b815260206004820181905260248201527f7469636b657420726563697069656e74206973206e756c6c2061646472657373604482015260640161048e565b60208401516001600160a01b0316611ba05760405162461bcd60e51b815260206004820152601d60248201527f7469636b65742073656e646572206973206e756c6c2061646472657373000000604482015260640161048e565b611bad8460c00151611fae565b60a08401516040805160208101849052016040516020818303038152906040528051906020012014611c385760405162461bcd60e51b815260206004820152602e60248201527f726563697069656e7452616e6420646f6573206e6f74206d617463682072656360448201526d0d2e0d2cadce8a4c2dcc890c2e6d60931b606482015260840161048e565b60008381526005602052604090205460ff1615611c885760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d081a5cc81d5cd95960921b604482015260640161048e565b611c97846020015183856121fb565b611cee5760405162461bcd60e51b815260206004820152602260248201527f696e76616c6964207369676e6174757265206f766572207469636b65742068616044820152610e6d60f31b606482015260840161048e565b611cfd828286606001516122ba565b6111245760405162461bcd60e51b81526020600482015260126024820152713a34b1b5b2ba103234b2103737ba103bb4b760711b604482015260640161048e565b600080611d4b85856108e9565b90506000818411611d5c5783611d5e565b815b90508015611ecd576000611d70611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015611da857600080fd5b505afa158015611dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de09190612b7c565b6001600160a01b0388166000908152600260209081526040808320848452600181019092529091205491925090611e1790846115f7565b60008381526001830160209081526040808320939093556002840181528282206001600160a01b038b16835290522054611e5190846115f7565b600083815260028301602090815260408083206001600160a01b038c1684529091529020558054611e8290846119e8565b8155604080516001600160a01b038981168252602082018690528a16917f5c2b394723f408a40a60335e24b71829642e35f350cebe2036a96a66e895ea98910160405180910390a250505b95945050505050565b6000611ee1826122f1565b509050611eec61198b565b604051630ebad44b60e21b81526001600160a01b03868116600483015260248201869052604482018490529190911690633aeb512c90606401600060405180830381600087803b158015611f3f57600080fd5b505af1158015611f53573d6000803e3d6000fd5b5050505050505050565b60008054604051631c2d8fb360e31b81527f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994060048201526001600160a01b039091169063e16c7d98906024016117a4565b600080611fba836122f1565b915091506000611fc8611757565b6001600160a01b0316633aa4add4846040518263ffffffff1660e01b8152600401611ff591815260200190565b60206040518083038186803b15801561200d57600080fd5b505afa158015612021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120459190612b7c565b9050806120ac5760405162461bcd60e51b815260206004820152602f60248201527f7469636b6574206372656174696f6e526f756e6420646f6573206e6f7420686160448201526e0ecca40c240c4d8dec6d640d0c2e6d608b1b606482015260840161048e565b8082146121215760405162461bcd60e51b815260206004820152603760248201527f7469636b6574206372656174696f6e526f756e64426c6f636b4861736820696e60448201527f76616c696420666f72206372656174696f6e526f756e64000000000000000000606482015260840161048e565b600061212b611757565b6001600160a01b0316638a19c8bc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561216357600080fd5b505afa158015612177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219b9190612b7c565b9050806121b3600654866115f790919063ffffffff16565b116121f45760405162461bcd60e51b81526020600482015260116024820152701d1a58dad95d081a5cc8195e1c1a5c9959607a1b604482015260640161048e565b5050505050565b6000825160411461224e5760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f5349474e41545552455f4c454e4754480000000000000000604482015260640161048e565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c839052603c81206122879085612372565b90506001600160a01b03811615801590611ecd5750806001600160a01b0316856001600160a01b03161495945050505050565b60008184846040516020016122d0929190612df9565b60408051601f19818403018152919052805160209091012010949350505050565b60008082516040146123615760405162461bcd60e51b815260206004820152603360248201527f696e76616c6964206c656e67746820666f72207469636b657420617578446174604482015272613a206d75737420626520363420627974657360681b606482015260840161048e565b505060208101516040909101519091565b60008060006123818585612396565b9150915061238e816123dc565b509392505050565b6000808251604114156123cd5760208301516040840151606085015160001a6123c18782858561252a565b945094505050506123d5565b506000905060025b9250929050565b60008160048111156123f0576123f0612e1b565b14156123f95750565b600181600481111561240d5761240d612e1b565b141561245b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048e565b600281600481111561246f5761246f612e1b565b14156124bd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048e565b60038160048111156124d1576124d1612e1b565b1415610f185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161048e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561256157506000905060036125e5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156125b5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125de576000600192509250506125e5565b9150600090505b94509492505050565b6001600160a01b0381168114610f1857600080fd5b803561260e816125ee565b919050565b60006020828403121561262557600080fd5b8135610439816125ee565b60006020828403121561264257600080fd5b5035919050565b6000806040838503121561265c57600080fd5b8235612667816125ee565b91506020830135612677816125ee565b809150509250929050565b6000806040838503121561269557600080fd5b50508035926020909101359150565b8151815260208083015190820152604081016106e9565b6000806000606084860312156126d057600080fd5b83356126db816125ee565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715612729576127296126f0565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612758576127586126f0565b604052919050565b600082601f83011261277157600080fd5b813567ffffffffffffffff81111561278b5761278b6126f0565b61279e601f8201601f191660200161272f565b8181528460208386010111156127b357600080fd5b816020850160208301376000918101602001919091529392505050565b600060e082840312156127e257600080fd5b6127ea612706565b90506127f582612603565b815261280360208301612603565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013567ffffffffffffffff81111561284a57600080fd5b61285684828501612760565b60c08301525092915050565b60006020828403121561287457600080fd5b813567ffffffffffffffff81111561288b57600080fd5b612897848285016127d0565b949350505050565b600067ffffffffffffffff8211156128b9576128b96126f0565b5060051b60200190565b600082601f8301126128d457600080fd5b813560206128e96128e48361289f565b61272f565b82815260059290921b8401810191818101908684111561290857600080fd5b8286015b8481101561294857803567ffffffffffffffff81111561292c5760008081fd5b61293a8986838b0101612760565b84525091830191830161290c565b509695505050505050565b600082601f83011261296457600080fd5b813560206129746128e48361289f565b82815260059290921b8401810191818101908684111561299357600080fd5b8286015b848110156129485780358352918301918301612997565b6000806000606084860312156129c357600080fd5b833567ffffffffffffffff808211156129db57600080fd5b818601915086601f8301126129ef57600080fd5b813560206129ff6128e48361289f565b82815260059290921b8401810191818101908a841115612a1e57600080fd5b8286015b84811015612a5657803586811115612a3a5760008081fd5b612a488d86838b01016127d0565b845250918301918301612a22565b5097505087013592505080821115612a6d57600080fd5b612a79878388016128c3565b93506040860135915080821115612a8f57600080fd5b50612a9c86828701612953565b9150509250925092565b825181526020808401518183015282516040830152820151606082015260808101610439565b600080600060608486031215612ae157600080fd5b833567ffffffffffffffff80821115612af957600080fd5b612b05878388016127d0565b94506020860135915080821115612b1b57600080fd5b50612b2886828701612760565b925050604084013590509250925092565b60208082526023908201527f73656e646572206465706f73697420616e64207265736572766520617265207a60408201526265726f60e81b606082015260800190565b600060208284031215612b8e57600080fd5b5051919050565b600060208284031215612ba757600080fd5b8151801515811461043957600080fd5b60005b83811015612bd2578181015183820152602001612bba565b838111156111245750506000910152565b60006bffffffffffffffffffffffff19808a60601b168352808960601b166014840152508660288301528560488301528460688301528360888301528251612c328160a8850160208701612bb7565b9190910160a80198975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c8557612c85612c5b565b5060010190565b60008151808452612ca4816020860160208601612bb7565b601f01601f19169290920160200192915050565b85815284602082015283604082015282606082015260a060808201526000610af360a0830184612c8c565b60008219821115612cf657612cf6612c5b565b500190565b600060208284031215612d0d57600080fd5b8151610439816125ee565b600082612d3557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612d4c57612d4c612c5b565b500390565b60608152600060018060a01b0380865116606084015280602087015116608084015250604085015160a0830152606085015160c0830152608085015160e083015260a085015161010083015260c085015160e0610120840152612db8610140840182612c8c565b90508281036020840152612dcc8186612c8c565b915050826040830152949350505050565b60008251612def818460208701612bb7565b9190910192915050565b60008351612e0b818460208801612bb7565b9190910191825250602001919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220eda6dc8094b448759baad5d1a1f5a01c50c2978f51e51e2e9fbfaebbe39b798564736f6c63430008090033", + "linkReferences": {}, + "deployedLinkReferences": {} +}