UNPKG

@animoca/ethereum-contracts-sale

Version:
156 lines (155 loc) 8.87 kB
{ "_format": "hh-sol-artifact-1", "contractName": "PurchaseLifeCyclesMock", "sourceName": "contracts/mocks/sale/abstract/PurchaseLifeCyclesMock.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "path", "type": "uint256" } ], "name": "PurchaseLifeCyclePath", "type": "event" }, { "inputs": [], "name": "LIFECYCLE_STEP_DELIVERY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LIFECYCLE_STEP_NOTIFICATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LIFECYCLE_STEP_PAYMENT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LIFECYCLE_STEP_PRICING", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LIFECYCLE_STEP_VALIDATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "recipient", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bytes32", "name": "sku", "type": "bytes32" }, { "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "internalType": "bytes", "name": "userData", "type": "bytes" } ], "name": "getEstimatePurchaseLifeCyclePath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "recipient", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bytes32", "name": "sku", "type": "bytes32" }, { "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "internalType": "bytes", "name": "userData", "type": "bytes" } ], "name": "getPurchaseForLifeCyclePath", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b5061054c806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80637e78ce541161005b5780637e78ce54146100ac5780639a28c028146100b4578063f1eaf68e14610158578063f5df5e0f146101fa5761007d565b8063079de8611461008257806332d1757e1461009c578063653496fd146100a4575b600080fd5b61008a610202565b60408051918252519081900360200190f35b61008a610207565b61008a61020c565b61008a610211565b610156600480360360a08110156100ca57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561011757600080fd5b82018360208201111561012957600080fd5b8035906020019184600183028401116401000000008311171561014b57600080fd5b509092509050610216565b005b610156600480360360a081101561016e57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156101bb57600080fd5b8201836020820111156101cd57600080fd5b803590602001918460018302840111640100000000831117156101ef57600080fd5b5090925090506102ee565b61008a610381565b600481565b601081565b600881565b602081565b60006102a18787878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092508291508190505b50604051908082528060200260200182016040528015610284578160200160208202803683370190505b506040805160008082526020820190815281830190925290610386565b90506102ac816103eb565b505060c081015160408051918252517f7062f3f0e42d4d1284efa95538041dcce5d6cd50418297ff5e453bb4055c52139181900360200190a150505050505050565b60006103368787878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925082915081905061025a565b905061034181610412565b60c081015160408051918252517f7062f3f0e42d4d1284efa95538041dcce5d6cd50418297ff5e453bb4055c52139181900360200190a150505050505050565b600281565b61038e61047e565b33815273ffffffffffffffffffffffffffffffffffffffff998a1660208201529790981660408801526060870195909552608086019390935260a085019190915260c084015260e083015261010082015261012081019190915290565b600060606103f883610442565b6104018361044e565b505060c081015160e0909101519091565b61041b81610442565b6104248161044e565b61042d8161045a565b61043681610466565b61043f81610472565b50565b60c00180516002179052565b60c00180516004179052565b60c00180516008179052565b60c00180516010179052565b60c00180516020179052565b604051806101400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008019168152602001600081526020016060815260200160008152602001606081526020016060815260200160608152509056fea264697066735822122099807cd8298b9269c60cbc4d8252586bacc7b1ff8dd1683e738f64803a09579664736f6c63430007060033", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80637e78ce541161005b5780637e78ce54146100ac5780639a28c028146100b4578063f1eaf68e14610158578063f5df5e0f146101fa5761007d565b8063079de8611461008257806332d1757e1461009c578063653496fd146100a4575b600080fd5b61008a610202565b60408051918252519081900360200190f35b61008a610207565b61008a61020c565b61008a610211565b610156600480360360a08110156100ca57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561011757600080fd5b82018360208201111561012957600080fd5b8035906020019184600183028401116401000000008311171561014b57600080fd5b509092509050610216565b005b610156600480360360a081101561016e57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156101bb57600080fd5b8201836020820111156101cd57600080fd5b803590602001918460018302840111640100000000831117156101ef57600080fd5b5090925090506102ee565b61008a610381565b600481565b601081565b600881565b602081565b60006102a18787878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092508291508190505b50604051908082528060200260200182016040528015610284578160200160208202803683370190505b506040805160008082526020820190815281830190925290610386565b90506102ac816103eb565b505060c081015160408051918252517f7062f3f0e42d4d1284efa95538041dcce5d6cd50418297ff5e453bb4055c52139181900360200190a150505050505050565b60006103368787878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925082915081905061025a565b905061034181610412565b60c081015160408051918252517f7062f3f0e42d4d1284efa95538041dcce5d6cd50418297ff5e453bb4055c52139181900360200190a150505050505050565b600281565b61038e61047e565b33815273ffffffffffffffffffffffffffffffffffffffff998a1660208201529790981660408801526060870195909552608086019390935260a085019190915260c084015260e083015261010082015261012081019190915290565b600060606103f883610442565b6104018361044e565b505060c081015160e0909101519091565b61041b81610442565b6104248161044e565b61042d8161045a565b61043681610466565b61043f81610472565b50565b60c00180516002179052565b60c00180516004179052565b60c00180516008179052565b60c00180516010179052565b60c00180516020179052565b604051806101400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008019168152602001600081526020016060815260200160008152602001606081526020016060815260200160608152509056fea264697066735822122099807cd8298b9269c60cbc4d8252586bacc7b1ff8dd1683e738f64803a09579664736f6c63430007060033", "linkReferences": {}, "deployedLinkReferences": {} }