diff --git a/dist/services/estimator/index.js b/dist/services/estimator/index.js index 23a025dbf..4a0c03660 100644 --- a/dist/services/estimator/index.js +++ b/dist/services/estimator/index.js @@ -10,25 +10,25 @@ function signatureService(url) { baseURL: url, }); return { - async getSignatureNear(fromChain, toChain, nft, tokenContract, tokenId, to) { - const result = await signer.post("/api/get-signature/", { - fromChain, - toChain, - nft, - to, - tokenId, - tokenContract, + async getSignatureNear(fromChain, toChain, _nft, tokenContract, tokenId, to) { + const result = await signer.post("/api/near/", { + from: fromChain, + to: toChain, + receiver: to, + nft: { + token_id: tokenId, + contract: tokenContract, + }, }); console.log("near signature response", result); return result.data.data; }, async getSignatureDfinity(fc, tc, to, num) { - const result = await signer.post("/api/get-signature/", { - fromChain: fc, - toChain: tc, - to, + const result = await signer.post("/api/dfinity/", { + from: fc, + to: tc, + receiver: to, num, - nft: {}, }); return result.data.data; }, @@ -47,4 +47,4 @@ function signatureService(url) { }; } exports.signatureService = signatureService; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvZXN0aW1hdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLGtEQUEwQjtBQWtDMUIsU0FBZ0IsZ0JBQWdCLENBQUMsR0FBVztJQUMxQyxNQUFNLE1BQU0sR0FBRyxlQUFLLENBQUMsTUFBTSxDQUFDO1FBQzFCLE9BQU8sRUFBRSxHQUFHO0tBQ2IsQ0FBQyxDQUFDO0lBQ0gsT0FBTztRQUNMLEtBQUssQ0FBQyxnQkFBZ0IsQ0FDcEIsU0FBcUIsRUFDckIsT0FBbUIsRUFDbkIsR0FBVyxFQUNYLGFBQXFCLEVBQ3JCLE9BQWUsRUFDZixFQUFVO1lBRVYsTUFBTSxNQUFNLEdBQUcsTUFBTSxNQUFNLENBQUMsSUFBSSxDQUU3QixxQkFBcUIsRUFBRTtnQkFDeEIsU0FBUztnQkFDVCxPQUFPO2dCQUNQLEdBQUc7Z0JBQ0gsRUFBRTtnQkFDRixPQUFPO2dCQUNQLGFBQWE7YUFDZCxDQUFDLENBQUM7WUFDSCxPQUFPLENBQUMsR0FBRyxDQUFDLHlCQUF5QixFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQy9DLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDMUIsQ0FBQztRQUNELEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxHQUFXO1lBQy9DLE1BQU0sTUFBTSxHQUFHLE1BQU0sTUFBTSxDQUFDLElBQUksQ0FFN0IscUJBQXFCLEVBQUU7Z0JBQ3hCLFNBQVMsRUFBRSxFQUFFO2dCQUNiLE9BQU8sRUFBRSxFQUFFO2dCQUNYLEVBQUU7Z0JBQ0YsR0FBRztnQkFDSCxHQUFHLEVBQUUsRUFBRTthQUNSLENBQUMsQ0FBQztZQUNILE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDMUIsQ0FBQztRQUNELEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLEVBQUUsRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLFFBQVE7WUFDakQsTUFBTSxNQUFNLEdBQUcsTUFBTSxNQUFNLENBQUMsSUFBSSxDQUU3QixjQUFjLEVBQUU7Z0JBQ2pCLElBQUk7Z0JBQ0osRUFBRTtnQkFDRixRQUFRO2dCQUNSLEdBQUcsRUFBRTtvQkFDSCxRQUFRO29CQUNSLFFBQVE7aUJBQ1Q7YUFDRixDQUFDLENBQUM7WUFDSCxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQzFCLENBQUM7S0FDRixDQUFDO0FBQ0osQ0FBQztBQXJERCw0Q0FxREMifQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvZXN0aW1hdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLGtEQUEwQjtBQWtDMUIsU0FBZ0IsZ0JBQWdCLENBQUMsR0FBVztJQUMxQyxNQUFNLE1BQU0sR0FBRyxlQUFLLENBQUMsTUFBTSxDQUFDO1FBQzFCLE9BQU8sRUFBRSxHQUFHO0tBQ2IsQ0FBQyxDQUFDO0lBQ0gsT0FBTztRQUNMLEtBQUssQ0FBQyxnQkFBZ0IsQ0FDcEIsU0FBcUIsRUFDckIsT0FBbUIsRUFDbkIsSUFBWSxFQUNaLGFBQXFCLEVBQ3JCLE9BQWUsRUFDZixFQUFVO1lBRVYsTUFBTSxNQUFNLEdBQUcsTUFBTSxNQUFNLENBQUMsSUFBSSxDQUU3QixZQUFZLEVBQUU7Z0JBQ2YsSUFBSSxFQUFFLFNBQVM7Z0JBQ2YsRUFBRSxFQUFFLE9BQU87Z0JBQ1gsUUFBUSxFQUFFLEVBQUU7Z0JBQ1osR0FBRyxFQUFFO29CQUNILFFBQVEsRUFBRSxPQUFPO29CQUNqQixRQUFRLEVBQUUsYUFBYTtpQkFDeEI7YUFDRixDQUFDLENBQUM7WUFDSCxPQUFPLENBQUMsR0FBRyxDQUFDLHlCQUF5QixFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQy9DLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDMUIsQ0FBQztRQUNELEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxHQUFXO1lBQy9DLE1BQU0sTUFBTSxHQUFHLE1BQU0sTUFBTSxDQUFDLElBQUksQ0FFN0IsZUFBZSxFQUFFO2dCQUNsQixJQUFJLEVBQUUsRUFBRTtnQkFDUixFQUFFLEVBQUUsRUFBRTtnQkFDTixRQUFRLEVBQUUsRUFBRTtnQkFDWixHQUFHO2FBQ0osQ0FBQyxDQUFDO1lBQ0gsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztRQUMxQixDQUFDO1FBQ0QsS0FBSyxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsUUFBUTtZQUNqRCxNQUFNLE1BQU0sR0FBRyxNQUFNLE1BQU0sQ0FBQyxJQUFJLENBRTdCLGNBQWMsRUFBRTtnQkFDakIsSUFBSTtnQkFDSixFQUFFO2dCQUNGLFFBQVE7Z0JBQ1IsR0FBRyxFQUFFO29CQUNILFFBQVE7b0JBQ1IsUUFBUTtpQkFDVDthQUNGLENBQUMsQ0FBQztZQUNILE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDMUIsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDO0FBckRELDRDQXFEQyJ9 \ No newline at end of file diff --git a/docs/enums/ChainType.html b/docs/enums/ChainType.html index 30e5fa16f..7d0f0630f 100644 --- a/docs/enums/ChainType.html +++ b/docs/enums/ChainType.html @@ -1 +1 @@ -ChainType | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ChainType

Index

Enumeration Members

ALGORAND: "ALGORAND"
APTOS: "APTOS"
CASPER: "CASPER"
COSMOS: "COSMOS"
DFINITY: "DFINITY"
ELROND: "ELROND"
EVM: "EVM"
HEDERA: "HEDERA"
NEAR: "NEAR"
SOLANA: "SOLANA"
TEZOS: "TEZOS"
TON: "TON"
TRON: "TRON"

Generated using TypeDoc

\ No newline at end of file +ChainType | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ChainType

Index

Enumeration Members

ALGORAND: "ALGORAND"
APTOS: "APTOS"
CASPER: "CASPER"
COSMOS: "COSMOS"
DFINITY: "DFINITY"
ELROND: "ELROND"
EVM: "EVM"
HEDERA: "HEDERA"
NEAR: "NEAR"
SOLANA: "SOLANA"
TEZOS: "TEZOS"
TON: "TON"
TRON: "TRON"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/MainNetRpcUri.html b/docs/enums/MainNetRpcUri.html index ad7f85279..5040b05d2 100644 --- a/docs/enums/MainNetRpcUri.html +++ b/docs/enums/MainNetRpcUri.html @@ -1 +1 @@ -MainNetRpcUri | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration MainNetRpcUri

Index

Enumeration Members

ABEYCHAIN: "https://rpc.abeychain.com"
APTOS: "https://fullnode.mainnet.aptoslabs.com/"
ARBITRUM: "https://nova.arbitrum.io/rpc"
AURORA: "https://mainnet.aurora.dev"
AVALANCHE: "https://api.avax.network/ext/bc/C/rpc"
BASE: "https://base.llamarpc.com"
BITGERT: "https://dedicated.brisescan.com"
BSC: "https://bsc-dataseed.binance.org/"
CADUCEUS: "https://mainnet.block.caduceus.foundation/"
CASPER: "https://rpc.mainnet.casperlabs.io/rpc"
CELO: "https://forno.celo.org"
ELROND: "https://gateway.multiversx.com"
ENERGI: ""
ETHEREUM: "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
FANTOM: "https://rpc.fantom.network/"
FINDORA: ""
FUSE: "https://rpc.fuse.io/"
GATECHAIN: "https://evm.gatenode.cc"
GODWOKEN: "https://v1.mainnet.godwoken.io/rpc"
HARMONY: "https://rpc.s0.t.hmny.io"
HECO: "https://http-mainnet-node.huobichain.com"
HEDERA: "https://mainnet.hashio.io/api"
HEDERA_RELAY: "https://tools.xp.network/hedera-relay"
IOTEX: "https://babel-api.mainnet.iotex.io"
MOONBEAM: "https://rpc.api.moonbeam.network"
NEAR: "https://rpc.mainnet.near.org"
OKC: "https://exchainrpc.okex.org/"
OPTIMISM: "https://mainnet.optimism.io"
POLYGON: "https://polygon-rpc.com"
SECRET: "https://secret-4.api.trivium.network:9091/"
SKALE: "https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"
SOLANA: "https://solana-mainnet.g.alchemy.com/v2/4Fm2r6LjJO91nXrKVcZBQXcWgtVe-_gx"
TEZOS: "https://mainnet.smartpy.io"
TON: "https://toncenter.com/api/v2/jsonRPC"
TRON: "https://api.trongrid.io/"
VECHAIN: "https://sync-mainnet.veblocks.net"
VELAS: "https://mainnet.velas.com/rpc"
XDAI: "https://rpc.gnosischain.com"
ZETA: ""

Generated using TypeDoc

\ No newline at end of file +MainNetRpcUri | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration MainNetRpcUri

Index

Enumeration Members

ABEYCHAIN: "https://rpc.abeychain.com"
APTOS: "https://fullnode.mainnet.aptoslabs.com/"
ARBITRUM: "https://nova.arbitrum.io/rpc"
AURORA: "https://mainnet.aurora.dev"
AVALANCHE: "https://api.avax.network/ext/bc/C/rpc"
BASE: "https://base.llamarpc.com"
BITGERT: "https://dedicated.brisescan.com"
BSC: "https://bsc-dataseed.binance.org/"
CADUCEUS: "https://mainnet.block.caduceus.foundation/"
CASPER: "https://rpc.mainnet.casperlabs.io/rpc"
CELO: "https://forno.celo.org"
ELROND: "https://gateway.multiversx.com"
ENERGI: ""
ETHEREUM: "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
FANTOM: "https://rpc.fantom.network/"
FINDORA: ""
FUSE: "https://rpc.fuse.io/"
GATECHAIN: "https://evm.gatenode.cc"
GODWOKEN: "https://v1.mainnet.godwoken.io/rpc"
HARMONY: "https://rpc.s0.t.hmny.io"
HECO: "https://http-mainnet-node.huobichain.com"
HEDERA: "https://mainnet.hashio.io/api"
HEDERA_RELAY: "https://tools.xp.network/hedera-relay"
IOTEX: "https://babel-api.mainnet.iotex.io"
MOONBEAM: "https://rpc.api.moonbeam.network"
NEAR: "https://rpc.mainnet.near.org"
OKC: "https://exchainrpc.okex.org/"
OPTIMISM: "https://mainnet.optimism.io"
POLYGON: "https://polygon-rpc.com"
SECRET: "https://secret-4.api.trivium.network:9091/"
SKALE: "https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"
SOLANA: "https://solana-mainnet.g.alchemy.com/v2/4Fm2r6LjJO91nXrKVcZBQXcWgtVe-_gx"
TEZOS: "https://mainnet.smartpy.io"
TON: "https://toncenter.com/api/v2/jsonRPC"
TRON: "https://api.trongrid.io/"
VECHAIN: "https://sync-mainnet.veblocks.net"
VELAS: "https://mainnet.velas.com/rpc"
XDAI: "https://rpc.gnosischain.com"
ZETA: ""

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/TestNetRpcUri.html b/docs/enums/TestNetRpcUri.html index 010b82165..39fd6b1e1 100644 --- a/docs/enums/TestNetRpcUri.html +++ b/docs/enums/TestNetRpcUri.html @@ -1 +1 @@ -TestNetRpcUri | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TestNetRpcUri

Index

Enumeration Members

ABEYCHAIN: "https://testrpc.abeychain.com"
APTOS: "https://fullnode.testnet.aptoslabs.com"
ARBITRUM: "https://goerli-rollup.arbitrum.io/rpc"
AURORA: "https://testnet.aurora.dev/"
AVALANCHE: "https://api.avax-test.network/ext/bc/C/rpc"
BASE: "https://base-goerli.diamondswap.org/rpc"
BITGERT: "https://testnet-rpc.brisescan.com"
BSC: "https://data-seed-prebsc-1-s1.binance.org:8545"
CADUCEUS: "https://galaxy.block.caduceus.foundation"
CASPER: "https://rpc.testnet.casperlabs.io/rpc"
CELO: "https://alfajores-forno.celo-testnet.org"
ELROND: "https://devnet-gateway.multiversx.com"
ENERGI: "https://nodeapi.test.energi.network"
FANTOM: "https://rpc.testnet.fantom.network/"
FINDORA: "https://prod-testnet.prod.findora.org:8545"
GATECHAIN: "https://meteora-evm.gatenode.cc"
GODWOKEN: "https://godwoken-testnet-v1.ckbapp.dev"
HARMONY: "https://api.s0.b.hmny.io"
HECO: "https://http-testnet.hecochain.com"
HEDERA: "https://0.testnet.hedera.com/"
HEDERA_RELAY: "https://pool.arkhia.io/hedera/testnet/json-rpc/v1/4aX6a8J73ca92NXecaddCa4C295x62ap/"
IOTEX: "https://babel-api.testnet.iotex.io"
MOONBEAM: "https://rpc.api.moonbase.moonbeam.network"
NEAR: "https://rpc.testnet.near.org"
OKC: "https://exchaintestrpc.okex.org"
OPTIMISM: "https://goerli.optimism.io"
POLYGON: "https://polygon-mumbai.blockpi.network/v1/rpc/public"
ROPSTEN: "https://ethereum-sepolia.blockpi.network/v1/rpc/public"
SECRET: "https://api.pulsar.scrttestnet.com"
SKALE: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"
SOLANA: "https://api.devnet.solana.com"
TEZOS: "https://ghostnet.smartpy.io"
TON: "https://testnet.toncenter.com/api/v2/jsonRPC"
TRON: "https://api.shasta.trongrid.io/"
UNIQUE: "https://rpc-opal.unique.network/"
VECHAIN: "https://sync-testnet.veblocks.net"
VELAS: "https://evmexplorer.testnet.velas.com/rpc"
XDAI: "https://rpc.chiadochain.net"
ZETA: "https://zetachain-athens-evm.blockpi.network/v1/rpc/public"

Generated using TypeDoc

\ No newline at end of file +TestNetRpcUri | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TestNetRpcUri

Index

Enumeration Members

ABEYCHAIN: "https://testrpc.abeychain.com"
APTOS: "https://fullnode.testnet.aptoslabs.com"
ARBITRUM: "https://goerli-rollup.arbitrum.io/rpc"
AURORA: "https://testnet.aurora.dev/"
AVALANCHE: "https://api.avax-test.network/ext/bc/C/rpc"
BASE: "https://base-goerli.diamondswap.org/rpc"
BITGERT: "https://testnet-rpc.brisescan.com"
BSC: "https://data-seed-prebsc-1-s1.binance.org:8545"
CADUCEUS: "https://galaxy.block.caduceus.foundation"
CASPER: "https://rpc.testnet.casperlabs.io/rpc"
CELO: "https://alfajores-forno.celo-testnet.org"
ELROND: "https://devnet-gateway.multiversx.com"
ENERGI: "https://nodeapi.test.energi.network"
FANTOM: "https://rpc.testnet.fantom.network/"
FINDORA: "https://prod-testnet.prod.findora.org:8545"
GATECHAIN: "https://meteora-evm.gatenode.cc"
GODWOKEN: "https://godwoken-testnet-v1.ckbapp.dev"
HARMONY: "https://api.s0.b.hmny.io"
HECO: "https://http-testnet.hecochain.com"
HEDERA: "https://0.testnet.hedera.com/"
HEDERA_RELAY: "https://pool.arkhia.io/hedera/testnet/json-rpc/v1/4aX6a8J73ca92NXecaddCa4C295x62ap/"
IOTEX: "https://babel-api.testnet.iotex.io"
MOONBEAM: "https://rpc.api.moonbase.moonbeam.network"
NEAR: "https://rpc.testnet.near.org"
OKC: "https://exchaintestrpc.okex.org"
OPTIMISM: "https://goerli.optimism.io"
POLYGON: "https://polygon-mumbai.blockpi.network/v1/rpc/public"
ROPSTEN: "https://ethereum-sepolia.blockpi.network/v1/rpc/public"
SECRET: "https://api.pulsar.scrttestnet.com"
SKALE: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"
SOLANA: "https://api.devnet.solana.com"
TEZOS: "https://ghostnet.smartpy.io"
TON: "https://testnet.toncenter.com/api/v2/jsonRPC"
TRON: "https://api.shasta.trongrid.io/"
UNIQUE: "https://rpc-opal.unique.network/"
VECHAIN: "https://sync-testnet.veblocks.net"
VELAS: "https://evmexplorer.testnet.velas.com/rpc"
XDAI: "https://rpc.chiadochain.net"
ZETA: "https://zetachain-athens-evm.blockpi.network/v1/rpc/public"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/TransactionStatus.html b/docs/enums/TransactionStatus.html index 9d7b83d63..0605c818a 100644 --- a/docs/enums/TransactionStatus.html +++ b/docs/enums/TransactionStatus.html @@ -1 +1 @@ -TransactionStatus | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TransactionStatus

Index

Enumeration Members

Enumeration Members

FAILURE: "failure"
PENDING: "pending"
SUCCESS: "success"
UNKNOWN: "unknown"

Generated using TypeDoc

\ No newline at end of file +TransactionStatus | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TransactionStatus

Index

Enumeration Members

Enumeration Members

FAILURE: "failure"
PENDING: "pending"
SUCCESS: "success"
UNKNOWN: "unknown"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/v3_ChainId.html b/docs/enums/v3_ChainId.html index e92fe0da2..c235698a6 100644 --- a/docs/enums/v3_ChainId.html +++ b/docs/enums/v3_ChainId.html @@ -1 +1 @@ -v3_ChainId | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration v3_ChainId

Index

Enumeration Members

BSC: "BSC"
DEFAULT: ""
ELROND: "MULTIVERSX"
ETHEREUM: "ETH"
POLYGON: "MATIC"
TON: "TON"

Generated using TypeDoc

\ No newline at end of file +v3_ChainId | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration v3_ChainId

Index

Enumeration Members

BSC: "BSC"
DEFAULT: ""
ELROND: "MULTIVERSX"
ETHEREUM: "ETH"
POLYGON: "MATIC"
TON: "TON"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/AppConfig.html b/docs/interfaces/AppConfig.html index b9a546be8..3f22d2311 100644 --- a/docs/interfaces/AppConfig.html +++ b/docs/interfaces/AppConfig.html @@ -4,4 +4,4 @@
field

moralisServer: The URI of the moralis server.

field

moralisAppId: The app id of the moralis server.

field

tronScanUri: The URI of the tron scan service.

-

Hierarchy

Index

Properties

exchangeRateUri: string
heartbeatUri: string
network: "mainnet" | "staging" | "testnet"
nftListAuthToken: string
nftListUri: string
scVerifyUri: string
storageContract: string
storegeNetwork: string
tronScanUri: string
txSocketUri: string
whitelistedUri: string
wrappedNftPrefix: string

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

exchangeRateUri: string
heartbeatUri: string
network: "mainnet" | "staging" | "testnet"
nftListAuthToken: string
nftListUri: string
scVerifyUri: string
storageContract: string
storegeNetwork: string
tronScanUri: string
txSocketUri: string
whitelistedUri: string
wrappedNftPrefix: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Approve.html b/docs/interfaces/Approve.html index 987366d19..6bc942702 100644 --- a/docs/interfaces/Approve.html +++ b/docs/interfaces/Approve.html @@ -1 +1 @@ -Approve | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Approve<Sender>

Type Parameters

  • Sender

Hierarchy

  • Approve

Index

Methods

  • approveForMinter(address: NftInfo<EthNftInfo>, sender: Sender, txFee: BigNumber, overrides?: Overrides, toApprove?: string): Promise<undefined | string>

Generated using TypeDoc

\ No newline at end of file +Approve | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Approve<Sender>

Type Parameters

  • Sender

Hierarchy

  • Approve

Index

Methods

  • approveForMinter(address: NftInfo<EthNftInfo>, sender: Sender, txFee: BigNumber, overrides?: Overrides, toApprove?: string): Promise<undefined | string>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/BalanceCheck.html b/docs/interfaces/BalanceCheck.html index 9ab334751..b72091828 100644 --- a/docs/interfaces/BalanceCheck.html +++ b/docs/interfaces/BalanceCheck.html @@ -1,3 +1,3 @@ BalanceCheck | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BalanceCheck

Get the balance of an address on the chain

-

Hierarchy

  • BalanceCheck

Index

Methods

Methods

  • balance(address: string): Promise<BigNumber>

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Methods

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ChainNonceGet.html b/docs/interfaces/ChainNonceGet.html index 3bf92ee76..1ac94063b 100644 --- a/docs/interfaces/ChainNonceGet.html +++ b/docs/interfaces/ChainNonceGet.html @@ -1 +1 @@ -ChainNonceGet | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChainNonceGet

Hierarchy

  • ChainNonceGet

Index

Methods

Methods

  • getNonce(): 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
  • Returns 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

Generated using TypeDoc

\ No newline at end of file +ChainNonceGet | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChainNonceGet

Hierarchy

  • ChainNonceGet

Index

Methods

Methods

  • getNonce(): 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
  • Returns 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ChainParams.html b/docs/interfaces/ChainParams.html index 5bb974ab9..bb36aab7f 100644 --- a/docs/interfaces/ChainParams.html +++ b/docs/interfaces/ChainParams.html @@ -1,3 +1,3 @@ ChainParams | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChainParams

A type representing all the supported chain params.

-

Hierarchy

  • ChainParams

Index

Properties

abeyChainParams: Web3Params
algorandParams: AlgorandParams
aptosParams: AptosParams
arbitrumParams: Web3Params
auroraParams: Web3Params
avalancheParams: Web3Params
baseParams: Web3Params
bitgertParams: Web3Params
bscParams: Web3Params
caduceusParams: Web3Params
casperParams: CasperParams
celoParams: Web3Params
dfinityParams: DfinityParams
elrondParams: ElrondParams
energiParams: Web3Params
fantomParams: Web3Params
findoraParams: Web3Params
fuseParams: Web3Params
gateChainParams: Web3Params
godwokenParams: Web3Params
harmonyParams: Web3Params
hecoParams: Web3Params
hederaParams: Web3Params
iotexParams: Web3Params
moonbeamParams: Web3Params
nearParams: NearParams
okcParams: Web3Params
ontologyParams: Web3Params
optimismParams: Web3Params
polygonParams: Web3Params
ropstenParams: Web3Params
secretParams: SecretParams
skaleParams: Web3ERC20Params
solanaParams: SolanaParams
tezosParams: TezosParams
tonParams: TonParams
tronParams: TronParams
uniqueParams: Web3Params
vechainParams: Web3Params
velasParams: Web3Params
xDaiParams: Web3Params
zetaParams: Web3Params

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

abeyChainParams: Web3Params
algorandParams: AlgorandParams
aptosParams: AptosParams
arbitrumParams: Web3Params
auroraParams: Web3Params
avalancheParams: Web3Params
baseParams: Web3Params
bitgertParams: Web3Params
bscParams: Web3Params
caduceusParams: Web3Params
casperParams: CasperParams
celoParams: Web3Params
dfinityParams: DfinityParams
elrondParams: ElrondParams
energiParams: Web3Params
fantomParams: Web3Params
findoraParams: Web3Params
fuseParams: Web3Params
gateChainParams: Web3Params
godwokenParams: Web3Params
harmonyParams: Web3Params
hecoParams: Web3Params
hederaParams: Web3Params
iotexParams: Web3Params
moonbeamParams: Web3Params
nearParams: NearParams
okcParams: Web3Params
ontologyParams: Web3Params
optimismParams: Web3Params
polygonParams: Web3Params
ropstenParams: Web3Params
secretParams: SecretParams
skaleParams: Web3ERC20Params
solanaParams: SolanaParams
tezosParams: TezosParams
tonParams: TonParams
tronParams: TronParams
uniqueParams: Web3Params
vechainParams: Web3Params
velasParams: Web3Params
xDaiParams: Web3Params
zetaParams: Web3Params

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ClaimV3NFT.html b/docs/interfaces/ClaimV3NFT.html index fba107664..106bbb394 100644 --- a/docs/interfaces/ClaimV3NFT.html +++ b/docs/interfaces/ClaimV3NFT.html @@ -1 +1 @@ -ClaimV3NFT | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClaimV3NFT<Signer, Resp>

Type Parameters

  • Signer

  • Resp

Hierarchy

  • ClaimV3NFT

Index

Methods

Methods

Generated using TypeDoc

\ No newline at end of file +ClaimV3NFT | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClaimV3NFT<Signer, Resp>

Type Parameters

  • Signer

  • Resp

Hierarchy

  • ClaimV3NFT

Index

Methods

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ElrondParams.html b/docs/interfaces/ElrondParams.html index ac40f8ec2..bb6afc8cd 100644 --- a/docs/interfaces/ElrondParams.html +++ b/docs/interfaces/ElrondParams.html @@ -4,4 +4,4 @@
param minter_address

Address of the minter smart contract

param middleware_uri

REST API of elrond-event-middleware

param esdt_nft

Identifier of the ESDT NFT Wrapper

-

Hierarchy

Index

Properties

elrondApi: string
elrondIndex: string
esdt_nft: string
esdt_swap: string
esdt_swap_address: string
feeMargin: FeeMargins
minter_address: string
node_uri: string
nonce: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

v3_bridge: string

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

elrondApi: string
elrondIndex: string
esdt_nft: string
esdt_swap: string
esdt_swap_address: string
feeMargin: FeeMargins
minter_address: string
node_uri: string
nonce: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

v3_bridge: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ElrondRawUnsignedTxn.html b/docs/interfaces/ElrondRawUnsignedTxn.html index 31aaece1a..f0f4073f1 100644 --- a/docs/interfaces/ElrondRawUnsignedTxn.html +++ b/docs/interfaces/ElrondRawUnsignedTxn.html @@ -1 +1 @@ -ElrondRawUnsignedTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ElrondRawUnsignedTxn

Hierarchy

  • ElrondRawUnsignedTxn

Index

Properties

chainID: string
data?: string
gasLimit: number
gasPrice: number
nonce: number
options?: number
receiver: string
sender: string
signature?: string
value: string
version: number

Generated using TypeDoc

\ No newline at end of file +ElrondRawUnsignedTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ElrondRawUnsignedTxn

Hierarchy

  • ElrondRawUnsignedTxn

Index

Properties

chainID: string
data?: string
gasLimit: number
gasPrice: number
nonce: number
options?: number
receiver: string
sender: string
signature?: string
value: string
version: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/EstimateDeployFees.html b/docs/interfaces/EstimateDeployFees.html index 582b0f1c5..314b92543 100644 --- a/docs/interfaces/EstimateDeployFees.html +++ b/docs/interfaces/EstimateDeployFees.html @@ -1 +1 @@ -EstimateDeployFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateDeployFees

Hierarchy

  • EstimateDeployFees

Index

Methods

  • estimateContractDeploy(toChain: any): Promise<BigNumber>
  • estimateUserStoreDeploy(signer: Signer): Promise<BigNumber>

Generated using TypeDoc

\ No newline at end of file +EstimateDeployFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateDeployFees

Hierarchy

  • EstimateDeployFees

Index

Methods

  • estimateContractDeploy(toChain: any): Promise<BigNumber>
  • estimateUserStoreDeploy(signer: Signer): Promise<BigNumber>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/EstimateTxFees.html b/docs/interfaces/EstimateTxFees.html index 5f53bfb19..6efb73d14 100644 --- a/docs/interfaces/EstimateTxFees.html +++ b/docs/interfaces/EstimateTxFees.html @@ -1 +1 @@ -EstimateTxFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateTxFees<RawNftF>

Type Parameters

  • RawNftF

Hierarchy

  • EstimateTxFees

Index

Methods

  • estimateValidateTransferNft(to: string, metadata: NftInfo<RawNftF>, mintWith: string): Promise<BigNumber>
  • estimateValidateUnfreezeNft(to: string, metadata: NftInfo<RawNftF>, mintWith: string): Promise<BigNumber>
  • isNftWhitelisted(nft: any, signer?: any): Promise<Boolean>

Generated using TypeDoc

\ No newline at end of file +EstimateTxFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateTxFees<RawNftF>

Type Parameters

  • RawNftF

Hierarchy

  • EstimateTxFees

Index

Methods

  • estimateValidateTransferNft(to: string, metadata: NftInfo<RawNftF>, mintWith: string): Promise<BigNumber>
  • estimateValidateUnfreezeNft(to: string, metadata: NftInfo<RawNftF>, mintWith: string): Promise<BigNumber>
  • isNftWhitelisted(nft: any, signer?: any): Promise<Boolean>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/EstimateTxFeesBatch.html b/docs/interfaces/EstimateTxFeesBatch.html index 8d5ad99b4..bbef513c0 100644 --- a/docs/interfaces/EstimateTxFeesBatch.html +++ b/docs/interfaces/EstimateTxFeesBatch.html @@ -1 +1 @@ -EstimateTxFeesBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateTxFeesBatch<RawNftF>

Type Parameters

  • RawNftF

Hierarchy

  • EstimateTxFeesBatch

Index

Methods

  • estimateValidateTransferNftBatch(to: string, metadatas: NftInfo<RawNftF>[], mintWith: string[]): Promise<BigNumber>
  • estimateValidateUnfreezeNftBatch(to: string, metadatas: NftInfo<RawNftF>[]): Promise<BigNumber>

Generated using TypeDoc

\ No newline at end of file +EstimateTxFeesBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EstimateTxFeesBatch<RawNftF>

Type Parameters

  • RawNftF

Hierarchy

  • EstimateTxFeesBatch

Index

Methods

  • estimateValidateTransferNftBatch(to: string, metadatas: NftInfo<RawNftF>[], mintWith: string[]): Promise<BigNumber>
  • estimateValidateUnfreezeNftBatch(to: string, metadatas: NftInfo<RawNftF>[]): Promise<BigNumber>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ExtractAction.html b/docs/interfaces/ExtractAction.html index 3f85b8920..047b0de50 100644 --- a/docs/interfaces/ExtractAction.html +++ b/docs/interfaces/ExtractAction.html @@ -1 +1 @@ -ExtractAction | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExtractAction<Txn>

Type Parameters

  • Txn

Hierarchy

  • ExtractAction

Index

Methods

  • extractAction(txn: Txn): Promise<string>

Generated using TypeDoc

\ No newline at end of file +ExtractAction | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExtractAction<Txn>

Type Parameters

  • Txn

Hierarchy

  • ExtractAction

Index

Methods

  • extractAction(txn: Txn): Promise<string>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ExtractTxnStatus.html b/docs/interfaces/ExtractTxnStatus.html index f233f1f3f..b398c756b 100644 --- a/docs/interfaces/ExtractTxnStatus.html +++ b/docs/interfaces/ExtractTxnStatus.html @@ -1 +1 @@ -ExtractTxnStatus | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExtractTxnStatus

Hierarchy

  • ExtractTxnStatus

Index

Methods

Generated using TypeDoc

\ No newline at end of file +ExtractTxnStatus | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExtractTxnStatus

Hierarchy

  • ExtractTxnStatus

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/FeeMargins.html b/docs/interfaces/FeeMargins.html index 5d79d15dc..bcd78d7dd 100644 --- a/docs/interfaces/FeeMargins.html +++ b/docs/interfaces/FeeMargins.html @@ -1 +1 @@ -FeeMargins | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FeeMargins

Hierarchy

  • FeeMargins

Index

Properties

Properties

max: number
min: number

Generated using TypeDoc

\ No newline at end of file +FeeMargins | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FeeMargins

Hierarchy

  • FeeMargins

Index

Properties

Properties

max: number
min: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetClaimData.html b/docs/interfaces/GetClaimData.html index db8567882..b9a500aab 100644 --- a/docs/interfaces/GetClaimData.html +++ b/docs/interfaces/GetClaimData.html @@ -1 +1 @@ -GetClaimData | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetClaimData

Hierarchy

  • GetClaimData

Index

Methods

  • getClaimData(hash: string, helpers: HelperMap<2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44>): Promise<ClaimData>
  • Parameters

    • hash: string
    • helpers: HelperMap<2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44>

    Returns Promise<ClaimData>

Generated using TypeDoc

\ No newline at end of file +GetClaimData | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetClaimData

Hierarchy

  • GetClaimData

Index

Methods

  • getClaimData(hash: string, helpers: HelperMap<2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44>): Promise<ClaimData>
  • Parameters

    • hash: string
    • helpers: HelperMap<2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44>

    Returns Promise<ClaimData>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetExtraFees.html b/docs/interfaces/GetExtraFees.html index 2964045ca..afa033052 100644 --- a/docs/interfaces/GetExtraFees.html +++ b/docs/interfaces/GetExtraFees.html @@ -1 +1 @@ -GetExtraFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetExtraFees

Hierarchy

  • GetExtraFees

Index

Methods

  • getExtraFees(toNonce: number): BigNumber

Generated using TypeDoc

\ No newline at end of file +GetExtraFees | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetExtraFees

Hierarchy

  • GetExtraFees

Index

Methods

  • getExtraFees(toNonce: number): BigNumber

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetFeeMargins.html b/docs/interfaces/GetFeeMargins.html index 248f567f8..2ff5a62e0 100644 --- a/docs/interfaces/GetFeeMargins.html +++ b/docs/interfaces/GetFeeMargins.html @@ -1 +1 @@ -GetFeeMargins | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetFeeMargins

Hierarchy

  • GetFeeMargins

Index

Methods

Generated using TypeDoc

\ No newline at end of file +GetFeeMargins | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetFeeMargins

Hierarchy

  • GetFeeMargins

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetNftOrigin.html b/docs/interfaces/GetNftOrigin.html index f0a604270..beb129f21 100644 --- a/docs/interfaces/GetNftOrigin.html +++ b/docs/interfaces/GetNftOrigin.html @@ -1 +1 @@ -GetNftOrigin | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetNftOrigin

Hierarchy

  • GetNftOrigin

Index

Methods

  • getNftOrigin(address: string): Promise<{ contract?: string; origin: string }>
  • Parameters

    • address: string

    Returns Promise<{ contract?: string; origin: string }>

Generated using TypeDoc

\ No newline at end of file +GetNftOrigin | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetNftOrigin

Hierarchy

  • GetNftOrigin

Index

Methods

  • getNftOrigin(address: string): Promise<{ contract?: string; origin: string }>
  • Parameters

    • address: string

    Returns Promise<{ contract?: string; origin: string }>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetProvider.html b/docs/interfaces/GetProvider.html index d5a53e496..dd2a26abb 100644 --- a/docs/interfaces/GetProvider.html +++ b/docs/interfaces/GetProvider.html @@ -1 +1 @@ -GetProvider | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetProvider<Provider>

Type Parameters

  • Provider

Hierarchy

  • GetProvider

Index

Methods

  • getProvider(): Provider

Generated using TypeDoc

\ No newline at end of file +GetProvider | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetProvider<Provider>

Type Parameters

  • Provider

Hierarchy

  • GetProvider

Index

Methods

  • getProvider(): Provider

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetTokenInfo.html b/docs/interfaces/GetTokenInfo.html index 05321af89..15ed7de9a 100644 --- a/docs/interfaces/GetTokenInfo.html +++ b/docs/interfaces/GetTokenInfo.html @@ -1 +1 @@ -GetTokenInfo | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetTokenInfo

Hierarchy

  • GetTokenInfo

Index

Methods

Generated using TypeDoc

\ No newline at end of file +GetTokenInfo | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetTokenInfo

Hierarchy

  • GetTokenInfo

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/GetTokenURI.html b/docs/interfaces/GetTokenURI.html index d20dfb4e5..2501e6145 100644 --- a/docs/interfaces/GetTokenURI.html +++ b/docs/interfaces/GetTokenURI.html @@ -1 +1 @@ -GetTokenURI | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetTokenURI

Hierarchy

  • GetTokenURI

Index

Methods

  • getTokenURI(contract: string, tokenId: string): Promise<string>

Generated using TypeDoc

\ No newline at end of file +GetTokenURI | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetTokenURI

Hierarchy

  • GetTokenURI

Index

Methods

  • getTokenURI(contract: string, tokenId: string): Promise<string>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IsApproved.html b/docs/interfaces/IsApproved.html index a55553158..01259c892 100644 --- a/docs/interfaces/IsApproved.html +++ b/docs/interfaces/IsApproved.html @@ -1 +1 @@ -IsApproved | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsApproved<Sender>

Type Parameters

  • Sender

Hierarchy

  • IsApproved

Index

Methods

  • isApprovedForMinter(address: NftInfo<EthNftInfo>, sender: Sender, toApprove: string): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file +IsApproved | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsApproved<Sender>

Type Parameters

  • Sender

Hierarchy

  • IsApproved

Index

Methods

  • isApprovedForMinter(address: NftInfo<EthNftInfo>, sender: Sender, toApprove: string): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IsApprovedForMinter.html b/docs/interfaces/IsApprovedForMinter.html index b8690ddff..88753c529 100644 --- a/docs/interfaces/IsApprovedForMinter.html +++ b/docs/interfaces/IsApprovedForMinter.html @@ -1 +1 @@ -IsApprovedForMinter | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsApprovedForMinter<Signer, RawNft>

Type Parameters

  • Signer

  • RawNft

Hierarchy

  • IsApprovedForMinter

Index

Methods

  • isApprovedForMinter(signer: Signer, nft: NftInfo<RawNft>): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file +IsApprovedForMinter | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsApprovedForMinter<Signer, RawNft>

Type Parameters

  • Signer

  • RawNft

Hierarchy

  • IsApprovedForMinter

Index

Methods

  • isApprovedForMinter(signer: Signer, nft: NftInfo<RawNft>): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IsContractAddress.html b/docs/interfaces/IsContractAddress.html index fa72d2b2e..0a40bcdba 100644 --- a/docs/interfaces/IsContractAddress.html +++ b/docs/interfaces/IsContractAddress.html @@ -1 +1 @@ -IsContractAddress | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsContractAddress

Hierarchy

  • IsContractAddress

Index

Methods

  • isContractAddress(address: string): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file +IsContractAddress | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IsContractAddress

Hierarchy

  • IsContractAddress

Index

Methods

  • isContractAddress(address: string): Promise<boolean>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IssueESDTNFT.html b/docs/interfaces/IssueESDTNFT.html index 8920d812e..ae7abdc59 100644 --- a/docs/interfaces/IssueESDTNFT.html +++ b/docs/interfaces/IssueESDTNFT.html @@ -1,6 +1,6 @@ IssueESDTNFT | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IssueESDTNFT

Utility for issuing ESDT which supports NFT minting

-

Hierarchy

  • IssueESDTNFT

Index

Methods

  • issueESDTNft(sender: ElrondSigner, name: string, ticker: string, canFreeze: undefined | boolean, canWipe: undefined | boolean, canTransferNFTCreateRole: undefined | boolean): Promise<string>

Hierarchy

  • IssueESDTNFT

Index

Methods

  • issueESDTNft(sender: ElrondSigner, name: string, ticker: string, canFreeze: undefined | boolean, canWipe: undefined | boolean, canTransferNFTCreateRole: undefined | boolean): Promise<string>
  • Issue a new ESDT supporting NFTs

    Parameters

    • sender: ElrondSigner

      Owner of this ESDT

      diff --git a/docs/interfaces/LockNFT.html b/docs/interfaces/LockNFT.html index 916b5556e..89499cf68 100644 --- a/docs/interfaces/LockNFT.html +++ b/docs/interfaces/LockNFT.html @@ -1 +1 @@ -LockNFT | xp.network
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface LockNFT<Signer, RawNft, Resp>

      Type Parameters

      • Signer

      • RawNft

      • Resp

      Hierarchy

      • LockNFT

      Index

      Methods

      Methods

      • lockNFT(sender: Signer, toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX", id: NftInfo<RawNft>, receiver: string): Promise<undefined | Resp>
      • Parameters

        • sender: Signer
        • toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"
        • id: NftInfo<RawNft>
        • receiver: string

        Returns Promise<undefined | Resp>

      Legend

      • Property
      • Method

      Settings

      Theme

      Generated using TypeDoc

      \ No newline at end of file +LockNFT | xp.network
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface LockNFT<Signer, RawNft, Resp>

      Type Parameters

      • Signer

      • RawNft

      • Resp

      Hierarchy

      • LockNFT

      Index

      Methods

      Methods

      • lockNFT(sender: Signer, toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX", id: NftInfo<RawNft>, receiver: string): Promise<undefined | Resp>
      • Parameters

        • sender: Signer
        • toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"
        • id: NftInfo<RawNft>
        • receiver: string

        Returns Promise<undefined | Resp>

      Legend

      • Property
      • Method

      Settings

      Theme

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/interfaces/MintNft.html b/docs/interfaces/MintNft.html index 57e0f6723..8d78c5b6a 100644 --- a/docs/interfaces/MintNft.html +++ b/docs/interfaces/MintNft.html @@ -1,4 +1,4 @@ MintNft | xp.network
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface MintNft<Signer, Args, Identifier>

      Create a new NFT on this chain

      param options

      Arguments required to mint the nft

      -

      Type Parameters

      • Signer

      • Args

      • Identifier

      Hierarchy

      • MintNft

      Index

      Methods

      Methods

      • mintNft(owner: Signer, options: Args): Promise<Identifier>

      Legend

      • Property
      • Method

      Settings

      Theme

      Generated using TypeDoc

      \ No newline at end of file +

Type Parameters

  • Signer

  • Args

  • Identifier

Hierarchy

  • MintNft

Index

Methods

Methods

  • mintNft(owner: Signer, options: Args): Promise<Identifier>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ParamsGetter.html b/docs/interfaces/ParamsGetter.html index 5b81f54c4..5a1afd76e 100644 --- a/docs/interfaces/ParamsGetter.html +++ b/docs/interfaces/ParamsGetter.html @@ -1 +1 @@ -ParamsGetter | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ParamsGetter<T>

Type Parameters

  • T

Hierarchy

  • ParamsGetter

Index

Methods

Methods

  • getParams(): T

Generated using TypeDoc

\ No newline at end of file +ParamsGetter | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ParamsGetter<T>

Type Parameters

  • T

Hierarchy

  • ParamsGetter

Index

Methods

Methods

  • getParams(): T

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/PreTransfer.html b/docs/interfaces/PreTransfer.html index b6e521315..38a12ed51 100644 --- a/docs/interfaces/PreTransfer.html +++ b/docs/interfaces/PreTransfer.html @@ -1,3 +1,3 @@ PreTransfer | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PreTransfer<Signer, Nft, Ret, ExtraArgs>

Action to perform before transfer/unfreeze (if any)

-

Type Parameters

  • Signer

  • Nft

  • Ret

  • ExtraArgs

Hierarchy

  • PreTransfer

Index

Methods

  • preTransfer(sender: Signer, nft: NftInfo<Nft>, fee: BigNumber, args?: ExtraArgs): Promise<undefined | Ret>
  • Parameters

    • sender: Signer
    • nft: NftInfo<Nft>
    • fee: BigNumber
    • Optional args: ExtraArgs

    Returns Promise<undefined | Ret>

  • preUnfreeze(sender: Signer, nft: NftInfo<Nft>, fee: BigNumber, args?: ExtraArgs): Promise<undefined | Ret>
  • Parameters

    • sender: Signer
    • nft: NftInfo<Nft>
    • fee: BigNumber
    • Optional args: ExtraArgs

    Returns Promise<undefined | Ret>

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Hierarchy

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/PreTransferRawTxn.html b/docs/interfaces/PreTransferRawTxn.html index c84b414d1..ef34a51b1 100644 --- a/docs/interfaces/PreTransferRawTxn.html +++ b/docs/interfaces/PreTransferRawTxn.html @@ -1 +1 @@ -PreTransferRawTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PreTransferRawTxn<NativeNft, Ret>

Type Parameters

  • NativeNft

  • Ret

Hierarchy

  • PreTransferRawTxn

Index

Methods

  • preTransferRawTxn(id: NftInfo<NativeNft>, address: string, value?: BigNumber): Promise<undefined | Ret>
  • Parameters

    • id: NftInfo<NativeNft>
    • address: string
    • Optional value: BigNumber

    Returns Promise<undefined | Ret>

Generated using TypeDoc

\ No newline at end of file +PreTransferRawTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PreTransferRawTxn<NativeNft, Ret>

Type Parameters

  • NativeNft

  • Ret

Hierarchy

  • PreTransferRawTxn

Index

Methods

  • preTransferRawTxn(id: NftInfo<NativeNft>, address: string, value?: BigNumber): Promise<undefined | Ret>
  • Parameters

    • id: NftInfo<NativeNft>
    • address: string
    • Optional value: BigNumber

    Returns Promise<undefined | Ret>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/SetESDTRoles.html b/docs/interfaces/SetESDTRoles.html index 24de216d7..e682068e3 100644 --- a/docs/interfaces/SetESDTRoles.html +++ b/docs/interfaces/SetESDTRoles.html @@ -1,6 +1,6 @@ SetESDTRoles | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SetESDTRoles

Utility for setting ESDT roles

-

Hierarchy

  • SetESDTRoles

Index

Methods

  • setESDTRole(sender: ElrondSigner, token: string, target: Address, roles: ESDTRole[]): Promise<Transaction>

Hierarchy

  • SetESDTRoles

Index

Methods

  • setESDTRole(sender: ElrondSigner, token: string, target: Address, roles: ESDTRole[]): Promise<Transaction>
  • Set the roles for a given account for an esdt

    Parameters

    • sender: ElrondSigner

      Target account

      @@ -8,4 +8,4 @@

      ESDT Identifier

    • target: Address
    • roles: ESDTRole[]

      Roles to set

      -

    Returns Promise<Transaction>

  • transferESDTOwnership(sender: ElrondSigner, token: string, target: Address): Promise<Transaction>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<Transaction>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/TransferNftForeign.html b/docs/interfaces/TransferNftForeign.html index 71a228db5..6ec624833 100644 --- a/docs/interfaces/TransferNftForeign.html +++ b/docs/interfaces/TransferNftForeign.html @@ -5,4 +5,4 @@
param to

Address of the receiver on the foreign chain

param id

Information required to freeze this nft

returns

Transaction and the Identifier of this action to track the status

-

Type Parameters

Hierarchy

Index

Methods

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Hierarchy

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/TransferNftForeignBatch.html b/docs/interfaces/TransferNftForeignBatch.html index 156050e1a..06236a0b1 100644 --- a/docs/interfaces/TransferNftForeignBatch.html +++ b/docs/interfaces/TransferNftForeignBatch.html @@ -1 +1 @@ -TransferNftForeignBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransferNftForeignBatch<Signer, RawNft, Resp>

Type Parameters

  • Signer

  • RawNft

  • Resp

Hierarchy

  • TransferNftForeignBatch

Index

Methods

  • transferNftBatchToForeign(sender: Signer, chain_nonce: number, to: string, id: NftInfo<RawNft>[], mintWith: string, txFees: BigNumber, toParams?: any): Promise<Resp>
  • Parameters

    • sender: Signer
    • chain_nonce: number
    • to: string
    • id: NftInfo<RawNft>[]
    • mintWith: string
    • txFees: BigNumber
    • Optional toParams: any

    Returns Promise<Resp>

Generated using TypeDoc

\ No newline at end of file +TransferNftForeignBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransferNftForeignBatch<Signer, RawNft, Resp>

Type Parameters

  • Signer

  • RawNft

  • Resp

Hierarchy

  • TransferNftForeignBatch

Index

Methods

  • transferNftBatchToForeign(sender: Signer, chain_nonce: number, to: string, id: NftInfo<RawNft>[], mintWith: string, txFees: BigNumber, toParams?: any): Promise<Resp>
  • Parameters

    • sender: Signer
    • chain_nonce: number
    • to: string
    • id: NftInfo<RawNft>[]
    • mintWith: string
    • txFees: BigNumber
    • Optional toParams: any

    Returns Promise<Resp>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/TronParams.html b/docs/interfaces/TronParams.html index 8f9f0e28d..5d6657ca3 100644 --- a/docs/interfaces/TronParams.html +++ b/docs/interfaces/TronParams.html @@ -1 +1 @@ -TronParams | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TronParams

Hierarchy

  • TronParams

Index

Properties

erc1155_addr: string
erc721_addr: string
feeMargin: FeeMargins
minter_addr: string
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

provider: TronWeb
validators: string[]

Generated using TypeDoc

\ No newline at end of file +TronParams | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TronParams

Hierarchy

  • TronParams

Index

Properties

erc1155_addr: string
erc721_addr: string
feeMargin: FeeMargins
minter_addr: string
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

provider: TronWeb
validators: string[]

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/TronRawTxn.html b/docs/interfaces/TronRawTxn.html index e7fcc9750..edcd19786 100644 --- a/docs/interfaces/TronRawTxn.html +++ b/docs/interfaces/TronRawTxn.html @@ -1 +1 @@ -TronRawTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TronRawTxn

Hierarchy

  • TronRawTxn

Index

Properties

raw_data: { contract: { parameter: { type_url: string; value: { contract_address: string; data: string; owner_address: string } }; type: string }[]; expiration: number; fee_limit: number; ref_block_bytes: string; ref_block_hash: string; timestamp: number }

Type declaration

  • Readonly contract: { parameter: { type_url: string; value: { contract_address: string; data: string; owner_address: string } }; type: string }[]
  • expiration: number
  • Readonly fee_limit: number
  • Readonly ref_block_bytes: string
  • Readonly ref_block_hash: string
  • Readonly timestamp: number
raw_data_hex: string
txID: string
visible: boolean

Generated using TypeDoc

\ No newline at end of file +TronRawTxn | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TronRawTxn

Hierarchy

  • TronRawTxn

Index

Properties

raw_data: { contract: { parameter: { type_url: string; value: { contract_address: string; data: string; owner_address: string } }; type: string }[]; expiration: number; fee_limit: number; ref_block_bytes: string; ref_block_hash: string; timestamp: number }

Type declaration

  • Readonly contract: { parameter: { type_url: string; value: { contract_address: string; data: string; owner_address: string } }; type: string }[]
  • expiration: number
  • Readonly fee_limit: number
  • Readonly ref_block_bytes: string
  • Readonly ref_block_hash: string
  • Readonly timestamp: number
raw_data_hex: string
txID: string
visible: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/UnfreezeForeignNft.html b/docs/interfaces/UnfreezeForeignNft.html index 761b68bb1..b844220d8 100644 --- a/docs/interfaces/UnfreezeForeignNft.html +++ b/docs/interfaces/UnfreezeForeignNft.html @@ -5,4 +5,4 @@
param to

Address of the receiver on the original chain

param id

Information required to unfreeze this nft

returns

Transaction and the Identifier of this action to track the status

-

Type Parameters

Hierarchy

Index

Methods

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Hierarchy

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/UnfreezeForeignNftBatch.html b/docs/interfaces/UnfreezeForeignNftBatch.html index 56de59b9f..7016de612 100644 --- a/docs/interfaces/UnfreezeForeignNftBatch.html +++ b/docs/interfaces/UnfreezeForeignNftBatch.html @@ -1 +1 @@ -UnfreezeForeignNftBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnfreezeForeignNftBatch<Signer, RawNft, Resp>

Type Parameters

  • Signer

  • RawNft

  • Resp

Hierarchy

  • UnfreezeForeignNftBatch

Index

Methods

  • unfreezeWrappedNftBatch(sender: Signer, chainNonce: number, to: string, nfts: NftInfo<RawNft>[], txFees: BigNumber): Promise<Resp>
  • Parameters

    • sender: Signer
    • chainNonce: number
    • to: string
    • nfts: NftInfo<RawNft>[]
    • txFees: BigNumber

    Returns Promise<Resp>

Generated using TypeDoc

\ No newline at end of file +UnfreezeForeignNftBatch | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnfreezeForeignNftBatch<Signer, RawNft, Resp>

Type Parameters

  • Signer

  • RawNft

  • Resp

Hierarchy

  • UnfreezeForeignNftBatch

Index

Methods

  • unfreezeWrappedNftBatch(sender: Signer, chainNonce: number, to: string, nfts: NftInfo<RawNft>[], txFees: BigNumber): Promise<Resp>
  • Parameters

    • sender: Signer
    • chainNonce: number
    • to: string
    • nfts: NftInfo<RawNft>[]
    • txFees: BigNumber

    Returns Promise<Resp>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/UserStore.html b/docs/interfaces/UserStore.html index f84d1d240..0a96f12c3 100644 --- a/docs/interfaces/UserStore.html +++ b/docs/interfaces/UserStore.html @@ -1 +1 @@ -UserStore | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserStore

Hierarchy

  • UserStore

Index

Methods

  • checkUserStore(nft: NftInfo<any>): Promise<string>
  • getUserStore(signer: Signer, nft: NftInfo<any>, fees?: number, isMapped?: boolean): Promise<{ address: string; contract: any }>
  • Parameters

    • signer: Signer
    • nft: NftInfo<any>
    • Optional fees: number
    • Optional isMapped: boolean

    Returns Promise<{ address: string; contract: any }>

Generated using TypeDoc

\ No newline at end of file +UserStore | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserStore

Hierarchy

  • UserStore

Index

Methods

  • checkUserStore(nft: NftInfo<any>): Promise<string>
  • getUserStore(signer: Signer, nft: NftInfo<any>, fees?: number, isMapped?: boolean): Promise<{ address: string; contract: any }>
  • Parameters

    • signer: Signer
    • nft: NftInfo<any>
    • Optional fees: number
    • Optional isMapped: boolean

    Returns Promise<{ address: string; contract: any }>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ValidateAddress.html b/docs/interfaces/ValidateAddress.html index 259130f7f..649239ad3 100644 --- a/docs/interfaces/ValidateAddress.html +++ b/docs/interfaces/ValidateAddress.html @@ -1 +1 @@ -ValidateAddress | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidateAddress

Hierarchy

  • ValidateAddress

Index

Methods

Generated using TypeDoc

\ No newline at end of file +ValidateAddress | xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidateAddress

Hierarchy

  • ValidateAddress

Index

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Web3Params.html b/docs/interfaces/Web3Params.html index b0b24c764..b7b9f12b7 100644 --- a/docs/interfaces/Web3Params.html +++ b/docs/interfaces/Web3Params.html @@ -3,4 +3,4 @@
param provider

An ethers.js provider object

param minter_addr

Address of the minter smart contract

param minter_abi

ABI of the minter smart contract

-

Hierarchy

Index

Properties

erc1155Minter: string
erc1155_addr: string
erc721Minter: string
erc721_addr: string
extraFees?: string
feeMargin: FeeMargins
minter_addr: string
noWhitelist?: boolean
nonce: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

provider: Provider
v3_bridge?: string

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

erc1155Minter: string
erc1155_addr: string
erc721Minter: string
erc721_addr: string
extraFees?: string
feeMargin: FeeMargins
minter_addr: string
noWhitelist?: boolean
nonce: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44
notifier: { createCollectionContract: any; getCollectionContract: any; notifyAlgorand: any; notifyAptos: any; notifyCasper: any; notifyDfinity: any; notifyEVM: any; notifyElrond: any; notifyNear: any; notifySecret: any; notifySolana: any; notifyTezos: any; notifyTon: any; notifyTron: any; notifyWeb3: any }

Type declaration

  • createCollectionContract:function
    • createCollectionContract(collectionAddress: string, chainNonce: number, type: string): Promise<string>
  • getCollectionContract:function
    • getCollectionContract(collectionAddress: string, chainNonce: number): Promise<string>
  • notifyAlgorand:function
    • notifyAlgorand(txHash: string): Promise<void>
  • notifyAptos:function
    • notifyAptos(txHash: string): Promise<void>
  • notifyCasper:function
    • notifyCasper(txHash: string): Promise<void>
  • notifyDfinity:function
    • notifyDfinity(actionId: string): Promise<void>
  • notifyEVM:function
    • notifyEVM(nonce: number, address: string): Promise<void>
  • notifyElrond:function
    • notifyElrond(txHash: string, sender: string, uris: string[], action_id: undefined | string): Promise<void>
  • notifyNear:function
    • notifyNear(txHash: string): Promise<void>
  • notifySecret:function
    • notifySecret(txHash: string, vk: string): Promise<void>
  • notifySolana:function
    • notifySolana(txHash: string): Promise<void>
  • notifyTezos:function
    • notifyTezos(txHash: string): Promise<void>
  • notifyTon:function
    • notifyTon(txHash: string): Promise<void>
  • notifyTron:function
    • notifyTron(txHash: string): Promise<void>
  • notifyWeb3:function
    • notifyWeb3(fromChain: number, fromHash: string, actionId?: string, type?: string, toChain?: number, txFees?: string, senderAddress?: string, targetAddress?: string, nftUri?: string, tokenId?: string, contract?: string): Promise<void>
    • Parameters

      • fromChain: number
      • fromHash: string
      • Optional actionId: string
      • Optional type: string
      • Optional toChain: number
      • Optional txFees: string
      • Optional senderAddress: string
      • Optional targetAddress: string
      • Optional nftUri: string
      • Optional tokenId: string
      • Optional contract: string

      Returns Promise<void>

provider: Provider
v3_bridge?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index a66071494..0665b6c7f 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,19 +1,19 @@ -xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

xp.network

Index

Type Aliases

AddressValidationOptions: { apiValidation: boolean }

Type declaration

  • apiValidation: boolean
AlgorandSocketHelper: { claimHederaNfts: any; claimNfts: any; cleanNfts: any; waitAlgorandNft: any }

Type declaration

  • claimHederaNfts:function
    • claimHederaNfts(from: number, to: string): Promise<any[]>
    • Parameters

      • from: number
      • to: string

      Returns Promise<any[]>

  • claimNfts:function
    • claimNfts(receiver: string): Promise<DbClaimInfo[]>
    • Parameters

      • receiver: string

      Returns Promise<DbClaimInfo[]>

  • cleanNfts:function
    • cleanNfts(owner: string): Promise<void>
    • Parameters

      • owner: string

      Returns Promise<void>

  • waitAlgorandNft:function
    • waitAlgorandNft(sourceChain: number, receiver: string, action_id: string): Promise<ClaimNftInfo>
    • Parameters

      • sourceChain: number
      • receiver: string
      • action_id: string

      Returns Promise<ClaimNftInfo>

BaseTronHelper: BalanceCheck & MintNft<TronSender, MintArgs, string> & { deployErc721: any; deployMinter: any }
BaseWeb3Helper: BalanceCheck & MintNft<Signer, MintArgs, ContractTransaction> & { deployErc721: any } & { mintNftErc1155: any }
+xp.network
Options
All
  • Public
  • Public/Protected
  • All
Menu

xp.network

Index

Type Aliases

AddressValidationOptions: { apiValidation: boolean }

Type declaration

  • apiValidation: boolean
AlgorandSocketHelper: { claimHederaNfts: any; claimNfts: any; cleanNfts: any; waitAlgorandNft: any }

Type declaration

  • claimHederaNfts:function
    • claimHederaNfts(from: number, to: string): Promise<any[]>
    • Parameters

      • from: number
      • to: string

      Returns Promise<any[]>

  • claimNfts:function
    • claimNfts(receiver: string): Promise<DbClaimInfo[]>
    • Parameters

      • receiver: string

      Returns Promise<DbClaimInfo[]>

  • cleanNfts:function
    • cleanNfts(owner: string): Promise<void>
    • Parameters

      • owner: string

      Returns Promise<void>

  • waitAlgorandNft:function
    • waitAlgorandNft(sourceChain: number, receiver: string, action_id: string): Promise<ClaimNftInfo>
    • Parameters

      • sourceChain: number
      • receiver: string
      • action_id: string

      Returns Promise<ClaimNftInfo>

BaseTronHelper: BalanceCheck & MintNft<TronSender, MintArgs, string> & { deployErc721: any; deployMinter: any }
BaseWeb3Helper: BalanceCheck & MintNft<Signer, MintArgs, ContractTransaction> & { deployErc721: any } & { mintNftErc1155: any }

Base util traits

-
ChainFactory: { balance: any; bridgeStatus: any; checkWhitelist: any; claimHederaNFT: any; claimNFT: any; claimableAlgorandNfts: any; estimateBatchFees: any; estimateClaimFee: any; estimateFees: any; estimateSFTfees: any; estimateWithContractDep: any; getDestinationTransaction: any; getVerifiedContract: any; hederaGetMintedCollection: any; inner: any; isWrappedNft: any; listHederaClaimableNFT: any; lockNFT: any; mint: any; nftList: any; pkeyToSigner: any; setProvider: any; transferBatchNft: any; transferNft: any; transferSft: any; updateParams: any; waitAlgorandNft: any; whitelistEVM: any }
+
ChainFactory: { balance: any; bridgeStatus: any; checkWhitelist: any; claimHederaNFT: any; claimNFT: any; claimableAlgorandNfts: any; estimateBatchFees: any; estimateClaimFee: any; estimateFees: any; estimateSFTfees: any; estimateWithContractDep: any; getDestinationTransaction: any; getVerifiedContract: any; hederaGetMintedCollection: any; inner: any; isWrappedNft: any; listHederaClaimableNFT: any; lockNFT: any; mint: any; nftList: any; pkeyToSigner: any; setProvider: any; transferBatchNft: any; transferNft: any; transferSft: any; updateParams: any; waitAlgorandNft: any; whitelistEVM: any }

A type representing a chain factory.

-

Type declaration

  • balance:function
    • balance(inner: BalanceCheck, address: string): Promise<BigNumber>
    • +

      Type declaration

      • balance:function
        • balance(inner: BalanceCheck, address: string): Promise<BigNumber>
        • Check the balance of an account

          Parameters

          • inner: BalanceCheck

            The chain to check the balance in

          • address: string

            address of the account

            -

          Returns Promise<BigNumber>

      • bridgeStatus:function
        • bridgeStatus(): Promise<{}>

        Returns Promise<BigNumber>

    • bridgeStatus:function
      • bridgeStatus(): Promise<{}>
      • Whether or not the bridge is alive for a given chain this is checked regardless before using any bridge related function(e.g transferNft) is called

        -

        Returns Promise<{}>

    • checkWhitelist:function
    • claimHederaNFT:function
      • claimHederaNFT(serialNumber: BigNumberish, proxyAddress: string, htsToken: string, sender: Wallet): Promise<any>
      • Parameters

        • serialNumber: BigNumberish
        • proxyAddress: string
        • htsToken: string
        • sender: Wallet

        Returns Promise<any>

    • claimNFT:function
    • claimableAlgorandNfts:function
      • claimableAlgorandNfts(claimer: string): Promise<ClaimNftInfo[]>
    • estimateBatchFees:function
      • estimateBatchFees<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>[], receiver: string): Promise<BigNumber>
      • Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • toChain: FullChain<SignerT, RawNftT, Resp>
        • nft: NftInfo<RawNftF>[]
        • receiver: string

        Returns Promise<BigNumber>

    • estimateClaimFee:function
      • estimateClaimFee(fromChain: FullChain<never, unknown, unknown>, storageContract: undefined | BridgeStorage): Promise<string>
      • Parameters

        • fromChain: FullChain<never, unknown, unknown>
        • storageContract: undefined | BridgeStorage

        Returns Promise<string>

    • estimateFees:function
      • estimateFees<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>, receiver: string): Promise<BigNumber>
    • checkWhitelist:function
    • claimHederaNFT:function
      • claimHederaNFT(serialNumber: BigNumberish, proxyAddress: string, htsToken: string, sender: Wallet): Promise<any>
      • Parameters

        • serialNumber: BigNumberish
        • proxyAddress: string
        • htsToken: string
        • sender: Wallet

        Returns Promise<any>

    • claimNFT:function
    • claimableAlgorandNfts:function
      • claimableAlgorandNfts(claimer: string): Promise<ClaimNftInfo[]>
    • estimateBatchFees:function
      • estimateBatchFees<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>[], receiver: string): Promise<BigNumber>
      • Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • toChain: FullChain<SignerT, RawNftT, Resp>
        • nft: NftInfo<RawNftF>[]
        • receiver: string

        Returns Promise<BigNumber>

    • estimateClaimFee:function
      • estimateClaimFee(fromChain: FullChain<never, unknown, unknown>, storageContract: undefined | BridgeStorage): Promise<string>
      • Parameters

        • fromChain: FullChain<never, unknown, unknown>
        • storageContract: undefined | BridgeStorage

        Returns Promise<string>

    • estimateFees:function
      • estimateFees<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>, receiver: string): Promise<BigNumber>
      • Estimates the required fee for transferring an NFT.

        -

        Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        Returns Promise<BigNumber>

    • estimateSFTfees:function
      • estimateSFTfees<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, amount: bigint, price: number): Promise<BigNumber>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • amount: bigint
        • price: number

        Returns Promise<BigNumber>

    • estimateWithContractDep:function
      • estimateWithContractDep<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>, receiver: string): Promise<{ calcContractDep: BigNumber }>
      • Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        Returns Promise<{ calcContractDep: BigNumber }>

    • getDestinationTransaction:function
      • +

        Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        Returns Promise<BigNumber>

    • estimateSFTfees:function
      • estimateSFTfees<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, amount: bigint, price: number): Promise<BigNumber>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • amount: bigint
        • price: number

        Returns Promise<BigNumber>

    • estimateWithContractDep:function
      • estimateWithContractDep<SignerF, RawNftF, SignerT, RawNftT, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>, nft: NftInfo<RawNftF>, receiver: string): Promise<{ calcContractDep: BigNumber }>
      • Type Parameters

        • SignerF

        • RawNftF

        • SignerT

        • RawNftT

        • Resp

        Parameters

        Returns Promise<{ calcContractDep: BigNumber }>

    • getDestinationTransaction:function
      • Get transaction in the destination chain WARN: use claimAlgorandNft instead for algorand.

        Type Parameters

        • Txn

        Parameters

        Returns Promise<[string, TransactionStatus]>

        transaction hash in original chain, unique action id

        -
    • getVerifiedContract:function
      • getVerifiedContract<SignerF, RawNftF, Resp>(from: string, targetChain: number, fc: FullChain<SignerF, RawNftF, Resp>, tokenId?: string): Promise<undefined | string>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • from: string
        • targetChain: number
        • fc: FullChain<SignerF, RawNftF, Resp>
        • Optional tokenId: string

        Returns Promise<undefined | string>

    • hederaGetMintedCollection:function
      • hederaGetMintedCollection(from: number, receiver: string): Promise<any[]>
    • inner:function
      • inner<T>(chain: T): Promise<InferChainH<T>>
    • getVerifiedContract:function
      • getVerifiedContract<SignerF, RawNftF, Resp>(from: string, targetChain: number, fc: FullChain<SignerF, RawNftF, Resp>, tokenId?: string): Promise<undefined | string>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • from: string
        • targetChain: number
        • fc: FullChain<SignerF, RawNftF, Resp>
        • Optional tokenId: string

        Returns Promise<undefined | string>

    • hederaGetMintedCollection:function
      • hederaGetMintedCollection(from: number, receiver: string): Promise<any[]>
    • inner:function
      • inner<T>(chain: T): Promise<InferChainH<T>>
      • Creates an helper factory for a given chain

        -

        Type Parameters

        • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • chain: T

        Returns Promise<InferChainH<T>>

    • isWrappedNft:function
      • isWrappedNft(nft: NftInfo<unknown>, fromChain: number): Promise<{ bool: boolean; wrapped: any }>
    • listHederaClaimableNFT:function
      • listHederaClaimableNFT(proxyContract: string, htsToken: string, sender: Wallet): Promise<BigNumber[]>
      • Parameters

        • proxyContract: string
        • htsToken: string
        • sender: Wallet

        Returns Promise<BigNumber[]>

    • lockNFT:function
      • lockNFT<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, fee?: Value): Promise<undefined | Resp>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • toChain: FullChain<never, unknown, unknown>
        • nft: NftInfo<RawNftF>
        • sender: SignerF
        • receiver: string
        • Optional fee: Value

        Returns Promise<undefined | Resp>

    • mint:function
      • mint<Signer, Args, Ret>(chain: MintNft<Signer, Args, Ret>, owner: Signer, args: Args): Promise<Ret>
      • +

        Type Parameters

        • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • chain: T

        Returns Promise<InferChainH<T>>

    • isWrappedNft:function
      • isWrappedNft(nft: NftInfo<unknown>, fromChain: number): Promise<{ bool: boolean; wrapped: any }>
    • listHederaClaimableNFT:function
      • listHederaClaimableNFT(proxyContract: string, htsToken: string, sender: Wallet): Promise<BigNumber[]>
      • Parameters

        • proxyContract: string
        • htsToken: string
        • sender: Wallet

        Returns Promise<BigNumber[]>

    • lockNFT:function
      • lockNFT<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, fee?: Value): Promise<undefined | Resp>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>
        • toChain: FullChain<never, unknown, unknown>
        • nft: NftInfo<RawNftF>
        • sender: SignerF
        • receiver: string
        • Optional fee: Value

        Returns Promise<undefined | Resp>

    • mint:function
      • mint<Signer, Args, Ret>(chain: MintNft<Signer, Args, Ret>, owner: Signer, args: Args): Promise<Ret>
      • Mints an NFT on the chain.

        -

        Type Parameters

        • Signer

        • Args

        • Ret

        Parameters

        • chain: MintNft<Signer, Args, Ret>
        • owner: Signer
        • args: Args

        Returns Promise<Ret>

    • nftList:function
      • +

        Type Parameters

        • Signer

        • Args

        • Ret

        Parameters

        • chain: MintNft<Signer, Args, Ret>
        • owner: Signer
        • args: Args

        Returns Promise<Ret>

    • nftList:function
    • pkeyToSigner:function
      • pkeyToSigner<S>(nonce: S, key: string): Promise<InferSigner<InferChainH<S>>>
      • Type Parameters

        • S extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • nonce: S
        • key: string

        Returns Promise<InferSigner<InferChainH<S>>>

    • setProvider:function
      • setProvider(fromChain: number, provider: any): Promise<void>
    • transferBatchNft:function
      • transferBatchNft<SignerF, RawNftF, Resp>(fromChain: FullChainBatch<SignerF, RawNftF, Resp>, toChain: FullChainBatch<never, unknown, unknown>, nft: NftInfo<RawNftF>[], sender: SignerF, receiver: string, fee?: Value, mintWith?: string): Promise<Resp[]>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChainBatch<SignerF, RawNftF, Resp>
        • toChain: FullChainBatch<never, unknown, unknown>
        • nft: NftInfo<RawNftF>[]
        • sender: SignerF
        • receiver: string
        • Optional fee: Value
        • Optional mintWith: string

        Returns Promise<Resp[]>

    • transferNft:function
      • transferNft<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, fee?: Value, mintWith?: string, gasLimit?: BigNumberish, extraFee?: Value, gasPrice?: BigNumberish): Promise<undefined | Resp>
    • pkeyToSigner:function
      • pkeyToSigner<S>(nonce: S, key: string): Promise<InferSigner<InferChainH<S>>>
      • Type Parameters

        • S extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • nonce: S
        • key: string

        Returns Promise<InferSigner<InferChainH<S>>>

    • setProvider:function
      • setProvider(fromChain: number, provider: any): Promise<void>
    • transferBatchNft:function
      • transferBatchNft<SignerF, RawNftF, Resp>(fromChain: FullChainBatch<SignerF, RawNftF, Resp>, toChain: FullChainBatch<never, unknown, unknown>, nft: NftInfo<RawNftF>[], sender: SignerF, receiver: string, fee?: Value, mintWith?: string): Promise<Resp[]>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChainBatch<SignerF, RawNftF, Resp>
        • toChain: FullChainBatch<never, unknown, unknown>
        • nft: NftInfo<RawNftF>[]
        • sender: SignerF
        • receiver: string
        • Optional fee: Value
        • Optional mintWith: string

        Returns Promise<Resp[]>

    • transferNft:function
      • transferNft<SignerF, RawNftF, Resp>(fromChain: FullChain<SignerF, RawNftF, Resp>, toChain: FullChain<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, fee?: Value, mintWith?: string, gasLimit?: BigNumberish, extraFee?: Value, gasPrice?: BigNumberish): Promise<undefined | Resp>
      • Transfers the NFT from one chain to other.

        Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChain<SignerF, RawNftF, Resp>

          FullChain the chain to transfer from. Use inner method of the factory to get this.

          @@ -48,11 +48,11 @@

          an arbitrary address of the target chain minter contract

        • Optional gasLimit: BigNumberish

          an arbitrary gas limit value (required for some chains)

          -
        • Optional extraFee: Value
        • Optional gasPrice: BigNumberish

        Returns Promise<undefined | Resp>

    • transferSft:function
      • transferSft<SignerF, RawNftF, Resp>(fromChain: FullChainBatch<SignerF, RawNftF, Resp>, toChain: FullChainBatch<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, amt: bigint, fee?: Value, mintWith?: string): Promise<Resp[]>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChainBatch<SignerF, RawNftF, Resp>
        • toChain: FullChainBatch<never, unknown, unknown>
        • nft: NftInfo<RawNftF>
        • sender: SignerF
        • receiver: string
        • amt: bigint
        • Optional fee: Value
        • Optional mintWith: string

        Returns Promise<Resp[]>

    • updateParams:function
      • updateParams<T>(nonce: T, params: InferChainParam<T>): void
      • Type Parameters

        • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • nonce: T
          +
        • Optional extraFee: Value
        • Optional gasPrice: BigNumberish

        Returns Promise<undefined | Resp>

    • transferSft:function
      • transferSft<SignerF, RawNftF, Resp>(fromChain: FullChainBatch<SignerF, RawNftF, Resp>, toChain: FullChainBatch<never, unknown, unknown>, nft: NftInfo<RawNftF>, sender: SignerF, receiver: string, amt: bigint, fee?: Value, mintWith?: string): Promise<Resp[]>
      • Type Parameters

        • SignerF

        • RawNftF

        • Resp

        Parameters

        • fromChain: FullChainBatch<SignerF, RawNftF, Resp>
        • toChain: FullChainBatch<never, unknown, unknown>
        • nft: NftInfo<RawNftF>
        • sender: SignerF
        • receiver: string
        • amt: bigint
        • Optional fee: Value
        • Optional mintWith: string

        Returns Promise<Resp[]>

    • updateParams:function
      • updateParams<T>(nonce: T, params: InferChainParam<T>): void
      • Type Parameters

        • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

        Parameters

        • nonce: T

          : ChainNonce could be a ElrondNonce, Web3Nonce, or TronNonce.

        • params: InferChainParam<T>

          : New Params to be set.

          -

        Returns void

    • waitAlgorandNft:function

      Returns void

  • waitAlgorandNft:function
    • Claim an algorand nft

      Type Parameters

      • Txn

      Parameters

      • originChain: ExtractAction<Txn> & ChainNonceGet

        chain from which the nft was transferred

        @@ -60,49 +60,49 @@

        Transaction Hash of the original

      • claimer: AlgoSignerH

        the account which can claim the nft

        -

      Returns Promise<ClaimNftInfo>

  • whitelistEVM:function
    • whitelistEVM<T>(chain: T, address: string, nonce: number): Promise<{ success: true }>
    • Type Parameters

      • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

      Parameters

      • chain: T
      • address: string
      • nonce: number

      Returns Promise<{ success: true }>

