@near-kit-tool-box/fun 0.1.4 → 0.1.7

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.
@@ -8,6 +8,133 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
8
8
  receiver_id: string;
9
9
  nonce: number;
10
10
  } | undefined;
11
+ status?: "Pending" | "Unknown" | {
12
+ SuccessValue: string;
13
+ } | {
14
+ SuccessReceiptId: string;
15
+ } | {
16
+ Failure: {
17
+ [x: string]: any;
18
+ error_message?: string | undefined;
19
+ error_type?: string | undefined;
20
+ };
21
+ } | undefined;
22
+ transaction_outcome?: {
23
+ id: string;
24
+ outcome: {
25
+ logs: string[];
26
+ receipt_ids: string[];
27
+ gas_burnt: number;
28
+ tokens_burnt: string;
29
+ executor_id: string;
30
+ status: "Pending" | "Unknown" | {
31
+ SuccessValue: string;
32
+ } | {
33
+ SuccessReceiptId: string;
34
+ } | {
35
+ Failure: {
36
+ [x: string]: any;
37
+ error_message?: string | undefined;
38
+ error_type?: string | undefined;
39
+ };
40
+ };
41
+ metadata?: {
42
+ gas_profile?: {
43
+ [x: string]: any;
44
+ cost?: string | undefined;
45
+ cost_category?: string | undefined;
46
+ gas_used?: string | undefined;
47
+ }[] | null | undefined;
48
+ version: 4;
49
+ contracts?: ({
50
+ local: string;
51
+ } | {
52
+ global_hash: string;
53
+ } | {
54
+ global_account_id: string;
55
+ } | null)[] | null | undefined;
56
+ } | {
57
+ gas_profile?: {
58
+ [x: string]: any;
59
+ cost?: string | undefined;
60
+ cost_category?: string | undefined;
61
+ gas_used?: string | undefined;
62
+ }[] | null | undefined;
63
+ version: 1 | 2 | 3;
64
+ } | {
65
+ gas_profile?: {
66
+ [x: string]: any;
67
+ cost?: string | undefined;
68
+ cost_category?: string | undefined;
69
+ gas_used?: string | undefined;
70
+ }[] | null | undefined;
71
+ version: number;
72
+ } | undefined;
73
+ };
74
+ block_hash: string;
75
+ proof: {
76
+ hash: string;
77
+ direction: "Left" | "Right";
78
+ }[];
79
+ } | undefined;
80
+ receipts_outcome?: {
81
+ id: string;
82
+ outcome: {
83
+ logs: string[];
84
+ receipt_ids: string[];
85
+ gas_burnt: number;
86
+ tokens_burnt: string;
87
+ executor_id: string;
88
+ status: "Pending" | "Unknown" | {
89
+ SuccessValue: string;
90
+ } | {
91
+ SuccessReceiptId: string;
92
+ } | {
93
+ Failure: {
94
+ [x: string]: any;
95
+ error_message?: string | undefined;
96
+ error_type?: string | undefined;
97
+ };
98
+ };
99
+ metadata?: {
100
+ gas_profile?: {
101
+ [x: string]: any;
102
+ cost?: string | undefined;
103
+ cost_category?: string | undefined;
104
+ gas_used?: string | undefined;
105
+ }[] | null | undefined;
106
+ version: 4;
107
+ contracts?: ({
108
+ local: string;
109
+ } | {
110
+ global_hash: string;
111
+ } | {
112
+ global_account_id: string;
113
+ } | null)[] | null | undefined;
114
+ } | {
115
+ gas_profile?: {
116
+ [x: string]: any;
117
+ cost?: string | undefined;
118
+ cost_category?: string | undefined;
119
+ gas_used?: string | undefined;
120
+ }[] | null | undefined;
121
+ version: 1 | 2 | 3;
122
+ } | {
123
+ gas_profile?: {
124
+ [x: string]: any;
125
+ cost?: string | undefined;
126
+ cost_category?: string | undefined;
127
+ gas_used?: string | undefined;
128
+ }[] | null | undefined;
129
+ version: number;
130
+ } | undefined;
131
+ };
132
+ block_hash: string;
133
+ proof: {
134
+ hash: string;
135
+ direction: "Left" | "Right";
136
+ }[];
137
+ }[] | undefined;
11
138
  } | {
12
139
  final_execution_status: "INCLUDED";
13
140
  transaction?: {
@@ -16,17 +143,795 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
16
143
  receiver_id: string;
17
144
  nonce: number;
18
145
  } | undefined;
146
+ status?: "Pending" | "Unknown" | {
147
+ SuccessValue: string;
148
+ } | {
149
+ SuccessReceiptId: string;
150
+ } | {
151
+ Failure: {
152
+ [x: string]: any;
153
+ error_message?: string | undefined;
154
+ error_type?: string | undefined;
155
+ };
156
+ } | undefined;
157
+ transaction_outcome?: {
158
+ id: string;
159
+ outcome: {
160
+ logs: string[];
161
+ receipt_ids: string[];
162
+ gas_burnt: number;
163
+ tokens_burnt: string;
164
+ executor_id: string;
165
+ status: "Pending" | "Unknown" | {
166
+ SuccessValue: string;
167
+ } | {
168
+ SuccessReceiptId: string;
169
+ } | {
170
+ Failure: {
171
+ [x: string]: any;
172
+ error_message?: string | undefined;
173
+ error_type?: string | undefined;
174
+ };
175
+ };
176
+ metadata?: {
177
+ gas_profile?: {
178
+ [x: string]: any;
179
+ cost?: string | undefined;
180
+ cost_category?: string | undefined;
181
+ gas_used?: string | undefined;
182
+ }[] | null | undefined;
183
+ version: 4;
184
+ contracts?: ({
185
+ local: string;
186
+ } | {
187
+ global_hash: string;
188
+ } | {
189
+ global_account_id: string;
190
+ } | null)[] | null | undefined;
191
+ } | {
192
+ gas_profile?: {
193
+ [x: string]: any;
194
+ cost?: string | undefined;
195
+ cost_category?: string | undefined;
196
+ gas_used?: string | undefined;
197
+ }[] | null | undefined;
198
+ version: 1 | 2 | 3;
199
+ } | {
200
+ gas_profile?: {
201
+ [x: string]: any;
202
+ cost?: string | undefined;
203
+ cost_category?: string | undefined;
204
+ gas_used?: string | undefined;
205
+ }[] | null | undefined;
206
+ version: number;
207
+ } | undefined;
208
+ };
209
+ block_hash: string;
210
+ proof: {
211
+ hash: string;
212
+ direction: "Left" | "Right";
213
+ }[];
214
+ } | undefined;
215
+ receipts_outcome?: {
216
+ id: string;
217
+ outcome: {
218
+ logs: string[];
219
+ receipt_ids: string[];
220
+ gas_burnt: number;
221
+ tokens_burnt: string;
222
+ executor_id: string;
223
+ status: "Pending" | "Unknown" | {
224
+ SuccessValue: string;
225
+ } | {
226
+ SuccessReceiptId: string;
227
+ } | {
228
+ Failure: {
229
+ [x: string]: any;
230
+ error_message?: string | undefined;
231
+ error_type?: string | undefined;
232
+ };
233
+ };
234
+ metadata?: {
235
+ gas_profile?: {
236
+ [x: string]: any;
237
+ cost?: string | undefined;
238
+ cost_category?: string | undefined;
239
+ gas_used?: string | undefined;
240
+ }[] | null | undefined;
241
+ version: 4;
242
+ contracts?: ({
243
+ local: string;
244
+ } | {
245
+ global_hash: string;
246
+ } | {
247
+ global_account_id: string;
248
+ } | null)[] | null | undefined;
249
+ } | {
250
+ gas_profile?: {
251
+ [x: string]: any;
252
+ cost?: string | undefined;
253
+ cost_category?: string | undefined;
254
+ gas_used?: string | undefined;
255
+ }[] | null | undefined;
256
+ version: 1 | 2 | 3;
257
+ } | {
258
+ gas_profile?: {
259
+ [x: string]: any;
260
+ cost?: string | undefined;
261
+ cost_category?: string | undefined;
262
+ gas_used?: string | undefined;
263
+ }[] | null | undefined;
264
+ version: number;
265
+ } | undefined;
266
+ };
267
+ block_hash: string;
268
+ proof: {
269
+ hash: string;
270
+ direction: "Left" | "Right";
271
+ }[];
272
+ }[] | undefined;
19
273
  } | {
20
274
  final_execution_status: "INCLUDED_FINAL";
21
275
  transaction?: {
22
276
  hash: string;
23
- signer_id: string;
24
- receiver_id: string;
25
- nonce: number;
26
- } | undefined;
277
+ signer_id: string;
278
+ receiver_id: string;
279
+ nonce: number;
280
+ } | undefined;
281
+ status?: "Pending" | "Unknown" | {
282
+ SuccessValue: string;
283
+ } | {
284
+ SuccessReceiptId: string;
285
+ } | {
286
+ Failure: {
287
+ [x: string]: any;
288
+ error_message?: string | undefined;
289
+ error_type?: string | undefined;
290
+ };
291
+ } | undefined;
292
+ transaction_outcome?: {
293
+ id: string;
294
+ outcome: {
295
+ logs: string[];
296
+ receipt_ids: string[];
297
+ gas_burnt: number;
298
+ tokens_burnt: string;
299
+ executor_id: string;
300
+ status: "Pending" | "Unknown" | {
301
+ SuccessValue: string;
302
+ } | {
303
+ SuccessReceiptId: string;
304
+ } | {
305
+ Failure: {
306
+ [x: string]: any;
307
+ error_message?: string | undefined;
308
+ error_type?: string | undefined;
309
+ };
310
+ };
311
+ metadata?: {
312
+ gas_profile?: {
313
+ [x: string]: any;
314
+ cost?: string | undefined;
315
+ cost_category?: string | undefined;
316
+ gas_used?: string | undefined;
317
+ }[] | null | undefined;
318
+ version: 4;
319
+ contracts?: ({
320
+ local: string;
321
+ } | {
322
+ global_hash: string;
323
+ } | {
324
+ global_account_id: string;
325
+ } | null)[] | null | undefined;
326
+ } | {
327
+ gas_profile?: {
328
+ [x: string]: any;
329
+ cost?: string | undefined;
330
+ cost_category?: string | undefined;
331
+ gas_used?: string | undefined;
332
+ }[] | null | undefined;
333
+ version: 1 | 2 | 3;
334
+ } | {
335
+ gas_profile?: {
336
+ [x: string]: any;
337
+ cost?: string | undefined;
338
+ cost_category?: string | undefined;
339
+ gas_used?: string | undefined;
340
+ }[] | null | undefined;
341
+ version: number;
342
+ } | undefined;
343
+ };
344
+ block_hash: string;
345
+ proof: {
346
+ hash: string;
347
+ direction: "Left" | "Right";
348
+ }[];
349
+ } | undefined;
350
+ receipts_outcome?: {
351
+ id: string;
352
+ outcome: {
353
+ logs: string[];
354
+ receipt_ids: string[];
355
+ gas_burnt: number;
356
+ tokens_burnt: string;
357
+ executor_id: string;
358
+ status: "Pending" | "Unknown" | {
359
+ SuccessValue: string;
360
+ } | {
361
+ SuccessReceiptId: string;
362
+ } | {
363
+ Failure: {
364
+ [x: string]: any;
365
+ error_message?: string | undefined;
366
+ error_type?: string | undefined;
367
+ };
368
+ };
369
+ metadata?: {
370
+ gas_profile?: {
371
+ [x: string]: any;
372
+ cost?: string | undefined;
373
+ cost_category?: string | undefined;
374
+ gas_used?: string | undefined;
375
+ }[] | null | undefined;
376
+ version: 4;
377
+ contracts?: ({
378
+ local: string;
379
+ } | {
380
+ global_hash: string;
381
+ } | {
382
+ global_account_id: string;
383
+ } | null)[] | null | undefined;
384
+ } | {
385
+ gas_profile?: {
386
+ [x: string]: any;
387
+ cost?: string | undefined;
388
+ cost_category?: string | undefined;
389
+ gas_used?: string | undefined;
390
+ }[] | null | undefined;
391
+ version: 1 | 2 | 3;
392
+ } | {
393
+ gas_profile?: {
394
+ [x: string]: any;
395
+ cost?: string | undefined;
396
+ cost_category?: string | undefined;
397
+ gas_used?: string | undefined;
398
+ }[] | null | undefined;
399
+ version: number;
400
+ } | undefined;
401
+ };
402
+ block_hash: string;
403
+ proof: {
404
+ hash: string;
405
+ direction: "Left" | "Right";
406
+ }[];
407
+ }[] | undefined;
408
+ } | {
409
+ final_execution_status: "EXECUTED_OPTIMISTIC";
410
+ status: "Pending" | "Unknown" | {
411
+ SuccessValue: string;
412
+ } | {
413
+ SuccessReceiptId: string;
414
+ } | {
415
+ Failure: {
416
+ [x: string]: any;
417
+ error_message?: string | undefined;
418
+ error_type?: string | undefined;
419
+ };
420
+ };
421
+ transaction: {
422
+ signer_id: string;
423
+ public_key: string;
424
+ nonce: number;
425
+ receiver_id: string;
426
+ actions: ("CreateAccount" | {
427
+ CreateAccount: Record<string, never>;
428
+ } | {
429
+ Transfer: {
430
+ deposit: string;
431
+ };
432
+ } | {
433
+ FunctionCall: {
434
+ method_name: string;
435
+ args: string;
436
+ gas: number;
437
+ deposit: string;
438
+ };
439
+ } | {
440
+ DeployContract: {
441
+ code: string;
442
+ };
443
+ } | {
444
+ DeployGlobalContract: {
445
+ code: string;
446
+ };
447
+ } | {
448
+ DeployGlobalContractByAccountId: {
449
+ code: string;
450
+ };
451
+ } | {
452
+ Stake: {
453
+ stake: string;
454
+ public_key: string;
455
+ };
456
+ } | {
457
+ AddKey: {
458
+ public_key: string;
459
+ access_key: {
460
+ nonce: number;
461
+ permission: "FullAccess" | {
462
+ FunctionCall: {
463
+ receiver_id: string;
464
+ method_names: string[];
465
+ allowance?: string | null | undefined;
466
+ };
467
+ } | {
468
+ GasKeyFunctionCall: {
469
+ balance: string;
470
+ num_nonces: number;
471
+ receiver_id: string;
472
+ method_names: string[];
473
+ allowance?: string | null | undefined;
474
+ };
475
+ } | {
476
+ GasKeyFullAccess: {
477
+ balance: string;
478
+ num_nonces: number;
479
+ };
480
+ };
481
+ };
482
+ };
483
+ } | {
484
+ DeleteKey: {
485
+ public_key: string;
486
+ };
487
+ } | {
488
+ DeleteAccount: {
489
+ beneficiary_id: string;
490
+ };
491
+ } | {
492
+ UseGlobalContract: {
493
+ code_hash: string;
494
+ };
495
+ } | {
496
+ UseGlobalContractByAccountId: {
497
+ account_id: string;
498
+ };
499
+ } | {
500
+ Delegate: {
501
+ delegate_action: {
502
+ sender_id: string;
503
+ receiver_id: string;
504
+ actions: any[];
505
+ nonce: number;
506
+ max_block_height: number;
507
+ public_key: string;
508
+ };
509
+ signature: string;
510
+ };
511
+ } | {
512
+ DeterministicStateInit: {
513
+ deposit: string;
514
+ };
515
+ } | {
516
+ TransferToGasKey: {
517
+ public_key: string;
518
+ deposit: string;
519
+ };
520
+ } | {
521
+ WithdrawFromGasKey: {
522
+ public_key: string;
523
+ amount: string;
524
+ };
525
+ } | {
526
+ DelegateV2: {
527
+ delegate_action: {
528
+ V2: {
529
+ sender_id: string;
530
+ receiver_id: string;
531
+ actions: any[];
532
+ nonce: {
533
+ Nonce: {
534
+ nonce: number;
535
+ };
536
+ } | {
537
+ GasKeyNonce: {
538
+ nonce: number;
539
+ nonce_index: number;
540
+ };
541
+ };
542
+ max_block_height: number;
543
+ public_key: string;
544
+ };
545
+ };
546
+ signature: string;
547
+ };
548
+ })[];
549
+ signature: string;
550
+ hash: string;
551
+ priority_fee?: number | undefined;
552
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
553
+ };
554
+ transaction_outcome: {
555
+ id: string;
556
+ outcome: {
557
+ logs: string[];
558
+ receipt_ids: string[];
559
+ gas_burnt: number;
560
+ tokens_burnt: string;
561
+ executor_id: string;
562
+ status: "Pending" | "Unknown" | {
563
+ SuccessValue: string;
564
+ } | {
565
+ SuccessReceiptId: string;
566
+ } | {
567
+ Failure: {
568
+ [x: string]: any;
569
+ error_message?: string | undefined;
570
+ error_type?: string | undefined;
571
+ };
572
+ };
573
+ metadata?: {
574
+ gas_profile?: {
575
+ [x: string]: any;
576
+ cost?: string | undefined;
577
+ cost_category?: string | undefined;
578
+ gas_used?: string | undefined;
579
+ }[] | null | undefined;
580
+ version: 4;
581
+ contracts?: ({
582
+ local: string;
583
+ } | {
584
+ global_hash: string;
585
+ } | {
586
+ global_account_id: string;
587
+ } | null)[] | null | undefined;
588
+ } | {
589
+ gas_profile?: {
590
+ [x: string]: any;
591
+ cost?: string | undefined;
592
+ cost_category?: string | undefined;
593
+ gas_used?: string | undefined;
594
+ }[] | null | undefined;
595
+ version: 1 | 2 | 3;
596
+ } | {
597
+ gas_profile?: {
598
+ [x: string]: any;
599
+ cost?: string | undefined;
600
+ cost_category?: string | undefined;
601
+ gas_used?: string | undefined;
602
+ }[] | null | undefined;
603
+ version: number;
604
+ } | undefined;
605
+ };
606
+ block_hash: string;
607
+ proof: {
608
+ hash: string;
609
+ direction: "Left" | "Right";
610
+ }[];
611
+ };
612
+ receipts_outcome: {
613
+ id: string;
614
+ outcome: {
615
+ logs: string[];
616
+ receipt_ids: string[];
617
+ gas_burnt: number;
618
+ tokens_burnt: string;
619
+ executor_id: string;
620
+ status: "Pending" | "Unknown" | {
621
+ SuccessValue: string;
622
+ } | {
623
+ SuccessReceiptId: string;
624
+ } | {
625
+ Failure: {
626
+ [x: string]: any;
627
+ error_message?: string | undefined;
628
+ error_type?: string | undefined;
629
+ };
630
+ };
631
+ metadata?: {
632
+ gas_profile?: {
633
+ [x: string]: any;
634
+ cost?: string | undefined;
635
+ cost_category?: string | undefined;
636
+ gas_used?: string | undefined;
637
+ }[] | null | undefined;
638
+ version: 4;
639
+ contracts?: ({
640
+ local: string;
641
+ } | {
642
+ global_hash: string;
643
+ } | {
644
+ global_account_id: string;
645
+ } | null)[] | null | undefined;
646
+ } | {
647
+ gas_profile?: {
648
+ [x: string]: any;
649
+ cost?: string | undefined;
650
+ cost_category?: string | undefined;
651
+ gas_used?: string | undefined;
652
+ }[] | null | undefined;
653
+ version: 1 | 2 | 3;
654
+ } | {
655
+ gas_profile?: {
656
+ [x: string]: any;
657
+ cost?: string | undefined;
658
+ cost_category?: string | undefined;
659
+ gas_used?: string | undefined;
660
+ }[] | null | undefined;
661
+ version: number;
662
+ } | undefined;
663
+ };
664
+ block_hash: string;
665
+ proof: {
666
+ hash: string;
667
+ direction: "Left" | "Right";
668
+ }[];
669
+ }[];
670
+ } | {
671
+ final_execution_status: "EXECUTED";
672
+ status: "Pending" | "Unknown" | {
673
+ SuccessValue: string;
674
+ } | {
675
+ SuccessReceiptId: string;
676
+ } | {
677
+ Failure: {
678
+ [x: string]: any;
679
+ error_message?: string | undefined;
680
+ error_type?: string | undefined;
681
+ };
682
+ };
683
+ transaction: {
684
+ signer_id: string;
685
+ public_key: string;
686
+ nonce: number;
687
+ receiver_id: string;
688
+ actions: ("CreateAccount" | {
689
+ CreateAccount: Record<string, never>;
690
+ } | {
691
+ Transfer: {
692
+ deposit: string;
693
+ };
694
+ } | {
695
+ FunctionCall: {
696
+ method_name: string;
697
+ args: string;
698
+ gas: number;
699
+ deposit: string;
700
+ };
701
+ } | {
702
+ DeployContract: {
703
+ code: string;
704
+ };
705
+ } | {
706
+ DeployGlobalContract: {
707
+ code: string;
708
+ };
709
+ } | {
710
+ DeployGlobalContractByAccountId: {
711
+ code: string;
712
+ };
713
+ } | {
714
+ Stake: {
715
+ stake: string;
716
+ public_key: string;
717
+ };
718
+ } | {
719
+ AddKey: {
720
+ public_key: string;
721
+ access_key: {
722
+ nonce: number;
723
+ permission: "FullAccess" | {
724
+ FunctionCall: {
725
+ receiver_id: string;
726
+ method_names: string[];
727
+ allowance?: string | null | undefined;
728
+ };
729
+ } | {
730
+ GasKeyFunctionCall: {
731
+ balance: string;
732
+ num_nonces: number;
733
+ receiver_id: string;
734
+ method_names: string[];
735
+ allowance?: string | null | undefined;
736
+ };
737
+ } | {
738
+ GasKeyFullAccess: {
739
+ balance: string;
740
+ num_nonces: number;
741
+ };
742
+ };
743
+ };
744
+ };
745
+ } | {
746
+ DeleteKey: {
747
+ public_key: string;
748
+ };
749
+ } | {
750
+ DeleteAccount: {
751
+ beneficiary_id: string;
752
+ };
753
+ } | {
754
+ UseGlobalContract: {
755
+ code_hash: string;
756
+ };
757
+ } | {
758
+ UseGlobalContractByAccountId: {
759
+ account_id: string;
760
+ };
761
+ } | {
762
+ Delegate: {
763
+ delegate_action: {
764
+ sender_id: string;
765
+ receiver_id: string;
766
+ actions: any[];
767
+ nonce: number;
768
+ max_block_height: number;
769
+ public_key: string;
770
+ };
771
+ signature: string;
772
+ };
773
+ } | {
774
+ DeterministicStateInit: {
775
+ deposit: string;
776
+ };
777
+ } | {
778
+ TransferToGasKey: {
779
+ public_key: string;
780
+ deposit: string;
781
+ };
782
+ } | {
783
+ WithdrawFromGasKey: {
784
+ public_key: string;
785
+ amount: string;
786
+ };
787
+ } | {
788
+ DelegateV2: {
789
+ delegate_action: {
790
+ V2: {
791
+ sender_id: string;
792
+ receiver_id: string;
793
+ actions: any[];
794
+ nonce: {
795
+ Nonce: {
796
+ nonce: number;
797
+ };
798
+ } | {
799
+ GasKeyNonce: {
800
+ nonce: number;
801
+ nonce_index: number;
802
+ };
803
+ };
804
+ max_block_height: number;
805
+ public_key: string;
806
+ };
807
+ };
808
+ signature: string;
809
+ };
810
+ })[];
811
+ signature: string;
812
+ hash: string;
813
+ priority_fee?: number | undefined;
814
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
815
+ };
816
+ transaction_outcome: {
817
+ id: string;
818
+ outcome: {
819
+ logs: string[];
820
+ receipt_ids: string[];
821
+ gas_burnt: number;
822
+ tokens_burnt: string;
823
+ executor_id: string;
824
+ status: "Pending" | "Unknown" | {
825
+ SuccessValue: string;
826
+ } | {
827
+ SuccessReceiptId: string;
828
+ } | {
829
+ Failure: {
830
+ [x: string]: any;
831
+ error_message?: string | undefined;
832
+ error_type?: string | undefined;
833
+ };
834
+ };
835
+ metadata?: {
836
+ gas_profile?: {
837
+ [x: string]: any;
838
+ cost?: string | undefined;
839
+ cost_category?: string | undefined;
840
+ gas_used?: string | undefined;
841
+ }[] | null | undefined;
842
+ version: 4;
843
+ contracts?: ({
844
+ local: string;
845
+ } | {
846
+ global_hash: string;
847
+ } | {
848
+ global_account_id: string;
849
+ } | null)[] | null | undefined;
850
+ } | {
851
+ gas_profile?: {
852
+ [x: string]: any;
853
+ cost?: string | undefined;
854
+ cost_category?: string | undefined;
855
+ gas_used?: string | undefined;
856
+ }[] | null | undefined;
857
+ version: 1 | 2 | 3;
858
+ } | {
859
+ gas_profile?: {
860
+ [x: string]: any;
861
+ cost?: string | undefined;
862
+ cost_category?: string | undefined;
863
+ gas_used?: string | undefined;
864
+ }[] | null | undefined;
865
+ version: number;
866
+ } | undefined;
867
+ };
868
+ block_hash: string;
869
+ proof: {
870
+ hash: string;
871
+ direction: "Left" | "Right";
872
+ }[];
873
+ };
874
+ receipts_outcome: {
875
+ id: string;
876
+ outcome: {
877
+ logs: string[];
878
+ receipt_ids: string[];
879
+ gas_burnt: number;
880
+ tokens_burnt: string;
881
+ executor_id: string;
882
+ status: "Pending" | "Unknown" | {
883
+ SuccessValue: string;
884
+ } | {
885
+ SuccessReceiptId: string;
886
+ } | {
887
+ Failure: {
888
+ [x: string]: any;
889
+ error_message?: string | undefined;
890
+ error_type?: string | undefined;
891
+ };
892
+ };
893
+ metadata?: {
894
+ gas_profile?: {
895
+ [x: string]: any;
896
+ cost?: string | undefined;
897
+ cost_category?: string | undefined;
898
+ gas_used?: string | undefined;
899
+ }[] | null | undefined;
900
+ version: 4;
901
+ contracts?: ({
902
+ local: string;
903
+ } | {
904
+ global_hash: string;
905
+ } | {
906
+ global_account_id: string;
907
+ } | null)[] | null | undefined;
908
+ } | {
909
+ gas_profile?: {
910
+ [x: string]: any;
911
+ cost?: string | undefined;
912
+ cost_category?: string | undefined;
913
+ gas_used?: string | undefined;
914
+ }[] | null | undefined;
915
+ version: 1 | 2 | 3;
916
+ } | {
917
+ gas_profile?: {
918
+ [x: string]: any;
919
+ cost?: string | undefined;
920
+ cost_category?: string | undefined;
921
+ gas_used?: string | undefined;
922
+ }[] | null | undefined;
923
+ version: number;
924
+ } | undefined;
925
+ };
926
+ block_hash: string;
927
+ proof: {
928
+ hash: string;
929
+ direction: "Left" | "Right";
930
+ }[];
931
+ }[];
27
932
  } | {
28
- final_execution_status: "EXECUTED_OPTIMISTIC";
29
- status: "Unknown" | "Pending" | {
933
+ final_execution_status: "FINAL";
934
+ status: "Pending" | "Unknown" | {
30
935
  SuccessValue: string;
31
936
  } | {
32
937
  SuccessReceiptId: string;
@@ -83,6 +988,19 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
83
988
  method_names: string[];
84
989
  allowance?: string | null | undefined;
85
990
  };
991
+ } | {
992
+ GasKeyFunctionCall: {
993
+ balance: string;
994
+ num_nonces: number;
995
+ receiver_id: string;
996
+ method_names: string[];
997
+ allowance?: string | null | undefined;
998
+ };
999
+ } | {
1000
+ GasKeyFullAccess: {
1001
+ balance: string;
1002
+ num_nonces: number;
1003
+ };
86
1004
  };
87
1005
  };
88
1006
  };
@@ -118,10 +1036,44 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
118
1036
  DeterministicStateInit: {
119
1037
  deposit: string;
120
1038
  };
1039
+ } | {
1040
+ TransferToGasKey: {
1041
+ public_key: string;
1042
+ deposit: string;
1043
+ };
1044
+ } | {
1045
+ WithdrawFromGasKey: {
1046
+ public_key: string;
1047
+ amount: string;
1048
+ };
1049
+ } | {
1050
+ DelegateV2: {
1051
+ delegate_action: {
1052
+ V2: {
1053
+ sender_id: string;
1054
+ receiver_id: string;
1055
+ actions: any[];
1056
+ nonce: {
1057
+ Nonce: {
1058
+ nonce: number;
1059
+ };
1060
+ } | {
1061
+ GasKeyNonce: {
1062
+ nonce: number;
1063
+ nonce_index: number;
1064
+ };
1065
+ };
1066
+ max_block_height: number;
1067
+ public_key: string;
1068
+ };
1069
+ };
1070
+ signature: string;
1071
+ };
121
1072
  })[];
122
1073
  signature: string;
123
1074
  hash: string;
124
1075
  priority_fee?: number | undefined;
1076
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
125
1077
  };
126
1078
  transaction_outcome: {
127
1079
  id: string;
@@ -131,7 +1083,143 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
131
1083
  gas_burnt: number;
132
1084
  tokens_burnt: string;
133
1085
  executor_id: string;
134
- status: "Unknown" | "Pending" | {
1086
+ status: "Pending" | "Unknown" | {
1087
+ SuccessValue: string;
1088
+ } | {
1089
+ SuccessReceiptId: string;
1090
+ } | {
1091
+ Failure: {
1092
+ [x: string]: any;
1093
+ error_message?: string | undefined;
1094
+ error_type?: string | undefined;
1095
+ };
1096
+ };
1097
+ metadata?: {
1098
+ gas_profile?: {
1099
+ [x: string]: any;
1100
+ cost?: string | undefined;
1101
+ cost_category?: string | undefined;
1102
+ gas_used?: string | undefined;
1103
+ }[] | null | undefined;
1104
+ version: 4;
1105
+ contracts?: ({
1106
+ local: string;
1107
+ } | {
1108
+ global_hash: string;
1109
+ } | {
1110
+ global_account_id: string;
1111
+ } | null)[] | null | undefined;
1112
+ } | {
1113
+ gas_profile?: {
1114
+ [x: string]: any;
1115
+ cost?: string | undefined;
1116
+ cost_category?: string | undefined;
1117
+ gas_used?: string | undefined;
1118
+ }[] | null | undefined;
1119
+ version: 1 | 2 | 3;
1120
+ } | {
1121
+ gas_profile?: {
1122
+ [x: string]: any;
1123
+ cost?: string | undefined;
1124
+ cost_category?: string | undefined;
1125
+ gas_used?: string | undefined;
1126
+ }[] | null | undefined;
1127
+ version: number;
1128
+ } | undefined;
1129
+ };
1130
+ block_hash: string;
1131
+ proof: {
1132
+ hash: string;
1133
+ direction: "Left" | "Right";
1134
+ }[];
1135
+ };
1136
+ receipts_outcome: {
1137
+ id: string;
1138
+ outcome: {
1139
+ logs: string[];
1140
+ receipt_ids: string[];
1141
+ gas_burnt: number;
1142
+ tokens_burnt: string;
1143
+ executor_id: string;
1144
+ status: "Pending" | "Unknown" | {
1145
+ SuccessValue: string;
1146
+ } | {
1147
+ SuccessReceiptId: string;
1148
+ } | {
1149
+ Failure: {
1150
+ [x: string]: any;
1151
+ error_message?: string | undefined;
1152
+ error_type?: string | undefined;
1153
+ };
1154
+ };
1155
+ metadata?: {
1156
+ gas_profile?: {
1157
+ [x: string]: any;
1158
+ cost?: string | undefined;
1159
+ cost_category?: string | undefined;
1160
+ gas_used?: string | undefined;
1161
+ }[] | null | undefined;
1162
+ version: 4;
1163
+ contracts?: ({
1164
+ local: string;
1165
+ } | {
1166
+ global_hash: string;
1167
+ } | {
1168
+ global_account_id: string;
1169
+ } | null)[] | null | undefined;
1170
+ } | {
1171
+ gas_profile?: {
1172
+ [x: string]: any;
1173
+ cost?: string | undefined;
1174
+ cost_category?: string | undefined;
1175
+ gas_used?: string | undefined;
1176
+ }[] | null | undefined;
1177
+ version: 1 | 2 | 3;
1178
+ } | {
1179
+ gas_profile?: {
1180
+ [x: string]: any;
1181
+ cost?: string | undefined;
1182
+ cost_category?: string | undefined;
1183
+ gas_used?: string | undefined;
1184
+ }[] | null | undefined;
1185
+ version: number;
1186
+ } | undefined;
1187
+ };
1188
+ block_hash: string;
1189
+ proof: {
1190
+ hash: string;
1191
+ direction: "Left" | "Right";
1192
+ }[];
1193
+ }[];
1194
+ }>;
1195
+ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: string, amount: string): Promise<{
1196
+ final_execution_status: "NONE";
1197
+ transaction?: {
1198
+ hash: string;
1199
+ signer_id: string;
1200
+ receiver_id: string;
1201
+ nonce: number;
1202
+ } | undefined;
1203
+ status?: "Pending" | "Unknown" | {
1204
+ SuccessValue: string;
1205
+ } | {
1206
+ SuccessReceiptId: string;
1207
+ } | {
1208
+ Failure: {
1209
+ [x: string]: any;
1210
+ error_message?: string | undefined;
1211
+ error_type?: string | undefined;
1212
+ };
1213
+ } | undefined;
1214
+ transaction_outcome?: {
1215
+ id: string;
1216
+ outcome: {
1217
+ logs: string[];
1218
+ receipt_ids: string[];
1219
+ gas_burnt: number;
1220
+ tokens_burnt: string;
1221
+ executor_id: string;
1222
+ status: "Pending" | "Unknown" | {
135
1223
  SuccessValue: string;
136
1224
  } | {
137
1225
  SuccessReceiptId: string;
@@ -143,13 +1231,36 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
143
1231
  };
144
1232
  };
145
1233
  metadata?: {
146
- version: number;
147
1234
  gas_profile?: {
148
1235
  [x: string]: any;
149
1236
  cost?: string | undefined;
150
1237
  cost_category?: string | undefined;
151
1238
  gas_used?: string | undefined;
152
1239
  }[] | null | undefined;
1240
+ version: 4;
1241
+ contracts?: ({
1242
+ local: string;
1243
+ } | {
1244
+ global_hash: string;
1245
+ } | {
1246
+ global_account_id: string;
1247
+ } | null)[] | null | undefined;
1248
+ } | {
1249
+ gas_profile?: {
1250
+ [x: string]: any;
1251
+ cost?: string | undefined;
1252
+ cost_category?: string | undefined;
1253
+ gas_used?: string | undefined;
1254
+ }[] | null | undefined;
1255
+ version: 1 | 2 | 3;
1256
+ } | {
1257
+ gas_profile?: {
1258
+ [x: string]: any;
1259
+ cost?: string | undefined;
1260
+ cost_category?: string | undefined;
1261
+ gas_used?: string | undefined;
1262
+ }[] | null | undefined;
1263
+ version: number;
153
1264
  } | undefined;
154
1265
  };
155
1266
  block_hash: string;
@@ -157,8 +1268,8 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
157
1268
  hash: string;
158
1269
  direction: "Left" | "Right";
159
1270
  }[];
160
- };
161
- receipts_outcome: {
1271
+ } | undefined;
1272
+ receipts_outcome?: {
162
1273
  id: string;
163
1274
  outcome: {
164
1275
  logs: string[];
@@ -166,7 +1277,7 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
166
1277
  gas_burnt: number;
167
1278
  tokens_burnt: string;
168
1279
  executor_id: string;
169
- status: "Unknown" | "Pending" | {
1280
+ status: "Pending" | "Unknown" | {
170
1281
  SuccessValue: string;
171
1282
  } | {
172
1283
  SuccessReceiptId: string;
@@ -178,13 +1289,36 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
178
1289
  };
179
1290
  };
180
1291
  metadata?: {
181
- version: number;
182
1292
  gas_profile?: {
183
1293
  [x: string]: any;
184
1294
  cost?: string | undefined;
185
1295
  cost_category?: string | undefined;
186
1296
  gas_used?: string | undefined;
187
1297
  }[] | null | undefined;
1298
+ version: 4;
1299
+ contracts?: ({
1300
+ local: string;
1301
+ } | {
1302
+ global_hash: string;
1303
+ } | {
1304
+ global_account_id: string;
1305
+ } | null)[] | null | undefined;
1306
+ } | {
1307
+ gas_profile?: {
1308
+ [x: string]: any;
1309
+ cost?: string | undefined;
1310
+ cost_category?: string | undefined;
1311
+ gas_used?: string | undefined;
1312
+ }[] | null | undefined;
1313
+ version: 1 | 2 | 3;
1314
+ } | {
1315
+ gas_profile?: {
1316
+ [x: string]: any;
1317
+ cost?: string | undefined;
1318
+ cost_category?: string | undefined;
1319
+ gas_used?: string | undefined;
1320
+ }[] | null | undefined;
1321
+ version: number;
188
1322
  } | undefined;
189
1323
  };
190
1324
  block_hash: string;
@@ -192,10 +1326,16 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
192
1326
  hash: string;
193
1327
  direction: "Left" | "Right";
194
1328
  }[];
195
- }[];
1329
+ }[] | undefined;
196
1330
  } | {
197
- final_execution_status: "EXECUTED";
198
- status: "Unknown" | "Pending" | {
1331
+ final_execution_status: "INCLUDED";
1332
+ transaction?: {
1333
+ hash: string;
1334
+ signer_id: string;
1335
+ receiver_id: string;
1336
+ nonce: number;
1337
+ } | undefined;
1338
+ status?: "Pending" | "Unknown" | {
199
1339
  SuccessValue: string;
200
1340
  } | {
201
1341
  SuccessReceiptId: string;
@@ -205,94 +1345,8 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
205
1345
  error_message?: string | undefined;
206
1346
  error_type?: string | undefined;
207
1347
  };
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: {
1348
+ } | undefined;
1349
+ transaction_outcome?: {
296
1350
  id: string;
297
1351
  outcome: {
298
1352
  logs: string[];
@@ -300,7 +1354,7 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
300
1354
  gas_burnt: number;
301
1355
  tokens_burnt: string;
302
1356
  executor_id: string;
303
- status: "Unknown" | "Pending" | {
1357
+ status: "Pending" | "Unknown" | {
304
1358
  SuccessValue: string;
305
1359
  } | {
306
1360
  SuccessReceiptId: string;
@@ -312,13 +1366,36 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
312
1366
  };
313
1367
  };
314
1368
  metadata?: {
315
- version: number;
316
1369
  gas_profile?: {
317
1370
  [x: string]: any;
318
1371
  cost?: string | undefined;
319
1372
  cost_category?: string | undefined;
320
1373
  gas_used?: string | undefined;
321
1374
  }[] | null | undefined;
1375
+ version: 4;
1376
+ contracts?: ({
1377
+ local: string;
1378
+ } | {
1379
+ global_hash: string;
1380
+ } | {
1381
+ global_account_id: string;
1382
+ } | null)[] | null | undefined;
1383
+ } | {
1384
+ gas_profile?: {
1385
+ [x: string]: any;
1386
+ cost?: string | undefined;
1387
+ cost_category?: string | undefined;
1388
+ gas_used?: string | undefined;
1389
+ }[] | null | undefined;
1390
+ version: 1 | 2 | 3;
1391
+ } | {
1392
+ gas_profile?: {
1393
+ [x: string]: any;
1394
+ cost?: string | undefined;
1395
+ cost_category?: string | undefined;
1396
+ gas_used?: string | undefined;
1397
+ }[] | null | undefined;
1398
+ version: number;
322
1399
  } | undefined;
323
1400
  };
324
1401
  block_hash: string;
@@ -326,8 +1403,8 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
326
1403
  hash: string;
327
1404
  direction: "Left" | "Right";
328
1405
  }[];
329
- };
330
- receipts_outcome: {
1406
+ } | undefined;
1407
+ receipts_outcome?: {
331
1408
  id: string;
332
1409
  outcome: {
333
1410
  logs: string[];
@@ -335,7 +1412,7 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
335
1412
  gas_burnt: number;
336
1413
  tokens_burnt: string;
337
1414
  executor_id: string;
338
- status: "Unknown" | "Pending" | {
1415
+ status: "Pending" | "Unknown" | {
339
1416
  SuccessValue: string;
340
1417
  } | {
341
1418
  SuccessReceiptId: string;
@@ -347,121 +1424,64 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
347
1424
  };
348
1425
  };
349
1426
  metadata?: {
350
- version: number;
351
1427
  gas_profile?: {
352
1428
  [x: string]: any;
353
1429
  cost?: string | undefined;
354
1430
  cost_category?: string | undefined;
355
1431
  gas_used?: string | undefined;
356
1432
  }[] | 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;
1433
+ version: 4;
1434
+ contracts?: ({
1435
+ local: string;
1436
+ } | {
1437
+ global_hash: string;
1438
+ } | {
1439
+ global_account_id: string;
1440
+ } | null)[] | null | undefined;
1441
+ } | {
1442
+ gas_profile?: {
1443
+ [x: string]: any;
1444
+ cost?: string | undefined;
1445
+ cost_category?: string | undefined;
1446
+ gas_used?: string | undefined;
1447
+ }[] | null | undefined;
1448
+ version: 1 | 2 | 3;
1449
+ } | {
1450
+ gas_profile?: {
1451
+ [x: string]: any;
1452
+ cost?: string | undefined;
1453
+ cost_category?: string | undefined;
1454
+ gas_used?: string | undefined;
1455
+ }[] | null | undefined;
1456
+ version: number;
1457
+ } | undefined;
1458
+ };
1459
+ block_hash: string;
1460
+ proof: {
1461
+ hash: string;
1462
+ direction: "Left" | "Right";
1463
+ }[];
1464
+ }[] | undefined;
1465
+ } | {
1466
+ final_execution_status: "INCLUDED_FINAL";
1467
+ transaction?: {
461
1468
  hash: string;
462
- priority_fee?: number | undefined;
463
- };
464
- transaction_outcome: {
1469
+ signer_id: string;
1470
+ receiver_id: string;
1471
+ nonce: number;
1472
+ } | undefined;
1473
+ status?: "Pending" | "Unknown" | {
1474
+ SuccessValue: string;
1475
+ } | {
1476
+ SuccessReceiptId: string;
1477
+ } | {
1478
+ Failure: {
1479
+ [x: string]: any;
1480
+ error_message?: string | undefined;
1481
+ error_type?: string | undefined;
1482
+ };
1483
+ } | undefined;
1484
+ transaction_outcome?: {
465
1485
  id: string;
466
1486
  outcome: {
467
1487
  logs: string[];
@@ -469,7 +1489,7 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
469
1489
  gas_burnt: number;
470
1490
  tokens_burnt: string;
471
1491
  executor_id: string;
472
- status: "Unknown" | "Pending" | {
1492
+ status: "Pending" | "Unknown" | {
473
1493
  SuccessValue: string;
474
1494
  } | {
475
1495
  SuccessReceiptId: string;
@@ -481,13 +1501,36 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
481
1501
  };
482
1502
  };
483
1503
  metadata?: {
484
- version: number;
485
1504
  gas_profile?: {
486
1505
  [x: string]: any;
487
1506
  cost?: string | undefined;
488
1507
  cost_category?: string | undefined;
489
1508
  gas_used?: string | undefined;
490
1509
  }[] | null | undefined;
1510
+ version: 4;
1511
+ contracts?: ({
1512
+ local: string;
1513
+ } | {
1514
+ global_hash: string;
1515
+ } | {
1516
+ global_account_id: string;
1517
+ } | null)[] | null | undefined;
1518
+ } | {
1519
+ gas_profile?: {
1520
+ [x: string]: any;
1521
+ cost?: string | undefined;
1522
+ cost_category?: string | undefined;
1523
+ gas_used?: string | undefined;
1524
+ }[] | null | undefined;
1525
+ version: 1 | 2 | 3;
1526
+ } | {
1527
+ gas_profile?: {
1528
+ [x: string]: any;
1529
+ cost?: string | undefined;
1530
+ cost_category?: string | undefined;
1531
+ gas_used?: string | undefined;
1532
+ }[] | null | undefined;
1533
+ version: number;
491
1534
  } | undefined;
492
1535
  };
493
1536
  block_hash: string;
@@ -495,8 +1538,8 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
495
1538
  hash: string;
496
1539
  direction: "Left" | "Right";
497
1540
  }[];
498
- };
499
- receipts_outcome: {
1541
+ } | undefined;
1542
+ receipts_outcome?: {
500
1543
  id: string;
501
1544
  outcome: {
502
1545
  logs: string[];
@@ -504,7 +1547,7 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
504
1547
  gas_burnt: number;
505
1548
  tokens_burnt: string;
506
1549
  executor_id: string;
507
- status: "Unknown" | "Pending" | {
1550
+ status: "Pending" | "Unknown" | {
508
1551
  SuccessValue: string;
509
1552
  } | {
510
1553
  SuccessReceiptId: string;
@@ -516,13 +1559,36 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
516
1559
  };
517
1560
  };
518
1561
  metadata?: {
519
- version: number;
520
1562
  gas_profile?: {
521
1563
  [x: string]: any;
522
1564
  cost?: string | undefined;
523
1565
  cost_category?: string | undefined;
524
1566
  gas_used?: string | undefined;
525
1567
  }[] | null | undefined;
1568
+ version: 4;
1569
+ contracts?: ({
1570
+ local: string;
1571
+ } | {
1572
+ global_hash: string;
1573
+ } | {
1574
+ global_account_id: string;
1575
+ } | null)[] | null | undefined;
1576
+ } | {
1577
+ gas_profile?: {
1578
+ [x: string]: any;
1579
+ cost?: string | undefined;
1580
+ cost_category?: string | undefined;
1581
+ gas_used?: string | undefined;
1582
+ }[] | null | undefined;
1583
+ version: 1 | 2 | 3;
1584
+ } | {
1585
+ gas_profile?: {
1586
+ [x: string]: any;
1587
+ cost?: string | undefined;
1588
+ cost_category?: string | undefined;
1589
+ gas_used?: string | undefined;
1590
+ }[] | null | undefined;
1591
+ version: number;
526
1592
  } | undefined;
527
1593
  };
528
1594
  block_hash: string;
@@ -530,35 +1596,10 @@ export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: strin
530
1596
  hash: string;
531
1597
  direction: "Left" | "Right";
532
1598
  }[];
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;
1599
+ }[] | undefined;
559
1600
  } | {
560
1601
  final_execution_status: "EXECUTED_OPTIMISTIC";
561
- status: "Unknown" | "Pending" | {
1602
+ status: "Pending" | "Unknown" | {
562
1603
  SuccessValue: string;
563
1604
  } | {
564
1605
  SuccessReceiptId: string;
@@ -615,6 +1656,19 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
615
1656
  method_names: string[];
616
1657
  allowance?: string | null | undefined;
617
1658
  };
1659
+ } | {
1660
+ GasKeyFunctionCall: {
1661
+ balance: string;
1662
+ num_nonces: number;
1663
+ receiver_id: string;
1664
+ method_names: string[];
1665
+ allowance?: string | null | undefined;
1666
+ };
1667
+ } | {
1668
+ GasKeyFullAccess: {
1669
+ balance: string;
1670
+ num_nonces: number;
1671
+ };
618
1672
  };
619
1673
  };
620
1674
  };
@@ -650,10 +1704,44 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
650
1704
  DeterministicStateInit: {
651
1705
  deposit: string;
652
1706
  };
1707
+ } | {
1708
+ TransferToGasKey: {
1709
+ public_key: string;
1710
+ deposit: string;
1711
+ };
1712
+ } | {
1713
+ WithdrawFromGasKey: {
1714
+ public_key: string;
1715
+ amount: string;
1716
+ };
1717
+ } | {
1718
+ DelegateV2: {
1719
+ delegate_action: {
1720
+ V2: {
1721
+ sender_id: string;
1722
+ receiver_id: string;
1723
+ actions: any[];
1724
+ nonce: {
1725
+ Nonce: {
1726
+ nonce: number;
1727
+ };
1728
+ } | {
1729
+ GasKeyNonce: {
1730
+ nonce: number;
1731
+ nonce_index: number;
1732
+ };
1733
+ };
1734
+ max_block_height: number;
1735
+ public_key: string;
1736
+ };
1737
+ };
1738
+ signature: string;
1739
+ };
653
1740
  })[];
654
1741
  signature: string;
655
1742
  hash: string;
656
1743
  priority_fee?: number | undefined;
1744
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
657
1745
  };
658
1746
  transaction_outcome: {
659
1747
  id: string;
@@ -663,7 +1751,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
663
1751
  gas_burnt: number;
664
1752
  tokens_burnt: string;
665
1753
  executor_id: string;
666
- status: "Unknown" | "Pending" | {
1754
+ status: "Pending" | "Unknown" | {
667
1755
  SuccessValue: string;
668
1756
  } | {
669
1757
  SuccessReceiptId: string;
@@ -675,13 +1763,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
675
1763
  };
676
1764
  };
677
1765
  metadata?: {
678
- version: number;
679
1766
  gas_profile?: {
680
1767
  [x: string]: any;
681
1768
  cost?: string | undefined;
682
1769
  cost_category?: string | undefined;
683
1770
  gas_used?: string | undefined;
684
1771
  }[] | null | undefined;
1772
+ version: 4;
1773
+ contracts?: ({
1774
+ local: string;
1775
+ } | {
1776
+ global_hash: string;
1777
+ } | {
1778
+ global_account_id: string;
1779
+ } | null)[] | null | undefined;
1780
+ } | {
1781
+ gas_profile?: {
1782
+ [x: string]: any;
1783
+ cost?: string | undefined;
1784
+ cost_category?: string | undefined;
1785
+ gas_used?: string | undefined;
1786
+ }[] | null | undefined;
1787
+ version: 1 | 2 | 3;
1788
+ } | {
1789
+ gas_profile?: {
1790
+ [x: string]: any;
1791
+ cost?: string | undefined;
1792
+ cost_category?: string | undefined;
1793
+ gas_used?: string | undefined;
1794
+ }[] | null | undefined;
1795
+ version: number;
685
1796
  } | undefined;
686
1797
  };
687
1798
  block_hash: string;
@@ -698,7 +1809,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
698
1809
  gas_burnt: number;
699
1810
  tokens_burnt: string;
700
1811
  executor_id: string;
701
- status: "Unknown" | "Pending" | {
1812
+ status: "Pending" | "Unknown" | {
702
1813
  SuccessValue: string;
703
1814
  } | {
704
1815
  SuccessReceiptId: string;
@@ -710,13 +1821,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
710
1821
  };
711
1822
  };
712
1823
  metadata?: {
713
- version: number;
714
1824
  gas_profile?: {
715
1825
  [x: string]: any;
716
1826
  cost?: string | undefined;
717
1827
  cost_category?: string | undefined;
718
1828
  gas_used?: string | undefined;
719
1829
  }[] | null | undefined;
1830
+ version: 4;
1831
+ contracts?: ({
1832
+ local: string;
1833
+ } | {
1834
+ global_hash: string;
1835
+ } | {
1836
+ global_account_id: string;
1837
+ } | null)[] | null | undefined;
1838
+ } | {
1839
+ gas_profile?: {
1840
+ [x: string]: any;
1841
+ cost?: string | undefined;
1842
+ cost_category?: string | undefined;
1843
+ gas_used?: string | undefined;
1844
+ }[] | null | undefined;
1845
+ version: 1 | 2 | 3;
1846
+ } | {
1847
+ gas_profile?: {
1848
+ [x: string]: any;
1849
+ cost?: string | undefined;
1850
+ cost_category?: string | undefined;
1851
+ gas_used?: string | undefined;
1852
+ }[] | null | undefined;
1853
+ version: number;
720
1854
  } | undefined;
721
1855
  };
722
1856
  block_hash: string;
@@ -727,7 +1861,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
727
1861
  }[];
728
1862
  } | {
729
1863
  final_execution_status: "EXECUTED";
730
- status: "Unknown" | "Pending" | {
1864
+ status: "Pending" | "Unknown" | {
731
1865
  SuccessValue: string;
732
1866
  } | {
733
1867
  SuccessReceiptId: string;
@@ -784,6 +1918,19 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
784
1918
  method_names: string[];
785
1919
  allowance?: string | null | undefined;
786
1920
  };
1921
+ } | {
1922
+ GasKeyFunctionCall: {
1923
+ balance: string;
1924
+ num_nonces: number;
1925
+ receiver_id: string;
1926
+ method_names: string[];
1927
+ allowance?: string | null | undefined;
1928
+ };
1929
+ } | {
1930
+ GasKeyFullAccess: {
1931
+ balance: string;
1932
+ num_nonces: number;
1933
+ };
787
1934
  };
788
1935
  };
789
1936
  };
@@ -819,10 +1966,44 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
819
1966
  DeterministicStateInit: {
820
1967
  deposit: string;
821
1968
  };
1969
+ } | {
1970
+ TransferToGasKey: {
1971
+ public_key: string;
1972
+ deposit: string;
1973
+ };
1974
+ } | {
1975
+ WithdrawFromGasKey: {
1976
+ public_key: string;
1977
+ amount: string;
1978
+ };
1979
+ } | {
1980
+ DelegateV2: {
1981
+ delegate_action: {
1982
+ V2: {
1983
+ sender_id: string;
1984
+ receiver_id: string;
1985
+ actions: any[];
1986
+ nonce: {
1987
+ Nonce: {
1988
+ nonce: number;
1989
+ };
1990
+ } | {
1991
+ GasKeyNonce: {
1992
+ nonce: number;
1993
+ nonce_index: number;
1994
+ };
1995
+ };
1996
+ max_block_height: number;
1997
+ public_key: string;
1998
+ };
1999
+ };
2000
+ signature: string;
2001
+ };
822
2002
  })[];
823
2003
  signature: string;
824
2004
  hash: string;
825
2005
  priority_fee?: number | undefined;
2006
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
826
2007
  };
827
2008
  transaction_outcome: {
828
2009
  id: string;
@@ -832,7 +2013,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
832
2013
  gas_burnt: number;
833
2014
  tokens_burnt: string;
834
2015
  executor_id: string;
835
- status: "Unknown" | "Pending" | {
2016
+ status: "Pending" | "Unknown" | {
836
2017
  SuccessValue: string;
837
2018
  } | {
838
2019
  SuccessReceiptId: string;
@@ -844,13 +2025,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
844
2025
  };
845
2026
  };
846
2027
  metadata?: {
847
- version: number;
848
2028
  gas_profile?: {
849
2029
  [x: string]: any;
850
2030
  cost?: string | undefined;
851
2031
  cost_category?: string | undefined;
852
2032
  gas_used?: string | undefined;
853
2033
  }[] | null | undefined;
2034
+ version: 4;
2035
+ contracts?: ({
2036
+ local: string;
2037
+ } | {
2038
+ global_hash: string;
2039
+ } | {
2040
+ global_account_id: string;
2041
+ } | null)[] | null | undefined;
2042
+ } | {
2043
+ gas_profile?: {
2044
+ [x: string]: any;
2045
+ cost?: string | undefined;
2046
+ cost_category?: string | undefined;
2047
+ gas_used?: string | undefined;
2048
+ }[] | null | undefined;
2049
+ version: 1 | 2 | 3;
2050
+ } | {
2051
+ gas_profile?: {
2052
+ [x: string]: any;
2053
+ cost?: string | undefined;
2054
+ cost_category?: string | undefined;
2055
+ gas_used?: string | undefined;
2056
+ }[] | null | undefined;
2057
+ version: number;
854
2058
  } | undefined;
855
2059
  };
856
2060
  block_hash: string;
@@ -867,7 +2071,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
867
2071
  gas_burnt: number;
868
2072
  tokens_burnt: string;
869
2073
  executor_id: string;
870
- status: "Unknown" | "Pending" | {
2074
+ status: "Pending" | "Unknown" | {
871
2075
  SuccessValue: string;
872
2076
  } | {
873
2077
  SuccessReceiptId: string;
@@ -879,13 +2083,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
879
2083
  };
880
2084
  };
881
2085
  metadata?: {
882
- version: number;
883
2086
  gas_profile?: {
884
2087
  [x: string]: any;
885
2088
  cost?: string | undefined;
886
2089
  cost_category?: string | undefined;
887
2090
  gas_used?: string | undefined;
888
2091
  }[] | null | undefined;
2092
+ version: 4;
2093
+ contracts?: ({
2094
+ local: string;
2095
+ } | {
2096
+ global_hash: string;
2097
+ } | {
2098
+ global_account_id: string;
2099
+ } | null)[] | null | undefined;
2100
+ } | {
2101
+ gas_profile?: {
2102
+ [x: string]: any;
2103
+ cost?: string | undefined;
2104
+ cost_category?: string | undefined;
2105
+ gas_used?: string | undefined;
2106
+ }[] | null | undefined;
2107
+ version: 1 | 2 | 3;
2108
+ } | {
2109
+ gas_profile?: {
2110
+ [x: string]: any;
2111
+ cost?: string | undefined;
2112
+ cost_category?: string | undefined;
2113
+ gas_used?: string | undefined;
2114
+ }[] | null | undefined;
2115
+ version: number;
889
2116
  } | undefined;
890
2117
  };
891
2118
  block_hash: string;
@@ -896,7 +2123,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
896
2123
  }[];
897
2124
  } | {
898
2125
  final_execution_status: "FINAL";
899
- status: "Unknown" | "Pending" | {
2126
+ status: "Pending" | "Unknown" | {
900
2127
  SuccessValue: string;
901
2128
  } | {
902
2129
  SuccessReceiptId: string;
@@ -953,6 +2180,19 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
953
2180
  method_names: string[];
954
2181
  allowance?: string | null | undefined;
955
2182
  };
2183
+ } | {
2184
+ GasKeyFunctionCall: {
2185
+ balance: string;
2186
+ num_nonces: number;
2187
+ receiver_id: string;
2188
+ method_names: string[];
2189
+ allowance?: string | null | undefined;
2190
+ };
2191
+ } | {
2192
+ GasKeyFullAccess: {
2193
+ balance: string;
2194
+ num_nonces: number;
2195
+ };
956
2196
  };
957
2197
  };
958
2198
  };
@@ -988,10 +2228,44 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
988
2228
  DeterministicStateInit: {
989
2229
  deposit: string;
990
2230
  };
2231
+ } | {
2232
+ TransferToGasKey: {
2233
+ public_key: string;
2234
+ deposit: string;
2235
+ };
2236
+ } | {
2237
+ WithdrawFromGasKey: {
2238
+ public_key: string;
2239
+ amount: string;
2240
+ };
2241
+ } | {
2242
+ DelegateV2: {
2243
+ delegate_action: {
2244
+ V2: {
2245
+ sender_id: string;
2246
+ receiver_id: string;
2247
+ actions: any[];
2248
+ nonce: {
2249
+ Nonce: {
2250
+ nonce: number;
2251
+ };
2252
+ } | {
2253
+ GasKeyNonce: {
2254
+ nonce: number;
2255
+ nonce_index: number;
2256
+ };
2257
+ };
2258
+ max_block_height: number;
2259
+ public_key: string;
2260
+ };
2261
+ };
2262
+ signature: string;
2263
+ };
991
2264
  })[];
992
2265
  signature: string;
993
2266
  hash: string;
994
2267
  priority_fee?: number | undefined;
2268
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
995
2269
  };
996
2270
  transaction_outcome: {
997
2271
  id: string;
@@ -1001,7 +2275,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
1001
2275
  gas_burnt: number;
1002
2276
  tokens_burnt: string;
1003
2277
  executor_id: string;
1004
- status: "Unknown" | "Pending" | {
2278
+ status: "Pending" | "Unknown" | {
1005
2279
  SuccessValue: string;
1006
2280
  } | {
1007
2281
  SuccessReceiptId: string;
@@ -1013,13 +2287,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
1013
2287
  };
1014
2288
  };
1015
2289
  metadata?: {
1016
- version: number;
1017
2290
  gas_profile?: {
1018
2291
  [x: string]: any;
1019
2292
  cost?: string | undefined;
1020
2293
  cost_category?: string | undefined;
1021
2294
  gas_used?: string | undefined;
1022
2295
  }[] | null | undefined;
2296
+ version: 4;
2297
+ contracts?: ({
2298
+ local: string;
2299
+ } | {
2300
+ global_hash: string;
2301
+ } | {
2302
+ global_account_id: string;
2303
+ } | null)[] | null | undefined;
2304
+ } | {
2305
+ gas_profile?: {
2306
+ [x: string]: any;
2307
+ cost?: string | undefined;
2308
+ cost_category?: string | undefined;
2309
+ gas_used?: string | undefined;
2310
+ }[] | null | undefined;
2311
+ version: 1 | 2 | 3;
2312
+ } | {
2313
+ gas_profile?: {
2314
+ [x: string]: any;
2315
+ cost?: string | undefined;
2316
+ cost_category?: string | undefined;
2317
+ gas_used?: string | undefined;
2318
+ }[] | null | undefined;
2319
+ version: number;
1023
2320
  } | undefined;
1024
2321
  };
1025
2322
  block_hash: string;
@@ -1036,7 +2333,7 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
1036
2333
  gas_burnt: number;
1037
2334
  tokens_burnt: string;
1038
2335
  executor_id: string;
1039
- status: "Unknown" | "Pending" | {
2336
+ status: "Pending" | "Unknown" | {
1040
2337
  SuccessValue: string;
1041
2338
  } | {
1042
2339
  SuccessReceiptId: string;
@@ -1048,13 +2345,36 @@ export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: stri
1048
2345
  };
1049
2346
  };
1050
2347
  metadata?: {
1051
- version: number;
1052
2348
  gas_profile?: {
1053
2349
  [x: string]: any;
1054
2350
  cost?: string | undefined;
1055
2351
  cost_category?: string | undefined;
1056
2352
  gas_used?: string | undefined;
1057
2353
  }[] | null | undefined;
2354
+ version: 4;
2355
+ contracts?: ({
2356
+ local: string;
2357
+ } | {
2358
+ global_hash: string;
2359
+ } | {
2360
+ global_account_id: string;
2361
+ } | null)[] | null | undefined;
2362
+ } | {
2363
+ gas_profile?: {
2364
+ [x: string]: any;
2365
+ cost?: string | undefined;
2366
+ cost_category?: string | undefined;
2367
+ gas_used?: string | undefined;
2368
+ }[] | null | undefined;
2369
+ version: 1 | 2 | 3;
2370
+ } | {
2371
+ gas_profile?: {
2372
+ [x: string]: any;
2373
+ cost?: string | undefined;
2374
+ cost_category?: string | undefined;
2375
+ gas_used?: string | undefined;
2376
+ }[] | null | undefined;
2377
+ version: number;
1058
2378
  } | undefined;
1059
2379
  };
1060
2380
  block_hash: string;