From 74db6672881a024899fecc93893bbf1d7d910ad8 Mon Sep 17 00:00:00 2001 From: Dylan Duan Date: Mon, 13 Jan 2025 19:16:29 +0800 Subject: [PATCH] test: Add UTXO-AIRDROP token test --- test/__fixtures__/rgbpp-utxo-pairs.mock.json | 37 +++++++++++++++++++ .../services/__snapshots__/rgbpp.test.ts.snap | 16 ++++++++ 2 files changed, 53 insertions(+) diff --git a/test/__fixtures__/rgbpp-utxo-pairs.mock.json b/test/__fixtures__/rgbpp-utxo-pairs.mock.json index f956630e..bac29670 100644 --- a/test/__fixtures__/rgbpp-utxo-pairs.mock.json +++ b/test/__fixtures__/rgbpp-utxo-pairs.mock.json @@ -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" + } + ] } ] diff --git a/test/services/__snapshots__/rgbpp.test.ts.snap b/test/services/__snapshots__/rgbpp.test.ts.snap index f0cdc96d..eb6d6b0c 100644 --- a/test/services/__snapshots__/rgbpp.test.ts.snap +++ b/test/services/__snapshots__/rgbpp.test.ts.snap @@ -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", + }, + } } `;