@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.
@@ -9,6 +9,133 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
9
9
  receiver_id: string;
10
10
  nonce: number;
11
11
  } | undefined;
12
+ status?: "Pending" | "Unknown" | {
13
+ SuccessValue: string;
14
+ } | {
15
+ SuccessReceiptId: string;
16
+ } | {
17
+ Failure: {
18
+ [x: string]: any;
19
+ error_message?: string | undefined;
20
+ error_type?: string | undefined;
21
+ };
22
+ } | undefined;
23
+ transaction_outcome?: {
24
+ id: string;
25
+ outcome: {
26
+ logs: string[];
27
+ receipt_ids: string[];
28
+ gas_burnt: number;
29
+ tokens_burnt: string;
30
+ executor_id: string;
31
+ status: "Pending" | "Unknown" | {
32
+ SuccessValue: string;
33
+ } | {
34
+ SuccessReceiptId: string;
35
+ } | {
36
+ Failure: {
37
+ [x: string]: any;
38
+ error_message?: string | undefined;
39
+ error_type?: string | undefined;
40
+ };
41
+ };
42
+ metadata?: {
43
+ gas_profile?: {
44
+ [x: string]: any;
45
+ cost?: string | undefined;
46
+ cost_category?: string | undefined;
47
+ gas_used?: string | undefined;
48
+ }[] | null | undefined;
49
+ version: 4;
50
+ contracts?: ({
51
+ local: string;
52
+ } | {
53
+ global_hash: string;
54
+ } | {
55
+ global_account_id: string;
56
+ } | null)[] | null | undefined;
57
+ } | {
58
+ gas_profile?: {
59
+ [x: string]: any;
60
+ cost?: string | undefined;
61
+ cost_category?: string | undefined;
62
+ gas_used?: string | undefined;
63
+ }[] | null | undefined;
64
+ version: 1 | 2 | 3;
65
+ } | {
66
+ gas_profile?: {
67
+ [x: string]: any;
68
+ cost?: string | undefined;
69
+ cost_category?: string | undefined;
70
+ gas_used?: string | undefined;
71
+ }[] | null | undefined;
72
+ version: number;
73
+ } | undefined;
74
+ };
75
+ block_hash: string;
76
+ proof: {
77
+ hash: string;
78
+ direction: "Left" | "Right";
79
+ }[];
80
+ } | undefined;
81
+ receipts_outcome?: {
82
+ id: string;
83
+ outcome: {
84
+ logs: string[];
85
+ receipt_ids: string[];
86
+ gas_burnt: number;
87
+ tokens_burnt: string;
88
+ executor_id: string;
89
+ status: "Pending" | "Unknown" | {
90
+ SuccessValue: string;
91
+ } | {
92
+ SuccessReceiptId: string;
93
+ } | {
94
+ Failure: {
95
+ [x: string]: any;
96
+ error_message?: string | undefined;
97
+ error_type?: string | undefined;
98
+ };
99
+ };
100
+ metadata?: {
101
+ gas_profile?: {
102
+ [x: string]: any;
103
+ cost?: string | undefined;
104
+ cost_category?: string | undefined;
105
+ gas_used?: string | undefined;
106
+ }[] | null | undefined;
107
+ version: 4;
108
+ contracts?: ({
109
+ local: string;
110
+ } | {
111
+ global_hash: string;
112
+ } | {
113
+ global_account_id: string;
114
+ } | null)[] | null | undefined;
115
+ } | {
116
+ gas_profile?: {
117
+ [x: string]: any;
118
+ cost?: string | undefined;
119
+ cost_category?: string | undefined;
120
+ gas_used?: string | undefined;
121
+ }[] | null | undefined;
122
+ version: 1 | 2 | 3;
123
+ } | {
124
+ gas_profile?: {
125
+ [x: string]: any;
126
+ cost?: string | undefined;
127
+ cost_category?: string | undefined;
128
+ gas_used?: string | undefined;
129
+ }[] | null | undefined;
130
+ version: number;
131
+ } | undefined;
132
+ };
133
+ block_hash: string;
134
+ proof: {
135
+ hash: string;
136
+ direction: "Left" | "Right";
137
+ }[];
138
+ }[] | undefined;
12
139
  } | {
13
140
  final_execution_status: "INCLUDED";
14
141
  transaction?: {
@@ -17,6 +144,133 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
17
144
  receiver_id: string;
18
145
  nonce: number;
19
146
  } | undefined;
147
+ status?: "Pending" | "Unknown" | {
148
+ SuccessValue: string;
149
+ } | {
150
+ SuccessReceiptId: string;
151
+ } | {
152
+ Failure: {
153
+ [x: string]: any;
154
+ error_message?: string | undefined;
155
+ error_type?: string | undefined;
156
+ };
157
+ } | undefined;
158
+ transaction_outcome?: {
159
+ id: string;
160
+ outcome: {
161
+ logs: string[];
162
+ receipt_ids: string[];
163
+ gas_burnt: number;
164
+ tokens_burnt: string;
165
+ executor_id: string;
166
+ status: "Pending" | "Unknown" | {
167
+ SuccessValue: string;
168
+ } | {
169
+ SuccessReceiptId: string;
170
+ } | {
171
+ Failure: {
172
+ [x: string]: any;
173
+ error_message?: string | undefined;
174
+ error_type?: string | undefined;
175
+ };
176
+ };
177
+ metadata?: {
178
+ gas_profile?: {
179
+ [x: string]: any;
180
+ cost?: string | undefined;
181
+ cost_category?: string | undefined;
182
+ gas_used?: string | undefined;
183
+ }[] | null | undefined;
184
+ version: 4;
185
+ contracts?: ({
186
+ local: string;
187
+ } | {
188
+ global_hash: string;
189
+ } | {
190
+ global_account_id: string;
191
+ } | null)[] | null | undefined;
192
+ } | {
193
+ gas_profile?: {
194
+ [x: string]: any;
195
+ cost?: string | undefined;
196
+ cost_category?: string | undefined;
197
+ gas_used?: string | undefined;
198
+ }[] | null | undefined;
199
+ version: 1 | 2 | 3;
200
+ } | {
201
+ gas_profile?: {
202
+ [x: string]: any;
203
+ cost?: string | undefined;
204
+ cost_category?: string | undefined;
205
+ gas_used?: string | undefined;
206
+ }[] | null | undefined;
207
+ version: number;
208
+ } | undefined;
209
+ };
210
+ block_hash: string;
211
+ proof: {
212
+ hash: string;
213
+ direction: "Left" | "Right";
214
+ }[];
215
+ } | undefined;
216
+ receipts_outcome?: {
217
+ id: string;
218
+ outcome: {
219
+ logs: string[];
220
+ receipt_ids: string[];
221
+ gas_burnt: number;
222
+ tokens_burnt: string;
223
+ executor_id: string;
224
+ status: "Pending" | "Unknown" | {
225
+ SuccessValue: string;
226
+ } | {
227
+ SuccessReceiptId: string;
228
+ } | {
229
+ Failure: {
230
+ [x: string]: any;
231
+ error_message?: string | undefined;
232
+ error_type?: string | undefined;
233
+ };
234
+ };
235
+ metadata?: {
236
+ gas_profile?: {
237
+ [x: string]: any;
238
+ cost?: string | undefined;
239
+ cost_category?: string | undefined;
240
+ gas_used?: string | undefined;
241
+ }[] | null | undefined;
242
+ version: 4;
243
+ contracts?: ({
244
+ local: string;
245
+ } | {
246
+ global_hash: string;
247
+ } | {
248
+ global_account_id: string;
249
+ } | null)[] | null | undefined;
250
+ } | {
251
+ gas_profile?: {
252
+ [x: string]: any;
253
+ cost?: string | undefined;
254
+ cost_category?: string | undefined;
255
+ gas_used?: string | undefined;
256
+ }[] | null | undefined;
257
+ version: 1 | 2 | 3;
258
+ } | {
259
+ gas_profile?: {
260
+ [x: string]: any;
261
+ cost?: string | undefined;
262
+ cost_category?: string | undefined;
263
+ gas_used?: string | undefined;
264
+ }[] | null | undefined;
265
+ version: number;
266
+ } | undefined;
267
+ };
268
+ block_hash: string;
269
+ proof: {
270
+ hash: string;
271
+ direction: "Left" | "Right";
272
+ }[];
273
+ }[] | undefined;
20
274
  } | {
21
275
  final_execution_status: "INCLUDED_FINAL";
22
276
  transaction?: {
@@ -25,9 +279,1852 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
25
279
  receiver_id: string;
26
280
  nonce: number;
27
281
  } | undefined;
282
+ status?: "Pending" | "Unknown" | {
283
+ SuccessValue: string;
284
+ } | {
285
+ SuccessReceiptId: string;
286
+ } | {
287
+ Failure: {
288
+ [x: string]: any;
289
+ error_message?: string | undefined;
290
+ error_type?: string | undefined;
291
+ };
292
+ } | undefined;
293
+ transaction_outcome?: {
294
+ id: string;
295
+ outcome: {
296
+ logs: string[];
297
+ receipt_ids: string[];
298
+ gas_burnt: number;
299
+ tokens_burnt: string;
300
+ executor_id: string;
301
+ status: "Pending" | "Unknown" | {
302
+ SuccessValue: string;
303
+ } | {
304
+ SuccessReceiptId: string;
305
+ } | {
306
+ Failure: {
307
+ [x: string]: any;
308
+ error_message?: string | undefined;
309
+ error_type?: string | undefined;
310
+ };
311
+ };
312
+ metadata?: {
313
+ gas_profile?: {
314
+ [x: string]: any;
315
+ cost?: string | undefined;
316
+ cost_category?: string | undefined;
317
+ gas_used?: string | undefined;
318
+ }[] | null | undefined;
319
+ version: 4;
320
+ contracts?: ({
321
+ local: string;
322
+ } | {
323
+ global_hash: string;
324
+ } | {
325
+ global_account_id: string;
326
+ } | null)[] | null | undefined;
327
+ } | {
328
+ gas_profile?: {
329
+ [x: string]: any;
330
+ cost?: string | undefined;
331
+ cost_category?: string | undefined;
332
+ gas_used?: string | undefined;
333
+ }[] | null | undefined;
334
+ version: 1 | 2 | 3;
335
+ } | {
336
+ gas_profile?: {
337
+ [x: string]: any;
338
+ cost?: string | undefined;
339
+ cost_category?: string | undefined;
340
+ gas_used?: string | undefined;
341
+ }[] | null | undefined;
342
+ version: number;
343
+ } | undefined;
344
+ };
345
+ block_hash: string;
346
+ proof: {
347
+ hash: string;
348
+ direction: "Left" | "Right";
349
+ }[];
350
+ } | undefined;
351
+ receipts_outcome?: {
352
+ id: string;
353
+ outcome: {
354
+ logs: string[];
355
+ receipt_ids: string[];
356
+ gas_burnt: number;
357
+ tokens_burnt: string;
358
+ executor_id: string;
359
+ status: "Pending" | "Unknown" | {
360
+ SuccessValue: string;
361
+ } | {
362
+ SuccessReceiptId: string;
363
+ } | {
364
+ Failure: {
365
+ [x: string]: any;
366
+ error_message?: string | undefined;
367
+ error_type?: string | undefined;
368
+ };
369
+ };
370
+ metadata?: {
371
+ gas_profile?: {
372
+ [x: string]: any;
373
+ cost?: string | undefined;
374
+ cost_category?: string | undefined;
375
+ gas_used?: string | undefined;
376
+ }[] | null | undefined;
377
+ version: 4;
378
+ contracts?: ({
379
+ local: string;
380
+ } | {
381
+ global_hash: string;
382
+ } | {
383
+ global_account_id: string;
384
+ } | null)[] | null | undefined;
385
+ } | {
386
+ gas_profile?: {
387
+ [x: string]: any;
388
+ cost?: string | undefined;
389
+ cost_category?: string | undefined;
390
+ gas_used?: string | undefined;
391
+ }[] | null | undefined;
392
+ version: 1 | 2 | 3;
393
+ } | {
394
+ gas_profile?: {
395
+ [x: string]: any;
396
+ cost?: string | undefined;
397
+ cost_category?: string | undefined;
398
+ gas_used?: string | undefined;
399
+ }[] | null | undefined;
400
+ version: number;
401
+ } | undefined;
402
+ };
403
+ block_hash: string;
404
+ proof: {
405
+ hash: string;
406
+ direction: "Left" | "Right";
407
+ }[];
408
+ }[] | undefined;
409
+ } | {
410
+ final_execution_status: "EXECUTED_OPTIMISTIC";
411
+ status: "Pending" | "Unknown" | {
412
+ SuccessValue: string;
413
+ } | {
414
+ SuccessReceiptId: string;
415
+ } | {
416
+ Failure: {
417
+ [x: string]: any;
418
+ error_message?: string | undefined;
419
+ error_type?: string | undefined;
420
+ };
421
+ };
422
+ transaction: {
423
+ signer_id: string;
424
+ public_key: string;
425
+ nonce: number;
426
+ receiver_id: string;
427
+ actions: ("CreateAccount" | {
428
+ CreateAccount: Record<string, never>;
429
+ } | {
430
+ Transfer: {
431
+ deposit: string;
432
+ };
433
+ } | {
434
+ FunctionCall: {
435
+ method_name: string;
436
+ args: string;
437
+ gas: number;
438
+ deposit: string;
439
+ };
440
+ } | {
441
+ DeployContract: {
442
+ code: string;
443
+ };
444
+ } | {
445
+ DeployGlobalContract: {
446
+ code: string;
447
+ };
448
+ } | {
449
+ DeployGlobalContractByAccountId: {
450
+ code: string;
451
+ };
452
+ } | {
453
+ Stake: {
454
+ stake: string;
455
+ public_key: string;
456
+ };
457
+ } | {
458
+ AddKey: {
459
+ public_key: string;
460
+ access_key: {
461
+ nonce: number;
462
+ permission: "FullAccess" | {
463
+ FunctionCall: {
464
+ receiver_id: string;
465
+ method_names: string[];
466
+ allowance?: string | null | undefined;
467
+ };
468
+ } | {
469
+ GasKeyFunctionCall: {
470
+ balance: string;
471
+ num_nonces: number;
472
+ receiver_id: string;
473
+ method_names: string[];
474
+ allowance?: string | null | undefined;
475
+ };
476
+ } | {
477
+ GasKeyFullAccess: {
478
+ balance: string;
479
+ num_nonces: number;
480
+ };
481
+ };
482
+ };
483
+ };
484
+ } | {
485
+ DeleteKey: {
486
+ public_key: string;
487
+ };
488
+ } | {
489
+ DeleteAccount: {
490
+ beneficiary_id: string;
491
+ };
492
+ } | {
493
+ UseGlobalContract: {
494
+ code_hash: string;
495
+ };
496
+ } | {
497
+ UseGlobalContractByAccountId: {
498
+ account_id: string;
499
+ };
500
+ } | {
501
+ Delegate: {
502
+ delegate_action: {
503
+ sender_id: string;
504
+ receiver_id: string;
505
+ actions: any[];
506
+ nonce: number;
507
+ max_block_height: number;
508
+ public_key: string;
509
+ };
510
+ signature: string;
511
+ };
512
+ } | {
513
+ DeterministicStateInit: {
514
+ deposit: string;
515
+ };
516
+ } | {
517
+ TransferToGasKey: {
518
+ public_key: string;
519
+ deposit: string;
520
+ };
521
+ } | {
522
+ WithdrawFromGasKey: {
523
+ public_key: string;
524
+ amount: string;
525
+ };
526
+ } | {
527
+ DelegateV2: {
528
+ delegate_action: {
529
+ V2: {
530
+ sender_id: string;
531
+ receiver_id: string;
532
+ actions: any[];
533
+ nonce: {
534
+ Nonce: {
535
+ nonce: number;
536
+ };
537
+ } | {
538
+ GasKeyNonce: {
539
+ nonce: number;
540
+ nonce_index: number;
541
+ };
542
+ };
543
+ max_block_height: number;
544
+ public_key: string;
545
+ };
546
+ };
547
+ signature: string;
548
+ };
549
+ })[];
550
+ signature: string;
551
+ hash: string;
552
+ priority_fee?: number | undefined;
553
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
554
+ };
555
+ transaction_outcome: {
556
+ id: string;
557
+ outcome: {
558
+ logs: string[];
559
+ receipt_ids: string[];
560
+ gas_burnt: number;
561
+ tokens_burnt: string;
562
+ executor_id: string;
563
+ status: "Pending" | "Unknown" | {
564
+ SuccessValue: string;
565
+ } | {
566
+ SuccessReceiptId: string;
567
+ } | {
568
+ Failure: {
569
+ [x: string]: any;
570
+ error_message?: string | undefined;
571
+ error_type?: string | undefined;
572
+ };
573
+ };
574
+ metadata?: {
575
+ gas_profile?: {
576
+ [x: string]: any;
577
+ cost?: string | undefined;
578
+ cost_category?: string | undefined;
579
+ gas_used?: string | undefined;
580
+ }[] | null | undefined;
581
+ version: 4;
582
+ contracts?: ({
583
+ local: string;
584
+ } | {
585
+ global_hash: string;
586
+ } | {
587
+ global_account_id: string;
588
+ } | null)[] | null | undefined;
589
+ } | {
590
+ gas_profile?: {
591
+ [x: string]: any;
592
+ cost?: string | undefined;
593
+ cost_category?: string | undefined;
594
+ gas_used?: string | undefined;
595
+ }[] | null | undefined;
596
+ version: 1 | 2 | 3;
597
+ } | {
598
+ gas_profile?: {
599
+ [x: string]: any;
600
+ cost?: string | undefined;
601
+ cost_category?: string | undefined;
602
+ gas_used?: string | undefined;
603
+ }[] | null | undefined;
604
+ version: number;
605
+ } | undefined;
606
+ };
607
+ block_hash: string;
608
+ proof: {
609
+ hash: string;
610
+ direction: "Left" | "Right";
611
+ }[];
612
+ };
613
+ receipts_outcome: {
614
+ id: string;
615
+ outcome: {
616
+ logs: string[];
617
+ receipt_ids: string[];
618
+ gas_burnt: number;
619
+ tokens_burnt: string;
620
+ executor_id: string;
621
+ status: "Pending" | "Unknown" | {
622
+ SuccessValue: string;
623
+ } | {
624
+ SuccessReceiptId: string;
625
+ } | {
626
+ Failure: {
627
+ [x: string]: any;
628
+ error_message?: string | undefined;
629
+ error_type?: string | undefined;
630
+ };
631
+ };
632
+ metadata?: {
633
+ gas_profile?: {
634
+ [x: string]: any;
635
+ cost?: string | undefined;
636
+ cost_category?: string | undefined;
637
+ gas_used?: string | undefined;
638
+ }[] | null | undefined;
639
+ version: 4;
640
+ contracts?: ({
641
+ local: string;
642
+ } | {
643
+ global_hash: string;
644
+ } | {
645
+ global_account_id: string;
646
+ } | null)[] | null | undefined;
647
+ } | {
648
+ gas_profile?: {
649
+ [x: string]: any;
650
+ cost?: string | undefined;
651
+ cost_category?: string | undefined;
652
+ gas_used?: string | undefined;
653
+ }[] | null | undefined;
654
+ version: 1 | 2 | 3;
655
+ } | {
656
+ gas_profile?: {
657
+ [x: string]: any;
658
+ cost?: string | undefined;
659
+ cost_category?: string | undefined;
660
+ gas_used?: string | undefined;
661
+ }[] | null | undefined;
662
+ version: number;
663
+ } | undefined;
664
+ };
665
+ block_hash: string;
666
+ proof: {
667
+ hash: string;
668
+ direction: "Left" | "Right";
669
+ }[];
670
+ }[];
671
+ } | {
672
+ final_execution_status: "EXECUTED";
673
+ status: "Pending" | "Unknown" | {
674
+ SuccessValue: string;
675
+ } | {
676
+ SuccessReceiptId: string;
677
+ } | {
678
+ Failure: {
679
+ [x: string]: any;
680
+ error_message?: string | undefined;
681
+ error_type?: string | undefined;
682
+ };
683
+ };
684
+ transaction: {
685
+ signer_id: string;
686
+ public_key: string;
687
+ nonce: number;
688
+ receiver_id: string;
689
+ actions: ("CreateAccount" | {
690
+ CreateAccount: Record<string, never>;
691
+ } | {
692
+ Transfer: {
693
+ deposit: string;
694
+ };
695
+ } | {
696
+ FunctionCall: {
697
+ method_name: string;
698
+ args: string;
699
+ gas: number;
700
+ deposit: string;
701
+ };
702
+ } | {
703
+ DeployContract: {
704
+ code: string;
705
+ };
706
+ } | {
707
+ DeployGlobalContract: {
708
+ code: string;
709
+ };
710
+ } | {
711
+ DeployGlobalContractByAccountId: {
712
+ code: string;
713
+ };
714
+ } | {
715
+ Stake: {
716
+ stake: string;
717
+ public_key: string;
718
+ };
719
+ } | {
720
+ AddKey: {
721
+ public_key: string;
722
+ access_key: {
723
+ nonce: number;
724
+ permission: "FullAccess" | {
725
+ FunctionCall: {
726
+ receiver_id: string;
727
+ method_names: string[];
728
+ allowance?: string | null | undefined;
729
+ };
730
+ } | {
731
+ GasKeyFunctionCall: {
732
+ balance: string;
733
+ num_nonces: number;
734
+ receiver_id: string;
735
+ method_names: string[];
736
+ allowance?: string | null | undefined;
737
+ };
738
+ } | {
739
+ GasKeyFullAccess: {
740
+ balance: string;
741
+ num_nonces: number;
742
+ };
743
+ };
744
+ };
745
+ };
746
+ } | {
747
+ DeleteKey: {
748
+ public_key: string;
749
+ };
750
+ } | {
751
+ DeleteAccount: {
752
+ beneficiary_id: string;
753
+ };
754
+ } | {
755
+ UseGlobalContract: {
756
+ code_hash: string;
757
+ };
758
+ } | {
759
+ UseGlobalContractByAccountId: {
760
+ account_id: string;
761
+ };
762
+ } | {
763
+ Delegate: {
764
+ delegate_action: {
765
+ sender_id: string;
766
+ receiver_id: string;
767
+ actions: any[];
768
+ nonce: number;
769
+ max_block_height: number;
770
+ public_key: string;
771
+ };
772
+ signature: string;
773
+ };
774
+ } | {
775
+ DeterministicStateInit: {
776
+ deposit: string;
777
+ };
778
+ } | {
779
+ TransferToGasKey: {
780
+ public_key: string;
781
+ deposit: string;
782
+ };
783
+ } | {
784
+ WithdrawFromGasKey: {
785
+ public_key: string;
786
+ amount: string;
787
+ };
788
+ } | {
789
+ DelegateV2: {
790
+ delegate_action: {
791
+ V2: {
792
+ sender_id: string;
793
+ receiver_id: string;
794
+ actions: any[];
795
+ nonce: {
796
+ Nonce: {
797
+ nonce: number;
798
+ };
799
+ } | {
800
+ GasKeyNonce: {
801
+ nonce: number;
802
+ nonce_index: number;
803
+ };
804
+ };
805
+ max_block_height: number;
806
+ public_key: string;
807
+ };
808
+ };
809
+ signature: string;
810
+ };
811
+ })[];
812
+ signature: string;
813
+ hash: string;
814
+ priority_fee?: number | undefined;
815
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
816
+ };
817
+ transaction_outcome: {
818
+ id: string;
819
+ outcome: {
820
+ logs: string[];
821
+ receipt_ids: string[];
822
+ gas_burnt: number;
823
+ tokens_burnt: string;
824
+ executor_id: string;
825
+ status: "Pending" | "Unknown" | {
826
+ SuccessValue: string;
827
+ } | {
828
+ SuccessReceiptId: string;
829
+ } | {
830
+ Failure: {
831
+ [x: string]: any;
832
+ error_message?: string | undefined;
833
+ error_type?: string | undefined;
834
+ };
835
+ };
836
+ metadata?: {
837
+ gas_profile?: {
838
+ [x: string]: any;
839
+ cost?: string | undefined;
840
+ cost_category?: string | undefined;
841
+ gas_used?: string | undefined;
842
+ }[] | null | undefined;
843
+ version: 4;
844
+ contracts?: ({
845
+ local: string;
846
+ } | {
847
+ global_hash: string;
848
+ } | {
849
+ global_account_id: string;
850
+ } | null)[] | null | undefined;
851
+ } | {
852
+ gas_profile?: {
853
+ [x: string]: any;
854
+ cost?: string | undefined;
855
+ cost_category?: string | undefined;
856
+ gas_used?: string | undefined;
857
+ }[] | null | undefined;
858
+ version: 1 | 2 | 3;
859
+ } | {
860
+ gas_profile?: {
861
+ [x: string]: any;
862
+ cost?: string | undefined;
863
+ cost_category?: string | undefined;
864
+ gas_used?: string | undefined;
865
+ }[] | null | undefined;
866
+ version: number;
867
+ } | undefined;
868
+ };
869
+ block_hash: string;
870
+ proof: {
871
+ hash: string;
872
+ direction: "Left" | "Right";
873
+ }[];
874
+ };
875
+ receipts_outcome: {
876
+ id: string;
877
+ outcome: {
878
+ logs: string[];
879
+ receipt_ids: string[];
880
+ gas_burnt: number;
881
+ tokens_burnt: string;
882
+ executor_id: string;
883
+ status: "Pending" | "Unknown" | {
884
+ SuccessValue: string;
885
+ } | {
886
+ SuccessReceiptId: string;
887
+ } | {
888
+ Failure: {
889
+ [x: string]: any;
890
+ error_message?: string | undefined;
891
+ error_type?: string | undefined;
892
+ };
893
+ };
894
+ metadata?: {
895
+ gas_profile?: {
896
+ [x: string]: any;
897
+ cost?: string | undefined;
898
+ cost_category?: string | undefined;
899
+ gas_used?: string | undefined;
900
+ }[] | null | undefined;
901
+ version: 4;
902
+ contracts?: ({
903
+ local: string;
904
+ } | {
905
+ global_hash: string;
906
+ } | {
907
+ global_account_id: string;
908
+ } | null)[] | null | undefined;
909
+ } | {
910
+ gas_profile?: {
911
+ [x: string]: any;
912
+ cost?: string | undefined;
913
+ cost_category?: string | undefined;
914
+ gas_used?: string | undefined;
915
+ }[] | null | undefined;
916
+ version: 1 | 2 | 3;
917
+ } | {
918
+ gas_profile?: {
919
+ [x: string]: any;
920
+ cost?: string | undefined;
921
+ cost_category?: string | undefined;
922
+ gas_used?: string | undefined;
923
+ }[] | null | undefined;
924
+ version: number;
925
+ } | undefined;
926
+ };
927
+ block_hash: string;
928
+ proof: {
929
+ hash: string;
930
+ direction: "Left" | "Right";
931
+ }[];
932
+ }[];
933
+ } | {
934
+ final_execution_status: "FINAL";
935
+ status: "Pending" | "Unknown" | {
936
+ SuccessValue: string;
937
+ } | {
938
+ SuccessReceiptId: string;
939
+ } | {
940
+ Failure: {
941
+ [x: string]: any;
942
+ error_message?: string | undefined;
943
+ error_type?: string | undefined;
944
+ };
945
+ };
946
+ transaction: {
947
+ signer_id: string;
948
+ public_key: string;
949
+ nonce: number;
950
+ receiver_id: string;
951
+ actions: ("CreateAccount" | {
952
+ CreateAccount: Record<string, never>;
953
+ } | {
954
+ Transfer: {
955
+ deposit: string;
956
+ };
957
+ } | {
958
+ FunctionCall: {
959
+ method_name: string;
960
+ args: string;
961
+ gas: number;
962
+ deposit: string;
963
+ };
964
+ } | {
965
+ DeployContract: {
966
+ code: string;
967
+ };
968
+ } | {
969
+ DeployGlobalContract: {
970
+ code: string;
971
+ };
972
+ } | {
973
+ DeployGlobalContractByAccountId: {
974
+ code: string;
975
+ };
976
+ } | {
977
+ Stake: {
978
+ stake: string;
979
+ public_key: string;
980
+ };
981
+ } | {
982
+ AddKey: {
983
+ public_key: string;
984
+ access_key: {
985
+ nonce: number;
986
+ permission: "FullAccess" | {
987
+ FunctionCall: {
988
+ receiver_id: string;
989
+ method_names: string[];
990
+ allowance?: string | null | undefined;
991
+ };
992
+ } | {
993
+ GasKeyFunctionCall: {
994
+ balance: string;
995
+ num_nonces: number;
996
+ receiver_id: string;
997
+ method_names: string[];
998
+ allowance?: string | null | undefined;
999
+ };
1000
+ } | {
1001
+ GasKeyFullAccess: {
1002
+ balance: string;
1003
+ num_nonces: number;
1004
+ };
1005
+ };
1006
+ };
1007
+ };
1008
+ } | {
1009
+ DeleteKey: {
1010
+ public_key: string;
1011
+ };
1012
+ } | {
1013
+ DeleteAccount: {
1014
+ beneficiary_id: string;
1015
+ };
1016
+ } | {
1017
+ UseGlobalContract: {
1018
+ code_hash: string;
1019
+ };
1020
+ } | {
1021
+ UseGlobalContractByAccountId: {
1022
+ account_id: string;
1023
+ };
1024
+ } | {
1025
+ Delegate: {
1026
+ delegate_action: {
1027
+ sender_id: string;
1028
+ receiver_id: string;
1029
+ actions: any[];
1030
+ nonce: number;
1031
+ max_block_height: number;
1032
+ public_key: string;
1033
+ };
1034
+ signature: string;
1035
+ };
1036
+ } | {
1037
+ DeterministicStateInit: {
1038
+ deposit: string;
1039
+ };
1040
+ } | {
1041
+ TransferToGasKey: {
1042
+ public_key: string;
1043
+ deposit: string;
1044
+ };
1045
+ } | {
1046
+ WithdrawFromGasKey: {
1047
+ public_key: string;
1048
+ amount: string;
1049
+ };
1050
+ } | {
1051
+ DelegateV2: {
1052
+ delegate_action: {
1053
+ V2: {
1054
+ sender_id: string;
1055
+ receiver_id: string;
1056
+ actions: any[];
1057
+ nonce: {
1058
+ Nonce: {
1059
+ nonce: number;
1060
+ };
1061
+ } | {
1062
+ GasKeyNonce: {
1063
+ nonce: number;
1064
+ nonce_index: number;
1065
+ };
1066
+ };
1067
+ max_block_height: number;
1068
+ public_key: string;
1069
+ };
1070
+ };
1071
+ signature: string;
1072
+ };
1073
+ })[];
1074
+ signature: string;
1075
+ hash: string;
1076
+ priority_fee?: number | undefined;
1077
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1078
+ };
1079
+ transaction_outcome: {
1080
+ id: string;
1081
+ outcome: {
1082
+ logs: string[];
1083
+ receipt_ids: string[];
1084
+ gas_burnt: number;
1085
+ tokens_burnt: string;
1086
+ executor_id: string;
1087
+ status: "Pending" | "Unknown" | {
1088
+ SuccessValue: string;
1089
+ } | {
1090
+ SuccessReceiptId: string;
1091
+ } | {
1092
+ Failure: {
1093
+ [x: string]: any;
1094
+ error_message?: string | undefined;
1095
+ error_type?: string | undefined;
1096
+ };
1097
+ };
1098
+ metadata?: {
1099
+ gas_profile?: {
1100
+ [x: string]: any;
1101
+ cost?: string | undefined;
1102
+ cost_category?: string | undefined;
1103
+ gas_used?: string | undefined;
1104
+ }[] | null | undefined;
1105
+ version: 4;
1106
+ contracts?: ({
1107
+ local: string;
1108
+ } | {
1109
+ global_hash: string;
1110
+ } | {
1111
+ global_account_id: string;
1112
+ } | null)[] | null | undefined;
1113
+ } | {
1114
+ gas_profile?: {
1115
+ [x: string]: any;
1116
+ cost?: string | undefined;
1117
+ cost_category?: string | undefined;
1118
+ gas_used?: string | undefined;
1119
+ }[] | null | undefined;
1120
+ version: 1 | 2 | 3;
1121
+ } | {
1122
+ gas_profile?: {
1123
+ [x: string]: any;
1124
+ cost?: string | undefined;
1125
+ cost_category?: string | undefined;
1126
+ gas_used?: string | undefined;
1127
+ }[] | null | undefined;
1128
+ version: number;
1129
+ } | undefined;
1130
+ };
1131
+ block_hash: string;
1132
+ proof: {
1133
+ hash: string;
1134
+ direction: "Left" | "Right";
1135
+ }[];
1136
+ };
1137
+ receipts_outcome: {
1138
+ id: string;
1139
+ outcome: {
1140
+ logs: string[];
1141
+ receipt_ids: string[];
1142
+ gas_burnt: number;
1143
+ tokens_burnt: string;
1144
+ executor_id: string;
1145
+ status: "Pending" | "Unknown" | {
1146
+ SuccessValue: string;
1147
+ } | {
1148
+ SuccessReceiptId: string;
1149
+ } | {
1150
+ Failure: {
1151
+ [x: string]: any;
1152
+ error_message?: string | undefined;
1153
+ error_type?: string | undefined;
1154
+ };
1155
+ };
1156
+ metadata?: {
1157
+ gas_profile?: {
1158
+ [x: string]: any;
1159
+ cost?: string | undefined;
1160
+ cost_category?: string | undefined;
1161
+ gas_used?: string | undefined;
1162
+ }[] | null | undefined;
1163
+ version: 4;
1164
+ contracts?: ({
1165
+ local: string;
1166
+ } | {
1167
+ global_hash: string;
1168
+ } | {
1169
+ global_account_id: string;
1170
+ } | null)[] | null | undefined;
1171
+ } | {
1172
+ gas_profile?: {
1173
+ [x: string]: any;
1174
+ cost?: string | undefined;
1175
+ cost_category?: string | undefined;
1176
+ gas_used?: string | undefined;
1177
+ }[] | null | undefined;
1178
+ version: 1 | 2 | 3;
1179
+ } | {
1180
+ gas_profile?: {
1181
+ [x: string]: any;
1182
+ cost?: string | undefined;
1183
+ cost_category?: string | undefined;
1184
+ gas_used?: string | undefined;
1185
+ }[] | null | undefined;
1186
+ version: number;
1187
+ } | undefined;
1188
+ };
1189
+ block_hash: string;
1190
+ proof: {
1191
+ hash: string;
1192
+ direction: "Left" | "Right";
1193
+ }[];
1194
+ }[];
1195
+ }>;
1196
+ export declare function ref_swap_function(near: Near, rhea_contractId: string, swap_actions: ref_swap_action_type[], referral_id: ref_args_params_interface["referral_id"]): Promise<{
1197
+ final_execution_status: "NONE";
1198
+ transaction?: {
1199
+ hash: string;
1200
+ signer_id: string;
1201
+ receiver_id: string;
1202
+ nonce: number;
1203
+ } | undefined;
1204
+ status?: "Pending" | "Unknown" | {
1205
+ SuccessValue: string;
1206
+ } | {
1207
+ SuccessReceiptId: string;
1208
+ } | {
1209
+ Failure: {
1210
+ [x: string]: any;
1211
+ error_message?: string | undefined;
1212
+ error_type?: string | undefined;
1213
+ };
1214
+ } | undefined;
1215
+ transaction_outcome?: {
1216
+ id: string;
1217
+ outcome: {
1218
+ logs: string[];
1219
+ receipt_ids: string[];
1220
+ gas_burnt: number;
1221
+ tokens_burnt: string;
1222
+ executor_id: string;
1223
+ status: "Pending" | "Unknown" | {
1224
+ SuccessValue: string;
1225
+ } | {
1226
+ SuccessReceiptId: string;
1227
+ } | {
1228
+ Failure: {
1229
+ [x: string]: any;
1230
+ error_message?: string | undefined;
1231
+ error_type?: string | undefined;
1232
+ };
1233
+ };
1234
+ metadata?: {
1235
+ gas_profile?: {
1236
+ [x: string]: any;
1237
+ cost?: string | undefined;
1238
+ cost_category?: string | undefined;
1239
+ gas_used?: string | undefined;
1240
+ }[] | null | undefined;
1241
+ version: 4;
1242
+ contracts?: ({
1243
+ local: string;
1244
+ } | {
1245
+ global_hash: string;
1246
+ } | {
1247
+ global_account_id: string;
1248
+ } | null)[] | null | undefined;
1249
+ } | {
1250
+ gas_profile?: {
1251
+ [x: string]: any;
1252
+ cost?: string | undefined;
1253
+ cost_category?: string | undefined;
1254
+ gas_used?: string | undefined;
1255
+ }[] | null | undefined;
1256
+ version: 1 | 2 | 3;
1257
+ } | {
1258
+ gas_profile?: {
1259
+ [x: string]: any;
1260
+ cost?: string | undefined;
1261
+ cost_category?: string | undefined;
1262
+ gas_used?: string | undefined;
1263
+ }[] | null | undefined;
1264
+ version: number;
1265
+ } | undefined;
1266
+ };
1267
+ block_hash: string;
1268
+ proof: {
1269
+ hash: string;
1270
+ direction: "Left" | "Right";
1271
+ }[];
1272
+ } | undefined;
1273
+ receipts_outcome?: {
1274
+ id: string;
1275
+ outcome: {
1276
+ logs: string[];
1277
+ receipt_ids: string[];
1278
+ gas_burnt: number;
1279
+ tokens_burnt: string;
1280
+ executor_id: string;
1281
+ status: "Pending" | "Unknown" | {
1282
+ SuccessValue: string;
1283
+ } | {
1284
+ SuccessReceiptId: string;
1285
+ } | {
1286
+ Failure: {
1287
+ [x: string]: any;
1288
+ error_message?: string | undefined;
1289
+ error_type?: string | undefined;
1290
+ };
1291
+ };
1292
+ metadata?: {
1293
+ gas_profile?: {
1294
+ [x: string]: any;
1295
+ cost?: string | undefined;
1296
+ cost_category?: string | undefined;
1297
+ gas_used?: string | undefined;
1298
+ }[] | null | undefined;
1299
+ version: 4;
1300
+ contracts?: ({
1301
+ local: string;
1302
+ } | {
1303
+ global_hash: string;
1304
+ } | {
1305
+ global_account_id: string;
1306
+ } | null)[] | null | undefined;
1307
+ } | {
1308
+ gas_profile?: {
1309
+ [x: string]: any;
1310
+ cost?: string | undefined;
1311
+ cost_category?: string | undefined;
1312
+ gas_used?: string | undefined;
1313
+ }[] | null | undefined;
1314
+ version: 1 | 2 | 3;
1315
+ } | {
1316
+ gas_profile?: {
1317
+ [x: string]: any;
1318
+ cost?: string | undefined;
1319
+ cost_category?: string | undefined;
1320
+ gas_used?: string | undefined;
1321
+ }[] | null | undefined;
1322
+ version: number;
1323
+ } | undefined;
1324
+ };
1325
+ block_hash: string;
1326
+ proof: {
1327
+ hash: string;
1328
+ direction: "Left" | "Right";
1329
+ }[];
1330
+ }[] | undefined;
1331
+ } | {
1332
+ final_execution_status: "INCLUDED";
1333
+ transaction?: {
1334
+ hash: string;
1335
+ signer_id: string;
1336
+ receiver_id: string;
1337
+ nonce: number;
1338
+ } | undefined;
1339
+ status?: "Pending" | "Unknown" | {
1340
+ SuccessValue: string;
1341
+ } | {
1342
+ SuccessReceiptId: string;
1343
+ } | {
1344
+ Failure: {
1345
+ [x: string]: any;
1346
+ error_message?: string | undefined;
1347
+ error_type?: string | undefined;
1348
+ };
1349
+ } | undefined;
1350
+ transaction_outcome?: {
1351
+ id: string;
1352
+ outcome: {
1353
+ logs: string[];
1354
+ receipt_ids: string[];
1355
+ gas_burnt: number;
1356
+ tokens_burnt: string;
1357
+ executor_id: string;
1358
+ status: "Pending" | "Unknown" | {
1359
+ SuccessValue: string;
1360
+ } | {
1361
+ SuccessReceiptId: string;
1362
+ } | {
1363
+ Failure: {
1364
+ [x: string]: any;
1365
+ error_message?: string | undefined;
1366
+ error_type?: string | undefined;
1367
+ };
1368
+ };
1369
+ metadata?: {
1370
+ gas_profile?: {
1371
+ [x: string]: any;
1372
+ cost?: string | undefined;
1373
+ cost_category?: string | undefined;
1374
+ gas_used?: string | undefined;
1375
+ }[] | null | undefined;
1376
+ version: 4;
1377
+ contracts?: ({
1378
+ local: string;
1379
+ } | {
1380
+ global_hash: string;
1381
+ } | {
1382
+ global_account_id: string;
1383
+ } | null)[] | null | undefined;
1384
+ } | {
1385
+ gas_profile?: {
1386
+ [x: string]: any;
1387
+ cost?: string | undefined;
1388
+ cost_category?: string | undefined;
1389
+ gas_used?: string | undefined;
1390
+ }[] | null | undefined;
1391
+ version: 1 | 2 | 3;
1392
+ } | {
1393
+ gas_profile?: {
1394
+ [x: string]: any;
1395
+ cost?: string | undefined;
1396
+ cost_category?: string | undefined;
1397
+ gas_used?: string | undefined;
1398
+ }[] | null | undefined;
1399
+ version: number;
1400
+ } | undefined;
1401
+ };
1402
+ block_hash: string;
1403
+ proof: {
1404
+ hash: string;
1405
+ direction: "Left" | "Right";
1406
+ }[];
1407
+ } | undefined;
1408
+ receipts_outcome?: {
1409
+ id: string;
1410
+ outcome: {
1411
+ logs: string[];
1412
+ receipt_ids: string[];
1413
+ gas_burnt: number;
1414
+ tokens_burnt: string;
1415
+ executor_id: string;
1416
+ status: "Pending" | "Unknown" | {
1417
+ SuccessValue: string;
1418
+ } | {
1419
+ SuccessReceiptId: string;
1420
+ } | {
1421
+ Failure: {
1422
+ [x: string]: any;
1423
+ error_message?: string | undefined;
1424
+ error_type?: string | undefined;
1425
+ };
1426
+ };
1427
+ metadata?: {
1428
+ gas_profile?: {
1429
+ [x: string]: any;
1430
+ cost?: string | undefined;
1431
+ cost_category?: string | undefined;
1432
+ gas_used?: string | undefined;
1433
+ }[] | null | undefined;
1434
+ version: 4;
1435
+ contracts?: ({
1436
+ local: string;
1437
+ } | {
1438
+ global_hash: string;
1439
+ } | {
1440
+ global_account_id: string;
1441
+ } | null)[] | null | undefined;
1442
+ } | {
1443
+ gas_profile?: {
1444
+ [x: string]: any;
1445
+ cost?: string | undefined;
1446
+ cost_category?: string | undefined;
1447
+ gas_used?: string | undefined;
1448
+ }[] | null | undefined;
1449
+ version: 1 | 2 | 3;
1450
+ } | {
1451
+ gas_profile?: {
1452
+ [x: string]: any;
1453
+ cost?: string | undefined;
1454
+ cost_category?: string | undefined;
1455
+ gas_used?: string | undefined;
1456
+ }[] | null | undefined;
1457
+ version: number;
1458
+ } | undefined;
1459
+ };
1460
+ block_hash: string;
1461
+ proof: {
1462
+ hash: string;
1463
+ direction: "Left" | "Right";
1464
+ }[];
1465
+ }[] | undefined;
1466
+ } | {
1467
+ final_execution_status: "INCLUDED_FINAL";
1468
+ transaction?: {
1469
+ hash: string;
1470
+ signer_id: string;
1471
+ receiver_id: string;
1472
+ nonce: number;
1473
+ } | undefined;
1474
+ status?: "Pending" | "Unknown" | {
1475
+ SuccessValue: string;
1476
+ } | {
1477
+ SuccessReceiptId: string;
1478
+ } | {
1479
+ Failure: {
1480
+ [x: string]: any;
1481
+ error_message?: string | undefined;
1482
+ error_type?: string | undefined;
1483
+ };
1484
+ } | undefined;
1485
+ transaction_outcome?: {
1486
+ id: string;
1487
+ outcome: {
1488
+ logs: string[];
1489
+ receipt_ids: string[];
1490
+ gas_burnt: number;
1491
+ tokens_burnt: string;
1492
+ executor_id: string;
1493
+ status: "Pending" | "Unknown" | {
1494
+ SuccessValue: string;
1495
+ } | {
1496
+ SuccessReceiptId: string;
1497
+ } | {
1498
+ Failure: {
1499
+ [x: string]: any;
1500
+ error_message?: string | undefined;
1501
+ error_type?: string | undefined;
1502
+ };
1503
+ };
1504
+ metadata?: {
1505
+ gas_profile?: {
1506
+ [x: string]: any;
1507
+ cost?: string | undefined;
1508
+ cost_category?: string | undefined;
1509
+ gas_used?: string | undefined;
1510
+ }[] | null | undefined;
1511
+ version: 4;
1512
+ contracts?: ({
1513
+ local: string;
1514
+ } | {
1515
+ global_hash: string;
1516
+ } | {
1517
+ global_account_id: string;
1518
+ } | null)[] | null | undefined;
1519
+ } | {
1520
+ gas_profile?: {
1521
+ [x: string]: any;
1522
+ cost?: string | undefined;
1523
+ cost_category?: string | undefined;
1524
+ gas_used?: string | undefined;
1525
+ }[] | null | undefined;
1526
+ version: 1 | 2 | 3;
1527
+ } | {
1528
+ gas_profile?: {
1529
+ [x: string]: any;
1530
+ cost?: string | undefined;
1531
+ cost_category?: string | undefined;
1532
+ gas_used?: string | undefined;
1533
+ }[] | null | undefined;
1534
+ version: number;
1535
+ } | undefined;
1536
+ };
1537
+ block_hash: string;
1538
+ proof: {
1539
+ hash: string;
1540
+ direction: "Left" | "Right";
1541
+ }[];
1542
+ } | undefined;
1543
+ receipts_outcome?: {
1544
+ id: string;
1545
+ outcome: {
1546
+ logs: string[];
1547
+ receipt_ids: string[];
1548
+ gas_burnt: number;
1549
+ tokens_burnt: string;
1550
+ executor_id: string;
1551
+ status: "Pending" | "Unknown" | {
1552
+ SuccessValue: string;
1553
+ } | {
1554
+ SuccessReceiptId: string;
1555
+ } | {
1556
+ Failure: {
1557
+ [x: string]: any;
1558
+ error_message?: string | undefined;
1559
+ error_type?: string | undefined;
1560
+ };
1561
+ };
1562
+ metadata?: {
1563
+ gas_profile?: {
1564
+ [x: string]: any;
1565
+ cost?: string | undefined;
1566
+ cost_category?: string | undefined;
1567
+ gas_used?: string | undefined;
1568
+ }[] | null | undefined;
1569
+ version: 4;
1570
+ contracts?: ({
1571
+ local: string;
1572
+ } | {
1573
+ global_hash: string;
1574
+ } | {
1575
+ global_account_id: string;
1576
+ } | null)[] | null | undefined;
1577
+ } | {
1578
+ gas_profile?: {
1579
+ [x: string]: any;
1580
+ cost?: string | undefined;
1581
+ cost_category?: string | undefined;
1582
+ gas_used?: string | undefined;
1583
+ }[] | null | undefined;
1584
+ version: 1 | 2 | 3;
1585
+ } | {
1586
+ gas_profile?: {
1587
+ [x: string]: any;
1588
+ cost?: string | undefined;
1589
+ cost_category?: string | undefined;
1590
+ gas_used?: string | undefined;
1591
+ }[] | null | undefined;
1592
+ version: number;
1593
+ } | undefined;
1594
+ };
1595
+ block_hash: string;
1596
+ proof: {
1597
+ hash: string;
1598
+ direction: "Left" | "Right";
1599
+ }[];
1600
+ }[] | undefined;
1601
+ } | {
1602
+ final_execution_status: "EXECUTED_OPTIMISTIC";
1603
+ status: "Pending" | "Unknown" | {
1604
+ SuccessValue: string;
1605
+ } | {
1606
+ SuccessReceiptId: string;
1607
+ } | {
1608
+ Failure: {
1609
+ [x: string]: any;
1610
+ error_message?: string | undefined;
1611
+ error_type?: string | undefined;
1612
+ };
1613
+ };
1614
+ transaction: {
1615
+ signer_id: string;
1616
+ public_key: string;
1617
+ nonce: number;
1618
+ receiver_id: string;
1619
+ actions: ("CreateAccount" | {
1620
+ CreateAccount: Record<string, never>;
1621
+ } | {
1622
+ Transfer: {
1623
+ deposit: string;
1624
+ };
1625
+ } | {
1626
+ FunctionCall: {
1627
+ method_name: string;
1628
+ args: string;
1629
+ gas: number;
1630
+ deposit: string;
1631
+ };
1632
+ } | {
1633
+ DeployContract: {
1634
+ code: string;
1635
+ };
1636
+ } | {
1637
+ DeployGlobalContract: {
1638
+ code: string;
1639
+ };
1640
+ } | {
1641
+ DeployGlobalContractByAccountId: {
1642
+ code: string;
1643
+ };
1644
+ } | {
1645
+ Stake: {
1646
+ stake: string;
1647
+ public_key: string;
1648
+ };
1649
+ } | {
1650
+ AddKey: {
1651
+ public_key: string;
1652
+ access_key: {
1653
+ nonce: number;
1654
+ permission: "FullAccess" | {
1655
+ FunctionCall: {
1656
+ receiver_id: string;
1657
+ method_names: string[];
1658
+ allowance?: string | null | undefined;
1659
+ };
1660
+ } | {
1661
+ GasKeyFunctionCall: {
1662
+ balance: string;
1663
+ num_nonces: number;
1664
+ receiver_id: string;
1665
+ method_names: string[];
1666
+ allowance?: string | null | undefined;
1667
+ };
1668
+ } | {
1669
+ GasKeyFullAccess: {
1670
+ balance: string;
1671
+ num_nonces: number;
1672
+ };
1673
+ };
1674
+ };
1675
+ };
1676
+ } | {
1677
+ DeleteKey: {
1678
+ public_key: string;
1679
+ };
1680
+ } | {
1681
+ DeleteAccount: {
1682
+ beneficiary_id: string;
1683
+ };
1684
+ } | {
1685
+ UseGlobalContract: {
1686
+ code_hash: string;
1687
+ };
1688
+ } | {
1689
+ UseGlobalContractByAccountId: {
1690
+ account_id: string;
1691
+ };
1692
+ } | {
1693
+ Delegate: {
1694
+ delegate_action: {
1695
+ sender_id: string;
1696
+ receiver_id: string;
1697
+ actions: any[];
1698
+ nonce: number;
1699
+ max_block_height: number;
1700
+ public_key: string;
1701
+ };
1702
+ signature: string;
1703
+ };
1704
+ } | {
1705
+ DeterministicStateInit: {
1706
+ deposit: string;
1707
+ };
1708
+ } | {
1709
+ TransferToGasKey: {
1710
+ public_key: string;
1711
+ deposit: string;
1712
+ };
1713
+ } | {
1714
+ WithdrawFromGasKey: {
1715
+ public_key: string;
1716
+ amount: string;
1717
+ };
1718
+ } | {
1719
+ DelegateV2: {
1720
+ delegate_action: {
1721
+ V2: {
1722
+ sender_id: string;
1723
+ receiver_id: string;
1724
+ actions: any[];
1725
+ nonce: {
1726
+ Nonce: {
1727
+ nonce: number;
1728
+ };
1729
+ } | {
1730
+ GasKeyNonce: {
1731
+ nonce: number;
1732
+ nonce_index: number;
1733
+ };
1734
+ };
1735
+ max_block_height: number;
1736
+ public_key: string;
1737
+ };
1738
+ };
1739
+ signature: string;
1740
+ };
1741
+ })[];
1742
+ signature: string;
1743
+ hash: string;
1744
+ priority_fee?: number | undefined;
1745
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1746
+ };
1747
+ transaction_outcome: {
1748
+ id: string;
1749
+ outcome: {
1750
+ logs: string[];
1751
+ receipt_ids: string[];
1752
+ gas_burnt: number;
1753
+ tokens_burnt: string;
1754
+ executor_id: string;
1755
+ status: "Pending" | "Unknown" | {
1756
+ SuccessValue: string;
1757
+ } | {
1758
+ SuccessReceiptId: string;
1759
+ } | {
1760
+ Failure: {
1761
+ [x: string]: any;
1762
+ error_message?: string | undefined;
1763
+ error_type?: string | undefined;
1764
+ };
1765
+ };
1766
+ metadata?: {
1767
+ gas_profile?: {
1768
+ [x: string]: any;
1769
+ cost?: string | undefined;
1770
+ cost_category?: string | undefined;
1771
+ gas_used?: string | undefined;
1772
+ }[] | null | undefined;
1773
+ version: 4;
1774
+ contracts?: ({
1775
+ local: string;
1776
+ } | {
1777
+ global_hash: string;
1778
+ } | {
1779
+ global_account_id: string;
1780
+ } | null)[] | null | undefined;
1781
+ } | {
1782
+ gas_profile?: {
1783
+ [x: string]: any;
1784
+ cost?: string | undefined;
1785
+ cost_category?: string | undefined;
1786
+ gas_used?: string | undefined;
1787
+ }[] | null | undefined;
1788
+ version: 1 | 2 | 3;
1789
+ } | {
1790
+ gas_profile?: {
1791
+ [x: string]: any;
1792
+ cost?: string | undefined;
1793
+ cost_category?: string | undefined;
1794
+ gas_used?: string | undefined;
1795
+ }[] | null | undefined;
1796
+ version: number;
1797
+ } | undefined;
1798
+ };
1799
+ block_hash: string;
1800
+ proof: {
1801
+ hash: string;
1802
+ direction: "Left" | "Right";
1803
+ }[];
1804
+ };
1805
+ receipts_outcome: {
1806
+ id: string;
1807
+ outcome: {
1808
+ logs: string[];
1809
+ receipt_ids: string[];
1810
+ gas_burnt: number;
1811
+ tokens_burnt: string;
1812
+ executor_id: string;
1813
+ status: "Pending" | "Unknown" | {
1814
+ SuccessValue: string;
1815
+ } | {
1816
+ SuccessReceiptId: string;
1817
+ } | {
1818
+ Failure: {
1819
+ [x: string]: any;
1820
+ error_message?: string | undefined;
1821
+ error_type?: string | undefined;
1822
+ };
1823
+ };
1824
+ metadata?: {
1825
+ gas_profile?: {
1826
+ [x: string]: any;
1827
+ cost?: string | undefined;
1828
+ cost_category?: string | undefined;
1829
+ gas_used?: string | undefined;
1830
+ }[] | null | undefined;
1831
+ version: 4;
1832
+ contracts?: ({
1833
+ local: string;
1834
+ } | {
1835
+ global_hash: string;
1836
+ } | {
1837
+ global_account_id: string;
1838
+ } | null)[] | null | undefined;
1839
+ } | {
1840
+ gas_profile?: {
1841
+ [x: string]: any;
1842
+ cost?: string | undefined;
1843
+ cost_category?: string | undefined;
1844
+ gas_used?: string | undefined;
1845
+ }[] | null | undefined;
1846
+ version: 1 | 2 | 3;
1847
+ } | {
1848
+ gas_profile?: {
1849
+ [x: string]: any;
1850
+ cost?: string | undefined;
1851
+ cost_category?: string | undefined;
1852
+ gas_used?: string | undefined;
1853
+ }[] | null | undefined;
1854
+ version: number;
1855
+ } | undefined;
1856
+ };
1857
+ block_hash: string;
1858
+ proof: {
1859
+ hash: string;
1860
+ direction: "Left" | "Right";
1861
+ }[];
1862
+ }[];
1863
+ } | {
1864
+ final_execution_status: "EXECUTED";
1865
+ status: "Pending" | "Unknown" | {
1866
+ SuccessValue: string;
1867
+ } | {
1868
+ SuccessReceiptId: string;
1869
+ } | {
1870
+ Failure: {
1871
+ [x: string]: any;
1872
+ error_message?: string | undefined;
1873
+ error_type?: string | undefined;
1874
+ };
1875
+ };
1876
+ transaction: {
1877
+ signer_id: string;
1878
+ public_key: string;
1879
+ nonce: number;
1880
+ receiver_id: string;
1881
+ actions: ("CreateAccount" | {
1882
+ CreateAccount: Record<string, never>;
1883
+ } | {
1884
+ Transfer: {
1885
+ deposit: string;
1886
+ };
1887
+ } | {
1888
+ FunctionCall: {
1889
+ method_name: string;
1890
+ args: string;
1891
+ gas: number;
1892
+ deposit: string;
1893
+ };
1894
+ } | {
1895
+ DeployContract: {
1896
+ code: string;
1897
+ };
1898
+ } | {
1899
+ DeployGlobalContract: {
1900
+ code: string;
1901
+ };
1902
+ } | {
1903
+ DeployGlobalContractByAccountId: {
1904
+ code: string;
1905
+ };
1906
+ } | {
1907
+ Stake: {
1908
+ stake: string;
1909
+ public_key: string;
1910
+ };
1911
+ } | {
1912
+ AddKey: {
1913
+ public_key: string;
1914
+ access_key: {
1915
+ nonce: number;
1916
+ permission: "FullAccess" | {
1917
+ FunctionCall: {
1918
+ receiver_id: string;
1919
+ method_names: string[];
1920
+ allowance?: string | null | undefined;
1921
+ };
1922
+ } | {
1923
+ GasKeyFunctionCall: {
1924
+ balance: string;
1925
+ num_nonces: number;
1926
+ receiver_id: string;
1927
+ method_names: string[];
1928
+ allowance?: string | null | undefined;
1929
+ };
1930
+ } | {
1931
+ GasKeyFullAccess: {
1932
+ balance: string;
1933
+ num_nonces: number;
1934
+ };
1935
+ };
1936
+ };
1937
+ };
1938
+ } | {
1939
+ DeleteKey: {
1940
+ public_key: string;
1941
+ };
1942
+ } | {
1943
+ DeleteAccount: {
1944
+ beneficiary_id: string;
1945
+ };
1946
+ } | {
1947
+ UseGlobalContract: {
1948
+ code_hash: string;
1949
+ };
1950
+ } | {
1951
+ UseGlobalContractByAccountId: {
1952
+ account_id: string;
1953
+ };
1954
+ } | {
1955
+ Delegate: {
1956
+ delegate_action: {
1957
+ sender_id: string;
1958
+ receiver_id: string;
1959
+ actions: any[];
1960
+ nonce: number;
1961
+ max_block_height: number;
1962
+ public_key: string;
1963
+ };
1964
+ signature: string;
1965
+ };
1966
+ } | {
1967
+ DeterministicStateInit: {
1968
+ deposit: string;
1969
+ };
1970
+ } | {
1971
+ TransferToGasKey: {
1972
+ public_key: string;
1973
+ deposit: string;
1974
+ };
1975
+ } | {
1976
+ WithdrawFromGasKey: {
1977
+ public_key: string;
1978
+ amount: string;
1979
+ };
1980
+ } | {
1981
+ DelegateV2: {
1982
+ delegate_action: {
1983
+ V2: {
1984
+ sender_id: string;
1985
+ receiver_id: string;
1986
+ actions: any[];
1987
+ nonce: {
1988
+ Nonce: {
1989
+ nonce: number;
1990
+ };
1991
+ } | {
1992
+ GasKeyNonce: {
1993
+ nonce: number;
1994
+ nonce_index: number;
1995
+ };
1996
+ };
1997
+ max_block_height: number;
1998
+ public_key: string;
1999
+ };
2000
+ };
2001
+ signature: string;
2002
+ };
2003
+ })[];
2004
+ signature: string;
2005
+ hash: string;
2006
+ priority_fee?: number | undefined;
2007
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
2008
+ };
2009
+ transaction_outcome: {
2010
+ id: string;
2011
+ outcome: {
2012
+ logs: string[];
2013
+ receipt_ids: string[];
2014
+ gas_burnt: number;
2015
+ tokens_burnt: string;
2016
+ executor_id: string;
2017
+ status: "Pending" | "Unknown" | {
2018
+ SuccessValue: string;
2019
+ } | {
2020
+ SuccessReceiptId: string;
2021
+ } | {
2022
+ Failure: {
2023
+ [x: string]: any;
2024
+ error_message?: string | undefined;
2025
+ error_type?: string | undefined;
2026
+ };
2027
+ };
2028
+ metadata?: {
2029
+ gas_profile?: {
2030
+ [x: string]: any;
2031
+ cost?: string | undefined;
2032
+ cost_category?: string | undefined;
2033
+ gas_used?: string | undefined;
2034
+ }[] | null | undefined;
2035
+ version: 4;
2036
+ contracts?: ({
2037
+ local: string;
2038
+ } | {
2039
+ global_hash: string;
2040
+ } | {
2041
+ global_account_id: string;
2042
+ } | null)[] | null | undefined;
2043
+ } | {
2044
+ gas_profile?: {
2045
+ [x: string]: any;
2046
+ cost?: string | undefined;
2047
+ cost_category?: string | undefined;
2048
+ gas_used?: string | undefined;
2049
+ }[] | null | undefined;
2050
+ version: 1 | 2 | 3;
2051
+ } | {
2052
+ gas_profile?: {
2053
+ [x: string]: any;
2054
+ cost?: string | undefined;
2055
+ cost_category?: string | undefined;
2056
+ gas_used?: string | undefined;
2057
+ }[] | null | undefined;
2058
+ version: number;
2059
+ } | undefined;
2060
+ };
2061
+ block_hash: string;
2062
+ proof: {
2063
+ hash: string;
2064
+ direction: "Left" | "Right";
2065
+ }[];
2066
+ };
2067
+ receipts_outcome: {
2068
+ id: string;
2069
+ outcome: {
2070
+ logs: string[];
2071
+ receipt_ids: string[];
2072
+ gas_burnt: number;
2073
+ tokens_burnt: string;
2074
+ executor_id: string;
2075
+ status: "Pending" | "Unknown" | {
2076
+ SuccessValue: string;
2077
+ } | {
2078
+ SuccessReceiptId: string;
2079
+ } | {
2080
+ Failure: {
2081
+ [x: string]: any;
2082
+ error_message?: string | undefined;
2083
+ error_type?: string | undefined;
2084
+ };
2085
+ };
2086
+ metadata?: {
2087
+ gas_profile?: {
2088
+ [x: string]: any;
2089
+ cost?: string | undefined;
2090
+ cost_category?: string | undefined;
2091
+ gas_used?: string | undefined;
2092
+ }[] | null | undefined;
2093
+ version: 4;
2094
+ contracts?: ({
2095
+ local: string;
2096
+ } | {
2097
+ global_hash: string;
2098
+ } | {
2099
+ global_account_id: string;
2100
+ } | null)[] | null | undefined;
2101
+ } | {
2102
+ gas_profile?: {
2103
+ [x: string]: any;
2104
+ cost?: string | undefined;
2105
+ cost_category?: string | undefined;
2106
+ gas_used?: string | undefined;
2107
+ }[] | null | undefined;
2108
+ version: 1 | 2 | 3;
2109
+ } | {
2110
+ gas_profile?: {
2111
+ [x: string]: any;
2112
+ cost?: string | undefined;
2113
+ cost_category?: string | undefined;
2114
+ gas_used?: string | undefined;
2115
+ }[] | null | undefined;
2116
+ version: number;
2117
+ } | undefined;
2118
+ };
2119
+ block_hash: string;
2120
+ proof: {
2121
+ hash: string;
2122
+ direction: "Left" | "Right";
2123
+ }[];
2124
+ }[];
28
2125
  } | {
29
- final_execution_status: "EXECUTED_OPTIMISTIC";
30
- status: "Unknown" | "Pending" | {
2126
+ final_execution_status: "FINAL";
2127
+ status: "Pending" | "Unknown" | {
31
2128
  SuccessValue: string;
32
2129
  } | {
33
2130
  SuccessReceiptId: string;
@@ -84,6 +2181,19 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
84
2181
  method_names: string[];
85
2182
  allowance?: string | null | undefined;
86
2183
  };
2184
+ } | {
2185
+ GasKeyFunctionCall: {
2186
+ balance: string;
2187
+ num_nonces: number;
2188
+ receiver_id: string;
2189
+ method_names: string[];
2190
+ allowance?: string | null | undefined;
2191
+ };
2192
+ } | {
2193
+ GasKeyFullAccess: {
2194
+ balance: string;
2195
+ num_nonces: number;
2196
+ };
87
2197
  };
88
2198
  };
89
2199
  };
@@ -119,10 +2229,44 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
119
2229
  DeterministicStateInit: {
120
2230
  deposit: string;
121
2231
  };
2232
+ } | {
2233
+ TransferToGasKey: {
2234
+ public_key: string;
2235
+ deposit: string;
2236
+ };
2237
+ } | {
2238
+ WithdrawFromGasKey: {
2239
+ public_key: string;
2240
+ amount: string;
2241
+ };
2242
+ } | {
2243
+ DelegateV2: {
2244
+ delegate_action: {
2245
+ V2: {
2246
+ sender_id: string;
2247
+ receiver_id: string;
2248
+ actions: any[];
2249
+ nonce: {
2250
+ Nonce: {
2251
+ nonce: number;
2252
+ };
2253
+ } | {
2254
+ GasKeyNonce: {
2255
+ nonce: number;
2256
+ nonce_index: number;
2257
+ };
2258
+ };
2259
+ max_block_height: number;
2260
+ public_key: string;
2261
+ };
2262
+ };
2263
+ signature: string;
2264
+ };
122
2265
  })[];
123
2266
  signature: string;
124
2267
  hash: string;
125
2268
  priority_fee?: number | undefined;
2269
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
126
2270
  };
127
2271
  transaction_outcome: {
128
2272
  id: string;
@@ -132,7 +2276,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
132
2276
  gas_burnt: number;
133
2277
  tokens_burnt: string;
134
2278
  executor_id: string;
135
- status: "Unknown" | "Pending" | {
2279
+ status: "Pending" | "Unknown" | {
136
2280
  SuccessValue: string;
137
2281
  } | {
138
2282
  SuccessReceiptId: string;
@@ -144,13 +2288,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
144
2288
  };
145
2289
  };
146
2290
  metadata?: {
147
- version: number;
148
2291
  gas_profile?: {
149
2292
  [x: string]: any;
150
2293
  cost?: string | undefined;
151
2294
  cost_category?: string | undefined;
152
2295
  gas_used?: string | undefined;
153
2296
  }[] | null | undefined;
2297
+ version: 4;
2298
+ contracts?: ({
2299
+ local: string;
2300
+ } | {
2301
+ global_hash: string;
2302
+ } | {
2303
+ global_account_id: string;
2304
+ } | null)[] | null | undefined;
2305
+ } | {
2306
+ gas_profile?: {
2307
+ [x: string]: any;
2308
+ cost?: string | undefined;
2309
+ cost_category?: string | undefined;
2310
+ gas_used?: string | undefined;
2311
+ }[] | null | undefined;
2312
+ version: 1 | 2 | 3;
2313
+ } | {
2314
+ gas_profile?: {
2315
+ [x: string]: any;
2316
+ cost?: string | undefined;
2317
+ cost_category?: string | undefined;
2318
+ gas_used?: string | undefined;
2319
+ }[] | null | undefined;
2320
+ version: number;
154
2321
  } | undefined;
155
2322
  };
156
2323
  block_hash: string;
@@ -167,7 +2334,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
167
2334
  gas_burnt: number;
168
2335
  tokens_burnt: string;
169
2336
  executor_id: string;
170
- status: "Unknown" | "Pending" | {
2337
+ status: "Pending" | "Unknown" | {
171
2338
  SuccessValue: string;
172
2339
  } | {
173
2340
  SuccessReceiptId: string;
@@ -179,13 +2346,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
179
2346
  };
180
2347
  };
181
2348
  metadata?: {
182
- version: number;
183
2349
  gas_profile?: {
184
2350
  [x: string]: any;
185
2351
  cost?: string | undefined;
186
2352
  cost_category?: string | undefined;
187
2353
  gas_used?: string | undefined;
188
2354
  }[] | null | undefined;
2355
+ version: 4;
2356
+ contracts?: ({
2357
+ local: string;
2358
+ } | {
2359
+ global_hash: string;
2360
+ } | {
2361
+ global_account_id: string;
2362
+ } | null)[] | null | undefined;
2363
+ } | {
2364
+ gas_profile?: {
2365
+ [x: string]: any;
2366
+ cost?: string | undefined;
2367
+ cost_category?: string | undefined;
2368
+ gas_used?: string | undefined;
2369
+ }[] | null | undefined;
2370
+ version: 1 | 2 | 3;
2371
+ } | {
2372
+ gas_profile?: {
2373
+ [x: string]: any;
2374
+ cost?: string | undefined;
2375
+ cost_category?: string | undefined;
2376
+ gas_used?: string | undefined;
2377
+ }[] | null | undefined;
2378
+ version: number;
189
2379
  } | undefined;
190
2380
  };
191
2381
  block_hash: string;
@@ -194,9 +2384,16 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
194
2384
  direction: "Left" | "Right";
195
2385
  }[];
196
2386
  }[];
197
- } | {
198
- final_execution_status: "EXECUTED";
199
- status: "Unknown" | "Pending" | {
2387
+ }>;
2388
+ export declare function ref_withdraw_function(near: Near, rhea_contractId: string, amount: ref_args_params_interface["amount"], token_id: ref_args_params_interface["token_id"]): Promise<{
2389
+ final_execution_status: "NONE";
2390
+ transaction?: {
2391
+ hash: string;
2392
+ signer_id: string;
2393
+ receiver_id: string;
2394
+ nonce: number;
2395
+ } | undefined;
2396
+ status?: "Pending" | "Unknown" | {
200
2397
  SuccessValue: string;
201
2398
  } | {
202
2399
  SuccessReceiptId: string;
@@ -206,94 +2403,143 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
206
2403
  error_message?: string | undefined;
207
2404
  error_type?: string | undefined;
208
2405
  };
209
- };
210
- transaction: {
211
- signer_id: string;
212
- public_key: string;
213
- nonce: number;
214
- receiver_id: string;
215
- actions: ("CreateAccount" | {
216
- CreateAccount: Record<string, never>;
217
- } | {
218
- Transfer: {
219
- deposit: string;
220
- };
221
- } | {
222
- FunctionCall: {
223
- method_name: string;
224
- args: string;
225
- gas: number;
226
- deposit: string;
227
- };
228
- } | {
229
- DeployContract: {
230
- code: string;
231
- };
232
- } | {
233
- DeployGlobalContract: {
234
- code: string;
235
- };
236
- } | {
237
- DeployGlobalContractByAccountId: {
238
- code: string;
239
- };
240
- } | {
241
- Stake: {
242
- stake: string;
243
- public_key: string;
244
- };
245
- } | {
246
- AddKey: {
247
- public_key: string;
248
- access_key: {
249
- nonce: number;
250
- permission: "FullAccess" | {
251
- FunctionCall: {
252
- receiver_id: string;
253
- method_names: string[];
254
- allowance?: string | null | undefined;
255
- };
256
- };
2406
+ } | undefined;
2407
+ transaction_outcome?: {
2408
+ id: string;
2409
+ outcome: {
2410
+ logs: string[];
2411
+ receipt_ids: string[];
2412
+ gas_burnt: number;
2413
+ tokens_burnt: string;
2414
+ executor_id: string;
2415
+ status: "Pending" | "Unknown" | {
2416
+ SuccessValue: string;
2417
+ } | {
2418
+ SuccessReceiptId: string;
2419
+ } | {
2420
+ Failure: {
2421
+ [x: string]: any;
2422
+ error_message?: string | undefined;
2423
+ error_type?: string | undefined;
257
2424
  };
258
2425
  };
259
- } | {
260
- DeleteKey: {
261
- public_key: string;
262
- };
263
- } | {
264
- DeleteAccount: {
265
- beneficiary_id: string;
266
- };
267
- } | {
268
- UseGlobalContract: {
269
- code_hash: string;
270
- };
271
- } | {
272
- UseGlobalContractByAccountId: {
273
- account_id: string;
274
- };
275
- } | {
276
- Delegate: {
277
- delegate_action: {
278
- sender_id: string;
279
- receiver_id: string;
280
- actions: any[];
281
- nonce: number;
282
- max_block_height: number;
283
- public_key: string;
2426
+ metadata?: {
2427
+ gas_profile?: {
2428
+ [x: string]: any;
2429
+ cost?: string | undefined;
2430
+ cost_category?: string | undefined;
2431
+ gas_used?: string | undefined;
2432
+ }[] | null | undefined;
2433
+ version: 4;
2434
+ contracts?: ({
2435
+ local: string;
2436
+ } | {
2437
+ global_hash: string;
2438
+ } | {
2439
+ global_account_id: string;
2440
+ } | null)[] | null | undefined;
2441
+ } | {
2442
+ gas_profile?: {
2443
+ [x: string]: any;
2444
+ cost?: string | undefined;
2445
+ cost_category?: string | undefined;
2446
+ gas_used?: string | undefined;
2447
+ }[] | null | undefined;
2448
+ version: 1 | 2 | 3;
2449
+ } | {
2450
+ gas_profile?: {
2451
+ [x: string]: any;
2452
+ cost?: string | undefined;
2453
+ cost_category?: string | undefined;
2454
+ gas_used?: string | undefined;
2455
+ }[] | null | undefined;
2456
+ version: number;
2457
+ } | undefined;
2458
+ };
2459
+ block_hash: string;
2460
+ proof: {
2461
+ hash: string;
2462
+ direction: "Left" | "Right";
2463
+ }[];
2464
+ } | undefined;
2465
+ receipts_outcome?: {
2466
+ id: string;
2467
+ outcome: {
2468
+ logs: string[];
2469
+ receipt_ids: string[];
2470
+ gas_burnt: number;
2471
+ tokens_burnt: string;
2472
+ executor_id: string;
2473
+ status: "Pending" | "Unknown" | {
2474
+ SuccessValue: string;
2475
+ } | {
2476
+ SuccessReceiptId: string;
2477
+ } | {
2478
+ Failure: {
2479
+ [x: string]: any;
2480
+ error_message?: string | undefined;
2481
+ error_type?: string | undefined;
284
2482
  };
285
- signature: string;
286
- };
287
- } | {
288
- DeterministicStateInit: {
289
- deposit: string;
290
2483
  };
291
- })[];
292
- signature: string;
2484
+ metadata?: {
2485
+ gas_profile?: {
2486
+ [x: string]: any;
2487
+ cost?: string | undefined;
2488
+ cost_category?: string | undefined;
2489
+ gas_used?: string | undefined;
2490
+ }[] | null | undefined;
2491
+ version: 4;
2492
+ contracts?: ({
2493
+ local: string;
2494
+ } | {
2495
+ global_hash: string;
2496
+ } | {
2497
+ global_account_id: string;
2498
+ } | null)[] | null | undefined;
2499
+ } | {
2500
+ gas_profile?: {
2501
+ [x: string]: any;
2502
+ cost?: string | undefined;
2503
+ cost_category?: string | undefined;
2504
+ gas_used?: string | undefined;
2505
+ }[] | null | undefined;
2506
+ version: 1 | 2 | 3;
2507
+ } | {
2508
+ gas_profile?: {
2509
+ [x: string]: any;
2510
+ cost?: string | undefined;
2511
+ cost_category?: string | undefined;
2512
+ gas_used?: string | undefined;
2513
+ }[] | null | undefined;
2514
+ version: number;
2515
+ } | undefined;
2516
+ };
2517
+ block_hash: string;
2518
+ proof: {
2519
+ hash: string;
2520
+ direction: "Left" | "Right";
2521
+ }[];
2522
+ }[] | undefined;
2523
+ } | {
2524
+ final_execution_status: "INCLUDED";
2525
+ transaction?: {
293
2526
  hash: string;
294
- priority_fee?: number | undefined;
295
- };
296
- transaction_outcome: {
2527
+ signer_id: string;
2528
+ receiver_id: string;
2529
+ nonce: number;
2530
+ } | undefined;
2531
+ status?: "Pending" | "Unknown" | {
2532
+ SuccessValue: string;
2533
+ } | {
2534
+ SuccessReceiptId: string;
2535
+ } | {
2536
+ Failure: {
2537
+ [x: string]: any;
2538
+ error_message?: string | undefined;
2539
+ error_type?: string | undefined;
2540
+ };
2541
+ } | undefined;
2542
+ transaction_outcome?: {
297
2543
  id: string;
298
2544
  outcome: {
299
2545
  logs: string[];
@@ -301,7 +2547,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
301
2547
  gas_burnt: number;
302
2548
  tokens_burnt: string;
303
2549
  executor_id: string;
304
- status: "Unknown" | "Pending" | {
2550
+ status: "Pending" | "Unknown" | {
305
2551
  SuccessValue: string;
306
2552
  } | {
307
2553
  SuccessReceiptId: string;
@@ -313,13 +2559,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
313
2559
  };
314
2560
  };
315
2561
  metadata?: {
316
- version: number;
317
2562
  gas_profile?: {
318
2563
  [x: string]: any;
319
2564
  cost?: string | undefined;
320
2565
  cost_category?: string | undefined;
321
2566
  gas_used?: string | undefined;
322
2567
  }[] | null | undefined;
2568
+ version: 4;
2569
+ contracts?: ({
2570
+ local: string;
2571
+ } | {
2572
+ global_hash: string;
2573
+ } | {
2574
+ global_account_id: string;
2575
+ } | null)[] | null | undefined;
2576
+ } | {
2577
+ gas_profile?: {
2578
+ [x: string]: any;
2579
+ cost?: string | undefined;
2580
+ cost_category?: string | undefined;
2581
+ gas_used?: string | undefined;
2582
+ }[] | null | undefined;
2583
+ version: 1 | 2 | 3;
2584
+ } | {
2585
+ gas_profile?: {
2586
+ [x: string]: any;
2587
+ cost?: string | undefined;
2588
+ cost_category?: string | undefined;
2589
+ gas_used?: string | undefined;
2590
+ }[] | null | undefined;
2591
+ version: number;
323
2592
  } | undefined;
324
2593
  };
325
2594
  block_hash: string;
@@ -327,8 +2596,8 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
327
2596
  hash: string;
328
2597
  direction: "Left" | "Right";
329
2598
  }[];
330
- };
331
- receipts_outcome: {
2599
+ } | undefined;
2600
+ receipts_outcome?: {
332
2601
  id: string;
333
2602
  outcome: {
334
2603
  logs: string[];
@@ -336,7 +2605,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
336
2605
  gas_burnt: number;
337
2606
  tokens_burnt: string;
338
2607
  executor_id: string;
339
- status: "Unknown" | "Pending" | {
2608
+ status: "Pending" | "Unknown" | {
340
2609
  SuccessValue: string;
341
2610
  } | {
342
2611
  SuccessReceiptId: string;
@@ -348,13 +2617,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
348
2617
  };
349
2618
  };
350
2619
  metadata?: {
351
- version: number;
352
2620
  gas_profile?: {
353
2621
  [x: string]: any;
354
2622
  cost?: string | undefined;
355
2623
  cost_category?: string | undefined;
356
2624
  gas_used?: string | undefined;
357
2625
  }[] | null | undefined;
2626
+ version: 4;
2627
+ contracts?: ({
2628
+ local: string;
2629
+ } | {
2630
+ global_hash: string;
2631
+ } | {
2632
+ global_account_id: string;
2633
+ } | null)[] | null | undefined;
2634
+ } | {
2635
+ gas_profile?: {
2636
+ [x: string]: any;
2637
+ cost?: string | undefined;
2638
+ cost_category?: string | undefined;
2639
+ gas_used?: string | undefined;
2640
+ }[] | null | undefined;
2641
+ version: 1 | 2 | 3;
2642
+ } | {
2643
+ gas_profile?: {
2644
+ [x: string]: any;
2645
+ cost?: string | undefined;
2646
+ cost_category?: string | undefined;
2647
+ gas_used?: string | undefined;
2648
+ }[] | null | undefined;
2649
+ version: number;
358
2650
  } | undefined;
359
2651
  };
360
2652
  block_hash: string;
@@ -362,10 +2654,16 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
362
2654
  hash: string;
363
2655
  direction: "Left" | "Right";
364
2656
  }[];
365
- }[];
2657
+ }[] | undefined;
366
2658
  } | {
367
- final_execution_status: "FINAL";
368
- status: "Unknown" | "Pending" | {
2659
+ final_execution_status: "INCLUDED_FINAL";
2660
+ transaction?: {
2661
+ hash: string;
2662
+ signer_id: string;
2663
+ receiver_id: string;
2664
+ nonce: number;
2665
+ } | undefined;
2666
+ status?: "Pending" | "Unknown" | {
369
2667
  SuccessValue: string;
370
2668
  } | {
371
2669
  SuccessReceiptId: string;
@@ -375,94 +2673,8 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
375
2673
  error_message?: string | undefined;
376
2674
  error_type?: string | undefined;
377
2675
  };
378
- };
379
- transaction: {
380
- signer_id: string;
381
- public_key: string;
382
- nonce: number;
383
- receiver_id: string;
384
- actions: ("CreateAccount" | {
385
- CreateAccount: Record<string, never>;
386
- } | {
387
- Transfer: {
388
- deposit: string;
389
- };
390
- } | {
391
- FunctionCall: {
392
- method_name: string;
393
- args: string;
394
- gas: number;
395
- deposit: string;
396
- };
397
- } | {
398
- DeployContract: {
399
- code: string;
400
- };
401
- } | {
402
- DeployGlobalContract: {
403
- code: string;
404
- };
405
- } | {
406
- DeployGlobalContractByAccountId: {
407
- code: string;
408
- };
409
- } | {
410
- Stake: {
411
- stake: string;
412
- public_key: string;
413
- };
414
- } | {
415
- AddKey: {
416
- public_key: string;
417
- access_key: {
418
- nonce: number;
419
- permission: "FullAccess" | {
420
- FunctionCall: {
421
- receiver_id: string;
422
- method_names: string[];
423
- allowance?: string | null | undefined;
424
- };
425
- };
426
- };
427
- };
428
- } | {
429
- DeleteKey: {
430
- public_key: string;
431
- };
432
- } | {
433
- DeleteAccount: {
434
- beneficiary_id: string;
435
- };
436
- } | {
437
- UseGlobalContract: {
438
- code_hash: string;
439
- };
440
- } | {
441
- UseGlobalContractByAccountId: {
442
- account_id: string;
443
- };
444
- } | {
445
- Delegate: {
446
- delegate_action: {
447
- sender_id: string;
448
- receiver_id: string;
449
- actions: any[];
450
- nonce: number;
451
- max_block_height: number;
452
- public_key: string;
453
- };
454
- signature: string;
455
- };
456
- } | {
457
- DeterministicStateInit: {
458
- deposit: string;
459
- };
460
- })[];
461
- signature: string;
462
- hash: string;
463
- priority_fee?: number | undefined;
464
- };
465
- transaction_outcome: {
2676
+ } | undefined;
2677
+ transaction_outcome?: {
466
2678
  id: string;
467
2679
  outcome: {
468
2680
  logs: string[];
@@ -470,7 +2682,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
470
2682
  gas_burnt: number;
471
2683
  tokens_burnt: string;
472
2684
  executor_id: string;
473
- status: "Unknown" | "Pending" | {
2685
+ status: "Pending" | "Unknown" | {
474
2686
  SuccessValue: string;
475
2687
  } | {
476
2688
  SuccessReceiptId: string;
@@ -482,13 +2694,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
482
2694
  };
483
2695
  };
484
2696
  metadata?: {
485
- version: number;
486
2697
  gas_profile?: {
487
2698
  [x: string]: any;
488
2699
  cost?: string | undefined;
489
2700
  cost_category?: string | undefined;
490
2701
  gas_used?: string | undefined;
491
2702
  }[] | null | undefined;
2703
+ version: 4;
2704
+ contracts?: ({
2705
+ local: string;
2706
+ } | {
2707
+ global_hash: string;
2708
+ } | {
2709
+ global_account_id: string;
2710
+ } | null)[] | null | undefined;
2711
+ } | {
2712
+ gas_profile?: {
2713
+ [x: string]: any;
2714
+ cost?: string | undefined;
2715
+ cost_category?: string | undefined;
2716
+ gas_used?: string | undefined;
2717
+ }[] | null | undefined;
2718
+ version: 1 | 2 | 3;
2719
+ } | {
2720
+ gas_profile?: {
2721
+ [x: string]: any;
2722
+ cost?: string | undefined;
2723
+ cost_category?: string | undefined;
2724
+ gas_used?: string | undefined;
2725
+ }[] | null | undefined;
2726
+ version: number;
492
2727
  } | undefined;
493
2728
  };
494
2729
  block_hash: string;
@@ -496,8 +2731,8 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
496
2731
  hash: string;
497
2732
  direction: "Left" | "Right";
498
2733
  }[];
499
- };
500
- receipts_outcome: {
2734
+ } | undefined;
2735
+ receipts_outcome?: {
501
2736
  id: string;
502
2737
  outcome: {
503
2738
  logs: string[];
@@ -505,7 +2740,7 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
505
2740
  gas_burnt: number;
506
2741
  tokens_burnt: string;
507
2742
  executor_id: string;
508
- status: "Unknown" | "Pending" | {
2743
+ status: "Pending" | "Unknown" | {
509
2744
  SuccessValue: string;
510
2745
  } | {
511
2746
  SuccessReceiptId: string;
@@ -517,13 +2752,36 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
517
2752
  };
518
2753
  };
519
2754
  metadata?: {
520
- version: number;
521
2755
  gas_profile?: {
522
2756
  [x: string]: any;
523
2757
  cost?: string | undefined;
524
2758
  cost_category?: string | undefined;
525
2759
  gas_used?: string | undefined;
526
2760
  }[] | null | undefined;
2761
+ version: 4;
2762
+ contracts?: ({
2763
+ local: string;
2764
+ } | {
2765
+ global_hash: string;
2766
+ } | {
2767
+ global_account_id: string;
2768
+ } | null)[] | null | undefined;
2769
+ } | {
2770
+ gas_profile?: {
2771
+ [x: string]: any;
2772
+ cost?: string | undefined;
2773
+ cost_category?: string | undefined;
2774
+ gas_used?: string | undefined;
2775
+ }[] | null | undefined;
2776
+ version: 1 | 2 | 3;
2777
+ } | {
2778
+ gas_profile?: {
2779
+ [x: string]: any;
2780
+ cost?: string | undefined;
2781
+ cost_category?: string | undefined;
2782
+ gas_used?: string | undefined;
2783
+ }[] | null | undefined;
2784
+ version: number;
527
2785
  } | undefined;
528
2786
  };
529
2787
  block_hash: string;
@@ -531,35 +2789,10 @@ export declare function ref_storage_deposit_function(near: Near, rhea_contractId
531
2789
  hash: string;
532
2790
  direction: "Left" | "Right";
533
2791
  }[];
534
- }[];
535
- }>;
536
- export declare function ref_swap_function(near: Near, rhea_contractId: string, swap_actions: ref_swap_action_type[], referral_id: ref_args_params_interface["referral_id"]): Promise<{
537
- final_execution_status: "NONE";
538
- transaction?: {
539
- hash: string;
540
- signer_id: string;
541
- receiver_id: string;
542
- nonce: number;
543
- } | undefined;
544
- } | {
545
- final_execution_status: "INCLUDED";
546
- transaction?: {
547
- hash: string;
548
- signer_id: string;
549
- receiver_id: string;
550
- nonce: number;
551
- } | undefined;
552
- } | {
553
- final_execution_status: "INCLUDED_FINAL";
554
- transaction?: {
555
- hash: string;
556
- signer_id: string;
557
- receiver_id: string;
558
- nonce: number;
559
- } | undefined;
2792
+ }[] | undefined;
560
2793
  } | {
561
2794
  final_execution_status: "EXECUTED_OPTIMISTIC";
562
- status: "Unknown" | "Pending" | {
2795
+ status: "Pending" | "Unknown" | {
563
2796
  SuccessValue: string;
564
2797
  } | {
565
2798
  SuccessReceiptId: string;
@@ -616,6 +2849,19 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
616
2849
  method_names: string[];
617
2850
  allowance?: string | null | undefined;
618
2851
  };
2852
+ } | {
2853
+ GasKeyFunctionCall: {
2854
+ balance: string;
2855
+ num_nonces: number;
2856
+ receiver_id: string;
2857
+ method_names: string[];
2858
+ allowance?: string | null | undefined;
2859
+ };
2860
+ } | {
2861
+ GasKeyFullAccess: {
2862
+ balance: string;
2863
+ num_nonces: number;
2864
+ };
619
2865
  };
620
2866
  };
621
2867
  };
@@ -636,25 +2882,59 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
636
2882
  account_id: string;
637
2883
  };
638
2884
  } | {
639
- Delegate: {
2885
+ Delegate: {
2886
+ delegate_action: {
2887
+ sender_id: string;
2888
+ receiver_id: string;
2889
+ actions: any[];
2890
+ nonce: number;
2891
+ max_block_height: number;
2892
+ public_key: string;
2893
+ };
2894
+ signature: string;
2895
+ };
2896
+ } | {
2897
+ DeterministicStateInit: {
2898
+ deposit: string;
2899
+ };
2900
+ } | {
2901
+ TransferToGasKey: {
2902
+ public_key: string;
2903
+ deposit: string;
2904
+ };
2905
+ } | {
2906
+ WithdrawFromGasKey: {
2907
+ public_key: string;
2908
+ amount: string;
2909
+ };
2910
+ } | {
2911
+ DelegateV2: {
640
2912
  delegate_action: {
641
- sender_id: string;
642
- receiver_id: string;
643
- actions: any[];
644
- nonce: number;
645
- max_block_height: number;
646
- public_key: string;
2913
+ V2: {
2914
+ sender_id: string;
2915
+ receiver_id: string;
2916
+ actions: any[];
2917
+ nonce: {
2918
+ Nonce: {
2919
+ nonce: number;
2920
+ };
2921
+ } | {
2922
+ GasKeyNonce: {
2923
+ nonce: number;
2924
+ nonce_index: number;
2925
+ };
2926
+ };
2927
+ max_block_height: number;
2928
+ public_key: string;
2929
+ };
647
2930
  };
648
2931
  signature: string;
649
2932
  };
650
- } | {
651
- DeterministicStateInit: {
652
- deposit: string;
653
- };
654
2933
  })[];
655
2934
  signature: string;
656
2935
  hash: string;
657
2936
  priority_fee?: number | undefined;
2937
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
658
2938
  };
659
2939
  transaction_outcome: {
660
2940
  id: string;
@@ -664,7 +2944,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
664
2944
  gas_burnt: number;
665
2945
  tokens_burnt: string;
666
2946
  executor_id: string;
667
- status: "Unknown" | "Pending" | {
2947
+ status: "Pending" | "Unknown" | {
668
2948
  SuccessValue: string;
669
2949
  } | {
670
2950
  SuccessReceiptId: string;
@@ -676,13 +2956,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
676
2956
  };
677
2957
  };
678
2958
  metadata?: {
679
- version: number;
680
2959
  gas_profile?: {
681
2960
  [x: string]: any;
682
2961
  cost?: string | undefined;
683
2962
  cost_category?: string | undefined;
684
2963
  gas_used?: string | undefined;
685
2964
  }[] | null | undefined;
2965
+ version: 4;
2966
+ contracts?: ({
2967
+ local: string;
2968
+ } | {
2969
+ global_hash: string;
2970
+ } | {
2971
+ global_account_id: string;
2972
+ } | null)[] | null | undefined;
2973
+ } | {
2974
+ gas_profile?: {
2975
+ [x: string]: any;
2976
+ cost?: string | undefined;
2977
+ cost_category?: string | undefined;
2978
+ gas_used?: string | undefined;
2979
+ }[] | null | undefined;
2980
+ version: 1 | 2 | 3;
2981
+ } | {
2982
+ gas_profile?: {
2983
+ [x: string]: any;
2984
+ cost?: string | undefined;
2985
+ cost_category?: string | undefined;
2986
+ gas_used?: string | undefined;
2987
+ }[] | null | undefined;
2988
+ version: number;
686
2989
  } | undefined;
687
2990
  };
688
2991
  block_hash: string;
@@ -699,7 +3002,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
699
3002
  gas_burnt: number;
700
3003
  tokens_burnt: string;
701
3004
  executor_id: string;
702
- status: "Unknown" | "Pending" | {
3005
+ status: "Pending" | "Unknown" | {
703
3006
  SuccessValue: string;
704
3007
  } | {
705
3008
  SuccessReceiptId: string;
@@ -711,13 +3014,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
711
3014
  };
712
3015
  };
713
3016
  metadata?: {
714
- version: number;
715
3017
  gas_profile?: {
716
3018
  [x: string]: any;
717
3019
  cost?: string | undefined;
718
3020
  cost_category?: string | undefined;
719
3021
  gas_used?: string | undefined;
720
3022
  }[] | null | undefined;
3023
+ version: 4;
3024
+ contracts?: ({
3025
+ local: string;
3026
+ } | {
3027
+ global_hash: string;
3028
+ } | {
3029
+ global_account_id: string;
3030
+ } | null)[] | null | undefined;
3031
+ } | {
3032
+ gas_profile?: {
3033
+ [x: string]: any;
3034
+ cost?: string | undefined;
3035
+ cost_category?: string | undefined;
3036
+ gas_used?: string | undefined;
3037
+ }[] | null | undefined;
3038
+ version: 1 | 2 | 3;
3039
+ } | {
3040
+ gas_profile?: {
3041
+ [x: string]: any;
3042
+ cost?: string | undefined;
3043
+ cost_category?: string | undefined;
3044
+ gas_used?: string | undefined;
3045
+ }[] | null | undefined;
3046
+ version: number;
721
3047
  } | undefined;
722
3048
  };
723
3049
  block_hash: string;
@@ -728,7 +3054,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
728
3054
  }[];
729
3055
  } | {
730
3056
  final_execution_status: "EXECUTED";
731
- status: "Unknown" | "Pending" | {
3057
+ status: "Pending" | "Unknown" | {
732
3058
  SuccessValue: string;
733
3059
  } | {
734
3060
  SuccessReceiptId: string;
@@ -785,6 +3111,19 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
785
3111
  method_names: string[];
786
3112
  allowance?: string | null | undefined;
787
3113
  };
3114
+ } | {
3115
+ GasKeyFunctionCall: {
3116
+ balance: string;
3117
+ num_nonces: number;
3118
+ receiver_id: string;
3119
+ method_names: string[];
3120
+ allowance?: string | null | undefined;
3121
+ };
3122
+ } | {
3123
+ GasKeyFullAccess: {
3124
+ balance: string;
3125
+ num_nonces: number;
3126
+ };
788
3127
  };
789
3128
  };
790
3129
  };
@@ -820,10 +3159,44 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
820
3159
  DeterministicStateInit: {
821
3160
  deposit: string;
822
3161
  };
3162
+ } | {
3163
+ TransferToGasKey: {
3164
+ public_key: string;
3165
+ deposit: string;
3166
+ };
3167
+ } | {
3168
+ WithdrawFromGasKey: {
3169
+ public_key: string;
3170
+ amount: string;
3171
+ };
3172
+ } | {
3173
+ DelegateV2: {
3174
+ delegate_action: {
3175
+ V2: {
3176
+ sender_id: string;
3177
+ receiver_id: string;
3178
+ actions: any[];
3179
+ nonce: {
3180
+ Nonce: {
3181
+ nonce: number;
3182
+ };
3183
+ } | {
3184
+ GasKeyNonce: {
3185
+ nonce: number;
3186
+ nonce_index: number;
3187
+ };
3188
+ };
3189
+ max_block_height: number;
3190
+ public_key: string;
3191
+ };
3192
+ };
3193
+ signature: string;
3194
+ };
823
3195
  })[];
824
3196
  signature: string;
825
3197
  hash: string;
826
3198
  priority_fee?: number | undefined;
3199
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
827
3200
  };
828
3201
  transaction_outcome: {
829
3202
  id: string;
@@ -833,7 +3206,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
833
3206
  gas_burnt: number;
834
3207
  tokens_burnt: string;
835
3208
  executor_id: string;
836
- status: "Unknown" | "Pending" | {
3209
+ status: "Pending" | "Unknown" | {
837
3210
  SuccessValue: string;
838
3211
  } | {
839
3212
  SuccessReceiptId: string;
@@ -845,13 +3218,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
845
3218
  };
846
3219
  };
847
3220
  metadata?: {
848
- version: number;
849
3221
  gas_profile?: {
850
3222
  [x: string]: any;
851
3223
  cost?: string | undefined;
852
3224
  cost_category?: string | undefined;
853
3225
  gas_used?: string | undefined;
854
3226
  }[] | null | undefined;
3227
+ version: 4;
3228
+ contracts?: ({
3229
+ local: string;
3230
+ } | {
3231
+ global_hash: string;
3232
+ } | {
3233
+ global_account_id: string;
3234
+ } | null)[] | null | undefined;
3235
+ } | {
3236
+ gas_profile?: {
3237
+ [x: string]: any;
3238
+ cost?: string | undefined;
3239
+ cost_category?: string | undefined;
3240
+ gas_used?: string | undefined;
3241
+ }[] | null | undefined;
3242
+ version: 1 | 2 | 3;
3243
+ } | {
3244
+ gas_profile?: {
3245
+ [x: string]: any;
3246
+ cost?: string | undefined;
3247
+ cost_category?: string | undefined;
3248
+ gas_used?: string | undefined;
3249
+ }[] | null | undefined;
3250
+ version: number;
855
3251
  } | undefined;
856
3252
  };
857
3253
  block_hash: string;
@@ -868,7 +3264,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
868
3264
  gas_burnt: number;
869
3265
  tokens_burnt: string;
870
3266
  executor_id: string;
871
- status: "Unknown" | "Pending" | {
3267
+ status: "Pending" | "Unknown" | {
872
3268
  SuccessValue: string;
873
3269
  } | {
874
3270
  SuccessReceiptId: string;
@@ -880,13 +3276,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
880
3276
  };
881
3277
  };
882
3278
  metadata?: {
883
- version: number;
884
3279
  gas_profile?: {
885
3280
  [x: string]: any;
886
3281
  cost?: string | undefined;
887
3282
  cost_category?: string | undefined;
888
3283
  gas_used?: string | undefined;
889
3284
  }[] | null | undefined;
3285
+ version: 4;
3286
+ contracts?: ({
3287
+ local: string;
3288
+ } | {
3289
+ global_hash: string;
3290
+ } | {
3291
+ global_account_id: string;
3292
+ } | null)[] | null | undefined;
3293
+ } | {
3294
+ gas_profile?: {
3295
+ [x: string]: any;
3296
+ cost?: string | undefined;
3297
+ cost_category?: string | undefined;
3298
+ gas_used?: string | undefined;
3299
+ }[] | null | undefined;
3300
+ version: 1 | 2 | 3;
3301
+ } | {
3302
+ gas_profile?: {
3303
+ [x: string]: any;
3304
+ cost?: string | undefined;
3305
+ cost_category?: string | undefined;
3306
+ gas_used?: string | undefined;
3307
+ }[] | null | undefined;
3308
+ version: number;
890
3309
  } | undefined;
891
3310
  };
892
3311
  block_hash: string;
@@ -897,7 +3316,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
897
3316
  }[];
898
3317
  } | {
899
3318
  final_execution_status: "FINAL";
900
- status: "Unknown" | "Pending" | {
3319
+ status: "Pending" | "Unknown" | {
901
3320
  SuccessValue: string;
902
3321
  } | {
903
3322
  SuccessReceiptId: string;
@@ -954,6 +3373,19 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
954
3373
  method_names: string[];
955
3374
  allowance?: string | null | undefined;
956
3375
  };
3376
+ } | {
3377
+ GasKeyFunctionCall: {
3378
+ balance: string;
3379
+ num_nonces: number;
3380
+ receiver_id: string;
3381
+ method_names: string[];
3382
+ allowance?: string | null | undefined;
3383
+ };
3384
+ } | {
3385
+ GasKeyFullAccess: {
3386
+ balance: string;
3387
+ num_nonces: number;
3388
+ };
957
3389
  };
958
3390
  };
959
3391
  };
@@ -989,10 +3421,44 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
989
3421
  DeterministicStateInit: {
990
3422
  deposit: string;
991
3423
  };
3424
+ } | {
3425
+ TransferToGasKey: {
3426
+ public_key: string;
3427
+ deposit: string;
3428
+ };
3429
+ } | {
3430
+ WithdrawFromGasKey: {
3431
+ public_key: string;
3432
+ amount: string;
3433
+ };
3434
+ } | {
3435
+ DelegateV2: {
3436
+ delegate_action: {
3437
+ V2: {
3438
+ sender_id: string;
3439
+ receiver_id: string;
3440
+ actions: any[];
3441
+ nonce: {
3442
+ Nonce: {
3443
+ nonce: number;
3444
+ };
3445
+ } | {
3446
+ GasKeyNonce: {
3447
+ nonce: number;
3448
+ nonce_index: number;
3449
+ };
3450
+ };
3451
+ max_block_height: number;
3452
+ public_key: string;
3453
+ };
3454
+ };
3455
+ signature: string;
3456
+ };
992
3457
  })[];
993
3458
  signature: string;
994
3459
  hash: string;
995
3460
  priority_fee?: number | undefined;
3461
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
996
3462
  };
997
3463
  transaction_outcome: {
998
3464
  id: string;
@@ -1002,7 +3468,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
1002
3468
  gas_burnt: number;
1003
3469
  tokens_burnt: string;
1004
3470
  executor_id: string;
1005
- status: "Unknown" | "Pending" | {
3471
+ status: "Pending" | "Unknown" | {
1006
3472
  SuccessValue: string;
1007
3473
  } | {
1008
3474
  SuccessReceiptId: string;
@@ -1014,13 +3480,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
1014
3480
  };
1015
3481
  };
1016
3482
  metadata?: {
1017
- version: number;
1018
3483
  gas_profile?: {
1019
3484
  [x: string]: any;
1020
3485
  cost?: string | undefined;
1021
3486
  cost_category?: string | undefined;
1022
3487
  gas_used?: string | undefined;
1023
3488
  }[] | null | undefined;
3489
+ version: 4;
3490
+ contracts?: ({
3491
+ local: string;
3492
+ } | {
3493
+ global_hash: string;
3494
+ } | {
3495
+ global_account_id: string;
3496
+ } | null)[] | null | undefined;
3497
+ } | {
3498
+ gas_profile?: {
3499
+ [x: string]: any;
3500
+ cost?: string | undefined;
3501
+ cost_category?: string | undefined;
3502
+ gas_used?: string | undefined;
3503
+ }[] | null | undefined;
3504
+ version: 1 | 2 | 3;
3505
+ } | {
3506
+ gas_profile?: {
3507
+ [x: string]: any;
3508
+ cost?: string | undefined;
3509
+ cost_category?: string | undefined;
3510
+ gas_used?: string | undefined;
3511
+ }[] | null | undefined;
3512
+ version: number;
1024
3513
  } | undefined;
1025
3514
  };
1026
3515
  block_hash: string;
@@ -1037,7 +3526,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
1037
3526
  gas_burnt: number;
1038
3527
  tokens_burnt: string;
1039
3528
  executor_id: string;
1040
- status: "Unknown" | "Pending" | {
3529
+ status: "Pending" | "Unknown" | {
1041
3530
  SuccessValue: string;
1042
3531
  } | {
1043
3532
  SuccessReceiptId: string;
@@ -1049,13 +3538,36 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
1049
3538
  };
1050
3539
  };
1051
3540
  metadata?: {
1052
- version: number;
1053
3541
  gas_profile?: {
1054
3542
  [x: string]: any;
1055
3543
  cost?: string | undefined;
1056
3544
  cost_category?: string | undefined;
1057
3545
  gas_used?: string | undefined;
1058
3546
  }[] | null | undefined;
3547
+ version: 4;
3548
+ contracts?: ({
3549
+ local: string;
3550
+ } | {
3551
+ global_hash: string;
3552
+ } | {
3553
+ global_account_id: string;
3554
+ } | null)[] | null | undefined;
3555
+ } | {
3556
+ gas_profile?: {
3557
+ [x: string]: any;
3558
+ cost?: string | undefined;
3559
+ cost_category?: string | undefined;
3560
+ gas_used?: string | undefined;
3561
+ }[] | null | undefined;
3562
+ version: 1 | 2 | 3;
3563
+ } | {
3564
+ gas_profile?: {
3565
+ [x: string]: any;
3566
+ cost?: string | undefined;
3567
+ cost_category?: string | undefined;
3568
+ gas_used?: string | undefined;
3569
+ }[] | null | undefined;
3570
+ version: number;
1059
3571
  } | undefined;
1060
3572
  };
1061
3573
  block_hash: string;
@@ -1065,7 +3577,7 @@ export declare function ref_swap_function(near: Near, rhea_contractId: string, s
1065
3577
  }[];
1066
3578
  }[];
1067
3579
  }>;
1068
- export declare function ref_withdraw_function(near: Near, rhea_contractId: string, amount: ref_args_params_interface["amount"], token_id: ref_args_params_interface["token_id"]): Promise<{
3580
+ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId: string, fee: ref_args_params_interface["fee"], tokens: ref_args_params_interface["tokens"]): Promise<{
1069
3581
  final_execution_status: "NONE";
1070
3582
  transaction?: {
1071
3583
  hash: string;
@@ -1073,25 +3585,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1073
3585
  receiver_id: string;
1074
3586
  nonce: number;
1075
3587
  } | undefined;
1076
- } | {
1077
- final_execution_status: "INCLUDED";
1078
- transaction?: {
1079
- hash: string;
1080
- signer_id: string;
1081
- receiver_id: string;
1082
- nonce: number;
1083
- } | undefined;
1084
- } | {
1085
- final_execution_status: "INCLUDED_FINAL";
1086
- transaction?: {
1087
- hash: string;
1088
- signer_id: string;
1089
- receiver_id: string;
1090
- nonce: number;
1091
- } | undefined;
1092
- } | {
1093
- final_execution_status: "EXECUTED_OPTIMISTIC";
1094
- status: "Unknown" | "Pending" | {
3588
+ status?: "Pending" | "Unknown" | {
1095
3589
  SuccessValue: string;
1096
3590
  } | {
1097
3591
  SuccessReceiptId: string;
@@ -1101,94 +3595,8 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1101
3595
  error_message?: string | undefined;
1102
3596
  error_type?: string | undefined;
1103
3597
  };
1104
- };
1105
- transaction: {
1106
- signer_id: string;
1107
- public_key: string;
1108
- nonce: number;
1109
- receiver_id: string;
1110
- actions: ("CreateAccount" | {
1111
- CreateAccount: Record<string, never>;
1112
- } | {
1113
- Transfer: {
1114
- deposit: string;
1115
- };
1116
- } | {
1117
- FunctionCall: {
1118
- method_name: string;
1119
- args: string;
1120
- gas: number;
1121
- deposit: string;
1122
- };
1123
- } | {
1124
- DeployContract: {
1125
- code: string;
1126
- };
1127
- } | {
1128
- DeployGlobalContract: {
1129
- code: string;
1130
- };
1131
- } | {
1132
- DeployGlobalContractByAccountId: {
1133
- code: string;
1134
- };
1135
- } | {
1136
- Stake: {
1137
- stake: string;
1138
- public_key: string;
1139
- };
1140
- } | {
1141
- AddKey: {
1142
- public_key: string;
1143
- access_key: {
1144
- nonce: number;
1145
- permission: "FullAccess" | {
1146
- FunctionCall: {
1147
- receiver_id: string;
1148
- method_names: string[];
1149
- allowance?: string | null | undefined;
1150
- };
1151
- };
1152
- };
1153
- };
1154
- } | {
1155
- DeleteKey: {
1156
- public_key: string;
1157
- };
1158
- } | {
1159
- DeleteAccount: {
1160
- beneficiary_id: string;
1161
- };
1162
- } | {
1163
- UseGlobalContract: {
1164
- code_hash: string;
1165
- };
1166
- } | {
1167
- UseGlobalContractByAccountId: {
1168
- account_id: string;
1169
- };
1170
- } | {
1171
- Delegate: {
1172
- delegate_action: {
1173
- sender_id: string;
1174
- receiver_id: string;
1175
- actions: any[];
1176
- nonce: number;
1177
- max_block_height: number;
1178
- public_key: string;
1179
- };
1180
- signature: string;
1181
- };
1182
- } | {
1183
- DeterministicStateInit: {
1184
- deposit: string;
1185
- };
1186
- })[];
1187
- signature: string;
1188
- hash: string;
1189
- priority_fee?: number | undefined;
1190
- };
1191
- transaction_outcome: {
3598
+ } | undefined;
3599
+ transaction_outcome?: {
1192
3600
  id: string;
1193
3601
  outcome: {
1194
3602
  logs: string[];
@@ -1196,7 +3604,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1196
3604
  gas_burnt: number;
1197
3605
  tokens_burnt: string;
1198
3606
  executor_id: string;
1199
- status: "Unknown" | "Pending" | {
3607
+ status: "Pending" | "Unknown" | {
1200
3608
  SuccessValue: string;
1201
3609
  } | {
1202
3610
  SuccessReceiptId: string;
@@ -1208,13 +3616,36 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1208
3616
  };
1209
3617
  };
1210
3618
  metadata?: {
1211
- version: number;
1212
3619
  gas_profile?: {
1213
3620
  [x: string]: any;
1214
3621
  cost?: string | undefined;
1215
3622
  cost_category?: string | undefined;
1216
3623
  gas_used?: string | undefined;
1217
3624
  }[] | null | undefined;
3625
+ version: 4;
3626
+ contracts?: ({
3627
+ local: string;
3628
+ } | {
3629
+ global_hash: string;
3630
+ } | {
3631
+ global_account_id: string;
3632
+ } | null)[] | null | undefined;
3633
+ } | {
3634
+ gas_profile?: {
3635
+ [x: string]: any;
3636
+ cost?: string | undefined;
3637
+ cost_category?: string | undefined;
3638
+ gas_used?: string | undefined;
3639
+ }[] | null | undefined;
3640
+ version: 1 | 2 | 3;
3641
+ } | {
3642
+ gas_profile?: {
3643
+ [x: string]: any;
3644
+ cost?: string | undefined;
3645
+ cost_category?: string | undefined;
3646
+ gas_used?: string | undefined;
3647
+ }[] | null | undefined;
3648
+ version: number;
1218
3649
  } | undefined;
1219
3650
  };
1220
3651
  block_hash: string;
@@ -1222,8 +3653,8 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1222
3653
  hash: string;
1223
3654
  direction: "Left" | "Right";
1224
3655
  }[];
1225
- };
1226
- receipts_outcome: {
3656
+ } | undefined;
3657
+ receipts_outcome?: {
1227
3658
  id: string;
1228
3659
  outcome: {
1229
3660
  logs: string[];
@@ -1231,7 +3662,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1231
3662
  gas_burnt: number;
1232
3663
  tokens_burnt: string;
1233
3664
  executor_id: string;
1234
- status: "Unknown" | "Pending" | {
3665
+ status: "Pending" | "Unknown" | {
1235
3666
  SuccessValue: string;
1236
3667
  } | {
1237
3668
  SuccessReceiptId: string;
@@ -1243,13 +3674,36 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1243
3674
  };
1244
3675
  };
1245
3676
  metadata?: {
1246
- version: number;
1247
3677
  gas_profile?: {
1248
3678
  [x: string]: any;
1249
3679
  cost?: string | undefined;
1250
3680
  cost_category?: string | undefined;
1251
3681
  gas_used?: string | undefined;
1252
3682
  }[] | null | undefined;
3683
+ version: 4;
3684
+ contracts?: ({
3685
+ local: string;
3686
+ } | {
3687
+ global_hash: string;
3688
+ } | {
3689
+ global_account_id: string;
3690
+ } | null)[] | null | undefined;
3691
+ } | {
3692
+ gas_profile?: {
3693
+ [x: string]: any;
3694
+ cost?: string | undefined;
3695
+ cost_category?: string | undefined;
3696
+ gas_used?: string | undefined;
3697
+ }[] | null | undefined;
3698
+ version: 1 | 2 | 3;
3699
+ } | {
3700
+ gas_profile?: {
3701
+ [x: string]: any;
3702
+ cost?: string | undefined;
3703
+ cost_category?: string | undefined;
3704
+ gas_used?: string | undefined;
3705
+ }[] | null | undefined;
3706
+ version: number;
1253
3707
  } | undefined;
1254
3708
  };
1255
3709
  block_hash: string;
@@ -1257,10 +3711,16 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1257
3711
  hash: string;
1258
3712
  direction: "Left" | "Right";
1259
3713
  }[];
1260
- }[];
3714
+ }[] | undefined;
1261
3715
  } | {
1262
- final_execution_status: "EXECUTED";
1263
- status: "Unknown" | "Pending" | {
3716
+ final_execution_status: "INCLUDED";
3717
+ transaction?: {
3718
+ hash: string;
3719
+ signer_id: string;
3720
+ receiver_id: string;
3721
+ nonce: number;
3722
+ } | undefined;
3723
+ status?: "Pending" | "Unknown" | {
1264
3724
  SuccessValue: string;
1265
3725
  } | {
1266
3726
  SuccessReceiptId: string;
@@ -1270,94 +3730,8 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1270
3730
  error_message?: string | undefined;
1271
3731
  error_type?: string | undefined;
1272
3732
  };
1273
- };
1274
- transaction: {
1275
- signer_id: string;
1276
- public_key: string;
1277
- nonce: number;
1278
- receiver_id: string;
1279
- actions: ("CreateAccount" | {
1280
- CreateAccount: Record<string, never>;
1281
- } | {
1282
- Transfer: {
1283
- deposit: string;
1284
- };
1285
- } | {
1286
- FunctionCall: {
1287
- method_name: string;
1288
- args: string;
1289
- gas: number;
1290
- deposit: string;
1291
- };
1292
- } | {
1293
- DeployContract: {
1294
- code: string;
1295
- };
1296
- } | {
1297
- DeployGlobalContract: {
1298
- code: string;
1299
- };
1300
- } | {
1301
- DeployGlobalContractByAccountId: {
1302
- code: string;
1303
- };
1304
- } | {
1305
- Stake: {
1306
- stake: string;
1307
- public_key: string;
1308
- };
1309
- } | {
1310
- AddKey: {
1311
- public_key: string;
1312
- access_key: {
1313
- nonce: number;
1314
- permission: "FullAccess" | {
1315
- FunctionCall: {
1316
- receiver_id: string;
1317
- method_names: string[];
1318
- allowance?: string | null | undefined;
1319
- };
1320
- };
1321
- };
1322
- };
1323
- } | {
1324
- DeleteKey: {
1325
- public_key: string;
1326
- };
1327
- } | {
1328
- DeleteAccount: {
1329
- beneficiary_id: string;
1330
- };
1331
- } | {
1332
- UseGlobalContract: {
1333
- code_hash: string;
1334
- };
1335
- } | {
1336
- UseGlobalContractByAccountId: {
1337
- account_id: string;
1338
- };
1339
- } | {
1340
- Delegate: {
1341
- delegate_action: {
1342
- sender_id: string;
1343
- receiver_id: string;
1344
- actions: any[];
1345
- nonce: number;
1346
- max_block_height: number;
1347
- public_key: string;
1348
- };
1349
- signature: string;
1350
- };
1351
- } | {
1352
- DeterministicStateInit: {
1353
- deposit: string;
1354
- };
1355
- })[];
1356
- signature: string;
1357
- hash: string;
1358
- priority_fee?: number | undefined;
1359
- };
1360
- transaction_outcome: {
3733
+ } | undefined;
3734
+ transaction_outcome?: {
1361
3735
  id: string;
1362
3736
  outcome: {
1363
3737
  logs: string[];
@@ -1365,7 +3739,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1365
3739
  gas_burnt: number;
1366
3740
  tokens_burnt: string;
1367
3741
  executor_id: string;
1368
- status: "Unknown" | "Pending" | {
3742
+ status: "Pending" | "Unknown" | {
1369
3743
  SuccessValue: string;
1370
3744
  } | {
1371
3745
  SuccessReceiptId: string;
@@ -1377,13 +3751,36 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1377
3751
  };
1378
3752
  };
1379
3753
  metadata?: {
1380
- version: number;
1381
3754
  gas_profile?: {
1382
3755
  [x: string]: any;
1383
3756
  cost?: string | undefined;
1384
3757
  cost_category?: string | undefined;
1385
3758
  gas_used?: string | undefined;
1386
3759
  }[] | null | undefined;
3760
+ version: 4;
3761
+ contracts?: ({
3762
+ local: string;
3763
+ } | {
3764
+ global_hash: string;
3765
+ } | {
3766
+ global_account_id: string;
3767
+ } | null)[] | null | undefined;
3768
+ } | {
3769
+ gas_profile?: {
3770
+ [x: string]: any;
3771
+ cost?: string | undefined;
3772
+ cost_category?: string | undefined;
3773
+ gas_used?: string | undefined;
3774
+ }[] | null | undefined;
3775
+ version: 1 | 2 | 3;
3776
+ } | {
3777
+ gas_profile?: {
3778
+ [x: string]: any;
3779
+ cost?: string | undefined;
3780
+ cost_category?: string | undefined;
3781
+ gas_used?: string | undefined;
3782
+ }[] | null | undefined;
3783
+ version: number;
1387
3784
  } | undefined;
1388
3785
  };
1389
3786
  block_hash: string;
@@ -1391,8 +3788,8 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1391
3788
  hash: string;
1392
3789
  direction: "Left" | "Right";
1393
3790
  }[];
1394
- };
1395
- receipts_outcome: {
3791
+ } | undefined;
3792
+ receipts_outcome?: {
1396
3793
  id: string;
1397
3794
  outcome: {
1398
3795
  logs: string[];
@@ -1400,7 +3797,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1400
3797
  gas_burnt: number;
1401
3798
  tokens_burnt: string;
1402
3799
  executor_id: string;
1403
- status: "Unknown" | "Pending" | {
3800
+ status: "Pending" | "Unknown" | {
1404
3801
  SuccessValue: string;
1405
3802
  } | {
1406
3803
  SuccessReceiptId: string;
@@ -1412,121 +3809,64 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1412
3809
  };
1413
3810
  };
1414
3811
  metadata?: {
1415
- version: number;
1416
3812
  gas_profile?: {
1417
3813
  [x: string]: any;
1418
3814
  cost?: string | undefined;
1419
3815
  cost_category?: string | undefined;
1420
3816
  gas_used?: string | undefined;
1421
3817
  }[] | null | undefined;
1422
- } | undefined;
1423
- };
1424
- block_hash: string;
1425
- proof: {
1426
- hash: string;
1427
- direction: "Left" | "Right";
1428
- }[];
1429
- }[];
1430
- } | {
1431
- final_execution_status: "FINAL";
1432
- status: "Unknown" | "Pending" | {
1433
- SuccessValue: string;
1434
- } | {
1435
- SuccessReceiptId: string;
1436
- } | {
1437
- Failure: {
1438
- [x: string]: any;
1439
- error_message?: string | undefined;
1440
- error_type?: string | undefined;
1441
- };
1442
- };
1443
- transaction: {
1444
- signer_id: string;
1445
- public_key: string;
1446
- nonce: number;
1447
- receiver_id: string;
1448
- actions: ("CreateAccount" | {
1449
- CreateAccount: Record<string, never>;
1450
- } | {
1451
- Transfer: {
1452
- deposit: string;
1453
- };
1454
- } | {
1455
- FunctionCall: {
1456
- method_name: string;
1457
- args: string;
1458
- gas: number;
1459
- deposit: string;
1460
- };
1461
- } | {
1462
- DeployContract: {
1463
- code: string;
1464
- };
1465
- } | {
1466
- DeployGlobalContract: {
1467
- code: string;
1468
- };
1469
- } | {
1470
- DeployGlobalContractByAccountId: {
1471
- code: string;
1472
- };
1473
- } | {
1474
- Stake: {
1475
- stake: string;
1476
- public_key: string;
1477
- };
1478
- } | {
1479
- AddKey: {
1480
- public_key: string;
1481
- access_key: {
1482
- nonce: number;
1483
- permission: "FullAccess" | {
1484
- FunctionCall: {
1485
- receiver_id: string;
1486
- method_names: string[];
1487
- allowance?: string | null | undefined;
1488
- };
1489
- };
1490
- };
1491
- };
1492
- } | {
1493
- DeleteKey: {
1494
- public_key: string;
1495
- };
1496
- } | {
1497
- DeleteAccount: {
1498
- beneficiary_id: string;
1499
- };
1500
- } | {
1501
- UseGlobalContract: {
1502
- code_hash: string;
1503
- };
1504
- } | {
1505
- UseGlobalContractByAccountId: {
1506
- account_id: string;
1507
- };
1508
- } | {
1509
- Delegate: {
1510
- delegate_action: {
1511
- sender_id: string;
1512
- receiver_id: string;
1513
- actions: any[];
1514
- nonce: number;
1515
- max_block_height: number;
1516
- public_key: string;
1517
- };
1518
- signature: string;
1519
- };
1520
- } | {
1521
- DeterministicStateInit: {
1522
- deposit: string;
1523
- };
1524
- })[];
1525
- signature: string;
3818
+ version: 4;
3819
+ contracts?: ({
3820
+ local: string;
3821
+ } | {
3822
+ global_hash: string;
3823
+ } | {
3824
+ global_account_id: string;
3825
+ } | null)[] | null | undefined;
3826
+ } | {
3827
+ gas_profile?: {
3828
+ [x: string]: any;
3829
+ cost?: string | undefined;
3830
+ cost_category?: string | undefined;
3831
+ gas_used?: string | undefined;
3832
+ }[] | null | undefined;
3833
+ version: 1 | 2 | 3;
3834
+ } | {
3835
+ gas_profile?: {
3836
+ [x: string]: any;
3837
+ cost?: string | undefined;
3838
+ cost_category?: string | undefined;
3839
+ gas_used?: string | undefined;
3840
+ }[] | null | undefined;
3841
+ version: number;
3842
+ } | undefined;
3843
+ };
3844
+ block_hash: string;
3845
+ proof: {
3846
+ hash: string;
3847
+ direction: "Left" | "Right";
3848
+ }[];
3849
+ }[] | undefined;
3850
+ } | {
3851
+ final_execution_status: "INCLUDED_FINAL";
3852
+ transaction?: {
1526
3853
  hash: string;
1527
- priority_fee?: number | undefined;
1528
- };
1529
- transaction_outcome: {
3854
+ signer_id: string;
3855
+ receiver_id: string;
3856
+ nonce: number;
3857
+ } | undefined;
3858
+ status?: "Pending" | "Unknown" | {
3859
+ SuccessValue: string;
3860
+ } | {
3861
+ SuccessReceiptId: string;
3862
+ } | {
3863
+ Failure: {
3864
+ [x: string]: any;
3865
+ error_message?: string | undefined;
3866
+ error_type?: string | undefined;
3867
+ };
3868
+ } | undefined;
3869
+ transaction_outcome?: {
1530
3870
  id: string;
1531
3871
  outcome: {
1532
3872
  logs: string[];
@@ -1534,7 +3874,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1534
3874
  gas_burnt: number;
1535
3875
  tokens_burnt: string;
1536
3876
  executor_id: string;
1537
- status: "Unknown" | "Pending" | {
3877
+ status: "Pending" | "Unknown" | {
1538
3878
  SuccessValue: string;
1539
3879
  } | {
1540
3880
  SuccessReceiptId: string;
@@ -1546,13 +3886,36 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1546
3886
  };
1547
3887
  };
1548
3888
  metadata?: {
1549
- version: number;
1550
3889
  gas_profile?: {
1551
3890
  [x: string]: any;
1552
3891
  cost?: string | undefined;
1553
3892
  cost_category?: string | undefined;
1554
3893
  gas_used?: string | undefined;
1555
3894
  }[] | null | undefined;
3895
+ version: 4;
3896
+ contracts?: ({
3897
+ local: string;
3898
+ } | {
3899
+ global_hash: string;
3900
+ } | {
3901
+ global_account_id: string;
3902
+ } | null)[] | null | undefined;
3903
+ } | {
3904
+ gas_profile?: {
3905
+ [x: string]: any;
3906
+ cost?: string | undefined;
3907
+ cost_category?: string | undefined;
3908
+ gas_used?: string | undefined;
3909
+ }[] | null | undefined;
3910
+ version: 1 | 2 | 3;
3911
+ } | {
3912
+ gas_profile?: {
3913
+ [x: string]: any;
3914
+ cost?: string | undefined;
3915
+ cost_category?: string | undefined;
3916
+ gas_used?: string | undefined;
3917
+ }[] | null | undefined;
3918
+ version: number;
1556
3919
  } | undefined;
1557
3920
  };
1558
3921
  block_hash: string;
@@ -1560,8 +3923,8 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1560
3923
  hash: string;
1561
3924
  direction: "Left" | "Right";
1562
3925
  }[];
1563
- };
1564
- receipts_outcome: {
3926
+ } | undefined;
3927
+ receipts_outcome?: {
1565
3928
  id: string;
1566
3929
  outcome: {
1567
3930
  logs: string[];
@@ -1569,7 +3932,7 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1569
3932
  gas_burnt: number;
1570
3933
  tokens_burnt: string;
1571
3934
  executor_id: string;
1572
- status: "Unknown" | "Pending" | {
3935
+ status: "Pending" | "Unknown" | {
1573
3936
  SuccessValue: string;
1574
3937
  } | {
1575
3938
  SuccessReceiptId: string;
@@ -1581,13 +3944,36 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1581
3944
  };
1582
3945
  };
1583
3946
  metadata?: {
1584
- version: number;
1585
3947
  gas_profile?: {
1586
3948
  [x: string]: any;
1587
3949
  cost?: string | undefined;
1588
3950
  cost_category?: string | undefined;
1589
3951
  gas_used?: string | undefined;
1590
3952
  }[] | null | undefined;
3953
+ version: 4;
3954
+ contracts?: ({
3955
+ local: string;
3956
+ } | {
3957
+ global_hash: string;
3958
+ } | {
3959
+ global_account_id: string;
3960
+ } | null)[] | null | undefined;
3961
+ } | {
3962
+ gas_profile?: {
3963
+ [x: string]: any;
3964
+ cost?: string | undefined;
3965
+ cost_category?: string | undefined;
3966
+ gas_used?: string | undefined;
3967
+ }[] | null | undefined;
3968
+ version: 1 | 2 | 3;
3969
+ } | {
3970
+ gas_profile?: {
3971
+ [x: string]: any;
3972
+ cost?: string | undefined;
3973
+ cost_category?: string | undefined;
3974
+ gas_used?: string | undefined;
3975
+ }[] | null | undefined;
3976
+ version: number;
1591
3977
  } | undefined;
1592
3978
  };
1593
3979
  block_hash: string;
@@ -1595,35 +3981,10 @@ export declare function ref_withdraw_function(near: Near, rhea_contractId: strin
1595
3981
  hash: string;
1596
3982
  direction: "Left" | "Right";
1597
3983
  }[];
1598
- }[];
1599
- }>;
1600
- export declare function ref_add_simple_pool_function(near: Near, rhea_contractId: string, fee: ref_args_params_interface["fee"], tokens: ref_args_params_interface["tokens"]): Promise<{
1601
- final_execution_status: "NONE";
1602
- transaction?: {
1603
- hash: string;
1604
- signer_id: string;
1605
- receiver_id: string;
1606
- nonce: number;
1607
- } | undefined;
1608
- } | {
1609
- final_execution_status: "INCLUDED";
1610
- transaction?: {
1611
- hash: string;
1612
- signer_id: string;
1613
- receiver_id: string;
1614
- nonce: number;
1615
- } | undefined;
1616
- } | {
1617
- final_execution_status: "INCLUDED_FINAL";
1618
- transaction?: {
1619
- hash: string;
1620
- signer_id: string;
1621
- receiver_id: string;
1622
- nonce: number;
1623
- } | undefined;
3984
+ }[] | undefined;
1624
3985
  } | {
1625
3986
  final_execution_status: "EXECUTED_OPTIMISTIC";
1626
- status: "Unknown" | "Pending" | {
3987
+ status: "Pending" | "Unknown" | {
1627
3988
  SuccessValue: string;
1628
3989
  } | {
1629
3990
  SuccessReceiptId: string;
@@ -1680,6 +4041,19 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1680
4041
  method_names: string[];
1681
4042
  allowance?: string | null | undefined;
1682
4043
  };
4044
+ } | {
4045
+ GasKeyFunctionCall: {
4046
+ balance: string;
4047
+ num_nonces: number;
4048
+ receiver_id: string;
4049
+ method_names: string[];
4050
+ allowance?: string | null | undefined;
4051
+ };
4052
+ } | {
4053
+ GasKeyFullAccess: {
4054
+ balance: string;
4055
+ num_nonces: number;
4056
+ };
1683
4057
  };
1684
4058
  };
1685
4059
  };
@@ -1715,10 +4089,44 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1715
4089
  DeterministicStateInit: {
1716
4090
  deposit: string;
1717
4091
  };
4092
+ } | {
4093
+ TransferToGasKey: {
4094
+ public_key: string;
4095
+ deposit: string;
4096
+ };
4097
+ } | {
4098
+ WithdrawFromGasKey: {
4099
+ public_key: string;
4100
+ amount: string;
4101
+ };
4102
+ } | {
4103
+ DelegateV2: {
4104
+ delegate_action: {
4105
+ V2: {
4106
+ sender_id: string;
4107
+ receiver_id: string;
4108
+ actions: any[];
4109
+ nonce: {
4110
+ Nonce: {
4111
+ nonce: number;
4112
+ };
4113
+ } | {
4114
+ GasKeyNonce: {
4115
+ nonce: number;
4116
+ nonce_index: number;
4117
+ };
4118
+ };
4119
+ max_block_height: number;
4120
+ public_key: string;
4121
+ };
4122
+ };
4123
+ signature: string;
4124
+ };
1718
4125
  })[];
1719
4126
  signature: string;
1720
4127
  hash: string;
1721
4128
  priority_fee?: number | undefined;
4129
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1722
4130
  };
1723
4131
  transaction_outcome: {
1724
4132
  id: string;
@@ -1728,7 +4136,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1728
4136
  gas_burnt: number;
1729
4137
  tokens_burnt: string;
1730
4138
  executor_id: string;
1731
- status: "Unknown" | "Pending" | {
4139
+ status: "Pending" | "Unknown" | {
1732
4140
  SuccessValue: string;
1733
4141
  } | {
1734
4142
  SuccessReceiptId: string;
@@ -1740,13 +4148,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1740
4148
  };
1741
4149
  };
1742
4150
  metadata?: {
1743
- version: number;
1744
4151
  gas_profile?: {
1745
4152
  [x: string]: any;
1746
4153
  cost?: string | undefined;
1747
4154
  cost_category?: string | undefined;
1748
4155
  gas_used?: string | undefined;
1749
4156
  }[] | null | undefined;
4157
+ version: 4;
4158
+ contracts?: ({
4159
+ local: string;
4160
+ } | {
4161
+ global_hash: string;
4162
+ } | {
4163
+ global_account_id: string;
4164
+ } | null)[] | null | undefined;
4165
+ } | {
4166
+ gas_profile?: {
4167
+ [x: string]: any;
4168
+ cost?: string | undefined;
4169
+ cost_category?: string | undefined;
4170
+ gas_used?: string | undefined;
4171
+ }[] | null | undefined;
4172
+ version: 1 | 2 | 3;
4173
+ } | {
4174
+ gas_profile?: {
4175
+ [x: string]: any;
4176
+ cost?: string | undefined;
4177
+ cost_category?: string | undefined;
4178
+ gas_used?: string | undefined;
4179
+ }[] | null | undefined;
4180
+ version: number;
1750
4181
  } | undefined;
1751
4182
  };
1752
4183
  block_hash: string;
@@ -1763,7 +4194,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1763
4194
  gas_burnt: number;
1764
4195
  tokens_burnt: string;
1765
4196
  executor_id: string;
1766
- status: "Unknown" | "Pending" | {
4197
+ status: "Pending" | "Unknown" | {
1767
4198
  SuccessValue: string;
1768
4199
  } | {
1769
4200
  SuccessReceiptId: string;
@@ -1775,13 +4206,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1775
4206
  };
1776
4207
  };
1777
4208
  metadata?: {
1778
- version: number;
1779
4209
  gas_profile?: {
1780
4210
  [x: string]: any;
1781
4211
  cost?: string | undefined;
1782
4212
  cost_category?: string | undefined;
1783
4213
  gas_used?: string | undefined;
1784
4214
  }[] | null | undefined;
4215
+ version: 4;
4216
+ contracts?: ({
4217
+ local: string;
4218
+ } | {
4219
+ global_hash: string;
4220
+ } | {
4221
+ global_account_id: string;
4222
+ } | null)[] | null | undefined;
4223
+ } | {
4224
+ gas_profile?: {
4225
+ [x: string]: any;
4226
+ cost?: string | undefined;
4227
+ cost_category?: string | undefined;
4228
+ gas_used?: string | undefined;
4229
+ }[] | null | undefined;
4230
+ version: 1 | 2 | 3;
4231
+ } | {
4232
+ gas_profile?: {
4233
+ [x: string]: any;
4234
+ cost?: string | undefined;
4235
+ cost_category?: string | undefined;
4236
+ gas_used?: string | undefined;
4237
+ }[] | null | undefined;
4238
+ version: number;
1785
4239
  } | undefined;
1786
4240
  };
1787
4241
  block_hash: string;
@@ -1792,7 +4246,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1792
4246
  }[];
1793
4247
  } | {
1794
4248
  final_execution_status: "EXECUTED";
1795
- status: "Unknown" | "Pending" | {
4249
+ status: "Pending" | "Unknown" | {
1796
4250
  SuccessValue: string;
1797
4251
  } | {
1798
4252
  SuccessReceiptId: string;
@@ -1849,6 +4303,19 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1849
4303
  method_names: string[];
1850
4304
  allowance?: string | null | undefined;
1851
4305
  };
4306
+ } | {
4307
+ GasKeyFunctionCall: {
4308
+ balance: string;
4309
+ num_nonces: number;
4310
+ receiver_id: string;
4311
+ method_names: string[];
4312
+ allowance?: string | null | undefined;
4313
+ };
4314
+ } | {
4315
+ GasKeyFullAccess: {
4316
+ balance: string;
4317
+ num_nonces: number;
4318
+ };
1852
4319
  };
1853
4320
  };
1854
4321
  };
@@ -1884,10 +4351,44 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1884
4351
  DeterministicStateInit: {
1885
4352
  deposit: string;
1886
4353
  };
4354
+ } | {
4355
+ TransferToGasKey: {
4356
+ public_key: string;
4357
+ deposit: string;
4358
+ };
4359
+ } | {
4360
+ WithdrawFromGasKey: {
4361
+ public_key: string;
4362
+ amount: string;
4363
+ };
4364
+ } | {
4365
+ DelegateV2: {
4366
+ delegate_action: {
4367
+ V2: {
4368
+ sender_id: string;
4369
+ receiver_id: string;
4370
+ actions: any[];
4371
+ nonce: {
4372
+ Nonce: {
4373
+ nonce: number;
4374
+ };
4375
+ } | {
4376
+ GasKeyNonce: {
4377
+ nonce: number;
4378
+ nonce_index: number;
4379
+ };
4380
+ };
4381
+ max_block_height: number;
4382
+ public_key: string;
4383
+ };
4384
+ };
4385
+ signature: string;
4386
+ };
1887
4387
  })[];
1888
4388
  signature: string;
1889
4389
  hash: string;
1890
4390
  priority_fee?: number | undefined;
4391
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
1891
4392
  };
1892
4393
  transaction_outcome: {
1893
4394
  id: string;
@@ -1897,7 +4398,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1897
4398
  gas_burnt: number;
1898
4399
  tokens_burnt: string;
1899
4400
  executor_id: string;
1900
- status: "Unknown" | "Pending" | {
4401
+ status: "Pending" | "Unknown" | {
1901
4402
  SuccessValue: string;
1902
4403
  } | {
1903
4404
  SuccessReceiptId: string;
@@ -1909,13 +4410,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1909
4410
  };
1910
4411
  };
1911
4412
  metadata?: {
1912
- version: number;
1913
4413
  gas_profile?: {
1914
4414
  [x: string]: any;
1915
4415
  cost?: string | undefined;
1916
4416
  cost_category?: string | undefined;
1917
4417
  gas_used?: string | undefined;
1918
4418
  }[] | null | undefined;
4419
+ version: 4;
4420
+ contracts?: ({
4421
+ local: string;
4422
+ } | {
4423
+ global_hash: string;
4424
+ } | {
4425
+ global_account_id: string;
4426
+ } | null)[] | null | undefined;
4427
+ } | {
4428
+ gas_profile?: {
4429
+ [x: string]: any;
4430
+ cost?: string | undefined;
4431
+ cost_category?: string | undefined;
4432
+ gas_used?: string | undefined;
4433
+ }[] | null | undefined;
4434
+ version: 1 | 2 | 3;
4435
+ } | {
4436
+ gas_profile?: {
4437
+ [x: string]: any;
4438
+ cost?: string | undefined;
4439
+ cost_category?: string | undefined;
4440
+ gas_used?: string | undefined;
4441
+ }[] | null | undefined;
4442
+ version: number;
1919
4443
  } | undefined;
1920
4444
  };
1921
4445
  block_hash: string;
@@ -1932,7 +4456,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1932
4456
  gas_burnt: number;
1933
4457
  tokens_burnt: string;
1934
4458
  executor_id: string;
1935
- status: "Unknown" | "Pending" | {
4459
+ status: "Pending" | "Unknown" | {
1936
4460
  SuccessValue: string;
1937
4461
  } | {
1938
4462
  SuccessReceiptId: string;
@@ -1944,13 +4468,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1944
4468
  };
1945
4469
  };
1946
4470
  metadata?: {
1947
- version: number;
1948
4471
  gas_profile?: {
1949
4472
  [x: string]: any;
1950
4473
  cost?: string | undefined;
1951
4474
  cost_category?: string | undefined;
1952
4475
  gas_used?: string | undefined;
1953
4476
  }[] | null | undefined;
4477
+ version: 4;
4478
+ contracts?: ({
4479
+ local: string;
4480
+ } | {
4481
+ global_hash: string;
4482
+ } | {
4483
+ global_account_id: string;
4484
+ } | null)[] | null | undefined;
4485
+ } | {
4486
+ gas_profile?: {
4487
+ [x: string]: any;
4488
+ cost?: string | undefined;
4489
+ cost_category?: string | undefined;
4490
+ gas_used?: string | undefined;
4491
+ }[] | null | undefined;
4492
+ version: 1 | 2 | 3;
4493
+ } | {
4494
+ gas_profile?: {
4495
+ [x: string]: any;
4496
+ cost?: string | undefined;
4497
+ cost_category?: string | undefined;
4498
+ gas_used?: string | undefined;
4499
+ }[] | null | undefined;
4500
+ version: number;
1954
4501
  } | undefined;
1955
4502
  };
1956
4503
  block_hash: string;
@@ -1961,7 +4508,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
1961
4508
  }[];
1962
4509
  } | {
1963
4510
  final_execution_status: "FINAL";
1964
- status: "Unknown" | "Pending" | {
4511
+ status: "Pending" | "Unknown" | {
1965
4512
  SuccessValue: string;
1966
4513
  } | {
1967
4514
  SuccessReceiptId: string;
@@ -2018,6 +4565,19 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2018
4565
  method_names: string[];
2019
4566
  allowance?: string | null | undefined;
2020
4567
  };
4568
+ } | {
4569
+ GasKeyFunctionCall: {
4570
+ balance: string;
4571
+ num_nonces: number;
4572
+ receiver_id: string;
4573
+ method_names: string[];
4574
+ allowance?: string | null | undefined;
4575
+ };
4576
+ } | {
4577
+ GasKeyFullAccess: {
4578
+ balance: string;
4579
+ num_nonces: number;
4580
+ };
2021
4581
  };
2022
4582
  };
2023
4583
  };
@@ -2053,10 +4613,44 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2053
4613
  DeterministicStateInit: {
2054
4614
  deposit: string;
2055
4615
  };
4616
+ } | {
4617
+ TransferToGasKey: {
4618
+ public_key: string;
4619
+ deposit: string;
4620
+ };
4621
+ } | {
4622
+ WithdrawFromGasKey: {
4623
+ public_key: string;
4624
+ amount: string;
4625
+ };
4626
+ } | {
4627
+ DelegateV2: {
4628
+ delegate_action: {
4629
+ V2: {
4630
+ sender_id: string;
4631
+ receiver_id: string;
4632
+ actions: any[];
4633
+ nonce: {
4634
+ Nonce: {
4635
+ nonce: number;
4636
+ };
4637
+ } | {
4638
+ GasKeyNonce: {
4639
+ nonce: number;
4640
+ nonce_index: number;
4641
+ };
4642
+ };
4643
+ max_block_height: number;
4644
+ public_key: string;
4645
+ };
4646
+ };
4647
+ signature: string;
4648
+ };
2056
4649
  })[];
2057
4650
  signature: string;
2058
4651
  hash: string;
2059
4652
  priority_fee?: number | undefined;
4653
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
2060
4654
  };
2061
4655
  transaction_outcome: {
2062
4656
  id: string;
@@ -2066,7 +4660,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2066
4660
  gas_burnt: number;
2067
4661
  tokens_burnt: string;
2068
4662
  executor_id: string;
2069
- status: "Unknown" | "Pending" | {
4663
+ status: "Pending" | "Unknown" | {
2070
4664
  SuccessValue: string;
2071
4665
  } | {
2072
4666
  SuccessReceiptId: string;
@@ -2078,13 +4672,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2078
4672
  };
2079
4673
  };
2080
4674
  metadata?: {
2081
- version: number;
2082
4675
  gas_profile?: {
2083
4676
  [x: string]: any;
2084
4677
  cost?: string | undefined;
2085
4678
  cost_category?: string | undefined;
2086
4679
  gas_used?: string | undefined;
2087
4680
  }[] | null | undefined;
4681
+ version: 4;
4682
+ contracts?: ({
4683
+ local: string;
4684
+ } | {
4685
+ global_hash: string;
4686
+ } | {
4687
+ global_account_id: string;
4688
+ } | null)[] | null | undefined;
4689
+ } | {
4690
+ gas_profile?: {
4691
+ [x: string]: any;
4692
+ cost?: string | undefined;
4693
+ cost_category?: string | undefined;
4694
+ gas_used?: string | undefined;
4695
+ }[] | null | undefined;
4696
+ version: 1 | 2 | 3;
4697
+ } | {
4698
+ gas_profile?: {
4699
+ [x: string]: any;
4700
+ cost?: string | undefined;
4701
+ cost_category?: string | undefined;
4702
+ gas_used?: string | undefined;
4703
+ }[] | null | undefined;
4704
+ version: number;
2088
4705
  } | undefined;
2089
4706
  };
2090
4707
  block_hash: string;
@@ -2101,7 +4718,7 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2101
4718
  gas_burnt: number;
2102
4719
  tokens_burnt: string;
2103
4720
  executor_id: string;
2104
- status: "Unknown" | "Pending" | {
4721
+ status: "Pending" | "Unknown" | {
2105
4722
  SuccessValue: string;
2106
4723
  } | {
2107
4724
  SuccessReceiptId: string;
@@ -2113,13 +4730,36 @@ export declare function ref_add_simple_pool_function(near: Near, rhea_contractId
2113
4730
  };
2114
4731
  };
2115
4732
  metadata?: {
2116
- version: number;
2117
4733
  gas_profile?: {
2118
4734
  [x: string]: any;
2119
4735
  cost?: string | undefined;
2120
4736
  cost_category?: string | undefined;
2121
4737
  gas_used?: string | undefined;
2122
4738
  }[] | null | undefined;
4739
+ version: 4;
4740
+ contracts?: ({
4741
+ local: string;
4742
+ } | {
4743
+ global_hash: string;
4744
+ } | {
4745
+ global_account_id: string;
4746
+ } | null)[] | null | undefined;
4747
+ } | {
4748
+ gas_profile?: {
4749
+ [x: string]: any;
4750
+ cost?: string | undefined;
4751
+ cost_category?: string | undefined;
4752
+ gas_used?: string | undefined;
4753
+ }[] | null | undefined;
4754
+ version: 1 | 2 | 3;
4755
+ } | {
4756
+ gas_profile?: {
4757
+ [x: string]: any;
4758
+ cost?: string | undefined;
4759
+ cost_category?: string | undefined;
4760
+ gas_used?: string | undefined;
4761
+ }[] | null | undefined;
4762
+ version: number;
2123
4763
  } | undefined;
2124
4764
  };
2125
4765
  block_hash: string;