Skip to content

Commit

Permalink
test: Add UTXO-AIRDROP token test
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jan 13, 2025
1 parent 4fa78be commit 2b6cdf0
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/__fixtures__/rgbpp-utxo-pairs.mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,5 +442,42 @@
"txIndex": "0x1"
}
]
},
{
"utxo": {
"txid": "13618e2a8e5b091fd1381cd7d67c3dececb2727fdbeb9887965b577b6c2239ab",
"vout": 0,
"value": 546,
"status": {
"confirmed": true,
"block_height": 2816899,
"block_hash": "000000000000000838d3bf989d702597827cd9830b8bedeaba49a5f2621053fa",
"block_time": 1716348699
}
},
"cells": [
{
"cellOutput": {
"capacity": "0x1b381be34e00",
"lock": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"args": "0x9787495f518fec240d7857067f3016daf705286d",
"hashType": "type"
},
"type": {
"codeHash": "0xf5da9003e31fa9301a3915fe304de9bdb80524b5f0d8fc325fb699317998ee7a",
"args": "0xa63d308c04b4c075eb1d7d5cac891cf20276e3ddb2ec855fc981c88d8134dbe2",
"hashType": "type"
}
},
"data": "0x00000000000000000000000000000000",
"outPoint": {
"txHash": "0xe4e156943c82ee5500d39343a01dda0c48946a6000f449c58ac91708576cf669",
"index": "0x2"
},
"blockNumber": "0xf17dd7",
"txIndex": "0x1"
}
]
}
]
23 changes: 23 additions & 0 deletions test/routes/rgbpp/__snapshots__/address.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5940,6 +5940,29 @@ exports[`/:btc_address/assets 1`] = `
"txIndex": "0x1",
"typeHash": "0xf0d58aed78476f0aa4fab18f45de1fdcf4f42426fb03570de236dfd36638f3ed",
},
{
"blockNumber": "0xf17dd7",
"cellOutput": {
"capacity": "0x1b381be34e00",
"lock": {
"args": "0x9787495f518fec240d7857067f3016daf705286d",
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
},
"type": {
"args": "0xa63d308c04b4c075eb1d7d5cac891cf20276e3ddb2ec855fc981c88d8134dbe2",
"codeHash": "0xf5da9003e31fa9301a3915fe304de9bdb80524b5f0d8fc325fb699317998ee7a",
"hashType": "type",
},
},
"data": "0x00000000000000000000000000000000",
"outPoint": {
"index": "0x2",
"txHash": "0xe4e156943c82ee5500d39343a01dda0c48946a6000f449c58ac91708576cf669",
},
"txIndex": "0x1",
"typeHash": "0xe5ee2fdd79aaa218bd74a821c305fa40305408fae2dbfedf8243ea2b4d7af8e4",
},
]
`;

Expand Down
16 changes: 16 additions & 0 deletions test/services/__snapshots__/rgbpp.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ exports[`RgbppCollector > getRgbppBalanceByCells: should return the rgbpp balanc
"hashType": "type",
},
},
"0xe5ee2fdd79aaa218bd74a821c305fa40305408fae2dbfedf8243ea2b4d7af8e4": {
"amount": "0x0",
"circulatingSupply": "0x0",
"decimal": 0,
"issuer": "0x75f11d14d0d8dfc084ce777961cfd9e75ace8c77282217bcc16f57533ea2ee09",
"name": "Pre-claim -Airdrop Badge",
"symbol": "UTXO-AIRDROP",
"tokenInfoCellTypeHash": "0xb18540dcfde52a96232ec865401284b8b94e1692db54f45803e90d93a4e0d9c7",
"totalSupply": "0x3e8",
"type_hash": "0xe5ee2fdd79aaa218bd74a821c305fa40305408fae2dbfedf8243ea2b4d7af8e4",
"type_script": {
"args": "0xa63d308c04b4c075eb1d7d5cac891cf20276e3ddb2ec855fc981c88d8134dbe2",
"codeHash": "0xf5da9003e31fa9301a3915fe304de9bdb80524b5f0d8fc325fb699317998ee7a",
"hashType": "type",
},
},
}
`;

Expand Down

0 comments on commit 2b6cdf0

Please sign in to comment.