Address Contract Partially Verified
Address
0x8E4f3A5c5D0F028d76fb92368472Bb3de7E6551D
Balance
0 ETH
Nonce
1
Code Size
10397 bytes
Creator
0x8E4665F3...a0D3 at tx 0x1173ae18...33342e
Indexed Transactions
0
Contract Bytecode
10397 bytes
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063b092deb111610097578063dd62ed3e11610071578063dd62ed3e14610535578063dfdf79a814610565578063ea75a02514610583578063efe7a504146105a1576101c4565b8063b092deb1146104dd578063ba9a061a146104fb578063dbb8ad5114610519576101c4565b806393edbc4d116100d357806393edbc4d1461042f57806395d89b411461045f578063a457c2d71461047d578063a9059cbb146104ad576101c4565b806370a08231146103d95780637238b4f6146104095780639360c88914610425576101c4565b8063313ce567116101665780634e3eb326116101405780634e3eb3261461034f578063664e97041461037f57806367fc6dea1461039d5780636b50e651146103bb576101c4565b8063313ce567146102d157806339509351146102ef5780633f661e121461031f576101c4565b80631b542776116101a25780631b542776146102355780631be052891461025357806323b872dd1461027157806328d13811146102a1576101c4565b806306fdde03146101c9578063095ea7b3146101e757806318160ddd14610217575b600080fd5b6101d16105bf565b6040516101de91906122b5565b60405180910390f35b61020160048036038101906101fc9190611c14565b610651565b60405161020e919061227f565b60405180910390f35b61021f61066f565b60405161022c9190612437565b60405180910390f35b61023d610679565b60405161024a9190612219565b60405180910390f35b61025b61069f565b6040516102689190612437565b60405180910390f35b61028b60048036038101906102869190611bc5565b6106a7565b604051610298919061227f565b60405180910390f35b6102bb60048036038101906102b69190611b37565b61079f565b6040516102c89190612437565b60405180910390f35b6102d9610936565b6040516102e69190612452565b60405180910390f35b61030960048036038101906103049190611c14565b61093f565b604051610316919061227f565b60405180910390f35b61033960048036038101906103349190611c91565b6109eb565b6040516103469190612437565b60405180910390f35b61036960048036038101906103649190611c91565b610a03565b604051610376919061225d565b60405180910390f35b610387610ade565b6040516103949190612437565b60405180910390f35b6103a5610ae4565b6040516103b29190612437565b60405180910390f35b6103c3610afb565b6040516103d09190612437565b60405180910390f35b6103f360048036038101906103ee9190611b37565b610b4e565b6040516104009190612437565b60405180910390f35b610423600480360381019061041e9190611c91565b610b97565b005b61042d610d11565b005b61044960048036038101906104449190611c91565b610f30565b6040516104569190612437565b60405180910390f35b610467610f5f565b60405161047491906122b5565b60405180910390f35b61049760048036038101906104929190611c14565b610ff1565b6040516104a4919061227f565b60405180910390f35b6104c760048036038101906104c29190611c14565b6110dc565b6040516104d4919061227f565b60405180910390f35b6104e56110fa565b6040516104f29190612437565b60405180910390f35b610503611101565b6040516105109190612437565b60405180910390f35b610533600480360381019061052e9190611c50565b611109565b005b61054f600480360381019061054a9190611b89565b611343565b60405161055c9190612437565b60405180910390f35b61056d6113ca565b60405161057a919061229a565b60405180910390f35b61058b6113f0565b6040516105989190612437565b60405180910390f35b6105a9611416565b6040516105b69190612437565b60405180910390f35b6060600480546105ce906126f1565b80601f01602080910402602001604051908101604052809291908181526020018280546105fa906126f1565b80156106475780601f1061061c57610100808354040283529160200191610647565b820191906000526020600020905b81548152906001019060200180831161062a57829003601f168201915b5050505050905090565b600061066561065e61142d565b8484611435565b6001905092915050565b6000600354905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b63bc180c3881565b60006106b4848484611600565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006106ff61142d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561077f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077690612377565b60405180910390fd5b6107938561078b61142d565b858403611435565b60019150509392505050565b60008060005b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016108009190612219565b60206040518083038186803b15801561081857600080fd5b505afa15801561082c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108509190611cba565b81101561092c5761090c600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5986846040518363ffffffff1660e01b81526004016108b7929190612234565b60206040518083038186803b1580156108cf57600080fd5b505afa1580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109079190611cba565b610f30565b826109179190612530565b9150808061092490612723565b9150506107a5565b5080915050919050565b60006012905090565b60006109e161094c61142d565b84846002600061095a61142d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109dc9190612530565b611435565b6001905092915050565b60086020528060005260406000206000915090505481565b60606007805480602002602001604051908101604052809291908181526020016000905b82821015610ad3578382906000526020600020018054610a46906126f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a72906126f1565b8015610abf5780601f10610a9457610100808354040283529160200191610abf565b820191906000526020600020905b815481529060010190602001808311610aa257829003601f168201915b505050505081526020019060010190610a27565b505050509050919050565b60065481565b6000636129249f42610af69190612611565b905090565b600080636129249f610b204263bc180c38636129249f610b1b9190612530565b611884565b610b2a9190612611565b90506201518060065482610b3e91906125b7565b610b489190612586565b91505090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60026000541415610bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd4906123d7565b60405180910390fd5b6002600081905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b8152600401610c409190612437565b60206040518083038186803b158015610c5857600080fd5b505afa158015610c6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c909190611b60565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490612317565b60405180910390fd5b610d068161189d565b600160008190555050565b60026000541415610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e906123d7565b60405180910390fd5b60026000819055506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610dbc9190612219565b60206040518083038186803b158015610dd457600080fd5b505afa158015610de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0c9190611cba565b905060008111610e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4890612357565b60405180910390fd5b60005b81811015610f2457610f11600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5933846040518363ffffffff1660e01b8152600401610ebc929190612234565b60206040518083038186803b158015610ed457600080fd5b505afa158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c9190611cba565b61189d565b8080610f1c90612723565b915050610e54565b50506001600081905550565b60006008600083815260200190815260200160002054610f4e610afb565b610f589190612611565b9050919050565b606060058054610f6e906126f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9a906126f1565b8015610fe75780601f10610fbc57610100808354040283529160200191610fe7565b820191906000526020600020905b815481529060010190602001808311610fca57829003601f168201915b5050505050905090565b6000806002600061100061142d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156110bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b4906123f7565b60405180910390fd5b6110d16110c861142d565b85858403611435565b600191505092915050565b60006110f06110e961142d565b8484611600565b6001905092915050565b6201518081565b636129249f81565b6002600054141561114f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611146906123d7565b60405180910390fd5b600260008190555060005b81518110156112ce57600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8383815181106111da577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016111fe9190612437565b60206040518083038186803b15801561121657600080fd5b505afa15801561122a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124e9190611b60565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b290612317565b60405180910390fd5b80806112c690612723565b91505061115a565b5060005b815181101561133757611324828281518110611317577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161189d565b808061132f90612723565b9150506112d2565b50600160008190555050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60004263bc180c38636129249f6114079190612530565b6114119190612611565b905090565b63bc180c38636129249f61142a9190612530565b81565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156114a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149c906123b7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150c906122f7565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516115f39190612437565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790612397565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d7906122d7565b60405180910390fd5b6116eb8383836118e2565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176990612337565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118079190612530565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161186b9190612437565b60405180910390a361187e8484846118e7565b50505050565b60008183106118935781611895565b825b905092915050565b60006118a882610f30565b9050806008600084815260200190815260200160002060008282546118cd9190612530565b925050819055506118de33826118ec565b5050565b505050565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390612417565b60405180910390fd5b611968600083836118e2565b806003600082825461197a9190612530565b9250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119d09190612530565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611a359190612437565b60405180910390a3611a49600083836118e7565b5050565b6000611a60611a5b8461249e565b61246d565b90508083825260208201905082856020860282011115611a7f57600080fd5b60005b85811015611aaf5781611a958882611b0d565b845260208401935060208301925050600181019050611a82565b5050509392505050565b600081359050611ac881612839565b92915050565b600081519050611add81612839565b92915050565b600082601f830112611af457600080fd5b8135611b04848260208601611a4d565b91505092915050565b600081359050611b1c81612850565b92915050565b600081519050611b3181612850565b92915050565b600060208284031215611b4957600080fd5b6000611b5784828501611ab9565b91505092915050565b600060208284031215611b7257600080fd5b6000611b8084828501611ace565b91505092915050565b60008060408385031215611b9c57600080fd5b6000611baa85828601611ab9565b9250506020611bbb85828601611ab9565b9150509250929050565b600080600060608486031215611bda57600080fd5b6000611be886828701611ab9565b9350506020611bf986828701611ab9565b9250506040611c0a86828701611b0d565b9150509250925092565b60008060408385031215611c2757600080fd5b6000611c3585828601611ab9565b9250506020611c4685828601611b0d565b9150509250929050565b600060208284031215611c6257600080fd5b600082013567ffffffffffffffff811115611c7c57600080fd5b611c8884828501611ae3565b91505092915050565b600060208284031215611ca357600080fd5b6000611cb184828501611b0d565b91505092915050565b600060208284031215611ccc57600080fd5b6000611cda84828501611b22565b91505092915050565b6000611cef8383611d99565b905092915050565b611d0081612645565b82525050565b6000611d11826124da565b611d1b81856124fd565b935083602082028501611d2d856124ca565b8060005b85811015611d695784840389528151611d4a8582611ce3565b9450611d55836124f0565b925060208a01995050600181019050611d31565b50829750879550505050505092915050565b611d8481612657565b82525050565b611d938161269a565b82525050565b6000611da4826124e5565b611dae818561250e565b9350611dbe8185602086016126be565b611dc781612828565b840191505092915050565b6000611ddd826124e5565b611de7818561251f565b9350611df78185602086016126be565b611e0081612828565b840191505092915050565b6000611e1860238361251f565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611e7e60228361251f565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611ee460298361251f565b91507f417474656d7074656420746f20636c61696d20666f72204c6f6f7420796f752060008301527f646f6e2774206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000611f4a60268361251f565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611fb060168361251f565b91507f596f7520646f6e2774206f776e20616e79204c6f6f74000000000000000000006000830152602082019050919050565b6000611ff060288361251f565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b600061205660258361251f565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006120bc60248361251f565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612122601f8361251f565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b600061216260258361251f565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006121c8601f8361251f565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b61220481612683565b82525050565b6122138161268d565b82525050565b600060208201905061222e6000830184611cf7565b92915050565b60006040820190506122496000830185611cf7565b61225660208301846121fb565b9392505050565b600060208201905081810360008301526122778184611d06565b905092915050565b60006020820190506122946000830184611d7b565b92915050565b60006020820190506122af6000830184611d8a565b92915050565b600060208201905081810360008301526122cf8184611dd2565b905092915050565b600060208201905081810360008301526122f081611e0b565b9050919050565b6000602082019050818103600083015261231081611e71565b9050919050565b6000602082019050818103600083015261233081611ed7565b9050919050565b6000602082019050818103600083015261235081611f3d565b9050919050565b6000602082019050818103600083015261237081611fa3565b9050919050565b6000602082019050818103600083015261239081611fe3565b9050919050565b600060208201905081810360008301526123b081612049565b9050919050565b600060208201905081810360008301526123d0816120af565b9050919050565b600060208201905081810360008301526123f081612115565b9050919050565b6000602082019050818103600083015261241081612155565b9050919050565b60006020820190508181036000830152612430816121bb565b9050919050565b600060208201905061244c60008301846121fb565b92915050565b6000602082019050612467600083018461220a565b92915050565b6000604051905081810181811067ffffffffffffffff82111715612494576124936127f9565b5b8060405250919050565b600067ffffffffffffffff8211156124b9576124b86127f9565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061253b82612683565b915061254683612683565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561257b5761257a61276c565b5b828201905092915050565b600061259182612683565b915061259c83612683565b9250826125ac576125ab61279b565b5b828204905092915050565b60006125c282612683565b91506125cd83612683565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126065761260561276c565b5b828202905092915050565b600061261c82612683565b915061262783612683565b92508282101561263a5761263961276c565b5b828203905092915050565b600061265082612663565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006126a5826126ac565b9050919050565b60006126b782612663565b9050919050565b60005b838110156126dc5780820151818401526020810190506126c1565b838111156126eb576000848401525b50505050565b6000600282049050600182168061270957607f821691505b6020821081141561271d5761271c6127ca565b5b50919050565b600061272e82612683565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156127615761276061276c565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61284281612645565b811461284d57600080fd5b50565b61285981612683565b811461286457600080fd5b5056fea2646970667358221220ca3fe609158a434efa16b0444f83424b40536e39a532fb05c09c76a87c7933e664736f6c63430008000033
Verified Source Code Partial Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
LORE.sol 871 lines
// Sources flattened with hardhat v2.6.8 https://hardhat.org // File @openzeppelin/contracts/utils/introspection/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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/token/ERC721/[email protected] pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @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/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @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) { return msg.data; } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @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 Contracts guidelines: functions revert * instead 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, IERC20Metadata { 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 default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 * overridden; * * 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 override 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"); unchecked { _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"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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); _afterTokenTransfer(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"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/security/[email protected] pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/LORE.sol pragma solidity ^0.8.0; contract LORE is ReentrancyGuard, ERC20 ("LORE","LORE") { uint256 public RATE = 1 ether; //1 LORE per day string [] private _whitepaper; uint256 constant public DISTRIBUTION_PERIOD = 86400; //86400 seconds = 1 day uint256 constant public DURATION = 100 * 31556926; //100 years * 31556926 seconds per year uint256 constant public START = 1630086303; //Deployment of Loot contract uint256 constant public END = START + DURATION; mapping (uint256 => uint256) public cumulativeClaimedByTokenId; address public LootAddress; IERC721Enumerable public Loot = IERC721Enumerable(0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7); constructor() public { _whitepaper=['~ 100 Years of LORE ~', '', 'LORE is', 'a universe forging token', '', 'LORE is for use with Loot', 'and all other open-ended permissionless ecosystems,', 'released in the spirit of Loot and Satoshi', '', 'The LORE Foundation has taken 0 premine or cut', '', 'A fixed issuance & known supply,', 'LORE is backed by Math', 'with no further human governance', '', '1 LORE generated per Loot bag,', 'each day for 100 years,', 'and nevermore until the end of time', '', 'We encourage developers to make LORE deflationary through use', '', 'You may not represent yourself as the creator of LORE or the LORE Foundation,', 'but otherwise feel free to use LORE in any way you want']; } function claimForToken (uint256 LootId) external nonReentrant { require (msg.sender==Loot.ownerOf(LootId),"Attempted to claim for Loot you don't own"); releaseGrant(LootId); } function claimForMultiple (uint256 [] memory LootIds) external nonReentrant { for (uint256 i=0;i<LootIds.length;i++) { require (msg.sender==Loot.ownerOf(LootIds[i]),"Attempted to claim for Loot you don't own"); } for (uint256 i=0;i<LootIds.length;i++) { releaseGrant(LootIds[i]); } } function claimForAllTokensOfOwner () external nonReentrant { uint256 balance = Loot.balanceOf(msg.sender); require (balance>0,"You don't own any Loot"); for (uint256 i=0;i<balance;i++) { releaseGrant(Loot.tokenOfOwnerByIndex(msg.sender,i)); } } function releaseGrant (uint256 tokenId) private { uint256 grantForToken = unclaimedGrantBalanceByToken(tokenId); cumulativeClaimedByTokenId[tokenId] += grantForToken; _mint(msg.sender,grantForToken); } function unclaimedGrantBalanceByToken (uint256 tokenId) public view returns (uint256) { return cumulativeEntitlementPerToken() - cumulativeClaimedByTokenId[tokenId]; } function cumulativeEntitlementPerToken () public view returns (uint256){ uint256 GrantTime = min (block.timestamp, END) - START; return GrantTime * RATE / DISTRIBUTION_PERIOD; } function unclaimedGrantBalanceByAddress (address owner) public view returns (uint256) { uint256 unclaimed; for (uint256 i=0;i<Loot.balanceOf(owner);i++) { unclaimed += unclaimedGrantBalanceByToken(Loot.tokenOfOwnerByIndex(owner,i)); } return unclaimed; } function timeRemainingUntilEndOfIssuance () public view returns (uint256) { return END - block.timestamp; } function timeSinceStart () public view returns (uint256) { return block.timestamp - START; } function whitepaper (uint anyNumber) external view returns (string [] memory) { return _whitepaper; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } }
Read Contract
DISTRIBUTION_PERIOD 0xb092deb1 → uint256
DURATION 0x1be05289 → uint256
END 0xefe7a504 → uint256
Loot 0xdfdf79a8 → address
LootAddress 0x1b542776 → address
RATE 0x664e9704 → uint256
START 0xba9a061a → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
cumulativeClaimedByTokenId 0x3f661e12 → uint256
cumulativeEntitlementPerToken 0x6b50e651 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
timeRemainingUntilEndOfIssuance 0xea75a025 → uint256
timeSinceStart 0x67fc6dea → uint256
totalSupply 0x18160ddd → uint256
unclaimedGrantBalanceByAddress 0x28d13811 → uint256
unclaimedGrantBalanceByToken 0x93edbc4d → uint256
whitepaper 0x4e3eb326 → string[]
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claimForAllTokensOfOwner 0x9360c889
No parameters
claimForMultiple 0xdbb8ad51
uint256[] LootIds
claimForToken 0x7238b4f6
uint256 LootId
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
Recent Transactions
No transactions found for this address