Adding large test tx

This commit is contained in:
Joey King
2020-11-10 14:28:10 -08:00
parent 650e3b53fc
commit b512b222dd
+719
View File
@@ -467,6 +467,725 @@ describe("#SLP TokenType1", () => {
})
})
describe("#generateSendOpReturn06", () => {
it("should generate send OP_RETURN code", () => {
// Mock UTXO.
const tokenUtxos = [
{
height: 660844,
tx_hash:
"00dcc47dcebf3ad95140c271a70172a45a4f5de53ecc17d71471eea57a0c361f",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"00dcc47dcebf3ad95140c271a70172a45a4f5de53ecc17d71471eea57a0c361f",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000011,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"04585cff8a53166afc86f3f0e06d5d2c8b08fb9d39c959ee3e3ff55f550bdabb",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"04585cff8a53166afc86f3f0e06d5d2c8b08fb9d39c959ee3e3ff55f550bdabb",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.000001,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"25a4af01d1acb12275ced70a50c475dffe6821bc988a232cd0c5c68282673ce6",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"25a4af01d1acb12275ced70a50c475dffe6821bc988a232cd0c5c68282673ce6",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000002,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"2f87a94ad524fc702d47404899badd261346a794898d69cea9dbb56dca0f2bd1",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"2f87a94ad524fc702d47404899badd261346a794898d69cea9dbb56dca0f2bd1",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 1,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"31bb9a154181520cbd91ca98605143ad8aaa72a9a90d0649f63bea697d99f4fd",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"31bb9a154181520cbd91ca98605143ad8aaa72a9a90d0649f63bea697d99f4fd",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000001,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"34c77f5f6cac57ce99574fcb09ed542371a002146e1e60135ba4ab23ea7dafeb",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"34c77f5f6cac57ce99574fcb09ed542371a002146e1e60135ba4ab23ea7dafeb",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000008,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"42e04820e080a5499507bdfa02881c3ccf76370833f9a69705ce6bf6f9fcd509",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"42e04820e080a5499507bdfa02881c3ccf76370833f9a69705ce6bf6f9fcd509",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000007,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"4d65bc6900b2454abfd89c782295a559ed559e909c1be81b5e76097fdc06f872",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"4d65bc6900b2454abfd89c782295a559ed559e909c1be81b5e76097fdc06f872",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 2.05,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"53c6db88c01c11781dd1ac67eca8177a2260e9005bc49180466eadf71c01f99a",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"53c6db88c01c11781dd1ac67eca8177a2260e9005bc49180466eadf71c01f99a",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000004,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"55531993ed6c5ba7350fdfbfb820bde924e365e52a0e44a33713bd9acbd84379",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"55531993ed6c5ba7350fdfbfb820bde924e365e52a0e44a33713bd9acbd84379",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 2.0523412,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"5f109d1215de0d75ee4b4be079e6922a69d0a6f528899ef35fee0c4d64822b8c",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"5f109d1215de0d75ee4b4be079e6922a69d0a6f528899ef35fee0c4d64822b8c",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 2,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"66efb27f0a2712554e630db1ac8f7f2ea146820fa02f6f869c9310aa8faa03e4",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"66efb27f0a2712554e630db1ac8f7f2ea146820fa02f6f869c9310aa8faa03e4",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.000001,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"962fcc8ba3164f3e3ad50c9e9b635d9487a0f7c125ad32421c303332a63ef830",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"962fcc8ba3164f3e3ad50c9e9b635d9487a0f7c125ad32421c303332a63ef830",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000005,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"974dd914cb2de49e7c167cff04ec0182e64861c0ff638223d608e6e51bc11237",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"974dd914cb2de49e7c167cff04ec0182e64861c0ff638223d608e6e51bc11237",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000014,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"ab0fbc0e18278bb9b5ae59660fd8046b0b481a800e011659333035d7c2593128",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"ab0fbc0e18278bb9b5ae59660fd8046b0b481a800e011659333035d7c2593128",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 2.0523413,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"ac01f0010bcb5937038d637f9d9131124daab15ffda7458a0c801f38f7f9f3f3",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"ac01f0010bcb5937038d637f9d9131124daab15ffda7458a0c801f38f7f9f3f3",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 1,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"ba5049164f13263cdf25453bce53f6b230687bdab2393e0f40c39c313386791c",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"ba5049164f13263cdf25453bce53f6b230687bdab2393e0f40c39c313386791c",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000003,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"d84daa1aa0b8fa265e83dcd506f0f410066eef880ebcd9e8dc70a55ec9fd78f5",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"d84daa1aa0b8fa265e83dcd506f0f410066eef880ebcd9e8dc70a55ec9fd78f5",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000012,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"e67b76c4c411fca92efe1cc0af1bd38c53ee62ce08b4cc81d61209d53d2511c5",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"e67b76c4c411fca92efe1cc0af1bd38c53ee62ce08b4cc81d61209d53d2511c5",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000014,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"f05c192813b5c1565e17b96d8d27481c317ccc25b81ff38fa700c6e91931e211",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"f05c192813b5c1565e17b96d8d27481c317ccc25b81ff38fa700c6e91931e211",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000013,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"f3404e1c4b8fe9d73fae9d11bcd5adf1bcc55852208f0fda8fd4d234320faff9",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"f3404e1c4b8fe9d73fae9d11bcd5adf1bcc55852208f0fda8fd4d234320faff9",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000009,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660844,
tx_hash:
"fedda41bf7553358b60f0be373f02aa79dec5979c95159bc8c12afdb86b3dec2",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"fedda41bf7553358b60f0be373f02aa79dec5979c95159bc8c12afdb86b3dec2",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3.0000006,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660869,
tx_hash:
"68fa5a225999c6f28e4a13cd81c9c3d45bae40dd746b9116d859219ad6060851",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"68fa5a225999c6f28e4a13cd81c9c3d45bae40dd746b9116d859219ad6060851",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 1e-7,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660869,
tx_hash:
"8856a0b51ded579c8b880c3b4f7aa2cad491f073439d2cf05d8ea1a64bb0f7b6",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"8856a0b51ded579c8b880c3b4f7aa2cad491f073439d2cf05d8ea1a64bb0f7b6",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 3e-7,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660869,
tx_hash:
"d4bf048e67cdec88c7affd67ca0843ecb8eac53cefce1c4580bed5a699920267",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"d4bf048e67cdec88c7affd67ca0843ecb8eac53cefce1c4580bed5a699920267",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 4e-7,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660869,
tx_hash:
"e2ce53b60e290246dd5e4758c707ffd8a526d651caff49f7f06c841fd9f5870a",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"e2ce53b60e290246dd5e4758c707ffd8a526d651caff49f7f06c841fd9f5870a",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 2e-7,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
},
{
height: 660959,
tx_hash:
"7b6ed9a3c13e69d893f217debb3d7313db8d48cf11fc7cdf2256afdafe83f2c2",
tx_pos: 1,
value: 546,
satoshis: 546,
txid:
"7b6ed9a3c13e69d893f217debb3d7313db8d48cf11fc7cdf2256afdafe83f2c2",
vout: 1,
utxoType: "token",
transactionType: "send",
tokenId:
"7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d",
tokenTicker: "WDT",
tokenName:
"Test Token With Exceptionally Long Name For CSS And Style Revisions",
tokenDocumentUrl:
"https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org",
tokenDocumentHash: "\\IS\u001e9k+\u0018\u001b]߷2",
decimals: 7,
tokenType: 1,
tokenQty: 1e-7,
isValid: true,
address: "bitcoincash:qqvcsnz9x9nu7vq35vmrkjc7hkfxhhs9nuv44zm0ed"
}
]
const result = bchjs.SLP.TokenType1.generateSendOpReturn(
tokenUtxos,
58.1546965
)
//console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.hasAllKeys(result, ["script", "outputs"])
assert.isNumber(result.outputs)
})
})
describe("#generateBurnOpReturn", () => {
it("should generate burn OP_RETURN code", () => {
// Mock UTXO.