0 txs
1 call
constructor
constructor(address productsModuleAddress)
functions
configureProductSchema
purefunction configureProductSchema() pure returns (string)
isPurchaseAllowed
viewfunction isPurchaseAllowed(uint256 slicerId, uint256 productId, uint256 variantId, address buyer, uint256, bytes data) view returns (bool isAllowed)
merkleRoots
viewfunction merkleRoots(uint256 slicerId, uint256 productId, uint256 variantId) view returns (bytes32 merkleRoot)
onProductPurchaseSchema
purefunction onProductPurchaseSchema() pure returns (string)
PRODUCTS_MODULE
viewfunction PRODUCTS_MODULE() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
configureProduct
nonpayablefunction configureProduct(uint256 slicerId, uint256 productId, uint256 variantId, bytes params)
onProductPurchase
payablefunction onProductPurchase(uint256 slicerId, uint256 productId, uint256 variantId, address buyer, uint256 quantity, bytes data) payable
events
ProductConfigured
event ProductConfigured(uint256 slicerId, uint256 productId, uint256 variantId, bytes params)
errors
NotAllowed
error NotAllowed()
NotAuthorized
error NotAuthorized(bytes32 rolesMask)
NotPurchase
error NotPurchase()
creation bytecode
0x60a0604052348015600e575f5ffd5b50604051610a30380380610a30833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b6080516109a461008c5f395f81816101ac01528181610399015261046c01526109a45ff3fe608060405260043610610079575f3560e01c80635571123b1161004c5780635571123b146101675780638afd9894146101885780639203f2331461019b578063faee4261146101f3575f5ffd5b806301ffc9a71461007d578063181fd18b146100b1578063211f03b3146100ff578063526ca2b71461011e575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046105cf565b610206565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b5060408051808201909152601281527f62797465733332206d65726b6c65526f6f74000000000000000000000000000060208201525b6040516100a8919061065a565b34801561010a575f5ffd5b5061009c610119366004610772565b6102ea565b348015610129575f5ffd5b506101596101383660046107fa565b5f602081815293815260408082208552928152828120909352825290205481565b6040519081526020016100a8565b348015610172575f5ffd5b50610186610181366004610823565b61035b565b005b348015610193575f5ffd5b5060606100f2565b3480156101a6575f5ffd5b506101ce7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a8565b610186610201366004610772565b610454565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000148061029857507fffffffff0000000000000000000000000000000000000000000000000000000082167f510cd94600000000000000000000000000000000000000000000000000000000145b806102e457507fffffffff0000000000000000000000000000000000000000000000000000000082167f4d6ec3b000000000000000000000000000000000000000000000000000000000145b92915050565b5f5f828060200190518101906103009190610879565b73ffffffffffffffffffffffffffffffffffffffff86165f81815260208082208c835282825260408084208d855283528084208c8552909252912054929350909161034c84828461050f565b9b9a5050505050505050505050565b6040517f11b0738e00000000000000000000000000000000000000000000000000000000815260048101859052600a602482015233604482015284907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906311b0738e906064015f6040518083038186803b1580156103ee575f5ffd5b505afa158015610400573d5f5f3e3d5ffd5b5050505061041085858585610524565b7fcdd8470c81c12ef7fe2fe67ef79d13684d94ff2008417cba55fdd025de21ec18858585856040516104459493929190610925565b60405180910390a15050505050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104c3576040517f47322d0300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104d18686868686866102ea565b610507576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b5f8261051b858461055e565b14949350505050565b5f818060200190518101906105399190610953565b5f95865260208681526040808820968852958152858720948752939093525050912055565b5f81815b84518110156105985761058e828683815181106105815761058161096a565b60200260200101516105a0565b9150600101610562565b509392505050565b5f8183106105ba575f8281526020849052604090206105c8565b5f8381526020839052604090205b9392505050565b5f602082840312156105df575f5ffd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146105c8575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6105c8602083018461060e565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156106e0576106e061066c565b604052919050565b5f82601f8301126106f7575f5ffd5b813567ffffffffffffffff8111156107115761071161066c565b61074260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601610699565b818152846020838601011115610756575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f5f5f5f60c08789031215610787575f5ffd5b863595506020870135945060408701359350606087013573ffffffffffffffffffffffffffffffffffffffff811681146107bf575f5ffd5b92506080870135915060a087013567ffffffffffffffff8111156107e1575f5ffd5b6107ed89828a016106e8565b9150509295509295509295565b5f5f5f6060848603121561080c575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f5f60808587031215610836575f5ffd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115610861575f5ffd5b61086d878288016106e8565b91505092959194509250565b5f60208284031215610889575f5ffd5b815167ffffffffffffffff81111561089f575f5ffd5b8201601f810184136108af575f5ffd5b805167ffffffffffffffff8111156108c9576108c961066c565b8060051b6108d960208201610699565b918252602081840181019290810190878411156108f4575f5ffd5b6020850194505b8385101561091a578451808352602095860195909350909101906108fb565b979650505050505050565b848152836020820152826040820152608060608201525f610949608083018461060e565b9695505050505050565b5f60208284031215610963575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfea164736f6c634300081e000a000000000000000000000000b9d5b99d5d0fa04dd7eb2b0cd7753317c2ea1a84