Skip to content

Commit d74dfec

Browse files
authored
Merge pull request #218 from BitGo/folloup/WCN-680
chore: update fixtures per pr review
2 parents f39497d + 08b3478 commit d74dfec

3 files changed

Lines changed: 101 additions & 5 deletions

File tree

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
{
2-
"height": 800000
2+
"id": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5",
3+
"height": 800000,
4+
"previous": "00000000000000000002471c4e82b3a8e1e9a3a5c73de6f8e0d7c1b2a3f4e5d6",
5+
"merkleRoot": "fa6b58ba7239689d94350fd3eb18766d755b9b76397a76708bba07e0c7cf3ab6",
6+
"chainWork": "000000000000000000000000000000000000000053b6f38c00000000000000",
7+
"nonce": 22376508,
8+
"version": 536870912,
9+
"date": "2025-01-01T00:00:00.000Z",
10+
"fees": 6667,
11+
"value": 3781989763466
312
}

src/__tests__/integration/fixtures/bitgo/sendTx.hteth.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,52 @@
11
{
22
"transfer": {
3+
"entries": [
4+
{
5+
"address": "0xe01866e64418db20a2831e41eb11eca2a77245a3",
6+
"value": 100000000000000,
7+
"valueString": "100000000000000",
8+
"isChange": false,
9+
"isPayGo": false
10+
}
11+
],
312
"id": "test-transfer-id",
413
"coin": "hteth",
14+
"wallet": "test-wallet-id",
15+
"walletType": "advanced",
16+
"enterprise": "test-enterprise",
517
"txid": "0xtest-eth-tx-id",
6-
"state": "signed",
18+
"txidType": "transactionHash",
19+
"height": 999999999,
20+
"heightId": "999999999-test-transfer-id",
21+
"date": "2025-01-01T00:00:00.000Z",
22+
"type": "send",
723
"value": -100000000000000,
824
"valueString": "-100000000000000",
9-
"entries": []
25+
"intendedValueString": "-100000000000000",
26+
"baseValue": -100000000000000,
27+
"baseValueString": "-100000000000000",
28+
"baseValueWithoutFees": -100000000000000,
29+
"baseValueWithoutFeesString": "-100000000000000",
30+
"feeString": "21000",
31+
"payGoFee": 0,
32+
"payGoFeeString": "0",
33+
"state": "signed",
34+
"instant": false,
35+
"isReward": false,
36+
"isUnlock": false,
37+
"isFee": false,
38+
"senderInformationVerified": false,
39+
"tags": ["test-wallet-id", "test-enterprise"],
40+
"history": [
41+
{ "date": "2025-01-01T00:00:00.000Z", "action": "signed" },
42+
{ "date": "2025-01-01T00:00:00.000Z", "action": "created" }
43+
],
44+
"signedDate": "2025-01-01T00:00:00.000Z",
45+
"coinSpecific": {},
46+
"buildParams": {},
47+
"metadata": [],
48+
"signedTime": "2025-01-01T00:00:00.000Z",
49+
"createdTime": "2025-01-01T00:00:00.000Z"
1050
},
1151
"txid": "0xtest-eth-tx-id",
1252
"tx": "0x",

src/__tests__/integration/fixtures/bitgo/sendTx.tbtc.json

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,59 @@
11
{
22
"transfer": {
3+
"entries": [
4+
{
5+
"address": "tb1qdgj9n5nw33k2qk26mxu7j5hv30dapz6fewscd4jd87euyjxyp04qgphg92",
6+
"wallet": "test-wallet-id",
7+
"value": -100000,
8+
"valueString": "-100000"
9+
},
10+
{
11+
"address": "tb1qdgj9n5nw33k2qk26mxu7j5hv30dapz6fewscd4jd87euyjxyp04qgphg92",
12+
"value": 10000,
13+
"valueString": "10000",
14+
"isChange": false,
15+
"isPayGo": false
16+
}
17+
],
318
"id": "test-transfer-id",
419
"coin": "tbtc",
20+
"wallet": "test-wallet-id",
21+
"walletType": "advanced",
22+
"enterprise": "test-enterprise",
523
"txid": "test-tx-id",
6-
"state": "signed",
24+
"txidType": "transactionHash",
25+
"height": 999999999,
26+
"heightId": "999999999-test-transfer-id",
27+
"date": "2025-01-01T00:00:00.000Z",
28+
"type": "send",
729
"value": -10202,
830
"valueString": "-10202",
9-
"entries": []
31+
"intendedValueString": "-10202",
32+
"baseValue": -10000,
33+
"baseValueString": "-10000",
34+
"baseValueWithoutFees": -10000,
35+
"baseValueWithoutFeesString": "-10000",
36+
"feeString": "202",
37+
"payGoFee": 0,
38+
"payGoFeeString": "0",
39+
"state": "signed",
40+
"instant": false,
41+
"isReward": false,
42+
"isUnlock": false,
43+
"isFee": false,
44+
"senderInformationVerified": false,
45+
"tags": ["test-wallet-id", "test-enterprise"],
46+
"history": [
47+
{ "date": "2025-01-01T00:00:00.000Z", "action": "signed" },
48+
{ "date": "2025-01-01T00:00:00.000Z", "action": "created" }
49+
],
50+
"signedDate": "2025-01-01T00:00:00.000Z",
51+
"vSize": 201,
52+
"coinSpecific": { "rbf": true, "rbfAcc": false },
53+
"buildParams": { "txFormat": "psbt-lite" },
54+
"metadata": [],
55+
"signedTime": "2025-01-01T00:00:00.000Z",
56+
"createdTime": "2025-01-01T00:00:00.000Z"
1057
},
1158
"txid": "test-tx-id",
1259
"tx": "01000000000101030a0000",

0 commit comments

Comments
 (0)