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 74db667
Show file tree
Hide file tree
Showing 2 changed files with 53 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"
}
]
}
]
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",
"decimal": 0,
"name": "Pre-claim -Airdrop Badge",
"symbol": "UTXO-AIRDROP",
"totalSupply: "0x3e8",
"issuer": "0x75f11d14d0d8dfc084ce777961cfd9e75ace8c77282217bcc16f57533ea2ee09",
"circulatingSupply": "0x5af3107a40000",
"tokenInfoCellTypeHash": "0x0f251aec82b7d329bfe94ac8456fd96c463248aec5551b18fd215ca5dcb94be7",
"type_hash": "0xe5ee2fdd79aaa218bd74a821c305fa40305408fae2dbfedf8243ea2b4d7af8e4",
"type_script": {
"args": "0xa63d308c04b4c075eb1d7d5cac891cf20276e3ddb2ec855fc981c88d8134dbe2",
"codeHash": "0xf5da9003e31fa9301a3915fe304de9bdb80524b5f0d8fc325fb699317998ee7a",
"hashType": "type",
},
}
}
`;

Expand Down

0 comments on commit 74db667

Please sign in to comment.