Skip to content

Commit

Permalink
🔧 Fix contracts for 18+
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed May 20, 2021
1 parent ee9f9f9 commit 06273cb
Show file tree
Hide file tree
Showing 4 changed files with 4,217 additions and 12 deletions.
303 changes: 303 additions & 0 deletions backend/config/erc1155_v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
[
{ "type": "constructor", "stateMutability": "nonpayable", "inputs": [] },
{
"type": "event",
"name": "ApprovalForAll",
"inputs": [
{
"type": "address",
"name": "account",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "operator",
"internalType": "address",
"indexed": true
},
{
"type": "bool",
"name": "approved",
"internalType": "bool",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "MetaTransactionExecuted",
"inputs": [
{
"type": "address",
"name": "userAddress",
"internalType": "address",
"indexed": false
},
{
"type": "address",
"name": "relayerAddress",
"internalType": "address payable",
"indexed": false
},
{
"type": "bytes",
"name": "functionSignature",
"internalType": "bytes",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransferBatch",
"inputs": [
{
"type": "address",
"name": "operator",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "from",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "to",
"internalType": "address",
"indexed": true
},
{
"type": "uint256[]",
"name": "ids",
"internalType": "uint256[]",
"indexed": false
},
{
"type": "uint256[]",
"name": "values",
"internalType": "uint256[]",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransferSingle",
"inputs": [
{
"type": "address",
"name": "operator",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "from",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "to",
"internalType": "address",
"indexed": true
},
{
"type": "uint256",
"name": "id",
"internalType": "uint256",
"indexed": false
},
{
"type": "uint256",
"name": "value",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "URI",
"inputs": [
{
"type": "string",
"name": "value",
"internalType": "string",
"indexed": false
},
{
"type": "uint256",
"name": "id",
"internalType": "uint256",
"indexed": true
}
],
"anonymous": false
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{ "type": "uint256", "name": "", "internalType": "uint256" }
],
"name": "balanceOf",
"inputs": [
{ "type": "address", "name": "account", "internalType": "address" },
{ "type": "uint256", "name": "id", "internalType": "uint256" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{ "type": "uint256[]", "name": "", "internalType": "uint256[]" }
],
"name": "balanceOfBatch",
"inputs": [
{
"type": "address[]",
"name": "accounts",
"internalType": "address[]"
},
{ "type": "uint256[]", "name": "ids", "internalType": "uint256[]" }
]
},
{
"type": "function",
"stateMutability": "payable",
"outputs": [{ "type": "bytes", "name": "", "internalType": "bytes" }],
"name": "executeMetaTransaction",
"inputs": [
{
"type": "address",
"name": "userAddress",
"internalType": "address"
},
{
"type": "bytes",
"name": "functionSignature",
"internalType": "bytes"
},
{ "type": "bytes32", "name": "sigR", "internalType": "bytes32" },
{ "type": "bytes32", "name": "sigS", "internalType": "bytes32" },
{ "type": "uint8", "name": "sigV", "internalType": "uint8" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{ "type": "uint256", "name": "nonce", "internalType": "uint256" }
],
"name": "getNonce",
"inputs": [
{ "type": "address", "name": "user", "internalType": "address" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
"name": "isApprovedForAll",
"inputs": [
{ "type": "address", "name": "account", "internalType": "address" },
{ "type": "address", "name": "operator", "internalType": "address" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
"name": "locator",
"inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{ "type": "uint256", "name": "", "internalType": "uint256" }
],
"name": "mintTocaller",
"inputs": [
{ "type": "address", "name": "account", "internalType": "address" },
{ "type": "uint256", "name": "amount", "internalType": "uint256" },
{ "type": "bytes", "name": "data", "internalType": "bytes" },
{ "type": "string", "name": "givenURL", "internalType": "string" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "safeBatchTransferFrom",
"inputs": [
{ "type": "address", "name": "from", "internalType": "address" },
{ "type": "address", "name": "to", "internalType": "address" },
{ "type": "uint256[]", "name": "ids", "internalType": "uint256[]" },
{
"type": "uint256[]",
"name": "amounts",
"internalType": "uint256[]"
},
{ "type": "bytes", "name": "data", "internalType": "bytes" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "safeTransferFrom",
"inputs": [
{ "type": "address", "name": "from", "internalType": "address" },
{ "type": "address", "name": "to", "internalType": "address" },
{ "type": "uint256", "name": "id", "internalType": "uint256" },
{ "type": "uint256", "name": "amount", "internalType": "uint256" },
{ "type": "bytes", "name": "data", "internalType": "bytes" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "setApprovalForAll",
"inputs": [
{
"type": "address",
"name": "operator",
"internalType": "address"
},
{ "type": "bool", "name": "approved", "internalType": "bool" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
"name": "supportsInterface",
"inputs": [
{
"type": "bytes4",
"name": "interfaceId",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
"name": "uri",
"inputs": [
{ "type": "uint256", "name": "_id", "internalType": "uint256" }
]
}
]
Loading

0 comments on commit 06273cb

Please sign in to comment.