@ledgerhq/coin-tron 4.0.0 → 4.0.1-nightly.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/api/index.d.ts.map +1 -1
  3. package/lib/api/index.js +6 -1
  4. package/lib/api/index.js.map +1 -1
  5. package/lib/api/index.test.js +7 -2
  6. package/lib/api/index.test.js.map +1 -1
  7. package/lib/logic/listOperations.d.ts +7 -1
  8. package/lib/logic/listOperations.d.ts.map +1 -1
  9. package/lib/logic/listOperations.integ.test.js +56 -4
  10. package/lib/logic/listOperations.integ.test.js.map +1 -1
  11. package/lib/logic/listOperations.js +20 -7
  12. package/lib/logic/listOperations.js.map +1 -1
  13. package/lib/logic/listOperations.unit.test.js +5 -3
  14. package/lib/logic/listOperations.unit.test.js.map +1 -1
  15. package/lib/network/format.js +2 -2
  16. package/lib/network/format.js.map +1 -1
  17. package/lib/network/index.d.ts +5 -1
  18. package/lib/network/index.d.ts.map +1 -1
  19. package/lib/network/index.js +56 -5
  20. package/lib/network/index.js.map +1 -1
  21. package/lib/network/index.test.js +93 -28
  22. package/lib/network/index.test.js.map +1 -1
  23. package/lib/network/types.fixture.d.ts +384 -48
  24. package/lib/network/types.fixture.d.ts.map +1 -1
  25. package/lib/network/types.fixture.js.map +1 -1
  26. package/lib-es/api/index.d.ts.map +1 -1
  27. package/lib-es/api/index.js +6 -1
  28. package/lib-es/api/index.js.map +1 -1
  29. package/lib-es/api/index.test.js +7 -2
  30. package/lib-es/api/index.test.js.map +1 -1
  31. package/lib-es/logic/listOperations.d.ts +7 -1
  32. package/lib-es/logic/listOperations.d.ts.map +1 -1
  33. package/lib-es/logic/listOperations.integ.test.js +57 -5
  34. package/lib-es/logic/listOperations.integ.test.js.map +1 -1
  35. package/lib-es/logic/listOperations.js +19 -7
  36. package/lib-es/logic/listOperations.js.map +1 -1
  37. package/lib-es/logic/listOperations.unit.test.js +6 -4
  38. package/lib-es/logic/listOperations.unit.test.js.map +1 -1
  39. package/lib-es/network/format.js +2 -2
  40. package/lib-es/network/format.js.map +1 -1
  41. package/lib-es/network/index.d.ts +5 -1
  42. package/lib-es/network/index.d.ts.map +1 -1
  43. package/lib-es/network/index.js +56 -5
  44. package/lib-es/network/index.js.map +1 -1
  45. package/lib-es/network/index.test.js +93 -28
  46. package/lib-es/network/index.test.js.map +1 -1
  47. package/lib-es/network/types.fixture.d.ts +384 -48
  48. package/lib-es/network/types.fixture.d.ts.map +1 -1
  49. package/lib-es/network/types.fixture.js.map +1 -1
  50. package/package.json +7 -7
  51. package/src/api/index.test.ts +7 -2
  52. package/src/api/index.ts +7 -1
  53. package/src/logic/listOperations.integ.test.ts +74 -5
  54. package/src/logic/listOperations.ts +31 -7
  55. package/src/logic/listOperations.unit.test.ts +8 -4
  56. package/src/network/format.ts +2 -2
  57. package/src/network/index.test.ts +120 -27
  58. package/src/network/index.ts +80 -9
  59. package/src/network/types.fixture.ts +1 -1
@@ -8,27 +8,17 @@ const node_1 = require("msw/node");
8
8
  const types_fixture_1 = require("./types.fixture");
9
9
  const config_1 = __importDefault(require("../config"));
10
10
  const _1 = require(".");
11
+ const console_1 = require("console");
11
12
  const TRON_BASE_URL_TEST = "https://httpbin.org";
