0 txs
1 call
constructor
constructor(address productsModuleAddress)
functions
isPurchaseAllowed
viewfunction isPurchaseAllowed(uint256 slicerId, uint256 productId, address account, uint256, bytes, bytes buyerCustomData) view returns (bool isAllowed)
merkleRoots
viewfunction merkleRoots(uint256 slicerId, uint256 productId) view returns (bytes32 merkleRoot)
paramsSchema
purefunction paramsSchema() 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, bytes params)
onProductPurchase
payablefunction onProductPurchase(uint256 slicerId, uint256 productId, address buyer, uint256 quantity, bytes slicerData, bytes buyerData) payable
events
ProductConfigured
event ProductConfigured(uint256 slicerId, uint256 productId, bytes params)
errors
NotAllowed
error NotAllowed()
NotProductOwner
error NotProductOwner()
NotPurchase
error NotPurchase()
creation bytecode
0x60a060405234801561000f575f80fd5b50604051610abb380380610abb83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f80fd5b81516001600160a01b0381168114610065575f80fd5b9392505050565b608051610a2a6100915f395f818160f80152818161038b01526104830152610a2a5ff3fe60806040526004361061006e575f3560e01c806395db93681161004c57806395db93681461013f578063a23fffb91461015e578063d11f43a714610173578063ec2eca08146101be575f80fd5b806301ffc9a71461007257806339436b00146100a65780639203f233146100e7575b5f80fd5b34801561007d575f80fd5b5061009161008c36600461062a565b6101dd565b60405190151581526020015b60405180910390f35b3480156100b1575f80fd5b506100d96100c0366004610669565b5f60208181529281526040808220909352908152205481565b60405190815260200161009d565b3480156100f2575f80fd5b5061011a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009d565b34801561014a575f80fd5b5061009161015936600461078f565b6102c1565b61017161016c36600461078f565b610373565b005b34801561017e575f80fd5b50604080518082018252601281527f62797465733332206d65726b6c65526f6f7400000000000000000000000000006020820152905161009d9190610894565b3480156101c9575f80fd5b506101716101d83660046108a6565b61042e565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000148061026f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f37e46cd100000000000000000000000000000000000000000000000000000000145b806102bb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f3d3189af00000000000000000000000000000000000000000000000000000000145b92915050565b5f80828060200190518101906102d791906108f2565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089901b1660208201529091505f90603401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301205f8c81528084528281208c825290935291205490915061036583828461056f565b9a9950505050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103e2576040517f47322d0300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103f08686868686866102c1565b610426576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b6040517fe6e9280800000000000000000000000000000000000000000000000000000000815260048101849052602481018390523360448201528390839073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063e6e9280890606401602060405180830381865afa1580156104c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ec9190610993565b610522576040517f35cd3b6d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61052d858585610584565b7fe778d71bda5fa429690e9a690d0ef7339a3fb1e677e39c77a9167de98afdd2da858585604051610560939291906109b2565b60405180910390a15050505050565b5f8261057b85846105b9565b14949350505050565b5f8180602001905181019061059991906109d9565b5f9485526020858152604080872095875294905292909320919091555050565b5f81815b84518110156105f3576105e9828683815181106105dc576105dc6109f0565b60200260200101516105fb565b91506001016105bd565b509392505050565b5f818310610615575f828152602084905260409020610623565b5f8381526020839052604090205b9392505050565b5f6020828403121561063a575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610623575f80fd5b5f806040838503121561067a575f80fd5b50508035926020909101359150565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156106fd576106fd610689565b604052919050565b5f82601f830112610714575f80fd5b813567ffffffffffffffff81111561072e5761072e610689565b61075f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016106b6565b818152846020838601011115610773575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f8060c087890312156107a4575f80fd5b8635955060208701359450604087013573ffffffffffffffffffffffffffffffffffffffff811681146107d5575f80fd5b935060608701359250608087013567ffffffffffffffff808211156107f8575f80fd5b6108048a838b01610705565b935060a0890135915080821115610819575f80fd5b5061082689828a01610705565b9150509295509295509295565b5f81518084525f5b818110156108575760208185018101518683018201520161083b565b505f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6106236020830184610833565b5f805f606084860312156108b8575f80fd5b8335925060208401359150604084013567ffffffffffffffff8111156108dc575f80fd5b6108e886828701610705565b9150509250925092565b5f6020808385031215610903575f80fd5b825167ffffffffffffffff8082111561091a575f80fd5b818501915085601f83011261092d575f80fd5b81518181111561093f5761093f610689565b8060051b91506109508483016106b6565b8181529183018401918481019088841115610969575f80fd5b938501935b838510156109875784518252938501939085019061096e565b98975050505050505050565b5f602082840312156109a3575f80fd5b81518015158114610623575f80fd5b838152826020820152606060408201525f6109d06060830184610833565b95945050505050565b5f602082840312156109e9575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfea164736f6c6343000817000a000000000000000000000000b9d5b99d5d0fa04dd7eb2b0cd7753317c2ea1a84