nft-barter-sdk
Version:
Javascript SDK for abstracting complexities of interacting with NFT protocols.
535 lines (534 loc) • 17.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CORE = void 0;
exports.CORE = [
{
inputs: [],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
components: [
{
internalType: 'address',
name: 'from',
type: 'address',
},
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'releasingTokens',
type: 'tuple[]',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'receivingTokens',
type: 'tuple[]',
},
{
internalType: 'bytes',
name: 'signature',
type: 'bytes',
},
],
indexed: false,
internalType: 'struct TokenExchangeLib.TokenTransferObject',
name: 'peerA',
type: 'tuple',
},
{
components: [
{
internalType: 'address',
name: 'from',
type: 'address',
},
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'releasingTokens',
type: 'tuple[]',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'receivingTokens',
type: 'tuple[]',
},
{
internalType: 'bytes',
name: 'signature',
type: 'bytes',
},
],
indexed: false,
internalType: 'struct TokenExchangeLib.TokenTransferObject',
name: 'peerB',
type: 'tuple',
},
{
indexed: false,
internalType: 'address',
name: 'executor',
type: 'address',
},
],
name: 'TokenExchange',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'standard',
type: 'uint256',
},
{
indexed: false,
internalType: 'address',
name: 'connector',
type: 'address',
},
],
name: 'TokenStandardUpdate',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'signer',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'peerA',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'peerB',
type: 'address',
},
],
name: 'TransactionExecuted',
type: 'event',
},
{
inputs: [],
name: 'MINTER_ROLE',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'standard',
type: 'uint256',
},
{
internalType: 'address',
name: 'connector',
type: 'address',
},
],
name: 'addNFTStandard',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'from',
type: 'address',
},
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'releasingTokens',
type: 'tuple[]',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'receivingTokens',
type: 'tuple[]',
},
{
internalType: 'bytes',
name: 'signature',
type: 'bytes',
},
],
internalType: 'struct TokenExchangeLib.TokenTransferObject',
name: 'peerA',
type: 'tuple',
},
{
components: [
{
internalType: 'address',
name: 'from',
type: 'address',
},
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'releasingTokens',
type: 'tuple[]',
},
{
components: [
{
internalType: 'uint256',
name: 'tId',
type: 'uint256',
},
{
internalType: 'address',
name: 'tAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tStandard',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'quantity',
type: 'uint256',
},
],
internalType: 'struct TokenInfoLib.TokenInfo[]',
name: 'receivingTokens',
type: 'tuple[]',
},
{
internalType: 'bytes',
name: 'signature',
type: 'bytes',
},
],
internalType: 'struct TokenExchangeLib.TokenTransferObject',
name: 'peerB',
type: 'tuple',
},
],
name: 'executeTransfer',
outputs: [
{
internalType: 'bytes',
name: 'response',
type: 'bytes',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'getChainID',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'connectorAddress',
type: 'address',
},
],
name: 'isConnector',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'standard',
type: 'uint256',
},
],
name: 'removeNFTStandard',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
name: 'standardToConnector',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];