@near-kit-tool-box/fun 0.0.1

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 (55) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +39 -0
  3. package/dist/fun/ft/ft_fun.d.ts +1600 -0
  4. package/dist/fun/ft/ft_fun.d.ts.map +1 -0
  5. package/dist/fun/ft/ft_fun.js +35 -0
  6. package/dist/fun/ft/ft_fun.js.map +1 -0
  7. package/dist/fun/greeting/greeting_get_fun.d.ts +3 -0
  8. package/dist/fun/greeting/greeting_get_fun.d.ts.map +1 -0
  9. package/dist/fun/greeting/greeting_get_fun.js +9 -0
  10. package/dist/fun/greeting/greeting_get_fun.js.map +1 -0
  11. package/dist/fun/greeting/greeting_set_fun.d.ts +535 -0
  12. package/dist/fun/greeting/greeting_set_fun.d.ts.map +1 -0
  13. package/dist/fun/greeting/greeting_set_fun.js +9 -0
  14. package/dist/fun/greeting/greeting_set_fun.js.map +1 -0
  15. package/dist/fun/near/wrap_near.d.ts +1067 -0
  16. package/dist/fun/near/wrap_near.d.ts.map +1 -0
  17. package/dist/fun/near/wrap_near.js +16 -0
  18. package/dist/fun/near/wrap_near.js.map +1 -0
  19. package/dist/fun/rhea/rhea_call_fun.d.ts +2132 -0
  20. package/dist/fun/rhea/rhea_call_fun.d.ts.map +1 -0
  21. package/dist/fun/rhea/rhea_call_fun.js +43 -0
  22. package/dist/fun/rhea/rhea_call_fun.js.map +1 -0
  23. package/dist/fun/rhea/rhea_view_fun.d.ts +10 -0
  24. package/dist/fun/rhea/rhea_view_fun.d.ts.map +1 -0
  25. package/dist/fun/rhea/rhea_view_fun.js +56 -0
  26. package/dist/fun/rhea/rhea_view_fun.js.map +1 -0
  27. package/dist/index.d.ts +11 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +20 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/lib/contract_ft_args.d.ts +7 -0
  32. package/dist/lib/contract_ft_args.d.ts.map +1 -0
  33. package/dist/lib/contract_ft_args.js +3 -0
  34. package/dist/lib/contract_ft_args.js.map +1 -0
  35. package/dist/lib/contract_greeting_args.d.ts +4 -0
  36. package/dist/lib/contract_greeting_args.d.ts.map +1 -0
  37. package/dist/lib/contract_greeting_args.js +3 -0
  38. package/dist/lib/contract_greeting_args.js.map +1 -0
  39. package/dist/lib/contract_greeting_const.d.ts +5 -0
  40. package/dist/lib/contract_greeting_const.d.ts.map +1 -0
  41. package/dist/lib/contract_greeting_const.js +8 -0
  42. package/dist/lib/contract_greeting_const.js.map +1 -0
  43. package/dist/lib/contract_rhea_args.d.ts +28 -0
  44. package/dist/lib/contract_rhea_args.d.ts.map +1 -0
  45. package/dist/lib/contract_rhea_args.js +11 -0
  46. package/dist/lib/contract_rhea_args.js.map +1 -0
  47. package/dist/types/AmountInput.d.ts +2 -0
  48. package/dist/types/AmountInput.d.ts.map +1 -0
  49. package/dist/types/AmountInput.js +3 -0
  50. package/dist/types/AmountInput.js.map +1 -0
  51. package/dist/types/rhea_ref_types.d.ts +33 -0
  52. package/dist/types/rhea_ref_types.d.ts.map +1 -0
  53. package/dist/types/rhea_ref_types.js +15 -0
  54. package/dist/types/rhea_ref_types.js.map +1 -0
  55. package/package.json +48 -0
