Changeset View
Changeset View
Standalone View
Standalone View
modules/chronik-client/test/integration/token_slp_nft1.ts
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | it('Gets an SLP NFT1 genesis tx from the mempool', async () => { | ||||
// We can get token info of an slp nft1 from the mempool | // We can get token info of an slp nft1 from the mempool | ||||
const slpGenesisMempoolInfo = await chronik.token(slpGenesisTxid); | const slpGenesisMempoolInfo = await chronik.token(slpGenesisTxid); | ||||
// We do not get mintVaultScripthash for non-SLP_MINT_VAULT | // We do not get mintVaultScripthash for non-SLP_MINT_VAULT | ||||
// We do not get data or authPubkey keys in GenesisInfo for non-ALP | // We do not get data or authPubkey keys in GenesisInfo for non-ALP | ||||
expect(slpGenesisMempoolInfo).to.deep.equal({ | expect(slpGenesisMempoolInfo).to.deep.equal({ | ||||
tokenId: slpGenesisTxid, | tokenId: slpGenesisTxid, | ||||
timeFirstSeen: '1300000000', | timeFirstSeen: 1300000000, | ||||
tokenType: { | tokenType: { | ||||
protocol: 'SLP', | protocol: 'SLP', | ||||
type: 'SLP_TOKEN_TYPE_NFT1_GROUP', | type: 'SLP_TOKEN_TYPE_NFT1_GROUP', | ||||
number: 129, | number: 129, | ||||
}, | }, | ||||
genesisInfo: { | genesisInfo: { | ||||
tokenTicker: 'SLP NFT GROUP', | tokenTicker: 'SLP NFT GROUP', | ||||
tokenName: 'Slp NFT GROUP token', | tokenName: 'Slp NFT GROUP token', | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | it('Gets an SLP NFT1 child genesis tx from the mempool', async () => { | ||||
// We can get token info of an slp nft1 child genesis | // We can get token info of an slp nft1 child genesis | ||||
const slpChildGenesisMempoolInfo = await chronik.token( | const slpChildGenesisMempoolInfo = await chronik.token( | ||||
slpChildGenesisTxid, | slpChildGenesisTxid, | ||||
); | ); | ||||
// We do not get mintVaultScripthash, data, or authPubkey keys in GenesisInfo for SLP NFT1 | // We do not get mintVaultScripthash, data, or authPubkey keys in GenesisInfo for SLP NFT1 | ||||
expect(slpChildGenesisMempoolInfo).to.deep.equal({ | expect(slpChildGenesisMempoolInfo).to.deep.equal({ | ||||
tokenId: slpChildGenesisTxid, | tokenId: slpChildGenesisTxid, | ||||
timeFirstSeen: '1300000000', | timeFirstSeen: 1300000000, | ||||
tokenType: { | tokenType: { | ||||
protocol: 'SLP', | protocol: 'SLP', | ||||
type: 'SLP_TOKEN_TYPE_NFT1_CHILD', | type: 'SLP_TOKEN_TYPE_NFT1_CHILD', | ||||
number: 65, | number: 65, | ||||
}, | }, | ||||
genesisInfo: { | genesisInfo: { | ||||
tokenTicker: 'SLP NFT CHILD', | tokenTicker: 'SLP NFT CHILD', | ||||
tokenName: 'Slp NFT CHILD token', | tokenName: 'Slp NFT CHILD token', | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |