Address Contract Partially Verified
Address
0x8f693ca8D21b157107184d29D398A8D082b38b76
Balance
0 ETH
Nonce
1
Code Size
13972 bytes
Creator
0xB03C6eB7...f004 at tx 0x03c6afcf...4de34b
Indexed Transactions
4 (24,454,575 → 24,454,657)
Gas Used (indexed)
187,715
Contract Bytecode
13972 bytes
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80634eee966f116100f9578063a457c2d711610097578063d505accf11610071578063d505accf14610565578063d539139314610581578063d547741f1461059f578063dd62ed3e146105bb576101c4565b8063a457c2d7146104d5578063a9059cbb14610505578063aa271e1a14610535576101c4565b80637ecebe00116100d35780637ecebe001461043957806391d148541461046957806395d89b4114610499578063a217fddf146104b7576101c4565b80634eee966f146103d157806370a08231146103ed57806379cc67901461041d576101c4565b8063313ce56711610166578063395093511161014057806339509351146103395780634000aea01461036957806340c10f191461039957806342966c68146103b5576101c4565b8063313ce567146102e15780633644e515146102ff57806336568abe1461031d576101c4565b806318160ddd116101a257806318160ddd1461024757806323b872dd14610265578063248a9ca3146102955780632f2ff15d146102c5576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063095ea7b314610217575b600080fd5b6101e360048036038101906101de919061234b565b6105eb565b6040516101f091906128e7565b60405180910390f35b610201610665565b60405161020e9190612a16565b60405180910390f35b610231600480360381019061022c919061222a565b6106f7565b60405161023e91906128e7565b60405180910390f35b61024f610715565b60405161025c9190612d0f565b60405180910390f35b61027f600480360381019061027a9190612135565b61071f565b60405161028c91906128e7565b60405180910390f35b6102af60048036038101906102aa91906122de565b610820565b6040516102bc9190612902565b60405180910390f35b6102df60048036038101906102da919061230b565b610840565b005b6102e96108a6565b6040516102f69190612d5c565b60405180910390f35b6103076108af565b6040516103149190612902565b60405180910390f35b6103376004803603810190610332919061230b565b6108be565b005b610353600480360381019061034e919061222a565b610941565b60405161036091906128e7565b60405180910390f35b610383600480360381019061037e919061226a565b6109ed565b60405161039091906128e7565b60405180910390f35b6103b360048036038101906103ae919061222a565b610b05565b005b6103cf60048036038101906103ca91906123f9565b610b62565b005b6103eb60048036038101906103e69190612378565b610b76565b005b610407600480360381019061040291906120c8565b610c2e565b6040516104149190612d0f565b60405180910390f35b6104376004803603810190610432919061222a565b610c76565b005b610453600480360381019061044e91906120c8565b610cfa565b6040516104609190612d0f565b60405180910390f35b610483600480360381019061047e919061230b565b610d4a565b60405161049091906128e7565b60405180910390f35b6104a1610db5565b6040516104ae9190612a16565b60405180910390f35b6104bf610e47565b6040516104cc9190612902565b60405180910390f35b6104ef60048036038101906104ea919061222a565b610e4e565b6040516104fc91906128e7565b60405180910390f35b61051f600480360381019061051a919061222a565b610f42565b60405161052c91906128e7565b60405180910390f35b61054f600480360381019061054a91906120c8565b610f60565b60405161055c91906128e7565b60405180910390f35b61057f600480360381019061057a9190612188565b610f93565b005b61058961115a565b6040516105969190612902565b60405180910390f35b6105b960048036038101906105b4919061230b565b61117e565b005b6105d560048036038101906105d091906120f5565b6111e4565b6040516105e29190612d0f565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061065e575061065d8261126b565b5b9050919050565b60606007805461067490612f1b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090612f1b565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b5050505050905090565b600061070b6107046112d5565b84846112dd565b6001905092915050565b6000600254905090565b600061072c8484846114a8565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006107776112d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156107f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ee90612bef565b60405180910390fd5b610814856108036112d5565b858461080f9190612e1a565b6112dd565b60019150509392505050565b600060066000838152602001908152602001600020600101549050919050565b61085961084c83610820565b6108546112d5565b610d4a565b610898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088f90612aaf565b60405180910390fd5b6108a28282611727565b5050565b60006012905090565b60006108b9611808565b905090565b6108c66112d5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092a90612ccf565b60405180910390fd5b61093d82826118cb565b5050565b60006109e361094e6112d5565b84846001600061095c6112d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109de9190612dc4565b6112dd565b6001905092915050565b60006109f98585610f42565b508473ffffffffffffffffffffffffffffffffffffffff16610a196112d5565b73ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16868686604051610a6293929190612d2a565b60405180910390a36000853b90506000811115610af85760008690508073ffffffffffffffffffffffffffffffffffffffff1663a4c0ed36610aa26112d5565b8888886040518563ffffffff1660e01b8152600401610ac494939291906128a7565b600060405180830381600087803b158015610ade57600080fd5b505af1158015610af2573d6000803e3d6000fd5b50505050505b6001915050949350505050565b610b15610b106112d5565b610f60565b610b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4b90612b6f565b60405180910390fd5b610b5e82826119ad565b5050565b610b73610b6d6112d5565b82611b01565b50565b610b8a6000801b610b856112d5565b610d4a565b610bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc090612c8f565b60405180910390fd5b838360079190610bda929190611f10565b50818160089190610bec929190611f10565b507fd131ab1e6f279deea74e13a18477e13e2107deb6dc8ae955648948be5841fb4660076008604051610c20929190612a38565b60405180910390a150505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610c8983610c846112d5565b6111e4565b905081811015610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc590612c0f565b60405180910390fd5b610ceb83610cda6112d5565b8484610ce69190612e1a565b6112dd565b610cf58383611b01565b505050565b6000610d43600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611cd5565b9050919050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060088054610dc490612f1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610df090612f1b565b8015610e3d5780601f10610e1257610100808354040283529160200191610e3d565b820191906000526020600020905b815481529060010190602001808311610e2057829003601f168201915b5050505050905090565b6000801b81565b60008060016000610e5d6112d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1190612caf565b60405180910390fd5b610f37610f256112d5565b858584610f329190612e1a565b6112dd565b600191505092915050565b6000610f56610f4f6112d5565b84846114a8565b6001905092915050565b6000610f8c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683610d4a565b9050919050565b83421115610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90612b0f565b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611043600560008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611cd5565b896040516020016110599695949392919061291d565b604051602081830303815290604052805190602001209050600061107c82611ce3565b9050600061108c82878787611cfd565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f390612bcf565b60405180910390fd5b611143600560008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611e88565b61114e8a8a8a6112dd565b50505050505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61119761118a83610820565b6111926112d5565b610d4a565b6111d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cd90612b8f565b60405180910390fd5b6111e082826118cb565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134490612c6f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b490612aef565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161149b9190612d0f565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150f90612c4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157f90612a8f565b60405180910390fd5b611593838383611e9e565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161090612b2f565b60405180910390fd5b81816116259190612e1a565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116b59190612dc4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516117199190612d0f565b60405180910390a350505050565b6117318282610d4a565b6118045760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117a96112d5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60007f000000000000000000000000000000000000000000000000000000000000000146141561185a577fb9842fd8e5d534a9ec888e765a1504f110412c4d1371bf36a86e86d7a0d4bb8d90506118c8565b6118c57f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fbc9211a51ce2feced0d2078c3a27156fd77cb553512b626d67d54095b8363b027fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6611ea3565b90505b90565b6118d58282610d4a565b156119a95760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061194e6112d5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1490612cef565b60405180910390fd5b611a2960008383611e9e565b8060026000828254611a3b9190612dc4565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a909190612dc4565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611af59190612d0f565b60405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6890612c2f565b60405180910390fd5b611b7d82600083611e9e565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfa90612acf565b60405180910390fd5b8181611c0f9190612e1a565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254611c639190612e1a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611cc89190612d0f565b60405180910390a3505050565b600081600001549050919050565b6000611cf6611cf0611808565b83611edd565b9050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c1115611d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5c90612b4f565b60405180910390fd5b601b8460ff161480611d7a5750601c8460ff16145b611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db090612baf565b60405180910390fd5b600060018686868660405160008152602001604052604051611dde94939291906129d1565b6020604051602081039080840390855afa158015611e00573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7390612a6f565b60405180910390fd5b80915050949350505050565b6001816000016000828254019250508190555050565b505050565b60008383834630604051602001611ebe95949392919061297e565b6040516020818303038152906040528051906020012090509392505050565b60008282604051602001611ef2929190612870565b60405160208183030381529060405280519060200120905092915050565b828054611f1c90612f1b565b90600052602060002090601f016020900481019282611f3e5760008555611f85565b82601f10611f5757803560ff1916838001178555611f85565b82800160010185558215611f85579182015b82811115611f84578235825591602001919060010190611f69565b5b509050611f929190611f96565b5090565b5b80821115611faf576000816000905550600101611f97565b5090565b600081359050611fc2816135eb565b92915050565b600081359050611fd781613602565b92915050565b600081359050611fec81613619565b92915050565b60008083601f84011261200857612007612fba565b5b8235905067ffffffffffffffff81111561202557612024612fb5565b5b60208301915083600182028301111561204157612040612fbf565b5b9250929050565b60008083601f84011261205e5761205d612fba565b5b8235905067ffffffffffffffff81111561207b5761207a612fb5565b5b60208301915083600182028301111561209757612096612fbf565b5b9250929050565b6000813590506120ad81613630565b92915050565b6000813590506120c281613647565b92915050565b6000602082840312156120de576120dd612fc9565b5b60006120ec84828501611fb3565b91505092915050565b6000806040838503121561210c5761210b612fc9565b5b600061211a85828601611fb3565b925050602061212b85828601611fb3565b9150509250929050565b60008060006060848603121561214e5761214d612fc9565b5b600061215c86828701611fb3565b935050602061216d86828701611fb3565b925050604061217e8682870161209e565b9150509250925092565b600080600080600080600060e0888a0312156121a7576121a6612fc9565b5b60006121b58a828b01611fb3565b97505060206121c68a828b01611fb3565b96505060406121d78a828b0161209e565b95505060606121e88a828b0161209e565b94505060806121f98a828b016120b3565b93505060a061220a8a828b01611fc8565b92505060c061221b8a828b01611fc8565b91505092959891949750929550565b6000806040838503121561224157612240612fc9565b5b600061224f85828601611fb3565b92505060206122608582860161209e565b9150509250929050565b6000806000806060858703121561228457612283612fc9565b5b600061229287828801611fb3565b94505060206122a38782880161209e565b935050604085013567ffffffffffffffff8111156122c4576122c3612fc4565b5b6122d087828801611ff2565b925092505092959194509250565b6000602082840312156122f4576122f3612fc9565b5b600061230284828501611fc8565b91505092915050565b6000806040838503121561232257612321612fc9565b5b600061233085828601611fc8565b925050602061234185828601611fb3565b9150509250929050565b60006020828403121561236157612360612fc9565b5b600061236f84828501611fdd565b91505092915050565b6000806000806040858703121561239257612391612fc9565b5b600085013567ffffffffffffffff8111156123b0576123af612fc4565b5b6123bc87828801612048565b9450945050602085013567ffffffffffffffff8111156123df576123de612fc4565b5b6123eb87828801612048565b925092505092959194509250565b60006020828403121561240f5761240e612fc9565b5b600061241d8482850161209e565b91505092915050565b61242f81612e4e565b82525050565b61243e81612e60565b82525050565b61244d81612e6c565b82525050565b61246461245f82612e6c565b612f4d565b82525050565b60006124768385612d97565b9350612483838584612ed9565b61248c83612fce565b840190509392505050565b60006124a282612d8c565b6124ac8185612da8565b93506124bc818560208601612ee8565b6124c581612fce565b840191505092915050565b600081546124dd81612f1b565b6124e78186612da8565b94506001821660008114612502576001811461251457612547565b60ff1983168652602086019350612547565b61251d85612d77565b60005b8381101561253f57815481890152600182019150602081019050612520565b808801955050505b50505092915050565b600061255d601883612da8565b915061256882612fdf565b602082019050919050565b6000612580602383612da8565b915061258b82613008565b604082019050919050565b60006125a3602f83612da8565b91506125ae82613057565b604082019050919050565b60006125c6602283612da8565b91506125d1826130a6565b604082019050919050565b60006125e9602283612da8565b91506125f4826130f5565b604082019050919050565b600061260c600283612db9565b915061261782613144565b600282019050919050565b600061262f601d83612da8565b915061263a8261316d565b602082019050919050565b6000612652602683612da8565b915061265d82613196565b604082019050919050565b6000612675602283612da8565b9150612680826131e5565b604082019050919050565b6000612698602283612da8565b91506126a382613234565b604082019050919050565b60006126bb603083612da8565b91506126c682613283565b604082019050919050565b60006126de602283612da8565b91506126e9826132d2565b604082019050919050565b6000612701601e83612da8565b915061270c82613321565b602082019050919050565b6000612724602883612da8565b915061272f8261334a565b604082019050919050565b6000612747602483612da8565b915061275282613399565b604082019050919050565b600061276a602183612da8565b9150612775826133e8565b604082019050919050565b600061278d602583612da8565b915061279882613437565b604082019050919050565b60006127b0602483612da8565b91506127bb82613486565b604082019050919050565b60006127d3602283612da8565b91506127de826134d5565b604082019050919050565b60006127f6602583612da8565b915061280182613524565b604082019050919050565b6000612819602f83612da8565b915061282482613573565b604082019050919050565b600061283c601f83612da8565b9150612847826135c2565b602082019050919050565b61285b81612ec2565b82525050565b61286a81612ecc565b82525050565b600061287b826125ff565b91506128878285612453565b6020820191506128978284612453565b6020820191508190509392505050565b60006060820190506128bc6000830187612426565b6128c96020830186612852565b81810360408301526128dc81848661246a565b905095945050505050565b60006020820190506128fc6000830184612435565b92915050565b60006020820190506129176000830184612444565b92915050565b600060c0820190506129326000830189612444565b61293f6020830188612426565b61294c6040830187612426565b6129596060830186612852565b6129666080830185612852565b61297360a0830184612852565b979650505050505050565b600060a0820190506129936000830188612444565b6129a06020830187612444565b6129ad6040830186612444565b6129ba6060830185612852565b6129c76080830184612426565b9695505050505050565b60006080820190506129e66000830187612444565b6129f36020830186612861565b612a006040830185612444565b612a0d6060830184612444565b95945050505050565b60006020820190508181036000830152612a308184612497565b905092915050565b60006040820190508181036000830152612a5281856124d0565b90508181036020830152612a6681846124d0565b90509392505050565b60006020820190508181036000830152612a8881612550565b9050919050565b60006020820190508181036000830152612aa881612573565b9050919050565b60006020820190508181036000830152612ac881612596565b9050919050565b60006020820190508181036000830152612ae8816125b9565b9050919050565b60006020820190508181036000830152612b08816125dc565b9050919050565b60006020820190508181036000830152612b2881612622565b9050919050565b60006020820190508181036000830152612b4881612645565b9050919050565b60006020820190508181036000830152612b6881612668565b9050919050565b60006020820190508181036000830152612b888161268b565b9050919050565b60006020820190508181036000830152612ba8816126ae565b9050919050565b60006020820190508181036000830152612bc8816126d1565b9050919050565b60006020820190508181036000830152612be8816126f4565b9050919050565b60006020820190508181036000830152612c0881612717565b9050919050565b60006020820190508181036000830152612c288161273a565b9050919050565b60006020820190508181036000830152612c488161275d565b9050919050565b60006020820190508181036000830152612c6881612780565b9050919050565b60006020820190508181036000830152612c88816127a3565b9050919050565b60006020820190508181036000830152612ca8816127c6565b9050919050565b60006020820190508181036000830152612cc8816127e9565b9050919050565b60006020820190508181036000830152612ce88161280c565b9050919050565b60006020820190508181036000830152612d088161282f565b9050919050565b6000602082019050612d246000830184612852565b92915050565b6000604082019050612d3f6000830186612852565b8181036020830152612d5281848661246a565b9050949350505050565b6000602082019050612d716000830184612861565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612dcf82612ec2565b9150612dda83612ec2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e0f57612e0e612f57565b5b828201905092915050565b6000612e2582612ec2565b9150612e3083612ec2565b925082821015612e4357612e42612f57565b5b828203905092915050565b6000612e5982612ea2565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015612f06578082015181840152602081019050612eeb565b83811115612f15576000848401525b50505050565b60006002820490506001821680612f3357607f821691505b60208210811415612f4757612f46612f86565b5b50919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5472616e73616374696f6e207369676e6572206973206e6f742061206d696e7460008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5472616e73616374696f6e207369676e6572206973206e6f7420616e2061646d60008201527f696e000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6135f481612e4e565b81146135ff57600080fd5b50565b61360b81612e6c565b811461361657600080fd5b50565b61362281612e76565b811461362d57600080fd5b50565b61363981612ec2565b811461364457600080fd5b50565b61365081612ecc565b811461365b57600080fd5b5056fea26469706673582212207575873777af048c081d0e4286d7edcec2b516036f5d1588d0183b4cff00672764736f6c63430008060033
Verified Source Code Partial Match
Compiler: v0.8.6+commit.11564f7e
EVM: berlin
Optimization: No
DATAv2.sol 1255 lines
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; // Sources flattened with hardhat v2.1.2 https://hardhat.org // NOTE: manually removed extraneous licence identifies and pragmas to accommodate Etherscan Verify & Publish // File @openzeppelin/contracts/utils/[email protected] /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/utils/introspection/[email protected] /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/utils/introspection/[email protected] /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/access/[email protected] /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping (address => bool) members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/token/ERC20/[email protected] /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/token/ERC20/[email protected] /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overloaded; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); _burn(account, amount); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens, * given `owner`'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/utils/cryptography/[email protected] /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, block.chainid, address(this) ) ); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File @openzeppelin/contracts/utils/[email protected] /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping (address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") { } /** * @dev See {IERC20Permit-permit}. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override { // solhint-disable-next-line not-rely-on-time require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256( abi.encode( _PERMIT_TYPEHASH, owner, spender, value, _nonces[owner].current(), deadline ) ); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _nonces[owner].increment(); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } } // File contracts/IERC677.sol // adapted from LINK token https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca#code // implements https://github.com/ethereum/EIPs/issues/677 interface IERC677 is IERC20 { function transferAndCall( address to, uint value, bytes calldata data ) external returns (bool success); event Transfer( address indexed from, address indexed to, uint value, bytes data ); } // File contracts/IERC677Receiver.sol interface IERC677Receiver { function onTokenTransfer( address _sender, uint256 _value, bytes calldata _data ) external; } // File contracts/DATAv2.sol contract DATAv2 is ERC20Permit, ERC20Burnable, AccessControl, IERC677 { string private _name = "Streamr"; string private _symbol = "DATA"; event UpdatedTokenInformation(string newName, string newSymbol); // ------------------------------------------------------------------------ // adapted from @openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol bytes32 constant public MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() ERC20("", "") ERC20Permit(_name) { // make contract deployer the role admin that can later grant the minter role _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function isMinter( address minter ) public view returns (bool) { return hasRole(MINTER_ROLE, minter); } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint( address to, uint256 amount ) public { require(isMinter(_msgSender()), "Transaction signer is not a minter"); _mint(to, amount); } // ------------------------------------------------------------------------ // adapted from LINK token, see https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca#code // implements https://github.com/ethereum/EIPs/issues/677 /** * @dev transfer token to a contract address with additional data if the recipient is a contact. * @param _to The address to transfer to. * @param _value The amount to be transferred. * @param _data The extra data to be passed to the receiving contract. */ function transferAndCall( address _to, uint256 _value, bytes calldata _data ) public override returns (bool success) { super.transfer(_to, _value); emit Transfer(_msgSender(), _to, _value, _data); uint256 recipientCodeSize; assembly { recipientCodeSize := extcodesize(_to) } if (recipientCodeSize > 0) { IERC677Receiver receiver = IERC677Receiver(_to); receiver.onTokenTransfer(_msgSender(), _value, _data); } return true; } // ------------------------------------------------------------------------ // allow admin to change the token name and symbol function setTokenInformation(string calldata newName, string calldata newSymbol) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Transaction signer is not an admin"); _name = newName; _symbol = newSymbol; emit UpdatedTokenInformation(_name, _symbol); } /** * @dev Returns the name of the token. */ function name() public view override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the name. */ function symbol() public view override returns (string memory) { return _symbol; } }
Read Contract
DEFAULT_ADMIN_ROLE 0xa217fddf → bytes32
DOMAIN_SEPARATOR 0x3644e515 → bytes32
MINTER_ROLE 0xd5391393 → bytes32
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getRoleAdmin 0x248a9ca3 → bytes32
hasRole 0x91d14854 → bool
isMinter 0xaa271e1a → bool
name 0x06fdde03 → string
nonces 0x7ecebe00 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 14 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
burnFrom 0x79cc6790
address account
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
grantRole 0x2f2ff15d
bytes32 role
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x40c10f19
address to
uint256 amount
permit 0xd505accf
address owner
address spender
uint256 value
uint256 deadline
uint8 v
bytes32 r
bytes32 s
renounceRole 0x36568abe
bytes32 role
address account
revokeRole 0xd547741f
bytes32 role
address account
setTokenInformation 0x4eee966f
string newName
string newSymbol
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferAndCall 0x4000aea0
address _to
uint256 _value
bytes _data
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
Top Interactions
| Address | Txns | Sent | Received |
|---|---|---|---|
| 0x167A9333...6476 | 1 | 1 | |
| 0x21a31Ee1...5549 | 1 | 1 | |
| 0x28C6c062...1d60 | 1 | 1 | |
| 0xC4ac711c...9BEB | 1 | 1 |
Recent Transactions
|
| Hash | Block | Age | From/To | Value | |
|---|---|---|---|---|---|
| 0x5728b5e4...e484e8 | 24,454,657 | IN | 0x167A9333...6476 | 0 ETH | |
| 0xf56a179e...9673ae | 24,454,642 | IN | 0xC4ac711c...9BEB | 0 ETH | |
| 0x2f1ff486...ca6d9d | 24,454,605 | IN | 0x21a31Ee1...5549 | 0 ETH | |
| 0x77c7cf8e...1628b0 | 24,454,575 | IN | 0x28C6c062...1d60 | 0 ETH |