UNPKG

@animoca/ethereum-contracts-assets

Version:
211 lines (210 loc) 13.8 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ERC1155TokenReceiverMock", "sourceName": "contracts/token/ERC1155/mocks/ERC1155TokenReceiverMock.sol", "abi": [ { "inputs": [ { "internalType": "bool", "name": "accept1155", "type": "bool" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "gas", "type": "uint256" } ], "name": "ReceivedBatch", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "gas", "type": "uint256" } ], "name": "ReceivedSingle", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155BatchReceived", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155Received", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x60c060405234801561001057600080fd5b5060405161093e38038061093e8339818101604052604081101561003357600080fd5b50805160209091015190151560f881901b608052606082901b6001600160601b03191660a05260ff16906001600160a01b03166108b161008d6000398061042d52806106b55250806104bb528061074352506108b16000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610099578063f23a6e61146102a2575b600080fd5b6100856004803603602081101561005c57600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661037a565b604080519115158252519081900360200190f35b61026d600480360360a08110156100af57600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135909116918101906060810160408201356401000000008111156100f057600080fd5b82018360208201111561010257600080fd5b8035906020019184602083028401116401000000008311171561012457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561017457600080fd5b82018360208201111561018657600080fd5b803590602001918460208302840111640100000000831117156101a857600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156101f857600080fd5b82018360208201111561020a57600080fd5b8035906020019184600183028401116401000000008311171561022c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610413945050505050565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b61026d600480360360a08110156102b857600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561030557600080fd5b82018360208201111561031757600080fd5b8035906020019184600183028401116401000000008311171561033957600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061069b945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000148061040d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f4e2312e000000000000000000000000000000000000000000000000000000000145b92915050565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433131353552656365697665723a2077726f6e6720746f6b656e00000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000001561066f577f8667b06aa891a7720ada21ca62207388e6c8bd0ebee8a3d70ed6d3382e1e375386868686865a604051808773ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001858152602001848103845288818151815260200191508051906020019060200280838360005b8381101561058c578181015183820152602001610574565b50505050905001848103835287818151815260200191508051906020019060200280838360005b838110156105cb5781810151838201526020016105b3565b50505050905001848103825286818151815260200191508051906020019080838360005b838110156106075781810151838201526020016105ef565b50505050905090810190601f1680156106345780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390a1507fbc197c8100000000000000000000000000000000000000000000000000000000610692565b507fffffffff000000000000000000000000000000000000000000000000000000005b95945050505050565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461074157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433131353552656365697665723a2077726f6e6720746f6b656e00000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000001561066f577fbafaa6e1c57bb05a9b952e12b8ff1bcbfd2a0d9f6c8097c6fb28e241610cac5286868686865a604051808773ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156108155781810151838201526020016107fd565b50505050905090810190601f1680156108425780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a1507ff23a6e610000000000000000000000000000000000000000000000000000000061069256fea2646970667358221220280f914f0edba950fd1706333cb43624e8c50aab632818fecc0e90e92df0210864736f6c63430007060033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610099578063f23a6e61146102a2575b600080fd5b6100856004803603602081101561005c57600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661037a565b604080519115158252519081900360200190f35b61026d600480360360a08110156100af57600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135909116918101906060810160408201356401000000008111156100f057600080fd5b82018360208201111561010257600080fd5b8035906020019184602083028401116401000000008311171561012457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561017457600080fd5b82018360208201111561018657600080fd5b803590602001918460208302840111640100000000831117156101a857600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156101f857600080fd5b82018360208201111561020a57600080fd5b8035906020019184600183028401116401000000008311171561022c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610413945050505050565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b61026d600480360360a08110156102b857600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561030557600080fd5b82018360208201111561031757600080fd5b8035906020019184600183028401116401000000008311171561033957600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061069b945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000148061040d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f4e2312e000000000000000000000000000000000000000000000000000000000145b92915050565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433131353552656365697665723a2077726f6e6720746f6b656e00000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000001561066f577f8667b06aa891a7720ada21ca62207388e6c8bd0ebee8a3d70ed6d3382e1e375386868686865a604051808773ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001858152602001848103845288818151815260200191508051906020019060200280838360005b8381101561058c578181015183820152602001610574565b50505050905001848103835287818151815260200191508051906020019060200280838360005b838110156105cb5781810151838201526020016105b3565b50505050905001848103825286818151815260200191508051906020019080838360005b838110156106075781810151838201526020016105ef565b50505050905090810190601f1680156106345780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390a1507fbc197c8100000000000000000000000000000000000000000000000000000000610692565b507fffffffff000000000000000000000000000000000000000000000000000000005b95945050505050565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461074157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433131353552656365697665723a2077726f6e6720746f6b656e00000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000001561066f577fbafaa6e1c57bb05a9b952e12b8ff1bcbfd2a0d9f6c8097c6fb28e241610cac5286868686865a604051808773ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156108155781810151838201526020016107fd565b50505050905090810190601f1680156108425780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a1507ff23a6e610000000000000000000000000000000000000000000000000000000061069256fea2646970667358221220280f914f0edba950fd1706333cb43624e8c50aab632818fecc0e90e92df0210864736f6c63430007060033", "linkReferences": {}, "deployedLinkReferences": {} }