Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/utils/__tests__/chronik.test.js
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | ).toStrictEqual({ | ||||
isEtokenTx: true, | isEtokenTx: true, | ||||
originatingHash160: '4e532257c01b310b3b5c1fd947c79a72addf8523', | originatingHash160: '4e532257c01b310b3b5c1fd947c79a72addf8523', | ||||
slpMeta: { | slpMeta: { | ||||
tokenId: | tokenId: | ||||
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | ||||
tokenType: 'FUNGIBLE', | tokenType: 'FUNGIBLE', | ||||
txType: 'SEND', | txType: 'SEND', | ||||
}, | }, | ||||
genesisInfo: { | |||||
decimals: 0, | |||||
success: true, | |||||
tokenDocumentHash: '', | |||||
tokenDocumentUrl: | |||||
'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', | |||||
tokenId: | |||||
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | |||||
tokenName: 'Covid19 Lifetime Immunity', | |||||
tokenTicker: 'NOCOVID', | |||||
}, | |||||
etokenAmount: '12', | etokenAmount: '12', | ||||
legacy: { | legacy: { | ||||
airdropFlag: false, | airdropFlag: false, | ||||
airdropTokenId: '', | airdropTokenId: '', | ||||
amountReceived: '5.46', | amountReceived: '5.46', | ||||
amountSent: 0, | amountSent: 0, | ||||
decryptionSuccess: false, | decryptionSuccess: false, | ||||
isCashtabMessage: false, | isCashtabMessage: false, | ||||
Show All 28 Lines | ).toStrictEqual({ | ||||
isEtokenTx: true, | isEtokenTx: true, | ||||
originatingHash160: '76458db0ed96fe9863fc1ccec9fa2cfab884b0f6', | originatingHash160: '76458db0ed96fe9863fc1ccec9fa2cfab884b0f6', | ||||
slpMeta: { | slpMeta: { | ||||
tokenId: | tokenId: | ||||
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | ||||
tokenType: 'FUNGIBLE', | tokenType: 'FUNGIBLE', | ||||
txType: 'SEND', | txType: 'SEND', | ||||
}, | }, | ||||
genesisInfo: { | |||||
decimals: 0, | |||||
success: true, | |||||
tokenDocumentHash: '', | |||||
tokenDocumentUrl: | |||||
'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', | |||||
tokenId: | |||||
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', | |||||
tokenName: 'Covid19 Lifetime Immunity', | |||||
tokenTicker: 'NOCOVID', | |||||
}, | |||||
etokenAmount: '17', | etokenAmount: '17', | ||||
legacy: { | legacy: { | ||||
airdropFlag: false, | airdropFlag: false, | ||||
airdropTokenId: '', | airdropTokenId: '', | ||||
amountReceived: 0, | amountReceived: 0, | ||||
amountSent: '5.46', | amountSent: '5.46', | ||||
decryptionSuccess: false, | decryptionSuccess: false, | ||||
isCashtabMessage: false, | isCashtabMessage: false, | ||||
Show All 29 Lines | ).toStrictEqual({ | ||||
isEtokenTx: true, | isEtokenTx: true, | ||||
etokenAmount: '777.7777777', | etokenAmount: '777.7777777', | ||||
slpMeta: { | slpMeta: { | ||||
tokenType: 'FUNGIBLE', | tokenType: 'FUNGIBLE', | ||||
txType: 'GENESIS', | txType: 'GENESIS', | ||||
tokenId: | tokenId: | ||||
'cf601c56b58bc05a39a95374a4a865f0a8b56544ea937b30fb46315441717c50', | 'cf601c56b58bc05a39a95374a4a865f0a8b56544ea937b30fb46315441717c50', | ||||
}, | }, | ||||
genesisInfo: { | |||||
decimals: 7, | |||||
success: true, | |||||
tokenDocumentHash: '', | |||||
tokenDocumentUrl: 'https://cashtab.com/', | |||||
tokenId: | |||||
'cf601c56b58bc05a39a95374a4a865f0a8b56544ea937b30fb46315441717c50', | |||||
tokenName: 'UpdateTest', | |||||
tokenTicker: 'UDT', | |||||
}, | |||||
legacy: { | legacy: { | ||||
amountSent: '0', | amountSent: '0', | ||||
amountReceived: 0, | amountReceived: 0, | ||||
outgoingTx: true, | outgoingTx: true, | ||||
tokenTx: true, | tokenTx: true, | ||||
airdropFlag: false, | airdropFlag: false, | ||||
airdropTokenId: '', | airdropTokenId: '', | ||||
opReturnMessage: '', | opReturnMessage: '', | ||||
Show All 28 Lines | ).toStrictEqual({ | ||||
isEtokenTx: true, | isEtokenTx: true, | ||||
etokenAmount: '0.123456789', | etokenAmount: '0.123456789', | ||||
slpMeta: { | slpMeta: { | ||||
tokenType: 'FUNGIBLE', | tokenType: 'FUNGIBLE', | ||||
txType: 'SEND', | txType: 'SEND', | ||||
tokenId: | tokenId: | ||||
'acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | 'acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | ||||
}, | }, | ||||
genesisInfo: { | |||||
decimals: 9, | |||||
success: true, | |||||
tokenDocumentHash: '', | |||||
tokenDocumentUrl: 'https://cashtabapp.com/', | |||||
tokenId: | |||||
'acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | |||||
tokenName: 'CashTabBits', | |||||
tokenTicker: 'CTB', | |||||
}, | |||||
legacy: { | legacy: { | ||||
amountSent: 0, | amountSent: 0, | ||||
amountReceived: '5.46', | amountReceived: '5.46', | ||||
outgoingTx: false, | outgoingTx: false, | ||||
tokenTx: true, | tokenTx: true, | ||||
airdropFlag: false, | airdropFlag: false, | ||||
airdropTokenId: '', | airdropTokenId: '', | ||||
opReturnMessage: '', | opReturnMessage: '', | ||||
isCashtabMessage: false, | isCashtabMessage: false, | ||||
isEncryptedMessage: false, | isEncryptedMessage: false, | ||||
decryptionSuccess: false, | decryptionSuccess: false, | ||||
replyAddress: 'ecash:qp89xgjhcqdnzzemts0aj378nfe2mhu9yvxj9nhgg6', | replyAddress: 'ecash:qp89xgjhcqdnzzemts0aj378nfe2mhu9yvxj9nhgg6', | ||||
}, | }, | ||||
}); | }); | ||||
}); | }); |