Changeset View
Changeset View
Standalone View
Standalone View
modules/chronik-client/test/integration/token_slp_mint_vault.ts
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | it('Gets an SLP vault genesis tx from the mempool', async () => { | ||||
// Normal status | // Normal status | ||||
expect(slpVaultGenesis.tokenStatus).to.eql('TOKEN_STATUS_NORMAL'); | expect(slpVaultGenesis.tokenStatus).to.eql('TOKEN_STATUS_NORMAL'); | ||||
// We can get token info of an slp vault token from the mempool | // We can get token info of an slp vault token from the mempool | ||||
const slpGenesisMempoolInfo = await chronik.token(slpVaultGenesisTxid); | const slpGenesisMempoolInfo = await chronik.token(slpVaultGenesisTxid); | ||||
expect(slpGenesisMempoolInfo).to.deep.equal({ | expect(slpGenesisMempoolInfo).to.deep.equal({ | ||||
tokenId: slpVaultGenesisTxid, | tokenId: slpVaultGenesisTxid, | ||||
timeFirstSeen: '1300000000', | timeFirstSeen: 1300000000, | ||||
tokenType: { | tokenType: { | ||||
protocol: 'SLP', | protocol: 'SLP', | ||||
type: 'SLP_TOKEN_TYPE_MINT_VAULT', | type: 'SLP_TOKEN_TYPE_MINT_VAULT', | ||||
number: 2, | number: 2, | ||||
}, | }, | ||||
// We get mintVaultScripthash in GenesisInfo for SLP MINT VAULT | // We get mintVaultScripthash in GenesisInfo for SLP MINT VAULT | ||||
// We get hash in GenesisInfo for SLP | // We get hash in GenesisInfo for SLP | ||||
// 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 | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |