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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,133 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
7
7
  receiver_id: string;
8
8
  nonce: number;
9
9
  } | undefined;
10
+ status?: "Pending" | "Unknown" | {
11
+ SuccessValue: string;
12
+ } | {
13
+ SuccessReceiptId: string;
14
+ } | {
15
+ Failure: {
16
+ [x: string]: any;
17
+ error_message?: string | undefined;
18
+ error_type?: string | undefined;
19
+ };
20
+ } | undefined;
21
+ transaction_outcome?: {
22
+ id: string;
23
+ outcome: {
24
+ logs: string[];
25
+ receipt_ids: string[];
26
+ gas_burnt: number;
27
+ tokens_burnt: string;
28
+ executor_id: string;
29
+ status: "Pending" | "Unknown" | {
30
+ SuccessValue: string;
31
+ } | {
32
+ SuccessReceiptId: string;
33
+ } | {
34
+ Failure: {
35
+ [x: string]: any;
36
+ error_message?: string | undefined;
37
+ error_type?: string | undefined;
38
+ };
39
+ };
40
+ metadata?: {
41
+ gas_profile?: {
42
+ [x: string]: any;
43
+ cost?: string | undefined;
44
+ cost_category?: string | undefined;
45
+ gas_used?: string | undefined;
46
+ }[] | null | undefined;
47
+ version: 4;
48
+ contracts?: ({
49
+ local: string;
50
+ } | {
51
+ global_hash: string;
52
+ } | {
53
+ global_account_id: string;
54
+ } | null)[] | null | undefined;
55
+ } | {
56
+ gas_profile?: {
57
+ [x: string]: any;
58
+ cost?: string | undefined;
59
+ cost_category?: string | undefined;
60
+ gas_used?: string | undefined;
61
+ }[] | null | undefined;
62
+ version: 1 | 2 | 3;
63
+ } | {
64
+ gas_profile?: {
65
+ [x: string]: any;
66
+ cost?: string | undefined;
67
+ cost_category?: string | undefined;
68
+ gas_used?: string | undefined;
69
+ }[] | null | undefined;
70
+ version: number;
71
+ } | undefined;
72
+ };
73
+ block_hash: string;
74
+ proof: {
75
+ hash: string;
76
+ direction: "Left" | "Right";
77
+ }[];
78
+ } | undefined;
79
+ receipts_outcome?: {
80
+ id: string;
81
+ outcome: {
82
+ logs: string[];
83
+ receipt_ids: string[];
84
+ gas_burnt: number;
85
+ tokens_burnt: string;
86
+ executor_id: string;
87
+ status: "Pending" | "Unknown" | {
88
+ SuccessValue: string;
89
+ } | {
90
+ SuccessReceiptId: string;
91
+ } | {
92
+ Failure: {
93
+ [x: string]: any;
94
+ error_message?: string | undefined;
95
+ error_type?: string | undefined;
96
+ };
97
+ };
98
+ metadata?: {
99
+ gas_profile?: {
100
+ [x: string]: any;
101
+ cost?: string | undefined;
102
+ cost_category?: string | undefined;
103
+ gas_used?: string | undefined;
104
+ }[] | null | undefined;
105
+ version: 4;
106
+ contracts?: ({
107
+ local: string;
108
+ } | {
109
+ global_hash: string;
110
+ } | {
111
+ global_account_id: string;
112
+ } | null)[] | null | undefined;
113
+ } | {
114
+ gas_profile?: {
115
+ [x: string]: any;
116
+ cost?: string | undefined;
117
+ cost_category?: string | undefined;
118
+ gas_used?: string | undefined;
119
+ }[] | null | undefined;
120
+ version: 1 | 2 | 3;
121
+ } | {
122
+ gas_profile?: {
123
+ [x: string]: any;
124
+ cost?: string | undefined;
125
+ cost_category?: string | undefined;
126
+ gas_used?: string | undefined;
127
+ }[] | null | undefined;
128
+ version: number;
129
+ } | undefined;
130
+ };
131
+ block_hash: string;
132
+ proof: {
133
+ hash: string;
134
+ direction: "Left" | "Right";
135
+ }[];
136
+ }[] | undefined;
10
137
  } | {
11
138
  final_execution_status: "INCLUDED";
12
139
  transaction?: {
@@ -15,6 +142,133 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
15
142
  receiver_id: string;
16
143
  nonce: number;
17
144
  } | undefined;
145
+ status?: "Pending" | "Unknown" | {
146
+ SuccessValue: string;
147
+ } | {
148
+ SuccessReceiptId: string;
149
+ } | {
150
+ Failure: {
151
+ [x: string]: any;
152
+ error_message?: string | undefined;
153
+ error_type?: string | undefined;
154
+ };
155
+ } | undefined;
156
+ transaction_outcome?: {
157
+ id: string;
158
+ outcome: {
159
+ logs: string[];
160
+ receipt_ids: string[];
161
+ gas_burnt: number;
162
+ tokens_burnt: string;
163
+ executor_id: string;
164
+ status: "Pending" | "Unknown" | {
165
+ SuccessValue: string;
166
+ } | {
167
+ SuccessReceiptId: string;
168
+ } | {
169
+ Failure: {
170
+ [x: string]: any;
171
+ error_message?: string | undefined;
172
+ error_type?: string | undefined;
173
+ };
174
+ };
175
+ metadata?: {
176
+ gas_profile?: {
177
+ [x: string]: any;
178
+ cost?: string | undefined;
179
+ cost_category?: string | undefined;
180
+ gas_used?: string | undefined;
181
+ }[] | null | undefined;
182
+ version: 4;
183
+ contracts?: ({
184
+ local: string;
185
+ } | {
186
+ global_hash: string;
187
+ } | {
188
+ global_account_id: string;
189
+ } | null)[] | null | undefined;
190
+ } | {
191
+ gas_profile?: {
192
+ [x: string]: any;
193
+ cost?: string | undefined;
194
+ cost_category?: string | undefined;
195
+ gas_used?: string | undefined;
196
+ }[] | null | undefined;
197
+ version: 1 | 2 | 3;
198
+ } | {
199
+ gas_profile?: {
200
+ [x: string]: any;
201
+ cost?: string | undefined;
202
+ cost_category?: string | undefined;
203
+ gas_used?: string | undefined;
204
+ }[] | null | undefined;
205
+ version: number;
206
+ } | undefined;
207
+ };
208
+ block_hash: string;
209
+ proof: {
210
+ hash: string;
211
+ direction: "Left" | "Right";
212
+ }[];
213
+ } | undefined;
214
+ receipts_outcome?: {
215
+ id: string;
216
+ outcome: {
217
+ logs: string[];
218
+ receipt_ids: string[];
219
+ gas_burnt: number;
220
+ tokens_burnt: string;
221
+ executor_id: string;
222
+ status: "Pending" | "Unknown" | {
223
+ SuccessValue: string;
224
+ } | {
225
+ SuccessReceiptId: string;
226
+ } | {
227
+ Failure: {
228
+ [x: string]: any;
229
+ error_message?: string | undefined;
230
+ error_type?: string | undefined;
231
+ };
232
+ };
233
+ metadata?: {
234
+ gas_profile?: {
235
+ [x: string]: any;
236
+ cost?: string | undefined;
237
+ cost_category?: string | undefined;
238
+ gas_used?: string | undefined;
239
+ }[] | null | undefined;
240
+ version: 4;
241
+ contracts?: ({
242
+ local: string;
243
+ } | {
244
+ global_hash: string;
245
+ } | {
246
+ global_account_id: string;
247
+ } | null)[] | null | undefined;
248
+ } | {
249
+ gas_profile?: {
250
+ [x: string]: any;
251
+ cost?: string | undefined;
252
+ cost_category?: string | undefined;
253
+ gas_used?: string | undefined;
254
+ }[] | null | undefined;
255
+ version: 1 | 2 | 3;
256
+ } | {
257
+ gas_profile?: {
258
+ [x: string]: any;
259
+ cost?: string | undefined;
260
+ cost_category?: string | undefined;
261
+ gas_used?: string | undefined;
262
+ }[] | null | undefined;
263
+ version: number;
264
+ } | undefined;
265
+ };
266
+ block_hash: string;
267
+ proof: {
268
+ hash: string;
269
+ direction: "Left" | "Right";
270
+ }[];
271
+ }[] | undefined;
18
272
  } | {
19
273
  final_execution_status: "INCLUDED_FINAL";
20
274
  transaction?: {
@@ -23,9 +277,136 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
23
277
  receiver_id: string;
24
278
  nonce: number;
25
279
  } | undefined;
280
+ status?: "Pending" | "Unknown" | {
281
+ SuccessValue: string;
282
+ } | {
283
+ SuccessReceiptId: string;
284
+ } | {
285
+ Failure: {
286
+ [x: string]: any;
287
+ error_message?: string | undefined;
288
+ error_type?: string | undefined;
289
+ };
290
+ } | undefined;
291
+ transaction_outcome?: {
292
+ id: string;
293
+ outcome: {
294
+ logs: string[];
295
+ receipt_ids: string[];
296
+ gas_burnt: number;
297
+ tokens_burnt: string;
298
+ executor_id: string;
299
+ status: "Pending" | "Unknown" | {
300
+ SuccessValue: string;
301
+ } | {
302
+ SuccessReceiptId: string;
303
+ } | {
304
+ Failure: {
305
+ [x: string]: any;
306
+ error_message?: string | undefined;
307
+ error_type?: string | undefined;
308
+ };
309
+ };
310
+ metadata?: {
311
+ gas_profile?: {
312
+ [x: string]: any;
313
+ cost?: string | undefined;
314
+ cost_category?: string | undefined;
315
+ gas_used?: string | undefined;
316
+ }[] | null | undefined;
317
+ version: 4;
318
+ contracts?: ({
319
+ local: string;
320
+ } | {
321
+ global_hash: string;
322
+ } | {
323
+ global_account_id: string;
324
+ } | null)[] | null | undefined;
325
+ } | {
326
+ gas_profile?: {
327
+ [x: string]: any;
328
+ cost?: string | undefined;
329
+ cost_category?: string | undefined;
330
+ gas_used?: string | undefined;
331
+ }[] | null | undefined;
332
+ version: 1 | 2 | 3;
333
+ } | {
334
+ gas_profile?: {
335
+ [x: string]: any;
336
+ cost?: string | undefined;
337
+ cost_category?: string | undefined;
338
+ gas_used?: string | undefined;
339
+ }[] | null | undefined;
340
+ version: number;
341
+ } | undefined;
342
+ };
343
+ block_hash: string;
344
+ proof: {
345
+ hash: string;
346
+ direction: "Left" | "Right";
347
+ }[];
348
+ } | undefined;
349
+ receipts_outcome?: {
350
+ id: string;
351
+ outcome: {
352
+ logs: string[];
353
+ receipt_ids: string[];
354
+ gas_burnt: number;
355
+ tokens_burnt: string;
356
+ executor_id: string;
357
+ status: "Pending" | "Unknown" | {
358
+ SuccessValue: string;
359
+ } | {
360
+ SuccessReceiptId: string;
361
+ } | {
362
+ Failure: {
363
+ [x: string]: any;
364
+ error_message?: string | undefined;
365
+ error_type?: string | undefined;
366
+ };
367
+ };
368
+ metadata?: {
369
+ gas_profile?: {
370
+ [x: string]: any;
371
+ cost?: string | undefined;
372
+ cost_category?: string | undefined;
373
+ gas_used?: string | undefined;
374
+ }[] | null | undefined;
375
+ version: 4;
376
+ contracts?: ({
377
+ local: string;
378
+ } | {
379
+ global_hash: string;
380
+ } | {
381
+ global_account_id: string;
382
+ } | null)[] | null | undefined;
383
+ } | {
384
+ gas_profile?: {
385
+ [x: string]: any;
386
+ cost?: string | undefined;
387
+ cost_category?: string | undefined;
388
+ gas_used?: string | undefined;
389
+ }[] | null | undefined;
390
+ version: 1 | 2 | 3;
391
+ } | {
392
+ gas_profile?: {
393
+ [x: string]: any;
394
+ cost?: string | undefined;
395
+ cost_category?: string | undefined;
396
+ gas_used?: string | undefined;
397
+ }[] | null | undefined;
398
+ version: number;
399
+ } | undefined;
400
+ };
401
+ block_hash: string;
402
+ proof: {
403
+ hash: string;
404
+ direction: "Left" | "Right";
405
+ }[];
406
+ }[] | undefined;
26
407
  } | {
27
408
  final_execution_status: "EXECUTED_OPTIMISTIC";
28
- status: "Unknown" | "Pending" | {
409
+ status: "Pending" | "Unknown" | {
29
410
  SuccessValue: string;
30
411
  } | {
31
412
  SuccessReceiptId: string;
@@ -82,6 +463,19 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
82
463
  method_names: string[];
83
464
  allowance?: string | null | undefined;
84
465
  };
466
+ } | {
467
+ GasKeyFunctionCall: {
468
+ balance: string;
469
+ num_nonces: number;
470
+ receiver_id: string;
471
+ method_names: string[];
472
+ allowance?: string | null | undefined;
473
+ };
474
+ } | {
475
+ GasKeyFullAccess: {
476
+ balance: string;
477
+ num_nonces: number;
478
+ };
85
479
  };
86
480
  };
87
481
  };
@@ -117,10 +511,44 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
117
511
  DeterministicStateInit: {
118
512
  deposit: string;
119
513
  };
514
+ } | {
515
+ TransferToGasKey: {
516
+ public_key: string;
517
+ deposit: string;
518
+ };
519
+ } | {
520
+ WithdrawFromGasKey: {
521
+ public_key: string;
522
+ amount: string;
523
+ };
524
+ } | {
525
+ DelegateV2: {
526
+ delegate_action: {
527
+ V2: {
528
+ sender_id: string;
529
+ receiver_id: string;
530
+ actions: any[];
531
+ nonce: {
532
+ Nonce: {
533
+ nonce: number;
534
+ };
535
+ } | {
536
+ GasKeyNonce: {
537
+ nonce: number;
538
+ nonce_index: number;
539
+ };
540
+ };
541
+ max_block_height: number;
542
+ public_key: string;
543
+ };
544
+ };
545
+ signature: string;
546
+ };
120
547
  })[];
121
548
  signature: string;
122
549
  hash: string;
123
550
  priority_fee?: number | undefined;
551
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
124
552
  };
125
553
  transaction_outcome: {
126
554
  id: string;
@@ -130,7 +558,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
130
558
  gas_burnt: number;
131
559
  tokens_burnt: string;
132
560
  executor_id: string;
133
- status: "Unknown" | "Pending" | {
561
+ status: "Pending" | "Unknown" | {
134
562
  SuccessValue: string;
135
563
  } | {
136
564
  SuccessReceiptId: string;
@@ -142,13 +570,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
142
570
  };
143
571
  };
144
572
  metadata?: {
145
- version: number;
146
573
  gas_profile?: {
147
574
  [x: string]: any;
148
575
  cost?: string | undefined;
149
576
  cost_category?: string | undefined;
150
577
  gas_used?: string | undefined;
151
578
  }[] | null | undefined;
579
+ version: 4;
580
+ contracts?: ({
581
+ local: string;
582
+ } | {
583
+ global_hash: string;
584
+ } | {
585
+ global_account_id: string;
586
+ } | null)[] | null | undefined;
587
+ } | {
588
+ gas_profile?: {
589
+ [x: string]: any;
590
+ cost?: string | undefined;
591
+ cost_category?: string | undefined;
592
+ gas_used?: string | undefined;
593
+ }[] | null | undefined;
594
+ version: 1 | 2 | 3;
595
+ } | {
596
+ gas_profile?: {
597
+ [x: string]: any;
598
+ cost?: string | undefined;
599
+ cost_category?: string | undefined;
600
+ gas_used?: string | undefined;
601
+ }[] | null | undefined;
602
+ version: number;
152
603
  } | undefined;
153
604
  };
154
605
  block_hash: string;
@@ -165,7 +616,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
165
616
  gas_burnt: number;
166
617
  tokens_burnt: string;
167
618
  executor_id: string;
168
- status: "Unknown" | "Pending" | {
619
+ status: "Pending" | "Unknown" | {
169
620
  SuccessValue: string;
170
621
  } | {
171
622
  SuccessReceiptId: string;
@@ -177,13 +628,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
177
628
  };
178
629
  };
179
630
  metadata?: {
180
- version: number;
181
631
  gas_profile?: {
182
632
  [x: string]: any;
183
633
  cost?: string | undefined;
184
634
  cost_category?: string | undefined;
185
635
  gas_used?: string | undefined;
186
636
  }[] | null | undefined;
637
+ version: 4;
638
+ contracts?: ({
639
+ local: string;
640
+ } | {
641
+ global_hash: string;
642
+ } | {
643
+ global_account_id: string;
644
+ } | null)[] | null | undefined;
645
+ } | {
646
+ gas_profile?: {
647
+ [x: string]: any;
648
+ cost?: string | undefined;
649
+ cost_category?: string | undefined;
650
+ gas_used?: string | undefined;
651
+ }[] | null | undefined;
652
+ version: 1 | 2 | 3;
653
+ } | {
654
+ gas_profile?: {
655
+ [x: string]: any;
656
+ cost?: string | undefined;
657
+ cost_category?: string | undefined;
658
+ gas_used?: string | undefined;
659
+ }[] | null | undefined;
660
+ version: number;
187
661
  } | undefined;
188
662
  };
189
663
  block_hash: string;
@@ -194,7 +668,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
194
668
  }[];
195
669
  } | {
196
670
  final_execution_status: "EXECUTED";
197
- status: "Unknown" | "Pending" | {
671
+ status: "Pending" | "Unknown" | {
198
672
  SuccessValue: string;
199
673
  } | {
200
674
  SuccessReceiptId: string;
@@ -251,6 +725,19 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
251
725
  method_names: string[];
252
726
  allowance?: string | null | undefined;
253
727
  };
728
+ } | {
729
+ GasKeyFunctionCall: {
730
+ balance: string;
731
+ num_nonces: number;
732
+ receiver_id: string;
733
+ method_names: string[];
734
+ allowance?: string | null | undefined;
735
+ };
736
+ } | {
737
+ GasKeyFullAccess: {
738
+ balance: string;
739
+ num_nonces: number;
740
+ };
254
741
  };
255
742
  };
256
743
  };
@@ -286,10 +773,44 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
286
773
  DeterministicStateInit: {
287
774
  deposit: string;
288
775
  };
776
+ } | {
777
+ TransferToGasKey: {
778
+ public_key: string;
779
+ deposit: string;
780
+ };
781
+ } | {
782
+ WithdrawFromGasKey: {
783
+ public_key: string;
784
+ amount: string;
785
+ };
786
+ } | {
787
+ DelegateV2: {
788
+ delegate_action: {
789
+ V2: {
790
+ sender_id: string;
791
+ receiver_id: string;
792
+ actions: any[];
793
+ nonce: {
794
+ Nonce: {
795
+ nonce: number;
796
+ };
797
+ } | {
798
+ GasKeyNonce: {
799
+ nonce: number;
800
+ nonce_index: number;
801
+ };
802
+ };
803
+ max_block_height: number;
804
+ public_key: string;
805
+ };
806
+ };
807
+ signature: string;
808
+ };
289
809
  })[];
290
810
  signature: string;
291
811
  hash: string;
292
812
  priority_fee?: number | undefined;
813
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
293
814
  };
294
815
  transaction_outcome: {
295
816
  id: string;
@@ -299,7 +820,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
299
820
  gas_burnt: number;
300
821
  tokens_burnt: string;
301
822
  executor_id: string;
302
- status: "Unknown" | "Pending" | {
823
+ status: "Pending" | "Unknown" | {
303
824
  SuccessValue: string;
304
825
  } | {
305
826
  SuccessReceiptId: string;
@@ -311,13 +832,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
311
832
  };
312
833
  };
313
834
  metadata?: {
314
- version: number;
315
835
  gas_profile?: {
316
836
  [x: string]: any;
317
837
  cost?: string | undefined;
318
838
  cost_category?: string | undefined;
319
839
  gas_used?: string | undefined;
320
840
  }[] | null | undefined;
841
+ version: 4;
842
+ contracts?: ({
843
+ local: string;
844
+ } | {
845
+ global_hash: string;
846
+ } | {
847
+ global_account_id: string;
848
+ } | null)[] | null | undefined;
849
+ } | {
850
+ gas_profile?: {
851
+ [x: string]: any;
852
+ cost?: string | undefined;
853
+ cost_category?: string | undefined;
854
+ gas_used?: string | undefined;
855
+ }[] | null | undefined;
856
+ version: 1 | 2 | 3;
857
+ } | {
858
+ gas_profile?: {
859
+ [x: string]: any;
860
+ cost?: string | undefined;
861
+ cost_category?: string | undefined;
862
+ gas_used?: string | undefined;
863
+ }[] | null | undefined;
864
+ version: number;
321
865
  } | undefined;
322
866
  };
323
867
  block_hash: string;
@@ -334,7 +878,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
334
878
  gas_burnt: number;
335
879
  tokens_burnt: string;
336
880
  executor_id: string;
337
- status: "Unknown" | "Pending" | {
881
+ status: "Pending" | "Unknown" | {
338
882
  SuccessValue: string;
339
883
  } | {
340
884
  SuccessReceiptId: string;
@@ -346,13 +890,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
346
890
  };
347
891
  };
348
892
  metadata?: {
349
- version: number;
350
893
  gas_profile?: {
351
894
  [x: string]: any;
352
895
  cost?: string | undefined;
353
896
  cost_category?: string | undefined;
354
897
  gas_used?: string | undefined;
355
898
  }[] | null | undefined;
899
+ version: 4;
900
+ contracts?: ({
901
+ local: string;
902
+ } | {
903
+ global_hash: string;
904
+ } | {
905
+ global_account_id: string;
906
+ } | null)[] | null | undefined;
907
+ } | {
908
+ gas_profile?: {
909
+ [x: string]: any;
910
+ cost?: string | undefined;
911
+ cost_category?: string | undefined;
912
+ gas_used?: string | undefined;
913
+ }[] | null | undefined;
914
+ version: 1 | 2 | 3;
915
+ } | {
916
+ gas_profile?: {
917
+ [x: string]: any;
918
+ cost?: string | undefined;
919
+ cost_category?: string | undefined;
920
+ gas_used?: string | undefined;
921
+ }[] | null | undefined;
922
+ version: number;
356
923
  } | undefined;
357
924
  };
358
925
  block_hash: string;
@@ -363,7 +930,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
363
930
  }[];
364
931
  } | {
365
932
  final_execution_status: "FINAL";
366
- status: "Unknown" | "Pending" | {
933
+ status: "Pending" | "Unknown" | {
367
934
  SuccessValue: string;
368
935
  } | {
369
936
  SuccessReceiptId: string;
@@ -420,6 +987,19 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
420
987
  method_names: string[];
421
988
  allowance?: string | null | undefined;
422
989
  };
990
+ } | {
991
+ GasKeyFunctionCall: {
992
+ balance: string;
993
+ num_nonces: number;
994
+ receiver_id: string;
995
+ method_names: string[];
996
+ allowance?: string | null | undefined;
997
+ };
998
+ } | {
999
+ GasKeyFullAccess: {
1000
+ balance: string;
1001
+ num_nonces: number;
1002
+ };
423
1003
  };
424
1004
  };
425
1005
  };
@@ -455,10 +1035,44 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
455
1035
  DeterministicStateInit: {
456
1036
  deposit: string;
457
1037
  };
1038
+ } | {
1039
+ TransferToGasKey: {
1040
+ public_key: string;
1041
+ deposit: string;
1042
+ };
1043
+ } | {
1044
+ WithdrawFromGasKey: {
1045
+ public_key: string;
1046
+ amount: string;
1047
+ };
1048
+ } | {
1049
+ DelegateV2: {
1050
+ delegate_action: {
1051
+ V2: {
1052
+ sender_id: string;
1053
+ receiver_id: string;
1054
+ actions: any[];
1055
+ nonce: {
1056
+ Nonce: {
1057
+ nonce: number;
1058
+ };
1059
+ } | {
1060
+ GasKeyNonce: {
1061
+ nonce: number;
1062
+ nonce_index: number;
1063
+ };
1064
+ };
1065
+ max_block_height: number;
1066
+ public_key: string;
1067
+ };
1068
+ };
1069
+ signature: string;
1070
+ };
458
1071
  })[];
459
1072
  signature: string;
460
1073
  hash: string;
461
1074
  priority_fee?: number | undefined;
1075
+ nonce_mode?: "monotonic" | "strict" | null | undefined;
462
1076
  };
463
1077
  transaction_outcome: {
464
1078
  id: string;
@@ -468,7 +1082,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
468
1082
  gas_burnt: number;
469
1083
  tokens_burnt: string;
470
1084
  executor_id: string;
471
- status: "Unknown" | "Pending" | {
1085
+ status: "Pending" | "Unknown" | {
472
1086
  SuccessValue: string;
473
1087
  } | {
474
1088
  SuccessReceiptId: string;
@@ -480,13 +1094,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
480
1094
  };
481
1095
  };
482
1096
  metadata?: {
483
- version: number;
484
1097
  gas_profile?: {
485
1098
  [x: string]: any;
486
1099
  cost?: string | undefined;
487
1100
  cost_category?: string | undefined;
488
1101
  gas_used?: string | undefined;
489
1102
  }[] | null | undefined;
1103
+ version: 4;
1104
+ contracts?: ({
1105
+ local: string;
1106
+ } | {
1107
+ global_hash: string;
1108
+ } | {
1109
+ global_account_id: string;
1110
+ } | null)[] | null | undefined;
1111
+ } | {
1112
+ gas_profile?: {
1113
+ [x: string]: any;
1114
+ cost?: string | undefined;
1115
+ cost_category?: string | undefined;
1116
+ gas_used?: string | undefined;
1117
+ }[] | null | undefined;
1118
+ version: 1 | 2 | 3;
1119
+ } | {
1120
+ gas_profile?: {
1121
+ [x: string]: any;
1122
+ cost?: string | undefined;
1123
+ cost_category?: string | undefined;
1124
+ gas_used?: string | undefined;
1125
+ }[] | null | undefined;
1126
+ version: number;
490
1127
  } | undefined;
491
1128
  };
492
1129
  block_hash: string;
@@ -503,7 +1140,7 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
503
1140
  gas_burnt: number;
504
1141
  tokens_burnt: string;
505
1142
  executor_id: string;
506
- status: "Unknown" | "Pending" | {
1143
+ status: "Pending" | "Unknown" | {
507
1144
  SuccessValue: string;
508
1145
  } | {
509
1146
  SuccessReceiptId: string;
@@ -515,13 +1152,36 @@ export declare function add_key_fun(near: Near, signerId: string, publicKey: str
515
1152
  };
516
1153
  };
517
1154
  metadata?: {
518
- version: number;
519
1155
  gas_profile?: {
520
1156
  [x: string]: any;
521
1157
  cost?: string | undefined;
522
1158
  cost_category?: string | undefined;
523
1159
  gas_used?: string | undefined;
524
1160
  }[] | null | undefined;
1161
+ version: 4;
1162
+ contracts?: ({
1163
+ local: string;
1164
+ } | {
1165
+ global_hash: string;
1166
+ } | {
1167
+ global_account_id: string;
1168
+ } | null)[] | null | undefined;
1169
+ } | {
1170
+ gas_profile?: {
1171
+ [x: string]: any;
1172
+ cost?: string | undefined;
1173
+ cost_category?: string | undefined;
1174
+ gas_used?: string | undefined;
1175
+ }[] | null | undefined;
1176
+ version: 1 | 2 | 3;
1177
+ } | {
1178
+ gas_profile?: {
1179
+ [x: string]: any;
1180
+ cost?: string | undefined;
1181
+ cost_category?: string | undefined;
1182
+ gas_used?: string | undefined;
1183
+ }[] | null | undefined;
1184
+ version: number;
525
1185
  } | undefined;
526
1186
  };
527
1187
  block_hash: string;