@fastnear/api 0.5.1 → 0.6.1

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.
@@ -1,3339 +1,160 @@
1
- export { sha256 } from '@noble/hashes/sha2';
2
- export { base58_to_binary as fromBase58, binary_to_base58 as toBase58 } from 'base58-js';
1
+ import * as reExportUtils from '@fastnear/utils';
2
+ import { reExportBorshSchema } from '@fastnear/utils';
3
3
 
4
- declare function toBase64(data: any): string;
5
- declare function fromBase64(str: any): Uint8Array<ArrayBuffer>;
6
- declare function lsSet(key: any, value: any): void;
7
- declare function lsGet(key: any): any;
8
- declare function deepCopy(obj: any): any;
9
- declare function tryParseJson(...args: any[]): any;
10
- declare function canSignWithLAK(actions: any): any;
4
+ interface NetworkConfig {
5
+ networkId: string;
6
+ nodeUrl?: string;
7
+ walletUrl?: string;
8
+ helperUrl?: string;
9
+ explorerUrl?: string;
10
+ [key: string]: any;
11
+ }
12
+ interface TxStatus {
13
+ txId: string;
14
+ updateTimestamp?: number;
15
+ [key: string]: any;
16
+ }
17
+ type TxHistory = Record<string, TxStatus>;
11
18
 
12
- declare function parseJsonFromBytes(bytes: Uint8Array): any;
13
- declare function convertUnit(s: string | TemplateStringsArray, ...args: any[]): string;
19
+ declare const MaxBlockDelayMs: number;
20
+ declare const WIDGET_URL = "https://wallet-adapter.fastnear.com";
21
+ declare const DEFAULT_NETWORK_ID = "mainnet";
22
+ declare const NETWORKS: {
23
+ testnet: {
24
+ networkId: string;
25
+ nodeUrl: string;
26
+ };
27
+ mainnet: {
28
+ networkId: string;
29
+ nodeUrl: string;
30
+ };
31
+ };
32
+ declare function withBlockId(params: Record<string, any>, blockId?: string): {
33
+ finality: string;
34
+ } | {
35
+ block_id: string;
36
+ };
37
+ declare function queryRpc(method: string, params: Record<string, any> | any[]): Promise<any>;
38
+ declare function afterTxSent(txId: string): void;
39
+ declare function sendTxToRpc(signedTxBase64: string, waitUntil: string | undefined, txId: string): void;
14
40
  interface AccessKeyView {
15
41
  nonce: number;
16
42
  permission: any;
17
43
  }
