From a9fb874cb333c6a9a1aea28c699b211d2d2cb626 Mon Sep 17 00:00:00 2001 From: silverpill Date: Thu, 21 Oct 2021 11:54:24 +0000 Subject: [PATCH] Update contracts --- config.yaml.example | 2 +- contracts/Manager.json | 188 +++++++++++++ contracts/MembershipToken.json | 422 +++++++++++++++++++++++++++++ contracts/Minter.json | 151 ----------- src/ethereum/nft.rs | 23 +- src/mastodon_api/instance/types.rs | 4 +- 6 files changed, 627 insertions(+), 163 deletions(-) create mode 100644 contracts/Manager.json create mode 100644 contracts/MembershipToken.json delete mode 100644 contracts/Minter.json diff --git a/config.yaml.example b/config.yaml.example index 1b09f61..1b8a783 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -17,7 +17,7 @@ ethereum_json_rpc_url: 'http://127.0.0.1:8545' # Block explorer base URL (must be compatible with https://eips.ethereum.org/EIPS/eip-3091) ethereum_explorer_url: null ethereum_contract: - address: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512' + address: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0' chain_id: 31337 signing_key: null diff --git a/contracts/Manager.json b/contracts/Manager.json new file mode 100644 index 0000000..09003f3 --- /dev/null +++ b/contracts/Manager.json @@ -0,0 +1,188 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "Manager", + "sourceName": "contracts/Manager.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "contract MembershipToken", + "name": "token_", + "type": "address" + }, + { + "internalType": "contract Collectible", + "name": "collectible_", + "type": "address" + }, + { + "internalType": "address", + "name": "authority_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "authority", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "collectible", + "outputs": [ + { + "internalType": "contract Collectible", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "isAllowedUser", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "membershipToken", + "outputs": [ + { + "internalType": "contract MembershipToken", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "string", + "name": "tokenURI", + "type": "string" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "mint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "transferCollectibleTokenOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x60e06040523480156200001157600080fd5b506040516200158938038062001589833981810160405281019062000037919062000216565b620000576200004b6200010560201b60201c565b6200010d60201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050505062000316565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001e281620002c8565b92915050565b600081519050620001f981620002e2565b92915050565b6000815190506200021081620002fc565b92915050565b6000806000606084860312156200022c57600080fd5b60006200023c86828701620001ff565b93505060206200024f86828701620001e8565b92505060406200026286828701620001d1565b9150509250925092565b60006200027982620002a8565b9050919050565b60006200028d826200026c565b9050919050565b6000620002a1826200026c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620002d3816200026c565b8114620002df57600080fd5b50565b620002ed8162000280565b8114620002f957600080fd5b50565b620003078162000294565b81146200031357600080fd5b50565b60805160601c60a05160601c60c05160601c61121e6200036b600039600081816102b701526106bb0152600081816103700152818161062d01526106df0152600081816104280152610500015261121e6000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639fe34d9f116100665780639fe34d9f146100fa578063bc37b5731461012a578063bf7e214f14610146578063ea05a7d014610164578063f2fde38b1461018257610093565b80635e5b7c181461009857806362ad351b146100b4578063715018a6146100d25780638da5cb5b146100dc575b600080fd5b6100b260048036038101906100ad91906109aa565b61019e565b005b6100bc610426565b6040516100c99190610d95565b60405180910390f35b6100da61044a565b005b6100e46104d2565b6040516100f19190610ccf565b60405180910390f35b610114600480360381019061010f9190610981565b6104fb565b6040516101219190610d1a565b60405180910390f35b610144600480360381019061013f9190610981565b6105af565b005b61014e6106b9565b60405161015b9190610ccf565b60405180910390f35b61016c6106dd565b6040516101799190610d7a565b60405180910390f35b61019c60048036038101906101979190610981565b610701565b005b6000463087876040516020016101b79493929190610c7a565b6040516020818303038152906040528051906020012090506000816040516020016101e29190610c54565b604051602081830303815290604052805190602001209050600115156001600083815260200190815260200160002060009054906101000a900460ff1615151415610262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025990610dd0565b60405180910390fd5b6000600182878787604051600081526020016040526040516102879493929190610d35565b6020604051602081039080840390855afa1580156102a9573d6000803e3d6000fd5b5050506020604051035190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033a90610e10565b60405180910390fd5b600180600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52189896040518363ffffffff1660e01b81526004016103c9929190610cea565b602060405180830381600087803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041b9190610a39565b505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6104526107f9565b73ffffffffffffffffffffffffffffffffffffffff166104706104d2565b73ffffffffffffffffffffffffffffffffffffffff16146104c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104bd90610df0565b60405180910390fd5b6104d06000610801565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016105579190610ccf565b60206040518083038186803b15801561056f57600080fd5b505afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610a39565b119050919050565b6105b76107f9565b73ffffffffffffffffffffffffffffffffffffffff166105d56104d2565b73ffffffffffffffffffffffffffffffffffffffff161461062b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062290610df0565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016106849190610ccf565b600060405180830381600087803b15801561069e57600080fd5b505af11580156106b2573d6000803e3d6000fd5b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6107096107f9565b73ffffffffffffffffffffffffffffffffffffffff166107276104d2565b73ffffffffffffffffffffffffffffffffffffffff161461077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490610df0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490610db0565b60405180910390fd5b6107f681610801565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006108d86108d384610e55565b610e30565b9050828152602081018484840111156108f057600080fd5b6108fb848285610f78565b509392505050565b6000813590506109128161118c565b92915050565b600081359050610927816111a3565b92915050565b600082601f83011261093e57600080fd5b813561094e8482602086016108c5565b91505092915050565b600081519050610966816111ba565b92915050565b60008135905061097b816111d1565b92915050565b60006020828403121561099357600080fd5b60006109a184828501610903565b91505092915050565b600080600080600060a086880312156109c257600080fd5b60006109d088828901610903565b955050602086013567ffffffffffffffff8111156109ed57600080fd5b6109f98882890161092d565b9450506040610a0a8882890161096c565b9350506060610a1b88828901610918565b9250506080610a2c88828901610918565b9150509295509295909350565b600060208284031215610a4b57600080fd5b6000610a5984828501610957565b91505092915050565b610a6b81610ead565b82525050565b610a82610a7d82610ead565b610feb565b82525050565b610a9181610ebf565b82525050565b610aa081610ecb565b82525050565b610ab7610ab282610ecb565b610ffd565b82525050565b610ac681610f0c565b82525050565b610add610ad882610f30565b610feb565b82525050565b610aec81610f54565b82525050565b6000610afd82610e86565b610b078185610e91565b9350610b17818560208601610f87565b610b2081611052565b840191505092915050565b6000610b3682610e86565b610b408185610ea2565b9350610b50818560208601610f87565b80840191505092915050565b6000610b69601c83610ea2565b9150610b7482611070565b601c82019050919050565b6000610b8c602683610e91565b9150610b9782611099565b604082019050919050565b6000610baf601783610e91565b9150610bba826110e8565b602082019050919050565b6000610bd2602083610e91565b9150610bdd82611111565b602082019050919050565b6000610bf5600483610ea2565b9150610c008261113a565b600482019050919050565b6000610c18601a83610e91565b9150610c2382611163565b602082019050919050565b610c3f610c3a82610ef5565b611019565b82525050565b610c4e81610eff565b82525050565b6000610c5f82610b5c565b9150610c6b8284610aa6565b60208201915081905092915050565b6000610c868287610c2e565b602082019150610c968286610acc565b601482019150610ca582610be8565b9150610cb18285610a71565b601482019150610cc18284610b2b565b915081905095945050505050565b6000602082019050610ce46000830184610a62565b92915050565b6000604082019050610cff6000830185610a62565b8181036020830152610d118184610af2565b90509392505050565b6000602082019050610d2f6000830184610a88565b92915050565b6000608082019050610d4a6000830187610a97565b610d576020830186610c45565b610d646040830185610a97565b610d716060830184610a97565b95945050505050565b6000602082019050610d8f6000830184610abd565b92915050565b6000602082019050610daa6000830184610ae3565b92915050565b60006020820190508181036000830152610dc981610b7f565b9050919050565b60006020820190508181036000830152610de981610ba2565b9050919050565b60006020820190508181036000830152610e0981610bc5565b9050919050565b60006020820190508181036000830152610e2981610c0b565b9050919050565b6000610e3a610e4b565b9050610e468282610fba565b919050565b6000604051905090565b600067ffffffffffffffff821115610e7057610e6f611023565b5b610e7982611052565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610eb882610ed5565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000610f1782610f1e565b9050919050565b6000610f2982610ed5565b9050919050565b6000610f3b82610f42565b9050919050565b6000610f4d82610ed5565b9050919050565b6000610f5f82610f66565b9050919050565b6000610f7182610ed5565b9050919050565b82818337600083830152505050565b60005b83811015610fa5578082015181840152602081019050610f8a565b83811115610fb4576000848401525b50505050565b610fc382611052565b810181811067ffffffffffffffff82111715610fe257610fe1611023565b5b80604052505050565b6000610ff682611007565b9050919050565b6000819050919050565b600061101282611063565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20616c7265616479206d696e746564000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6d696e7400000000000000000000000000000000000000000000000000000000600082015250565b7f4d616e616765723a20696e76616c6964207369676e6174757265000000000000600082015250565b61119581610ead565b81146111a057600080fd5b50565b6111ac81610ecb565b81146111b757600080fd5b50565b6111c381610ef5565b81146111ce57600080fd5b50565b6111da81610eff565b81146111e557600080fd5b5056fea2646970667358221220b64ae4be33b44e73bbc91659b2f9387f98d00010a685c08b63705079f8247c0064736f6c63430008040033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639fe34d9f116100665780639fe34d9f146100fa578063bc37b5731461012a578063bf7e214f14610146578063ea05a7d014610164578063f2fde38b1461018257610093565b80635e5b7c181461009857806362ad351b146100b4578063715018a6146100d25780638da5cb5b146100dc575b600080fd5b6100b260048036038101906100ad91906109aa565b61019e565b005b6100bc610426565b6040516100c99190610d95565b60405180910390f35b6100da61044a565b005b6100e46104d2565b6040516100f19190610ccf565b60405180910390f35b610114600480360381019061010f9190610981565b6104fb565b6040516101219190610d1a565b60405180910390f35b610144600480360381019061013f9190610981565b6105af565b005b61014e6106b9565b60405161015b9190610ccf565b60405180910390f35b61016c6106dd565b6040516101799190610d7a565b60405180910390f35b61019c60048036038101906101979190610981565b610701565b005b6000463087876040516020016101b79493929190610c7a565b6040516020818303038152906040528051906020012090506000816040516020016101e29190610c54565b604051602081830303815290604052805190602001209050600115156001600083815260200190815260200160002060009054906101000a900460ff1615151415610262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025990610dd0565b60405180910390fd5b6000600182878787604051600081526020016040526040516102879493929190610d35565b6020604051602081039080840390855afa1580156102a9573d6000803e3d6000fd5b5050506020604051035190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033a90610e10565b60405180910390fd5b600180600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52189896040518363ffffffff1660e01b81526004016103c9929190610cea565b602060405180830381600087803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041b9190610a39565b505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6104526107f9565b73ffffffffffffffffffffffffffffffffffffffff166104706104d2565b73ffffffffffffffffffffffffffffffffffffffff16146104c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104bd90610df0565b60405180910390fd5b6104d06000610801565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016105579190610ccf565b60206040518083038186803b15801561056f57600080fd5b505afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610a39565b119050919050565b6105b76107f9565b73ffffffffffffffffffffffffffffffffffffffff166105d56104d2565b73ffffffffffffffffffffffffffffffffffffffff161461062b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062290610df0565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016106849190610ccf565b600060405180830381600087803b15801561069e57600080fd5b505af11580156106b2573d6000803e3d6000fd5b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6107096107f9565b73ffffffffffffffffffffffffffffffffffffffff166107276104d2565b73ffffffffffffffffffffffffffffffffffffffff161461077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490610df0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490610db0565b60405180910390fd5b6107f681610801565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006108d86108d384610e55565b610e30565b9050828152602081018484840111156108f057600080fd5b6108fb848285610f78565b509392505050565b6000813590506109128161118c565b92915050565b600081359050610927816111a3565b92915050565b600082601f83011261093e57600080fd5b813561094e8482602086016108c5565b91505092915050565b600081519050610966816111ba565b92915050565b60008135905061097b816111d1565b92915050565b60006020828403121561099357600080fd5b60006109a184828501610903565b91505092915050565b600080600080600060a086880312156109c257600080fd5b60006109d088828901610903565b955050602086013567ffffffffffffffff8111156109ed57600080fd5b6109f98882890161092d565b9450506040610a0a8882890161096c565b9350506060610a1b88828901610918565b9250506080610a2c88828901610918565b9150509295509295909350565b600060208284031215610a4b57600080fd5b6000610a5984828501610957565b91505092915050565b610a6b81610ead565b82525050565b610a82610a7d82610ead565b610feb565b82525050565b610a9181610ebf565b82525050565b610aa081610ecb565b82525050565b610ab7610ab282610ecb565b610ffd565b82525050565b610ac681610f0c565b82525050565b610add610ad882610f30565b610feb565b82525050565b610aec81610f54565b82525050565b6000610afd82610e86565b610b078185610e91565b9350610b17818560208601610f87565b610b2081611052565b840191505092915050565b6000610b3682610e86565b610b408185610ea2565b9350610b50818560208601610f87565b80840191505092915050565b6000610b69601c83610ea2565b9150610b7482611070565b601c82019050919050565b6000610b8c602683610e91565b9150610b9782611099565b604082019050919050565b6000610baf601783610e91565b9150610bba826110e8565b602082019050919050565b6000610bd2602083610e91565b9150610bdd82611111565b602082019050919050565b6000610bf5600483610ea2565b9150610c008261113a565b600482019050919050565b6000610c18601a83610e91565b9150610c2382611163565b602082019050919050565b610c3f610c3a82610ef5565b611019565b82525050565b610c4e81610eff565b82525050565b6000610c5f82610b5c565b9150610c6b8284610aa6565b60208201915081905092915050565b6000610c868287610c2e565b602082019150610c968286610acc565b601482019150610ca582610be8565b9150610cb18285610a71565b601482019150610cc18284610b2b565b915081905095945050505050565b6000602082019050610ce46000830184610a62565b92915050565b6000604082019050610cff6000830185610a62565b8181036020830152610d118184610af2565b90509392505050565b6000602082019050610d2f6000830184610a88565b92915050565b6000608082019050610d4a6000830187610a97565b610d576020830186610c45565b610d646040830185610a97565b610d716060830184610a97565b95945050505050565b6000602082019050610d8f6000830184610abd565b92915050565b6000602082019050610daa6000830184610ae3565b92915050565b60006020820190508181036000830152610dc981610b7f565b9050919050565b60006020820190508181036000830152610de981610ba2565b9050919050565b60006020820190508181036000830152610e0981610bc5565b9050919050565b60006020820190508181036000830152610e2981610c0b565b9050919050565b6000610e3a610e4b565b9050610e468282610fba565b919050565b6000604051905090565b600067ffffffffffffffff821115610e7057610e6f611023565b5b610e7982611052565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610eb882610ed5565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000610f1782610f1e565b9050919050565b6000610f2982610ed5565b9050919050565b6000610f3b82610f42565b9050919050565b6000610f4d82610ed5565b9050919050565b6000610f5f82610f66565b9050919050565b6000610f7182610ed5565b9050919050565b82818337600083830152505050565b60005b83811015610fa5578082015181840152602081019050610f8a565b83811115610fb4576000848401525b50505050565b610fc382611052565b810181811067ffffffffffffffff82111715610fe257610fe1611023565b5b80604052505050565b6000610ff682611007565b9050919050565b6000819050919050565b600061101282611063565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20616c7265616479206d696e746564000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6d696e7400000000000000000000000000000000000000000000000000000000600082015250565b7f4d616e616765723a20696e76616c6964207369676e6174757265000000000000600082015250565b61119581610ead565b81146111a057600080fd5b50565b6111ac81610ecb565b81146111b757600080fd5b50565b6111c381610ef5565b81146111ce57600080fd5b50565b6111da81610eff565b81146111e557600080fd5b5056fea2646970667358221220b64ae4be33b44e73bbc91659b2f9387f98d00010a685c08b63705079f8247c0064736f6c63430008040033", + "linkReferences": {}, + "deployedLinkReferences": {} +} diff --git a/contracts/MembershipToken.json b/contracts/MembershipToken.json new file mode 100644 index 0000000..4fa9e96 --- /dev/null +++ b/contracts/MembershipToken.json @@ -0,0 +1,422 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "MembershipToken", + "sourceName": "contracts/MembershipToken.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + } + ], + "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": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "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" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "mint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "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": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x60806040523480156200001157600080fd5b5060405162002e3638038062002e36833981810160405281019062000037919062000285565b818181600090805190602001906200005192919062000163565b5080600190805190602001906200006a92919062000163565b5050506200008d620000816200009560201b60201c565b6200009d60201b60201c565b505062000468565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000171906200038d565b90600052602060002090601f016020900481019282620001955760008555620001e1565b82601f10620001b057805160ff1916838001178555620001e1565b82800160010185558215620001e1579182015b82811115620001e0578251825591602001919060010190620001c3565b5b509050620001f09190620001f4565b5090565b5b808211156200020f576000816000905550600101620001f5565b5090565b60006200022a620002248462000321565b620002f8565b9050828152602081018484840111156200024357600080fd5b6200025084828562000357565b509392505050565b600082601f8301126200026a57600080fd5b81516200027c84826020860162000213565b91505092915050565b600080604083850312156200029957600080fd5b600083015167ffffffffffffffff811115620002b457600080fd5b620002c28582860162000258565b925050602083015167ffffffffffffffff811115620002e057600080fd5b620002ee8582860162000258565b9150509250929050565b60006200030462000317565b9050620003128282620003c3565b919050565b6000604051905090565b600067ffffffffffffffff8211156200033f576200033e62000428565b5b6200034a8262000457565b9050602081019050919050565b60005b83811015620003775780820151818401526020810190506200035a565b8381111562000387576000848401525b50505050565b60006002820490506001821680620003a657607f821691505b60208210811415620003bd57620003bc620003f9565b5b50919050565b620003ce8262000457565b810181811067ffffffffffffffff82111715620003f057620003ef62000428565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6129be80620004786000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a2578063a22cb46511610071578063a22cb465146102a4578063b88d4fde146102c0578063c87b56dd146102dc578063e985e9c51461030c578063f2fde38b1461033c5761010b565b806370a082311461022e578063715018a61461025e5780638da5cb5b1461026857806395d89b41146102865761010b565b806323b872dd116100de57806323b872dd146101aa57806342842e0e146101c65780636352211e146101e25780636a627842146102125761010b565b806301ffc9a71461011057806306fdde0314610140578063081812fc1461015e578063095ea7b31461018e575b600080fd5b61012a60048036038101906101259190611ac2565b610358565b6040516101379190611ec8565b60405180910390f35b61014861043a565b6040516101559190611ee3565b60405180910390f35b61017860048036038101906101739190611b14565b6104cc565b6040516101859190611e61565b60405180910390f35b6101a860048036038101906101a39190611a86565b610551565b005b6101c460048036038101906101bf9190611980565b610669565b005b6101e060048036038101906101db9190611980565b6106c9565b005b6101fc60048036038101906101f79190611b14565b6106e9565b6040516102099190611e61565b60405180910390f35b61022c6004803603810190610227919061191b565b61079b565b005b6102486004803603810190610243919061191b565b610888565b6040516102559190612105565b60405180910390f35b610266610940565b005b6102706109c8565b60405161027d9190611e61565b60405180910390f35b61028e6109f2565b60405161029b9190611ee3565b60405180910390f35b6102be60048036038101906102b99190611a4a565b610a84565b005b6102da60048036038101906102d591906119cf565b610c05565b005b6102f660048036038101906102f19190611b14565b610c67565b6040516103039190611ee3565b60405180910390f35b61032660048036038101906103219190611944565b610d0e565b6040516103339190611ec8565b60405180910390f35b6103566004803603810190610351919061191b565b610da2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061042357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610433575061043282610e9a565b5b9050919050565b6060600080546104499061232a565b80601f01602080910402602001604051908101604052809291908181526020018280546104759061232a565b80156104c25780601f10610497576101008083540402835291602001916104c2565b820191906000526020600020905b8154815290600101906020018083116104a557829003601f168201915b5050505050905090565b60006104d782610f04565b610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d90612045565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061055c826106e9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c4906120a5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166105ec610f70565b73ffffffffffffffffffffffffffffffffffffffff16148061061b575061061a81610615610f70565b610d0e565b5b61065a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065190611fc5565b60405180910390fd5b6106648383610f78565b505050565b61067a610674610f70565b82611031565b6106b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b0906120c5565b60405180910390fd5b6106c483838361110f565b505050565b6106e483838360405180602001604052806000815250610c05565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078990612005565b60405180910390fd5b80915050919050565b6107a3610f70565b73ffffffffffffffffffffffffffffffffffffffff166107c16109c8565b73ffffffffffffffffffffffffffffffffffffffff1614610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90612065565b60405180910390fd5b600061082282610888565b14610862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085990611fa5565b60405180910390fd5b61086c600761114a565b60006108786007611160565b9050610884828261116e565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f090611fe5565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610948610f70565b73ffffffffffffffffffffffffffffffffffffffff166109666109c8565b73ffffffffffffffffffffffffffffffffffffffff16146109bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b390612065565b60405180910390fd5b6109c6600061118c565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610a019061232a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2d9061232a565b8015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b610a8c610f70565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190611f65565b60405180910390fd5b8060056000610b07610f70565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610bb4610f70565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bf99190611ec8565b60405180910390a35050565b610c16610c10610f70565b83611031565b610c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4c906120c5565b60405180910390fd5b610c6184848484611252565b50505050565b6060610c7282610f04565b610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca890612085565b60405180910390fd5b6000610cbb6112ae565b90506000815111610cdb5760405180602001604052806000815250610d06565b80610ce5846112c5565b604051602001610cf6929190611e3d565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610daa610f70565b73ffffffffffffffffffffffffffffffffffffffff16610dc86109c8565b73ffffffffffffffffffffffffffffffffffffffff1614610e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1590612065565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590611f25565b60405180910390fd5b610e978161118c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610feb836106e9565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061103c82610f04565b61107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290611f85565b60405180910390fd5b6000611086836106e9565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806110f557508373ffffffffffffffffffffffffffffffffffffffff166110dd846104cc565b73ffffffffffffffffffffffffffffffffffffffff16145b8061110657506111058185610d0e565b5b91505092915050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611141906120e5565b60405180910390fd5b6001816000016000828254019250508190555050565b600081600001549050919050565b611188828260405180602001604052806000815250611472565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61125d84848461110f565b611269848484846114cd565b6112a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129f90611f05565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060600082141561130d576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061146d565b600082905060005b6000821461133f5780806113289061238d565b915050600a82611338919061220f565b9150611315565b60008167ffffffffffffffff811115611381577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113b35781602001600182028036833780820191505090505b5090505b60008514611466576001826113cc9190612240565b9150600a856113db91906123d6565b60306113e791906121b9565b60f81b818381518110611423577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561145f919061220f565b94506113b7565b8093505050505b919050565b61147c8383611664565b61148960008484846114cd565b6114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90611f05565b60405180910390fd5b505050565b60006114ee8473ffffffffffffffffffffffffffffffffffffffff16611832565b15611657578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611517610f70565b8786866040518563ffffffff1660e01b81526004016115399493929190611e7c565b602060405180830381600087803b15801561155357600080fd5b505af192505050801561158457506040513d601f19601f820116820180604052508101906115819190611aeb565b60015b611607573d80600081146115b4576040519150601f19603f3d011682016040523d82523d6000602084013e6115b9565b606091505b506000815114156115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f690611f05565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061165c565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cb90612025565b60405180910390fd5b6116dd81610f04565b1561171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490611f45565b60405180910390fd5b61172960008383611845565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461177991906121b9565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b600061185d61185884612145565b612120565b90508281526020810184848401111561187557600080fd5b6118808482856122e8565b509392505050565b6000813590506118978161292c565b92915050565b6000813590506118ac81612943565b92915050565b6000813590506118c18161295a565b92915050565b6000815190506118d68161295a565b92915050565b600082601f8301126118ed57600080fd5b81356118fd84826020860161184a565b91505092915050565b60008135905061191581612971565b92915050565b60006020828403121561192d57600080fd5b600061193b84828501611888565b91505092915050565b6000806040838503121561195757600080fd5b600061196585828601611888565b925050602061197685828601611888565b9150509250929050565b60008060006060848603121561199557600080fd5b60006119a386828701611888565b93505060206119b486828701611888565b92505060406119c586828701611906565b9150509250925092565b600080600080608085870312156119e557600080fd5b60006119f387828801611888565b9450506020611a0487828801611888565b9350506040611a1587828801611906565b925050606085013567ffffffffffffffff811115611a3257600080fd5b611a3e878288016118dc565b91505092959194509250565b60008060408385031215611a5d57600080fd5b6000611a6b85828601611888565b9250506020611a7c8582860161189d565b9150509250929050565b60008060408385031215611a9957600080fd5b6000611aa785828601611888565b9250506020611ab885828601611906565b9150509250929050565b600060208284031215611ad457600080fd5b6000611ae2848285016118b2565b91505092915050565b600060208284031215611afd57600080fd5b6000611b0b848285016118c7565b91505092915050565b600060208284031215611b2657600080fd5b6000611b3484828501611906565b91505092915050565b611b4681612274565b82525050565b611b5581612286565b82525050565b6000611b6682612176565b611b70818561218c565b9350611b808185602086016122f7565b611b89816124c3565b840191505092915050565b6000611b9f82612181565b611ba9818561219d565b9350611bb98185602086016122f7565b611bc2816124c3565b840191505092915050565b6000611bd882612181565b611be281856121ae565b9350611bf28185602086016122f7565b80840191505092915050565b6000611c0b60328361219d565b9150611c16826124d4565b604082019050919050565b6000611c2e60268361219d565b9150611c3982612523565b604082019050919050565b6000611c51601c8361219d565b9150611c5c82612572565b602082019050919050565b6000611c7460198361219d565b9150611c7f8261259b565b602082019050919050565b6000611c97602c8361219d565b9150611ca2826125c4565b604082019050919050565b6000611cba60258361219d565b9150611cc582612613565b604082019050919050565b6000611cdd60388361219d565b9150611ce882612662565b604082019050919050565b6000611d00602a8361219d565b9150611d0b826126b1565b604082019050919050565b6000611d2360298361219d565b9150611d2e82612700565b604082019050919050565b6000611d4660208361219d565b9150611d518261274f565b602082019050919050565b6000611d69602c8361219d565b9150611d7482612778565b604082019050919050565b6000611d8c60208361219d565b9150611d97826127c7565b602082019050919050565b6000611daf602f8361219d565b9150611dba826127f0565b604082019050919050565b6000611dd260218361219d565b9150611ddd8261283f565b604082019050919050565b6000611df560318361219d565b9150611e008261288e565b604082019050919050565b6000611e18602a8361219d565b9150611e23826128dd565b604082019050919050565b611e37816122de565b82525050565b6000611e498285611bcd565b9150611e558284611bcd565b91508190509392505050565b6000602082019050611e766000830184611b3d565b92915050565b6000608082019050611e916000830187611b3d565b611e9e6020830186611b3d565b611eab6040830185611e2e565b8181036060830152611ebd8184611b5b565b905095945050505050565b6000602082019050611edd6000830184611b4c565b92915050565b60006020820190508181036000830152611efd8184611b94565b905092915050565b60006020820190508181036000830152611f1e81611bfe565b9050919050565b60006020820190508181036000830152611f3e81611c21565b9050919050565b60006020820190508181036000830152611f5e81611c44565b9050919050565b60006020820190508181036000830152611f7e81611c67565b9050919050565b60006020820190508181036000830152611f9e81611c8a565b9050919050565b60006020820190508181036000830152611fbe81611cad565b9050919050565b60006020820190508181036000830152611fde81611cd0565b9050919050565b60006020820190508181036000830152611ffe81611cf3565b9050919050565b6000602082019050818103600083015261201e81611d16565b9050919050565b6000602082019050818103600083015261203e81611d39565b9050919050565b6000602082019050818103600083015261205e81611d5c565b9050919050565b6000602082019050818103600083015261207e81611d7f565b9050919050565b6000602082019050818103600083015261209e81611da2565b9050919050565b600060208201905081810360008301526120be81611dc5565b9050919050565b600060208201905081810360008301526120de81611de8565b9050919050565b600060208201905081810360008301526120fe81611e0b565b9050919050565b600060208201905061211a6000830184611e2e565b92915050565b600061212a61213b565b9050612136828261235c565b919050565b6000604051905090565b600067ffffffffffffffff8211156121605761215f612494565b5b612169826124c3565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006121c4826122de565b91506121cf836122de565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561220457612203612407565b5b828201905092915050565b600061221a826122de565b9150612225836122de565b92508261223557612234612436565b5b828204905092915050565b600061224b826122de565b9150612256836122de565b92508282101561226957612268612407565b5b828203905092915050565b600061227f826122be565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156123155780820151818401526020810190506122fa565b83811115612324576000848401525b50505050565b6000600282049050600182168061234257607f821691505b6020821081141561235657612355612465565b5b50919050565b612365826124c3565b810181811067ffffffffffffffff8211171561238457612383612494565b5b80604052505050565b6000612398826122de565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123cb576123ca612407565b5b600182019050919050565b60006123e1826122de565b91506123ec836122de565b9250826123fc576123fb612436565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d656d62657273686970546f6b656e3a20746f6b656e20616c7265616479206d60008201527f696e746564000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4d656d62657273686970546f6b656e3a207472616e736665727320617265206e60008201527f6f7420616c6c6f77656400000000000000000000000000000000000000000000602082015250565b61293581612274565b811461294057600080fd5b50565b61294c81612286565b811461295757600080fd5b50565b61296381612292565b811461296e57600080fd5b50565b61297a816122de565b811461298557600080fd5b5056fea264697066735822122086fbebd38db56b08fabf8f7c6cebdd7692a2cbbcc6d2433847e08b418563755864736f6c63430008040033", + "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a2578063a22cb46511610071578063a22cb465146102a4578063b88d4fde146102c0578063c87b56dd146102dc578063e985e9c51461030c578063f2fde38b1461033c5761010b565b806370a082311461022e578063715018a61461025e5780638da5cb5b1461026857806395d89b41146102865761010b565b806323b872dd116100de57806323b872dd146101aa57806342842e0e146101c65780636352211e146101e25780636a627842146102125761010b565b806301ffc9a71461011057806306fdde0314610140578063081812fc1461015e578063095ea7b31461018e575b600080fd5b61012a60048036038101906101259190611ac2565b610358565b6040516101379190611ec8565b60405180910390f35b61014861043a565b6040516101559190611ee3565b60405180910390f35b61017860048036038101906101739190611b14565b6104cc565b6040516101859190611e61565b60405180910390f35b6101a860048036038101906101a39190611a86565b610551565b005b6101c460048036038101906101bf9190611980565b610669565b005b6101e060048036038101906101db9190611980565b6106c9565b005b6101fc60048036038101906101f79190611b14565b6106e9565b6040516102099190611e61565b60405180910390f35b61022c6004803603810190610227919061191b565b61079b565b005b6102486004803603810190610243919061191b565b610888565b6040516102559190612105565b60405180910390f35b610266610940565b005b6102706109c8565b60405161027d9190611e61565b60405180910390f35b61028e6109f2565b60405161029b9190611ee3565b60405180910390f35b6102be60048036038101906102b99190611a4a565b610a84565b005b6102da60048036038101906102d591906119cf565b610c05565b005b6102f660048036038101906102f19190611b14565b610c67565b6040516103039190611ee3565b60405180910390f35b61032660048036038101906103219190611944565b610d0e565b6040516103339190611ec8565b60405180910390f35b6103566004803603810190610351919061191b565b610da2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061042357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610433575061043282610e9a565b5b9050919050565b6060600080546104499061232a565b80601f01602080910402602001604051908101604052809291908181526020018280546104759061232a565b80156104c25780601f10610497576101008083540402835291602001916104c2565b820191906000526020600020905b8154815290600101906020018083116104a557829003601f168201915b5050505050905090565b60006104d782610f04565b610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d90612045565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061055c826106e9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c4906120a5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166105ec610f70565b73ffffffffffffffffffffffffffffffffffffffff16148061061b575061061a81610615610f70565b610d0e565b5b61065a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065190611fc5565b60405180910390fd5b6106648383610f78565b505050565b61067a610674610f70565b82611031565b6106b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b0906120c5565b60405180910390fd5b6106c483838361110f565b505050565b6106e483838360405180602001604052806000815250610c05565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078990612005565b60405180910390fd5b80915050919050565b6107a3610f70565b73ffffffffffffffffffffffffffffffffffffffff166107c16109c8565b73ffffffffffffffffffffffffffffffffffffffff1614610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90612065565b60405180910390fd5b600061082282610888565b14610862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085990611fa5565b60405180910390fd5b61086c600761114a565b60006108786007611160565b9050610884828261116e565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f090611fe5565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610948610f70565b73ffffffffffffffffffffffffffffffffffffffff166109666109c8565b73ffffffffffffffffffffffffffffffffffffffff16146109bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b390612065565b60405180910390fd5b6109c6600061118c565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610a019061232a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2d9061232a565b8015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b610a8c610f70565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190611f65565b60405180910390fd5b8060056000610b07610f70565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610bb4610f70565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bf99190611ec8565b60405180910390a35050565b610c16610c10610f70565b83611031565b610c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4c906120c5565b60405180910390fd5b610c6184848484611252565b50505050565b6060610c7282610f04565b610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca890612085565b60405180910390fd5b6000610cbb6112ae565b90506000815111610cdb5760405180602001604052806000815250610d06565b80610ce5846112c5565b604051602001610cf6929190611e3d565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610daa610f70565b73ffffffffffffffffffffffffffffffffffffffff16610dc86109c8565b73ffffffffffffffffffffffffffffffffffffffff1614610e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1590612065565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590611f25565b60405180910390fd5b610e978161118c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610feb836106e9565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061103c82610f04565b61107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290611f85565b60405180910390fd5b6000611086836106e9565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806110f557508373ffffffffffffffffffffffffffffffffffffffff166110dd846104cc565b73ffffffffffffffffffffffffffffffffffffffff16145b8061110657506111058185610d0e565b5b91505092915050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611141906120e5565b60405180910390fd5b6001816000016000828254019250508190555050565b600081600001549050919050565b611188828260405180602001604052806000815250611472565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61125d84848461110f565b611269848484846114cd565b6112a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129f90611f05565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060600082141561130d576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061146d565b600082905060005b6000821461133f5780806113289061238d565b915050600a82611338919061220f565b9150611315565b60008167ffffffffffffffff811115611381577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113b35781602001600182028036833780820191505090505b5090505b60008514611466576001826113cc9190612240565b9150600a856113db91906123d6565b60306113e791906121b9565b60f81b818381518110611423577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561145f919061220f565b94506113b7565b8093505050505b919050565b61147c8383611664565b61148960008484846114cd565b6114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90611f05565b60405180910390fd5b505050565b60006114ee8473ffffffffffffffffffffffffffffffffffffffff16611832565b15611657578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611517610f70565b8786866040518563ffffffff1660e01b81526004016115399493929190611e7c565b602060405180830381600087803b15801561155357600080fd5b505af192505050801561158457506040513d601f19601f820116820180604052508101906115819190611aeb565b60015b611607573d80600081146115b4576040519150601f19603f3d011682016040523d82523d6000602084013e6115b9565b606091505b506000815114156115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f690611f05565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061165c565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cb90612025565b60405180910390fd5b6116dd81610f04565b1561171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490611f45565b60405180910390fd5b61172960008383611845565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461177991906121b9565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b600061185d61185884612145565b612120565b90508281526020810184848401111561187557600080fd5b6118808482856122e8565b509392505050565b6000813590506118978161292c565b92915050565b6000813590506118ac81612943565b92915050565b6000813590506118c18161295a565b92915050565b6000815190506118d68161295a565b92915050565b600082601f8301126118ed57600080fd5b81356118fd84826020860161184a565b91505092915050565b60008135905061191581612971565b92915050565b60006020828403121561192d57600080fd5b600061193b84828501611888565b91505092915050565b6000806040838503121561195757600080fd5b600061196585828601611888565b925050602061197685828601611888565b9150509250929050565b60008060006060848603121561199557600080fd5b60006119a386828701611888565b93505060206119b486828701611888565b92505060406119c586828701611906565b9150509250925092565b600080600080608085870312156119e557600080fd5b60006119f387828801611888565b9450506020611a0487828801611888565b9350506040611a1587828801611906565b925050606085013567ffffffffffffffff811115611a3257600080fd5b611a3e878288016118dc565b91505092959194509250565b60008060408385031215611a5d57600080fd5b6000611a6b85828601611888565b9250506020611a7c8582860161189d565b9150509250929050565b60008060408385031215611a9957600080fd5b6000611aa785828601611888565b9250506020611ab885828601611906565b9150509250929050565b600060208284031215611ad457600080fd5b6000611ae2848285016118b2565b91505092915050565b600060208284031215611afd57600080fd5b6000611b0b848285016118c7565b91505092915050565b600060208284031215611b2657600080fd5b6000611b3484828501611906565b91505092915050565b611b4681612274565b82525050565b611b5581612286565b82525050565b6000611b6682612176565b611b70818561218c565b9350611b808185602086016122f7565b611b89816124c3565b840191505092915050565b6000611b9f82612181565b611ba9818561219d565b9350611bb98185602086016122f7565b611bc2816124c3565b840191505092915050565b6000611bd882612181565b611be281856121ae565b9350611bf28185602086016122f7565b80840191505092915050565b6000611c0b60328361219d565b9150611c16826124d4565b604082019050919050565b6000611c2e60268361219d565b9150611c3982612523565b604082019050919050565b6000611c51601c8361219d565b9150611c5c82612572565b602082019050919050565b6000611c7460198361219d565b9150611c7f8261259b565b602082019050919050565b6000611c97602c8361219d565b9150611ca2826125c4565b604082019050919050565b6000611cba60258361219d565b9150611cc582612613565b604082019050919050565b6000611cdd60388361219d565b9150611ce882612662565b604082019050919050565b6000611d00602a8361219d565b9150611d0b826126b1565b604082019050919050565b6000611d2360298361219d565b9150611d2e82612700565b604082019050919050565b6000611d4660208361219d565b9150611d518261274f565b602082019050919050565b6000611d69602c8361219d565b9150611d7482612778565b604082019050919050565b6000611d8c60208361219d565b9150611d97826127c7565b602082019050919050565b6000611daf602f8361219d565b9150611dba826127f0565b604082019050919050565b6000611dd260218361219d565b9150611ddd8261283f565b604082019050919050565b6000611df560318361219d565b9150611e008261288e565b604082019050919050565b6000611e18602a8361219d565b9150611e23826128dd565b604082019050919050565b611e37816122de565b82525050565b6000611e498285611bcd565b9150611e558284611bcd565b91508190509392505050565b6000602082019050611e766000830184611b3d565b92915050565b6000608082019050611e916000830187611b3d565b611e9e6020830186611b3d565b611eab6040830185611e2e565b8181036060830152611ebd8184611b5b565b905095945050505050565b6000602082019050611edd6000830184611b4c565b92915050565b60006020820190508181036000830152611efd8184611b94565b905092915050565b60006020820190508181036000830152611f1e81611bfe565b9050919050565b60006020820190508181036000830152611f3e81611c21565b9050919050565b60006020820190508181036000830152611f5e81611c44565b9050919050565b60006020820190508181036000830152611f7e81611c67565b9050919050565b60006020820190508181036000830152611f9e81611c8a565b9050919050565b60006020820190508181036000830152611fbe81611cad565b9050919050565b60006020820190508181036000830152611fde81611cd0565b9050919050565b60006020820190508181036000830152611ffe81611cf3565b9050919050565b6000602082019050818103600083015261201e81611d16565b9050919050565b6000602082019050818103600083015261203e81611d39565b9050919050565b6000602082019050818103600083015261205e81611d5c565b9050919050565b6000602082019050818103600083015261207e81611d7f565b9050919050565b6000602082019050818103600083015261209e81611da2565b9050919050565b600060208201905081810360008301526120be81611dc5565b9050919050565b600060208201905081810360008301526120de81611de8565b9050919050565b600060208201905081810360008301526120fe81611e0b565b9050919050565b600060208201905061211a6000830184611e2e565b92915050565b600061212a61213b565b9050612136828261235c565b919050565b6000604051905090565b600067ffffffffffffffff8211156121605761215f612494565b5b612169826124c3565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006121c4826122de565b91506121cf836122de565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561220457612203612407565b5b828201905092915050565b600061221a826122de565b9150612225836122de565b92508261223557612234612436565b5b828204905092915050565b600061224b826122de565b9150612256836122de565b92508282101561226957612268612407565b5b828203905092915050565b600061227f826122be565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156123155780820151818401526020810190506122fa565b83811115612324576000848401525b50505050565b6000600282049050600182168061234257607f821691505b6020821081141561235657612355612465565b5b50919050565b612365826124c3565b810181811067ffffffffffffffff8211171561238457612383612494565b5b80604052505050565b6000612398826122de565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123cb576123ca612407565b5b600182019050919050565b60006123e1826122de565b91506123ec836122de565b9250826123fc576123fb612436565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d656d62657273686970546f6b656e3a20746f6b656e20616c7265616479206d60008201527f696e746564000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4d656d62657273686970546f6b656e3a207472616e736665727320617265206e60008201527f6f7420616c6c6f77656400000000000000000000000000000000000000000000602082015250565b61293581612274565b811461294057600080fd5b50565b61294c81612286565b811461295757600080fd5b50565b61296381612292565b811461296e57600080fd5b50565b61297a816122de565b811461298557600080fd5b5056fea264697066735822122086fbebd38db56b08fabf8f7c6cebdd7692a2cbbcc6d2433847e08b418563755864736f6c63430008040033", + "linkReferences": {}, + "deployedLinkReferences": {} +} diff --git a/contracts/Minter.json b/contracts/Minter.json deleted file mode 100644 index 06acc74..0000000 --- a/contracts/Minter.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "Minter", - "sourceName": "contracts/Minter.sol", - "abi": [ - { - "inputs": [ - { - "internalType": "contract Collectible", - "name": "token_", - "type": "address" - }, - { - "internalType": "address", - "name": "authority_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "authority", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "string", - "name": "tokenURI", - "type": "string" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [ - { - "internalType": "contract Collectible", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "transferTokenOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x60c06040523480156200001157600080fd5b5060405162001323380380620013238339818101604052810190620000379190620001c7565b620000576200004b620000cd60201b60201c565b620000d560201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505062000284565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001aa8162000250565b92915050565b600081519050620001c1816200026a565b92915050565b60008060408385031215620001db57600080fd5b6000620001eb85828601620001b0565b9250506020620001fe8582860162000199565b9150509250929050565b6000620002158262000230565b9050919050565b6000620002298262000208565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200025b8162000208565b81146200026757600080fd5b50565b62000275816200021c565b81146200028157600080fd5b50565b60805160601c60a05160601c61105e620002c56000396000818161035d015261057f0152600081816101b801528181610416015261069b015261105e6000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100c4578063bf7e214f146100e2578063f2fde38b14610100578063fc0c546a1461011c5761007d565b806321e6b53d146100825780635e5b7c181461009e578063715018a6146100ba575b600080fd5b61009c60048036038101906100979190610845565b61013a565b005b6100b860048036038101906100b3919061086e565b610244565b005b6100c26104cc565b005b6100cc610554565b6040516100d99190610b75565b60405180910390f35b6100ea61057d565b6040516100f79190610b75565b60405180910390f35b61011a60048036038101906101159190610845565b6105a1565b005b610124610699565b6040516101319190610c05565b60405180910390f35b6101426106bd565b73ffffffffffffffffffffffffffffffffffffffff16610160610554565b73ffffffffffffffffffffffffffffffffffffffff16146101b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ad90610c80565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b815260040161020f9190610b75565b600060405180830381600087803b15801561022957600080fd5b505af115801561023d573d6000803e3d6000fd5b5050505050565b60004630878760405160200161025d9493929190610b20565b6040516020818303038152906040528051906020012090506000816040516020016102889190610afa565b604051602081830303815290604052805190602001209050600115156001600083815260200190815260200160002060009054906101000a900460ff1615151415610308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ff90610c60565b60405180910390fd5b60006001828787876040516000815260200160405260405161032d9493929190610bc0565b6020604051602081039080840390855afa15801561034f573d6000803e3d6000fd5b5050506020604051035190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146103e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e090610c20565b60405180910390fd5b600180600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52189896040518363ffffffff1660e01b815260040161046f929190610b90565b602060405180830381600087803b15801561048957600080fd5b505af115801561049d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c191906108fd565b505050505050505050565b6104d46106bd565b73ffffffffffffffffffffffffffffffffffffffff166104f2610554565b73ffffffffffffffffffffffffffffffffffffffff1614610548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053f90610c80565b60405180910390fd5b61055260006106c5565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6105a96106bd565b73ffffffffffffffffffffffffffffffffffffffff166105c7610554565b73ffffffffffffffffffffffffffffffffffffffff161461061d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061490610c80565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068490610c40565b60405180910390fd5b610696816106c5565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061079c61079784610cc5565b610ca0565b9050828152602081018484840111156107b457600080fd5b6107bf848285610db8565b509392505050565b6000813590506107d681610fcc565b92915050565b6000813590506107eb81610fe3565b92915050565b600082601f83011261080257600080fd5b8135610812848260208601610789565b91505092915050565b60008151905061082a81610ffa565b92915050565b60008135905061083f81611011565b92915050565b60006020828403121561085757600080fd5b6000610865848285016107c7565b91505092915050565b600080600080600060a0868803121561088657600080fd5b6000610894888289016107c7565b955050602086013567ffffffffffffffff8111156108b157600080fd5b6108bd888289016107f1565b94505060406108ce88828901610830565b93505060606108df888289016107dc565b92505060806108f0888289016107dc565b9150509295509295909350565b60006020828403121561090f57600080fd5b600061091d8482850161081b565b91505092915050565b61092f81610d1d565b82525050565b61094661094182610d1d565b610e2b565b82525050565b61095581610d2f565b82525050565b61096c61096782610d2f565b610e3d565b82525050565b61097b81610d70565b82525050565b61099261098d82610d94565b610e2b565b82525050565b60006109a382610cf6565b6109ad8185610d01565b93506109bd818560208601610dc7565b6109c681610e92565b840191505092915050565b60006109dc82610cf6565b6109e68185610d12565b93506109f6818560208601610dc7565b80840191505092915050565b6000610a0f601c83610d12565b9150610a1a82610eb0565b601c82019050919050565b6000610a32601983610d01565b9150610a3d82610ed9565b602082019050919050565b6000610a55602683610d01565b9150610a6082610f02565b604082019050919050565b6000610a78601683610d01565b9150610a8382610f51565b602082019050919050565b6000610a9b602083610d01565b9150610aa682610f7a565b602082019050919050565b6000610abe600483610d12565b9150610ac982610fa3565b600482019050919050565b610ae5610ae082610d59565b610e59565b82525050565b610af481610d63565b82525050565b6000610b0582610a02565b9150610b11828461095b565b60208201915081905092915050565b6000610b2c8287610ad4565b602082019150610b3c8286610981565b601482019150610b4b82610ab1565b9150610b578285610935565b601482019150610b6782846109d1565b915081905095945050505050565b6000602082019050610b8a6000830184610926565b92915050565b6000604082019050610ba56000830185610926565b8181036020830152610bb78184610998565b90509392505050565b6000608082019050610bd5600083018761094c565b610be26020830186610aeb565b610bef604083018561094c565b610bfc606083018461094c565b95945050505050565b6000602082019050610c1a6000830184610972565b92915050565b60006020820190508181036000830152610c3981610a25565b9050919050565b60006020820190508181036000830152610c5981610a48565b9050919050565b60006020820190508181036000830152610c7981610a6b565b9050919050565b60006020820190508181036000830152610c9981610a8e565b9050919050565b6000610caa610cbb565b9050610cb68282610dfa565b919050565b6000604051905090565b600067ffffffffffffffff821115610ce057610cdf610e63565b5b610ce982610e92565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610d2882610d39565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000610d7b82610d82565b9050919050565b6000610d8d82610d39565b9050919050565b6000610d9f82610da6565b9050919050565b6000610db182610d39565b9050919050565b82818337600083830152505050565b60005b83811015610de5578082015181840152602081019050610dca565b83811115610df4576000848401525b50505050565b610e0382610e92565b810181811067ffffffffffffffff82111715610e2257610e21610e63565b5b80604052505050565b6000610e3682610e47565b9050919050565b6000819050919050565b6000610e5282610ea3565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4d696e7465723a20696e76616c6964207369676e617475726500000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d696e7465723a20616c7265616479206d696e74656400000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6d696e7400000000000000000000000000000000000000000000000000000000600082015250565b610fd581610d1d565b8114610fe057600080fd5b50565b610fec81610d2f565b8114610ff757600080fd5b50565b61100381610d59565b811461100e57600080fd5b50565b61101a81610d63565b811461102557600080fd5b5056fea2646970667358221220dc905fe48fdfa15ef2f34b33a242665d78145271992215e171731c7f80edbf4f64736f6c63430008040033", - "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100c4578063bf7e214f146100e2578063f2fde38b14610100578063fc0c546a1461011c5761007d565b806321e6b53d146100825780635e5b7c181461009e578063715018a6146100ba575b600080fd5b61009c60048036038101906100979190610845565b61013a565b005b6100b860048036038101906100b3919061086e565b610244565b005b6100c26104cc565b005b6100cc610554565b6040516100d99190610b75565b60405180910390f35b6100ea61057d565b6040516100f79190610b75565b60405180910390f35b61011a60048036038101906101159190610845565b6105a1565b005b610124610699565b6040516101319190610c05565b60405180910390f35b6101426106bd565b73ffffffffffffffffffffffffffffffffffffffff16610160610554565b73ffffffffffffffffffffffffffffffffffffffff16146101b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ad90610c80565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b815260040161020f9190610b75565b600060405180830381600087803b15801561022957600080fd5b505af115801561023d573d6000803e3d6000fd5b5050505050565b60004630878760405160200161025d9493929190610b20565b6040516020818303038152906040528051906020012090506000816040516020016102889190610afa565b604051602081830303815290604052805190602001209050600115156001600083815260200190815260200160002060009054906101000a900460ff1615151415610308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ff90610c60565b60405180910390fd5b60006001828787876040516000815260200160405260405161032d9493929190610bc0565b6020604051602081039080840390855afa15801561034f573d6000803e3d6000fd5b5050506020604051035190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146103e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e090610c20565b60405180910390fd5b600180600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52189896040518363ffffffff1660e01b815260040161046f929190610b90565b602060405180830381600087803b15801561048957600080fd5b505af115801561049d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c191906108fd565b505050505050505050565b6104d46106bd565b73ffffffffffffffffffffffffffffffffffffffff166104f2610554565b73ffffffffffffffffffffffffffffffffffffffff1614610548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053f90610c80565b60405180910390fd5b61055260006106c5565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6105a96106bd565b73ffffffffffffffffffffffffffffffffffffffff166105c7610554565b73ffffffffffffffffffffffffffffffffffffffff161461061d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061490610c80565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068490610c40565b60405180910390fd5b610696816106c5565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061079c61079784610cc5565b610ca0565b9050828152602081018484840111156107b457600080fd5b6107bf848285610db8565b509392505050565b6000813590506107d681610fcc565b92915050565b6000813590506107eb81610fe3565b92915050565b600082601f83011261080257600080fd5b8135610812848260208601610789565b91505092915050565b60008151905061082a81610ffa565b92915050565b60008135905061083f81611011565b92915050565b60006020828403121561085757600080fd5b6000610865848285016107c7565b91505092915050565b600080600080600060a0868803121561088657600080fd5b6000610894888289016107c7565b955050602086013567ffffffffffffffff8111156108b157600080fd5b6108bd888289016107f1565b94505060406108ce88828901610830565b93505060606108df888289016107dc565b92505060806108f0888289016107dc565b9150509295509295909350565b60006020828403121561090f57600080fd5b600061091d8482850161081b565b91505092915050565b61092f81610d1d565b82525050565b61094661094182610d1d565b610e2b565b82525050565b61095581610d2f565b82525050565b61096c61096782610d2f565b610e3d565b82525050565b61097b81610d70565b82525050565b61099261098d82610d94565b610e2b565b82525050565b60006109a382610cf6565b6109ad8185610d01565b93506109bd818560208601610dc7565b6109c681610e92565b840191505092915050565b60006109dc82610cf6565b6109e68185610d12565b93506109f6818560208601610dc7565b80840191505092915050565b6000610a0f601c83610d12565b9150610a1a82610eb0565b601c82019050919050565b6000610a32601983610d01565b9150610a3d82610ed9565b602082019050919050565b6000610a55602683610d01565b9150610a6082610f02565b604082019050919050565b6000610a78601683610d01565b9150610a8382610f51565b602082019050919050565b6000610a9b602083610d01565b9150610aa682610f7a565b602082019050919050565b6000610abe600483610d12565b9150610ac982610fa3565b600482019050919050565b610ae5610ae082610d59565b610e59565b82525050565b610af481610d63565b82525050565b6000610b0582610a02565b9150610b11828461095b565b60208201915081905092915050565b6000610b2c8287610ad4565b602082019150610b3c8286610981565b601482019150610b4b82610ab1565b9150610b578285610935565b601482019150610b6782846109d1565b915081905095945050505050565b6000602082019050610b8a6000830184610926565b92915050565b6000604082019050610ba56000830185610926565b8181036020830152610bb78184610998565b90509392505050565b6000608082019050610bd5600083018761094c565b610be26020830186610aeb565b610bef604083018561094c565b610bfc606083018461094c565b95945050505050565b6000602082019050610c1a6000830184610972565b92915050565b60006020820190508181036000830152610c3981610a25565b9050919050565b60006020820190508181036000830152610c5981610a48565b9050919050565b60006020820190508181036000830152610c7981610a6b565b9050919050565b60006020820190508181036000830152610c9981610a8e565b9050919050565b6000610caa610cbb565b9050610cb68282610dfa565b919050565b6000604051905090565b600067ffffffffffffffff821115610ce057610cdf610e63565b5b610ce982610e92565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610d2882610d39565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000610d7b82610d82565b9050919050565b6000610d8d82610d39565b9050919050565b6000610d9f82610da6565b9050919050565b6000610db182610d39565b9050919050565b82818337600083830152505050565b60005b83811015610de5578082015181840152602081019050610dca565b83811115610df4576000848401525b50505050565b610e0382610e92565b810181811067ffffffffffffffff82111715610e2257610e21610e63565b5b80604052505050565b6000610e3682610e47565b9050919050565b6000819050919050565b6000610e5282610ea3565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4d696e7465723a20696e76616c6964207369676e617475726500000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d696e7465723a20616c7265616479206d696e74656400000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6d696e7400000000000000000000000000000000000000000000000000000000600082015250565b610fd581610d1d565b8114610fe057600080fd5b50565b610fec81610d2f565b8114610ff757600080fd5b50565b61100381610d59565b811461100e57600080fd5b50565b61101a81610d63565b811461102557600080fd5b5056fea2646970667358221220dc905fe48fdfa15ef2f34b33a242665d78145271992215e171731c7f80edbf4f64736f6c63430008040033", - "linkReferences": {}, - "deployedLinkReferences": {} -} diff --git a/src/ethereum/nft.rs b/src/ethereum/nft.rs index c9d51d8..920a642 100644 --- a/src/ethereum/nft.rs +++ b/src/ethereum/nft.rs @@ -29,7 +29,7 @@ use super::utils::{ }; pub const COLLECTIBLE: &str = "Collectible"; -pub const MINTER: &str = "Minter"; +pub const MANAGER: &str = "Manager"; const TOKEN_WAIT_TIME: i64 = 10; // in minutes #[derive(thiserror::Error, Debug)] @@ -93,15 +93,18 @@ pub async fn get_nft_contract( let ethereum_config = config.ethereum_contract.as_ref() .ok_or(EthereumError::ImproperlyConfigured)?; - let minter_abi = load_abi(&config.contract_dir, MINTER)?; - let minter_address = parse_address(ðereum_config.address)?; - let minter = Contract::from_json( + let manager_abi = load_abi(&config.contract_dir, MANAGER)?; + let manager_address = parse_address(ðereum_config.address)?; + let manager = Contract::from_json( web3.eth(), - minter_address, - &minter_abi, + manager_address, + &manager_abi, )?; - let token_address = minter.query("token", (), None, Options::default(), None).await?; + let token_address = manager.query( + "collectible", + (), None, Options::default(), None, + ).await?; let token_abi = load_abi(&config.contract_dir, COLLECTIBLE)?; let token = Contract::from_json( web3.eth(), @@ -206,8 +209,10 @@ pub async fn process_events( // Mint event found let token_id_u256 = transfer.token_id.into_uint() .ok_or(EthereumError::ConversionError)?; - let token_uri_result = contract.query("tokenURI", (token_id_u256,), None, Options::default(), None); - let token_uri: String = token_uri_result.await?; + let token_uri: String = contract.query( + "tokenURI", (token_id_u256,), + None, Options::default(), None, + ).await?; let tx_id_h256 = transfer.tx_id.ok_or(EthereumError::ConversionError)?; let tx_id = hex::encode(tx_id_h256.as_bytes()); let ipfs_cid = parse_ipfs_url(&token_uri) diff --git a/src/mastodon_api/instance/types.rs b/src/mastodon_api/instance/types.rs index a6269d4..41a717b 100644 --- a/src/mastodon_api/instance/types.rs +++ b/src/mastodon_api/instance/types.rs @@ -1,7 +1,7 @@ use serde::Serialize; use crate::config::Config; -use crate::ethereum::nft::MINTER; +use crate::ethereum::nft::MANAGER; #[derive(Serialize)] pub struct Instance { @@ -31,7 +31,7 @@ impl From<&Config> for Instance { login_message: config.login_message.clone(), ethereum_explorer_url: config.ethereum_explorer_url.clone(), nft_contract_name: config.ethereum_contract.as_ref() - .and(Some(MINTER.into())), + .and(Some(MANAGER.into())), nft_contract_address: config.ethereum_contract.as_ref() .map(|val| val.address.clone()), ipfs_gateway_url: config.ipfs_gateway_url.clone(),