@@ -0,0 +1,1067 @@
1
+ import { Near } from "near-kit";
2
+ import type { AmountInput } from "../../types/AmountInput";
3
+ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: string, amount: AmountInput): Promise<{
4
+ final_execution_status: "NONE";
5
+ transaction?: {
6
+ hash: string;
7
+ signer_id: string;
8
+ receiver_id: string;
9
+ nonce: number;
10
+ } | undefined;
11
+ } | {
12
+ final_execution_status: "INCLUDED";
13
+ transaction?: {
14
+ hash: string;
15
+ signer_id: string;
16
+ receiver_id: string;
17
+ nonce: number;
18
+ } | undefined;
19
+ } | {
20
+ final_execution_status: "INCLUDED_FINAL";
21
+ transaction?: {
22
+ hash: string;
23
+ signer_id: string;
24
+ receiver_id: string;
25
+ nonce: number;
26
+ } | undefined;
27
+ } | {
28
+ final_execution_status: "EXECUTED_OPTIMISTIC";
29
+ status: "Unknown" | "Pending" | {
30
+ SuccessValue: string;
31
+ } | {
32
+ SuccessReceiptId: string;
33
+ } | {
34
+ Failure: {
35
+ [x: string]: any;
36
+ error_message?: string | undefined;
37
+ error_type?: string | undefined;
38
+ };
39
+ };
40
+ transaction: {
41
+ signer_id: string;
42
+ public_key: string;
43
+ nonce: number;
44
+ receiver_id: string;
45
+ actions: ("CreateAccount" | {
46
+ CreateAccount: Record<string, never>;
47
+ } | {
48
+ Transfer: {
49
+ deposit: string;
50
+ };
51
+ } | {
52
+ FunctionCall: {
53
+ method_name: string;
54
+ args: string;
55
+ gas: number;
56
+ deposit: string;
57
+ };
58
+ } | {
59
+ DeployContract: {
60
+ code: string;
61
+ };
62
+ } | {
63
+ DeployGlobalContract: {
64
+ code: string;
65
+ };
66
+ } | {
67
+ DeployGlobalContractByAccountId: {
68
+ code: string;
69
+ };
70
+ } | {
71
+ Stake: {
72
+ stake: string;
73
+ public_key: string;
74
+ };
75
+ } | {
76
+ AddKey: {
77
+ public_key: string;
78
+ access_key: {
79
+ nonce: number;
80
+ permission: "FullAccess" | {
81
+ FunctionCall: {
82
+ receiver_id: string;
83
+ method_names: string[];
84
+ allowance?: string | null | undefined;
85
+ };
86
+ };
87
+ };
88
+ };
89
+ } | {
90
+ DeleteKey: {
91
+ public_key: string;
92
+ };
93
+ } | {
94
+ DeleteAccount: {
95
+ beneficiary_id: string;
96
+ };
97
+ } | {
98
+ UseGlobalContract: {
99
+ code_hash: string;
100
+ };
101
+ } | {
102
+ UseGlobalContractByAccountId: {
103
+ account_id: string;
104
+ };
105
+ } | {
106
+ Delegate: {
107
+ delegate_action: {
108
+ sender_id: string;
109
+ receiver_id: string;
110
+ actions: any[];
111
+ nonce: number;
112
+ max_block_height: number;
113
+ public_key: string;
114
+ };
115
+ signature: string;
116
+ };
117
+ } | {
118
+ DeterministicStateInit: {
119
+ deposit: string;
120
+ };
121
+ })[];
122
+ signature: string;
123
+ hash: string;
124
+ priority_fee?: number | undefined;
125
+ };
126
+ transaction_outcome: {
127
+ id: string;
128
+ outcome: {
129
+ logs: string[];
130
+ receipt_ids: string[];
131
+ gas_burnt: number;
132
+ tokens_burnt: string;
133
+ executor_id: string;
134
+ status: "Unknown" | "Pending" | {
135
+ SuccessValue: string;
136
+ } | {
137
+ SuccessReceiptId: string;
138
+ } | {
139
+ Failure: {
140
+ [x: string]: any;
141
+ error_message?: string | undefined;
142
+ error_type?: string | undefined;
143
+ };
144
+ };
145
+ metadata?: {
146
+ version: number;
147
+ gas_profile?: {
148
+ [x: string]: any;
149
+ cost?: string | undefined;
150
+ cost_category?: string | undefined;
151
+ gas_used?: string | undefined;
152
+ }[] | null | undefined;
153
+ } | undefined;
154
+ };
155
+ block_hash: string;
156
+ proof: {
157
+ hash: string;
158
+ direction: "Left" | "Right";
159
+ }[];
160
+ };
161
+ receipts_outcome: {
162
+ id: string;
163
+ outcome: {
164
+ logs: string[];
165
+ receipt_ids: string[];
166
+ gas_burnt: number;
167
+ tokens_burnt: string;
168
+ executor_id: string;
169
+ status: "Unknown" | "Pending" | {
170
+ SuccessValue: string;
171
+ } | {
172
+ SuccessReceiptId: string;
173
+ } | {
174
+ Failure: {
175
+ [x: string]: any;
176
+ error_message?: string | undefined;
177
+ error_type?: string | undefined;
178
+ };
179
+ };
180
+ metadata?: {
181
+ version: number;
182
+ gas_profile?: {
183
+ [x: string]: any;
184
+ cost?: string | undefined;
185
+ cost_category?: string | undefined;
186
+ gas_used?: string | undefined;
187
+ }[] | null | undefined;
188
+ } | undefined;
189
+ };
190
+ block_hash: string;
191
+ proof: {
192
+ hash: string;
193
+ direction: "Left" | "Right";
194
+ }[];
195
+ }[];
196
+ } | {
197
+ final_execution_status: "EXECUTED";
198
+ status: "Unknown" | "Pending" | {
199
+ SuccessValue: string;
200
+ } | {
201
+ SuccessReceiptId: string;
202
+ } | {
203
+ Failure: {
204
+ [x: string]: any;
205
+ error_message?: string | undefined;
206
+ error_type?: string | undefined;
207
+ };
208
+ };
209
+ transaction: {
210
+ signer_id: string;
211
+ public_key: string;
212
+ nonce: number;
213
+ receiver_id: string;
214
+ actions: ("CreateAccount" | {
215
+ CreateAccount: Record<string, never>;
216
+ } | {
217
+ Transfer: {
218
+ deposit: string;
219
+ };
220
+ } | {
221
+ FunctionCall: {
222
+ method_name: string;
223
+ args: string;
224
+ gas: number;
225
+ deposit: string;
226
+ };
227
+ } | {
228
+ DeployContract: {
229
+ code: string;
230
+ };
231
+ } | {
232
+ DeployGlobalContract: {
233
+ code: string;
234
+ };
235
+ } | {
236
+ DeployGlobalContractByAccountId: {
237
+ code: string;
238
+ };
239
+ } | {
240
+ Stake: {
241
+ stake: string;
242
+ public_key: string;
243
+ };
244
+ } | {
245
+ AddKey: {
246
+ public_key: string;
247
+ access_key: {
248
+ nonce: number;
249
+ permission: "FullAccess" | {
250
+ FunctionCall: {
251
+ receiver_id: string;
252
+ method_names: string[];
253
+ allowance?: string | null | undefined;
254
+ };
255
+ };
256
+ };
257
+ };
258
+ } | {
259
+ DeleteKey: {
260
+ public_key: string;
261
+ };
262
+ } | {
263
+ DeleteAccount: {
264
+ beneficiary_id: string;
265
+ };
266
+ } | {
267
+ UseGlobalContract: {
268
+ code_hash: string;
269
+ };
270
+ } | {
271
+ UseGlobalContractByAccountId: {
272
+ account_id: string;
273
+ };
274
+ } | {
275
+ Delegate: {
276
+ delegate_action: {
277
+ sender_id: string;
278
+ receiver_id: string;
279
+ actions: any[];
280
+ nonce: number;
281
+ max_block_height: number;
282
+ public_key: string;
283
+ };
284
+ signature: string;
285
+ };
286
+ } | {
287
+ DeterministicStateInit: {
288
+ deposit: string;
289
+ };
290
+ })[];
291
+ signature: string;
292
+ hash: string;
293
+ priority_fee?: number | undefined;
294
+ };
295
+ transaction_outcome: {
296
+ id: string;
297
+ outcome: {
298
+ logs: string[];
299
+ receipt_ids: string[];
300
+ gas_burnt: number;
301
+ tokens_burnt: string;
302
+ executor_id: string;
303
+ status: "Unknown" | "Pending" | {
304
+ SuccessValue: string;
305
+ } | {
306
+ SuccessReceiptId: string;
307
+ } | {
308
+ Failure: {
309
+ [x: string]: any;
310
+ error_message?: string | undefined;
311
+ error_type?: string | undefined;
312
+ };
313
+ };
314
+ metadata?: {
315
+ version: number;
316
+ gas_profile?: {
317
+ [x: string]: any;
318
+ cost?: string | undefined;
319
+ cost_category?: string | undefined;
320
+ gas_used?: string | undefined;
321
+ }[] | null | undefined;
322
+ } | undefined;
323
+ };
324
+ block_hash: string;
325
+ proof: {
326
+ hash: string;
327
+ direction: "Left" | "Right";
328
+ }[];
329
+ };
330
+ receipts_outcome: {
331
+ id: string;
332
+ outcome: {
333
+ logs: string[];
334
+ receipt_ids: string[];
335
+ gas_burnt: number;
336
+ tokens_burnt: string;
337
+ executor_id: string;
338
+ status: "Unknown" | "Pending" | {
339
+ SuccessValue: string;
340
+ } | {
341
+ SuccessReceiptId: string;
342
+ } | {
343
+ Failure: {
344
+ [x: string]: any;
345
+ error_message?: string | undefined;
346
+ error_type?: string | undefined;
347
+ };
348
+ };
349
+ metadata?: {
350
+ version: number;
351
+ gas_profile?: {
352
+ [x: string]: any;
353
+ cost?: string | undefined;
354
+ cost_category?: string | undefined;
355
+ gas_used?: string | undefined;
356
+ }[] | null | undefined;
357
+ } | undefined;
358
+ };
359
+ block_hash: string;
360
+ proof: {
361
+ hash: string;
362
+ direction: "Left" | "Right";
363
+ }[];
364
+ }[];
365
+ } | {
366
+ final_execution_status: "FINAL";
367
+ status: "Unknown" | "Pending" | {
368
+ SuccessValue: string;
369
+ } | {
370
+ SuccessReceiptId: string;
371
+ } | {
372
+ Failure: {
373
+ [x: string]: any;
374
+ error_message?: string | undefined;
375
+ error_type?: string | undefined;
376
+ };
377
+ };
378
+ transaction: {
379
+ signer_id: string;
380
+ public_key: string;
381
+ nonce: number;
382
+ receiver_id: string;
383
+ actions: ("CreateAccount" | {
384
+ CreateAccount: Record<string, never>;
385
+ } | {
386
+ Transfer: {
387
+ deposit: string;
388
+ };
389
+ } | {
390
+ FunctionCall: {
391
+ method_name: string;
392
+ args: string;
393
+ gas: number;
394
+ deposit: string;
395
+ };
396
+ } | {
397
+ DeployContract: {
398
+ code: string;
399
+ };
400
+ } | {
401
+ DeployGlobalContract: {
402
+ code: string;
403
+ };
404
+ } | {
405
+ DeployGlobalContractByAccountId: {
406
+ code: string;
407
+ };
408
+ } | {
409
+ Stake: {
410
+ stake: string;
411
+ public_key: string;
412
+ };
413
+ } | {
414
+ AddKey: {
415
+ public_key: string;
416
+ access_key: {
417
+ nonce: number;
418
+ permission: "FullAccess" | {
419
+ FunctionCall: {
420
+ receiver_id: string;
421
+ method_names: string[];
422
+ allowance?: string | null | undefined;
423
+ };
424
+ };
425
+ };
426
+ };
427
+ } | {
428
+ DeleteKey: {
429
+ public_key: string;
430
+ };
431
+ } | {
432
+ DeleteAccount: {
433
+ beneficiary_id: string;
434
+ };
435
+ } | {
436
+ UseGlobalContract: {
437
+ code_hash: string;
438
+ };
439
+ } | {
440
+ UseGlobalContractByAccountId: {
441
+ account_id: string;
442
+ };
443
+ } | {
444
+ Delegate: {
445
+ delegate_action: {
446
+ sender_id: string;
447
+ receiver_id: string;
448
+ actions: any[];
449
+ nonce: number;
450
+ max_block_height: number;
451
+ public_key: string;
452
+ };
453
+ signature: string;
454
+ };
455
+ } | {
456
+ DeterministicStateInit: {
457
+ deposit: string;
458
+ };
459
+ })[];
460
+ signature: string;
461
+ hash: string;
462
+ priority_fee?: number | undefined;
463
+ };
464
+ transaction_outcome: {
465
+ id: string;
466
+ outcome: {
467
+ logs: string[];
468
+ receipt_ids: string[];
469
+ gas_burnt: number;
470
+ tokens_burnt: string;
471
+ executor_id: string;
472
+ status: "Unknown" | "Pending" | {
473
+ SuccessValue: string;
474
+ } | {
475
+ SuccessReceiptId: string;
476
+ } | {
477
+ Failure: {
478
+ [x: string]: any;
479
+ error_message?: string | undefined;
480
+ error_type?: string | undefined;
481
+ };
482
+ };
483
+ metadata?: {
484
+ version: number;
485
+ gas_profile?: {
486
+ [x: string]: any;
487
+ cost?: string | undefined;
488
+ cost_category?: string | undefined;
489
+ gas_used?: string | undefined;
490
+ }[] | null | undefined;
491
+ } | undefined;
492
+ };
493
+ block_hash: string;
494
+ proof: {
495
+ hash: string;
496
+ direction: "Left" | "Right";
497
+ }[];
498
+ };
499
+ receipts_outcome: {
500
+ id: string;
501
+ outcome: {
502
+ logs: string[];
503
+ receipt_ids: string[];
504
+ gas_burnt: number;
505
+ tokens_burnt: string;
506
+ executor_id: string;
507
+ status: "Unknown" | "Pending" | {
508
+ SuccessValue: string;
509
+ } | {
510
+ SuccessReceiptId: string;
511
+ } | {
512
+ Failure: {
513
+ [x: string]: any;
514
+ error_message?: string | undefined;
515
+ error_type?: string | undefined;
516
+ };
517
+ };
518
+ metadata?: {
519
+ version: number;
520
+ gas_profile?: {
521
+ [x: string]: any;
522
+ cost?: string | undefined;
523
+ cost_category?: string | undefined;
524
+ gas_used?: string | undefined;
525
+ }[] | null | undefined;
526
+ } | undefined;
527
+ };
528
+ block_hash: string;
529
+ proof: {
530
+ hash: string;
531
+ direction: "Left" | "Right";
532
+ }[];
533
+ }[];
534
+ }>;
535
+ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: string, amount: string): Promise<{
536
+ final_execution_status: "NONE";
537
+ transaction?: {
538
+ hash: string;
539
+ signer_id: string;
540
+ receiver_id: string;
541
+ nonce: number;
542
+ } | undefined;
543
+ } | {
544
+ final_execution_status: "INCLUDED";
545
+ transaction?: {
546
+ hash: string;
547
+ signer_id: string;
548
+ receiver_id: string;
549
+ nonce: number;
550
+ } | undefined;
551
+ } | {
552
+ final_execution_status: "INCLUDED_FINAL";
553
+ transaction?: {
554
+ hash: string;
555
+ signer_id: string;
556
+ receiver_id: string;
557
+ nonce: number;
558
+ } | undefined;
559
+ } | {
560
+ final_execution_status: "EXECUTED_OPTIMISTIC";
561
+ status: "Unknown" | "Pending" | {
562
+ SuccessValue: string;
563
+ } | {
564
+ SuccessReceiptId: string;
565
+ } | {
566
+ Failure: {
567
+ [x: string]: any;
568
+ error_message?: string | undefined;
569
+ error_type?: string | undefined;
570
+ };
571
+ };
572
+ transaction: {
573
+ signer_id: string;
574
+ public_key: string;
575
+ nonce: number;
576
+ receiver_id: string;
577
+ actions: ("CreateAccount" | {
578
+ CreateAccount: Record<string, never>;
579
+ } | {
580
+ Transfer: {
581
+ deposit: string;
582
+ };
583
+ } | {
584
+ FunctionCall: {
585
+ method_name: string;
586
+ args: string;
587
+ gas: number;
588
+ deposit: string;
589
+ };
590
+ } | {
591
+ DeployContract: {
592
+ code: string;
593
+ };
594
+ } | {
595
+ DeployGlobalContract: {
596
+ code: string;
597
+ };
598
+ } | {
599
+ DeployGlobalContractByAccountId: {
600
+ code: string;
601
+ };
602
+ } | {
603
+ Stake: {
604
+ stake: string;
605
+ public_key: string;
606
+ };
607
+ } | {
608
+ AddKey: {
609
+ public_key: string;
610
+ access_key: {
611
+ nonce: number;
612
+ permission: "FullAccess" | {
613
+ FunctionCall: {
614
+ receiver_id: string;
615
+ method_names: string[];
616
+ allowance?: string | null | undefined;
617
+ };
618
+ };
619
+ };
620
+ };
621
+ } | {
622
+ DeleteKey: {
623
+ public_key: string;
624
+ };
625
+ } | {
626
+ DeleteAccount: {
627
+ beneficiary_id: string;
628
+ };
629
+ } | {
630
+ UseGlobalContract: {
631
+ code_hash: string;
632
+ };
633
+ } | {
634
+ UseGlobalContractByAccountId: {
635
+ account_id: string;
636
+ };
637
+ } | {
638
+ Delegate: {
639
+ delegate_action: {
640
+ sender_id: string;
641
+ receiver_id: string;
642
+ actions: any[];
643
+ nonce: number;
644
+ max_block_height: number;
645
+ public_key: string;
646
+ };
647
+ signature: string;
648
+ };
649
+ } | {
650
+ DeterministicStateInit: {
651
+ deposit: string;
652
+ };
653
+ })[];
654
+ signature: string;
655
+ hash: string;
656
+ priority_fee?: number | undefined;
657
+ };
658
+ transaction_outcome: {
659
+ id: string;
660
+ outcome: {
661
+ logs: string[];
662
+ receipt_ids: string[];
663
+ gas_burnt: number;
664
+ tokens_burnt: string;
665
+ executor_id: string;
666
+ status: "Unknown" | "Pending" | {
667
+ SuccessValue: string;
668
+ } | {
669
+ SuccessReceiptId: string;
670
+ } | {
671
+ Failure: {
672
+ [x: string]: any;
673
+ error_message?: string | undefined;
674
+ error_type?: string | undefined;
675
+ };
676
+ };
677
+ metadata?: {
678
+ version: number;
679
+ gas_profile?: {
680
+ [x: string]: any;
681
+ cost?: string | undefined;
682
+ cost_category?: string | undefined;
683
+ gas_used?: string | undefined;
684
+ }[] | null | undefined;
685
+ } | undefined;
686
+ };
687
+ block_hash: string;
688
+ proof: {
689
+ hash: string;
690
+ direction: "Left" | "Right";
691
+ }[];
692
+ };
693
+ receipts_outcome: {
694
+ id: string;
695
+ outcome: {
696
+ logs: string[];
697
+ receipt_ids: string[];
698
+ gas_burnt: number;
699
+ tokens_burnt: string;
700
+ executor_id: string;
701
+ status: "Unknown" | "Pending" | {
702
+ SuccessValue: string;
703
+ } | {
704
+ SuccessReceiptId: string;
705
+ } | {
706
+ Failure: {
707
+ [x: string]: any;
708
+ error_message?: string | undefined;
709
+ error_type?: string | undefined;
710
+ };
711
+ };
712
+ metadata?: {
713
+ version: number;
714
+ gas_profile?: {
715
+ [x: string]: any;
716
+ cost?: string | undefined;
717
+ cost_category?: string | undefined;
718
+ gas_used?: string | undefined;
719
+ }[] | null | undefined;
720
+ } | undefined;
721
+ };
722
+ block_hash: string;
723
+ proof: {
724
+ hash: string;
725
+ direction: "Left" | "Right";
726
+ }[];
727
+ }[];
728
+ } | {
729
+ final_execution_status: "EXECUTED";
730
+ status: "Unknown" | "Pending" | {
731
+ SuccessValue: string;
732
+ } | {
733
+ SuccessReceiptId: string;
734
+ } | {
735
+ Failure: {
736
+ [x: string]: any;
737
+ error_message?: string | undefined;
738
+ error_type?: string | undefined;
739
+ };
740
+ };
741
+ transaction: {
742
+ signer_id: string;
743
+ public_key: string;
744
+ nonce: number;
745
+ receiver_id: string;
746
+ actions: ("CreateAccount" | {
747
+ CreateAccount: Record<string, never>;
748
+ } | {
749
+ Transfer: {
750
+ deposit: string;
751
+ };
752
+ } | {
753
+ FunctionCall: {
754
+ method_name: string;
755
+ args: string;
756
+ gas: number;
757
+ deposit: string;
758
+ };
759
+ } | {
760
+ DeployContract: {
761
+ code: string;
762
+ };
763
+ } | {
764
+ DeployGlobalContract: {
765
+ code: string;
766
+ };
767
+ } | {
768
+ DeployGlobalContractByAccountId: {
769
+ code: string;
770
+ };
771
+ } | {
772
+ Stake: {
773
+ stake: string;
774
+ public_key: string;
775
+ };
776
+ } | {
777
+ AddKey: {
778
+ public_key: string;
779
+ access_key: {
780
+ nonce: number;
781
+ permission: "FullAccess" | {
782
+ FunctionCall: {
783
+ receiver_id: string;
784
+ method_names: string[];
785
+ allowance?: string | null | undefined;
786
+ };
787
+ };
788
+ };
789
+ };
790
+ } | {
791
+ DeleteKey: {
792
+ public_key: string;
793
+ };
794
+ } | {
795
+ DeleteAccount: {
796
+ beneficiary_id: string;
797
+ };
798
+ } | {
799
+ UseGlobalContract: {
800
+ code_hash: string;
801
+ };
802
+ } | {
803
+ UseGlobalContractByAccountId: {
804
+ account_id: string;
805
+ };
806
+ } | {
807
+ Delegate: {
808
+ delegate_action: {
809
+ sender_id: string;
810
+ receiver_id: string;
811
+ actions: any[];
812
+ nonce: number;
813
+ max_block_height: number;
814
+ public_key: string;
815
+ };
816
+ signature: string;
817
+ };
818
+ } | {
819
+ DeterministicStateInit: {
820
+ deposit: string;
821
+ };
822
+ })[];
823
+ signature: string;
824
+ hash: string;
825
+ priority_fee?: number | undefined;
826
+ };
827
+ transaction_outcome: {
828
+ id: string;
829
+ outcome: {
830
+ logs: string[];
831
+ receipt_ids: string[];
832
+ gas_burnt: number;
833
+ tokens_burnt: string;
834
+ executor_id: string;
835
+ status: "Unknown" | "Pending" | {
836
+ SuccessValue: string;
837
+ } | {
838
+ SuccessReceiptId: string;
839
+ } | {
840
+ Failure: {
841
+ [x: string]: any;
842
+ error_message?: string | undefined;
843
+ error_type?: string | undefined;
844
+ };
845
+ };
846
+ metadata?: {
847
+ version: number;
848
+ gas_profile?: {
849
+ [x: string]: any;
850
+ cost?: string | undefined;
851
+ cost_category?: string | undefined;
852
+ gas_used?: string | undefined;
853
+ }[] | null | undefined;
854
+ } | undefined;
855
+ };
856
+ block_hash: string;
857
+ proof: {
858
+ hash: string;
859
+ direction: "Left" | "Right";
860
+ }[];
861
+ };
862
+ receipts_outcome: {
863
+ id: string;
864
+ outcome: {
865
+ logs: string[];
866
+ receipt_ids: string[];
867
+ gas_burnt: number;
868
+ tokens_burnt: string;
869
+ executor_id: string;
870
+ status: "Unknown" | "Pending" | {
871
+ SuccessValue: string;
872
+ } | {
873
+ SuccessReceiptId: string;
874
+ } | {
875
+ Failure: {
876
+ [x: string]: any;
877
+ error_message?: string | undefined;
878
+ error_type?: string | undefined;
879
+ };
880
+ };
881
+ metadata?: {
882
+ version: number;
883
+ gas_profile?: {
884
+ [x: string]: any;
885
+ cost?: string | undefined;
886
+ cost_category?: string | undefined;
887
+ gas_used?: string | undefined;
888
+ }[] | null | undefined;
889
+ } | undefined;
890
+ };
891
+ block_hash: string;
892
+ proof: {
893
+ hash: string;
894
+ direction: "Left" | "Right";
895
+ }[];
896
+ }[];
897
+ } | {
898
+ final_execution_status: "FINAL";
899
+ status: "Unknown" | "Pending" | {
900
+ SuccessValue: string;
901
+ } | {
902
+ SuccessReceiptId: string;
903
+ } | {
904
+ Failure: {
905
+ [x: string]: any;
906
+ error_message?: string | undefined;
907
+ error_type?: string | undefined;
908
+ };
909
+ };
910
+ transaction: {
911
+ signer_id: string;
912
+ public_key: string;
913
+ nonce: number;
914
+ receiver_id: string;
915
+ actions: ("CreateAccount" | {
916
+ CreateAccount: Record<string, never>;
917
+ } | {
918
+ Transfer: {
919
+ deposit: string;
920
+ };
921
+ } | {
922
+ FunctionCall: {
923
+ method_name: string;
924
+ args: string;
925
+ gas: number;
926
+ deposit: string;
927
+ };
928
+ } | {
929
+ DeployContract: {
930
+ code: string;
931
+ };
932
+ } | {
933
+ DeployGlobalContract: {
934
+ code: string;
935
+ };
936
+ } | {
937
+ DeployGlobalContractByAccountId: {
938
+ code: string;
939
+ };
940
+ } | {
941
+ Stake: {
942
+ stake: string;
943
+ public_key: string;
944
+ };
945
+ } | {
946
+ AddKey: {
947
+ public_key: string;
948
+ access_key: {
949
+ nonce: number;
950
+ permission: "FullAccess" | {
951
+ FunctionCall: {
952
+ receiver_id: string;
953
+ method_names: string[];
954
+ allowance?: string | null | undefined;
955
+ };
956
+ };
957
+ };
958
+ };
959
+ } | {
960
+ DeleteKey: {
961
+ public_key: string;
962
+ };
963
+ } | {
964
+ DeleteAccount: {
965
+ beneficiary_id: string;
966
+ };
967
+ } | {
968
+ UseGlobalContract: {
969
+ code_hash: string;
970
+ };
971
+ } | {
972
+ UseGlobalContractByAccountId: {
973
+ account_id: string;
974
+ };
975
+ } | {
976
+ Delegate: {
977
+ delegate_action: {
978
+ sender_id: string;
979
+ receiver_id: string;
980
+ actions: any[];
981
+ nonce: number;
982
+ max_block_height: number;
983
+ public_key: string;
984
+ };
985
+ signature: string;
986
+ };
987
+ } | {
988
+ DeterministicStateInit: {
989
+ deposit: string;
990
+ };
991
+ })[];
992
+ signature: string;
993
+ hash: string;
994
+ priority_fee?: number | undefined;
995
+ };
996
+ transaction_outcome: {
997
+ id: string;
998
+ outcome: {
999
+ logs: string[];
1000
+ receipt_ids: string[];
1001
+ gas_burnt: number;
1002
+ tokens_burnt: string;
1003
+ executor_id: string;
1004
+ status: "Unknown" | "Pending" | {
1005
+ SuccessValue: string;
1006
+ } | {
1007
+ SuccessReceiptId: string;
1008
+ } | {
1009
+ Failure: {
1010
+ [x: string]: any;
1011
+ error_message?: string | undefined;
1012
+ error_type?: string | undefined;
1013
+ };
1014
+ };
1015
+ metadata?: {
1016
+ version: number;
1017
+ gas_profile?: {
1018
+ [x: string]: any;
1019
+ cost?: string | undefined;
1020
+ cost_category?: string | undefined;
1021
+ gas_used?: string | undefined;
1022
+ }[] | null | undefined;
1023
+ } | undefined;
1024
+ };
1025
+ block_hash: string;
1026
+ proof: {
1027
+ hash: string;
1028
+ direction: "Left" | "Right";
1029
+ }[];
1030
+ };
1031
+ receipts_outcome: {
1032
+ id: string;
1033
+ outcome: {
1034
+ logs: string[];
1035
+ receipt_ids: string[];
1036
+ gas_burnt: number;
1037
+ tokens_burnt: string;
1038
+ executor_id: string;
1039
+ status: "Unknown" | "Pending" | {
1040
+ SuccessValue: string;
1041
+ } | {
1042
+ SuccessReceiptId: string;
1043
+ } | {
1044
+ Failure: {
1045
+ [x: string]: any;
1046
+ error_message?: string | undefined;
1047
+ error_type?: string | undefined;
1048
+ };
1049
+ };
1050
+ metadata?: {
1051
+ version: number;
1052
+ gas_profile?: {
1053
+ [x: string]: any;
1054
+ cost?: string | undefined;
1055
+ cost_category?: string | undefined;
1056
+ gas_used?: string | undefined;
1057
+ }[] | null | undefined;
1058
+ } | undefined;
1059
+ };
1060
+ block_hash: string;
1061
+ proof: {
1062
+ hash: string;
1063
+ direction: "Left" | "Right";
1064
+ }[];
1065
+ }[];
1066
+ }>;
1067
+ //# sourceMappingURL=wrap_near.d.ts.map