0 txs
308 calls
constructor
constructor(address productsModuleAddress_, uint256 slicerId_)
functions
isPurchaseAllowed
viewfunction isPurchaseAllowed(uint256, uint256, address, uint256, bytes, bytes) view returns (bool)
MINT_NFT_COLLECTION
viewfunction MINT_NFT_COLLECTION() view returns (address)
MINT_NFT_TOKEN_ID
viewfunction MINT_NFT_TOKEN_ID() view returns (uint256)
onProductPurchase
payablefunction onProductPurchase(uint256 slicerId, uint256, address buyer, uint256 quantity, bytes, bytes) payable
events
No events.
errors
NotAllowed
error NotAllowed()
NotPurchase
error NotPurchase()
NotSuccessful
error NotSuccessful()
WrongSlicer
error WrongSlicer()
creation bytecode
0x608060405234801561001057600080fd5b506040516103fc3803806103fc83398101604081905261002f91610058565b600080546001600160a01b0319166001600160a01b039390931692909217909155600155610092565b6000806040838503121561006b57600080fd5b82516001600160a01b038116811461008257600080fd5b6020939093015192949293505050565b61035b806100a16000396000f3fe60806040526004361061003f5760003560e01c8063052095fc146100445780632d3b3b9e1461008957806395db9368146100ac578063a23fffb9146100e3575b600080fd5b34801561005057600080fd5b5061006c738485a580a9975def42f8c7c5c63e9a0ff058561d81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561009557600080fd5b5061009e600981565b604051908152602001610080565b3480156100b857600080fd5b506100d36100c7366004610287565b60019695505050505050565b6040519015158152602001610080565b6100f66100f1366004610287565b6100f8565b005b8561010281610194565b604051631607e8a560e31b81526001600160a01b038616600482015260096024820152608060448201526000608482015260648101859052738485a580a9975def42f8c7c5c63e9a0ff058561d9063b03f45289060a401600060405180830381600087803b15801561017357600080fd5b505af1158015610187573d6000803e3d6000fd5b5050505050505050505050565b80600154146101b657604051632eafdb6960e01b815260040160405180910390fd5b6000546001600160a01b031633146101e1576040516347322d0360e01b815260040160405180910390fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261020b57600080fd5b813567ffffffffffffffff80821115610226576102266101e4565b604051601f8301601f19908116603f0116810190828211818310171561024e5761024e6101e4565b8160405283815286602085880101111561026757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c087890312156102a057600080fd5b863595506020870135945060408701356001600160a01b03811681146102c557600080fd5b935060608701359250608087013567ffffffffffffffff808211156102e957600080fd5b6102f58a838b016101fa565b935060a089013591508082111561030b57600080fd5b5061031889828a016101fa565b915050929550929550929556fea264697066735822122018a438865d8573cfdbf34690e2f184a757c2e7c6312445b1f2f4df01d0eeef4564736f6c63430008130033000000000000000000000000b9d5b99d5d0fa04dd7eb2b0cd7753317c2ea1a840000000000000000000000000000000000000000000000000000000000000325