USA Node
Top Transactions
Blocks
Staking
Tokens
Broadcast TXN
CLI Interface
Developer API
Smart Contract HQ
Contact Us
Donate
Node Status
Node:
Main Net - US
Search
Token Contract Details
Contract:
0xa23a5905c5b217dcb06d2724cac952178ec02228
Name:
Symbol:
Total Supply:
0.00
Decimal:
Compiler Version:
v0.5.16
Published Contract:
Send Transactions
TNT-20 Transactions
TNT-721 Transactions
Contract
Contract ByteCode:
0x608060405234801561001057600080fd5b50600436106101585760003560e01c806364ba144e116100c3578063c87b56dd1161007c578063c87b56dd146102d3578063d0def521146102f3578063d547cfb714610306578063e8a3d4851461030e578063e985e9c514610316578063f2fde38b1461032957610158565b806364ba144e1461025d57806370a08231146102705780638da5cb5b14610283578063a22cb4651461028b578063a2f7b3a51461029e578063b88d4fde146102c057610158565b80632f745c59116101155780632f745c59146101eb57806342842e0e146101fe57806342966c681461021157806343dcb7d2146102245780634f6ccce7146102375780636352211e1461024a57610158565b806301ffc9a71461015d57806302d05d3f14610186578063081812fc1461019b578063095ea7b3146101ae57806318160ddd146101c357806323b872dd146101d8575b600080fd5b61017061016b36600461188b565b61033c565b60405161017d9190611ee8565b60405180910390f35b61018e61035b565b60405161017d9190611e60565b61018e6101a93660046118c7565b61036b565b6101c16101bc366004611825565b6103b7565b005b6101cb61048a565b60405161017d919061202e565b6101c16101e636600461169f565b610490565b6101cb6101f9366004611825565b6104c6565b6101c161020c36600461169f565b610527565b6101c161021f3660046118c7565b610542565b6101c1610232366004611765565b610557565b6101cb6102453660046118c7565b6105a5565b61018e6102583660046118c7565b6105ec565b6101c161026b366004611855565b610621565b6101cb61027e366004611647565b6106a9565b61018e6106f2565b6101c16102993660046117ad565b610701565b6102b16102ac3660046118c7565b610799565b60405161017d93929190611eb2565b6101c16102ce3660046116ec565b610864565b6102e66102e13660046118c7565b61089d565b60405161017d9190611ef6565b6101c16103013660046117dd565b610aca565b6102e6610bd7565b6102e6610c6d565b610170610324366004611665565b610cce565b6101c1610337366004611647565b610cfc565b6001600160e01b03191660009081526020819052604090205460ff1690565b6009546001600160a01b03165b90565b600061037682610d35565b61039b5760405162461bcd60e51b815260040161039290611fce565b60405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006103c2826105ec565b9050806001600160a01b0316836001600160a01b031614156103f65760405162461bcd60e51b815260040161039290611fee565b336001600160a01b038216148061041257506104128133610cce565b61042e5760405162461bcd60e51b815260040161039290611f8e565b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60075490565b61049a3382610d52565b6104b65760405162461bcd60e51b815260040161039290611ffe565b6104c1838383610dd7565b505050565b60006104d1836106a9565b82106104ef5760405162461bcd60e51b815260040161039290611f0e565b6001600160a01b038316600090815260056020526040902080548390811061051357fe5b906000526020600020015490505b92915050565b6104c183838360405180602001604052806000815250610864565b61055461054e826105ec565b82610df6565b50565b600a546001600160a01b0316331461056e57600080fd5b60005b81518110156104c157606082828151811061058857fe5b6020026020010151905061059c8482610aca565b50600101610571565b60006105af61048a565b82106105cd5760405162461bcd60e51b81526004016103929061200e565b600782815481106105da57fe5b90600052602060002001549050919050565b6000818152600160205260408120546001600160a01b0316806105215760405162461bcd60e51b815260040161039290611fae565b80518251146106425760405162461bcd60e51b815260040161039290611f3e565b600a546001600160a01b0316331461065957600080fd5b60005b81518110156104c157600083828151811061067357fe5b60200260200101519050606083838151811061068b57fe5b6020026020010151905061069f8282610aca565b505060010161065c565b60006001600160a01b0382166106d15760405162461bcd60e51b815260040161039290611f9e565b6001600160a01b038216600090815260036020526040902061052190610e26565b600a546001600160a01b031690565b6001600160a01b03821633141561072a5760405162461bcd60e51b815260040161039290611f5e565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061078d908590611ee8565b60405180910390a35050565b600d81815481106107a657fe5b600091825260209182902060039091020180546001808301546002808501805460408051601f600019978416156101000297909701909216939093049485018890048802810188019092528382526001600160a01b039485169750919093169490919083018282801561085a5780601f1061082f5761010080835404028352916020019161085a565b820191906000526020600020905b81548152906001019060200180831161083d57829003601f168201915b5050505050905083565b61086f848484610490565b61087b84848484610e2a565b6108975760405162461bcd60e51b815260040161039290611f1e565b50505050565b600c805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815260609384939192909183018282801561092a5780601f106108ff5761010080835404028352916020019161092a565b820191906000526020600020905b81548152906001019060200180831161090d57829003601f168201915b505050505090506060600d848154811061094057fe5b600091825260209182902060026003909202018101805460408051601f6000196101006001861615020190931694909404918201859004850284018501905280835291929091908301828280156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b50505050509050606081518351016040519080825280601f01601f191660200182016040528015610a10576020820181803883390190505b509050806000805b8551811015610a6957858181518110610a2d57fe5b602001015160f81c60f81b838380600101945081518110610a4a57fe5b60200101906001600160f81b031916908160001a905350600101610a18565b5060005b8451811015610abe57848181518110610a8257fe5b602001015160f81c60f81b838380600101945081518110610a9f57fe5b60200101906001600160f81b031916908160001a905350600101610a6d565b50909695505050505050565b600a546001600160a01b03163314610ae157600080fd5b600d805460408051606081018252600a546001600160a01b0390811682528681166020808401918252938301878152600186018088556000979097528351600387027fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5810180549286166001600160a01b031993841617815593517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb6820180549190961692169190911790935551805195969593949193610bc9937fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb70192919091019061142d565b505050506104c18382610eef565b600c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600a546001600160a01b03163314610d1357600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000908152600160205260409020546001600160a01b0316151590565b6000610d5d82610d35565b610d795760405162461bcd60e51b815260040161039290611f7e565b6000610d84836105ec565b9050806001600160a01b0316846001600160a01b03161480610dbf5750836001600160a01b0316610db48461036b565b6001600160a01b0316145b80610dcf5750610dcf8185610cce565b949350505050565b610de2838383610f0c565b610dec8382611012565b6104c18282611107565b610e008282611145565b610e0a8282611012565b600081815260066020526040812055610e22816111fd565b5050565b5490565b6000610e3e846001600160a01b0316611299565b610e4a57506001610dcf565b604051630a85bd0160e11b81526000906001600160a01b0386169063150b7a0290610e7f9033908a9089908990600401611e6e565b602060405180830381600087803b158015610e9957600080fd5b505af1158015610ead573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610ed191908101906118a9565b6001600160e01b031916630a85bd0160e11b14915050949350505050565b610ef9828261129f565b610f038282611107565b610e2281611366565b826001600160a01b0316610f1f826105ec565b6001600160a01b031614610f455760405162461bcd60e51b815260040161039290611fde565b6001600160a01b038216610f6b5760405162461bcd60e51b815260040161039290611f4e565b610f74816113aa565b6001600160a01b0383166000908152600360205260409020610f95906113e5565b6001600160a01b0382166000908152600360205260409020610fb6906113fc565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461103c90600163ffffffff61140516565b6000838152600660205260409020549091508082146110d7576001600160a01b038416600090815260056020526040812080548490811061107957fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106110b757fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b03841660009081526005602052604090208054906111009060001983016114ab565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b816001600160a01b0316611158826105ec565b6001600160a01b03161461117e5760405162461bcd60e51b81526004016103929061201e565b611187816113aa565b6001600160a01b03821660009081526003602052604090206111a8906113e5565b60008181526001602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061121490600163ffffffff61140516565b6000838152600860205260408120546007805493945090928490811061123657fe5b90600052602060002001549050806007838154811061125157fe5b600091825260208083209091019290925582815260089091526040902082905560078054906112849060001983016114ab565b50505060009182525060086020526040812055565b3b151590565b6001600160a01b0382166112c55760405162461bcd60e51b815260040161039290611fbe565b6112ce81610d35565b156112eb5760405162461bcd60e51b815260040161039290611f2e565b600081815260016020908152604080832080546001600160a01b0319166001600160a01b03871690811790915583526003909152902061132a906113fc565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b03161561055457600090815260026020526040902080546001600160a01b0319169055565b80546113f890600163ffffffff61140516565b9055565b80546001019055565b6000828211156114275760405162461bcd60e51b815260040161039290611f6e565b50900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061146e57805160ff191683800117855561149b565b8280016001018555821561149b579182015b8281111561149b578251825591602001919060010190611480565b506114a79291506114cb565b5090565b8154818355818111156104c1576000838152602090206104c19181019083015b61036891905b808211156114a757600081556001016114d1565b803561052181612135565b600082601f83011261150157600080fd5b813561151461150f82612063565b61203c565b9150818183526020840193506020810190508385602084028201111561153957600080fd5b60005b83811015611565578161154f88826114e5565b845250602092830192919091019060010161153c565b5050505092915050565b600082601f83011261158057600080fd5b813561158e61150f82612063565b81815260209384019390925082018360005b8381101561156557813586016115b688826115ed565b84525060209283019291909101906001016115a0565b803561052181612149565b803561052181612152565b805161052181612152565b600082601f8301126115fe57600080fd5b813561160c61150f82612084565b9150808252602083016020830185838301111561162857600080fd5b6116338382846120f3565b50505092915050565b80356105218161215b565b60006020828403121561165957600080fd5b6000610dcf84846114e5565b6000806040838503121561167857600080fd5b600061168485856114e5565b9250506020611695858286016114e5565b9150509250929050565b6000806000606084860312156116b457600080fd5b60006116c086866114e5565b93505060206116d1868287016114e5565b92505060406116e28682870161163c565b9150509250925092565b6000806000806080858703121561170257600080fd5b600061170e87876114e5565b945050602061171f878288016114e5565b93505060406117308782880161163c565b925050606085013567ffffffffffffffff81111561174d57600080fd5b611759878288016115ed565b91505092959194509250565b6000806040838503121561177857600080fd5b600061178485856114e5565b925050602083013567ffffffffffffffff8111156117a157600080fd5b6116958582860161156f565b600080604083850312156117c057600080fd5b60006117cc85856114e5565b9250506020611695858286016115cc565b600080604083850312156117f057600080fd5b60006117fc85856114e5565b925050602083013567ffffffffffffffff81111561181957600080fd5b611695858286016115ed565b6000806040838503121561183857600080fd5b600061184485856114e5565b92505060206116958582860161163c565b6000806040838503121561186857600080fd5b823567ffffffffffffffff81111561187f57600080fd5b611784858286016114f0565b60006020828403121561189d57600080fd5b6000610dcf84846115d7565b6000602082840312156118bb57600080fd5b6000610dcf84846115e2565b6000602082840312156118d957600080fd5b6000610dcf848461163c565b6118ee816120e2565b82525050565b6118ee816120b9565b6118ee816120c4565b6000611911826120ac565b61191b81856120b0565b935061192b8185602086016120ff565b6119348161212b565b9093019392505050565b600061194b602b836120b0565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b60006119986032836120b0565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006119ec601c836120b0565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000611a256024836120b0565b7f756e6d61746368656420726563697069656e7420616e6420696e7374616e63658152632069647360e01b602082015260400192915050565b6000611a6b6024836120b0565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000611ab16019836120b0565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000611aea601e836120b0565b7f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815260200192915050565b6000611b23602c836120b0565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000611b716038836120b0565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000611bd0602a836120b0565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000611c1c6029836120b0565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000611c676020836120b0565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000611ca0602c836120b0565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000611cee6029836120b0565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000611d396021836120b0565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000611d7c6031836120b0565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000611dcf602c836120b0565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000611e1d6025836120b0565b7f4552433732313a206275726e206f6620746f6b656e2074686174206973206e6f8152643a1037bbb760d91b602082015260400192915050565b6118ee81610368565b6020810161052182846118f4565b60808101611e7c82876118e5565b611e8960208301866118f4565b611e966040830185611e57565b8181036060830152611ea88184611906565b9695505050505050565b60608101611ec082866118f4565b611ecd60208301856118f4565b8181036040830152611edf8184611906565b95945050505050565b6020810161052182846118fd565b60208082528101611f078184611906565b9392505050565b602080825281016105218161193e565b602080825281016105218161198b565b60208082528101610521816119df565b6020808252810161052181611a18565b6020808252810161052181611a5e565b6020808252810161052181611aa4565b6020808252810161052181611add565b6020808252810161052181611b16565b6020808252810161052181611b64565b6020808252810161052181611bc3565b6020808252810161052181611c0f565b6020808252810161052181611c5a565b6020808252810161052181611c93565b6020808252810161052181611ce1565b6020808252810161052181611d2c565b6020808252810161052181611d6f565b6020808252810161052181611dc2565b6020808252810161052181611e10565b602081016105218284611e57565b60405181810167ffffffffffffffff8111828210171561205b57600080fd5b604052919050565b600067ffffffffffffffff82111561207a57600080fd5b5060209081020190565b600067ffffffffffffffff82111561209b57600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b6000610521826120d6565b151590565b6001600160e01b03191690565b6001600160a01b031690565b6000610521826000610521826120b9565b82818337506000910152565b60005b8381101561211a578181015183820152602001612102565b838111156108975750506000910152565b601f01601f191690565b61213e816120b9565b811461055457600080fd5b61213e816120c4565b61213e816120c9565b61213e8161036856fea365627a7a7231582072de420635e9ab21e9e7a214b58b33c9c39a380a01d5052b43880c9d6e8a9f906c6578706572696d656e74616cf564736f6c63430005100040
Published Contract:
pragma solidity 0.5.16; // compiled with: v0.5.16+commit.9c3226ce pragma experimental ABIEncoderV2; // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/utils/Address.sol /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract9s constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/math/SafeMath.sol /** * @dev Wrappers over Solidity9s arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it9s recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity9s `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity9s `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity9s `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 9a9 not being zero, but the // benefit is lost if 9b9 is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity9s `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn9t hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity9s `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } } // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/drafts/Counters.sol /** * @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;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the SafeMath * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library9s 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 { counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } /** * @dev Interface of the ERC165 standard, as defined in the * [EIP](https://eips.ethereum.org/EIPS/eip-165). * * 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 * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * 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); } /** * @dev Implementation of the `IERC165` interface. * * Contracts may inherit from this and call `_registerInterface` to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256(9supportsInterface(bytes4)9)) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it9s supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See `IERC165.supportsInterface`. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See `IERC165.supportsInterface`. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } /** * @dev Required interface of an ERC721 compliant contract. */ contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of NFTs in `owner`9s account. */ function balanceOf(address owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either `approve` or `setApproveForAll`. */ function safeTransferFrom(address from, address to, uint256 tokenId) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either `approve` or `setApproveForAll`. */ function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, uint256 tokenId) public; function getApproved(uint256 tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address owner, address operator) public view returns (bool); function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; } // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/token/ERC721/IERC721Receiver.sol /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a `safeTransfer`. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 contract address is always the message sender. * @param operator The address which called `safeTransferFrom` function * @param from The address which previously owned the token * @param tokenId The NFT identifier which is being transferred * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4); } // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/token/ERC721/ERC721.sol contract ERC721 is ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) private _tokenOwner; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to number of owned token mapping (address => Counters.Counter) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /* * bytes4(keccak256(9balanceOf(address)9)) == 0x70a08231 * bytes4(keccak256(9ownerOf(uint256)9)) == 0x6352211e * bytes4(keccak256(9approve(address,uint256)9)) == 0x095ea7b3 * bytes4(keccak256(9getApproved(uint256)9)) == 0x081812fc * bytes4(keccak256(9setApprovalForAll(address,bool)9)) == 0xa22cb465 * bytes4(keccak256(9isApprovedForAll(address,address)9)) == 0xe985e9c * bytes4(keccak256(9transferFrom(address,address,uint256)9)) == 0x23b872dd * bytes4(keccak256(9safeTransferFrom(address,address,uint256)9)) == 0x42842e0e * bytes4(keccak256(9safeTransferFrom(address,address,uint256,bytes)9)) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; constructor () public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); } /** * @dev Gets the balance of the specified address. * @param owner address to query the balance of * @return uint256 representing the amount owned by the passed address */ function balanceOf(address owner) public view returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _ownedTokensCount[owner].current(); } /** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return address currently marked as the owner of the given token ID */ function ownerOf(uint256 tokenId) public view returns (address) { address owner = _tokenOwner[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param to address to be approved for the given token ID * @param tokenId uint256 ID of the token to be approved */ function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(msg.sender == owner || isApprovedForAll(owner, msg.sender), "ERC721: approve caller is not owner nor approved for all" ); _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */ function getApproved(uint256 tokenId) public view returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf. * @param to operator address to set the approval * @param approved representing the status of the approval to be set */ function setApprovalForAll(address to, bool approved) public { require(to != msg.sender, "ERC721: approve to caller"); _operatorApprovals[msg.sender][to] = approved; emit ApprovalForAll(msg.sender, to, approved); } /** * @dev Tells whether an operator is approved by a given owner. * @param owner owner address which you want to query the approval of * @param operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Transfers the ownership of a given token ID to another address. * Usage of this method is discouraged, use `safeTransferFrom` whenever possible. * Requires the msg.sender to be the owner, approved, or operator. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function transferFrom(address from, address to, uint256 tokenId) public { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved"); _transferFrom(from, to, tokenId); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public { transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); } /** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own"); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * @param tokenId uint256 ID of the token being burned */ function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _ownedTokensCount[to].increment(); _tokenOwner[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Internal function to invoke `onERC721Received` on a target address. * The call is not executed if the target address is not a contract. * * This function is deprecated. * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) internal returns (bool) { if (!to.isContract()) { return true; } bytes4 retval = IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data); return (retval == _ERC721_RECEIVED); } /** * @dev Private function to clear current approval of a given token ID. * @param tokenId uint256 ID of the token to be transferred */ function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Enumerable is IERC721 { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); } /** * @title ERC-721 Non-Fungible Token with optional enumeration extension logic * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => uint256[]) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /* * bytes4(keccak256(9totalSupply()9)) == 0x18160ddd * bytes4(keccak256(9tokenOfOwnerByIndex(address,uint256)9)) == 0x2f745c59 * bytes4(keccak256(9tokenByIndex(uint256)9)) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Constructor function. */ constructor () public { // register the supported interface to conform to ERC721Enumerable via ERC165 _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner. * @param owner address owning the tokens list to be accessed * @param index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return _allTokens.length; } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens. * @param index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 index) public view returns (uint256) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { super._transferFrom(from, to, tokenId); _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to address the beneficiary that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _addTokenToOwnerEnumeration(to, tokenId); _addTokenToAllTokensEnumeration(tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); _removeTokenFromOwnerEnumeration(owner, tokenId); // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund _ownedTokensIndex[tokenId] = 0; _removeTokenFromAllTokensEnumeration(tokenId); } /** * @dev Gets the list of token IDs of the requested owner. * @param owner address owning the tokens * @return uint256[] List of token IDs owned by the requested address */ function _tokensOfOwner(address owner) internal view returns (uint256[] storage) { return _ownedTokens[owner]; } /** * @dev Private function to add a token to this extension9s ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { _ownedTokensIndex[tokenId] = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); } /** * @dev Private function to add a token to this extension9s token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension9s ownership-tracking data structures. Note that * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from9s tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token9s index } // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that _ownedTokensIndex[tokenId] hasn9t been cleared: it still points to the old slot (now occupied by // lastTokenId, or just over the end of the array if the token was the last one). } /** * @dev Private function to remove a token from this extension9s token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 9if9 statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token9s index // This also deletes the contents at the last position of the array _allTokens.length--; _allTokensIndex[tokenId] = 0; } } contract TNT721 is ERC721Enumerable { struct Instance { // the owner of the contract at the time the token was minted address minter; // the original account the token was minted to address original_owner; // the id given to the token off chain string off_chain_id; } // the original creator of the contract address private _creator; // the current owner and minter of the contract address private _owner; // the uri of the off chain metadata of the contract string private _metadata_uri; // the base uri of the off chain metadata for each token string private _base_token_uri; Instance[] public instances; constructor (string memory metadataUri, string memory baseTokenUri) public { _creator = msg.sender; _owner = msg.sender; _metadata_uri = metadataUri; _base_token_uri = baseTokenUri; } function creator() public view returns (address) { return _creator; } function owner() public view returns (address) { return _owner; } function mint(address account, string memory instanceId) public { require(_owner == msg.sender); uint256 tokenId = instances.length; instances.push(Instance(_owner, account, instanceId)); _mint(account, tokenId); } function batchMint(address[] memory accounts, string[] memory instanceIds) public { require(accounts.length == instanceIds.length, "unmatched recipient and instance ids"); require(_owner == msg.sender); for (uint i = 0; i < instanceIds.length; i++) { address account = accounts[i]; string memory instanceId = instanceIds[i]; mint(account, instanceId); } } function mintSet(address account, string[] memory instanceIds) public { require(_owner == msg.sender); for (uint i = 0; i < instanceIds.length; i++) { string memory instanceId = instanceIds[i]; mint(account, instanceId); } } function transferOwnership(address newOwner) public { require(_owner == msg.sender); _owner = newOwner; } function burn(uint256 instanceId) public { _burn(ownerOf(instanceId), instanceId); } function contractURI() public view returns (string memory) { return _metadata_uri; } function baseTokenURI() public view returns (string memory) { return _base_token_uri; } function tokenURI(uint256 _tokenId) public view returns (string memory) { bytes memory _ba = bytes(_base_token_uri); bytes memory _bb = bytes(instances[_tokenId].off_chain_id); string memory ab = new string(_ba.length + _bb.length); bytes memory bab = bytes(ab); uint k = 0; for (uint i = 0; i < _ba.length; i++) bab[k++] = _ba[i]; for (uint i = 0; i < _bb.length; i++) bab[k++] = _bb[i]; return string(bab); } }
Contract ABI:
[{"inputs":[{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"string[]","name":"instanceIds","type":"string[]"}],"name":"batchMint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"instanceId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"instances","outputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"address","name":"original_owner","type":"address"},{"internalType":"string","name":"off_chain_id","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string","name":"instanceId","type":"string"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string[]","name":"instanceIds","type":"string[]"}],"name":"mintSet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]