From 08b3478c703c237497e55999271192ffb09df889 Mon Sep 17 00:00:00 2001 From: Pranish Nepal Date: Tue, 2 Jun 2026 13:39:24 -0400 Subject: [PATCH] chore: update fixtures per pr review This commit updates the fixtures for the integration tests based on the feedback received during the PR review. Ticket: WCN-680 --- .../fixtures/bitgo/blockLatest.json | 11 +++- .../fixtures/bitgo/sendTx.hteth.json | 44 +++++++++++++++- .../fixtures/bitgo/sendTx.tbtc.json | 51 ++++++++++++++++++- 3 files changed, 101 insertions(+), 5 deletions(-) diff --git a/src/__tests__/integration/fixtures/bitgo/blockLatest.json b/src/__tests__/integration/fixtures/bitgo/blockLatest.json index f4ac00a..f965517 100644 --- a/src/__tests__/integration/fixtures/bitgo/blockLatest.json +++ b/src/__tests__/integration/fixtures/bitgo/blockLatest.json @@ -1,3 +1,12 @@ { - "height": 800000 + "id": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5", + "height": 800000, + "previous": "00000000000000000002471c4e82b3a8e1e9a3a5c73de6f8e0d7c1b2a3f4e5d6", + "merkleRoot": "fa6b58ba7239689d94350fd3eb18766d755b9b76397a76708bba07e0c7cf3ab6", + "chainWork": "000000000000000000000000000000000000000053b6f38c00000000000000", + "nonce": 22376508, + "version": 536870912, + "date": "2025-01-01T00:00:00.000Z", + "fees": 6667, + "value": 3781989763466 } diff --git a/src/__tests__/integration/fixtures/bitgo/sendTx.hteth.json b/src/__tests__/integration/fixtures/bitgo/sendTx.hteth.json index a612dda..456f5f0 100644 --- a/src/__tests__/integration/fixtures/bitgo/sendTx.hteth.json +++ b/src/__tests__/integration/fixtures/bitgo/sendTx.hteth.json @@ -1,12 +1,52 @@ { "transfer": { + "entries": [ + { + "address": "0xe01866e64418db20a2831e41eb11eca2a77245a3", + "value": 100000000000000, + "valueString": "100000000000000", + "isChange": false, + "isPayGo": false + } + ], "id": "test-transfer-id", "coin": "hteth", + "wallet": "test-wallet-id", + "walletType": "advanced", + "enterprise": "test-enterprise", "txid": "0xtest-eth-tx-id", - "state": "signed", + "txidType": "transactionHash", + "height": 999999999, + "heightId": "999999999-test-transfer-id", + "date": "2025-01-01T00:00:00.000Z", + "type": "send", "value": -100000000000000, "valueString": "-100000000000000", - "entries": [] + "intendedValueString": "-100000000000000", + "baseValue": -100000000000000, + "baseValueString": "-100000000000000", + "baseValueWithoutFees": -100000000000000, + "baseValueWithoutFeesString": "-100000000000000", + "feeString": "21000", + "payGoFee": 0, + "payGoFeeString": "0", + "state": "signed", + "instant": false, + "isReward": false, + "isUnlock": false, + "isFee": false, + "senderInformationVerified": false, + "tags": ["test-wallet-id", "test-enterprise"], + "history": [ + { "date": "2025-01-01T00:00:00.000Z", "action": "signed" }, + { "date": "2025-01-01T00:00:00.000Z", "action": "created" } + ], + "signedDate": "2025-01-01T00:00:00.000Z", + "coinSpecific": {}, + "buildParams": {}, + "metadata": [], + "signedTime": "2025-01-01T00:00:00.000Z", + "createdTime": "2025-01-01T00:00:00.000Z" }, "txid": "0xtest-eth-tx-id", "tx": "0x", diff --git a/src/__tests__/integration/fixtures/bitgo/sendTx.tbtc.json b/src/__tests__/integration/fixtures/bitgo/sendTx.tbtc.json index a7fe138..12b33c7 100644 --- a/src/__tests__/integration/fixtures/bitgo/sendTx.tbtc.json +++ b/src/__tests__/integration/fixtures/bitgo/sendTx.tbtc.json @@ -1,12 +1,59 @@ { "transfer": { + "entries": [ + { + "address": "tb1qdgj9n5nw33k2qk26mxu7j5hv30dapz6fewscd4jd87euyjxyp04qgphg92", + "wallet": "test-wallet-id", + "value": -100000, + "valueString": "-100000" + }, + { + "address": "tb1qdgj9n5nw33k2qk26mxu7j5hv30dapz6fewscd4jd87euyjxyp04qgphg92", + "value": 10000, + "valueString": "10000", + "isChange": false, + "isPayGo": false + } + ], "id": "test-transfer-id", "coin": "tbtc", + "wallet": "test-wallet-id", + "walletType": "advanced", + "enterprise": "test-enterprise", "txid": "test-tx-id", - "state": "signed", + "txidType": "transactionHash", + "height": 999999999, + "heightId": "999999999-test-transfer-id", + "date": "2025-01-01T00:00:00.000Z", + "type": "send", "value": -10202, "valueString": "-10202", - "entries": [] + "intendedValueString": "-10202", + "baseValue": -10000, + "baseValueString": "-10000", + "baseValueWithoutFees": -10000, + "baseValueWithoutFeesString": "-10000", + "feeString": "202", + "payGoFee": 0, + "payGoFeeString": "0", + "state": "signed", + "instant": false, + "isReward": false, + "isUnlock": false, + "isFee": false, + "senderInformationVerified": false, + "tags": ["test-wallet-id", "test-enterprise"], + "history": [ + { "date": "2025-01-01T00:00:00.000Z", "action": "signed" }, + { "date": "2025-01-01T00:00:00.000Z", "action": "created" } + ], + "signedDate": "2025-01-01T00:00:00.000Z", + "vSize": 201, + "coinSpecific": { "rbf": true, "rbfAcc": false }, + "buildParams": { "txFormat": "psbt-lite" }, + "metadata": [], + "signedTime": "2025-01-01T00:00:00.000Z", + "createdTime": "2025-01-01T00:00:00.000Z" }, "txid": "test-tx-id", "tx": "01000000000101030a0000",