@bitgo-beta/sdk-coin-trx 1.2.3-alpha.43 → 1.2.3-alpha.430

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 (132) hide show
  1. package/dist/resources/protobuf/Contract.proto +32 -0
  2. package/dist/resources/protobuf/tron.d.ts +1478 -214
  3. package/dist/resources/protobuf/tron.js +6312 -2600
  4. package/dist/resources/protobuf/tron.proto +6 -0
  5. package/dist/src/index.js +6 -2
  6. package/dist/src/lib/constants.d.ts +3 -0
  7. package/dist/src/lib/constants.d.ts.map +1 -0
  8. package/dist/src/lib/constants.js +6 -0
  9. package/dist/src/lib/contractCallBuilder.d.ts +1 -35
  10. package/dist/src/lib/contractCallBuilder.d.ts.map +1 -1
  11. package/dist/src/lib/contractCallBuilder.js +12 -75
  12. package/dist/src/lib/delegateResourceTxBuilder.d.ts +27 -0
  13. package/dist/src/lib/delegateResourceTxBuilder.d.ts.map +1 -0
  14. package/dist/src/lib/delegateResourceTxBuilder.js +98 -0
  15. package/dist/src/lib/enum.d.ts +36 -1
  16. package/dist/src/lib/enum.d.ts.map +1 -1
  17. package/dist/src/lib/enum.js +40 -4
  18. package/dist/src/lib/freezeBalanceTxBuilder.d.ts +71 -0
  19. package/dist/src/lib/freezeBalanceTxBuilder.d.ts.map +1 -0
  20. package/dist/src/lib/freezeBalanceTxBuilder.js +211 -0
  21. package/dist/src/lib/iface.d.ts +220 -2
  22. package/dist/src/lib/iface.d.ts.map +1 -1
  23. package/dist/src/lib/iface.js +1 -1
  24. package/dist/src/lib/index.js +23 -9
  25. package/dist/src/lib/keyPair.d.ts +0 -1
  26. package/dist/src/lib/keyPair.d.ts.map +1 -1
  27. package/dist/src/lib/keyPair.js +31 -18
  28. package/dist/src/lib/resourceManagementTxBuilder.d.ts +72 -0
  29. package/dist/src/lib/resourceManagementTxBuilder.d.ts.map +1 -0
  30. package/dist/src/lib/resourceManagementTxBuilder.js +150 -0
  31. package/dist/src/lib/tokenTransferBuilder.d.ts +1 -1
  32. package/dist/src/lib/tokenTransferBuilder.js +3 -3
  33. package/dist/src/lib/transaction.d.ts.map +1 -1
  34. package/dist/src/lib/transaction.js +92 -6
  35. package/dist/src/lib/transactionBuilder.d.ts +50 -5
  36. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  37. package/dist/src/lib/transactionBuilder.js +110 -21
  38. package/dist/src/lib/undelegateResourceTxBuilder.d.ts +27 -0
  39. package/dist/src/lib/undelegateResourceTxBuilder.d.ts.map +1 -0
  40. package/dist/src/lib/undelegateResourceTxBuilder.js +98 -0
  41. package/dist/src/lib/unfreezeBalanceTxBuilder.d.ts +65 -0
  42. package/dist/src/lib/unfreezeBalanceTxBuilder.d.ts.map +1 -0
  43. package/dist/src/lib/unfreezeBalanceTxBuilder.js +204 -0
  44. package/dist/src/lib/utils.d.ts +85 -4
  45. package/dist/src/lib/utils.d.ts.map +1 -1
  46. package/dist/src/lib/utils.js +445 -47
  47. package/dist/src/lib/voteWitnessTxBuilder.d.ts +62 -0
  48. package/dist/src/lib/voteWitnessTxBuilder.d.ts.map +1 -0
  49. package/dist/src/lib/voteWitnessTxBuilder.js +219 -0
  50. package/dist/src/lib/withdrawBuilder.d.ts +49 -0
  51. package/dist/src/lib/withdrawBuilder.d.ts.map +1 -0
  52. package/dist/src/lib/withdrawBuilder.js +167 -0
  53. package/dist/src/lib/withdrawExpireUnfreezeTxBuilder.d.ts +49 -0
  54. package/dist/src/lib/withdrawExpireUnfreezeTxBuilder.d.ts.map +1 -0
  55. package/dist/src/lib/withdrawExpireUnfreezeTxBuilder.js +167 -0
  56. package/dist/src/lib/wrappedBuilder.d.ts +56 -0
  57. package/dist/src/lib/wrappedBuilder.d.ts.map +1 -1
  58. package/dist/src/lib/wrappedBuilder.js +86 -2
  59. package/dist/src/trx.d.ts +78 -4
  60. package/dist/src/trx.d.ts.map +1 -1
  61. package/dist/src/trx.js +436 -147
  62. package/dist/src/trxToken.d.ts +2 -2
  63. package/dist/src/trxToken.d.ts.map +1 -1
  64. package/dist/src/trxToken.js +5 -5
  65. package/dist/test/fixtures.d.ts +40 -0
  66. package/dist/test/fixtures.d.ts.map +1 -0
  67. package/dist/test/fixtures.js +46 -0
  68. package/dist/test/resources.d.ts +586 -0
  69. package/dist/test/resources.d.ts.map +1 -0
  70. package/dist/test/resources.js +746 -0
  71. package/dist/test/unit/index.d.ts +2 -0
  72. package/dist/test/unit/index.d.ts.map +1 -0
  73. package/dist/test/unit/index.js +19 -0
  74. package/dist/test/unit/keyPair.d.ts +2 -0
  75. package/dist/test/unit/keyPair.d.ts.map +1 -0
  76. package/dist/test/unit/keyPair.js +163 -0
  77. package/dist/test/unit/transaction.d.ts +2 -0
  78. package/dist/test/unit/transaction.d.ts.map +1 -0
  79. package/dist/test/unit/transaction.js +38 -0
  80. package/dist/test/unit/transactionBuilder/contractCallBuilder.d.ts +2 -0
  81. package/dist/test/unit/transactionBuilder/contractCallBuilder.d.ts.map +1 -0
  82. package/dist/test/unit/transactionBuilder/contractCallBuilder.js +315 -0
  83. package/dist/test/unit/transactionBuilder/delegateResourceTxBuilder.d.ts +2 -0
  84. package/dist/test/unit/transactionBuilder/delegateResourceTxBuilder.d.ts.map +1 -0
  85. package/dist/test/unit/transactionBuilder/delegateResourceTxBuilder.js +255 -0
  86. package/dist/test/unit/transactionBuilder/freezeBalanceTxBuilder.d.ts +2 -0
  87. package/dist/test/unit/transactionBuilder/freezeBalanceTxBuilder.d.ts.map +1 -0
  88. package/dist/test/unit/transactionBuilder/freezeBalanceTxBuilder.js +285 -0
  89. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.d.ts +2 -0
  90. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.d.ts.map +1 -0
  91. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.js +42 -0
  92. package/dist/test/unit/transactionBuilder/undelegateResourceTxBuilder.d.ts +2 -0
  93. package/dist/test/unit/transactionBuilder/undelegateResourceTxBuilder.d.ts.map +1 -0
  94. package/dist/test/unit/transactionBuilder/undelegateResourceTxBuilder.js +255 -0
  95. package/dist/test/unit/transactionBuilder/unfreezeBalanceTxBuilder.d.ts +2 -0
  96. package/dist/test/unit/transactionBuilder/unfreezeBalanceTxBuilder.d.ts.map +1 -0
  97. package/dist/test/unit/transactionBuilder/unfreezeBalanceTxBuilder.js +256 -0
  98. package/dist/test/unit/transactionBuilder/voteWitnessTxBuilder.d.ts +2 -0
  99. package/dist/test/unit/transactionBuilder/voteWitnessTxBuilder.d.ts.map +1 -0
  100. package/dist/test/unit/transactionBuilder/voteWitnessTxBuilder.js +277 -0
  101. package/dist/test/unit/transactionBuilder/withdrawBalanceBuilder.d.ts +2 -0
  102. package/dist/test/unit/transactionBuilder/withdrawBalanceBuilder.d.ts.map +1 -0
  103. package/dist/test/unit/transactionBuilder/withdrawBalanceBuilder.js +213 -0
  104. package/dist/test/unit/transactionBuilder/withdrawExpireUnfreezeTxBuilder.d.ts +2 -0
  105. package/dist/test/unit/transactionBuilder/withdrawExpireUnfreezeTxBuilder.d.ts.map +1 -0
  106. package/dist/test/unit/transactionBuilder/withdrawExpireUnfreezeTxBuilder.js +213 -0
  107. package/dist/test/unit/transactionBuilder/wrappedBuilder.d.ts +2 -0
  108. package/dist/test/unit/transactionBuilder/wrappedBuilder.d.ts.map +1 -0
  109. package/dist/test/unit/transactionBuilder/wrappedBuilder.js +50 -0
  110. package/dist/test/unit/transactionBuilder.d.ts +2 -0
  111. package/dist/test/unit/transactionBuilder.d.ts.map +1 -0
  112. package/dist/test/unit/transactionBuilder.js +178 -0
  113. package/dist/test/unit/trx.d.ts +2 -0
  114. package/dist/test/unit/trx.d.ts.map +1 -0
  115. package/dist/test/unit/trx.js +639 -0
  116. package/dist/test/unit/util.d.ts +2 -0
  117. package/dist/test/unit/util.d.ts.map +1 -0
  118. package/dist/test/unit/util.js +141 -0
  119. package/dist/test/unit/verifyTransaction.d.ts +2 -0
  120. package/dist/test/unit/verifyTransaction.d.ts.map +1 -0
  121. package/dist/test/unit/verifyTransaction.js +378 -0
  122. package/dist/tsconfig.tsbuildinfo +1 -0
  123. package/package.json +20 -15
  124. package/.eslintignore +0 -5
  125. package/.mocharc.yml +0 -8
  126. package/CHANGELOG.md +0 -118
  127. package/resources/README.md +0 -31
  128. package/resources/protobuf/Contract.proto +0 -256
  129. package/resources/protobuf/Discover.proto +0 -44
  130. package/resources/protobuf/tron.d.ts +0 -11205
  131. package/resources/protobuf/tron.js +0 -33480
  132. package/resources/protobuf/tron.proto +0 -677
@@ -0,0 +1,586 @@
1
+ export declare const FEE_LIMIT = "10000";
2
+ export declare const BLOCK_NUMBER = 51407;
3
+ export declare const BLOCK_HASH = "0000000000badb0d89177fd84c5d9196021cc1085b9e689b3e9a6195cac8bcae";
4
+ export declare const MINT_CONFIRM_DATA = "2bf90baa1273140c3e1b5756b242cc88cd7c4dd8a61bf85cb5c1dd5f50ba61e066b53a15";
5
+ export declare const EXPIRATION = 60000;
6
+ export declare const TOKEN_TRANSFER_DATA = "a9059cbb0000000000000000000000004887974f42a789ef6d4dfc7ba28b1583219434b3000000000000000000000000000000000000000000000000000000003b9aca00";
7
+ export declare const RESOURCE_ENERGY = "ENERGY";
8
+ export declare const RESOURCE_BANDWIDTH = "BANDWIDTH";
9
+ export declare const FROZEN_BALANCE = "1000000";
10
+ export declare const DELEGATION_BALANCE = "1000000";
11
+ export declare const UNDELEGATION_BALANCE = "1000000";
12
+ export declare const UNFROZEN_BALANCE = "1000000";
13
+ export declare const USDT_CONTRACT_ADDRESS = "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs";
14
+ export declare const TOKEN_TRANSFER_RECIPIENT = "TGai5uHgBcoLERrzDXMepqZB8Et7D8nV8K";
15
+ export declare const TOKEN_TRANSFER_DATA_2 = "a9059cbb0000000000000000000000008483618ca85c35a9b923d98bebca718f5a1db2790000000000000000000000000000000000000000000000000000000005f5e100";
16
+ export declare const TOKEN_TXID = "fe21c49f4febd9089125e3a006943c145721d8fcb7ab84136f8c6663ff92f8ed";
17
+ export declare const PARTICIPANTS: {
18
+ from: {
19
+ address: string;
20
+ pk: string;
21
+ };
22
+ custodian: {
23
+ address: string;
24
+ pk: string;
25
+ bitcoinAddress: string;
26
+ };
27
+ merchant: {
28
+ address: string;
29
+ pk: string;
30
+ bitcoinAddress: string;
31
+ };
32
+ multisig: {
33
+ address: string;
34
+ pk: string;
35
+ };
36
+ to: {
37
+ address: string;
38
+ };
39
+ };
40
+ export declare const CONTRACTS: {
41
+ token: string;
42
+ controller: string;
43
+ members: string;
44
+ factory: string;
45
+ };
46
+ export declare const TX_CONTRACT: {
47
+ parameter: {
48
+ value: {
49
+ data: string;
50
+ owner_address: string;
51
+ contract_address: string;
52
+ };
53
+ type_url: string;
54
+ };
55
+ type: string;
56
+ }[];
57
+ export declare const FREEZE_BALANCE_V2_CONTRACT: {
58
+ parameter: {
59
+ value: {
60
+ resource: string;
61
+ frozen_balance: number;
62
+ owner_address: string;
63
+ };
64
+ type_url: string;
65
+ };
66
+ type: string;
67
+ }[];
68
+ export declare const UNFREEZE_BALANCE_V2_CONTRACT: {
69
+ parameter: {
70
+ value: {
71
+ resource: string;
72
+ unfreeze_balance: number;
73
+ owner_address: string;
74
+ };
75
+ type_url: string;
76
+ };
77
+ type: string;
78
+ }[];
79
+ export declare const WITHDRAW_EXPIRE_UNFREEZE_CONTRACT: {
80
+ parameter: {
81
+ value: {
82
+ owner_address: string;
83
+ };
84
+ type_url: string;
85
+ };
86
+ type: string;
87
+ }[];
88
+ export declare const WITHDRAW_BALANCE_CONTRACT: {
89
+ parameter: {
90
+ value: {
91
+ owner_address: string;
92
+ };
93
+ type_url: string;
94
+ };
95
+ type: string;
96
+ }[];
97
+ export declare const VOTE_WITNESS_CONTRACT: {
98
+ parameter: {
99
+ value: {
100
+ owner_address: string;
101
+ votes: {
102
+ vote_address: string;
103
+ vote_count: number;
104
+ }[];
105
+ };
106
+ type_url: string;
107
+ };
108
+ type: string;
109
+ }[];
110
+ export declare const TOKEN_TX_CONTRACT: {
111
+ parameter: {
112
+ value: {
113
+ data: string;
114
+ owner_address: string;
115
+ contract_address: string;
116
+ };
117
+ type_url: string;
118
+ };
119
+ type: string;
120
+ }[];
121
+ export declare const TOKEN_TX_CONTRACT_2: {
122
+ parameter: {
123
+ value: {
124
+ data: string;
125
+ owner_address: string;
126
+ contract_address: string;
127
+ };
128
+ type_url: string;
129
+ };
130
+ type: string;
131
+ }[];
132
+ export declare const DELEGATE_RESOURCE_CONTRACT: {
133
+ parameter: {
134
+ value: {
135
+ resource: string;
136
+ balance: number;
137
+ owner_address: string;
138
+ receiver_address: string;
139
+ };
140
+ type_url: string;
141
+ };
142
+ type: string;
143
+ }[];
144
+ export declare const UNDELEGATE_RESOURCE_CONTRACT: {
145
+ parameter: {
146
+ value: {
147
+ resource: string;
148
+ balance: number;
149
+ owner_address: string;
150
+ receiver_address: string;
151
+ };
152
+ type_url: string;
153
+ };
154
+ type: string;
155
+ }[];
156
+ export declare const FirstPrivateKey = "2DBEAC1C22849F47514445A56AEF2EF164528A502DE4BD289E23EA1E2D4C4B06";
157
+ export declare const SecondPrivateKey = "FB3AA887E0BE3FAC9D75E661DAFF4A7FE0E91AAB13DA9775CD8586D7CB9B7640";
158
+ export declare const FirstExpectedKeyAddress = "TTsGwnTLQ4eryFJpDvJSfuGQxPXRCjXvZz";
159
+ export declare const SecondExpectedKeyAddress = "TDzm1tCXM2YS1PDa3GoXSvxdy4AgwVbBPE";
160
+ export declare const FirstExpectedSig = "bd08e6cd876bb573dd00a32870b58b70ea8b7908f5131686502589941bfa4fdda76b8c81bbbcfc549be6d4988657cea122df7da46c72041def2683d6ecb04a7401";
161
+ export declare const SecondExpectedSig = "f3cabe2f4aed13e2342c78c7bf4626ea36cd6509a44418c24866814d3426703686be9ef21bd993324c520565beee820201f2a50a9ac971732410d3eb69cdb2a600";
162
+ export declare const TestRecoverData: {
163
+ userKey: string;
164
+ backupKey: string;
165
+ bitgoKey: string;
166
+ baseAddress: string;
167
+ firstReceiveAddress: string;
168
+ secondReceiveAddress: string;
169
+ recoveryDestination: string;
170
+ };
171
+ export declare function baseAddressBalance(trxBalance: number, trc20Balances?: any[]): {
172
+ data: {
173
+ owner_permission: {
174
+ keys: {
175
+ address: string;
176
+ weight: number;
177
+ }[];
178
+ threshold: number;
179
+ permission_name: string;
180
+ };
181
+ balance: number;
182
+ trc20: any[];
183
+ active_permission: {
184
+ operations: string;
185
+ keys: {
186
+ address: string;
187
+ weight: number;
188
+ }[];
189
+ threshold: number;
190
+ id: number;
191
+ type: string;
192
+ permission_name: string;
193
+ }[];
194
+ }[];
195
+ };
196
+ export declare function receiveAddressBalance(balance: number, address: string, trc20Balances?: any[]): {
197
+ data: {
198
+ owner_permission: {
199
+ keys: {
200
+ address: string;
201
+ weight: number;
202
+ }[];
203
+ threshold: number;
204
+ permission_name: string;
205
+ };
206
+ active_permission: {
207
+ operations: string;
208
+ keys: {
209
+ address: string;
210
+ weight: number;
211
+ }[];
212
+ threshold: number;
213
+ id: number;
214
+ type: string;
215
+ permission_name: string;
216
+ }[];
217
+ balance: number;
218
+ trc20: any[];
219
+ }[];
220
+ };
221
+ export declare function creationTransaction(fromAddress: string, toAddress: string, amount: number): {
222
+ visible: boolean;
223
+ txID: string;
224
+ raw_data: {
225
+ contract: {
226
+ parameter: {
227
+ value: {
228
+ amount: number;
229
+ owner_address: string;
230
+ to_address: string;
231
+ };
232
+ type_url: string;
233
+ };
234
+ type: string;
235
+ }[];
236
+ ref_block_bytes: string;
237
+ ref_block_hash: string;
238
+ expiration: number;
239
+ timestamp: number;
240
+ };
241
+ raw_data_hex: string;
242
+ };
243
+ export declare const SampleRawTokenSendTxn: {
244
+ result: {
245
+ result: boolean;
246
+ };
247
+ transaction: {
248
+ visible: boolean;
249
+ txID: string;
250
+ raw_data: {
251
+ contract: {
252
+ parameter: {
253
+ value: {
254
+ data: string;
255
+ owner_address: string;
256
+ contract_address: string;
257
+ };
258
+ type_url: string;
259
+ };
260
+ type: string;
261
+ }[];
262
+ ref_block_bytes: string;
263
+ ref_block_hash: string;
264
+ expiration: number;
265
+ fee_limit: number;
266
+ timestamp: number;
267
+ };
268
+ raw_data_hex: string;
269
+ };
270
+ };
271
+ export declare const UnsignedBuildTransaction: {
272
+ visible: boolean;
273
+ txID: string;
274
+ raw_data: {
275
+ contract: {
276
+ parameter: {
277
+ value: {
278
+ amount: number;
279
+ owner_address: string;
280
+ to_address: string;
281
+ };
282
+ type_url: string;
283
+ };
284
+ type: string;
285
+ }[];
286
+ ref_block_bytes: string;
287
+ ref_block_hash: string;
288
+ expiration: number;
289
+ timestamp: number;
290
+ };
291
+ raw_data_hex: string;
292
+ };
293
+ export declare const FirstSigOnBuildTransaction: any;
294
+ export declare const SecondSigOnBuildTransaction: any;
295
+ export declare const UnsignedTransferContractTx: {
296
+ tx: {
297
+ visible: boolean;
298
+ txID: string;
299
+ raw_data: {
300
+ contract: {
301
+ parameter: {
302
+ value: {
303
+ amount: number;
304
+ owner_address: string;
305
+ to_address: string;
306
+ };
307
+ type_url: string;
308
+ };
309
+ type: string;
310
+ }[];
311
+ ref_block_bytes: string;
312
+ ref_block_hash: string;
313
+ expiration: number;
314
+ timestamp: number;
315
+ };
316
+ raw_data_hex: string;
317
+ signature: never[];
318
+ };
319
+ sig: string;
320
+ };
321
+ export declare const AccountPermissionUpdateContractPriv = "88413601C267316040413C68AAB35651F8C7AB05EC8FFEF42D42DDA16AA3732C";
322
+ export declare const UnsignedAccountPermissionUpdateContractTx: {
323
+ visible: boolean;
324
+ txID: string;
325
+ raw_data: {
326
+ contract: {
327
+ parameter: {
328
+ value: {
329
+ owner: {
330
+ keys: {
331
+ address: string;
332
+ weight: number;
333
+ }[];
334
+ threshold: number;
335
+ permission_name: string;
336
+ };
337
+ owner_address: string;
338
+ actives: {
339
+ operations: string;
340
+ keys: {
341
+ address: string;
342
+ weight: number;
343
+ }[];
344
+ threshold: number;
345
+ type: string;
346
+ permission_name: string;
347
+ }[];
348
+ };
349
+ type_url: string;
350
+ };
351
+ type: string;
352
+ }[];
353
+ ref_block_bytes: string;
354
+ ref_block_hash: string;
355
+ expiration: number;
356
+ timestamp: number;
357
+ };
358
+ raw_data_hex: string;
359
+ };
360
+ export declare const SignedAccountPermissionUpdateContractTx: {
361
+ visible: boolean;
362
+ txID: string;
363
+ raw_data: {
364
+ contract: {
365
+ parameter: {
366
+ value: {
367
+ owner: {
368
+ keys: {
369
+ address: string;
370
+ weight: number;
371
+ }[];
372
+ threshold: number;
373
+ permission_name: string;
374
+ };
375
+ owner_address: string;
376
+ actives: {
377
+ operations: string;
378
+ keys: {
379
+ address: string;
380
+ weight: number;
381
+ }[];
382
+ threshold: number;
383
+ type: string;
384
+ permission_name: string;
385
+ }[];
386
+ };
387
+ type_url: string;
388
+ };
389
+ type: string;
390
+ }[];
391
+ ref_block_bytes: string;
392
+ ref_block_hash: string;
393
+ expiration: number;
394
+ timestamp: number;
395
+ };
396
+ raw_data_hex: string;
397
+ signature: string[];
398
+ };
399
+ export declare const InvalidIDTransaction: {
400
+ visible: boolean;
401
+ txID: string;
402
+ raw_data: {
403
+ contract: {
404
+ parameter: {
405
+ value: {
406
+ amount: number;
407
+ owner_address: string;
408
+ to_address: string;
409
+ };
410
+ type_url: string;
411
+ };
412
+ type: string;
413
+ }[];
414
+ ref_block_bytes: string;
415
+ ref_block_hash: string;
416
+ expiration: number;
417
+ timestamp: number;
418
+ };
419
+ raw_data_hex: string;
420
+ };
421
+ export declare const UnsignedBuildEmptyIDTransaction: {
422
+ visible: boolean;
423
+ txID: string;
424
+ raw_data: {
425
+ contract: {
426
+ parameter: {
427
+ value: {
428
+ amount: number;
429
+ owner_address: string;
430
+ to_address: string;
431
+ };
432
+ type_url: string;
433
+ };
434
+ type: string;
435
+ }[];
436
+ ref_block_bytes: string;
437
+ ref_block_hash: string;
438
+ expiration: number;
439
+ timestamp: number;
440
+ };
441
+ raw_data_hex: string;
442
+ };
443
+ export declare const UnsignedBuildInvalidIDTransaction: {
444
+ visible: boolean;
445
+ txID: string;
446
+ raw_data: {
447
+ contract: {
448
+ parameter: {
449
+ value: {
450
+ amount: number;
451
+ owner_address: string;
452
+ to_address: string;
453
+ };
454
+ type_url: string;
455
+ };
456
+ type: string;
457
+ }[];
458
+ ref_block_bytes: string;
459
+ ref_block_hash: string;
460
+ expiration: number;
461
+ timestamp: number;
462
+ };
463
+ raw_data_hex: string;
464
+ };
465
+ export declare const UnsignedInvalidExpirationBuildTransaction: {
466
+ visible: boolean;
467
+ txID: string;
468
+ raw_data: {
469
+ contract: {
470
+ parameter: {
471
+ value: {
472
+ amount: number;
473
+ owner_address: string;
474
+ to_address: string;
475
+ };
476
+ type_url: string;
477
+ };
478
+ type: string;
479
+ }[];
480
+ ref_block_bytes: string;
481
+ ref_block_hash: string;
482
+ expiration: number;
483
+ timestamp: number;
484
+ };
485
+ raw_data_hex: string;
486
+ };
487
+ export declare const UnsignedInvalidTimeStampBuildTransaction: {
488
+ visible: boolean;
489
+ txID: string;
490
+ raw_data: {
491
+ contract: {
492
+ parameter: {
493
+ value: {
494
+ amount: number;
495
+ owner_address: string;
496
+ to_address: string;
497
+ };
498
+ type_url: string;
499
+ };
500
+ type: string;
501
+ }[];
502
+ ref_block_bytes: string;
503
+ ref_block_hash: string;
504
+ expiration: number;
505
+ timestamp: number;
506
+ };
507
+ raw_data_hex: string;
508
+ };
509
+ export declare const UnsignedInvalidContractBuildTransaction: {
510
+ visible: boolean;
511
+ txID: string;
512
+ raw_data: {
513
+ ref_block_bytes: string;
514
+ ref_block_hash: string;
515
+ expiration: number;
516
+ timestamp: number;
517
+ };
518
+ raw_data_hex: string;
519
+ };
520
+ export declare const mockTokenTx: {
521
+ signature: never[];
522
+ txID: string;
523
+ raw_data: {
524
+ contractType: number;
525
+ contract: {
526
+ parameter: {
527
+ value: {
528
+ data: string;
529
+ owner_address: string;
530
+ contract_address: string;
531
+ };
532
+ type_url: string;
533
+ };
534
+ type: string;
535
+ }[];
536
+ ref_block_bytes: string;
537
+ ref_block_hash: string;
538
+ expiration: number;
539
+ timestamp: number;
540
+ fee_limit: number;
541
+ };
542
+ raw_data_hex: string;
543
+ };
544
+ export declare const validUnfreezeUnsignedTx: {
545
+ visible: boolean;
546
+ txID: string;
547
+ raw_data: {
548
+ contract: {
549
+ parameter: {
550
+ value: {
551
+ resource: string;
552
+ owner_address: string;
553
+ unfreeze_balance: number;
554
+ };
555
+ type_url: string;
556
+ };
557
+ type: string;
558
+ }[];
559
+ ref_block_bytes: string;
560
+ ref_block_hash: string;
561
+ expiration: number;
562
+ timestamp: number;
563
+ };
564
+ raw_data_hex: string;
565
+ };
566
+ export declare const validWithdrawUnsignedTx: {
567
+ visible: boolean;
568
+ txID: string;
569
+ raw_data: {
570
+ contract: {
571
+ parameter: {
572
+ value: {
573
+ owner_address: string;
574
+ };
575
+ type_url: string;
576
+ };
577
+ type: string;
578
+ }[];
579
+ ref_block_bytes: string;
580
+ ref_block_hash: string;
581
+ expiration: number;
582
+ timestamp: number;
583
+ };
584
+ raw_data_hex: string;
585
+ };
586
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../test/resources.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,YAAY,QAAQ,CAAC;AAClC,eAAO,MAAM,UAAU,qEAAqE,CAAC;AAC7F,eAAO,MAAM,iBAAiB,6EAA6E,CAAC;AAC5G,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,mBAAmB,6IAC4G,CAAC;AAC7I,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,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