18
- declare const api: {
19
- readonly accountId: any;
20
- readonly publicKey: any;
21
- config(newConfig?: Record<string, any>): any;
22
- readonly authStatus: string | Record<string, any>;
23
- view({ contractId, methodName, args, argsBase64, blockId, }: {
24
- contractId: string;
44
+ declare const accountId: () => string;
45
+ declare const publicKey: () => string;
46
+ declare const config: (newConfig?: Record<string, any>) => NetworkConfig;
47
+ declare const authStatus: () => string | Record<string, any>;
48
+ declare const view: ({ contractId, methodName, args, argsBase64, blockId, }: {
49
+ contractId: string;
50
+ methodName: string;
51
+ args?: any;
52
+ argsBase64?: string;
53
+ blockId?: string;
54
+ }) => Promise<any>;
55
+ declare const account: ({ accountId, blockId, }: {
56
+ accountId: string;
57
+ blockId?: string;
58
+ }) => Promise<any>;
59
+ declare const block: ({ blockId }: {
60
+ blockId?: string;
61
+ }) => Promise<any>;
62
+ declare const accessKey: ({ accountId, publicKey, blockId, }: {
63
+ accountId: string;
64
+ publicKey: string;
65
+ blockId?: string;
66
+ }) => Promise<AccessKeyView>;
67
+ declare const tx: ({ txHash, accountId, }: {
68
+ txHash: string;
69
+ accountId: string;
70
+ }) => Promise<any>;
71
+ declare const localTxHistory: () => TxHistory;
72
+ declare const sendTx: ({ receiverId, actions, waitUntil, }: {
73
+ receiverId: string;
74
+ actions: any[];
75
+ waitUntil?: string;
76
+ }) => Promise<string>;
77
+ declare const requestSignIn: ({ contractId }: {
78
+ contractId: string;
79
+ }) => Promise<void>;
80
+ declare const signOut: () => void;
81
+ declare const actions: {
82
+ functionCall: ({ methodName, gas, deposit, args, argsBase64, }: {
25
83
  methodName: string;
26
- args?: any;
84
+ gas?: string;
85
+ deposit?: string;
86
+ args?: Record<string, any>;
27
87
  argsBase64?: string;
28
- blockId?: string;
29
- }): Promise<any>;
30
- account({ accountId, blockId, }: {
31
- accountId: string;
32
- blockId?: string;
33
- }): Promise<any>;
34
- block({ blockId }: {
35
- blockId?: string;
36
- }): Promise<any>;
37
- accessKey({ accountId, publicKey, blockId, }: {
38
- accountId: string;
39
- publicKey: string;
40
- blockId?: string;
41
- }): Promise<AccessKeyView>;
42
- tx({ txHash, accountId }: {
43
- txHash: string;
44
- accountId: string;
45
- }): Promise<any>;
46
- localTxHistory(): any[];
47
- sendTx({ receiverId, actions, waitUntil, }: {
48
- receiverId: string;
49
- actions: any[];
50
- waitUntil?: string;
51
- }): Promise<string>;
52
- requestSignIn({ contractId }: {
53
- contractId: string;
54
- }): Promise<void>;
55
- signOut(): void;
56
- onAccount(callback: (accountId: string) => void): void;
57
- onTx(callback: (tx: Record<string, any>) => void): void;
58
- actions: {
59
- functionCall: ({ methodName, gas, deposit, args, argsBase64, }: {
60
- methodName: string;
61
- gas?: string;
62
- deposit?: string;
63
- args?: Record<string, any>;
64
- argsBase64?: string;
65
- }) => {
66
- type: string;
67
- methodName: string;
68
- args: Record<string, any>;
69
- argsBase64: string;
70
- gas: string;
71
- deposit: string;
72
- };
73
- transfer: (yoctoAmount: string) => {
74
- type: string;
75
- deposit: string;
76
- };
77
- stakeNEAR: ({ amount, publicKey }: {
78
- amount: string;
79
- publicKey: string;
80
- }) => {
81
- type: string;
82
- stake: string;
83
- publicKey: string;
84
- };
85
- addFullAccessKey: ({ publicKey }: {
86
- publicKey: string;
87
- }) => {
88
- type: string;
89
- publicKey: string;
90
- accessKey: {
91
- permission: string;
92
- };
93
- };
94
- addLimitedAccessKey: ({ publicKey, allowance, accountId, methodNames, }: {
95
- publicKey: string;
96
- allowance: string;
97
- accountId: string;
98
- methodNames: string[];
99
- }) => {
100
- type: string;
101
- publicKey: string;
102
- accessKey: {
103
- permission: string;
104
- allowance: string;
105
- receiverId: string;
106
- methodNames: string[];
107
- };
108
- };
109
- deleteKey: ({ publicKey }: {
110
- publicKey: string;
111
- }) => {
112
- type: string;
113
- publicKey: string;
114
- };
115
- deleteAccount: ({ beneficiaryId }: {
116
- beneficiaryId: string;
117
- }) => {
118
- type: string;
119
- beneficiaryId: string;
120
- };
121
- createAccount: () => {
122
- type: string;
123
- };
124
- deployContract: ({ codeBase64 }: {
125
- codeBase64: string;
126
- }) => {
127
- type: string;
128
- codeBase64: string;
129
- };
130
- };
131
- utils: {
132
- toBase64: typeof toBase64;
133
- fromBase64: typeof fromBase64;
134
- toBase58: any;
135
- fromBase58: any;
136
- };
137
- };
138
-
139
- declare const keyFromString: (key: any) => any;
140
- declare const keyToString: (key: any) => string;
141
- declare function publicKeyFromPrivate(privateKey: any): string;
142
- declare function privateKeyFromRandom(): string;
143
- declare function signHash(hash: any, privateKey: any): any;
144
- declare function signBytes(bytes: any, privateKey: any): any;
145
-
146
- declare function serializeTransaction(jsonTransaction: any): Uint8Array<ArrayBufferLike>;
147
- declare function serializeSignedTransaction(jsonTransaction: any, signature: any): Uint8Array<ArrayBufferLike>;
148
- declare function mapAction(action: any): any;
149
- declare const SCHEMA: {
150
- Ed25519Signature: {
151
- struct: {
152
- data: {
153
- array: {
154
- type: string;
155
- len: number;
156
- };
157
- };
158
- };
159
- };
160
- Secp256k1Signature: {
161
- struct: {
162
- data: {
163
- array: {
164
- type: string;
165
- len: number;
166
- };
167
- };
168
- };
169
- };
170
- Signature: {
171
- enum: ({
172
- struct: {
173
- ed25519Signature: {
174
- struct: {
175
- data: {
176
- array: {
177
- type: string;
178
- len: number;
179
- };
180
- };
181
- };
182
- };
183
- secp256k1Signature?: undefined;
184
- };
185
- } | {
186
- struct: {
187
- secp256k1Signature: {
188
- struct: {
189
- data: {
190
- array: {
191
- type: string;
192
- len: number;
193
- };
194
- };
195
- };
196
- };
197
- ed25519Signature?: undefined;
198
- };
199
- })[];
200
- };
201
- Ed25519Data: {
202
- struct: {
203
- data: {
204
- array: {
205
- type: string;
206
- len: number;
207
- };
208
- };
209
- };
210
- };
211
- Secp256k1Data: {
212
- struct: {
213
- data: {
214
- array: {
215
- type: string;
216
- len: number;
217
- };
218
- };
219
- };
220
- };
221
- PublicKey: {
222
- enum: ({
223
- struct: {
224
- ed25519Key: {
225
- struct: {
226
- data: {
227
- array: {
228
- type: string;
229
- len: number;
230
- };
231
- };
232
- };
233
- };
234
- secp256k1Key?: undefined;
235
- };
236
- } | {
237
- struct: {
238
- secp256k1Key: {
239
- struct: {
240
- data: {
241
- array: {
242
- type: string;
243
- len: number;
244
- };
245
- };
246
- };
247
- };
248
- ed25519Key?: undefined;
249
- };
250
- })[];
251
- };
252
- FunctionCallPermission: {
253
- struct: {
254
- allowance: {
255
- option: string;
256
- };
257
- receiverId: string;
258
- methodNames: {
259
- array: {
260
- type: string;
261
- };
262
- };
263
- };
264
- };
265
- FullAccessPermission: {
266
- struct: {};
267
- };
268
- AccessKeyPermission: {
269
- enum: ({
270
- struct: {
271
- functionCall: {
272
- struct: {
273
- allowance: {
274
- option: string;
275
- };
276
- receiverId: string;
277
- methodNames: {
278
- array: {
279
- type: string;
280
- };
281
- };
282
- };
283
- };
284
- fullAccess?: undefined;
285
- };
286
- } | {
287
- struct: {
288
- fullAccess: {
289
- struct: {};
290
- };
291
- functionCall?: undefined;
292
- };
293
- })[];
294
- };
295
- AccessKey: {
296
- struct: {
297
- nonce: string;
298
- permission: {
299
- enum: ({
300
- struct: {
301
- functionCall: {
302
- struct: {
303
- allowance: {
304
- option: string;
305
- };
306
- receiverId: string;
307
- methodNames: {
308
- array: {
309
- type: string;
310
- };
311
- };
312
- };
313
- };
314
- fullAccess?: undefined;
315
- };
316
- } | {
317
- struct: {
318
- fullAccess: {
319
- struct: {};
320
- };
321
- functionCall?: undefined;
322
- };
323
- })[];
324
- };
325
- };
326
- };
327
- CreateAccount: {
328
- struct: {};
329
- };
330
- DeployContract: {
331
- struct: {
332
- code: {
333
- array: {
334
- type: string;
335
- };
336
- };
337
- };
338
- };
339
- FunctionCall: {
340
- struct: {
341
- methodName: string;
342
- args: {
343
- array: {
344
- type: string;
345
- };
346
- };
347
- gas: string;
348
- deposit: string;
349
- };
350
- };
351
- Transfer: {
352
- struct: {
353
- deposit: string;
354
- };
355
- };
356
- Stake: {
357
- struct: {
358
- stake: string;
359
- publicKey: {
360
- enum: ({
361
- struct: {
362
- ed25519Key: {
363
- struct: {
364
- data: {
365
- array: {
366
- type: string;
367
- len: number;
368
- };
369
- };
370
- };
371
- };
372
- secp256k1Key?: undefined;
373
- };
374
- } | {
375
- struct: {
376
- secp256k1Key: {
377
- struct: {
378
- data: {
379
- array: {
380
- type: string;
381
- len: number;
382
- };
383
- };
384
- };
385
- };
386
- ed25519Key?: undefined;
387
- };
388
- })[];
389
- };
390
- };
88
+ }) => {
89
+ type: string;
90
+ methodName: string;
91
+ args: Record<string, any>;
92
+ argsBase64: string;
93
+ gas: string;
94
+ deposit: string;
391
95
  };
392
- AddKey: {
393
- struct: {
394
- publicKey: {
395
- enum: ({
396
- struct: {
397
- ed25519Key: {
398
- struct: {
399
- data: {
400
- array: {
401
- type: string;
402
- len: number;
403
- };
404
- };
405
- };
406
- };
407
- secp256k1Key?: undefined;
408
- };
409
- } | {
410
- struct: {
411
- secp256k1Key: {
412
- struct: {
413
- data: {
414
- array: {
415
- type: string;
416
- len: number;
417
- };
418
- };
419
- };
420
- };
421
- ed25519Key?: undefined;
422
- };
423
- })[];
424
- };
425
- accessKey: {
426
- struct: {
427
- nonce: string;
428
- permission: {
429
- enum: ({
430
- struct: {
431
- functionCall: {
432
- struct: {
433
- allowance: {
434
- option: string;
435
- };
436
- receiverId: string;
437
- methodNames: {
438
- array: {
439
- type: string;
440
- };
441
- };
442
- };
443
- };
444
- fullAccess?: undefined;
445
- };
446
- } | {
447
- struct: {
448
- fullAccess: {
449
- struct: {};
450
- };
451
- functionCall?: undefined;
452
- };
453
- })[];
454
- };
455
- };
456
- };
457
- };
96
+ transfer: (yoctoAmount: string) => {
97
+ type: string;
98
+ deposit: string;
458
99
  };
459
- DeleteKey: {
460
- struct: {
461
- publicKey: {
462
- enum: ({
463
- struct: {
464
- ed25519Key: {
465
- struct: {
466
- data: {
467
- array: {
468
- type: string;
469
- len: number;
470
- };
471
- };
472
- };
473
- };
474
- secp256k1Key?: undefined;
475
- };
476
- } | {
477
- struct: {
478
- secp256k1Key: {
479
- struct: {
480
- data: {
481
- array: {
482
- type: string;
483
- len: number;
484
- };
485
- };
486
- };
487
- };
488
- ed25519Key?: undefined;
489
- };
490
- })[];
491
- };
492
- };
100
+ stakeNEAR: ({ amount, publicKey }: {
101
+ amount: string;
102
+ publicKey: string;
103
+ }) => {
104
+ type: string;
105
+ stake: string;
106
+ publicKey: string;
493
107
  };
494
- DeleteAccount: {
495
- struct: {
496
- beneficiaryId: string;
108
+ addFullAccessKey: ({ publicKey }: {
109
+ publicKey: string;
110
+ }) => {
111
+ type: string;
112
+ publicKey: string;
113
+ accessKey: {
114
+ permission: string;
497
115
  };
498
116
  };
499
- ClassicAction: {
500
- enum: ({
501
- struct: {
502
- createAccount: {
503
- struct: {};
504
- };
505
- deployContract?: undefined;
506
- functionCall?: undefined;
507
- transfer?: undefined;
508
- stake?: undefined;
509
- addKey?: undefined;
510
- deleteKey?: undefined;
511
- deleteAccount?: undefined;
512
- };
513
- } | {
514
- struct: {
515
- deployContract: {
516
- struct: {
517
- code: {
518
- array: {
519
- type: string;
520
- };
521
- };
522
- };
523
- };
524
- createAccount?: undefined;
525
- functionCall?: undefined;
526
- transfer?: undefined;
527
- stake?: undefined;
528
- addKey?: undefined;
529
- deleteKey?: undefined;
530
- deleteAccount?: undefined;
531
- };
532
- } | {
533
- struct: {
534
- functionCall: {
535
- struct: {
536
- methodName: string;
537
- args: {
538
- array: {
539
- type: string;
540
- };
541
- };
542
- gas: string;
543
- deposit: string;
544
- };
545
- };
546
- createAccount?: undefined;
547
- deployContract?: undefined;
548
- transfer?: undefined;
549
- stake?: undefined;
550
- addKey?: undefined;
551
- deleteKey?: undefined;
552
- deleteAccount?: undefined;
553
- };
554
- } | {
555
- struct: {
556
- transfer: {
557
- struct: {
558
- deposit: string;
559
- };
560
- };
561
- createAccount?: undefined;
562
- deployContract?: undefined;
563
- functionCall?: undefined;
564
- stake?: undefined;
565
- addKey?: undefined;
566
- deleteKey?: undefined;
567
- deleteAccount?: undefined;
568
- };
569
- } | {
570
- struct: {
571
- stake: {
572
- struct: {
573
- stake: string;
574
- publicKey: {
575
- enum: ({
576
- struct: {
577
- ed25519Key: {
578
- struct: {
579
- data: {
580
- array: {
581
- type: string;
582
- len: number;
583
- };
584
- };
585
- };
586
- };
587
- secp256k1Key?: undefined;
588
- };
589
- } | {
590
- struct: {
591
- secp256k1Key: {
592
- struct: {
593
- data: {
594
- array: {
595
- type: string;
596
- len: number;
597
- };
598
- };
599
- };
600
- };
601
- ed25519Key?: undefined;
602
- };
603
- })[];
604
- };
605
- };
606
- };
607
- createAccount?: undefined;
608
- deployContract?: undefined;
609
- functionCall?: undefined;
610
- transfer?: undefined;
611
- addKey?: undefined;
612
- deleteKey?: undefined;
613
- deleteAccount?: undefined;
614
- };
615
- } | {
616
- struct: {
617
- addKey: {
618
- struct: {
619
- publicKey: {
620
- enum: ({
621
- struct: {
622
- ed25519Key: {
623
- struct: {
624
- data: {
625
- array: {
626
- type: string;
627
- len: number;
628
- };
629
- };
630
- };
631
- };
632
- secp256k1Key?: undefined;
633
- };
634
- } | {
635
- struct: {
636
- secp256k1Key: {
637
- struct: {
638
- data: {
639
- array: {
640
- type: string;
641
- len: number;
642
- };
643
- };
644
- };
645
- };
646
- ed25519Key?: undefined;
647
- };
648
- })[];
649
- };
650
- accessKey: {
651
- struct: {
652
- nonce: string;
653
- permission: {
654
- enum: ({
655
- struct: {
656
- functionCall: {
657
- struct: {
658
- allowance: {
659
- option: string;
660
- };
661
- receiverId: string;
662
- methodNames: {
663
- array: {
664
- type: string;
665
- };
666
- };
667
- };
668
- };
669
- fullAccess?: undefined;
670
- };
671
- } | {
672
- struct: {
673
- fullAccess: {
674
- struct: {};
675
- };
676
- functionCall?: undefined;
677
- };
678
- })[];
679
- };
680
- };
681
- };
682
- };
683
- };
684
- createAccount?: undefined;
685
- deployContract?: undefined;
686
- functionCall?: undefined;
687
- transfer?: undefined;
688
- stake?: undefined;
689
- deleteKey?: undefined;
690
- deleteAccount?: undefined;
691
- };
692
- } | {
693
- struct: {
694
- deleteKey: {
695
- struct: {
696
- publicKey: {
697
- enum: ({
698
- struct: {
699
- ed25519Key: {
700
- struct: {
701
- data: {
702
- array: {
703
- type: string;
704
- len: number;
705
- };
706
- };
707
- };
708
- };
709
- secp256k1Key?: undefined;
710
- };
711
- } | {
712
- struct: {
713
- secp256k1Key: {
714
- struct: {
715
- data: {
716
- array: {
717
- type: string;
718
- len: number;
719
- };
720
- };
721
- };
722
- };
723
- ed25519Key?: undefined;
724
- };
725
- })[];
726
- };
727
- };
728
- };
729
- createAccount?: undefined;
730
- deployContract?: undefined;
731
- functionCall?: undefined;
732
- transfer?: undefined;
733
- stake?: undefined;
734
- addKey?: undefined;
735
- deleteAccount?: undefined;
736
- };
737
- } | {
738
- struct: {
739
- deleteAccount: {
740
- struct: {
741
- beneficiaryId: string;
742
- };
743
- };
744
- createAccount?: undefined;
745
- deployContract?: undefined;
746
- functionCall?: undefined;
747
- transfer?: undefined;
748
- stake?: undefined;
749
- addKey?: undefined;
750
- deleteKey?: undefined;
751
- };
752
- })[];
753
- };
754
- DelegateAction: {
755
- struct: {
756
- senderId: string;
117
+ addLimitedAccessKey: ({ publicKey, allowance, accountId, methodNames, }: {
118
+ publicKey: string;
119
+ allowance: string;
120
+ accountId: string;
121
+ methodNames: string[];
122
+ }) => {
123
+ type: string;
124
+ publicKey: string;
125
+ accessKey: {
126
+ permission: string;
127
+ allowance: string;
757
128
  receiverId: string;
758
- actions: {
759
- array: {
760
- type: {
761
- enum: ({
762
- struct: {
763
- createAccount: {
764
- struct: {};
765
- };
766
- deployContract?: undefined;
767
- functionCall?: undefined;
768
- transfer?: undefined;
769
- stake?: undefined;
770
- addKey?: undefined;
771
- deleteKey?: undefined;
772
- deleteAccount?: undefined;
773
- };
774
- } | {
775
- struct: {
776
- deployContract: {
777
- struct: {
778
- code: {
779
- array: {
780
- type: string;
781
- };
782
- };
783
- };
784
- };
785
- createAccount?: undefined;
786
- functionCall?: undefined;
787
- transfer?: undefined;
788
- stake?: undefined;
789
- addKey?: undefined;
790
- deleteKey?: undefined;
791
- deleteAccount?: undefined;
792
- };
793
- } | {
794
- struct: {
795
- functionCall: {
796
- struct: {
797
- methodName: string;
798
- args: {
799
- array: {
800
- type: string;
801
- };
802
- };
803
- gas: string;
804
- deposit: string;
805
- };
806
- };
807
- createAccount?: undefined;
808
- deployContract?: undefined;
809
- transfer?: undefined;
810
- stake?: undefined;
811
- addKey?: undefined;
812
- deleteKey?: undefined;
813
- deleteAccount?: undefined;
814
- };
815
- } | {
816
- struct: {
817
- transfer: {
818
- struct: {
819
- deposit: string;
820
- };
821
- };
822
- createAccount?: undefined;
823
- deployContract?: undefined;
824
- functionCall?: undefined;
825
- stake?: undefined;
826
- addKey?: undefined;
827
- deleteKey?: undefined;
828
- deleteAccount?: undefined;
829
- };
830
- } | {
831
- struct: {
832
- stake: {
833
- struct: {
834
- stake: string;
835
- publicKey: {
836
- enum: ({
837
- struct: {
838
- ed25519Key: {
839
- struct: {
840
- data: {
841
- array: {
842
- type: string;
843
- len: number;
844
- };
845
- };
846
- };
847
- };
848
- secp256k1Key?: undefined;
849
- };
850
- } | {
851
- struct: {
852
- secp256k1Key: {
853
- struct: {
854
- data: {
855
- array: {
856
- type: string;
857
- len: number;
858
- };
859
- };
860
- };
861
- };
862
- ed25519Key?: undefined;
863
- };
864
- })[];
865
- };
866
- };
867
- };
868
- createAccount?: undefined;
869
- deployContract?: undefined;
870
- functionCall?: undefined;
871
- transfer?: undefined;
872
- addKey?: undefined;
873
- deleteKey?: undefined;
874
- deleteAccount?: undefined;
875
- };
876
- } | {
877
- struct: {
878
- addKey: {
879
- struct: {
880
- publicKey: {
881
- enum: ({
882
- struct: {
883
- ed25519Key: {
884
- struct: {
885
- data: {
886
- array: {
887
- type: string;
888
- len: number;
889
- };
890
- };
891
- };
892
- };
893
- secp256k1Key?: undefined;
894
- };
895
- } | {
896
- struct: {
897
- secp256k1Key: {
898
- struct: {
899
- data: {
900
- array: {
901
- type: string;
902
- len: number;
903
- };
904
- };
905
- };
906
- };
907
- ed25519Key?: undefined;
908
- };
909
- })[];
910
- };
911
- accessKey: {
912
- struct: {
913
- nonce: string;
914
- permission: {
915
- enum: ({
916
- struct: {
917
- functionCall: {
918
- struct: {
919
- allowance: {
920
- option: string;
921
- };
922
- receiverId: string;
923
- methodNames: {
924
- array: {
925
- type: string;
926
- };
927
- };
928
- };
929
- };
930
- fullAccess?: undefined;
931
- };
932
- } | {
933
- struct: {
934
- fullAccess: {
935
- struct: {};
936
- };
937
- functionCall?: undefined;
938
- };
939
- })[];
940
- };
941
- };
942
- };
943
- };
944
- };
945
- createAccount?: undefined;
946
- deployContract?: undefined;
947
- functionCall?: undefined;
948
- transfer?: undefined;
949
- stake?: undefined;
950
- deleteKey?: undefined;
951
- deleteAccount?: undefined;
952
- };
953
- } | {
954
- struct: {
955
- deleteKey: {
956
- struct: {
957
- publicKey: {
958
- enum: ({
959
- struct: {
960
- ed25519Key: {
961
- struct: {
962
- data: {
963
- array: {
964
- type: string;
965
- len: number;
966
- };
967
- };
968
- };
969
- };
970
- secp256k1Key?: undefined;
971
- };
972
- } | {
973
- struct: {
974
- secp256k1Key: {
975
- struct: {
976
- data: {
977
- array: {
978
- type: string;
979
- len: number;
980
- };
981
- };
982
- };
983
- };
984
- ed25519Key?: undefined;
985
- };
986
- })[];
987
- };
988
- };
989
- };
990
- createAccount?: undefined;
991
- deployContract?: undefined;
992
- functionCall?: undefined;
993
- transfer?: undefined;
994
- stake?: undefined;
995
- addKey?: undefined;
996
- deleteAccount?: undefined;
997
- };
998
- } | {
999
- struct: {
1000
- deleteAccount: {
1001
- struct: {
1002
- beneficiaryId: string;
1003
- };
1004
- };
1005
- createAccount?: undefined;
1006
- deployContract?: undefined;
1007
- functionCall?: undefined;
1008
- transfer?: undefined;
1009
- stake?: undefined;
1010
- addKey?: undefined;
1011
- deleteKey?: undefined;
1012
- };
1013
- })[];
1014
- };
1015
- };
1016
- };
1017
- nonce: string;
1018
- maxBlockHeight: string;
1019
- publicKey: {
1020
- enum: ({
1021
- struct: {
1022
- ed25519Key: {
1023
- struct: {
1024
- data: {
1025
- array: {
1026
- type: string;
1027
- len: number;
1028
- };
1029
- };
1030
- };
1031
- };
1032
- secp256k1Key?: undefined;
1033
- };
1034
- } | {
1035
- struct: {
1036
- secp256k1Key: {
1037
- struct: {
1038
- data: {
1039
- array: {
1040
- type: string;
1041
- len: number;
1042
- };
1043
- };
1044
- };
1045
- };
1046
- ed25519Key?: undefined;
1047
- };
1048
- })[];
1049
- };
129
+ methodNames: string[];
1050
130
  };
1051
131
  };
1052
- SignedDelegate: {
1053
- struct: {
1054
- delegateAction: {
1055
- struct: {
1056
- senderId: string;
1057
- receiverId: string;
1058
- actions: {
1059
- array: {
1060
- type: {
1061
- enum: ({
1062
- struct: {
1063
- createAccount: {
1064
- struct: {};
1065
- };
1066
- deployContract?: undefined;
1067
- functionCall?: undefined;
1068
- transfer?: undefined;
1069
- stake?: undefined;
1070
- addKey?: undefined;
1071
- deleteKey?: undefined;
1072
- deleteAccount?: undefined;
1073
- };
1074
- } | {
1075
- struct: {
1076
- deployContract: {
1077
- struct: {
1078
- code: {
1079
- array: {
1080
- type: string;
1081
- };
1082
- };
1083
- };
1084
- };
1085
- createAccount?: undefined;
1086
- functionCall?: undefined;
1087
- transfer?: undefined;
1088
- stake?: undefined;
1089
- addKey?: undefined;
1090
- deleteKey?: undefined;
1091
- deleteAccount?: undefined;
1092
- };
1093
- } | {
1094
- struct: {
1095
- functionCall: {
1096
- struct: {
1097
- methodName: string;
1098
- args: {
1099
- array: {
1100
- type: string;
1101
- };
1102
- };
1103
- gas: string;
1104
- deposit: string;
1105
- };
1106
- };
1107
- createAccount?: undefined;
1108
- deployContract?: undefined;
1109
- transfer?: undefined;
1110
- stake?: undefined;
1111
- addKey?: undefined;
1112
- deleteKey?: undefined;
1113
- deleteAccount?: undefined;
1114
- };
1115
- } | {
1116
- struct: {
1117
- transfer: {
1118
- struct: {
1119
- deposit: string;
1120
- };
1121
- };
1122
- createAccount?: undefined;
1123
- deployContract?: undefined;
1124
- functionCall?: undefined;
1125
- stake?: undefined;
1126
- addKey?: undefined;
1127
- deleteKey?: undefined;
1128
- deleteAccount?: undefined;
1129
- };
1130
- } | {
1131
- struct: {
1132
- stake: {
1133
- struct: {
1134
- stake: string;
1135
- publicKey: {
1136
- enum: ({
1137
- struct: {
1138
- ed25519Key: {
1139
- struct: {
1140
- data: {
1141
- array: {
1142
- type: string;
1143
- len: number;
1144
- };
1145
- };
1146
- };
1147
- };
1148
- secp256k1Key?: undefined;
1149
- };
1150
- } | {
1151
- struct: {
1152
- secp256k1Key: {
1153
- struct: {
1154
- data: {
1155
- array: {
1156
- type: string;
1157
- len: number;
1158
- };
1159
- };
1160
- };
1161
- };
1162
- ed25519Key?: undefined;
1163
- };
1164
- })[];
1165
- };
1166
- };
1167
- };
1168
- createAccount?: undefined;
1169
- deployContract?: undefined;
1170
- functionCall?: undefined;
1171
- transfer?: undefined;
1172
- addKey?: undefined;
1173
- deleteKey?: undefined;
1174
- deleteAccount?: undefined;
1175
- };
1176
- } | {
1177
- struct: {
1178
- addKey: {
1179
- struct: {
1180
- publicKey: {
1181
- enum: ({
1182
- struct: {
1183
- ed25519Key: {
1184
- struct: {
1185
- data: {
1186
- array: {
1187
- type: string;
1188
- len: number;
1189
- };
1190
- };
1191
- };
1192
- };
1193
- secp256k1Key?: undefined;
1194
- };
1195
- } | {
1196
- struct: {
1197
- secp256k1Key: {
1198
- struct: {
1199
- data: {
1200
- array: {
1201
- type: string;
1202
- len: number;
1203
- };
1204
- };
1205
- };
1206
- };
1207
- ed25519Key?: undefined;
1208
- };
1209
- })[];
1210
- };
1211
- accessKey: {
1212
- struct: {
1213
- nonce: string;
1214
- permission: {
1215
- enum: ({
1216
- struct: {
1217
- functionCall: {
1218
- struct: {
1219
- allowance: {
1220
- option: string;
1221
- };
1222
- receiverId: string;
1223
- methodNames: {
1224
- array: {
1225
- type: string;
1226
- };
1227
- };
1228
- };
1229
- };
1230
- fullAccess?: undefined;
1231
- };
1232
- } | {
1233
- struct: {
1234
- fullAccess: {
1235
- struct: {};
1236
- };
1237
- functionCall?: undefined;
1238
- };
1239
- })[];
1240
- };
1241
- };
1242
- };
1243
- };
1244
- };
1245
- createAccount?: undefined;
1246
- deployContract?: undefined;
1247
- functionCall?: undefined;
1248
- transfer?: undefined;
1249
- stake?: undefined;
1250
- deleteKey?: undefined;
1251
- deleteAccount?: undefined;
1252
- };
1253
- } | {
1254
- struct: {
1255
- deleteKey: {
1256
- struct: {
1257
- publicKey: {
1258
- enum: ({
1259
- struct: {
1260
- ed25519Key: {
1261
- struct: {
1262
- data: {
1263
- array: {
1264
- type: string;
1265
- len: number;
1266
- };
1267
- };
1268
- };
1269
- };
1270
- secp256k1Key?: undefined;
1271
- };
1272
- } | {
1273
- struct: {
1274
- secp256k1Key: {
1275
- struct: {
1276
- data: {
1277
- array: {
1278
- type: string;
1279
- len: number;
1280
- };
1281
- };
1282
- };
1283
- };
1284
- ed25519Key?: undefined;
1285
- };
1286
- })[];
1287
- };
1288
- };
1289
- };
1290
- createAccount?: undefined;
1291
- deployContract?: undefined;
1292
- functionCall?: undefined;
1293
- transfer?: undefined;
1294
- stake?: undefined;
1295
- addKey?: undefined;
1296
- deleteAccount?: undefined;
1297
- };
1298
- } | {
1299
- struct: {
1300
- deleteAccount: {
1301
- struct: {
1302
- beneficiaryId: string;
1303
- };
1304
- };
1305
- createAccount?: undefined;
1306
- deployContract?: undefined;
1307
- functionCall?: undefined;
1308
- transfer?: undefined;
1309
- stake?: undefined;
1310
- addKey?: undefined;
1311
- deleteKey?: undefined;
1312
- };
1313
- })[];
1314
- };
1315
- };
1316
- };
1317
- nonce: string;
1318
- maxBlockHeight: string;
1319
- publicKey: {
1320
- enum: ({
1321
- struct: {
1322
- ed25519Key: {
1323
- struct: {
1324
- data: {
1325
- array: {
1326
- type: string;
1327
- len: number;
1328
- };
1329
- };
1330
- };
1331
- };
1332
- secp256k1Key?: undefined;
1333
- };
1334
- } | {
1335
- struct: {
1336
- secp256k1Key: {
1337
- struct: {
1338
- data: {
1339
- array: {
1340
- type: string;
1341
- len: number;
1342
- };
1343
- };
1344
- };
1345
- };
1346
- ed25519Key?: undefined;
1347
- };
1348
- })[];
1349
- };
1350
- };
1351
- };
1352
- signature: {
1353
- enum: ({
1354
- struct: {
1355
- ed25519Signature: {
1356
- struct: {
1357
- data: {
1358
- array: {
1359
- type: string;
1360
- len: number;
1361
- };
1362
- };
1363
- };
1364
- };
1365
- secp256k1Signature?: undefined;
1366
- };
1367
- } | {
1368
- struct: {
1369
- secp256k1Signature: {
1370
- struct: {
1371
- data: {
1372
- array: {
1373
- type: string;
1374
- len: number;
1375
- };
1376
- };
1377
- };
1378
- };
1379
- ed25519Signature?: undefined;
1380
- };
1381
- })[];
1382
- };
1383
- };
132
+ deleteKey: ({ publicKey }: {
133
+ publicKey: string;
134
+ }) => {
135
+ type: string;
136
+ publicKey: string;
1384
137
  };
1385
- Action: {
1386
- enum: ({
1387
- struct: {
1388
- createAccount: {
1389
- struct: {};
1390
- };
1391
- deployContract?: undefined;
1392
- functionCall?: undefined;
1393
- transfer?: undefined;
1394
- stake?: undefined;
1395
- addKey?: undefined;
1396
- deleteKey?: undefined;
1397
- deleteAccount?: undefined;
1398
- signedDelegate?: undefined;
1399
- };
1400
- } | {
1401
- struct: {
1402
- deployContract: {
1403
- struct: {
1404
- code: {
1405
- array: {
1406
- type: string;
1407
- };
1408
- };
1409
- };
1410
- };
1411
- createAccount?: undefined;
1412
- functionCall?: undefined;
1413
- transfer?: undefined;
1414
- stake?: undefined;
1415
- addKey?: undefined;
1416
- deleteKey?: undefined;
1417
- deleteAccount?: undefined;
1418
- signedDelegate?: undefined;
1419
- };
1420
- } | {
1421
- struct: {
1422
- functionCall: {
1423
- struct: {
1424
- methodName: string;
1425
- args: {
1426
- array: {
1427
- type: string;
1428
- };
1429
- };
1430
- gas: string;
1431
- deposit: string;
1432
- };
1433
- };
1434
- createAccount?: undefined;
1435
- deployContract?: undefined;
1436
- transfer?: undefined;
1437
- stake?: undefined;
1438
- addKey?: undefined;
1439
- deleteKey?: undefined;
1440
- deleteAccount?: undefined;
1441
- signedDelegate?: undefined;
1442
- };
1443
- } | {
1444
- struct: {
1445
- transfer: {
1446
- struct: {
1447
- deposit: string;
1448
- };
1449
- };
1450
- createAccount?: undefined;
1451
- deployContract?: undefined;
1452
- functionCall?: undefined;
1453
- stake?: undefined;
1454
- addKey?: undefined;
1455
- deleteKey?: undefined;
1456
- deleteAccount?: undefined;
1457
- signedDelegate?: undefined;
1458
- };
1459
- } | {
1460
- struct: {
1461
- stake: {
1462
- struct: {
1463
- stake: string;
1464
- publicKey: {
1465
- enum: ({
1466
- struct: {
1467
- ed25519Key: {
1468
- struct: {
1469
- data: {
1470
- array: {
1471
- type: string;
1472
- len: number;
1473
- };
1474
- };
1475
- };
1476
- };
1477
- secp256k1Key?: undefined;
1478
- };
1479
- } | {
1480
- struct: {
1481
- secp256k1Key: {
1482
- struct: {
1483
- data: {
1484
- array: {
1485
- type: string;
1486
- len: number;
1487
- };
1488
- };
1489
- };
1490
- };
1491
- ed25519Key?: undefined;
1492
- };
1493
- })[];
1494
- };
1495
- };
1496
- };
1497
- createAccount?: undefined;
1498
- deployContract?: undefined;
1499
- functionCall?: undefined;
1500
- transfer?: undefined;
1501
- addKey?: undefined;
1502
- deleteKey?: undefined;
1503
- deleteAccount?: undefined;
1504
- signedDelegate?: undefined;
1505
- };
1506
- } | {
1507
- struct: {
1508
- addKey: {
1509
- struct: {
1510
- publicKey: {
1511
- enum: ({
1512
- struct: {
1513
- ed25519Key: {
1514
- struct: {
1515
- data: {
1516
- array: {
1517
- type: string;
1518
- len: number;
1519
- };
1520
- };
1521
- };
1522
- };
1523
- secp256k1Key?: undefined;
1524
- };
1525
- } | {
1526
- struct: {
1527
- secp256k1Key: {
1528
- struct: {
1529
- data: {
1530
- array: {
1531
- type: string;
1532
- len: number;
1533
- };
1534
- };
1535
- };
1536
- };
1537
- ed25519Key?: undefined;
1538
- };
1539
- })[];
1540
- };
1541
- accessKey: {
1542
- struct: {
1543
- nonce: string;
1544
- permission: {
1545
- enum: ({
1546
- struct: {
1547
- functionCall: {
1548
- struct: {
1549
- allowance: {
1550
- option: string;
1551
- };
1552
- receiverId: string;
1553
- methodNames: {
1554
- array: {
1555
- type: string;
1556
- };
1557
- };
1558
- };
1559
- };
1560
- fullAccess?: undefined;
1561
- };
1562
- } | {
1563
- struct: {
1564
- fullAccess: {
1565
- struct: {};
1566
- };
1567
- functionCall?: undefined;
1568
- };
1569
- })[];
1570
- };
1571
- };
1572
- };
1573
- };
1574
- };
1575
- createAccount?: undefined;
1576
- deployContract?: undefined;
1577
- functionCall?: undefined;
1578
- transfer?: undefined;
1579
- stake?: undefined;
1580
- deleteKey?: undefined;
1581
- deleteAccount?: undefined;
1582
- signedDelegate?: undefined;
1583
- };
1584
- } | {
1585
- struct: {
1586
- deleteKey: {
1587
- struct: {
1588
- publicKey: {
1589
- enum: ({
1590
- struct: {
1591
- ed25519Key: {
1592
- struct: {
1593
- data: {
1594
- array: {
1595
- type: string;
1596
- len: number;
1597
- };
1598
- };
1599
- };
1600
- };
1601
- secp256k1Key?: undefined;
1602
- };
1603
- } | {
1604
- struct: {
1605
- secp256k1Key: {
1606
- struct: {
1607
- data: {
1608
- array: {
1609
- type: string;
1610
- len: number;
1611
- };
1612
- };
1613
- };
1614
- };
1615
- ed25519Key?: undefined;
1616
- };
1617
- })[];
1618
- };
1619
- };
1620
- };
1621
- createAccount?: undefined;
1622
- deployContract?: undefined;
1623
- functionCall?: undefined;
1624
- transfer?: undefined;
1625
- stake?: undefined;
1626
- addKey?: undefined;
1627
- deleteAccount?: undefined;
1628
- signedDelegate?: undefined;
1629
- };
1630
- } | {
1631
- struct: {
1632
- deleteAccount: {
1633
- struct: {
1634
- beneficiaryId: string;
1635
- };
1636
- };
1637
- createAccount?: undefined;
1638
- deployContract?: undefined;
1639
- functionCall?: undefined;
1640
- transfer?: undefined;
1641
- stake?: undefined;
1642
- addKey?: undefined;
1643
- deleteKey?: undefined;
1644
- signedDelegate?: undefined;
1645
- };
1646
- } | {
1647
- struct: {
1648
- signedDelegate: {
1649
- struct: {
1650
- delegateAction: {
1651
- struct: {
1652
- senderId: string;
1653
- receiverId: string;
1654
- actions: {
1655
- array: {
1656
- type: {
1657
- enum: ({
1658
- struct: {
1659
- createAccount: {
1660
- struct: {};
1661
- };
1662
- deployContract?: undefined;
1663
- functionCall?: undefined;
1664
- transfer?: undefined;
1665
- stake?: undefined;
1666
- addKey?: undefined;
1667
- deleteKey?: undefined;
1668
- deleteAccount?: undefined;
1669
- };
1670
- } | {
1671
- struct: {
1672
- deployContract: {
1673
- struct: {
1674
- code: {
1675
- array: {
1676
- type: string;
1677
- };
1678
- };
1679
- };
1680
- };
1681
- createAccount?: undefined;
1682
- functionCall?: undefined;
1683
- transfer?: undefined;
1684
- stake?: undefined;
1685
- addKey?: undefined;
1686
- deleteKey?: undefined;
1687
- deleteAccount?: undefined;
1688
- };
1689
- } | {
1690
- struct: {
1691
- functionCall: {
1692
- struct: {
1693
- methodName: string;
1694
- args: {
1695
- array: {
1696
- type: string;
1697
- };
1698
- };
1699
- gas: string;
1700
- deposit: string;
1701
- };
1702
- };
1703
- createAccount?: undefined;
1704
- deployContract?: undefined;
1705
- transfer?: undefined;
1706
- stake?: undefined;
1707
- addKey?: undefined;
1708
- deleteKey?: undefined;
1709
- deleteAccount?: undefined;
1710
- };
1711
- } | {
1712
- struct: {
1713
- transfer: {
1714
- struct: {
1715
- deposit: string;
1716
- };
1717
- };
1718
- createAccount?: undefined;
1719
- deployContract?: undefined;
1720
- functionCall?: undefined;
1721
- stake?: undefined;
1722
- addKey?: undefined;
1723
- deleteKey?: undefined;
1724
- deleteAccount?: undefined;
1725
- };
1726
- } | {
1727
- struct: {
1728
- stake: {
1729
- struct: {
1730
- stake: string;
1731
- publicKey: {
1732
- enum: ({
1733
- struct: {
1734
- ed25519Key: {
1735
- struct: {
1736
- data: {
1737
- array: {
1738
- type: string;
1739
- len: number;
1740
- };
1741
- };
1742
- };
1743
- };
1744
- secp256k1Key?: undefined;
1745
- };
1746
- } | {
1747
- struct: {
1748
- secp256k1Key: {
1749
- struct: {
1750
- data: {
1751
- array: {
1752
- type: string;
1753
- len: number;
1754
- };
1755
- };
1756
- };
1757
- };
1758
- ed25519Key?: undefined;
1759
- };
1760
- })[];
1761
- };
1762
- };
1763
- };
1764
- createAccount?: undefined;
1765
- deployContract?: undefined;
1766
- functionCall?: undefined;
1767
- transfer?: undefined;
1768
- addKey?: undefined;
1769
- deleteKey?: undefined;
1770
- deleteAccount?: undefined;
1771
- };
1772
- } | {
1773
- struct: {
1774
- addKey: {
1775
- struct: {
1776
- publicKey: {
1777
- enum: ({
1778
- struct: {
1779
- ed25519Key: {
1780
- struct: {
1781
- data: {
1782
- array: {
1783
- type: string;
1784
- len: number;
1785
- };
1786
- };
1787
- };
1788
- };
1789
- secp256k1Key?: undefined;
1790
- };
1791
- } | {
1792
- struct: {
1793
- secp256k1Key: {
1794
- struct: {
1795
- data: {
1796
- array: {
1797
- type: string;
1798
- len: number;
1799
- };
1800
- };
1801
- };
1802
- };
1803
- ed25519Key?: undefined;
1804
- };
1805
- })[];
1806
- };
1807
- accessKey: {
1808
- struct: {
1809
- nonce: string;
1810
- permission: {
1811
- enum: ({
1812
- struct: {
1813
- functionCall: {
1814
- struct: {
1815
- allowance: {
1816
- option: string;
1817
- };
1818
- receiverId: string;
1819
- methodNames: {
1820
- array: {
1821
- type: string;
1822
- };
1823
- };
1824
- };
1825
- };
1826
- fullAccess?: undefined;
1827
- };
1828
- } | {
1829
- struct: {
1830
- fullAccess: {
1831
- struct: {};
1832
- };
1833
- functionCall?: undefined;
1834
- };
1835
- })[];
1836
- };
1837
- };
1838
- };
1839
- };
1840
- };
1841
- createAccount?: undefined;
1842
- deployContract?: undefined;
1843
- functionCall?: undefined;
1844
- transfer?: undefined;
1845
- stake?: undefined;
1846
- deleteKey?: undefined;
1847
- deleteAccount?: undefined;
1848
- };
1849
- } | {
1850
- struct: {
1851
- deleteKey: {
1852
- struct: {
1853
- publicKey: {
1854
- enum: ({
1855
- struct: {
1856
- ed25519Key: {
1857
- struct: {
1858
- data: {
1859
- array: {
1860
- type: string;
1861
- len: number;
1862
- };
1863
- };
1864
- };
1865
- };
1866
- secp256k1Key?: undefined;
1867
- };
1868
- } | {
1869
- struct: {
1870
- secp256k1Key: {
1871
- struct: {
1872
- data: {
1873
- array: {
1874
- type: string;
1875
- len: number;
1876
- };
1877
- };
1878
- };
1879
- };
1880
- ed25519Key?: undefined;
1881
- };
1882
- })[];
1883
- };
1884
- };
1885
- };
1886
- createAccount?: undefined;
1887
- deployContract?: undefined;
1888
- functionCall?: undefined;
1889
- transfer?: undefined;
1890
- stake?: undefined;
1891
- addKey?: undefined;
1892
- deleteAccount?: undefined;
1893
- };
1894
- } | {
1895
- struct: {
1896
- deleteAccount: {
1897
- struct: {
1898
- beneficiaryId: string;
1899
- };
1900
- };
1901
- createAccount?: undefined;
1902
- deployContract?: undefined;
1903
- functionCall?: undefined;
1904
- transfer?: undefined;
1905
- stake?: undefined;
1906
- addKey?: undefined;
1907
- deleteKey?: undefined;
1908
- };
1909
- })[];
1910
- };
1911
- };
1912
- };
1913
- nonce: string;
1914
- maxBlockHeight: string;
1915
- publicKey: {
1916
- enum: ({
1917
- struct: {
1918
- ed25519Key: {
1919
- struct: {
1920
- data: {
1921
- array: {
1922
- type: string;
1923
- len: number;
1924
- };
1925
- };
1926
- };
1927
- };
1928
- secp256k1Key?: undefined;
1929
- };
1930
- } | {
1931
- struct: {
1932
- secp256k1Key: {
1933
- struct: {
1934
- data: {
1935
- array: {
1936
- type: string;
1937
- len: number;
1938
- };
1939
- };
1940
- };
1941
- };
1942
- ed25519Key?: undefined;
1943
- };
1944
- })[];
1945
- };
1946
- };
1947
- };
1948
- signature: {
1949
- enum: ({
1950
- struct: {
1951
- ed25519Signature: {
1952
- struct: {
1953
- data: {
1954
- array: {
1955
- type: string;
1956
- len: number;
1957
- };
1958
- };
1959
- };
1960
- };
1961
- secp256k1Signature?: undefined;
1962
- };
1963
- } | {
1964
- struct: {
1965
- secp256k1Signature: {
1966
- struct: {
1967
- data: {
1968
- array: {
1969
- type: string;
1970
- len: number;
1971
- };
1972
- };
1973
- };
1974
- };
1975
- ed25519Signature?: undefined;
1976
- };
1977
- })[];
1978
- };
1979
- };
1980
- };
1981
- createAccount?: undefined;
1982
- deployContract?: undefined;
1983
- functionCall?: undefined;
1984
- transfer?: undefined;
1985
- stake?: undefined;
1986
- addKey?: undefined;
1987
- deleteKey?: undefined;
1988
- deleteAccount?: undefined;
1989
- };
1990
- })[];
138
+ deleteAccount: ({ beneficiaryId }: {
139
+ beneficiaryId: string;
140
+ }) => {
141
+ type: string;
142
+ beneficiaryId: string;
1991
143
  };
1992
- Transaction: {
1993
- struct: {
1994
- signerId: string;
1995
- publicKey: {
1996
- enum: ({
1997
- struct: {
1998
- ed25519Key: {
1999
- struct: {
2000
- data: {
2001
- array: {
2002
- type: string;
2003
- len: number;
2004
- };
2005
- };
2006
- };
2007
- };
2008
- secp256k1Key?: undefined;
2009
- };
2010
- } | {
2011
- struct: {
2012
- secp256k1Key: {
2013
- struct: {
2014
- data: {
2015
- array: {
2016
- type: string;
2017
- len: number;
2018
- };
2019
- };
2020
- };
2021
- };
2022
- ed25519Key?: undefined;
2023
- };
2024
- })[];
2025
- };
2026
- nonce: string;
2027
- receiverId: string;
2028
- blockHash: {
2029
- array: {
2030
- type: string;
2031
- len: number;
2032
- };
2033
- };
2034
- actions: {
2035
- array: {
2036
- type: {
2037
- enum: ({
2038
- struct: {
2039
- createAccount: {
2040
- struct: {};
2041
- };
2042
- deployContract?: undefined;
2043
- functionCall?: undefined;
2044
- transfer?: undefined;
2045
- stake?: undefined;
2046
- addKey?: undefined;
2047
- deleteKey?: undefined;
2048
- deleteAccount?: undefined;
2049
- signedDelegate?: undefined;
2050
- };
2051
- } | {
2052
- struct: {
2053
- deployContract: {
2054
- struct: {
2055
- code: {
2056
- array: {
2057
- type: string;
2058
- };
2059
- };
2060
- };
2061
- };
2062
- createAccount?: undefined;
2063
- functionCall?: undefined;
2064
- transfer?: undefined;
2065
- stake?: undefined;
2066
- addKey?: undefined;
2067
- deleteKey?: undefined;
2068
- deleteAccount?: undefined;
2069
- signedDelegate?: undefined;
2070
- };
2071
- } | {
2072
- struct: {
2073
- functionCall: {
2074
- struct: {
2075
- methodName: string;
2076
- args: {
2077
- array: {
2078
- type: string;
2079
- };
2080
- };
2081
- gas: string;
2082
- deposit: string;
2083
- };
2084
- };
2085
- createAccount?: undefined;
2086
- deployContract?: undefined;
2087
- transfer?: undefined;
2088
- stake?: undefined;
2089
- addKey?: undefined;
2090
- deleteKey?: undefined;
2091
- deleteAccount?: undefined;
2092
- signedDelegate?: undefined;
2093
- };
2094
- } | {
2095
- struct: {
2096
- transfer: {
2097
- struct: {
2098
- deposit: string;
2099
- };
2100
- };
2101
- createAccount?: undefined;
2102
- deployContract?: undefined;
2103
- functionCall?: undefined;
2104
- stake?: undefined;
2105
- addKey?: undefined;
2106
- deleteKey?: undefined;
2107
- deleteAccount?: undefined;
2108
- signedDelegate?: undefined;
2109
- };
2110
- } | {
2111
- struct: {
2112
- stake: {
2113
- struct: {
2114
- stake: string;
2115
- publicKey: {
2116
- enum: ({
2117
- struct: {
2118
- ed25519Key: {
2119
- struct: {
2120
- data: {
2121
- array: {
2122
- type: string;
2123
- len: number;
2124
- };
2125
- };
2126
- };
2127
- };
2128
- secp256k1Key?: undefined;
2129
- };
2130
- } | {
2131
- struct: {
2132
- secp256k1Key: {
2133
- struct: {
2134
- data: {
2135
- array: {
2136
- type: string;
2137
- len: number;
2138
- };
2139
- };
2140
- };
2141
- };
2142
- ed25519Key?: undefined;
2143
- };
2144
- })[];
2145
- };
2146
- };
2147
- };
2148
- createAccount?: undefined;
2149
- deployContract?: undefined;
2150
- functionCall?: undefined;
2151
- transfer?: undefined;
2152
- addKey?: undefined;
2153
- deleteKey?: undefined;
2154
- deleteAccount?: undefined;
2155
- signedDelegate?: undefined;
2156
- };
2157
- } | {
2158
- struct: {
2159
- addKey: {
2160
- struct: {
2161
- publicKey: {
2162
- enum: ({
2163
- struct: {
2164
- ed25519Key: {
2165
- struct: {
2166
- data: {
2167
- array: {
2168
- type: string;
2169
- len: number;
2170
- };
2171
- };
2172
- };
2173
- };
2174
- secp256k1Key?: undefined;
2175
- };
2176
- } | {
2177
- struct: {
2178
- secp256k1Key: {
2179
- struct: {
2180
- data: {
2181
- array: {
2182
- type: string;
2183
- len: number;
2184
- };
2185
- };
2186
- };
2187
- };
2188
- ed25519Key?: undefined;
2189
- };
2190
- })[];
2191
- };
2192
- accessKey: {
2193
- struct: {
2194
- nonce: string;
2195
- permission: {
2196
- enum: ({
2197
- struct: {
2198
- functionCall: {
2199
- struct: {
2200
- allowance: {
2201
- option: string;
2202
- };
2203
- receiverId: string;
2204
- methodNames: {
2205
- array: {
2206
- type: string;
2207
- };
2208
- };
2209
- };
2210
- };
2211
- fullAccess?: undefined;
2212
- };
2213
- } | {
2214
- struct: {
2215
- fullAccess: {
2216
- struct: {};
2217
- };
2218
- functionCall?: undefined;
2219
- };
2220
- })[];
2221
- };
2222
- };
2223
- };
2224
- };
2225
- };
2226
- createAccount?: undefined;
2227
- deployContract?: undefined;
2228
- functionCall?: undefined;
2229
- transfer?: undefined;
2230
- stake?: undefined;
2231
- deleteKey?: undefined;
2232
- deleteAccount?: undefined;
2233
- signedDelegate?: undefined;
2234
- };
2235
- } | {
2236
- struct: {
2237
- deleteKey: {
2238
- struct: {
2239
- publicKey: {
2240
- enum: ({
2241
- struct: {
2242
- ed25519Key: {
2243
- struct: {
2244
- data: {
2245
- array: {
2246
- type: string;
2247
- len: number;
2248
- };
2249
- };
2250
- };
2251
- };
2252
- secp256k1Key?: undefined;
2253
- };
2254
- } | {
2255
- struct: {
2256
- secp256k1Key: {
2257
- struct: {
2258
- data: {
2259
- array: {
2260
- type: string;
2261
- len: number;
2262
- };
2263
- };
2264
- };
2265
- };
2266
- ed25519Key?: undefined;
2267
- };
2268
- })[];
2269
- };
2270
- };
2271
- };
2272
- createAccount?: undefined;
2273
- deployContract?: undefined;
2274
- functionCall?: undefined;
2275
- transfer?: undefined;
2276
- stake?: undefined;
2277
- addKey?: undefined;
2278
- deleteAccount?: undefined;
2279
- signedDelegate?: undefined;
2280
- };
2281
- } | {
2282
- struct: {
2283
- deleteAccount: {
2284
- struct: {
2285
- beneficiaryId: string;
2286
- };
2287
- };
2288
- createAccount?: undefined;
2289
- deployContract?: undefined;
2290
- functionCall?: undefined;
2291
- transfer?: undefined;
2292
- stake?: undefined;
2293
- addKey?: undefined;
2294
- deleteKey?: undefined;
2295
- signedDelegate?: undefined;
2296
- };
2297
- } | {
2298
- struct: {
2299
- signedDelegate: {
2300
- struct: {
2301
- delegateAction: {
2302
- struct: {
2303
- senderId: string;
2304
- receiverId: string;
2305
- actions: {
2306
- array: {
2307
- type: {
2308
- enum: ({
2309
- struct: {
2310
- createAccount: {
2311
- struct: {};
2312
- };
2313
- deployContract?: undefined;
2314
- functionCall?: undefined;
2315
- transfer?: undefined;
2316
- stake?: undefined;
2317
- addKey?: undefined;
2318
- deleteKey?: undefined;
2319
- deleteAccount?: undefined;
2320
- };
2321
- } | {
2322
- struct: {
2323
- deployContract: {
2324
- struct: {
2325
- code: {
2326
- array: {
2327
- type: string;
2328
- };
2329
- };
2330
- };
2331
- };
2332
- createAccount?: undefined;
2333
- functionCall?: undefined;
2334
- transfer?: undefined;
2335
- stake?: undefined;
2336
- addKey?: undefined;
2337
- deleteKey?: undefined;
2338
- deleteAccount?: undefined;
2339
- };
2340
- } | {
2341
- struct: {
2342
- functionCall: {
2343
- struct: {
2344
- methodName: string;
2345
- args: {
2346
- array: {
2347
- type: string;
2348
- };
2349
- };
2350
- gas: string;
2351
- deposit: string;
2352
- };
2353
- };
2354
- createAccount?: undefined;
2355
- deployContract?: undefined;
2356
- transfer?: undefined;
2357
- stake?: undefined;
2358
- addKey?: undefined;
2359
- deleteKey?: undefined;
2360
- deleteAccount?: undefined;
2361
- };
2362
- } | {
2363
- struct: {
2364
- transfer: {
2365
- struct: {
2366
- deposit: string;
2367
- };
2368
- };
2369
- createAccount?: undefined;
2370
- deployContract?: undefined;
2371
- functionCall?: undefined;
2372
- stake?: undefined;
2373
- addKey?: undefined;
2374
- deleteKey?: undefined;
2375
- deleteAccount?: undefined;
2376
- };
2377
- } | {
2378
- struct: {
2379
- stake: {
2380
- struct: {
2381
- stake: string;
2382
- publicKey: {
2383
- enum: ({
2384
- struct: {
2385
- ed25519Key: {
2386
- struct: {
2387
- data: {
2388
- array: {
2389
- type: string;
2390
- len: number;
2391
- };
2392
- };
2393
- };
2394
- };
2395
- secp256k1Key?: undefined;
2396
- };
2397
- } | {
2398
- struct: {
2399
- secp256k1Key: {
2400
- struct: {
2401
- data: {
2402
- array: {
2403
- type: string;
2404
- len: number;
2405
- };
2406
- };
2407
- };
2408
- };
2409
- ed25519Key?: undefined;
2410
- };
2411
- })[];
2412
- };
2413
- };
2414
- };
2415
- createAccount?: undefined;
2416
- deployContract?: undefined;
2417
- functionCall?: undefined;
2418
- transfer?: undefined;
2419
- addKey?: undefined;
2420
- deleteKey?: undefined;
2421
- deleteAccount?: undefined;
2422
- };
2423
- } | {
2424
- struct: {
2425
- addKey: {
2426
- struct: {
2427
- publicKey: {
2428
- enum: ({
2429
- struct: {
2430
- ed25519Key: {
2431
- struct: {
2432
- data: {
2433
- array: {
2434
- type: string;
2435
- len: number;
2436
- };
2437
- };
2438
- };
2439
- };
2440
- secp256k1Key?: undefined;
2441
- };
2442
- } | {
2443
- struct: {
2444
- secp256k1Key: {
2445
- struct: {
2446
- data: {
2447
- array: {
2448
- type: string;
2449
- len: number;
2450
- };
2451
- };
2452
- };
2453
- };
2454
- ed25519Key?: undefined;
2455
- };
2456
- })[];
2457
- };
2458
- accessKey: {
2459
- struct: {
2460
- nonce: string;
2461
- permission: {
2462
- enum: ({
2463
- struct: {
2464
- functionCall: {
2465
- struct: {
2466
- allowance: {
2467
- option: string;
2468
- };
2469
- receiverId: string;
2470
- methodNames: {
2471
- array: {
2472
- type: string;
2473
- };
2474
- };
2475
- };
2476
- };
2477
- fullAccess?: undefined;
2478
- };
2479
- } | {
2480
- struct: {
2481
- fullAccess: {
2482
- struct: {};
2483
- };
2484
- functionCall?: undefined;
2485
- };
2486
- })[];
2487
- };
2488
- };
2489
- };
2490
- };
2491
- };
2492
- createAccount?: undefined;
2493
- deployContract?: undefined;
2494
- functionCall?: undefined;
2495
- transfer?: undefined;
2496
- stake?: undefined;
2497
- deleteKey?: undefined;
2498
- deleteAccount?: undefined;
2499
- };
2500
- } | {
2501
- struct: {
2502
- deleteKey: {
2503
- struct: {
2504
- publicKey: {
2505
- enum: ({
2506
- struct: {
2507
- ed25519Key: {
2508
- struct: {
2509
- data: {
2510
- array: {
2511
- type: string;
2512
- len: number;
2513
- };
2514
- };
2515
- };
2516
- };
2517
- secp256k1Key?: undefined;
2518
- };
2519
- } | {
2520
- struct: {
2521
- secp256k1Key: {
2522
- struct: {
2523
- data: {
2524
- array: {
2525
- type: string;
2526
- len: number;
2527
- };
2528
- };
2529
- };
2530
- };
2531
- ed25519Key?: undefined;
2532
- };
2533
- })[];
2534
- };
2535
- };
2536
- };
2537
- createAccount?: undefined;
2538
- deployContract?: undefined;
2539
- functionCall?: undefined;
2540
- transfer?: undefined;
2541
- stake?: undefined;
2542
- addKey?: undefined;
2543
- deleteAccount?: undefined;
2544
- };
2545
- } | {
2546
- struct: {
2547
- deleteAccount: {
2548
- struct: {
2549
- beneficiaryId: string;
2550
- };
2551
- };
2552
- createAccount?: undefined;
2553
- deployContract?: undefined;
2554
- functionCall?: undefined;
2555
- transfer?: undefined;
2556
- stake?: undefined;
2557
- addKey?: undefined;
2558
- deleteKey?: undefined;
2559
- };
2560
- })[];
2561
- };
2562
- };
2563
- };
2564
- nonce: string;
2565
- maxBlockHeight: string;
2566
- publicKey: {
2567
- enum: ({
2568
- struct: {
2569
- ed25519Key: {
2570
- struct: {
2571
- data: {
2572
- array: {
2573
- type: string;
2574
- len: number;
2575
- };
2576
- };
2577
- };
2578
- };
2579
- secp256k1Key?: undefined;
2580
- };
2581
- } | {
2582
- struct: {
2583
- secp256k1Key: {
2584
- struct: {
2585
- data: {
2586
- array: {
2587
- type: string;
2588
- len: number;
2589
- };
2590
- };
2591
- };
2592
- };
2593
- ed25519Key?: undefined;
2594
- };
2595
- })[];
2596
- };
2597
- };
2598
- };
2599
- signature: {
2600
- enum: ({
2601
- struct: {
2602
- ed25519Signature: {
2603
- struct: {
2604
- data: {
2605
- array: {
2606
- type: string;
2607
- len: number;
2608
- };
2609
- };
2610
- };
2611
- };
2612
- secp256k1Signature?: undefined;
2613
- };
2614
- } | {
2615
- struct: {
2616
- secp256k1Signature: {
2617
- struct: {
2618
- data: {
2619
- array: {
2620
- type: string;
2621
- len: number;
2622
- };
2623
- };
2624
- };
2625
- };
2626
- ed25519Signature?: undefined;
2627
- };
2628
- })[];
2629
- };
2630
- };
2631
- };
2632
- createAccount?: undefined;
2633
- deployContract?: undefined;
2634
- functionCall?: undefined;
2635
- transfer?: undefined;
2636
- stake?: undefined;
2637
- addKey?: undefined;
2638
- deleteKey?: undefined;
2639
- deleteAccount?: undefined;
2640
- };
2641
- })[];
2642
- };
2643
- };
2644
- };
2645
- };
144
+ createAccount: () => {
145
+ type: string;
2646
146
  };
2647
- SignedTransaction: {
2648
- struct: {
2649
- transaction: {
2650
- struct: {
2651
- signerId: string;
2652
- publicKey: {
2653
- enum: ({
2654
- struct: {
2655
- ed25519Key: {
2656
- struct: {
2657
- data: {
2658
- array: {
2659
- type: string;
2660
- len: number;
2661
- };
2662
- };
2663
- };
2664
- };
2665
- secp256k1Key?: undefined;
2666
- };
2667
- } | {
2668
- struct: {
2669
- secp256k1Key: {
2670
- struct: {
2671
- data: {
2672
- array: {
2673
- type: string;
2674
- len: number;
2675
- };
2676
- };
2677
- };
2678
- };
2679
- ed25519Key?: undefined;
2680
- };
2681
- })[];
2682
- };
2683
- nonce: string;
2684
- receiverId: string;
2685
- blockHash: {
2686
- array: {
2687
- type: string;
2688
- len: number;
2689
- };
2690
- };
2691
- actions: {
2692
- array: {
2693
- type: {
2694
- enum: ({
2695
- struct: {
2696
- createAccount: {
2697
- struct: {};
2698
- };
2699
- deployContract?: undefined;
2700
- functionCall?: undefined;
2701
- transfer?: undefined;
2702
- stake?: undefined;
2703
- addKey?: undefined;
2704
- deleteKey?: undefined;
2705
- deleteAccount?: undefined;
2706
- signedDelegate?: undefined;
2707
- };
2708
- } | {
2709
- struct: {
2710
- deployContract: {
2711
- struct: {
2712
- code: {
2713
- array: {
2714
- type: string;
2715
- };
2716
- };
2717
- };
2718
- };
2719
- createAccount?: undefined;
2720
- functionCall?: undefined;
2721
- transfer?: undefined;
2722
- stake?: undefined;
2723
- addKey?: undefined;
2724
- deleteKey?: undefined;
2725
- deleteAccount?: undefined;
2726
- signedDelegate?: undefined;
2727
- };
2728
- } | {
2729
- struct: {
2730
- functionCall: {
2731
- struct: {
2732
- methodName: string;
2733
- args: {
2734
- array: {
2735
- type: string;
2736
- };
2737
- };
2738
- gas: string;
2739
- deposit: string;
2740
- };
2741
- };
2742
- createAccount?: undefined;
2743
- deployContract?: undefined;
2744
- transfer?: undefined;
2745
- stake?: undefined;
2746
- addKey?: undefined;
2747
- deleteKey?: undefined;
2748
- deleteAccount?: undefined;
2749
- signedDelegate?: undefined;
2750
- };
2751
- } | {
2752
- struct: {
2753
- transfer: {
2754
- struct: {
2755
- deposit: string;
2756
- };
2757
- };
2758
- createAccount?: undefined;
2759
- deployContract?: undefined;
2760
- functionCall?: undefined;
2761
- stake?: undefined;
2762
- addKey?: undefined;
2763
- deleteKey?: undefined;
2764
- deleteAccount?: undefined;
2765
- signedDelegate?: undefined;
2766
- };
2767
- } | {
2768
- struct: {
2769
- stake: {
2770
- struct: {
2771
- stake: string;
2772
- publicKey: {
2773
- enum: ({
2774
- struct: {
2775
- ed25519Key: {
2776
- struct: {
2777
- data: {
2778
- array: {
2779
- type: string;
2780
- len: number;
2781
- };
2782
- };
2783
- };
2784
- };
2785
- secp256k1Key?: undefined;
2786
- };
2787
- } | {
2788
- struct: {
2789
- secp256k1Key: {
2790
- struct: {
2791
- data: {
2792
- array: {
2793
- type: string;
2794
- len: number;
2795
- };
2796
- };
2797
- };
2798
- };
2799
- ed25519Key?: undefined;
2800
- };
2801
- })[];
2802
- };
2803
- };
2804
- };
2805
- createAccount?: undefined;
2806
- deployContract?: undefined;
2807
- functionCall?: undefined;
2808
- transfer?: undefined;
2809
- addKey?: undefined;
2810
- deleteKey?: undefined;
2811
- deleteAccount?: undefined;
2812
- signedDelegate?: undefined;
2813
- };
2814
- } | {
2815
- struct: {
2816
- addKey: {
2817
- struct: {
2818
- publicKey: {
2819
- enum: ({
2820
- struct: {
2821
- ed25519Key: {
2822
- struct: {
2823
- data: {
2824
- array: {
2825
- type: string;
2826
- len: number;
2827
- };
2828
- };
2829
- };
2830
- };
2831
- secp256k1Key?: undefined;
2832
- };
2833
- } | {
2834
- struct: {
2835
- secp256k1Key: {
2836
- struct: {
2837
- data: {
2838
- array: {
2839
- type: string;
2840
- len: number;
2841
- };
2842
- };
2843
- };
2844
- };
2845
- ed25519Key?: undefined;
2846
- };
2847
- })[];
2848
- };
2849
- accessKey: {
2850
- struct: {
2851
- nonce: string;
2852
- permission: {
2853
- enum: ({
2854
- struct: {
2855
- functionCall: {
2856
- struct: {
2857
- allowance: {
2858
- option: string;
2859
- };
2860
- receiverId: string;
2861
- methodNames: {
2862
- array: {
2863
- type: string;
2864
- };
2865
- };
2866
- };
2867
- };
2868
- fullAccess?: undefined;
2869
- };
2870
- } | {
2871
- struct: {
2872
- fullAccess: {
2873
- struct: {};
2874
- };
2875
- functionCall?: undefined;
2876
- };
2877
- })[];
2878
- };
2879
- };
2880
- };
2881
- };
2882
- };
2883
- createAccount?: undefined;
2884
- deployContract?: undefined;
2885
- functionCall?: undefined;
2886
- transfer?: undefined;
2887
- stake?: undefined;
2888
- deleteKey?: undefined;
2889
- deleteAccount?: undefined;
2890
- signedDelegate?: undefined;
2891
- };
2892
- } | {
2893
- struct: {
2894
- deleteKey: {
2895
- struct: {
2896
- publicKey: {
2897
- enum: ({
2898
- struct: {
2899
- ed25519Key: {
2900
- struct: {
2901
- data: {
2902
- array: {
2903
- type: string;
2904
- len: number;
2905
- };
2906
- };
2907
- };
2908
- };
2909
- secp256k1Key?: undefined;
2910
- };
2911
- } | {
2912
- struct: {
2913
- secp256k1Key: {
2914
- struct: {
2915
- data: {
2916
- array: {
2917
- type: string;
2918
- len: number;
2919
- };
2920
- };
2921
- };
2922
- };
2923
- ed25519Key?: undefined;
2924
- };
2925
- })[];
2926
- };
2927
- };
2928
- };
2929
- createAccount?: undefined;
2930
- deployContract?: undefined;
2931
- functionCall?: undefined;
2932
- transfer?: undefined;
2933
- stake?: undefined;
2934
- addKey?: undefined;
2935
- deleteAccount?: undefined;
2936
- signedDelegate?: undefined;
2937
- };
2938
- } | {
2939
- struct: {
2940
- deleteAccount: {
2941
- struct: {
2942
- beneficiaryId: string;
2943
- };
2944
- };
2945
- createAccount?: undefined;
2946
- deployContract?: undefined;
2947
- functionCall?: undefined;
2948
- transfer?: undefined;
2949
- stake?: undefined;
2950
- addKey?: undefined;
2951
- deleteKey?: undefined;
2952
- signedDelegate?: undefined;
2953
- };
2954
- } | {
2955
- struct: {
2956
- signedDelegate: {
2957
- struct: {
2958
- delegateAction: {
2959
- struct: {
2960
- senderId: string;
2961
- receiverId: string;
2962
- actions: {
2963
- array: {
2964
- type: {
2965
- enum: ({
2966
- struct: {
2967
- createAccount: {
2968
- struct: {};
2969
- };
2970
- deployContract?: undefined;
2971
- functionCall?: undefined;
2972
- transfer?: undefined;
2973
- stake?: undefined;
2974
- addKey?: undefined;
2975
- deleteKey?: undefined;
2976
- deleteAccount?: undefined;
2977
- };
2978
- } | {
2979
- struct: {
2980
- deployContract: {
2981
- struct: {
2982
- code: {
2983
- array: {
2984
- type: string;
2985
- };
2986
- };
2987
- };
2988
- };
2989
- createAccount?: undefined;
2990
- functionCall?: undefined;
2991
- transfer?: undefined;
2992
- stake?: undefined;
2993
- addKey?: undefined;
2994
- deleteKey?: undefined;
2995
- deleteAccount?: undefined;
2996
- };
2997
- } | {
2998
- struct: {
2999
- functionCall: {
3000
- struct: {
3001
- methodName: string;
3002
- args: {
3003
- array: {
3004
- type: string;
3005
- };
3006
- };
3007
- gas: string;
3008
- deposit: string;
3009
- };
3010
- };
3011
- createAccount?: undefined;
3012
- deployContract?: undefined;
3013
- transfer?: undefined;
3014
- stake?: undefined;
3015
- addKey?: undefined;
3016
- deleteKey?: undefined;
3017
- deleteAccount?: undefined;
3018
- };
3019
- } | {
3020
- struct: {
3021
- transfer: {
3022
- struct: {
3023
- deposit: string;
3024
- };
3025
- };
3026
- createAccount?: undefined;
3027
- deployContract?: undefined;
3028
- functionCall?: undefined;
3029
- stake?: undefined;
3030
- addKey?: undefined;
3031
- deleteKey?: undefined;
3032
- deleteAccount?: undefined;
3033
- };
3034
- } | {
3035
- struct: {
3036
- stake: {
3037
- struct: {
3038
- stake: string;
3039
- publicKey: {
3040
- enum: ({
3041
- struct: {
3042
- ed25519Key: {
3043
- struct: {
3044
- data: {
3045
- array: {
3046
- type: string;
3047
- len: number;
3048
- };
3049
- };
3050
- };
3051
- };
3052
- secp256k1Key?: undefined;
3053
- };
3054
- } | {
3055
- struct: {
3056
- secp256k1Key: {
3057
- struct: {
3058
- data: {
3059
- array: {
3060
- type: string;
3061
- len: number;
3062
- };
3063
- };
3064
- };
3065
- };
3066
- ed25519Key?: undefined;
3067
- };
3068
- })[];
3069
- };
3070
- };
3071
- };
3072
- createAccount?: undefined;
3073
- deployContract?: undefined;
3074
- functionCall?: undefined;
3075
- transfer?: undefined;
3076
- addKey?: undefined;
3077
- deleteKey?: undefined;
3078
- deleteAccount?: undefined;
3079
- };
3080
- } | {
3081
- struct: {
3082
- addKey: {
3083
- struct: {
3084
- publicKey: {
3085
- enum: ({
3086
- struct: {
3087
- ed25519Key: {
3088
- struct: {
3089
- data: {
3090
- array: {
3091
- type: string;
3092
- len: number;
3093
- };
3094
- };
3095
- };
3096
- };
3097
- secp256k1Key?: undefined;
3098
- };
3099
- } | {
3100
- struct: {
3101
- secp256k1Key: {
3102
- struct: {
3103
- data: {
3104
- array: {
3105
- type: string;
3106
- len: number;
3107
- };
3108
- };
3109
- };
3110
- };
3111
- ed25519Key?: undefined;
3112
- };
3113
- })[];
3114
- };
3115
- accessKey: {
3116
- struct: {
3117
- nonce: string;
3118
- permission: {
3119
- enum: ({
3120
- struct: {
3121
- functionCall: {
3122
- struct: {
3123
- allowance: {
3124
- option: string;
3125
- };
3126
- receiverId: string;
3127
- methodNames: {
3128
- array: {
3129
- type: string;
3130
- };
3131
- };
3132
- };
3133
- };
3134
- fullAccess?: undefined;
3135
- };
3136
- } | {
3137
- struct: {
3138
- fullAccess: {
3139
- struct: {};
3140
- };
3141
- functionCall?: undefined;
3142
- };
3143
- })[];
3144
- };
3145
- };
3146
- };
3147
- };
3148
- };
3149
- createAccount?: undefined;
3150
- deployContract?: undefined;
3151
- functionCall?: undefined;
3152
- transfer?: undefined;
3153
- stake?: undefined;
3154
- deleteKey?: undefined;
3155
- deleteAccount?: undefined;
3156
- };
3157
- } | {
3158
- struct: {
3159
- deleteKey: {
3160
- struct: {
3161
- publicKey: {
3162
- enum: ({
3163
- struct: {
3164
- ed25519Key: {
3165
- struct: {
3166
- data: {
3167
- array: {
3168
- type: string;
3169
- len: number;
3170
- };
3171
- };
3172
- };
3173
- };
3174
- secp256k1Key?: undefined;
3175
- };
3176
- } | {
3177
- struct: {
3178
- secp256k1Key: {
3179
- struct: {
3180
- data: {
3181
- array: {
3182
- type: string;
3183
- len: number;
3184
- };
3185
- };
3186
- };
3187
- };
3188
- ed25519Key?: undefined;
3189
- };
3190
- })[];
3191
- };
3192
- };
3193
- };
3194
- createAccount?: undefined;
3195
- deployContract?: undefined;
3196
- functionCall?: undefined;
3197
- transfer?: undefined;
3198
- stake?: undefined;
3199
- addKey?: undefined;
3200
- deleteAccount?: undefined;
3201
- };
3202
- } | {
3203
- struct: {
3204
- deleteAccount: {
3205
- struct: {
3206
- beneficiaryId: string;
3207
- };
3208
- };
3209
- createAccount?: undefined;
3210
- deployContract?: undefined;
3211
- functionCall?: undefined;
3212
- transfer?: undefined;
3213
- stake?: undefined;
3214
- addKey?: undefined;
3215
- deleteKey?: undefined;
3216
- };
3217
- })[];
3218
- };
3219
- };
3220
- };
3221
- nonce: string;
3222
- maxBlockHeight: string;
3223
- publicKey: {
3224
- enum: ({
3225
- struct: {
3226
- ed25519Key: {
3227
- struct: {
3228
- data: {
3229
- array: {
3230
- type: string;
3231
- len: number;
3232
- };
3233
- };
3234
- };
3235
- };
3236
- secp256k1Key?: undefined;
3237
- };
3238
- } | {
3239
- struct: {
3240
- secp256k1Key: {
3241
- struct: {
3242
- data: {
3243
- array: {
3244
- type: string;
3245
- len: number;
3246
- };
3247
- };
3248
- };
3249
- };
3250
- ed25519Key?: undefined;
3251
- };
3252
- })[];
3253
- };
3254
- };
3255
- };
3256
- signature: {
3257
- enum: ({
3258
- struct: {
3259
- ed25519Signature: {
3260
- struct: {
3261
- data: {
3262
- array: {
3263
- type: string;
3264
- len: number;
3265
- };
3266
- };
3267
- };
3268
- };
3269
- secp256k1Signature?: undefined;
3270
- };
3271
- } | {
3272
- struct: {
3273
- secp256k1Signature: {
3274
- struct: {
3275
- data: {
3276
- array: {
3277
- type: string;
3278
- len: number;
3279
- };
3280
- };
3281
- };
3282
- };
3283
- ed25519Signature?: undefined;
3284
- };
3285
- })[];
3286
- };
3287
- };
3288
- };
3289
- createAccount?: undefined;
3290
- deployContract?: undefined;
3291
- functionCall?: undefined;
3292
- transfer?: undefined;
3293
- stake?: undefined;
3294
- addKey?: undefined;
3295
- deleteKey?: undefined;
3296
- deleteAccount?: undefined;
3297
- };
3298
- })[];
3299
- };
3300
- };
3301
- };
3302
- };
3303
- };
3304
- signature: {
3305
- enum: ({
3306
- struct: {
3307
- ed25519Signature: {
3308
- struct: {
3309
- data: {
3310
- array: {
3311
- type: string;
3312
- len: number;
3313
- };
3314
- };
3315
- };
3316
- };
3317
- secp256k1Signature?: undefined;
3318
- };
3319
- } | {
3320
- struct: {
3321
- secp256k1Signature: {
3322
- struct: {
3323
- data: {
3324
- array: {
3325
- type: string;
3326
- len: number;
3327
- };
3328
- };
3329
- };
3330
- };
3331
- ed25519Signature?: undefined;
3332
- };
3333
- })[];
3334
- };
3335
- };
147
+ deployContract: ({ codeBase64 }: {
148
+ codeBase64: string;
149
+ }) => {
150
+ type: string;
151
+ codeBase64: string;
3336
152
  };
3337
153
  };
154
+ declare const reExports: {
155
+ utils: typeof reExportUtils;
156
+ borshSchema: typeof reExportBorshSchema;
157
+ };
158
+ declare const utils: typeof reExportUtils;
3338
159
 
3339
- export { SCHEMA, api, canSignWithLAK, convertUnit, deepCopy, fromBase64, keyFromString, keyToString, lsGet, lsSet, mapAction, api as near, parseJsonFromBytes, privateKeyFromRandom, publicKeyFromPrivate, serializeSignedTransaction, serializeTransaction, signBytes, signHash, toBase64, tryParseJson };
160
+ export { type AccessKeyView, DEFAULT_NETWORK_ID, MaxBlockDelayMs, NETWORKS, WIDGET_URL, accessKey, account, accountId, actions, afterTxSent, authStatus, block, config, localTxHistory, publicKey, queryRpc, reExports, requestSignIn, sendTx, sendTxToRpc, signOut, tx, utils, view, withBlockId };