[ { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "fromDelegate", "type": "address" }, { "indexed": true, "internalType": "address", "name": "toDelegate", "type": "address" } ], "name": "DelegateChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "delegate", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "previousBalance", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newBalance", "type": "uint256" } ], "name": "DelegateVotesChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "DELEGATION_TYPEHASH", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DOMAIN_TYPEHASH", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint32", "name": "", "type": "uint32" } ], "name": "checkpoints", "outputs": [ { "internalType": "uint32", "name": "fromBlock", "type": "uint32" }, { "internalType": "uint96", "name": "votes", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "delegatee", "type": "address" } ], "name": "delegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "delegatee", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "delegateBySig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "delegates", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "getCurrentVotes", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } ], "name": "getPriorVotes", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "nonces", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "numCheckpoints", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
608060405234801561001057600080fd5b506040516118f93803806118f983398101604081905261002f916100a5565b6001600160a01b03811660008181526001602052604080822080546001600160601b0319166a084595161401484a00000090811790915590517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916100979190815260200190565b60405180910390a3506100d5565b6000602082840312156100b757600080fd5b81516001600160a01b03811681146100ce57600080fd5b9392505050565b611815806100e46000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b4b5ea5711610071578063b4b5ea571461033a578063c3cda5201461034d578063dd62ed3e14610360578063e7a324dc146103a0578063f1127ed8146103c757600080fd5b806370a0823114610287578063782d6fe1146102b95780637ecebe00146102e457806395d89b4114610304578063a9059cbb1461032757600080fd5b806323b872dd116100f457806323b872dd146101c9578063313ce567146101dc578063587cde1e146101f65780635c19a95c146102375780636fcfff451461024c57600080fd5b806306fdde0314610126578063095ea7b31461015f57806318160ddd1461018257806320606b70146101a2575b600080fd5b6101496040518060400160405280600481526020016313195b9960e21b81525081565b60405161015691906113cf565b60405180910390f35b61017261016d366004611439565b61042e565b6040519015158152602001610156565b6101946a084595161401484a00000081565b604051908152602001610156565b6101947f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101726101d7366004611463565b6104ec565b6101e4601281565b60405160ff9091168152602001610156565b61021f61020436600461149f565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610156565b61024a61024536600461149f565b61062d565b005b61027261025a36600461149f565b60046020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610156565b61019461029536600461149f565b6001600160a01b03166000908152600160205260409020546001600160601b031690565b6102cc6102c7366004611439565b61063a565b6040516001600160601b039091168152602001610156565b6101946102f236600461149f565b60056020526000908152604090205481565b610149604051806040016040528060048152602001631311539160e21b81525081565b610172610335366004611439565b6108c9565b6102cc61034836600461149f565b610905565b61024a61035b3660046114ba565b610983565b61019461036e36600461151a565b6001600160a01b039182166000908152602081815260408083209390941682529190915220546001600160601b031690565b6101947fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61040a6103d536600461154d565b600360209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610156565b600080600019830361044857506001600160601b0361046d565b61046a836040518060600160405280602581526020016116dc60259139610c6b565b90505b336000818152602081815260408083206001600160a01b0389168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b6001600160a01b0383166000908152602081815260408083203380855290835281842054825160608101909352602580845291936001600160601b0390911692859261054292889291906116dc90830139610c6b565b9050866001600160a01b0316836001600160a01b03161415801561056f57506001600160601b0382811614155b1561061557600061059983836040518060600160405280603d815260200161166f603d9139610c9a565b6001600160a01b03898116600081815260208181526040808320948a168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b610620878783610ce4565b5060019695505050505050565b6106373382610f35565b50565b60004382106106a05760405162461bcd60e51b815260206004820152602760248201527f4c656e643a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084015b60405180910390fd5b6001600160a01b03831660009081526004602052604081205463ffffffff16908190036106d15760009150506104e6565b6001600160a01b038416600090815260036020526040812084916106f66001856115a3565b63ffffffff90811682526020820192909252604001600020541611610769576001600160a01b0384166000908152600360205260408120906107396001846115a3565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b031691506104e69050565b6001600160a01b038416600090815260036020908152604080832083805290915290205463ffffffff168310156107a45760009150506104e6565b6000806107b26001846115a3565b90505b8163ffffffff168163ffffffff16111561088457600060026107d784846115a3565b6107e191906115c7565b6107eb90836115a3565b6001600160a01b038816600090815260036020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250879003610858576020015194506104e69350505050565b805163ffffffff1687111561086f5781935061087d565b61087a6001836115a3565b92505b50506107b5565b506001600160a01b038516600090815260036020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b6000806108ee8360405180606001604052806026815260200161179260269139610c6b565b90506108fb338583610ce4565b5060019392505050565b6001600160a01b03811660009081526004602052604081205463ffffffff168061093057600061097c565b6001600160a01b0383166000908152600360205260408120906109546001846115a3565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b604080518082018252600481526313195b9960e21b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f8a47f590fe5f4bd18bb58c8254909c888417c7706a26812996fb2fe749518e8381840152466060820152306080808301919091528351808303909101815260a0820184528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08301526001600160a01b038a1660e083015261010082018990526101208083018990528451808403909101815261014083019094528351939092019290922061190160f01b6101608401526101628301829052610182830181905290916000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610b02573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610b745760405162461bcd60e51b815260206004820152602660248201527f4c656e643a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b6064820152608401610697565b6001600160a01b0381166000908152600560205260408120805491610b98836115f8565b919050558914610bf55760405162461bcd60e51b815260206004820152602260248201527f4c656e643a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b6064820152608401610697565b87421115610c545760405162461bcd60e51b815260206004820152602660248201527f4c656e643a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b6064820152608401610697565b610c5e818b610f35565b505050505b505050505050565b600081600160601b8410610c925760405162461bcd60e51b815260040161069791906113cf565b509192915050565b6000836001600160601b0316836001600160601b031611158290610cd15760405162461bcd60e51b815260040161069791906113cf565b50610cdc8385611611565b949350505050565b6001600160a01b038316610d605760405162461bcd60e51b815260206004820152603c60248201527f4c656e643a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e736665722066726f6d20746865207a65726f2061646472657373000000006064820152608401610697565b6001600160a01b038216610ddc5760405162461bcd60e51b815260206004820152603a60248201527f4c656e643a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e7366657220746f20746865207a65726f20616464726573730000000000006064820152608401610697565b6001600160a01b038316600090815260016020908152604091829020548251606081019093526036808452610e27936001600160601b03909216928592919061173590830139610c9a565b6001600160a01b03848116600090815260016020908152604080832080546001600160601b0319166001600160601b03968716179055928616825290829020548251606081019093526030808452610e8f94919091169285929091906116ac90830139610fbf565b6001600160a01b0383811660008181526001602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260026020526040808220548584168352912054610f309291821691168361100c565b505050565b6001600160a01b03808316600081815260026020818152604080842080546001845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610fb982848361100c565b50505050565b600080610fcc8486611631565b9050846001600160601b0316816001600160601b0316101583906110035760405162461bcd60e51b815260040161069791906113cf565b50949350505050565b816001600160a01b0316836001600160a01b03161415801561103757506000816001600160601b0316115b15610f30576001600160a01b038316156110fc576001600160a01b03831660009081526004602052604081205463ffffffff1690816110775760006110c3565b6001600160a01b03851660009081526003602052604081209061109b6001856115a3565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b905060006110ea82856040518060600160405280602881526020016117b860289139610c9a565b90506110f8868484846111b4565b5050505b6001600160a01b03821615610f30576001600160a01b03821660009081526004602052604081205463ffffffff169081611137576000611183565b6001600160a01b03841660009081526003602052604081209061115b6001856115a3565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b905060006111aa828560405180606001604052806027815260200161176b60279139610fbf565b9050610c63858484845b60006111d843604051806060016040528060348152602001611701603491396113ac565b905060008463ffffffff1611801561123257506001600160a01b038516600090815260036020526040812063ffffffff8316916112166001886115a3565b63ffffffff908116825260208201929092526040016000205416145b156112a6576001600160a01b0385166000908152600360205260408120839161125c6001886115a3565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055611357565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600382528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055611326846001611651565b6001600160a01b0386166000908152600460205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b8410610c925760405162461bcd60e51b815260040161069791905b600060208083528351808285015260005b818110156113fc578581018301518582016040015282016113e0565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461143457600080fd5b919050565b6000806040838503121561144c57600080fd5b6114558361141d565b946020939093013593505050565b60008060006060848603121561147857600080fd5b6114818461141d565b925061148f6020850161141d565b9150604084013590509250925092565b6000602082840312156114b157600080fd5b61097c8261141d565b60008060008060008060c087890312156114d357600080fd5b6114dc8761141d565b95506020870135945060408701359350606087013560ff8116811461150057600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561152d57600080fd5b6115368361141d565b91506115446020840161141d565b90509250929050565b6000806040838503121561156057600080fd5b6115698361141d565b9150602083013563ffffffff8116811461158257600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b63ffffffff8281168282160390808211156115c0576115c061158d565b5092915050565b600063ffffffff808416806115ec57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006001820161160a5761160a61158d565b5060010190565b6001600160601b038281168282160390808211156115c0576115c061158d565b6001600160601b038181168382160190808211156115c0576115c061158d565b63ffffffff8181168382160190808211156115c0576115c061158d56fe4c656e643a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e63654c656e643a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f77734c656e643a3a617070726f76653a20616d6f756e74206578636565647320393620626974734c656e643a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974734c656e643a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e63654c656e643a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f77734c656e643a3a7472616e736665723a20616d6f756e74206578636565647320393620626974734c656e643a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773a26469706673582212201ad0491fdab2d200a5bd5e02ecf8cd1d733dc808324cd47d13fba28283905c5a64736f6c6343000814003300000000000000000000000050822c1dffc99f9bed08fb70c187949d5bdcea83