UNPKG

bnpl

Version:

The smart contracts for bnpl

266 lines (265 loc) 6.27 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ConduitInterface", "sourceName": "contracts/interfaces/ConduitInterface.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "channel", "type": "address" } ], "name": "ChannelClosed", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "channel", "type": "address" }, { "internalType": "bool", "name": "isOpen", "type": "bool" } ], "name": "ChannelStatusAlreadySet", "type": "error" }, { "inputs": [], "name": "InvalidController", "type": "error" }, { "inputs": [], "name": "InvalidItemType", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "open", "type": "bool" } ], "name": "ChannelUpdated", "type": "event" }, { "inputs": [ { "components": [ { "internalType": "enum ConduitItemType", "name": "itemType", "type": "uint8" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "identifier", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct ConduitTransfer[]", "name": "transfers", "type": "tuple[]" } ], "name": "execute", "outputs": [ { "internalType": "bytes4", "name": "magicValue", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } ], "internalType": "struct ConduitBatch1155Transfer[]", "name": "batch1155Transfers", "type": "tuple[]" } ], "name": "executeBatch1155", "outputs": [ { "internalType": "bytes4", "name": "magicValue", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "enum ConduitItemType", "name": "itemType", "type": "uint8" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "identifier", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct ConduitTransfer[]", "name": "standardTransfers", "type": "tuple[]" }, { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } ], "internalType": "struct ConduitBatch1155Transfer[]", "name": "batch1155Transfers", "type": "tuple[]" } ], "name": "executeWithBatch1155", "outputs": [ { "internalType": "bytes4", "name": "magicValue", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "channel", "type": "address" }, { "internalType": "bool", "name": "isOpen", "type": "bool" } ], "name": "updateChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }