@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.
@@ -12,6 +12,1325 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
12
12
  receiver_id: string;
13
13
  nonce: number;
14
14
  } | undefined;
15
+ status?: "Pending" | "Unknown" | {
16
+ SuccessValue: string;
17
+ } | {
18
+ SuccessReceiptId: string;
19
+ } | {
20
+ Failure: {
21
+ [x: string]: any;
22
+ error_message?: string | undefined;
23
+ error_type?: string | undefined;
24
+ };
25
+ } | undefined;
26
+ transaction_outcome?: {
27
+ id: string;
28
+ outcome: {
29
+ logs: string[];
30
+ receipt_ids: string[];
31
+ gas_burnt: number;
32
+ tokens_burnt: string;
33
+ executor_id: string;
34
+ status: "Pending" | "Unknown" | {
35
+ SuccessValue: string;
36
+ } | {
37
+ SuccessReceiptId: string;
38
+ } | {
39
+ Failure: {
40
+ [x: string]: any;
41
+ error_message?: string | undefined;
42
+ error_type?: string | undefined;
43
+ };
44
+ };
45
+ metadata?: {
46
+ gas_profile?: {
47
+ [x: string]: any;
48
+ cost?: string | undefined;
49
+ cost_category?: string | undefined;
50
+ gas_used?: string | undefined;
51
+ }[] | null | undefined;
52
+ version: 4;
53
+ contracts?: ({
54
+ local: string;
55
+ } | {
56
+ global_hash: string;
57
+ } | {
58
+ global_account_id: string;
59
+ } | null)[] | null | undefined;
60
+ } | {
61
+ gas_profile?: {
62
+ [x: string]: any;
63
+ cost?: string | undefined;
64
+ cost_category?: string | undefined;
65
+ gas_used?: string | undefined;
66
+ }[] | null | undefined;
67
+ version: 1 | 2 | 3;
68
+ } | {
69
+ gas_profile?: {
70
+ [x: string]: any;
71
+ cost?: string | undefined;
72
+ cost_category?: string | undefined;
73
+ gas_used?: string | undefined;
74
+ }[] | null | undefined;
75
+ version: number;
76
+ } | undefined;
77
+ };
78
+ block_hash: string;
79
+ proof: {
80
+ hash: string;
81
+ direction: "Left" | "Right";
82
+ }[];
83
+ } | undefined;
84
+ receipts_outcome?: {
85
+ id: string;
86
+ outcome: {
87
+ logs: string[];
88
+ receipt_ids: string[];
89
+ gas_burnt: number;
90
+ tokens_burnt: string;
91
+ executor_id: string;
92
+ status: "Pending" | "Unknown" | {
93
+ SuccessValue: string;
94
+ } | {
95
+ SuccessReceiptId: string;
96
+ } | {
97
+ Failure: {
98
+ [x: string]: any;
99
+ error_message?: string | undefined;
100
+ error_type?: string | undefined;
101
+ };
102
+ };
103
+ metadata?: {
104
+ gas_profile?: {
105
+ [x: string]: any;
106
+ cost?: string | undefined;
107
+ cost_category?: string | undefined;
108
+ gas_used?: string | undefined;
109
+ }[] | null | undefined;
110
+ version: 4;
111
+ contracts?: ({
112
+ local: string;
113
+ } | {
114
+ global_hash: string;
115
+ } | {
116
+ global_account_id: string;
117
+ } | null)[] | null | undefined;
118
+ } | {
119
+ gas_profile?: {
120
+ [x: string]: any;
121
+ cost?: string | undefined;
122
+ cost_category?: string | undefined;
123
+ gas_used?: string | undefined;
124
+ }[] | null | undefined;
125
+ version: 1 | 2 | 3;
126
+ } | {
127
+ gas_profile?: {
128
+ [x: string]: any;
129
+ cost?: string | undefined;
130
+ cost_category?: string | undefined;
131
+ gas_used?: string | undefined;
132
+ }[] | null | undefined;
133
+ version: number;
134
+ } | undefined;
135
+ };
136
+ block_hash: string;
137
+ proof: {
138
+ hash: string;
139
+ direction: "Left" | "Right";
140
+ }[];
141
+ }[] | undefined;
142
+ } | {
143
+ final_execution_status: "INCLUDED";
144
+ transaction?: {
145
+ hash: string;
146
+ signer_id: string;
147
+ receiver_id: string;
148
+ nonce: number;
149
+ } | undefined;
150
+ status?: "Pending" | "Unknown" | {
151
+ SuccessValue: string;
152
+ } | {
153
+ SuccessReceiptId: string;
154
+ } | {
155
+ Failure: {
156
+ [x: string]: any;
157
+ error_message?: string | undefined;
158
+ error_type?: string | undefined;
159
+ };
160
+ } | undefined;
161
+ transaction_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: "Pending" | "Unknown" | {
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
+ gas_profile?: {
182
+ [x: string]: any;
183
+ cost?: string | undefined;
184
+ cost_category?: string | undefined;
185
+ gas_used?: string | undefined;
186
+ }[] | null | undefined;
187
+ version: 4;
188
+ contracts?: ({
189
+ local: string;
190
+ } | {
191
+ global_hash: string;
192
+ } | {
193
+ global_account_id: string;
194
+ } | null)[] | null | undefined;
195
+ } | {
196
+ gas_profile?: {
197
+ [x: string]: any;
198
+ cost?: string | undefined;
199
+ cost_category?: string | undefined;
200
+ gas_used?: string | undefined;
201
+ }[] | null | undefined;
202
+ version: 1 | 2 | 3;
203
+ } | {
204
+ gas_profile?: {
205
+ [x: string]: any;
206
+ cost?: string | undefined;
207
+ cost_category?: string | undefined;
208
+ gas_used?: string | undefined;
209
+ }[] | null | undefined;
210
+ version: number;
211
+ } | undefined;
212
+ };
213
+ block_hash: string;
214
+ proof: {
215
+ hash: string;
216
+ direction: "Left" | "Right";
217
+ }[];
218
+ } | undefined;
219
+ receipts_outcome?: {
220
+ id: string;
221
+ outcome: {
222
+ logs: string[];
223
+ receipt_ids: string[];
224
+ gas_burnt: number;
225
+ tokens_burnt: string;
226
+ executor_id: string;
227
+ status: "Pending" | "Unknown" | {
228
+ SuccessValue: string;
229
+ } | {
230
+ SuccessReceiptId: string;
231
+ } | {
232
+ Failure: {
233
+ [x: string]: any;
234
+ error_message?: string | undefined;
235
+ error_type?: string | undefined;
236
+ };
237
+ };
238
+ metadata?: {
239
+ gas_profile?: {
240
+ [x: string]: any;
241
+ cost?: string | undefined;
242
+ cost_category?: string | undefined;
243
+ gas_used?: string | undefined;
244
+ }[] | null | undefined;
245
+ version: 4;
246
+ contracts?: ({
247
+ local: string;
248
+ } | {
249
+ global_hash: string;
250
+ } | {
251
+ global_account_id: string;
252
+ } | null)[] | null | undefined;
253
+ } | {
254
+ gas_profile?: {
255
+ [x: string]: any;
256
+ cost?: string | undefined;
257
+ cost_category?: string | undefined;
258
+ gas_used?: string | undefined;
259
+ }[] | null | undefined;
260
+ version: 1 | 2 | 3;
261
+ } | {
262
+ gas_profile?: {
263
+ [x: string]: any;
264
+ cost?: string | undefined;
265
+ cost_category?: string | undefined;
266
+ gas_used?: string | undefined;
267
+ }[] | null | undefined;
268
+ version: number;
269
+ } | undefined;
270
+ };
271
+ block_hash: string;
272
+ proof: {
273
+ hash: string;
274
+ direction: "Left" | "Right";
275
+ }[];
276
+ }[] | undefined;
277
+ } | {
278
+ final_execution_status: "INCLUDED_FINAL";
279
+ transaction?: {
280
+ hash: string;
281
+ signer_id: string;
282
+ receiver_id: string;
283
+ nonce: number;
284
+ } | undefined;
285
+ status?: "Pending" | "Unknown" | {
286
+ SuccessValue: string;
287
+ } | {
288
+ SuccessReceiptId: string;
289
+ } | {
290
+ Failure: {
291
+ [x: string]: any;
292
+ error_message?: string | undefined;
293
+ error_type?: string | undefined;
294
+ };
295
+ } | undefined;
296
+ transaction_outcome?: {
297
+ id: string;
298
+ outcome: {
299
+ logs: string[];
300
+ receipt_ids: string[];
301
+ gas_burnt: number;
302
+ tokens_burnt: string;
303
+ executor_id: string;
304
+ status: "Pending" | "Unknown" | {
305
+ SuccessValue: string;
306
+ } | {
307
+ SuccessReceiptId: string;
308
+ } | {
309
+ Failure: {
310
+ [x: string]: any;
311
+ error_message?: string | undefined;
312
+ error_type?: string | undefined;
313
+ };
314
+ };
315
+ metadata?: {
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
+ version: 4;
323
+ contracts?: ({
324
+ local: string;
325
+ } | {
326
+ global_hash: string;
327
+ } | {
328
+ global_account_id: string;
329
+ } | null)[] | null | undefined;
330
+ } | {
331
+ gas_profile?: {
332
+ [x: string]: any;
333
+ cost?: string | undefined;
334
+ cost_category?: string | undefined;
335
+ gas_used?: string | undefined;
336
+ }[] | null | undefined;
337
+ version: 1 | 2 | 3;
338
+ } | {
339
+ gas_profile?: {
340
+ [x: string]: any;
341
+ cost?: string | undefined;
342
+ cost_category?: string | undefined;
343
+ gas_used?: string | undefined;
344
+ }[] | null | undefined;
345
+ version: number;
346
+ } | undefined;
347
+ };
348
+ block_hash: string;
349
+ proof: {
350
+ hash: string;
351
+ direction: "Left" | "Right";
352
+ }[];
353
+ } | undefined;
354
+ receipts_outcome?: {
355
+ id: string;
356
+ outcome: {
357
+ logs: string[];
358
+ receipt_ids: string[];
359
+ gas_burnt: number;
360
+ tokens_burnt: string;
361
+ executor_id: string;
362
+ status: "Pending" | "Unknown" | {
363
+ SuccessValue: string;
364
+ } | {
365
+ SuccessReceiptId: string;
366
+ } | {
367
+ Failure: {
368
+ [x: string]: any;
369
+ error_message?: string | undefined;
370
+ error_type?: string | undefined;
371
+ };
372
+ };
373
+ metadata?: {
374
+ gas_profile?: {
375
+ [x: string]: any;
376
+ cost?: string | undefined;
377
+ cost_category?: string | undefined;
378
+ gas_used?: string | undefined;
379
+ }[] | null | undefined;
380
+ version: 4;
381
+ contracts?: ({
382
+ local: string;
383
+ } | {
384
+ global_hash: string;
385
+ } | {
386
+ global_account_id: string;
387
+ } | null)[] | null | undefined;
388
+ } | {
389
+ gas_profile?: {
390
+ [x: string]: any;
391
+ cost?: string | undefined;
392
+ cost_category?: string | undefined;
393
+ gas_used?: string | undefined;
394
+ }[] | null | undefined;
395
+ version: 1 | 2 | 3;
396
+ } | {
397
+ gas_profile?: {
398
+ [x: string]: any;
399
+ cost?: string | undefined;
400
+ cost_category?: string | undefined;
401
+ gas_used?: string | undefined;
402
+ }[] | null | undefined;
403
+ version: number;
404
+ } | undefined;
405
+ };
406
+ block_hash: string;
407
+ proof: {
408
+ hash: string;
409
+ direction: "Left" | "Right";
410
+ }[];
411
+ }[] | undefined;
412
+ } | {
413
+ final_execution_status: "EXECUTED_OPTIMISTIC";
414
+ status: "Pending" | "Unknown" | {
415
+ SuccessValue: string;
416
+ } | {
417
+ SuccessReceiptId: string;
418
+ } | {
419
+ Failure: {
420
+ [x: string]: any;
421
+ error_message?: string | undefined;
422
+ error_type?: string | undefined;
423
+ };
424
+ };
425
+ transaction: {
426
+ signer_id: string;
427
+ public_key: string;
428
+ nonce: number;
429
+ receiver_id: string;
430
+ actions: ("CreateAccount" | {
431
+ CreateAccount: Record<string, never>;
432
+ } | {
433
+ Transfer: {
434
+ deposit: string;
435
+ };
436
+ } | {
437
+ FunctionCall: {
438
+ method_name: string;
439
+ args: string;
440
+ gas: number;
441
+ deposit: string;
442
+ };
443
+ } | {
444
+ DeployContract: {
445
+ code: string;
446
+ };
447
+ } | {
448
+ DeployGlobalContract: {
449
+ code: string;
450
+ };
451
+ } | {
452
+ DeployGlobalContractByAccountId: {
453
+ code: string;
454
+ };
455
+ } | {
456
+ Stake: {
457
+ stake: string;
458
+ public_key: string;
459
+ };
460
+ } | {
461
+ AddKey: {
462
+ public_key: string;
463
+ access_key: {
464
+ nonce: number;
465
+ permission: "FullAccess" | {
466
+ FunctionCall: {
467
+ receiver_id: string;
468
+ method_names: string[];
469
+ allowance?: string | null | undefined;
470
+ };
471
+ } | {
472
+ GasKeyFunctionCall: {
473
+ balance: string;
474
+ num_nonces: number;
475
+ receiver_id: string;
476
+ method_names: string[];
477
+ allowance?: string | null | undefined;
478
+ };
479
+ } | {
480
+ GasKeyFullAccess: {
481
+ balance: string;
482
+ num_nonces: number;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ } | {
488
+ DeleteKey: {
489
+ public_key: string;
490
+ };
491
+ } | {
492
+ DeleteAccount: {
493
+ beneficiary_id: string;
494
+ };
495
+ } | {
496
+ UseGlobalContract: {
497
+ code_hash: string;
498
+ };
499
+ } | {
500
+ UseGlobalContractByAccountId: {
501
+ account_id: string;
502
+ };
503
+ } | {
504
+ Delegate: {
505
+ delegate_action: {
506
+ sender_id: string;
507
+ receiver_id: string;
508
+ actions: any[];
509
+ nonce: number;
510
+ max_block_height: number;
511
+ public_key: string;
512
+ };
513
+ signature: string;
514
+ };
515
+ } | {
516
+ DeterministicStateInit: {
517
+ deposit: string;
518
+ };
519
+ } | {
520
+ TransferToGasKey: {
521
+ public_key: string;
522
+ deposit: string;
523
+ };
524
+ } | {
525
+ WithdrawFromGasKey: {
526
+ public_key: string;
527
+ amount: string;
528
+ };
529
+ } | {
530
+ DelegateV2: {
531
+ delegate_action: {
532
+ V2: {
533
+ sender_id: string;
534
+ receiver_id: string;
535
+ actions: any[];
536
+ nonce: {
537
+ Nonce: {
538
+ nonce: number;
539
+ };
540
+ } | {
541
+ GasKeyNonce: {
542
+ nonce: number;
543
+ nonce_index: number;
544
+ };
545
+ };
546
+ max_block_height: number;
547
+ public_key: string;
548
+ };
549
+ };
550
+ signature: string;
551
+ };
552
+ })[];
553
+ signature: string;
554
+ hash: string;
555
+ priority_fee?: number | undefined;
556
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
557
+ };
558
+ transaction_outcome: {
559
+ id: string;
560
+ outcome: {
561
+ logs: string[];
562
+ receipt_ids: string[];
563
+ gas_burnt: number;
564
+ tokens_burnt: string;
565
+ executor_id: string;
566
+ status: "Pending" | "Unknown" | {
567
+ SuccessValue: string;
568
+ } | {
569
+ SuccessReceiptId: string;
570
+ } | {
571
+ Failure: {
572
+ [x: string]: any;
573
+ error_message?: string | undefined;
574
+ error_type?: string | undefined;
575
+ };
576
+ };
577
+ metadata?: {
578
+ gas_profile?: {
579
+ [x: string]: any;
580
+ cost?: string | undefined;
581
+ cost_category?: string | undefined;
582
+ gas_used?: string | undefined;
583
+ }[] | null | undefined;
584
+ version: 4;
585
+ contracts?: ({
586
+ local: string;
587
+ } | {
588
+ global_hash: string;
589
+ } | {
590
+ global_account_id: string;
591
+ } | null)[] | null | undefined;
592
+ } | {
593
+ gas_profile?: {
594
+ [x: string]: any;
595
+ cost?: string | undefined;
596
+ cost_category?: string | undefined;
597
+ gas_used?: string | undefined;
598
+ }[] | null | undefined;
599
+ version: 1 | 2 | 3;
600
+ } | {
601
+ gas_profile?: {
602
+ [x: string]: any;
603
+ cost?: string | undefined;
604
+ cost_category?: string | undefined;
605
+ gas_used?: string | undefined;
606
+ }[] | null | undefined;
607
+ version: number;
608
+ } | undefined;
609
+ };
610
+ block_hash: string;
611
+ proof: {
612
+ hash: string;
613
+ direction: "Left" | "Right";
614
+ }[];
615
+ };
616
+ receipts_outcome: {
617
+ id: string;
618
+ outcome: {
619
+ logs: string[];
620
+ receipt_ids: string[];
621
+ gas_burnt: number;
622
+ tokens_burnt: string;
623
+ executor_id: string;
624
+ status: "Pending" | "Unknown" | {
625
+ SuccessValue: string;
626
+ } | {
627
+ SuccessReceiptId: string;
628
+ } | {
629
+ Failure: {
630
+ [x: string]: any;
631
+ error_message?: string | undefined;
632
+ error_type?: string | undefined;
633
+ };
634
+ };
635
+ metadata?: {
636
+ gas_profile?: {
637
+ [x: string]: any;
638
+ cost?: string | undefined;
639
+ cost_category?: string | undefined;
640
+ gas_used?: string | undefined;
641
+ }[] | null | undefined;
642
+ version: 4;
643
+ contracts?: ({
644
+ local: string;
645
+ } | {
646
+ global_hash: string;
647
+ } | {
648
+ global_account_id: string;
649
+ } | null)[] | null | undefined;
650
+ } | {
651
+ gas_profile?: {
652
+ [x: string]: any;
653
+ cost?: string | undefined;
654
+ cost_category?: string | undefined;
655
+ gas_used?: string | undefined;
656
+ }[] | null | undefined;
657
+ version: 1 | 2 | 3;
658
+ } | {
659
+ gas_profile?: {
660
+ [x: string]: any;
661
+ cost?: string | undefined;
662
+ cost_category?: string | undefined;
663
+ gas_used?: string | undefined;
664
+ }[] | null | undefined;
665
+ version: number;
666
+ } | undefined;
667
+ };
668
+ block_hash: string;
669
+ proof: {
670
+ hash: string;
671
+ direction: "Left" | "Right";
672
+ }[];
673
+ }[];
674
+ } | {
675
+ final_execution_status: "EXECUTED";
676
+ status: "Pending" | "Unknown" | {
677
+ SuccessValue: string;
678
+ } | {
679
+ SuccessReceiptId: string;
680
+ } | {
681
+ Failure: {
682
+ [x: string]: any;
683
+ error_message?: string | undefined;
684
+ error_type?: string | undefined;
685
+ };
686
+ };
687
+ transaction: {
688
+ signer_id: string;
689
+ public_key: string;
690
+ nonce: number;
691
+ receiver_id: string;
692
+ actions: ("CreateAccount" | {
693
+ CreateAccount: Record<string, never>;
694
+ } | {
695
+ Transfer: {
696
+ deposit: string;
697
+ };
698
+ } | {
699
+ FunctionCall: {
700
+ method_name: string;
701
+ args: string;
702
+ gas: number;
703
+ deposit: string;
704
+ };
705
+ } | {
706
+ DeployContract: {
707
+ code: string;
708
+ };
709
+ } | {
710
+ DeployGlobalContract: {
711
+ code: string;
712
+ };
713
+ } | {
714
+ DeployGlobalContractByAccountId: {
715
+ code: string;
716
+ };
717
+ } | {
718
+ Stake: {
719
+ stake: string;
720
+ public_key: string;
721
+ };
722
+ } | {
723
+ AddKey: {
724
+ public_key: string;
725
+ access_key: {
726
+ nonce: number;
727
+ permission: "FullAccess" | {
728
+ FunctionCall: {
729
+ receiver_id: string;
730
+ method_names: string[];
731
+ allowance?: string | null | undefined;
732
+ };
733
+ } | {
734
+ GasKeyFunctionCall: {
735
+ balance: string;
736
+ num_nonces: number;
737
+ receiver_id: string;
738
+ method_names: string[];
739
+ allowance?: string | null | undefined;
740
+ };
741
+ } | {
742
+ GasKeyFullAccess: {
743
+ balance: string;
744
+ num_nonces: number;
745
+ };
746
+ };
747
+ };
748
+ };
749
+ } | {
750
+ DeleteKey: {
751
+ public_key: string;
752
+ };
753
+ } | {
754
+ DeleteAccount: {
755
+ beneficiary_id: string;
756
+ };
757
+ } | {
758
+ UseGlobalContract: {
759
+ code_hash: string;
760
+ };
761
+ } | {
762
+ UseGlobalContractByAccountId: {
763
+ account_id: string;
764
+ };
765
+ } | {
766
+ Delegate: {
767
+ delegate_action: {
768
+ sender_id: string;
769
+ receiver_id: string;
770
+ actions: any[];
771
+ nonce: number;
772
+ max_block_height: number;
773
+ public_key: string;
774
+ };
775
+ signature: string;
776
+ };
777
+ } | {
778
+ DeterministicStateInit: {
779
+ deposit: string;
780
+ };
781
+ } | {
782
+ TransferToGasKey: {
783
+ public_key: string;
784
+ deposit: string;
785
+ };
786
+ } | {
787
+ WithdrawFromGasKey: {
788
+ public_key: string;
789
+ amount: string;
790
+ };
791
+ } | {
792
+ DelegateV2: {
793
+ delegate_action: {
794
+ V2: {
795
+ sender_id: string;
796
+ receiver_id: string;
797
+ actions: any[];
798
+ nonce: {
799
+ Nonce: {
800
+ nonce: number;
801
+ };
802
+ } | {
803
+ GasKeyNonce: {
804
+ nonce: number;
805
+ nonce_index: number;
806
+ };
807
+ };
808
+ max_block_height: number;
809
+ public_key: string;
810
+ };
811
+ };
812
+ signature: string;
813
+ };
814
+ })[];
815
+ signature: string;
816
+ hash: string;
817
+ priority_fee?: number | undefined;
818
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
819
+ };
820
+ transaction_outcome: {
821
+ id: string;
822
+ outcome: {
823
+ logs: string[];
824
+ receipt_ids: string[];
825
+ gas_burnt: number;
826
+ tokens_burnt: string;
827
+ executor_id: string;
828
+ status: "Pending" | "Unknown" | {
829
+ SuccessValue: string;
830
+ } | {
831
+ SuccessReceiptId: string;
832
+ } | {
833
+ Failure: {
834
+ [x: string]: any;
835
+ error_message?: string | undefined;
836
+ error_type?: string | undefined;
837
+ };
838
+ };
839
+ metadata?: {
840
+ gas_profile?: {
841
+ [x: string]: any;
842
+ cost?: string | undefined;
843
+ cost_category?: string | undefined;
844
+ gas_used?: string | undefined;
845
+ }[] | null | undefined;
846
+ version: 4;
847
+ contracts?: ({
848
+ local: string;
849
+ } | {
850
+ global_hash: string;
851
+ } | {
852
+ global_account_id: string;
853
+ } | null)[] | null | undefined;
854
+ } | {
855
+ gas_profile?: {
856
+ [x: string]: any;
857
+ cost?: string | undefined;
858
+ cost_category?: string | undefined;
859
+ gas_used?: string | undefined;
860
+ }[] | null | undefined;
861
+ version: 1 | 2 | 3;
862
+ } | {
863
+ gas_profile?: {
864
+ [x: string]: any;
865
+ cost?: string | undefined;
866
+ cost_category?: string | undefined;
867
+ gas_used?: string | undefined;
868
+ }[] | null | undefined;
869
+ version: number;
870
+ } | undefined;
871
+ };
872
+ block_hash: string;
873
+ proof: {
874
+ hash: string;
875
+ direction: "Left" | "Right";
876
+ }[];
877
+ };
878
+ receipts_outcome: {
879
+ id: string;
880
+ outcome: {
881
+ logs: string[];
882
+ receipt_ids: string[];
883
+ gas_burnt: number;
884
+ tokens_burnt: string;
885
+ executor_id: string;
886
+ status: "Pending" | "Unknown" | {
887
+ SuccessValue: string;
888
+ } | {
889
+ SuccessReceiptId: string;
890
+ } | {
891
+ Failure: {
892
+ [x: string]: any;
893
+ error_message?: string | undefined;
894
+ error_type?: string | undefined;
895
+ };
896
+ };
897
+ metadata?: {
898
+ gas_profile?: {
899
+ [x: string]: any;
900
+ cost?: string | undefined;
901
+ cost_category?: string | undefined;
902
+ gas_used?: string | undefined;
903
+ }[] | null | undefined;
904
+ version: 4;
905
+ contracts?: ({
906
+ local: string;
907
+ } | {
908
+ global_hash: string;
909
+ } | {
910
+ global_account_id: string;
911
+ } | null)[] | null | undefined;
912
+ } | {
913
+ gas_profile?: {
914
+ [x: string]: any;
915
+ cost?: string | undefined;
916
+ cost_category?: string | undefined;
917
+ gas_used?: string | undefined;
918
+ }[] | null | undefined;
919
+ version: 1 | 2 | 3;
920
+ } | {
921
+ gas_profile?: {
922
+ [x: string]: any;
923
+ cost?: string | undefined;
924
+ cost_category?: string | undefined;
925
+ gas_used?: string | undefined;
926
+ }[] | null | undefined;
927
+ version: number;
928
+ } | undefined;
929
+ };
930
+ block_hash: string;
931
+ proof: {
932
+ hash: string;
933
+ direction: "Left" | "Right";
934
+ }[];
935
+ }[];
936
+ } | {
937
+ final_execution_status: "FINAL";
938
+ status: "Pending" | "Unknown" | {
939
+ SuccessValue: string;
940
+ } | {
941
+ SuccessReceiptId: string;
942
+ } | {
943
+ Failure: {
944
+ [x: string]: any;
945
+ error_message?: string | undefined;
946
+ error_type?: string | undefined;
947
+ };
948
+ };
949
+ transaction: {
950
+ signer_id: string;
951
+ public_key: string;
952
+ nonce: number;
953
+ receiver_id: string;
954
+ actions: ("CreateAccount" | {
955
+ CreateAccount: Record<string, never>;
956
+ } | {
957
+ Transfer: {
958
+ deposit: string;
959
+ };
960
+ } | {
961
+ FunctionCall: {
962
+ method_name: string;
963
+ args: string;
964
+ gas: number;
965
+ deposit: string;
966
+ };
967
+ } | {
968
+ DeployContract: {
969
+ code: string;
970
+ };
971
+ } | {
972
+ DeployGlobalContract: {
973
+ code: string;
974
+ };
975
+ } | {
976
+ DeployGlobalContractByAccountId: {
977
+ code: string;
978
+ };
979
+ } | {
980
+ Stake: {
981
+ stake: string;
982
+ public_key: string;
983
+ };
984
+ } | {
985
+ AddKey: {
986
+ public_key: string;
987
+ access_key: {
988
+ nonce: number;
989
+ permission: "FullAccess" | {
990
+ FunctionCall: {
991
+ receiver_id: string;
992
+ method_names: string[];
993
+ allowance?: string | null | undefined;
994
+ };
995
+ } | {
996
+ GasKeyFunctionCall: {
997
+ balance: string;
998
+ num_nonces: number;
999
+ receiver_id: string;
1000
+ method_names: string[];
1001
+ allowance?: string | null | undefined;
1002
+ };
1003
+ } | {
1004
+ GasKeyFullAccess: {
1005
+ balance: string;
1006
+ num_nonces: number;
1007
+ };
1008
+ };
1009
+ };
1010
+ };
1011
+ } | {
1012
+ DeleteKey: {
1013
+ public_key: string;
1014
+ };
1015
+ } | {
1016
+ DeleteAccount: {
1017
+ beneficiary_id: string;
1018
+ };
1019
+ } | {
1020
+ UseGlobalContract: {
1021
+ code_hash: string;
1022
+ };
1023
+ } | {
1024
+ UseGlobalContractByAccountId: {
1025
+ account_id: string;
1026
+ };
1027
+ } | {
1028
+ Delegate: {
1029
+ delegate_action: {
1030
+ sender_id: string;
1031
+ receiver_id: string;
1032
+ actions: any[];
1033
+ nonce: number;
1034
+ max_block_height: number;
1035
+ public_key: string;
1036
+ };
1037
+ signature: string;
1038
+ };
1039
+ } | {
1040
+ DeterministicStateInit: {
1041
+ deposit: string;
1042
+ };
1043
+ } | {
1044
+ TransferToGasKey: {
1045
+ public_key: string;
1046
+ deposit: string;
1047
+ };
1048
+ } | {
1049
+ WithdrawFromGasKey: {
1050
+ public_key: string;
1051
+ amount: string;
1052
+ };
1053
+ } | {
1054
+ DelegateV2: {
1055
+ delegate_action: {
1056
+ V2: {
1057
+ sender_id: string;
1058
+ receiver_id: string;
1059
+ actions: any[];
1060
+ nonce: {
1061
+ Nonce: {
1062
+ nonce: number;
1063
+ };
1064
+ } | {
1065
+ GasKeyNonce: {
1066
+ nonce: number;
1067
+ nonce_index: number;
1068
+ };
1069
+ };
1070
+ max_block_height: number;
1071
+ public_key: string;
1072
+ };
1073
+ };
1074
+ signature: string;
1075
+ };
1076
+ })[];
1077
+ signature: string;
1078
+ hash: string;
1079
+ priority_fee?: number | undefined;
1080
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1081
+ };
1082
+ transaction_outcome: {
1083
+ id: string;
1084
+ outcome: {
1085
+ logs: string[];
1086
+ receipt_ids: string[];
1087
+ gas_burnt: number;
1088
+ tokens_burnt: string;
1089
+ executor_id: string;
1090
+ status: "Pending" | "Unknown" | {
1091
+ SuccessValue: string;
1092
+ } | {
1093
+ SuccessReceiptId: string;
1094
+ } | {
1095
+ Failure: {
1096
+ [x: string]: any;
1097
+ error_message?: string | undefined;
1098
+ error_type?: string | undefined;
1099
+ };
1100
+ };
1101
+ metadata?: {
1102
+ gas_profile?: {
1103
+ [x: string]: any;
1104
+ cost?: string | undefined;
1105
+ cost_category?: string | undefined;
1106
+ gas_used?: string | undefined;
1107
+ }[] | null | undefined;
1108
+ version: 4;
1109
+ contracts?: ({
1110
+ local: string;
1111
+ } | {
1112
+ global_hash: string;
1113
+ } | {
1114
+ global_account_id: string;
1115
+ } | null)[] | null | undefined;
1116
+ } | {
1117
+ gas_profile?: {
1118
+ [x: string]: any;
1119
+ cost?: string | undefined;
1120
+ cost_category?: string | undefined;
1121
+ gas_used?: string | undefined;
1122
+ }[] | null | undefined;
1123
+ version: 1 | 2 | 3;
1124
+ } | {
1125
+ gas_profile?: {
1126
+ [x: string]: any;
1127
+ cost?: string | undefined;
1128
+ cost_category?: string | undefined;
1129
+ gas_used?: string | undefined;
1130
+ }[] | null | undefined;
1131
+ version: number;
1132
+ } | undefined;
1133
+ };
1134
+ block_hash: string;
1135
+ proof: {
1136
+ hash: string;
1137
+ direction: "Left" | "Right";
1138
+ }[];
1139
+ };
1140
+ receipts_outcome: {
1141
+ id: string;
1142
+ outcome: {
1143
+ logs: string[];
1144
+ receipt_ids: string[];
1145
+ gas_burnt: number;
1146
+ tokens_burnt: string;
1147
+ executor_id: string;
1148
+ status: "Pending" | "Unknown" | {
1149
+ SuccessValue: string;
1150
+ } | {
1151
+ SuccessReceiptId: string;
1152
+ } | {
1153
+ Failure: {
1154
+ [x: string]: any;
1155
+ error_message?: string | undefined;
1156
+ error_type?: string | undefined;
1157
+ };
1158
+ };
1159
+ metadata?: {
1160
+ gas_profile?: {
1161
+ [x: string]: any;
1162
+ cost?: string | undefined;
1163
+ cost_category?: string | undefined;
1164
+ gas_used?: string | undefined;
1165
+ }[] | null | undefined;
1166
+ version: 4;
1167
+ contracts?: ({
1168
+ local: string;
1169
+ } | {
1170
+ global_hash: string;
1171
+ } | {
1172
+ global_account_id: string;
1173
+ } | null)[] | null | undefined;
1174
+ } | {
1175
+ gas_profile?: {
1176
+ [x: string]: any;
1177
+ cost?: string | undefined;
1178
+ cost_category?: string | undefined;
1179
+ gas_used?: string | undefined;
1180
+ }[] | null | undefined;
1181
+ version: 1 | 2 | 3;
1182
+ } | {
1183
+ gas_profile?: {
1184
+ [x: string]: any;
1185
+ cost?: string | undefined;
1186
+ cost_category?: string | undefined;
1187
+ gas_used?: string | undefined;
1188
+ }[] | null | undefined;
1189
+ version: number;
1190
+ } | undefined;
1191
+ };
1192
+ block_hash: string;
1193
+ proof: {
1194
+ hash: string;
1195
+ direction: "Left" | "Right";
1196
+ }[];
1197
+ }[];
1198
+ }>;
1199
+ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string, receiver_id: ft_args_params_interface["receiver_id"], msg: ft_args_params_interface["msg"], amount: ft_args_params_interface["amount"]): Promise<{
1200
+ final_execution_status: "NONE";
1201
+ transaction?: {
1202
+ hash: string;
1203
+ signer_id: string;
1204
+ receiver_id: string;
1205
+ nonce: number;
1206
+ } | undefined;
1207
+ status?: "Pending" | "Unknown" | {
1208
+ SuccessValue: string;
1209
+ } | {
1210
+ SuccessReceiptId: string;
1211
+ } | {
1212
+ Failure: {
1213
+ [x: string]: any;
1214
+ error_message?: string | undefined;
1215
+ error_type?: string | undefined;
1216
+ };
1217
+ } | undefined;
1218
+ transaction_outcome?: {
1219
+ id: string;
1220
+ outcome: {
1221
+ logs: string[];
1222
+ receipt_ids: string[];
1223
+ gas_burnt: number;
1224
+ tokens_burnt: string;
1225
+ executor_id: string;
1226
+ status: "Pending" | "Unknown" | {
1227
+ SuccessValue: string;
1228
+ } | {
1229
+ SuccessReceiptId: string;
1230
+ } | {
1231
+ Failure: {
1232
+ [x: string]: any;
1233
+ error_message?: string | undefined;
1234
+ error_type?: string | undefined;
1235
+ };
1236
+ };
1237
+ metadata?: {
1238
+ gas_profile?: {
1239
+ [x: string]: any;
1240
+ cost?: string | undefined;
1241
+ cost_category?: string | undefined;
1242
+ gas_used?: string | undefined;
1243
+ }[] | null | undefined;
1244
+ version: 4;
1245
+ contracts?: ({
1246
+ local: string;
1247
+ } | {
1248
+ global_hash: string;
1249
+ } | {
1250
+ global_account_id: string;
1251
+ } | null)[] | null | undefined;
1252
+ } | {
1253
+ gas_profile?: {
1254
+ [x: string]: any;
1255
+ cost?: string | undefined;
1256
+ cost_category?: string | undefined;
1257
+ gas_used?: string | undefined;
1258
+ }[] | null | undefined;
1259
+ version: 1 | 2 | 3;
1260
+ } | {
1261
+ gas_profile?: {
1262
+ [x: string]: any;
1263
+ cost?: string | undefined;
1264
+ cost_category?: string | undefined;
1265
+ gas_used?: string | undefined;
1266
+ }[] | null | undefined;
1267
+ version: number;
1268
+ } | undefined;
1269
+ };
1270
+ block_hash: string;
1271
+ proof: {
1272
+ hash: string;
1273
+ direction: "Left" | "Right";
1274
+ }[];
1275
+ } | undefined;
1276
+ receipts_outcome?: {
1277
+ id: string;
1278
+ outcome: {
1279
+ logs: string[];
1280
+ receipt_ids: string[];
1281
+ gas_burnt: number;
1282
+ tokens_burnt: string;
1283
+ executor_id: string;
1284
+ status: "Pending" | "Unknown" | {
1285
+ SuccessValue: string;
1286
+ } | {
1287
+ SuccessReceiptId: string;
1288
+ } | {
1289
+ Failure: {
1290
+ [x: string]: any;
1291
+ error_message?: string | undefined;
1292
+ error_type?: string | undefined;
1293
+ };
1294
+ };
1295
+ metadata?: {
1296
+ gas_profile?: {
1297
+ [x: string]: any;
1298
+ cost?: string | undefined;
1299
+ cost_category?: string | undefined;
1300
+ gas_used?: string | undefined;
1301
+ }[] | null | undefined;
1302
+ version: 4;
1303
+ contracts?: ({
1304
+ local: string;
1305
+ } | {
1306
+ global_hash: string;
1307
+ } | {
1308
+ global_account_id: string;
1309
+ } | null)[] | null | undefined;
1310
+ } | {
1311
+ gas_profile?: {
1312
+ [x: string]: any;
1313
+ cost?: string | undefined;
1314
+ cost_category?: string | undefined;
1315
+ gas_used?: string | undefined;
1316
+ }[] | null | undefined;
1317
+ version: 1 | 2 | 3;
1318
+ } | {
1319
+ gas_profile?: {
1320
+ [x: string]: any;
1321
+ cost?: string | undefined;
1322
+ cost_category?: string | undefined;
1323
+ gas_used?: string | undefined;
1324
+ }[] | null | undefined;
1325
+ version: number;
1326
+ } | undefined;
1327
+ };
1328
+ block_hash: string;
1329
+ proof: {
1330
+ hash: string;
1331
+ direction: "Left" | "Right";
1332
+ }[];
1333
+ }[] | undefined;
15
1334
  } | {
16
1335
  final_execution_status: "INCLUDED";
17
1336
  transaction?: {
@@ -20,6 +1339,133 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
20
1339
  receiver_id: string;
21
1340
  nonce: number;
22
1341
  } | undefined;
1342
+ status?: "Pending" | "Unknown" | {
1343
+ SuccessValue: string;
1344
+ } | {
1345
+ SuccessReceiptId: string;
1346
+ } | {
1347
+ Failure: {
1348
+ [x: string]: any;
1349
+ error_message?: string | undefined;
1350
+ error_type?: string | undefined;
1351
+ };
1352
+ } | undefined;
1353
+ transaction_outcome?: {
1354
+ id: string;
1355
+ outcome: {
1356
+ logs: string[];
1357
+ receipt_ids: string[];
1358
+ gas_burnt: number;
1359
+ tokens_burnt: string;
1360
+ executor_id: string;
1361
+ status: "Pending" | "Unknown" | {
1362
+ SuccessValue: string;
1363
+ } | {
1364
+ SuccessReceiptId: string;
1365
+ } | {
1366
+ Failure: {
1367
+ [x: string]: any;
1368
+ error_message?: string | undefined;
1369
+ error_type?: string | undefined;
1370
+ };
1371
+ };
1372
+ metadata?: {
1373
+ gas_profile?: {
1374
+ [x: string]: any;
1375
+ cost?: string | undefined;
1376
+ cost_category?: string | undefined;
1377
+ gas_used?: string | undefined;
1378
+ }[] | null | undefined;
1379
+ version: 4;
1380
+ contracts?: ({
1381
+ local: string;
1382
+ } | {
1383
+ global_hash: string;
1384
+ } | {
1385
+ global_account_id: string;
1386
+ } | null)[] | null | undefined;
1387
+ } | {
1388
+ gas_profile?: {
1389
+ [x: string]: any;
1390
+ cost?: string | undefined;
1391
+ cost_category?: string | undefined;
1392
+ gas_used?: string | undefined;
1393
+ }[] | null | undefined;
1394
+ version: 1 | 2 | 3;
1395
+ } | {
1396
+ gas_profile?: {
1397
+ [x: string]: any;
1398
+ cost?: string | undefined;
1399
+ cost_category?: string | undefined;
1400
+ gas_used?: string | undefined;
1401
+ }[] | null | undefined;
1402
+ version: number;
1403
+ } | undefined;
1404
+ };
1405
+ block_hash: string;
1406
+ proof: {
1407
+ hash: string;
1408
+ direction: "Left" | "Right";
1409
+ }[];
1410
+ } | undefined;
1411
+ receipts_outcome?: {
1412
+ id: string;
1413
+ outcome: {
1414
+ logs: string[];
1415
+ receipt_ids: string[];
1416
+ gas_burnt: number;
1417
+ tokens_burnt: string;
1418
+ executor_id: string;
1419
+ status: "Pending" | "Unknown" | {
1420
+ SuccessValue: string;
1421
+ } | {
1422
+ SuccessReceiptId: string;
1423
+ } | {
1424
+ Failure: {
1425
+ [x: string]: any;
1426
+ error_message?: string | undefined;
1427
+ error_type?: string | undefined;
1428
+ };
1429
+ };
1430
+ metadata?: {
1431
+ gas_profile?: {
1432
+ [x: string]: any;
1433
+ cost?: string | undefined;
1434
+ cost_category?: string | undefined;
1435
+ gas_used?: string | undefined;
1436
+ }[] | null | undefined;
1437
+ version: 4;
1438
+ contracts?: ({
1439
+ local: string;
1440
+ } | {
1441
+ global_hash: string;
1442
+ } | {
1443
+ global_account_id: string;
1444
+ } | null)[] | null | undefined;
1445
+ } | {
1446
+ gas_profile?: {
1447
+ [x: string]: any;
1448
+ cost?: string | undefined;
1449
+ cost_category?: string | undefined;
1450
+ gas_used?: string | undefined;
1451
+ }[] | null | undefined;
1452
+ version: 1 | 2 | 3;
1453
+ } | {
1454
+ gas_profile?: {
1455
+ [x: string]: any;
1456
+ cost?: string | undefined;
1457
+ cost_category?: string | undefined;
1458
+ gas_used?: string | undefined;
1459
+ }[] | null | undefined;
1460
+ version: number;
1461
+ } | undefined;
1462
+ };
1463
+ block_hash: string;
1464
+ proof: {
1465
+ hash: string;
1466
+ direction: "Left" | "Right";
1467
+ }[];
1468
+ }[] | undefined;
23
1469
  } | {
24
1470
  final_execution_status: "INCLUDED_FINAL";
25
1471
  transaction?: {
@@ -28,9 +1474,136 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
28
1474
  receiver_id: string;
29
1475
  nonce: number;
30
1476
  } | undefined;
1477
+ status?: "Pending" | "Unknown" | {
1478
+ SuccessValue: string;
1479
+ } | {
1480
+ SuccessReceiptId: string;
1481
+ } | {
1482
+ Failure: {
1483
+ [x: string]: any;
1484
+ error_message?: string | undefined;
1485
+ error_type?: string | undefined;
1486
+ };
1487
+ } | undefined;
1488
+ transaction_outcome?: {
1489
+ id: string;
1490
+ outcome: {
1491
+ logs: string[];
1492
+ receipt_ids: string[];
1493
+ gas_burnt: number;
1494
+ tokens_burnt: string;
1495
+ executor_id: string;
1496
+ status: "Pending" | "Unknown" | {
1497
+ SuccessValue: string;
1498
+ } | {
1499
+ SuccessReceiptId: string;
1500
+ } | {
1501
+ Failure: {
1502
+ [x: string]: any;
1503
+ error_message?: string | undefined;
1504
+ error_type?: string | undefined;
1505
+ };
1506
+ };
1507
+ metadata?: {
1508
+ gas_profile?: {
1509
+ [x: string]: any;
1510
+ cost?: string | undefined;
1511
+ cost_category?: string | undefined;
1512
+ gas_used?: string | undefined;
1513
+ }[] | null | undefined;
1514
+ version: 4;
1515
+ contracts?: ({
1516
+ local: string;
1517
+ } | {
1518
+ global_hash: string;
1519
+ } | {
1520
+ global_account_id: string;
1521
+ } | null)[] | null | undefined;
1522
+ } | {
1523
+ gas_profile?: {
1524
+ [x: string]: any;
1525
+ cost?: string | undefined;
1526
+ cost_category?: string | undefined;
1527
+ gas_used?: string | undefined;
1528
+ }[] | null | undefined;
1529
+ version: 1 | 2 | 3;
1530
+ } | {
1531
+ gas_profile?: {
1532
+ [x: string]: any;
1533
+ cost?: string | undefined;
1534
+ cost_category?: string | undefined;
1535
+ gas_used?: string | undefined;
1536
+ }[] | null | undefined;
1537
+ version: number;
1538
+ } | undefined;
1539
+ };
1540
+ block_hash: string;
1541
+ proof: {
1542
+ hash: string;
1543
+ direction: "Left" | "Right";
1544
+ }[];
1545
+ } | undefined;
1546
+ receipts_outcome?: {
1547
+ id: string;
1548
+ outcome: {
1549
+ logs: string[];
1550
+ receipt_ids: string[];
1551
+ gas_burnt: number;
1552
+ tokens_burnt: string;
1553
+ executor_id: string;
1554
+ status: "Pending" | "Unknown" | {
1555
+ SuccessValue: string;
1556
+ } | {
1557
+ SuccessReceiptId: string;
1558
+ } | {
1559
+ Failure: {
1560
+ [x: string]: any;
1561
+ error_message?: string | undefined;
1562
+ error_type?: string | undefined;
1563
+ };
1564
+ };
1565
+ metadata?: {
1566
+ gas_profile?: {
1567
+ [x: string]: any;
1568
+ cost?: string | undefined;
1569
+ cost_category?: string | undefined;
1570
+ gas_used?: string | undefined;
1571
+ }[] | null | undefined;
1572
+ version: 4;
1573
+ contracts?: ({
1574
+ local: string;
1575
+ } | {
1576
+ global_hash: string;
1577
+ } | {
1578
+ global_account_id: string;
1579
+ } | null)[] | null | undefined;
1580
+ } | {
1581
+ gas_profile?: {
1582
+ [x: string]: any;
1583
+ cost?: string | undefined;
1584
+ cost_category?: string | undefined;
1585
+ gas_used?: string | undefined;
1586
+ }[] | null | undefined;
1587
+ version: 1 | 2 | 3;
1588
+ } | {
1589
+ gas_profile?: {
1590
+ [x: string]: any;
1591
+ cost?: string | undefined;
1592
+ cost_category?: string | undefined;
1593
+ gas_used?: string | undefined;
1594
+ }[] | null | undefined;
1595
+ version: number;
1596
+ } | undefined;
1597
+ };
1598
+ block_hash: string;
1599
+ proof: {
1600
+ hash: string;
1601
+ direction: "Left" | "Right";
1602
+ }[];
1603
+ }[] | undefined;
31
1604
  } | {
32
1605
  final_execution_status: "EXECUTED_OPTIMISTIC";
33
- status: "Unknown" | "Pending" | {
1606
+ status: "Pending" | "Unknown" | {
34
1607
  SuccessValue: string;
35
1608
  } | {
36
1609
  SuccessReceiptId: string;
@@ -87,6 +1660,19 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
87
1660
  method_names: string[];
88
1661
  allowance?: string | null | undefined;
89
1662
  };
1663
+ } | {
1664
+ GasKeyFunctionCall: {
1665
+ balance: string;
1666
+ num_nonces: number;
1667
+ receiver_id: string;
1668
+ method_names: string[];
1669
+ allowance?: string | null | undefined;
1670
+ };
1671
+ } | {
1672
+ GasKeyFullAccess: {
1673
+ balance: string;
1674
+ num_nonces: number;
1675
+ };
90
1676
  };
91
1677
  };
92
1678
  };
@@ -107,25 +1693,59 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
107
1693
  account_id: string;
108
1694
  };
109
1695
  } | {
110
- Delegate: {
1696
+ Delegate: {
1697
+ delegate_action: {
1698
+ sender_id: string;
1699
+ receiver_id: string;
1700
+ actions: any[];
1701
+ nonce: number;
1702
+ max_block_height: number;
1703
+ public_key: string;
1704
+ };
1705
+ signature: string;
1706
+ };
1707
+ } | {
1708
+ DeterministicStateInit: {
1709
+ deposit: string;
1710
+ };
1711
+ } | {
1712
+ TransferToGasKey: {
1713
+ public_key: string;
1714
+ deposit: string;
1715
+ };
1716
+ } | {
1717
+ WithdrawFromGasKey: {
1718
+ public_key: string;
1719
+ amount: string;
1720
+ };
1721
+ } | {
1722
+ DelegateV2: {
111
1723
  delegate_action: {
112
- sender_id: string;
113
- receiver_id: string;
114
- actions: any[];
115
- nonce: number;
116
- max_block_height: number;
117
- public_key: string;
1724
+ V2: {
1725
+ sender_id: string;
1726
+ receiver_id: string;
1727
+ actions: any[];
1728
+ nonce: {
1729
+ Nonce: {
1730
+ nonce: number;
1731
+ };
1732
+ } | {
1733
+ GasKeyNonce: {
1734
+ nonce: number;
1735
+ nonce_index: number;
1736
+ };
1737
+ };
1738
+ max_block_height: number;
1739
+ public_key: string;
1740
+ };
118
1741
  };
119
1742
  signature: string;
120
1743
  };
121
- } | {
122
- DeterministicStateInit: {
123
- deposit: string;
124
- };
125
1744
  })[];
126
1745
  signature: string;
127
1746
  hash: string;
128
1747
  priority_fee?: number | undefined;
1748
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
129
1749
  };
130
1750
  transaction_outcome: {
131
1751
  id: string;
@@ -135,7 +1755,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
135
1755
  gas_burnt: number;
136
1756
  tokens_burnt: string;
137
1757
  executor_id: string;
138
- status: "Unknown" | "Pending" | {
1758
+ status: "Pending" | "Unknown" | {
139
1759
  SuccessValue: string;
140
1760
  } | {
141
1761
  SuccessReceiptId: string;
@@ -147,13 +1767,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
147
1767
  };
148
1768
  };
149
1769
  metadata?: {
150
- version: number;
151
1770
  gas_profile?: {
152
1771
  [x: string]: any;
153
1772
  cost?: string | undefined;
154
1773
  cost_category?: string | undefined;
155
1774
  gas_used?: string | undefined;
156
1775
  }[] | null | undefined;
1776
+ version: 4;
1777
+ contracts?: ({
1778
+ local: string;
1779
+ } | {
1780
+ global_hash: string;
1781
+ } | {
1782
+ global_account_id: string;
1783
+ } | null)[] | null | undefined;
1784
+ } | {
1785
+ gas_profile?: {
1786
+ [x: string]: any;
1787
+ cost?: string | undefined;
1788
+ cost_category?: string | undefined;
1789
+ gas_used?: string | undefined;
1790
+ }[] | null | undefined;
1791
+ version: 1 | 2 | 3;
1792
+ } | {
1793
+ gas_profile?: {
1794
+ [x: string]: any;
1795
+ cost?: string | undefined;
1796
+ cost_category?: string | undefined;
1797
+ gas_used?: string | undefined;
1798
+ }[] | null | undefined;
1799
+ version: number;
157
1800
  } | undefined;
158
1801
  };
159
1802
  block_hash: string;
@@ -170,7 +1813,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
170
1813
  gas_burnt: number;
171
1814
  tokens_burnt: string;
172
1815
  executor_id: string;
173
- status: "Unknown" | "Pending" | {
1816
+ status: "Pending" | "Unknown" | {
174
1817
  SuccessValue: string;
175
1818
  } | {
176
1819
  SuccessReceiptId: string;
@@ -182,13 +1825,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
182
1825
  };
183
1826
  };
184
1827
  metadata?: {
185
- version: number;
186
1828
  gas_profile?: {
187
1829
  [x: string]: any;
188
1830
  cost?: string | undefined;
189
1831
  cost_category?: string | undefined;
190
1832
  gas_used?: string | undefined;
191
1833
  }[] | null | undefined;
1834
+ version: 4;
1835
+ contracts?: ({
1836
+ local: string;
1837
+ } | {
1838
+ global_hash: string;
1839
+ } | {
1840
+ global_account_id: string;
1841
+ } | null)[] | null | undefined;
1842
+ } | {
1843
+ gas_profile?: {
1844
+ [x: string]: any;
1845
+ cost?: string | undefined;
1846
+ cost_category?: string | undefined;
1847
+ gas_used?: string | undefined;
1848
+ }[] | null | undefined;
1849
+ version: 1 | 2 | 3;
1850
+ } | {
1851
+ gas_profile?: {
1852
+ [x: string]: any;
1853
+ cost?: string | undefined;
1854
+ cost_category?: string | undefined;
1855
+ gas_used?: string | undefined;
1856
+ }[] | null | undefined;
1857
+ version: number;
192
1858
  } | undefined;
193
1859
  };
194
1860
  block_hash: string;
@@ -199,7 +1865,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
199
1865
  }[];
200
1866
  } | {
201
1867
  final_execution_status: "EXECUTED";
202
- status: "Unknown" | "Pending" | {
1868
+ status: "Pending" | "Unknown" | {
203
1869
  SuccessValue: string;
204
1870
  } | {
205
1871
  SuccessReceiptId: string;
@@ -256,6 +1922,19 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
256
1922
  method_names: string[];
257
1923
  allowance?: string | null | undefined;
258
1924
  };
1925
+ } | {
1926
+ GasKeyFunctionCall: {
1927
+ balance: string;
1928
+ num_nonces: number;
1929
+ receiver_id: string;
1930
+ method_names: string[];
1931
+ allowance?: string | null | undefined;
1932
+ };
1933
+ } | {
1934
+ GasKeyFullAccess: {
1935
+ balance: string;
1936
+ num_nonces: number;
1937
+ };
259
1938
  };
260
1939
  };
261
1940
  };
@@ -291,10 +1970,44 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
291
1970
  DeterministicStateInit: {
292
1971
  deposit: string;
293
1972
  };
1973
+ } | {
1974
+ TransferToGasKey: {
1975
+ public_key: string;
1976
+ deposit: string;
1977
+ };
1978
+ } | {
1979
+ WithdrawFromGasKey: {
1980
+ public_key: string;
1981
+ amount: string;
1982
+ };
1983
+ } | {
1984
+ DelegateV2: {
1985
+ delegate_action: {
1986
+ V2: {
1987
+ sender_id: string;
1988
+ receiver_id: string;
1989
+ actions: any[];
1990
+ nonce: {
1991
+ Nonce: {
1992
+ nonce: number;
1993
+ };
1994
+ } | {
1995
+ GasKeyNonce: {
1996
+ nonce: number;
1997
+ nonce_index: number;
1998
+ };
1999
+ };
2000
+ max_block_height: number;
2001
+ public_key: string;
2002
+ };
2003
+ };
2004
+ signature: string;
2005
+ };
294
2006
  })[];
295
2007
  signature: string;
296
2008
  hash: string;
297
2009
  priority_fee?: number | undefined;
2010
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
298
2011
  };
299
2012
  transaction_outcome: {
300
2013
  id: string;
@@ -304,7 +2017,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
304
2017
  gas_burnt: number;
305
2018
  tokens_burnt: string;
306
2019
  executor_id: string;
307
- status: "Unknown" | "Pending" | {
2020
+ status: "Pending" | "Unknown" | {
308
2021
  SuccessValue: string;
309
2022
  } | {
310
2023
  SuccessReceiptId: string;
@@ -316,13 +2029,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
316
2029
  };
317
2030
  };
318
2031
  metadata?: {
319
- version: number;
320
2032
  gas_profile?: {
321
2033
  [x: string]: any;
322
2034
  cost?: string | undefined;
323
2035
  cost_category?: string | undefined;
324
2036
  gas_used?: string | undefined;
325
2037
  }[] | null | undefined;
2038
+ version: 4;
2039
+ contracts?: ({
2040
+ local: string;
2041
+ } | {
2042
+ global_hash: string;
2043
+ } | {
2044
+ global_account_id: string;
2045
+ } | null)[] | null | undefined;
2046
+ } | {
2047
+ gas_profile?: {
2048
+ [x: string]: any;
2049
+ cost?: string | undefined;
2050
+ cost_category?: string | undefined;
2051
+ gas_used?: string | undefined;
2052
+ }[] | null | undefined;
2053
+ version: 1 | 2 | 3;
2054
+ } | {
2055
+ gas_profile?: {
2056
+ [x: string]: any;
2057
+ cost?: string | undefined;
2058
+ cost_category?: string | undefined;
2059
+ gas_used?: string | undefined;
2060
+ }[] | null | undefined;
2061
+ version: number;
326
2062
  } | undefined;
327
2063
  };
328
2064
  block_hash: string;
@@ -339,7 +2075,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
339
2075
  gas_burnt: number;
340
2076
  tokens_burnt: string;
341
2077
  executor_id: string;
342
- status: "Unknown" | "Pending" | {
2078
+ status: "Pending" | "Unknown" | {
343
2079
  SuccessValue: string;
344
2080
  } | {
345
2081
  SuccessReceiptId: string;
@@ -351,13 +2087,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
351
2087
  };
352
2088
  };
353
2089
  metadata?: {
354
- version: number;
355
2090
  gas_profile?: {
356
2091
  [x: string]: any;
357
2092
  cost?: string | undefined;
358
2093
  cost_category?: string | undefined;
359
2094
  gas_used?: string | undefined;
360
2095
  }[] | null | undefined;
2096
+ version: 4;
2097
+ contracts?: ({
2098
+ local: string;
2099
+ } | {
2100
+ global_hash: string;
2101
+ } | {
2102
+ global_account_id: string;
2103
+ } | null)[] | null | undefined;
2104
+ } | {
2105
+ gas_profile?: {
2106
+ [x: string]: any;
2107
+ cost?: string | undefined;
2108
+ cost_category?: string | undefined;
2109
+ gas_used?: string | undefined;
2110
+ }[] | null | undefined;
2111
+ version: 1 | 2 | 3;
2112
+ } | {
2113
+ gas_profile?: {
2114
+ [x: string]: any;
2115
+ cost?: string | undefined;
2116
+ cost_category?: string | undefined;
2117
+ gas_used?: string | undefined;
2118
+ }[] | null | undefined;
2119
+ version: number;
361
2120
  } | undefined;
362
2121
  };
363
2122
  block_hash: string;
@@ -368,7 +2127,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
368
2127
  }[];
369
2128
  } | {
370
2129
  final_execution_status: "FINAL";
371
- status: "Unknown" | "Pending" | {
2130
+ status: "Pending" | "Unknown" | {
372
2131
  SuccessValue: string;
373
2132
  } | {
374
2133
  SuccessReceiptId: string;
@@ -425,6 +2184,19 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
425
2184
  method_names: string[];
426
2185
  allowance?: string | null | undefined;
427
2186
  };
2187
+ } | {
2188
+ GasKeyFunctionCall: {
2189
+ balance: string;
2190
+ num_nonces: number;
2191
+ receiver_id: string;
2192
+ method_names: string[];
2193
+ allowance?: string | null | undefined;
2194
+ };
2195
+ } | {
2196
+ GasKeyFullAccess: {
2197
+ balance: string;
2198
+ num_nonces: number;
2199
+ };
428
2200
  };
429
2201
  };
430
2202
  };
@@ -460,10 +2232,44 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
460
2232
  DeterministicStateInit: {
461
2233
  deposit: string;
462
2234
  };
2235
+ } | {
2236
+ TransferToGasKey: {
2237
+ public_key: string;
2238
+ deposit: string;
2239
+ };
2240
+ } | {
2241
+ WithdrawFromGasKey: {
2242
+ public_key: string;
2243
+ amount: string;
2244
+ };
2245
+ } | {
2246
+ DelegateV2: {
2247
+ delegate_action: {
2248
+ V2: {
2249
+ sender_id: string;
2250
+ receiver_id: string;
2251
+ actions: any[];
2252
+ nonce: {
2253
+ Nonce: {
2254
+ nonce: number;
2255
+ };
2256
+ } | {
2257
+ GasKeyNonce: {
2258
+ nonce: number;
2259
+ nonce_index: number;
2260
+ };
2261
+ };
2262
+ max_block_height: number;
2263
+ public_key: string;
2264
+ };
2265
+ };
2266
+ signature: string;
2267
+ };
463
2268
  })[];
464
2269
  signature: string;
465
2270
  hash: string;
466
2271
  priority_fee?: number | undefined;
2272
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
467
2273
  };
468
2274
  transaction_outcome: {
469
2275
  id: string;
@@ -473,7 +2279,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
473
2279
  gas_burnt: number;
474
2280
  tokens_burnt: string;
475
2281
  executor_id: string;
476
- status: "Unknown" | "Pending" | {
2282
+ status: "Pending" | "Unknown" | {
477
2283
  SuccessValue: string;
478
2284
  } | {
479
2285
  SuccessReceiptId: string;
@@ -485,13 +2291,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
485
2291
  };
486
2292
  };
487
2293
  metadata?: {
488
- version: number;
489
2294
  gas_profile?: {
490
2295
  [x: string]: any;
491
2296
  cost?: string | undefined;
492
2297
  cost_category?: string | undefined;
493
2298
  gas_used?: string | undefined;
494
2299
  }[] | null | undefined;
2300
+ version: 4;
2301
+ contracts?: ({
2302
+ local: string;
2303
+ } | {
2304
+ global_hash: string;
2305
+ } | {
2306
+ global_account_id: string;
2307
+ } | null)[] | null | undefined;
2308
+ } | {
2309
+ gas_profile?: {
2310
+ [x: string]: any;
2311
+ cost?: string | undefined;
2312
+ cost_category?: string | undefined;
2313
+ gas_used?: string | undefined;
2314
+ }[] | null | undefined;
2315
+ version: 1 | 2 | 3;
2316
+ } | {
2317
+ gas_profile?: {
2318
+ [x: string]: any;
2319
+ cost?: string | undefined;
2320
+ cost_category?: string | undefined;
2321
+ gas_used?: string | undefined;
2322
+ }[] | null | undefined;
2323
+ version: number;
495
2324
  } | undefined;
496
2325
  };
497
2326
  block_hash: string;
@@ -508,7 +2337,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
508
2337
  gas_burnt: number;
509
2338
  tokens_burnt: string;
510
2339
  executor_id: string;
511
- status: "Unknown" | "Pending" | {
2340
+ status: "Pending" | "Unknown" | {
512
2341
  SuccessValue: string;
513
2342
  } | {
514
2343
  SuccessReceiptId: string;
@@ -520,13 +2349,36 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
520
2349
  };
521
2350
  };
522
2351
  metadata?: {
523
- version: number;
524
2352
  gas_profile?: {
525
2353
  [x: string]: any;
526
2354
  cost?: string | undefined;
527
2355
  cost_category?: string | undefined;
528
2356
  gas_used?: string | undefined;
529
2357
  }[] | null | undefined;
2358
+ version: 4;
2359
+ contracts?: ({
2360
+ local: string;
2361
+ } | {
2362
+ global_hash: string;
2363
+ } | {
2364
+ global_account_id: string;
2365
+ } | null)[] | null | undefined;
2366
+ } | {
2367
+ gas_profile?: {
2368
+ [x: string]: any;
2369
+ cost?: string | undefined;
2370
+ cost_category?: string | undefined;
2371
+ gas_used?: string | undefined;
2372
+ }[] | null | undefined;
2373
+ version: 1 | 2 | 3;
2374
+ } | {
2375
+ gas_profile?: {
2376
+ [x: string]: any;
2377
+ cost?: string | undefined;
2378
+ cost_category?: string | undefined;
2379
+ gas_used?: string | undefined;
2380
+ }[] | null | undefined;
2381
+ version: number;
530
2382
  } | undefined;
531
2383
  };
532
2384
  block_hash: string;
@@ -536,7 +2388,7 @@ export declare function ft_transfer_fun(near: Near, ft_contractId: string, recei
536
2388
  }[];
537
2389
  }[];
538
2390
  }>;
539
- export declare function ft_transfer_call_fun(near: Near, ft_contractId: string, receiver_id: ft_args_params_interface["receiver_id"], msg: ft_args_params_interface["msg"], amount: ft_args_params_interface["amount"]): Promise<{
2391
+ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string): Promise<{
540
2392
  final_execution_status: "NONE";
541
2393
  transaction?: {
542
2394
  hash: string;
@@ -544,25 +2396,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
544
2396
  receiver_id: string;
545
2397
  nonce: number;
546
2398
  } | undefined;
547
- } | {
548
- final_execution_status: "INCLUDED";
549
- transaction?: {
550
- hash: string;
551
- signer_id: string;
552
- receiver_id: string;
553
- nonce: number;
554
- } | undefined;
555
- } | {
556
- final_execution_status: "INCLUDED_FINAL";
557
- transaction?: {
558
- hash: string;
559
- signer_id: string;
560
- receiver_id: string;
561
- nonce: number;
562
- } | undefined;
563
- } | {
564
- final_execution_status: "EXECUTED_OPTIMISTIC";
565
- status: "Unknown" | "Pending" | {
2399
+ status?: "Pending" | "Unknown" | {
566
2400
  SuccessValue: string;
567
2401
  } | {
568
2402
  SuccessReceiptId: string;
@@ -572,94 +2406,8 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
572
2406
  error_message?: string | undefined;
573
2407
  error_type?: string | undefined;
574
2408
  };
575
- };
576
- transaction: {
577
- signer_id: string;
578
- public_key: string;
579
- nonce: number;
580
- receiver_id: string;
581
- actions: ("CreateAccount" | {
582
- CreateAccount: Record<string, never>;
583
- } | {
584
- Transfer: {
585
- deposit: string;
586
- };
587
- } | {
588
- FunctionCall: {
589
- method_name: string;
590
- args: string;
591
- gas: number;
592
- deposit: string;
593
- };
594
- } | {
595
- DeployContract: {
596
- code: string;
597
- };
598
- } | {
599
- DeployGlobalContract: {
600
- code: string;
601
- };
602
- } | {
603
- DeployGlobalContractByAccountId: {
604
- code: string;
605
- };
606
- } | {
607
- Stake: {
608
- stake: string;
609
- public_key: string;
610
- };
611
- } | {
612
- AddKey: {
613
- public_key: string;
614
- access_key: {
615
- nonce: number;
616
- permission: "FullAccess" | {
617
- FunctionCall: {
618
- receiver_id: string;
619
- method_names: string[];
620
- allowance?: string | null | undefined;
621
- };
622
- };
623
- };
624
- };
625
- } | {
626
- DeleteKey: {
627
- public_key: string;
628
- };
629
- } | {
630
- DeleteAccount: {
631
- beneficiary_id: string;
632
- };
633
- } | {
634
- UseGlobalContract: {
635
- code_hash: string;
636
- };
637
- } | {
638
- UseGlobalContractByAccountId: {
639
- account_id: string;
640
- };
641
- } | {
642
- Delegate: {
643
- delegate_action: {
644
- sender_id: string;
645
- receiver_id: string;
646
- actions: any[];
647
- nonce: number;
648
- max_block_height: number;
649
- public_key: string;
650
- };
651
- signature: string;
652
- };
653
- } | {
654
- DeterministicStateInit: {
655
- deposit: string;
656
- };
657
- })[];
658
- signature: string;
659
- hash: string;
660
- priority_fee?: number | undefined;
661
- };
662
- transaction_outcome: {
2409
+ } | undefined;
2410
+ transaction_outcome?: {
663
2411
  id: string;
664
2412
  outcome: {
665
2413
  logs: string[];
@@ -667,7 +2415,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
667
2415
  gas_burnt: number;
668
2416
  tokens_burnt: string;
669
2417
  executor_id: string;
670
- status: "Unknown" | "Pending" | {
2418
+ status: "Pending" | "Unknown" | {
671
2419
  SuccessValue: string;
672
2420
  } | {
673
2421
  SuccessReceiptId: string;
@@ -679,13 +2427,36 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
679
2427
  };
680
2428
  };
681
2429
  metadata?: {
682
- version: number;
683
2430
  gas_profile?: {
684
2431
  [x: string]: any;
685
2432
  cost?: string | undefined;
686
2433
  cost_category?: string | undefined;
687
2434
  gas_used?: string | undefined;
688
2435
  }[] | null | undefined;
2436
+ version: 4;
2437
+ contracts?: ({
2438
+ local: string;
2439
+ } | {
2440
+ global_hash: string;
2441
+ } | {
2442
+ global_account_id: string;
2443
+ } | null)[] | null | undefined;
2444
+ } | {
2445
+ gas_profile?: {
2446
+ [x: string]: any;
2447
+ cost?: string | undefined;
2448
+ cost_category?: string | undefined;
2449
+ gas_used?: string | undefined;
2450
+ }[] | null | undefined;
2451
+ version: 1 | 2 | 3;
2452
+ } | {
2453
+ gas_profile?: {
2454
+ [x: string]: any;
2455
+ cost?: string | undefined;
2456
+ cost_category?: string | undefined;
2457
+ gas_used?: string | undefined;
2458
+ }[] | null | undefined;
2459
+ version: number;
689
2460
  } | undefined;
690
2461
  };
691
2462
  block_hash: string;
@@ -693,8 +2464,8 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
693
2464
  hash: string;
694
2465
  direction: "Left" | "Right";
695
2466
  }[];
696
- };
697
- receipts_outcome: {
2467
+ } | undefined;
2468
+ receipts_outcome?: {
698
2469
  id: string;
699
2470
  outcome: {
700
2471
  logs: string[];
@@ -702,7 +2473,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
702
2473
  gas_burnt: number;
703
2474
  tokens_burnt: string;
704
2475
  executor_id: string;
705
- status: "Unknown" | "Pending" | {
2476
+ status: "Pending" | "Unknown" | {
706
2477
  SuccessValue: string;
707
2478
  } | {
708
2479
  SuccessReceiptId: string;
@@ -714,13 +2485,36 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
714
2485
  };
715
2486
  };
716
2487
  metadata?: {
717
- version: number;
718
2488
  gas_profile?: {
719
2489
  [x: string]: any;
720
2490
  cost?: string | undefined;
721
2491
  cost_category?: string | undefined;
722
2492
  gas_used?: string | undefined;
723
2493
  }[] | null | undefined;
2494
+ version: 4;
2495
+ contracts?: ({
2496
+ local: string;
2497
+ } | {
2498
+ global_hash: string;
2499
+ } | {
2500
+ global_account_id: string;
2501
+ } | null)[] | null | undefined;
2502
+ } | {
2503
+ gas_profile?: {
2504
+ [x: string]: any;
2505
+ cost?: string | undefined;
2506
+ cost_category?: string | undefined;
2507
+ gas_used?: string | undefined;
2508
+ }[] | null | undefined;
2509
+ version: 1 | 2 | 3;
2510
+ } | {
2511
+ gas_profile?: {
2512
+ [x: string]: any;
2513
+ cost?: string | undefined;
2514
+ cost_category?: string | undefined;
2515
+ gas_used?: string | undefined;
2516
+ }[] | null | undefined;
2517
+ version: number;
724
2518
  } | undefined;
725
2519
  };
726
2520
  block_hash: string;
@@ -728,10 +2522,16 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
728
2522
  hash: string;
729
2523
  direction: "Left" | "Right";
730
2524
  }[];
731
- }[];
2525
+ }[] | undefined;
732
2526
  } | {
733
- final_execution_status: "EXECUTED";
734
- status: "Unknown" | "Pending" | {
2527
+ final_execution_status: "INCLUDED";
2528
+ transaction?: {
2529
+ hash: string;
2530
+ signer_id: string;
2531
+ receiver_id: string;
2532
+ nonce: number;
2533
+ } | undefined;
2534
+ status?: "Pending" | "Unknown" | {
735
2535
  SuccessValue: string;
736
2536
  } | {
737
2537
  SuccessReceiptId: string;
@@ -741,94 +2541,8 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
741
2541
  error_message?: string | undefined;
742
2542
  error_type?: string | undefined;
743
2543
  };
744
- };
745
- transaction: {
746
- signer_id: string;
747
- public_key: string;
748
- nonce: number;
749
- receiver_id: string;
750
- actions: ("CreateAccount" | {
751
- CreateAccount: Record<string, never>;
752
- } | {
753
- Transfer: {
754
- deposit: string;
755
- };
756
- } | {
757
- FunctionCall: {
758
- method_name: string;
759
- args: string;
760
- gas: number;
761
- deposit: string;
762
- };
763
- } | {
764
- DeployContract: {
765
- code: string;
766
- };
767
- } | {
768
- DeployGlobalContract: {
769
- code: string;
770
- };
771
- } | {
772
- DeployGlobalContractByAccountId: {
773
- code: string;
774
- };
775
- } | {
776
- Stake: {
777
- stake: string;
778
- public_key: string;
779
- };
780
- } | {
781
- AddKey: {
782
- public_key: string;
783
- access_key: {
784
- nonce: number;
785
- permission: "FullAccess" | {
786
- FunctionCall: {
787
- receiver_id: string;
788
- method_names: string[];
789
- allowance?: string | null | undefined;
790
- };
791
- };
792
- };
793
- };
794
- } | {
795
- DeleteKey: {
796
- public_key: string;
797
- };
798
- } | {
799
- DeleteAccount: {
800
- beneficiary_id: string;
801
- };
802
- } | {
803
- UseGlobalContract: {
804
- code_hash: string;
805
- };
806
- } | {
807
- UseGlobalContractByAccountId: {
808
- account_id: string;
809
- };
810
- } | {
811
- Delegate: {
812
- delegate_action: {
813
- sender_id: string;
814
- receiver_id: string;
815
- actions: any[];
816
- nonce: number;
817
- max_block_height: number;
818
- public_key: string;
819
- };
820
- signature: string;
821
- };
822
- } | {
823
- DeterministicStateInit: {
824
- deposit: string;
825
- };
826
- })[];
827
- signature: string;
828
- hash: string;
829
- priority_fee?: number | undefined;
830
- };
831
- transaction_outcome: {
2544
+ } | undefined;
2545
+ transaction_outcome?: {
832
2546
  id: string;
833
2547
  outcome: {
834
2548
  logs: string[];
@@ -836,7 +2550,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
836
2550
  gas_burnt: number;
837
2551
  tokens_burnt: string;
838
2552
  executor_id: string;
839
- status: "Unknown" | "Pending" | {
2553
+ status: "Pending" | "Unknown" | {
840
2554
  SuccessValue: string;
841
2555
  } | {
842
2556
  SuccessReceiptId: string;
@@ -848,13 +2562,36 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
848
2562
  };
849
2563
  };
850
2564
  metadata?: {
851
- version: number;
852
2565
  gas_profile?: {
853
2566
  [x: string]: any;
854
2567
  cost?: string | undefined;
855
2568
  cost_category?: string | undefined;
856
2569
  gas_used?: string | undefined;
857
2570
  }[] | null | undefined;
2571
+ version: 4;
2572
+ contracts?: ({
2573
+ local: string;
2574
+ } | {
2575
+ global_hash: string;
2576
+ } | {
2577
+ global_account_id: string;
2578
+ } | null)[] | null | undefined;
2579
+ } | {
2580
+ gas_profile?: {
2581
+ [x: string]: any;
2582
+ cost?: string | undefined;
2583
+ cost_category?: string | undefined;
2584
+ gas_used?: string | undefined;
2585
+ }[] | null | undefined;
2586
+ version: 1 | 2 | 3;
2587
+ } | {
2588
+ gas_profile?: {
2589
+ [x: string]: any;
2590
+ cost?: string | undefined;
2591
+ cost_category?: string | undefined;
2592
+ gas_used?: string | undefined;
2593
+ }[] | null | undefined;
2594
+ version: number;
858
2595
  } | undefined;
859
2596
  };
860
2597
  block_hash: string;
@@ -862,8 +2599,8 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
862
2599
  hash: string;
863
2600
  direction: "Left" | "Right";
864
2601
  }[];
865
- };
866
- receipts_outcome: {
2602
+ } | undefined;
2603
+ receipts_outcome?: {
867
2604
  id: string;
868
2605
  outcome: {
869
2606
  logs: string[];
@@ -871,7 +2608,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
871
2608
  gas_burnt: number;
872
2609
  tokens_burnt: string;
873
2610
  executor_id: string;
874
- status: "Unknown" | "Pending" | {
2611
+ status: "Pending" | "Unknown" | {
875
2612
  SuccessValue: string;
876
2613
  } | {
877
2614
  SuccessReceiptId: string;
@@ -883,121 +2620,64 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
883
2620
  };
884
2621
  };
885
2622
  metadata?: {
886
- version: number;
887
2623
  gas_profile?: {
888
2624
  [x: string]: any;
889
2625
  cost?: string | undefined;
890
2626
  cost_category?: string | undefined;
891
2627
  gas_used?: string | undefined;
892
2628
  }[] | null | undefined;
893
- } | undefined;
894
- };
895
- block_hash: string;
896
- proof: {
897
- hash: string;
898
- direction: "Left" | "Right";
899
- }[];
900
- }[];
901
- } | {
902
- final_execution_status: "FINAL";
903
- status: "Unknown" | "Pending" | {
904
- SuccessValue: string;
905
- } | {
906
- SuccessReceiptId: string;
907
- } | {
908
- Failure: {
909
- [x: string]: any;
910
- error_message?: string | undefined;
911
- error_type?: string | undefined;
912
- };
913
- };
914
- transaction: {
915
- signer_id: string;
916
- public_key: string;
917
- nonce: number;
918
- receiver_id: string;
919
- actions: ("CreateAccount" | {
920
- CreateAccount: Record<string, never>;
921
- } | {
922
- Transfer: {
923
- deposit: string;
924
- };
925
- } | {
926
- FunctionCall: {
927
- method_name: string;
928
- args: string;
929
- gas: number;
930
- deposit: string;
931
- };
932
- } | {
933
- DeployContract: {
934
- code: string;
935
- };
936
- } | {
937
- DeployGlobalContract: {
938
- code: string;
939
- };
940
- } | {
941
- DeployGlobalContractByAccountId: {
942
- code: string;
943
- };
944
- } | {
945
- Stake: {
946
- stake: string;
947
- public_key: string;
948
- };
949
- } | {
950
- AddKey: {
951
- public_key: string;
952
- access_key: {
953
- nonce: number;
954
- permission: "FullAccess" | {
955
- FunctionCall: {
956
- receiver_id: string;
957
- method_names: string[];
958
- allowance?: string | null | undefined;
959
- };
960
- };
961
- };
962
- };
963
- } | {
964
- DeleteKey: {
965
- public_key: string;
966
- };
967
- } | {
968
- DeleteAccount: {
969
- beneficiary_id: string;
970
- };
971
- } | {
972
- UseGlobalContract: {
973
- code_hash: string;
974
- };
975
- } | {
976
- UseGlobalContractByAccountId: {
977
- account_id: string;
978
- };
979
- } | {
980
- Delegate: {
981
- delegate_action: {
982
- sender_id: string;
983
- receiver_id: string;
984
- actions: any[];
985
- nonce: number;
986
- max_block_height: number;
987
- public_key: string;
988
- };
989
- signature: string;
990
- };
991
- } | {
992
- DeterministicStateInit: {
993
- deposit: string;
994
- };
995
- })[];
996
- signature: string;
2629
+ version: 4;
2630
+ contracts?: ({
2631
+ local: string;
2632
+ } | {
2633
+ global_hash: string;
2634
+ } | {
2635
+ global_account_id: string;
2636
+ } | null)[] | null | undefined;
2637
+ } | {
2638
+ gas_profile?: {
2639
+ [x: string]: any;
2640
+ cost?: string | undefined;
2641
+ cost_category?: string | undefined;
2642
+ gas_used?: string | undefined;
2643
+ }[] | null | undefined;
2644
+ version: 1 | 2 | 3;
2645
+ } | {
2646
+ gas_profile?: {
2647
+ [x: string]: any;
2648
+ cost?: string | undefined;
2649
+ cost_category?: string | undefined;
2650
+ gas_used?: string | undefined;
2651
+ }[] | null | undefined;
2652
+ version: number;
2653
+ } | undefined;
2654
+ };
2655
+ block_hash: string;
2656
+ proof: {
2657
+ hash: string;
2658
+ direction: "Left" | "Right";
2659
+ }[];
2660
+ }[] | undefined;
2661
+ } | {
2662
+ final_execution_status: "INCLUDED_FINAL";
2663
+ transaction?: {
997
2664
  hash: string;
998
- priority_fee?: number | undefined;
999
- };
1000
- transaction_outcome: {
2665
+ signer_id: string;
2666
+ receiver_id: string;
2667
+ nonce: number;
2668
+ } | undefined;
2669
+ status?: "Pending" | "Unknown" | {
2670
+ SuccessValue: string;
2671
+ } | {
2672
+ SuccessReceiptId: string;
2673
+ } | {
2674
+ Failure: {
2675
+ [x: string]: any;
2676
+ error_message?: string | undefined;
2677
+ error_type?: string | undefined;
2678
+ };
2679
+ } | undefined;
2680
+ transaction_outcome?: {
1001
2681
  id: string;
1002
2682
  outcome: {
1003
2683
  logs: string[];
@@ -1005,7 +2685,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1005
2685
  gas_burnt: number;
1006
2686
  tokens_burnt: string;
1007
2687
  executor_id: string;
1008
- status: "Unknown" | "Pending" | {
2688
+ status: "Pending" | "Unknown" | {
1009
2689
  SuccessValue: string;
1010
2690
  } | {
1011
2691
  SuccessReceiptId: string;
@@ -1017,13 +2697,36 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1017
2697
  };
1018
2698
  };
1019
2699
  metadata?: {
1020
- version: number;
1021
2700
  gas_profile?: {
1022
2701
  [x: string]: any;
1023
2702
  cost?: string | undefined;
1024
2703
  cost_category?: string | undefined;
1025
2704
  gas_used?: string | undefined;
1026
2705
  }[] | null | undefined;
2706
+ version: 4;
2707
+ contracts?: ({
2708
+ local: string;
2709
+ } | {
2710
+ global_hash: string;
2711
+ } | {
2712
+ global_account_id: string;
2713
+ } | null)[] | null | undefined;
2714
+ } | {
2715
+ gas_profile?: {
2716
+ [x: string]: any;
2717
+ cost?: string | undefined;
2718
+ cost_category?: string | undefined;
2719
+ gas_used?: string | undefined;
2720
+ }[] | null | undefined;
2721
+ version: 1 | 2 | 3;
2722
+ } | {
2723
+ gas_profile?: {
2724
+ [x: string]: any;
2725
+ cost?: string | undefined;
2726
+ cost_category?: string | undefined;
2727
+ gas_used?: string | undefined;
2728
+ }[] | null | undefined;
2729
+ version: number;
1027
2730
  } | undefined;
1028
2731
  };
1029
2732
  block_hash: string;
@@ -1031,8 +2734,8 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1031
2734
  hash: string;
1032
2735
  direction: "Left" | "Right";
1033
2736
  }[];
1034
- };
1035
- receipts_outcome: {
2737
+ } | undefined;
2738
+ receipts_outcome?: {
1036
2739
  id: string;
1037
2740
  outcome: {
1038
2741
  logs: string[];
@@ -1040,7 +2743,7 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1040
2743
  gas_burnt: number;
1041
2744
  tokens_burnt: string;
1042
2745
  executor_id: string;
1043
- status: "Unknown" | "Pending" | {
2746
+ status: "Pending" | "Unknown" | {
1044
2747
  SuccessValue: string;
1045
2748
  } | {
1046
2749
  SuccessReceiptId: string;
@@ -1052,13 +2755,36 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1052
2755
  };
1053
2756
  };
1054
2757
  metadata?: {
1055
- version: number;
1056
2758
  gas_profile?: {
1057
2759
  [x: string]: any;
1058
2760
  cost?: string | undefined;
1059
2761
  cost_category?: string | undefined;
1060
2762
  gas_used?: string | undefined;
1061
2763
  }[] | null | undefined;
2764
+ version: 4;
2765
+ contracts?: ({
2766
+ local: string;
2767
+ } | {
2768
+ global_hash: string;
2769
+ } | {
2770
+ global_account_id: string;
2771
+ } | null)[] | null | undefined;
2772
+ } | {
2773
+ gas_profile?: {
2774
+ [x: string]: any;
2775
+ cost?: string | undefined;
2776
+ cost_category?: string | undefined;
2777
+ gas_used?: string | undefined;
2778
+ }[] | null | undefined;
2779
+ version: 1 | 2 | 3;
2780
+ } | {
2781
+ gas_profile?: {
2782
+ [x: string]: any;
2783
+ cost?: string | undefined;
2784
+ cost_category?: string | undefined;
2785
+ gas_used?: string | undefined;
2786
+ }[] | null | undefined;
2787
+ version: number;
1062
2788
  } | undefined;
1063
2789
  };
1064
2790
  block_hash: string;
@@ -1066,35 +2792,10 @@ export declare function ft_transfer_call_fun(near: Near, ft_contractId: string,
1066
2792
  hash: string;
1067
2793
  direction: "Left" | "Right";
1068
2794
  }[];
1069
- }[];
1070
- }>;
1071
- export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string): Promise<{
1072
- final_execution_status: "NONE";
1073
- transaction?: {
1074
- hash: string;
1075
- signer_id: string;
1076
- receiver_id: string;
1077
- nonce: number;
1078
- } | undefined;
1079
- } | {
1080
- final_execution_status: "INCLUDED";
1081
- transaction?: {
1082
- hash: string;
1083
- signer_id: string;
1084
- receiver_id: string;
1085
- nonce: number;
1086
- } | undefined;
1087
- } | {
1088
- final_execution_status: "INCLUDED_FINAL";
1089
- transaction?: {
1090
- hash: string;
1091
- signer_id: string;
1092
- receiver_id: string;
1093
- nonce: number;
1094
- } | undefined;
2795
+ }[] | undefined;
1095
2796
  } | {
1096
2797
  final_execution_status: "EXECUTED_OPTIMISTIC";
1097
- status: "Unknown" | "Pending" | {
2798
+ status: "Pending" | "Unknown" | {
1098
2799
  SuccessValue: string;
1099
2800
  } | {
1100
2801
  SuccessReceiptId: string;
@@ -1151,6 +2852,19 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1151
2852
  method_names: string[];
1152
2853
  allowance?: string | null | undefined;
1153
2854
  };
2855
+ } | {
2856
+ GasKeyFunctionCall: {
2857
+ balance: string;
2858
+ num_nonces: number;
2859
+ receiver_id: string;
2860
+ method_names: string[];
2861
+ allowance?: string | null | undefined;
2862
+ };
2863
+ } | {
2864
+ GasKeyFullAccess: {
2865
+ balance: string;
2866
+ num_nonces: number;
2867
+ };
1154
2868
  };
1155
2869
  };
1156
2870
  };
@@ -1186,10 +2900,44 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1186
2900
  DeterministicStateInit: {
1187
2901
  deposit: string;
1188
2902
  };
2903
+ } | {
2904
+ TransferToGasKey: {
2905
+ public_key: string;
2906
+ deposit: string;
2907
+ };
2908
+ } | {
2909
+ WithdrawFromGasKey: {
2910
+ public_key: string;
2911
+ amount: string;
2912
+ };
2913
+ } | {
2914
+ DelegateV2: {
2915
+ delegate_action: {
2916
+ V2: {
2917
+ sender_id: string;
2918
+ receiver_id: string;
2919
+ actions: any[];
2920
+ nonce: {
2921
+ Nonce: {
2922
+ nonce: number;
2923
+ };
2924
+ } | {
2925
+ GasKeyNonce: {
2926
+ nonce: number;
2927
+ nonce_index: number;
2928
+ };
2929
+ };
2930
+ max_block_height: number;
2931
+ public_key: string;
2932
+ };
2933
+ };
2934
+ signature: string;
2935
+ };
1189
2936
  })[];
1190
2937
  signature: string;
1191
2938
  hash: string;
1192
2939
  priority_fee?: number | undefined;
2940
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1193
2941
  };
1194
2942
  transaction_outcome: {
1195
2943
  id: string;
@@ -1199,7 +2947,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1199
2947
  gas_burnt: number;
1200
2948
  tokens_burnt: string;
1201
2949
  executor_id: string;
1202
- status: "Unknown" | "Pending" | {
2950
+ status: "Pending" | "Unknown" | {
1203
2951
  SuccessValue: string;
1204
2952
  } | {
1205
2953
  SuccessReceiptId: string;
@@ -1211,13 +2959,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1211
2959
  };
1212
2960
  };
1213
2961
  metadata?: {
1214
- version: number;
1215
2962
  gas_profile?: {
1216
2963
  [x: string]: any;
1217
2964
  cost?: string | undefined;
1218
2965
  cost_category?: string | undefined;
1219
2966
  gas_used?: string | undefined;
1220
2967
  }[] | null | undefined;
2968
+ version: 4;
2969
+ contracts?: ({
2970
+ local: string;
2971
+ } | {
2972
+ global_hash: string;
2973
+ } | {
2974
+ global_account_id: string;
2975
+ } | null)[] | null | undefined;
2976
+ } | {
2977
+ gas_profile?: {
2978
+ [x: string]: any;
2979
+ cost?: string | undefined;
2980
+ cost_category?: string | undefined;
2981
+ gas_used?: string | undefined;
2982
+ }[] | null | undefined;
2983
+ version: 1 | 2 | 3;
2984
+ } | {
2985
+ gas_profile?: {
2986
+ [x: string]: any;
2987
+ cost?: string | undefined;
2988
+ cost_category?: string | undefined;
2989
+ gas_used?: string | undefined;
2990
+ }[] | null | undefined;
2991
+ version: number;
1221
2992
  } | undefined;
1222
2993
  };
1223
2994
  block_hash: string;
@@ -1234,7 +3005,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1234
3005
  gas_burnt: number;
1235
3006
  tokens_burnt: string;
1236
3007
  executor_id: string;
1237
- status: "Unknown" | "Pending" | {
3008
+ status: "Pending" | "Unknown" | {
1238
3009
  SuccessValue: string;
1239
3010
  } | {
1240
3011
  SuccessReceiptId: string;
@@ -1246,13 +3017,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1246
3017
  };
1247
3018
  };
1248
3019
  metadata?: {
1249
- version: number;
1250
3020
  gas_profile?: {
1251
3021
  [x: string]: any;
1252
3022
  cost?: string | undefined;
1253
3023
  cost_category?: string | undefined;
1254
3024
  gas_used?: string | undefined;
1255
3025
  }[] | null | undefined;
3026
+ version: 4;
3027
+ contracts?: ({
3028
+ local: string;
3029
+ } | {
3030
+ global_hash: string;
3031
+ } | {
3032
+ global_account_id: string;
3033
+ } | null)[] | null | undefined;
3034
+ } | {
3035
+ gas_profile?: {
3036
+ [x: string]: any;
3037
+ cost?: string | undefined;
3038
+ cost_category?: string | undefined;
3039
+ gas_used?: string | undefined;
3040
+ }[] | null | undefined;
3041
+ version: 1 | 2 | 3;
3042
+ } | {
3043
+ gas_profile?: {
3044
+ [x: string]: any;
3045
+ cost?: string | undefined;
3046
+ cost_category?: string | undefined;
3047
+ gas_used?: string | undefined;
3048
+ }[] | null | undefined;
3049
+ version: number;
1256
3050
  } | undefined;
1257
3051
  };
1258
3052
  block_hash: string;
@@ -1263,7 +3057,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1263
3057
  }[];
1264
3058
  } | {
1265
3059
  final_execution_status: "EXECUTED";
1266
- status: "Unknown" | "Pending" | {
3060
+ status: "Pending" | "Unknown" | {
1267
3061
  SuccessValue: string;
1268
3062
  } | {
1269
3063
  SuccessReceiptId: string;
@@ -1320,6 +3114,19 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1320
3114
  method_names: string[];
1321
3115
  allowance?: string | null | undefined;
1322
3116
  };
3117
+ } | {
3118
+ GasKeyFunctionCall: {
3119
+ balance: string;
3120
+ num_nonces: number;
3121
+ receiver_id: string;
3122
+ method_names: string[];
3123
+ allowance?: string | null | undefined;
3124
+ };
3125
+ } | {
3126
+ GasKeyFullAccess: {
3127
+ balance: string;
3128
+ num_nonces: number;
3129
+ };
1323
3130
  };
1324
3131
  };
1325
3132
  };
@@ -1355,10 +3162,44 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1355
3162
  DeterministicStateInit: {
1356
3163
  deposit: string;
1357
3164
  };
3165
+ } | {
3166
+ TransferToGasKey: {
3167
+ public_key: string;
3168
+ deposit: string;
3169
+ };
3170
+ } | {
3171
+ WithdrawFromGasKey: {
3172
+ public_key: string;
3173
+ amount: string;
3174
+ };
3175
+ } | {
3176
+ DelegateV2: {
3177
+ delegate_action: {
3178
+ V2: {
3179
+ sender_id: string;
3180
+ receiver_id: string;
3181
+ actions: any[];
3182
+ nonce: {
3183
+ Nonce: {
3184
+ nonce: number;
3185
+ };
3186
+ } | {
3187
+ GasKeyNonce: {
3188
+ nonce: number;
3189
+ nonce_index: number;
3190
+ };
3191
+ };
3192
+ max_block_height: number;
3193
+ public_key: string;
3194
+ };
3195
+ };
3196
+ signature: string;
3197
+ };
1358
3198
  })[];
1359
3199
  signature: string;
1360
3200
  hash: string;
1361
3201
  priority_fee?: number | undefined;
3202
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1362
3203
  };
1363
3204
  transaction_outcome: {
1364
3205
  id: string;
@@ -1368,7 +3209,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1368
3209
  gas_burnt: number;
1369
3210
  tokens_burnt: string;
1370
3211
  executor_id: string;
1371
- status: "Unknown" | "Pending" | {
3212
+ status: "Pending" | "Unknown" | {
1372
3213
  SuccessValue: string;
1373
3214
  } | {
1374
3215
  SuccessReceiptId: string;
@@ -1380,13 +3221,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1380
3221
  };
1381
3222
  };
1382
3223
  metadata?: {
1383
- version: number;
1384
3224
  gas_profile?: {
1385
3225
  [x: string]: any;
1386
3226
  cost?: string | undefined;
1387
3227
  cost_category?: string | undefined;
1388
3228
  gas_used?: string | undefined;
1389
3229
  }[] | null | undefined;
3230
+ version: 4;
3231
+ contracts?: ({
3232
+ local: string;
3233
+ } | {
3234
+ global_hash: string;
3235
+ } | {
3236
+ global_account_id: string;
3237
+ } | null)[] | null | undefined;
3238
+ } | {
3239
+ gas_profile?: {
3240
+ [x: string]: any;
3241
+ cost?: string | undefined;
3242
+ cost_category?: string | undefined;
3243
+ gas_used?: string | undefined;
3244
+ }[] | null | undefined;
3245
+ version: 1 | 2 | 3;
3246
+ } | {
3247
+ gas_profile?: {
3248
+ [x: string]: any;
3249
+ cost?: string | undefined;
3250
+ cost_category?: string | undefined;
3251
+ gas_used?: string | undefined;
3252
+ }[] | null | undefined;
3253
+ version: number;
1390
3254
  } | undefined;
1391
3255
  };
1392
3256
  block_hash: string;
@@ -1403,7 +3267,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1403
3267
  gas_burnt: number;
1404
3268
  tokens_burnt: string;
1405
3269
  executor_id: string;
1406
- status: "Unknown" | "Pending" | {
3270
+ status: "Pending" | "Unknown" | {
1407
3271
  SuccessValue: string;
1408
3272
  } | {
1409
3273
  SuccessReceiptId: string;
@@ -1415,13 +3279,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1415
3279
  };
1416
3280
  };
1417
3281
  metadata?: {
1418
- version: number;
1419
3282
  gas_profile?: {
1420
3283
  [x: string]: any;
1421
3284
  cost?: string | undefined;
1422
3285
  cost_category?: string | undefined;
1423
3286
  gas_used?: string | undefined;
1424
3287
  }[] | null | undefined;
3288
+ version: 4;
3289
+ contracts?: ({
3290
+ local: string;
3291
+ } | {
3292
+ global_hash: string;
3293
+ } | {
3294
+ global_account_id: string;
3295
+ } | null)[] | null | undefined;
3296
+ } | {
3297
+ gas_profile?: {
3298
+ [x: string]: any;
3299
+ cost?: string | undefined;
3300
+ cost_category?: string | undefined;
3301
+ gas_used?: string | undefined;
3302
+ }[] | null | undefined;
3303
+ version: 1 | 2 | 3;
3304
+ } | {
3305
+ gas_profile?: {
3306
+ [x: string]: any;
3307
+ cost?: string | undefined;
3308
+ cost_category?: string | undefined;
3309
+ gas_used?: string | undefined;
3310
+ }[] | null | undefined;
3311
+ version: number;
1425
3312
  } | undefined;
1426
3313
  };
1427
3314
  block_hash: string;
@@ -1432,7 +3319,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1432
3319
  }[];
1433
3320
  } | {
1434
3321
  final_execution_status: "FINAL";
1435
- status: "Unknown" | "Pending" | {
3322
+ status: "Pending" | "Unknown" | {
1436
3323
  SuccessValue: string;
1437
3324
  } | {
1438
3325
  SuccessReceiptId: string;
@@ -1489,6 +3376,19 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1489
3376
  method_names: string[];
1490
3377
  allowance?: string | null | undefined;
1491
3378
  };
3379
+ } | {
3380
+ GasKeyFunctionCall: {
3381
+ balance: string;
3382
+ num_nonces: number;
3383
+ receiver_id: string;
3384
+ method_names: string[];
3385
+ allowance?: string | null | undefined;
3386
+ };
3387
+ } | {
3388
+ GasKeyFullAccess: {
3389
+ balance: string;
3390
+ num_nonces: number;
3391
+ };
1492
3392
  };
1493
3393
  };
1494
3394
  };
@@ -1524,10 +3424,44 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1524
3424
  DeterministicStateInit: {
1525
3425
  deposit: string;
1526
3426
  };
3427
+ } | {
3428
+ TransferToGasKey: {
3429
+ public_key: string;
3430
+ deposit: string;
3431
+ };
3432
+ } | {
3433
+ WithdrawFromGasKey: {
3434
+ public_key: string;
3435
+ amount: string;
3436
+ };
3437
+ } | {
3438
+ DelegateV2: {
3439
+ delegate_action: {
3440
+ V2: {
3441
+ sender_id: string;
3442
+ receiver_id: string;
3443
+ actions: any[];
3444
+ nonce: {
3445
+ Nonce: {
3446
+ nonce: number;
3447
+ };
3448
+ } | {
3449
+ GasKeyNonce: {
3450
+ nonce: number;
3451
+ nonce_index: number;
3452
+ };
3453
+ };
3454
+ max_block_height: number;
3455
+ public_key: string;
3456
+ };
3457
+ };
3458
+ signature: string;
3459
+ };
1527
3460
  })[];
1528
3461
  signature: string;
1529
3462
  hash: string;
1530
3463
  priority_fee?: number | undefined;
3464
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1531
3465
  };
1532
3466
  transaction_outcome: {
1533
3467
  id: string;
@@ -1537,7 +3471,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1537
3471
  gas_burnt: number;
1538
3472
  tokens_burnt: string;
1539
3473
  executor_id: string;
1540
- status: "Unknown" | "Pending" | {
3474
+ status: "Pending" | "Unknown" | {
1541
3475
  SuccessValue: string;
1542
3476
  } | {
1543
3477
  SuccessReceiptId: string;
@@ -1549,13 +3483,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1549
3483
  };
1550
3484
  };
1551
3485
  metadata?: {
1552
- version: number;
1553
3486
  gas_profile?: {
1554
3487
  [x: string]: any;
1555
3488
  cost?: string | undefined;
1556
3489
  cost_category?: string | undefined;
1557
3490
  gas_used?: string | undefined;
1558
3491
  }[] | null | undefined;
3492
+ version: 4;
3493
+ contracts?: ({
3494
+ local: string;
3495
+ } | {
3496
+ global_hash: string;
3497
+ } | {
3498
+ global_account_id: string;
3499
+ } | null)[] | null | undefined;
3500
+ } | {
3501
+ gas_profile?: {
3502
+ [x: string]: any;
3503
+ cost?: string | undefined;
3504
+ cost_category?: string | undefined;
3505
+ gas_used?: string | undefined;
3506
+ }[] | null | undefined;
3507
+ version: 1 | 2 | 3;
3508
+ } | {
3509
+ gas_profile?: {
3510
+ [x: string]: any;
3511
+ cost?: string | undefined;
3512
+ cost_category?: string | undefined;
3513
+ gas_used?: string | undefined;
3514
+ }[] | null | undefined;
3515
+ version: number;
1559
3516
  } | undefined;
1560
3517
  };
1561
3518
  block_hash: string;
@@ -1572,7 +3529,7 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1572
3529
  gas_burnt: number;
1573
3530
  tokens_burnt: string;
1574
3531
  executor_id: string;
1575
- status: "Unknown" | "Pending" | {
3532
+ status: "Pending" | "Unknown" | {
1576
3533
  SuccessValue: string;
1577
3534
  } | {
1578
3535
  SuccessReceiptId: string;
@@ -1584,13 +3541,36 @@ export declare function ft_storage_deposit_fun(near: Near, ft_contractId: string
1584
3541
  };
1585
3542
  };
1586
3543
  metadata?: {
1587
- version: number;
1588
3544
  gas_profile?: {
1589
3545
  [x: string]: any;
1590
3546
  cost?: string | undefined;
1591
3547
  cost_category?: string | undefined;
1592
3548
  gas_used?: string | undefined;
1593
3549
  }[] | null | undefined;
3550
+ version: 4;
3551
+ contracts?: ({
3552
+ local: string;
3553
+ } | {
3554
+ global_hash: string;
3555
+ } | {
3556
+ global_account_id: string;
3557
+ } | null)[] | null | undefined;
3558
+ } | {
3559
+ gas_profile?: {
3560
+ [x: string]: any;
3561
+ cost?: string | undefined;
3562
+ cost_category?: string | undefined;
3563
+ gas_used?: string | undefined;
3564
+ }[] | null | undefined;
3565
+ version: 1 | 2 | 3;
3566
+ } | {
3567
+ gas_profile?: {
3568
+ [x: string]: any;
3569
+ cost?: string | undefined;
3570
+ cost_category?: string | undefined;
3571
+ gas_used?: string | undefined;
3572
+ }[] | null | undefined;
3573
+ version: number;
1594
3574
  } | undefined;
1595
3575
  };
1596
3576
  block_hash: string;