ChainNonce: keyof MetaMap
ClaimData: DepTrxData & TokenInfo
DepTrxData: { destinationChain: V3_ChainId; destinationUserAddress: string; nftType: "singular" | "multiple"; sourceChain: V3_ChainId; sourceNftContractAddress: string; tokenAmount: string; tokenId: string }

Type declaration

  • destinationChain: V3_ChainId
  • destinationUserAddress: string
  • nftType: "singular" | "multiple"
  • sourceChain: V3_ChainId
  • sourceNftContractAddress: string
  • tokenAmount: string
  • tokenId: string
ESDTRole: "ESDTRoleNFTCreate" | "ESDTRoleNFTBurn"
+

Returns Promise<ClaimNftInfo>

  • whitelistEVM:function
    • whitelistEVM<T>(chain: T, address: string, nonce: number): Promise<{ success: true }>
    • Type Parameters

      • T extends 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44

      Parameters

      • chain: T
      • address: string
      • nonce: number

      Returns Promise<{ success: true }>

  • ChainNonce: keyof MetaMap
    ClaimData: DepTrxData & TokenInfo
    DepTrxData: { destinationChain: V3_ChainId; destinationUserAddress: string; nftType: "singular" | "multiple"; sourceChain: V3_ChainId; sourceNftContractAddress: string; tokenAmount: string; tokenId: string }

    Type declaration

    • destinationChain: V3_ChainId
    • destinationUserAddress: string
    • nftType: "singular" | "multiple"
    • sourceChain: V3_ChainId
    • sourceNftContractAddress: string
    • tokenAmount: string
    • tokenId: string
    ESDTRole: "ESDTRoleNFTCreate" | "ESDTRoleNFTBurn"

    Possible roles for an ESDT

    ESDTRoleNFTCreate: Allow creating NFTs ESDTRoleNFTBurn: Allow burning NFTs ESDTRoleNFTAddQuanitity: Allowing minting >1 NFTs (SFT)

    -
    ElrondHelper: BalanceCheck & TransferNftForeign<ElrondSigner, EsdtNftInfo, Transaction> & UnfreezeForeignNft<ElrondSigner, EsdtNftInfo, Transaction> & TransferNftForeignBatch<ElrondSigner, EsdtNftInfo, Transaction> & UnfreezeForeignNftBatch<ElrondSigner, EsdtNftInfo, Transaction> & IssueESDTNFT & MintNft<ElrondSigner, NftIssueArgs, string> & { mintableEsdts: any } & ChainNonceGet & ValidateAddress & ExtractAction<Transaction> & PreTransfer<ElrondSigner, EsdtNftInfo, string, undefined> & EstimateTxFees<EsdtNftInfo> & EstimateTxFeesBatch<EsdtNftInfo> & PreTransferRawTxn<EsdtNftInfo, ElrondRawUnsignedTxn> & ExtractTxnStatus & SetESDTRoles & { XpNft: string } & GetFeeMargins & { unwrapWegld: any; wegldBalance: any } & IsContractAddress & GetTokenURI & LockNFT<ElrondSigner, EsdtNftInfo, XTRX> & ClaimV3NFT<ElrondSigner, XTRX> & GetClaimData & GetTokenInfo & GetNftOrigin
    +
    ElrondHelper: BalanceCheck & TransferNftForeign<ElrondSigner, EsdtNftInfo, Transaction> & UnfreezeForeignNft<ElrondSigner, EsdtNftInfo, Transaction> & TransferNftForeignBatch<ElrondSigner, EsdtNftInfo, Transaction> & UnfreezeForeignNftBatch<ElrondSigner, EsdtNftInfo, Transaction> & IssueESDTNFT & MintNft<ElrondSigner, NftIssueArgs, string> & { mintableEsdts: any } & ChainNonceGet & ValidateAddress & ExtractAction<Transaction> & PreTransfer<ElrondSigner, EsdtNftInfo, string, undefined> & EstimateTxFees<EsdtNftInfo> & EstimateTxFeesBatch<EsdtNftInfo> & PreTransferRawTxn<EsdtNftInfo, ElrondRawUnsignedTxn> & ExtractTxnStatus & SetESDTRoles & { XpNft: string } & GetFeeMargins & { unwrapWegld: any; wegldBalance: any } & IsContractAddress & GetTokenURI & LockNFT<ElrondSigner, EsdtNftInfo, XTRX> & ClaimV3NFT<ElrondSigner, XTRX> & GetClaimData & GetTokenInfo & GetNftOrigin

    Traits implemented by this module

    -
    EsdtNftInfo: EsdtTokenInfo & BEsdtNftInfo
    +
    EsdtNftInfo: EsdtTokenInfo & BEsdtNftInfo

    Information associated with an ESDT NFT

    -
    EsdtTokenInfo: { balance: 1 | string; tokenIdentifier: string }
    +
    EsdtTokenInfo: { balance: 1 | string; tokenIdentifier: string }

    Information associated with an ESDT Token

    -

    Type declaration

    • Readonly balance: 1 | string
    • Readonly tokenIdentifier: string
    EthNftInfo: { chainId: string; contract: string; contractType: "ERC721" | "ERC1155"; owner: string; tokenId: string; uri: string }
    +

    Type declaration

    • Readonly balance: 1 | string
    • Readonly tokenIdentifier: string
    EthNftInfo: { chainId: string; contract: string; contractType: "ERC721" | "ERC1155"; owner: string; tokenId: string; uri: string }

    Information required to perform NFT transfers in this chain

    -

    Type declaration

    • chainId: string
    • contract: string
    • contractType: "ERC721" | "ERC1155"
    • owner: string
    • tokenId: string
    • uri: string
    ExtraArgs: { overrides: ethers.Overrides }

    Type declaration

    • overrides: ethers.Overrides
    FullChain<Signer, RawNft, Resp>: TransferNftForeign<Signer, RawNft, Resp> & UnfreezeForeignNft<Signer, RawNft, Resp> & EstimateTxFees<RawNft> & EstimateDeployFees & ChainNonceGet & ValidateAddress & { XpNft: string; XpNft1155?: string } & GetFeeMargins & GetExtraFees & LockNFT<Signer, RawNft, Resp> & ClaimV3NFT<Signer, Resp>

    Type Parameters

    • Signer

    • RawNft

    • Resp

    MetaMap: { 11: Web3Meta; 12: Web3Meta; 13: Web3Meta; 14: Web3Meta; 15: AlgoMeta; 16: Web3Meta; 17: Web3Meta; 18: TezosMeta; 19: Web3Meta; 2: ElrondMeta; 20: Web3Meta; 21: Web3Meta; 22: Web3Meta; 23: Web3Meta; 24: SecretMeta; 25: Web3Meta; 26: SolanaMeta; 27: TonMeta; 28: DfinityMeta; 29: Web3Meta; 3: Web3Meta; 30: Web3ERC20Meta; 31: NearMeta; 32: Web3Meta; 33: Web3Meta; 34: AptosMeta; 35: Web3Meta; 36: Web3Meta; 37: Web3Meta; 38: Web3Meta; 39: CasperMeta; 4: Web3Meta; 40: Web3Meta; 41: Web3Meta; 42: Web3Meta; 43: Web3Meta; 44: Web3Meta; 5: Web3Meta; 6: Web3Meta; 7: Web3Meta; 8: Web3Meta; 9: TronMeta } & MetaMapAssert
    MintArgs: { contract: string; uri: string }
    +

    Type declaration

    • chainId: string
    • contract: string
    • contractType: "ERC721" | "ERC1155"
    • owner: string
    • tokenId: string
    • uri: string
    ExtraArgs: { overrides: ethers.Overrides }

    Type declaration

    • overrides: ethers.Overrides
    FullChain<Signer, RawNft, Resp>: TransferNftForeign<Signer, RawNft, Resp> & UnfreezeForeignNft<Signer, RawNft, Resp> & EstimateTxFees<RawNft> & EstimateDeployFees & ChainNonceGet & ValidateAddress & { XpNft: string; XpNft1155?: string } & GetFeeMargins & GetExtraFees & LockNFT<Signer, RawNft, Resp> & ClaimV3NFT<Signer, Resp>

    Type Parameters

    • Signer

    • RawNft

    • Resp

    MetaMap: { 11: Web3Meta; 12: Web3Meta; 13: Web3Meta; 14: Web3Meta; 15: AlgoMeta; 16: Web3Meta; 17: Web3Meta; 18: TezosMeta; 19: Web3Meta; 2: ElrondMeta; 20: Web3Meta; 21: Web3Meta; 22: Web3Meta; 23: Web3Meta; 24: SecretMeta; 25: Web3Meta; 26: SolanaMeta; 27: TonMeta; 28: DfinityMeta; 29: Web3Meta; 3: Web3Meta; 30: Web3ERC20Meta; 31: NearMeta; 32: Web3Meta; 33: Web3Meta; 34: AptosMeta; 35: Web3Meta; 36: Web3Meta; 37: Web3Meta; 38: Web3Meta; 39: CasperMeta; 4: Web3Meta; 40: Web3Meta; 41: Web3Meta; 42: Web3Meta; 43: Web3Meta; 44: Web3Meta; 5: Web3Meta; 6: Web3Meta; 7: Web3Meta; 8: Web3Meta; 9: TronMeta } & MetaMapAssert
    MintArgs: { contract: string; uri: string }

    Arguments required for minting a new nft

    contract: address of the sc token: token ID of the newly minted nft owner: Owner of the newly minted nft uri: uri of the nft

    -

    Type declaration

    • contract: string
    • uri: string
    MinterRes: { minter: string; whitelist: string[]; xpnft: string; xpnft1155: string }

    Type declaration

    • minter: string
    • whitelist: string[]
    • xpnft: string
    • xpnft1155: string
    MoralisNetwork: "mainnet" | "testnet"
    NftInfo<Raw>: { collectionIdent: string; native: Raw; originChain?: any; tokenId?: any; uri: string }
    +

    Type declaration

    • contract: string
    • uri: string
    MinterRes: { minter: string; whitelist: string[]; xpnft: string; xpnft1155: string }

    Type declaration

    • minter: string
    • whitelist: string[]
    • xpnft: string
    • xpnft1155: string
    MoralisNetwork: "mainnet" | "testnet"
    NftInfo<Raw>: { collectionIdent: string; native: Raw; originChain?: any; tokenId?: any; uri: string }

    NFT Info

    -

    Type Parameters

    • Raw

    Type declaration

    • Readonly collectionIdent: string
    • Readonly native: Raw
    • Optional Readonly originChain?: any
    • Optional Readonly tokenId?: any
    • Readonly uri: string
    NftIssueArgs: { attrs?: string; hash?: string; identifier: string; name: string; quantity?: number; royalties?: number; uris: string[] }
    +

    Type Parameters

    • Raw

    Type declaration

    • Readonly collectionIdent: string
    • Readonly native: Raw
    • Optional Readonly originChain?: any
    • Optional Readonly tokenId?: any
    • Readonly uri: string
    NftIssueArgs: { attrs?: string; hash?: string; identifier: string; name: string; quantity?: number; royalties?: number; uris: string[] }

    arguments required to issue an NFT

    -

    Type declaration

    • Optional Readonly attrs?: string
    • Optional Readonly hash?: string
    • Readonly identifier: string
    • Readonly name: string
    • Optional Readonly quantity?: number
    • Optional Readonly royalties?: number
    • Readonly uris: string[]
    TokenInfo: { image?: string; metadata: string; name: string; royalty: string; symbol: string }

    Type declaration

    • Optional image?: string
    • metadata: string
    • name: string
    • royalty: string
    • symbol: string
    TronHelper: BaseTronHelper & TransferNftForeign<TronSender, EthNftInfo, string> & UnfreezeForeignNft<TronSender, EthNftInfo, string> & EstimateTxFees<EthNftInfo> & ChainNonceGet & Approve<TronSender> & ValidateAddress & IsApproved<TronSender> & ExtractAction<string> & Pick<PreTransfer<TronSender, EthNftInfo, string, undefined>, "preTransfer"> & PreTransferRawTxn<EthNftInfo, TronRawTxn> & ExtractTxnStatus & WhitelistCheck<EthNftInfo> & { XpNft: string; XpNft1155: string } & GetFeeMargins & GetTokenURI
    TxnSocketHelper: { waitTxHash: any }
    +

    Type declaration

    • Optional Readonly attrs?: string
    • Optional Readonly hash?: string
    • Readonly identifier: string
    • Readonly name: string
    • Optional Readonly quantity?: number
    • Optional Readonly royalties?: number
    • Readonly uris: string[]
    TokenInfo: { image?: string; metadata: string; name: string; royalty: string; symbol: string }

    Type declaration

    • Optional image?: string
    • metadata: string
    • name: string
    • royalty: string
    • symbol: string
    TronHelper: BaseTronHelper & TransferNftForeign<TronSender, EthNftInfo, string> & UnfreezeForeignNft<TronSender, EthNftInfo, string> & EstimateTxFees<EthNftInfo> & ChainNonceGet & Approve<TronSender> & ValidateAddress & IsApproved<TronSender> & ExtractAction<string> & Pick<PreTransfer<TronSender, EthNftInfo, string, undefined>, "preTransfer"> & PreTransferRawTxn<EthNftInfo, TronRawTxn> & ExtractTxnStatus & WhitelistCheck<EthNftInfo> & { XpNft: string; XpNft1155: string } & GetFeeMargins & GetTokenURI
    TxnSocketHelper: { waitTxHash: any }

    Tracker for cross chain transaction

    -

    Type declaration

    • waitTxHash:function
      • waitTxHash(chain: number, action_id: string): Promise<string>
      • Parameters

        • chain: number
          +

          Type declaration

          • waitTxHash:function
            • waitTxHash(chain: number, action_id: string): Promise<string>
            • Parameters

              • chain: number

                Nonce of the target chain

              • action_id: string

                Identifier for tracking a cross chain transaction

              Returns Promise<string>

              transaction hash on the foreign chain

              -
    Web3Helper: BaseWeb3Helper & TransferNftForeign<Signer, EthNftInfo, TransactionResponse> & UnfreezeForeignNft<Signer, EthNftInfo, TransactionResponse> & TransferNftForeignBatch<Signer, EthNftInfo, TransactionResponse> & UnfreezeForeignNftBatch<Signer, EthNftInfo, TransactionResponse> & EstimateTxFees<EthNftInfo> & EstimateTxFeesBatch<EthNftInfo> & EstimateDeployFees & ChainNonceGet & IsApproved<Signer> & Approve<Signer> & ValidateAddress & ExtractAction<TransactionResponse> & { createWallet: any } & Pick<PreTransfer<Signer, EthNftInfo, string, ExtraArgs>, "preTransfer"> & PreTransferRawTxn<EthNftInfo, PopulatedTransaction> & ExtractTxnStatus & GetProvider<providers.Provider> & { XpNft: string; XpNft1155: string } & WhitelistCheck<EthNftInfo> & GetFeeMargins & IsContractAddress & GetTokenURI & ParamsGetter<Web3Params> & UserStore & LockNFT<Signer, EthNftInfo, TransactionResponse> & ClaimV3NFT<Signer, TransactionResponse> & GetClaimData & GetTokenInfo & GetNftOrigin
    +
    Web3Helper: BaseWeb3Helper & TransferNftForeign<Signer, EthNftInfo, TransactionResponse> & UnfreezeForeignNft<Signer, EthNftInfo, TransactionResponse> & TransferNftForeignBatch<Signer, EthNftInfo, TransactionResponse> & UnfreezeForeignNftBatch<Signer, EthNftInfo, TransactionResponse> & EstimateTxFees<EthNftInfo> & EstimateTxFeesBatch<EthNftInfo> & EstimateDeployFees & ChainNonceGet & IsApproved<Signer> & Approve<Signer> & ValidateAddress & ExtractAction<TransactionResponse> & { createWallet: any } & Pick<PreTransfer<Signer, EthNftInfo, string, ExtraArgs>, "preTransfer"> & PreTransferRawTxn<EthNftInfo, PopulatedTransaction> & ExtractTxnStatus & GetProvider<providers.Provider> & { XpNft: string; XpNft1155: string } & WhitelistCheck<EthNftInfo> & GetFeeMargins & IsContractAddress & GetTokenURI & ParamsGetter<Web3Params> & UserStore & LockNFT<Signer, EthNftInfo, TransactionResponse> & ClaimV3NFT<Signer, TransactionResponse> & GetClaimData & GetTokenInfo & GetNftOrigin

    Traits implemented by this module

    -
    WhitelistCheck<RawNft, Singer>: { isNftWhitelisted: any }

    Type Parameters

    • RawNft

    • Singer = void

    Type declaration

    • isNftWhitelisted:function
      • isNftWhitelisted(nft: NftInfo<RawNft>, signer?: Singer): boolean | Promise<boolean>

    Variables

    CHAIN_INFO: ChainInfo = ...
    Emitter: undefined | EventTarget = ...
    NFT_METHOD_MAP: NftMethodMap = ...
    _headers: { Accept: string; Content-Type: string } = ...

    Type declaration

    • Accept: string
    • Content-Type: string
    oldXpWraps: Set<string> = ...

    Functions

    • ConcurrentSendError(): Error
    • baseWeb3HelperFactory(provider: Provider, nonce: number): Promise<BaseWeb3Helper>
    WhitelistCheck<RawNft, Singer>: { isNftWhitelisted: any }

    Type Parameters

    • RawNft

    • Singer = void

    Type declaration

    • isNftWhitelisted:function
      • isNftWhitelisted(nft: NftInfo<RawNft>, signer?: Singer): boolean | Promise<boolean>

    Variables

    CHAIN_INFO: ChainInfo = ...
    Emitter: undefined | EventTarget = ...
    NFT_METHOD_MAP: NftMethodMap = ...
    _headers: { Accept: string; Content-Type: string } = ...

    Type declaration

    • Accept: string
    • Content-Type: string
    oldXpWraps: Set<string> = ...

    Functions

    • ConcurrentSendError(): Error
    • baseWeb3HelperFactory(provider: Provider, nonce: number): Promise<BaseWeb3Helper>
    • Create an object implementing minimal utilities for a web3 chain

      Parameters

      • provider: Provider

        An ethers.js provider object

        -
      • nonce: number

      Returns Promise<BaseWeb3Helper>

    • checkBlockedContracts(to: any, contract: string): void
    • checkNotOldWrappedNft(contract: string): void
    • decodeBase64Array(encodedArray: string[]): null | string[]
    • getClaimFee(toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX", storageContract: BridgeStorage): Promise<string>
    • Parameters

      • toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"
      • storageContract: BridgeStorage

      Returns Promise<string>

    • getDefaultContract<SignerT, RawNftF, Resp, RawNftT>(nft: NftInfo<RawNftF>, fromChain: FullChain<SignerT, RawNftT, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>): string | undefined
    • getStorageContract(config: AppConfig): BridgeStorage

    Returns Promise<BaseWeb3Helper>

    • checkBlockedContracts(to: any, contract: string): void
    • checkNotOldWrappedNft(contract: string): void
    • decodeBase64Array(encodedArray: string[]): null | string[]
    • getClaimFee(toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX", storageContract: BridgeStorage): Promise<string>
    • Parameters

      • toChain: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"
      • storageContract: BridgeStorage

      Returns Promise<string>

    • getDefaultContract<SignerT, RawNftF, Resp, RawNftT>(nft: NftInfo<RawNftF>, fromChain: FullChain<SignerT, RawNftT, Resp>, toChain: FullChain<SignerT, RawNftT, Resp>): string | undefined
    • getStorageContract(config: AppConfig): BridgeStorage
    • This function is the basic entry point to use this package as a library.

      Parameters

      Returns BridgeStorage

      : A factory object that can be used to mint and transfer NFTs between chains.

      -
    • isWrappedNft(nft: NftInfo<any>, fc: number, tc?: number): Promise<{ bool: boolean; wrapped: any }>
    • Parameters

      • nft: NftInfo<any>
      • fc: number
      • Optional tc: number

      Returns Promise<{ bool: boolean; wrapped: any }>

    • prepareTokenId(nft: NftInfo<any>, from: number): any
    • randomBigInt(): bigint
    • isWrappedNft(nft: NftInfo<any>, fc: number, tc?: number): Promise<{ bool: boolean; wrapped: any }>
    • Parameters

      • nft: NftInfo<any>
      • fc: number
      • Optional tc: number

      Returns Promise<{ bool: boolean; wrapped: any }>

    • prepareTokenId(nft: NftInfo<any>, from: number): any
    • randomBigInt(): bigint
    • v3BridgeIdToNonce(id: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"): string
    • Parameters

      • id: "" | "BSC" | "TON" | "MATIC" | "ETH" | "MULTIVERSX"

      Returns string

    Generated using TypeDoc

    \ No newline at end of file +

    Returns TxnSocketHelper & AlgorandSocketHelper

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/AppConfigs.html b/docs/modules/AppConfigs.html index 2179b80e3..e65228a26 100644 --- a/docs/modules/AppConfigs.html +++ b/docs/modules/AppConfigs.html @@ -1 +1 @@ -AppConfigs | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace AppConfigs

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file +AppConfigs | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace AppConfigs

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/Chain.html b/docs/modules/Chain.html index f5126da57..22d12bf71 100644 --- a/docs/modules/Chain.html +++ b/docs/modules/Chain.html @@ -1 +1 @@ -Chain | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace Chain

    Index

    Variables

    ABEYCHAIN: 33 = 0x21
    ALGORAND: 15 = 0xf
    APTOS: 34 = 0x22
    ARBITRUM: 37 = 0x25
    AURORA: 21 = 0x15
    AVALANCHE: 6 = 0x6
    BASE: 43 = 0x2b
    BITGERT: 38 = 0x26
    BSC: 4 = 4
    CADUCEUS: 35 = 0x23
    CASPER: 39 = 0x27
    CELO: 11 = 0xb
    DFINITY: 28 = 0x1c
    ELROND: 2 = 2
    ENERGI: 42 = 0x2a
    ETHEREUM: 5 = 5
    FANTOM: 8 = 8
    FINDORA: 44 = 0x2c
    FUSE: 16 = 0x10
    GATECHAIN: 23 = 0x17
    GODWOKEN: 22 = 0x16
    HARMONY: 12 = 0xc
    HECO: 3 = 3
    HEDERA: 29 = 0x1d
    IOTEX: 20 = 0x14
    MOONBEAM: 32 = 0x20
    NEAR: 31 = 0x1f
    OKC: 36 = 0x24
    ONT: 13 = 0xd
    OPTIMISM: 40 = 0x28
    POLYGON: 7 = 7
    SECRET: 24 = 0x18
    SKALE: 30 = 0x1e
    SOLANA: 26 = 0x1a
    TEZOS: 18 = 0x12
    TON: 27 = 0x1b
    TRON: 9 = 9
    UNIQUE: 17 = 0x11
    VECHAIN: 25 = 0x19
    VELAS: 19 = 0x13
    XDAI: 14 = 0xe
    ZETA: 41 = 0x29

    Generated using TypeDoc

    \ No newline at end of file +Chain | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace Chain

    Index

    Variables

    ABEYCHAIN: 33 = 0x21
    ALGORAND: 15 = 0xf
    APTOS: 34 = 0x22
    ARBITRUM: 37 = 0x25
    AURORA: 21 = 0x15
    AVALANCHE: 6 = 0x6
    BASE: 43 = 0x2b
    BITGERT: 38 = 0x26
    BSC: 4 = 4
    CADUCEUS: 35 = 0x23
    CASPER: 39 = 0x27
    CELO: 11 = 0xb
    DFINITY: 28 = 0x1c
    ELROND: 2 = 2
    ENERGI: 42 = 0x2a
    ETHEREUM: 5 = 5
    FANTOM: 8 = 8
    FINDORA: 44 = 0x2c
    FUSE: 16 = 0x10
    GATECHAIN: 23 = 0x17
    GODWOKEN: 22 = 0x16
    HARMONY: 12 = 0xc
    HECO: 3 = 3
    HEDERA: 29 = 0x1d
    IOTEX: 20 = 0x14
    MOONBEAM: 32 = 0x20
    NEAR: 31 = 0x1f
    OKC: 36 = 0x24
    ONT: 13 = 0xd
    OPTIMISM: 40 = 0x28
    POLYGON: 7 = 7
    SECRET: 24 = 0x18
    SKALE: 30 = 0x1e
    SOLANA: 26 = 0x1a
    TEZOS: 18 = 0x12
    TON: 27 = 0x1b
    TRON: 9 = 9
    UNIQUE: 17 = 0x11
    VECHAIN: 25 = 0x19
    VELAS: 19 = 0x13
    XDAI: 14 = 0xe
    ZETA: 41 = 0x29

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/ChainFactories.html b/docs/modules/ChainFactories.html index 31a28cef8..d8e051320 100644 --- a/docs/modules/ChainFactories.html +++ b/docs/modules/ChainFactories.html @@ -1 +1 @@ -ChainFactories | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace ChainFactories

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file +ChainFactories | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace ChainFactories

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/ChainFactoryConfigs.html b/docs/modules/ChainFactoryConfigs.html index e20465159..91faf1621 100644 --- a/docs/modules/ChainFactoryConfigs.html +++ b/docs/modules/ChainFactoryConfigs.html @@ -1 +1 @@ -ChainFactoryConfigs | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace ChainFactoryConfigs

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file +ChainFactoryConfigs | xp.network
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Namespace ChainFactoryConfigs

    Index

    Functions

    Generated using TypeDoc

    \ No newline at end of file