Created
February 21, 2022 17:10
-
-
Save chrismaddern/4db1b0ddb7b021e69f055d98448f7b82 to your computer and use it in GitHub Desktop.
Base ABI for ERC 1155 contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "abi":[ | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_owner", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_operator", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "bool", | |
| "name": "_approved", | |
| "type": "bool" | |
| } | |
| ], | |
| "name": "ApprovalForAll", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_operator", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_from", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_to", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256[]", | |
| "name": "_ids", | |
| "type": "uint256[]" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256[]", | |
| "name": "_amounts", | |
| "type": "uint256[]" | |
| } | |
| ], | |
| "name": "TransferBatch", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_operator", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_from", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "_to", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "_id", | |
| "type": "uint256" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "_amount", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "TransferSingle", | |
| "type": "event" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "_owner", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_id", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "balanceOf", | |
| "outputs": [ | |
| { | |
| "internalType": "uint256", | |
| "name": "", | |
| "type": "uint256" | |
| } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address[]", | |
| "name": "_owners", | |
| "type": "address[]" | |
| }, | |
| { | |
| "internalType": "uint256[]", | |
| "name": "_ids", | |
| "type": "uint256[]" | |
| } | |
| ], | |
| "name": "balanceOfBatch", | |
| "outputs": [ | |
| { | |
| "internalType": "uint256[]", | |
| "name": "", | |
| "type": "uint256[]" | |
| } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "_owner", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "address", | |
| "name": "_operator", | |
| "type": "address" | |
| } | |
| ], | |
| "name": "isApprovedForAll", | |
| "outputs": [ | |
| { | |
| "internalType": "bool", | |
| "name": "isOperator", | |
| "type": "bool" | |
| } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "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": "bytes", | |
| "name": "_data", | |
| "type": "bytes" | |
| } | |
| ], | |
| "name": "safeBatchTransferFrom", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "_from", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "address", | |
| "name": "_to", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_id", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_amount", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "bytes", | |
| "name": "_data", | |
| "type": "bytes" | |
| } | |
| ], | |
| "name": "safeTransferFrom", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "_operator", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "bool", | |
| "name": "_approved", | |
| "type": "bool" | |
| } | |
| ], | |
| "name": "setApprovalForAll", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "bytes4", | |
| "name": "_interfaceID", | |
| "type": "bytes4" | |
| } | |
| ], | |
| "name": "supportsInterface", | |
| "outputs": [ | |
| { | |
| "internalType": "bool", | |
| "name": "", | |
| "type": "bool" | |
| } | |
| ], | |
| "stateMutability": "pure", | |
| "type": "function" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment