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