12
- const handlers = [
13
- msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions`, () => {
14
- // const url = new URL(request.url);
15
- // const _ = url.searchParams.get("get_detail");
16
- return msw_1.HttpResponse.json(types_fixture_1.TRANSACTION_FIXTURE);
17
- }),
18
- msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions/trc20`, () => {
19
- // const url = new URL(request.url);
20
- // const _ = url.searchParams.get("get_detail");
21
- return msw_1.HttpResponse.json(types_fixture_1.TRC20_FIXTURE);
22
- }),
23
- msw_1.http.get(`${TRON_BASE_URL_TEST}/wallet/gettransactioninfobyid`, ({ request }) => {
24
- const url = new URL(request.url);
25
- const value = url.searchParams.get("value") ?? "UNKNOWN";
26
- return msw_1.HttpResponse.json((0, types_fixture_1.TRANSACTION_DETAIL_FIXTURE)(value));
27
- }),
28
- ];
29
- const mockServer = (0, node_1.setupServer)(...handlers);
30
- describe("fetchTronAccountTxs", () => {
31
- beforeAll(() => {
13
+ const defaultGetTransactionsH = msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions`, () => msw_1.HttpResponse.json(types_fixture_1.TRANSACTION_FIXTURE));
14
+ const defaultGetTrc20TransactionsH = msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions/trc20`, () => msw_1.HttpResponse.json(types_fixture_1.TRC20_FIXTURE));
15
+ const defaultGetTxInfo = msw_1.http.get(`${TRON_BASE_URL_TEST}/wallet/gettransactioninfobyid`, ({ request }) => {
16
+ const url = new URL(request.url);
17
+ const value = url.searchParams.get("value") ?? "UNKNOWN";
18
+ return msw_1.HttpResponse.json((0, types_fixture_1.TRANSACTION_DETAIL_FIXTURE)(value));
19
+ });
20
+ function doBeforeAll(server) {
21
+ return () => {
32
22
  config_1.default.setCoinConfig(() => ({
33
23
  status: {
34
24
  type: "active",
@@ -37,14 +27,21 @@ describe("fetchTronAccountTxs", () => {
37
27
  url: TRON_BASE_URL_TEST,
38
28
  },
39
29
  }));
40
- mockServer.listen();
41
- });
42
- beforeEach(() => {
43
- mockServer.resetHandlers();
44
- });
45
- afterAll(() => {
46
- mockServer.close();
47
- });
30
+ server.listen();
31
+ };
32
+ }
33
+ function doBeforeEach(server) {
34
+ return () => server.resetHandlers();
35
+ }
36
+ function doAfterAll(server) {
37
+ return () => server.close();
38
+ }
39
+ describe("fetchTronAccountTxs", () => {
40
+ const handlers = [defaultGetTransactionsH, defaultGetTrc20TransactionsH, defaultGetTxInfo];
41
+ const mockServer = (0, node_1.setupServer)(...handlers);
42
+ beforeAll(doBeforeAll(mockServer));
43
+ beforeEach(doBeforeEach(mockServer));
44
+ afterAll(doAfterAll(mockServer));
48
45
  it("convert correctly operations from the blockchain", async () => {
49
46
  // WHEN
50
47
  const results = await (0, _1.fetchTronAccountTxs)("ADDRESS", txs => txs.length < 100, {}, _1.defaultFetchParams);
@@ -55,4 +52,72 @@ describe("fetchTronAccountTxs", () => {
55
52
  expect(tx.to).toEqual("TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj");
56
53
  });
57
54
  });
55
+ describe("fetchTronAccountTxs with invalid TRC20 (see LIVE-18992)", () => {
56
+ const tx1Hash = "1237889e91c0ebbe389436c341865df09921f8f0c029d9286102372cbaadc585";
57
+ const tx2Hash = "154164dd04482ae78f930033d0ad95730b8b19fde171a33c3920d18c228426ab";
58
+ let counterGetTrc20 = 0;
59
+ const invalidTrc20Handler = msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions/trc20`, () => {
60
+ const ret = JSON.parse(JSON.stringify(types_fixture_1.TRC20_FIXTURE));
61
+ switch (counterGetTrc20) {
62
+ case 0: {
63
+ const tx1 = ret.data[0];
64
+ (0, console_1.assert)(tx1.transaction_id == tx1Hash);
65
+ ret.data[0].detail.ret = undefined;
66
+ break;
67
+ }
68
+ case 1: {
69
+ const tx2 = ret.data[1];
70
+ (0, console_1.assert)(tx2.transaction_id == tx2Hash);
71
+ ret.data[1].detail.ret = undefined;
72
+ break;
73
+ }
74
+ default:
75
+ // the 3rd call should not happen
76
+ // because merging the 1st and 2nd results is enough to have a full set, perfectly well formed
77
+ throw "results should be merged after 2 calls";
78
+ }
79
+ counterGetTrc20++;
80
+ return msw_1.HttpResponse.json(ret);
81
+ });
82
+ const handlers = [defaultGetTransactionsH, invalidTrc20Handler, defaultGetTxInfo];
83
+ const mockServer = (0, node_1.setupServer)(...handlers);
84
+ beforeAll(doBeforeAll(mockServer));
85
+ beforeEach(doBeforeEach(mockServer));
86
+ afterAll(doAfterAll(mockServer));
87
+ it("retry several times until result is correct", async () => {
88
+ // WHEN
89
+ const results = await (0, _1.fetchTronAccountTxs)("ADDRESS", () => true, {}, _1.defaultFetchParams);
90
+ // THEN
91
+ const tx1 = results.find(tx => tx.txID === tx1Hash);
92
+ expect(tx1).toBeDefined();
93
+ const tx2 = results.find(tx => tx.txID === tx2Hash);
94
+ expect(tx2).toBeDefined();
95
+ });
96
+ });
97
+ describe("fetchTronAccountTxs with invalid TRC20 (see LIVE-18992): after 3 tries it throws an exception", () => {
98
+ const tx1Hash = "1237889e91c0ebbe389436c341865df09921f8f0c029d9286102372cbaadc585";
99
+ const alwaysInvalidTrc20Handler = msw_1.http.get(`${TRON_BASE_URL_TEST}/v1/accounts/:addr/transactions/trc20`, () => {
100
+ const ret = JSON.parse(JSON.stringify(types_fixture_1.TRC20_FIXTURE));
101
+ const tx1 = ret.data[0];
102
+ (0, console_1.assert)(tx1.transaction_id == tx1Hash);
103
+ ret.data[0].detail.ret = undefined;
104
+ return msw_1.HttpResponse.json(ret);
105
+ });
106
+ const handlers = [defaultGetTransactionsH, alwaysInvalidTrc20Handler, defaultGetTxInfo];
107
+ const mockServer = (0, node_1.setupServer)(...handlers);
108
+ beforeAll(doBeforeAll(mockServer));
109
+ beforeEach(doBeforeEach(mockServer));
110
+ afterAll(doAfterAll(mockServer));
111
+ it("after several retry, it gives up on retry", async () => {
112
+ try {
113
+ await (0, _1.fetchTronAccountTxs)("ADDRESS", () => true, {}, _1.defaultFetchParams);
114
+ }
115
+ catch (e) {
116
+ expect(e).toBeDefined();
117
+ expect(e.message).toBe("getTrc20TxsWithRetry: couldn't fetch trc20 transactions after several attempts");
118
+ return;
119
+ }
120
+ fail("should have thrown an error");
121
+ });
122
+ });
58
123
  //# sourceMappingURL=index.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/network/index.test.ts"],"names":[],"mappings":";;;;;AAAA,6BAAyC;AACzC,mCAAuC;AACvC,mDAAiG;AACjG,uDAAmC;AACnC,wBAA4D;AAE5D,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEjD,MAAM,QAA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ACX,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YACxB,MAAM,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC,IAAI,CAC/B,gFAAgF,CACjF,CAAC;YACF,OAAO;QACT,CAAC;QACD,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -409,59 +409,395 @@ export declare const TRANSACTION_FIXTURE: {
409
409
  };
410
410
  };
411
411
  export declare const TRC20_FIXTURE: {
412
- data: {
413
- transaction_id: string;
414
- token_info: {
415
- symbol: string;
416
- address: string;
417
- decimals: number;
418
- name: string;
412
+ readonly data: readonly [{
413
+ readonly transaction_id: "1237889e91c0ebbe389436c341865df09921f8f0c029d9286102372cbaadc585";
414
+ readonly token_info: {
415
+ readonly symbol: "WIN";
416
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
417
+ readonly decimals: 6;
418
+ readonly name: "WINkLink";
419
419
  };
420
- block_timestamp: number;
421
- from: string;
422
- to: string;
423
- detail: {
424
- ret: {
425
- contractRet: string;
426
- fee: number;
427
- }[];
428
- signature: string[];
429
- txID: string;
430
- net_usage: number;
431
- raw_data_hex: string;
432
- net_fee: number;
433
- energy_usage: number;
434
- blockNumber: number;
435
- block_timestamp: number;
436
- energy_fee: number;
437
- energy_usage_total: number;
438
- raw_data: {
439
- contract: {
440
- parameter: {
441
- value: {
442
- data: string;
443
- owner_address: string;
444
- contract_address: string;
420
+ readonly block_timestamp: 1690896219000;
421
+ readonly from: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
422
+ readonly to: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
423
+ readonly detail: {
424
+ readonly ret: readonly [{
425
+ readonly contractRet: "SUCCESS";
426
+ readonly fee: 0;
427
+ }];
428
+ readonly signature: readonly ["8e353cdac72bca51f3510001d53febdca9555c8440fa35cd6fc0c0153a2b10661a03db68f156213dcb92f34cfac76a6ef90ecd3db06c5c77863896a5d76c8ea901"];
429
+ readonly txID: "1237889e91c0ebbe389436c341865df09921f8f0c029d9286102372cbaadc585";
430
+ readonly net_usage: 345;
431
+ readonly raw_data_hex: "0a0231e822083d8710a83f49c56240e89c968a9b315aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541a2ff80f95ce3740235dc46a4dffe00d9f9b91f3712154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee70cecc928a9b31900180e1eb17";
432
+ readonly net_fee: 0;
433
+ readonly energy_usage: 0;
434
+ readonly blockNumber: 53424636;
435
+ readonly block_timestamp: 1690896219000;
436
+ readonly energy_fee: 0;
437
+ readonly energy_usage_total: 28263;
438
+ readonly raw_data: {
439
+ readonly contract: readonly [{
440
+ readonly parameter: {
441
+ readonly value: {
442
+ readonly data: "a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee";
443
+ readonly owner_address: "41a2ff80f95ce3740235dc46a4dffe00d9f9b91f37";
444
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
445
445
  };
446
- type_url: string;
446
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
447
447
  };
448
- type: string;
449
- }[];
450
- ref_block_bytes: string;
451
- ref_block_hash: string;
452
- expiration: number;
453
- fee_limit: number;
454
- timestamp: number;
448
+ readonly type: "TriggerSmartContract";
449
+ }];
450
+ readonly ref_block_bytes: "31e8";
451
+ readonly ref_block_hash: "3d8710a83f49c562";
452
+ readonly expiration: 1690896273000;
453
+ readonly fee_limit: 50000000;
454
+ readonly timestamp: 1690896213582;
455
455
  };
456
- internal_transactions: never[];
456
+ readonly internal_transactions: readonly [];
457
457
  };
458
- type: string;
459
- value: string;
460
- }[];
461
- success: boolean;
462
- meta: {
463
- at: number;
464
- page_size: number;
458
+ readonly type: "Transfer";
459
+ readonly value: "1506542";
460
+ }, {
461
+ readonly transaction_id: "154164dd04482ae78f930033d0ad95730b8b19fde171a33c3920d18c228426ab";
462
+ readonly token_info: {
463
+ readonly symbol: "WIN";
464
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
465
+ readonly decimals: 6;
466
+ readonly name: "WINkLink";
467
+ };
468
+ readonly block_timestamp: 1676452587000;
469
+ readonly from: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
470
+ readonly to: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
471
+ readonly detail: {
472
+ readonly ret: readonly [{
473
+ readonly contractRet: "SUCCESS";
474
+ readonly fee: 0;
475
+ }];
476
+ readonly signature: readonly ["32819c5cf224586bd9fd976307454166999af173bae3906c18745a5ddd584265237074c43e3418b43c0f923c348588f2a43b86705d3ff67abb6d728fc28f2f8c01"];
477
+ readonly txID: "154164dd04482ae78f930033d0ad95730b8b19fde171a33c3920d18c228426ab";
478
+ readonly net_usage: 345;
479
+ readonly raw_data_hex: "0a02ce7d220887273c4324d0757440f8c2f4a2e5305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a154105cc125604448afeb6867eb688efb7e80411d57a12154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000016fcee709a83f1a2e530900180e1eb17";
480
+ readonly net_fee: 0;
481
+ readonly energy_usage: 0;
482
+ readonly blockNumber: 48615059;
483
+ readonly block_timestamp: 1676452587000;
484
+ readonly energy_fee: 0;
485
+ readonly energy_usage_total: 28263;
486
+ readonly raw_data: {
487
+ readonly contract: readonly [{
488
+ readonly parameter: {
489
+ readonly value: {
490
+ readonly data: "a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000016fcee";
491
+ readonly owner_address: "4105cc125604448afeb6867eb688efb7e80411d57a";
492
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
493
+ };
494
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
495
+ };
496
+ readonly type: "TriggerSmartContract";
497
+ }];
498
+ readonly ref_block_bytes: "ce7d";
499
+ readonly ref_block_hash: "87273c4324d07574";
500
+ readonly expiration: 1676452635000;
501
+ readonly fee_limit: 50000000;
502
+ readonly timestamp: 1676452577690;
503
+ };
504
+ readonly internal_transactions: readonly [];
505
+ };
506
+ readonly type: "Transfer";
507
+ readonly value: "1506542";
508
+ }, {
509
+ readonly transaction_id: "14988c5f97977ad627c3ceec55b13d78cccd8455a72c08cb248b4ea89cc8a1fc";
510
+ readonly token_info: {
511
+ readonly symbol: "WIN";
512
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
513
+ readonly decimals: 6;
514
+ readonly name: "WINkLink";
515
+ };
516
+ readonly block_timestamp: 1676451558000;
517
+ readonly from: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
518
+ readonly to: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
519
+ readonly detail: {
520
+ readonly ret: readonly [{
521
+ readonly contractRet: "SUCCESS";
522
+ readonly fee: 0;
523
+ }];
524
+ readonly signature: readonly ["4edc94186666bc4cbe98fab52d53f6a7d774f96e179ef785cbe5f42d3e39c33866200b68c2d661ab00cc1e30977229e53bc08f4a7d93fce35e7e31de9106c56901"];
525
+ readonly txID: "14988c5f97977ad627c3ceec55b13d78cccd8455a72c08cb248b4ea89cc8a1fc";
526
+ readonly net_usage: 345;
527
+ readonly raw_data_hex: "0a02cd202208f02fcc47f58b942a40a0cfb4a2e5305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541a2ff80f95ce3740235dc46a4dffe00d9f9b91f3712154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee70dbffb0a2e530900180e1eb17";
528
+ readonly net_fee: 0;
529
+ readonly energy_usage: 0;
530
+ readonly blockNumber: 48614716;
531
+ readonly block_timestamp: 1676451558000;
532
+ readonly energy_fee: 0;
533
+ readonly energy_usage_total: 28263;
534
+ readonly raw_data: {
535
+ readonly contract: readonly [{
536
+ readonly parameter: {
537
+ readonly value: {
538
+ readonly data: "a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee";
539
+ readonly owner_address: "41a2ff80f95ce3740235dc46a4dffe00d9f9b91f37";
540
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
541
+ };
542
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
543
+ };
544
+ readonly type: "TriggerSmartContract";
545
+ }];
546
+ readonly ref_block_bytes: "cd20";
547
+ readonly ref_block_hash: "f02fcc47f58b942a";
548
+ readonly expiration: 1676451588000;
549
+ readonly fee_limit: 50000000;
550
+ readonly timestamp: 1676451528667;
551
+ };
552
+ readonly internal_transactions: readonly [];
553
+ };
554
+ readonly type: "Transfer";
555
+ readonly value: "1506542";
556
+ }, {
557
+ readonly transaction_id: "deb6829859ffe7c6ee8c4c41ae2ca7efc13ebc81da33319d7db8b442ec2ce18f";
558
+ readonly token_info: {
559
+ readonly symbol: "WIN";
560
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
561
+ readonly decimals: 6;
562
+ readonly name: "WINkLink";
563
+ };
564
+ readonly block_timestamp: 1676450838000;
565
+ readonly from: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
566
+ readonly to: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
567
+ readonly detail: {
568
+ readonly ret: readonly [{
569
+ readonly contractRet: "SUCCESS";
570
+ readonly fee: 0;
571
+ }];
572
+ readonly signature: readonly ["d2d9268368b0dd49053e048dbc7cad93c00328eb5cf19094901c02171827f259497042150e3916c183e2a7fc74045ac90d523d51edbf043cb75b62095813bbd200"];
573
+ readonly txID: "deb6829859ffe7c6ee8c4c41ae2ca7efc13ebc81da33319d7db8b442ec2ce18f";
574
+ readonly net_usage: 345;
575
+ readonly raw_data_hex: "0a02cc37220827fc3ac3451eeb2840a8fa89a2e5305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a154105cc125604448afeb6867eb688efb7e80411d57a12154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000016fcee7087b186a2e530900180e1eb17";
576
+ readonly net_fee: 0;
577
+ readonly energy_usage: 0;
578
+ readonly blockNumber: 48614476;
579
+ readonly block_timestamp: 1676450838000;
580
+ readonly energy_fee: 0;
581
+ readonly energy_usage_total: 28263;
582
+ readonly raw_data: {
583
+ readonly contract: readonly [{
584
+ readonly parameter: {
585
+ readonly value: {
586
+ readonly data: "a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000016fcee";
587
+ readonly owner_address: "4105cc125604448afeb6867eb688efb7e80411d57a";
588
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
589
+ };
590
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
591
+ };
592
+ readonly type: "TriggerSmartContract";
593
+ }];
594
+ readonly ref_block_bytes: "cc37";
595
+ readonly ref_block_hash: "27fc3ac3451eeb28";
596
+ readonly expiration: 1676450889000;
597
+ readonly fee_limit: 50000000;
598
+ readonly timestamp: 1676450830471;
599
+ };
600
+ readonly internal_transactions: readonly [];
601
+ };
602
+ readonly type: "Transfer";
603
+ readonly value: "1506542";
604
+ }, {
605
+ readonly transaction_id: "b990dcf791f50c66d07066021a76380eaf56a32e7703df0e210221cccc7524cb";
606
+ readonly token_info: {
607
+ readonly symbol: "WIN";
608
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
609
+ readonly decimals: 6;
610
+ readonly name: "WINkLink";
611
+ };
612
+ readonly block_timestamp: 1676306403000;
613
+ readonly from: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
614
+ readonly to: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
615
+ readonly detail: {
616
+ readonly ret: readonly [{
617
+ readonly contractRet: "SUCCESS";
618
+ readonly fee: 0;
619
+ }];
620
+ readonly signature: readonly ["4bb37c4d6dd3ec59f45a4affe9cc20519c3515e54c4853f38bf49063bddb40a7612f4012191e637ccc3f860fc0c162fd9a38cdc19a25b44a272cd9a75689c5f201"];
621
+ readonly txID: "b990dcf791f50c66d07066021a76380eaf56a32e7703df0e210221cccc7524cb";
622
+ readonly net_usage: 345;
623
+ readonly raw_data_hex: "0a02103b22089734a52b9604567d40f0ab9adde4305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541a2ff80f95ce3740235dc46a4dffe00d9f9b91f3712154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016e36070cde396dde430900180e1eb17";
624
+ readonly net_fee: 0;
625
+ readonly energy_usage: 0;
626
+ readonly blockNumber: 48566352;
627
+ readonly block_timestamp: 1676306403000;
628
+ readonly energy_fee: 0;
629
+ readonly energy_usage_total: 13263;
630
+ readonly raw_data: {
631
+ readonly contract: readonly [{
632
+ readonly parameter: {
633
+ readonly value: {
634
+ readonly data: "a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016e360";
635
+ readonly owner_address: "41a2ff80f95ce3740235dc46a4dffe00d9f9b91f37";
636
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
637
+ };
638
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
639
+ };
640
+ readonly type: "TriggerSmartContract";
641
+ }];
642
+ readonly ref_block_bytes: "103b";
643
+ readonly ref_block_hash: "9734a52b9604567d";
644
+ readonly expiration: 1676306454000;
645
+ readonly fee_limit: 50000000;
646
+ readonly timestamp: 1676306395597;
647
+ };
648
+ readonly internal_transactions: readonly [];
649
+ };
650
+ readonly type: "Transfer";
651
+ readonly value: "1500000";
652
+ }, {
653
+ readonly transaction_id: "47bd809b9a8d5181d9a752f202c8421892ca719d618293f431eae0c1e318e99e";
654
+ readonly token_info: {
655
+ readonly symbol: "WIN";
656
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
657
+ readonly decimals: 6;
658
+ readonly name: "WINkLink";
659
+ };
660
+ readonly block_timestamp: 1675766052000;
661
+ readonly from: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
662
+ readonly to: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
663
+ readonly detail: {
664
+ readonly ret: readonly [{
665
+ readonly contractRet: "SUCCESS";
666
+ readonly fee: 0;
667
+ }];
668
+ readonly signature: readonly ["de40603f441a27b36a5e8591d1463d83449a0c3d985d0eeaf41b87f6c233ee9a57a1555482a3e4f0b42d0425441c7b7240bdb6247640102d5c3f4ed39612eeef01"];
669
+ readonly txID: "47bd809b9a8d5181d9a752f202c8421892ca719d618293f431eae0c1e318e99e";
670
+ readonly net_usage: 345;
671
+ readonly raw_data_hex: "0a0251de2208b9a9e2eba06a8dc840a0e0c5dbe2305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a154105cc125604448afeb6867eb688efb7e80411d57a12154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f3700000000000000000000000000000000000000000000000000000000000f424070b0a6c2dbe23090018087a70e";
672
+ readonly net_fee: 0;
673
+ readonly energy_usage: 0;
674
+ readonly blockNumber: 48386548;
675
+ readonly block_timestamp: 1675766052000;
676
+ readonly energy_fee: 0;
677
+ readonly energy_usage_total: 13263;
678
+ readonly raw_data: {
679
+ readonly contract: readonly [{
680
+ readonly parameter: {
681
+ readonly value: {
682
+ readonly data: "a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f3700000000000000000000000000000000000000000000000000000000000f4240";
683
+ readonly owner_address: "4105cc125604448afeb6867eb688efb7e80411d57a";
684
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
685
+ };
686
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
687
+ };
688
+ readonly type: "TriggerSmartContract";
689
+ }];
690
+ readonly ref_block_bytes: "51de";
691
+ readonly ref_block_hash: "b9a9e2eba06a8dc8";
692
+ readonly expiration: 1675766100000;
693
+ readonly fee_limit: 30000000;
694
+ readonly timestamp: 1675766043440;
695
+ };
696
+ readonly internal_transactions: readonly [];
697
+ };
698
+ readonly type: "Transfer";
699
+ readonly value: "1000000";
700
+ }, {
701
+ readonly transaction_id: "7cb9e8b44ee63b47e615f77ef26406e0d11c95943faa328ab67b62987f752176";
702
+ readonly token_info: {
703
+ readonly symbol: "WIN";
704
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
705
+ readonly decimals: 6;
706
+ readonly name: "WINkLink";
707
+ };
708
+ readonly block_timestamp: 1670509320000;
709
+ readonly from: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
710
+ readonly to: "TQq4YrKRywkd9vLYw2nZKiFfMpbQiL8gKK";
711
+ readonly detail: {
712
+ readonly ret: readonly [{
713
+ readonly contractRet: "SUCCESS";
714
+ readonly fee: 0;
715
+ }];
716
+ readonly signature: readonly ["e67e62c7390d6adb46a9ede9796e46a02f28ac0cb72cc4ea2ee250d44b5913f81d580da10099af529dd86a6bd68d50ef6814b6a21f8fdfdc67664f4231e51f2300"];
717
+ readonly txID: "7cb9e8b44ee63b47e615f77ef26406e0d11c95943faa328ab67b62987f752176";
718
+ readonly net_usage: 345;
719
+ readonly raw_data_hex: "0a02ad1022084a90958a4d2e2e6340c0a5f890cf305aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a154105cc125604448afeb6867eb688efb7e80411d57a12154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000007a1207080e2f490cf30900180dac409";
720
+ readonly net_fee: 0;
721
+ readonly energy_usage: 0;
722
+ readonly blockNumber: 46640422;
723
+ readonly block_timestamp: 1670509320000;
724
+ readonly energy_fee: 0;
725
+ readonly energy_usage_total: 28263;
726
+ readonly raw_data: {
727
+ readonly contract: readonly [{
728
+ readonly parameter: {
729
+ readonly value: {
730
+ readonly data: "a9059cbb000000000000000000000041a2ff80f95ce3740235dc46a4dffe00d9f9b91f37000000000000000000000000000000000000000000000000000000000007a120";
731
+ readonly owner_address: "4105cc125604448afeb6867eb688efb7e80411d57a";
732
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
733
+ };
734
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
735
+ };
736
+ readonly type: "TriggerSmartContract";
737
+ }];
738
+ readonly ref_block_bytes: "ad10";
739
+ readonly ref_block_hash: "4a90958a4d2e2e63";
740
+ readonly expiration: 1670509368000;
741
+ readonly fee_limit: 20000000;
742
+ readonly timestamp: 1670509310208;
743
+ };
744
+ readonly internal_transactions: readonly [];
745
+ };
746
+ readonly type: "Transfer";
747
+ readonly value: "500000";
748
+ }, {
749
+ readonly transaction_id: "387099712c6c16f153220591e4428047888dd551e87bde17866f6c088d7560ce";
750
+ readonly token_info: {
751
+ readonly symbol: "WIN";
752
+ readonly address: "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7";
753
+ readonly decimals: 6;
754
+ readonly name: "WINkLink";
755
+ };
756
+ readonly block_timestamp: 1645192425000;
757
+ readonly from: "TM7YNtW7feriKvfHiDmAdVeZ4LNnJrbuxg";
758
+ readonly to: "TAVrrARNdnjHgCGMQYeQV7hv4PSu7mVsMj";
759
+ readonly detail: {
760
+ readonly ret: readonly [{
761
+ readonly contractRet: "SUCCESS";
762
+ readonly fee: 0;
763
+ }];
764
+ readonly signature: readonly ["78ea2a6d0498a712096f316aaf0f7a70e7e5069c0dec9276267713573fd56e317460896175b34e9269da38e78780fca318055c6ea470370500c5d4f00c6c1cdb01"];
765
+ readonly txID: "387099712c6c16f153220591e4428047888dd551e87bde17866f6c088d7560ce";
766
+ readonly net_usage: 345;
767
+ readonly raw_data_hex: "0a021fc22208c8fe7fe8dcefc24240e0eaf3e8f02f5aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a15417a3ce2ca51988d3d6a8401cf7d41ae111a464c5012154174472e7d35395a6b5add427eecb7f4b62ad2b0712244a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee70cc9ef0e8f02f900180ade204";
768
+ readonly net_fee: 0;
769
+ readonly energy_usage: 0;
770
+ readonly blockNumber: 38215639;
771
+ readonly block_timestamp: 1645192425000;
772
+ readonly energy_fee: 0;
773
+ readonly energy_usage_total: 28248;
774
+ readonly raw_data: {
775
+ readonly contract: readonly [{
776
+ readonly parameter: {
777
+ readonly value: {
778
+ readonly data: "a9059cbb00000000000000000000004105cc125604448afeb6867eb688efb7e80411d57a000000000000000000000000000000000000000000000000000000000016fcee";
779
+ readonly owner_address: "417a3ce2ca51988d3d6a8401cf7d41ae111a464c50";
780
+ readonly contract_address: "4174472e7d35395a6b5add427eecb7f4b62ad2b071";
781
+ };
782
+ readonly type_url: "type.googleapis.com/protocol.TriggerSmartContract";
783
+ };
784
+ readonly type: "TriggerSmartContract";
785
+ }];
786
+ readonly ref_block_bytes: "1fc2";
787
+ readonly ref_block_hash: "c8fe7fe8dcefc242";
788
+ readonly expiration: 1645192476000;
789
+ readonly fee_limit: 10000000;
790
+ readonly timestamp: 1645192417100;
791
+ };
792
+ readonly internal_transactions: readonly [];
793
+ };
794
+ readonly type: "Transfer";
795
+ readonly value: "1506542";
796
+ }];
797
+ readonly success: true;
798
+ readonly meta: {
799
+ readonly at: 1718032314555;
800
+ readonly page_size: 8;
465
801
  };
466
802
  };
467
803
  export declare const TRANSACTION_DETAIL_FIXTURE: (id: string) => {
@@ -1 +1 @@
1
- {"version":3,"file":"types.fixture.d.ts","sourceRoot":"","sources":["../../src/network/types.fixture.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA04H/B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwczB,CAAC;AAEF,eAAO,MAAM,0BAA0B,OAAQ,MAAM;;;;;;;;;CASnD,CAAC;AAEH,eAAO,M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