@ardrive/turbo-sdk 1.42.0 → 1.43.0-alpha.2
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.
- package/lib/cjs/cli/cli.js +97 -0
- package/lib/cjs/cli/commands/arns.js +475 -0
- package/lib/cjs/cli/commands/freeStatus.js +47 -0
- package/lib/cjs/cli/commands/index.js +3 -0
- package/lib/cjs/cli/commands/paymentHistory.js +25 -0
- package/lib/cjs/cli/options.js +202 -1
- package/lib/cjs/common/arnsActions.js +125 -0
- package/lib/cjs/common/chunked.js +51 -1
- package/lib/cjs/common/folderIndex.js +401 -0
- package/lib/cjs/common/http.js +40 -6
- package/lib/cjs/common/index.js +7 -0
- package/lib/cjs/common/payment.js +548 -2
- package/lib/cjs/common/signer.js +27 -6
- package/lib/cjs/common/token/index.js +0 -11
- package/lib/cjs/common/turbo.js +162 -0
- package/lib/cjs/common/upload.js +314 -31
- package/lib/cjs/node/folderIndex.js +132 -0
- package/lib/cjs/node/index.js +1 -0
- package/lib/cjs/node/upload.js +7 -0
- package/lib/cjs/types.js +53 -3
- package/lib/cjs/utils/common.js +0 -4
- package/lib/cjs/utils/errors.js +38 -1
- package/lib/cjs/utils/folderIndex.js +88 -0
- package/lib/cjs/utils/uuid.js +31 -0
- package/lib/cjs/web/signer.js +4 -2
- package/lib/esm/cli/cli.js +99 -2
- package/lib/esm/cli/commands/arns.js +450 -0
- package/lib/esm/cli/commands/freeStatus.js +44 -0
- package/lib/esm/cli/commands/index.js +3 -0
- package/lib/esm/cli/commands/paymentHistory.js +22 -0
- package/lib/esm/cli/options.js +201 -0
- package/lib/esm/common/arnsActions.js +114 -0
- package/lib/esm/common/chunked.js +51 -1
- package/lib/esm/common/folderIndex.js +396 -0
- package/lib/esm/common/http.js +39 -5
- package/lib/esm/common/index.js +7 -0
- package/lib/esm/common/payment.js +548 -2
- package/lib/esm/common/signer.js +28 -7
- package/lib/esm/common/token/index.js +1 -12
- package/lib/esm/common/turbo.js +162 -0
- package/lib/esm/common/upload.js +316 -33
- package/lib/esm/node/folderIndex.js +129 -0
- package/lib/esm/node/index.js +1 -0
- package/lib/esm/node/upload.js +7 -0
- package/lib/esm/types.js +52 -2
- package/lib/esm/utils/common.js +0 -4
- package/lib/esm/utils/errors.js +35 -0
- package/lib/esm/utils/folderIndex.js +81 -0
- package/lib/esm/utils/uuid.js +28 -0
- package/lib/esm/web/signer.js +4 -2
- package/lib/types/cli/commands/arns.d.ts +147 -0
- package/lib/types/cli/commands/arns.d.ts.map +1 -0
- package/lib/types/cli/commands/freeStatus.d.ts +3 -0
- package/lib/types/cli/commands/freeStatus.d.ts.map +1 -0
- package/lib/types/cli/commands/index.d.ts +3 -0
- package/lib/types/cli/commands/index.d.ts.map +1 -1
- package/lib/types/cli/commands/paymentHistory.d.ts +18 -0
- package/lib/types/cli/commands/paymentHistory.d.ts.map +1 -0
- package/lib/types/cli/options.d.ts +423 -0
- package/lib/types/cli/options.d.ts.map +1 -1
- package/lib/types/cli/types.d.ts +78 -0
- package/lib/types/cli/types.d.ts.map +1 -1
- package/lib/types/common/arnsActions.d.ts +58 -0
- package/lib/types/common/arnsActions.d.ts.map +1 -0
- package/lib/types/common/chunked.d.ts +47 -2
- package/lib/types/common/chunked.d.ts.map +1 -1
- package/lib/types/common/folderIndex.d.ts +54 -0
- package/lib/types/common/folderIndex.d.ts.map +1 -0
- package/lib/types/common/http.d.ts +25 -2
- package/lib/types/common/http.d.ts.map +1 -1
- package/lib/types/common/index.d.ts +3 -0
- package/lib/types/common/index.d.ts.map +1 -1
- package/lib/types/common/payment.d.ts +291 -1
- package/lib/types/common/payment.d.ts.map +1 -1
- package/lib/types/common/signer.d.ts +12 -6
- package/lib/types/common/signer.d.ts.map +1 -1
- package/lib/types/common/token/index.d.ts.map +1 -1
- package/lib/types/common/turbo.d.ts +183 -1
- package/lib/types/common/turbo.d.ts.map +1 -1
- package/lib/types/common/upload.d.ts +41 -0
- package/lib/types/common/upload.d.ts.map +1 -1
- package/lib/types/node/folderIndex.d.ts +28 -0
- package/lib/types/node/folderIndex.d.ts.map +1 -0
- package/lib/types/node/index.d.ts +1 -0
- package/lib/types/node/index.d.ts.map +1 -1
- package/lib/types/node/upload.d.ts +1 -0
- package/lib/types/node/upload.d.ts.map +1 -1
- package/lib/types/types.d.ts +694 -3
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/utils/common.d.ts.map +1 -1
- package/lib/types/utils/errors.d.ts +29 -0
- package/lib/types/utils/errors.d.ts.map +1 -1
- package/lib/types/utils/folderIndex.d.ts +47 -0
- package/lib/types/utils/folderIndex.d.ts.map +1 -0
- package/lib/types/utils/uuid.d.ts +7 -0
- package/lib/types/utils/uuid.d.ts.map +1 -0
- package/lib/types/web/signer.d.ts +1 -1
- package/lib/types/web/signer.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -186,6 +186,99 @@ export declare const optionMap: {
|
|
|
186
186
|
readonly alias: "--max-crypto-top-up-value <maxCryptoTopUpValue>";
|
|
187
187
|
readonly description: "Maximum crypto top-up value to use for the upload. Defaults to no limit.";
|
|
188
188
|
};
|
|
189
|
+
readonly arnsName: {
|
|
190
|
+
readonly alias: "--name <name>";
|
|
191
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
192
|
+
};
|
|
193
|
+
readonly arnsType: {
|
|
194
|
+
readonly alias: "--type <type>";
|
|
195
|
+
readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
|
|
196
|
+
};
|
|
197
|
+
readonly arnsYears: {
|
|
198
|
+
readonly alias: "--years <years>";
|
|
199
|
+
readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
|
|
200
|
+
};
|
|
201
|
+
readonly arnsIncreaseQty: {
|
|
202
|
+
readonly alias: "--increase-qty <qty>";
|
|
203
|
+
readonly description: "Number of additional undernames (Increase-Undername-Limit)";
|
|
204
|
+
};
|
|
205
|
+
readonly arnsOwnerKey: {
|
|
206
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
207
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
208
|
+
};
|
|
209
|
+
readonly arnsNonce: {
|
|
210
|
+
readonly alias: "--nonce <nonce>";
|
|
211
|
+
readonly description: "ArNS purchase nonce to look up the status for";
|
|
212
|
+
};
|
|
213
|
+
readonly arnsAntId: {
|
|
214
|
+
readonly alias: "--ant-id <antId>";
|
|
215
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
216
|
+
};
|
|
217
|
+
readonly arnsTarget: {
|
|
218
|
+
readonly alias: "--target <address>";
|
|
219
|
+
readonly description: "Target Solana pubkey to transfer the ANT to";
|
|
220
|
+
};
|
|
221
|
+
readonly arnsUndername: {
|
|
222
|
+
readonly alias: "--undername <undername>";
|
|
223
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
224
|
+
};
|
|
225
|
+
readonly arnsTransactionId: {
|
|
226
|
+
readonly alias: "--transaction-id <transactionId>";
|
|
227
|
+
readonly description: "Arweave transaction ID the ArNS record resolves to";
|
|
228
|
+
};
|
|
229
|
+
readonly arnsTtlSeconds: {
|
|
230
|
+
readonly alias: "--ttl-seconds <ttlSeconds>";
|
|
231
|
+
readonly description: "TTL in seconds for the ArNS record";
|
|
232
|
+
};
|
|
233
|
+
readonly arnsDisplayName: {
|
|
234
|
+
readonly alias: "--display-name <displayName>";
|
|
235
|
+
readonly description: "Display name for the record (Set-Record-Metadata)";
|
|
236
|
+
};
|
|
237
|
+
readonly arnsClearDisplayName: {
|
|
238
|
+
readonly alias: "--clear-display-name";
|
|
239
|
+
readonly description: "Clear the record display name (Set-Record-Metadata)";
|
|
240
|
+
readonly default: false;
|
|
241
|
+
};
|
|
242
|
+
readonly arnsRecordLogo: {
|
|
243
|
+
readonly alias: "--record-logo <transactionId>";
|
|
244
|
+
readonly description: "Arweave transaction ID for the record logo (Set-Record-Metadata)";
|
|
245
|
+
};
|
|
246
|
+
readonly arnsClearRecordLogo: {
|
|
247
|
+
readonly alias: "--clear-record-logo";
|
|
248
|
+
readonly description: "Clear the record logo (Set-Record-Metadata)";
|
|
249
|
+
readonly default: false;
|
|
250
|
+
};
|
|
251
|
+
readonly arnsRecordDescription: {
|
|
252
|
+
readonly alias: "--record-description <description>";
|
|
253
|
+
readonly description: "Description for the record (Set-Record-Metadata)";
|
|
254
|
+
};
|
|
255
|
+
readonly arnsClearRecordDescription: {
|
|
256
|
+
readonly alias: "--clear-record-description";
|
|
257
|
+
readonly description: "Clear the record description (Set-Record-Metadata)";
|
|
258
|
+
readonly default: false;
|
|
259
|
+
};
|
|
260
|
+
readonly arnsRecordKeywords: {
|
|
261
|
+
readonly alias: "--record-keywords <keywords...>";
|
|
262
|
+
readonly description: "Keywords for the record (Set-Record-Metadata)";
|
|
263
|
+
readonly type: "array";
|
|
264
|
+
};
|
|
265
|
+
readonly arnsClearRecordKeywords: {
|
|
266
|
+
readonly alias: "--clear-record-keywords";
|
|
267
|
+
readonly description: "Clear the record keywords (Set-Record-Metadata)";
|
|
268
|
+
readonly default: false;
|
|
269
|
+
};
|
|
270
|
+
readonly arnsAction: {
|
|
271
|
+
readonly alias: "--action <action>";
|
|
272
|
+
readonly description: string;
|
|
273
|
+
};
|
|
274
|
+
readonly limit: {
|
|
275
|
+
readonly alias: "--limit <limit>";
|
|
276
|
+
readonly description: "Max number of payment-history rows to return (1-100, default 50)";
|
|
277
|
+
};
|
|
278
|
+
readonly cursor: {
|
|
279
|
+
readonly alias: "--cursor <cursor>";
|
|
280
|
+
readonly description: "Opaque pagination cursor from a prior payment-history response";
|
|
281
|
+
};
|
|
189
282
|
};
|
|
190
283
|
export declare const walletOptions: ({
|
|
191
284
|
readonly alias: "-w, --wallet-file <filePath>";
|
|
@@ -469,4 +562,334 @@ export declare const listSharesOptions: ({
|
|
|
469
562
|
readonly alias: "-p, --private-key <key>";
|
|
470
563
|
readonly description: "Private key to use with the action";
|
|
471
564
|
})[];
|
|
565
|
+
export declare const arnsPriceOptions: ({
|
|
566
|
+
readonly alias: "--name <name>";
|
|
567
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
568
|
+
} | {
|
|
569
|
+
readonly alias: "--type <type>";
|
|
570
|
+
readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
|
|
571
|
+
} | {
|
|
572
|
+
readonly alias: "--years <years>";
|
|
573
|
+
readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
|
|
574
|
+
} | {
|
|
575
|
+
readonly alias: "--increase-qty <qty>";
|
|
576
|
+
readonly description: "Number of additional undernames (Increase-Undername-Limit)";
|
|
577
|
+
})[];
|
|
578
|
+
export declare const arnsFiatQuoteOptions: ({
|
|
579
|
+
readonly alias: "-c, --currency <currency>";
|
|
580
|
+
readonly description: "Fiat currency type to use for the action";
|
|
581
|
+
readonly default: "usd";
|
|
582
|
+
} | {
|
|
583
|
+
readonly alias: "-a, --address <nativeAddress>";
|
|
584
|
+
readonly description: "Native address to use for action";
|
|
585
|
+
} | {
|
|
586
|
+
readonly alias: "--name <name>";
|
|
587
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
588
|
+
} | {
|
|
589
|
+
readonly alias: "--type <type>";
|
|
590
|
+
readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
|
|
591
|
+
} | {
|
|
592
|
+
readonly alias: "--years <years>";
|
|
593
|
+
readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
|
|
594
|
+
} | {
|
|
595
|
+
readonly alias: "--increase-qty <qty>";
|
|
596
|
+
readonly description: "Number of additional undernames (Increase-Undername-Limit)";
|
|
597
|
+
} | {
|
|
598
|
+
alias: string;
|
|
599
|
+
description: string;
|
|
600
|
+
})[];
|
|
601
|
+
export declare const buyArNSNameOptions: ({
|
|
602
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
603
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
604
|
+
} | {
|
|
605
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
606
|
+
readonly description: "Mnemonic to use with the action";
|
|
607
|
+
} | {
|
|
608
|
+
readonly alias: "-p, --private-key <key>";
|
|
609
|
+
readonly description: "Private key to use with the action";
|
|
610
|
+
} | {
|
|
611
|
+
readonly alias: "--paid-by <paidBy...>";
|
|
612
|
+
readonly description: "Address to pay for the upload";
|
|
613
|
+
readonly type: "array";
|
|
614
|
+
} | {
|
|
615
|
+
readonly alias: "--name <name>";
|
|
616
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
617
|
+
} | {
|
|
618
|
+
readonly alias: "--type <type>";
|
|
619
|
+
readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
|
|
620
|
+
} | {
|
|
621
|
+
readonly alias: "--years <years>";
|
|
622
|
+
readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
|
|
623
|
+
} | {
|
|
624
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
625
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
626
|
+
})[];
|
|
627
|
+
export declare const extendArNSLeaseOptions: ({
|
|
628
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
629
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
630
|
+
} | {
|
|
631
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
632
|
+
readonly description: "Mnemonic to use with the action";
|
|
633
|
+
} | {
|
|
634
|
+
readonly alias: "-p, --private-key <key>";
|
|
635
|
+
readonly description: "Private key to use with the action";
|
|
636
|
+
} | {
|
|
637
|
+
readonly alias: "--paid-by <paidBy...>";
|
|
638
|
+
readonly description: "Address to pay for the upload";
|
|
639
|
+
readonly type: "array";
|
|
640
|
+
} | {
|
|
641
|
+
readonly alias: "--name <name>";
|
|
642
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
643
|
+
} | {
|
|
644
|
+
readonly alias: "--years <years>";
|
|
645
|
+
readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
|
|
646
|
+
})[];
|
|
647
|
+
export declare const increaseArNSUndernamesOptions: ({
|
|
648
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
649
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
650
|
+
} | {
|
|
651
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
652
|
+
readonly description: "Mnemonic to use with the action";
|
|
653
|
+
} | {
|
|
654
|
+
readonly alias: "-p, --private-key <key>";
|
|
655
|
+
readonly description: "Private key to use with the action";
|
|
656
|
+
} | {
|
|
657
|
+
readonly alias: "--paid-by <paidBy...>";
|
|
658
|
+
readonly description: "Address to pay for the upload";
|
|
659
|
+
readonly type: "array";
|
|
660
|
+
} | {
|
|
661
|
+
readonly alias: "--name <name>";
|
|
662
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
663
|
+
} | {
|
|
664
|
+
readonly alias: "--increase-qty <qty>";
|
|
665
|
+
readonly description: "Number of additional undernames (Increase-Undername-Limit)";
|
|
666
|
+
})[];
|
|
667
|
+
export declare const upgradeArNSNameOptions: ({
|
|
668
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
669
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
670
|
+
} | {
|
|
671
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
672
|
+
readonly description: "Mnemonic to use with the action";
|
|
673
|
+
} | {
|
|
674
|
+
readonly alias: "-p, --private-key <key>";
|
|
675
|
+
readonly description: "Private key to use with the action";
|
|
676
|
+
} | {
|
|
677
|
+
readonly alias: "--paid-by <paidBy...>";
|
|
678
|
+
readonly description: "Address to pay for the upload";
|
|
679
|
+
readonly type: "array";
|
|
680
|
+
} | {
|
|
681
|
+
readonly alias: "--name <name>";
|
|
682
|
+
readonly description: "ArNS name to price, buy, or manage";
|
|
683
|
+
})[];
|
|
684
|
+
export declare const arnsPurchaseStatusOptions: {
|
|
685
|
+
readonly alias: "--nonce <nonce>";
|
|
686
|
+
readonly description: "ArNS purchase nonce to look up the status for";
|
|
687
|
+
}[];
|
|
688
|
+
export declare const arnsActionStatusOptions: ({
|
|
689
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
690
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
691
|
+
} | {
|
|
692
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
693
|
+
readonly description: "Mnemonic to use with the action";
|
|
694
|
+
} | {
|
|
695
|
+
readonly alias: "-p, --private-key <key>";
|
|
696
|
+
readonly description: "Private key to use with the action";
|
|
697
|
+
} | {
|
|
698
|
+
readonly alias: "--nonce <nonce>";
|
|
699
|
+
readonly description: "ArNS purchase nonce to look up the status for";
|
|
700
|
+
})[];
|
|
701
|
+
export declare const transferArNSAntOptions: ({
|
|
702
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
703
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
704
|
+
} | {
|
|
705
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
706
|
+
readonly description: "Mnemonic to use with the action";
|
|
707
|
+
} | {
|
|
708
|
+
readonly alias: "-p, --private-key <key>";
|
|
709
|
+
readonly description: "Private key to use with the action";
|
|
710
|
+
} | {
|
|
711
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
712
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
713
|
+
} | {
|
|
714
|
+
readonly alias: "--ant-id <antId>";
|
|
715
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
716
|
+
} | {
|
|
717
|
+
readonly alias: "--target <address>";
|
|
718
|
+
readonly description: "Target Solana pubkey to transfer the ANT to";
|
|
719
|
+
})[];
|
|
720
|
+
export declare const setArNSRecordOptions: ({
|
|
721
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
722
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
723
|
+
} | {
|
|
724
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
725
|
+
readonly description: "Mnemonic to use with the action";
|
|
726
|
+
} | {
|
|
727
|
+
readonly alias: "-p, --private-key <key>";
|
|
728
|
+
readonly description: "Private key to use with the action";
|
|
729
|
+
} | {
|
|
730
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
731
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
732
|
+
} | {
|
|
733
|
+
readonly alias: "--ant-id <antId>";
|
|
734
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
735
|
+
} | {
|
|
736
|
+
readonly alias: "--undername <undername>";
|
|
737
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
738
|
+
} | {
|
|
739
|
+
readonly alias: "--transaction-id <transactionId>";
|
|
740
|
+
readonly description: "Arweave transaction ID the ArNS record resolves to";
|
|
741
|
+
} | {
|
|
742
|
+
readonly alias: "--ttl-seconds <ttlSeconds>";
|
|
743
|
+
readonly description: "TTL in seconds for the ArNS record";
|
|
744
|
+
})[];
|
|
745
|
+
export declare const removeArNSRecordOptions: ({
|
|
746
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
747
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
748
|
+
} | {
|
|
749
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
750
|
+
readonly description: "Mnemonic to use with the action";
|
|
751
|
+
} | {
|
|
752
|
+
readonly alias: "-p, --private-key <key>";
|
|
753
|
+
readonly description: "Private key to use with the action";
|
|
754
|
+
} | {
|
|
755
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
756
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
757
|
+
} | {
|
|
758
|
+
readonly alias: "--ant-id <antId>";
|
|
759
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
760
|
+
} | {
|
|
761
|
+
readonly alias: "--undername <undername>";
|
|
762
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
763
|
+
})[];
|
|
764
|
+
export declare const addArNSControllerOptions: ({
|
|
765
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
766
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
767
|
+
} | {
|
|
768
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
769
|
+
readonly description: "Mnemonic to use with the action";
|
|
770
|
+
} | {
|
|
771
|
+
readonly alias: "-p, --private-key <key>";
|
|
772
|
+
readonly description: "Private key to use with the action";
|
|
773
|
+
} | {
|
|
774
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
775
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
776
|
+
} | {
|
|
777
|
+
readonly alias: "--ant-id <antId>";
|
|
778
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
779
|
+
} | {
|
|
780
|
+
readonly alias: "--target <address>";
|
|
781
|
+
readonly description: "Target Solana pubkey to transfer the ANT to";
|
|
782
|
+
})[];
|
|
783
|
+
export declare const removeArNSControllerOptions: ({
|
|
784
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
785
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
786
|
+
} | {
|
|
787
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
788
|
+
readonly description: "Mnemonic to use with the action";
|
|
789
|
+
} | {
|
|
790
|
+
readonly alias: "-p, --private-key <key>";
|
|
791
|
+
readonly description: "Private key to use with the action";
|
|
792
|
+
} | {
|
|
793
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
794
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
795
|
+
} | {
|
|
796
|
+
readonly alias: "--ant-id <antId>";
|
|
797
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
798
|
+
} | {
|
|
799
|
+
readonly alias: "--target <address>";
|
|
800
|
+
readonly description: "Target Solana pubkey to transfer the ANT to";
|
|
801
|
+
})[];
|
|
802
|
+
export declare const transferArNSRecordOptions: ({
|
|
803
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
804
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
805
|
+
} | {
|
|
806
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
807
|
+
readonly description: "Mnemonic to use with the action";
|
|
808
|
+
} | {
|
|
809
|
+
readonly alias: "-p, --private-key <key>";
|
|
810
|
+
readonly description: "Private key to use with the action";
|
|
811
|
+
} | {
|
|
812
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
813
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
814
|
+
} | {
|
|
815
|
+
readonly alias: "--ant-id <antId>";
|
|
816
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
817
|
+
} | {
|
|
818
|
+
readonly alias: "--target <address>";
|
|
819
|
+
readonly description: "Target Solana pubkey to transfer the ANT to";
|
|
820
|
+
} | {
|
|
821
|
+
readonly alias: "--undername <undername>";
|
|
822
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
823
|
+
})[];
|
|
824
|
+
export declare const setArNSRecordMetadataOptions: ({
|
|
825
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
826
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
827
|
+
} | {
|
|
828
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
829
|
+
readonly description: "Mnemonic to use with the action";
|
|
830
|
+
} | {
|
|
831
|
+
readonly alias: "-p, --private-key <key>";
|
|
832
|
+
readonly description: "Private key to use with the action";
|
|
833
|
+
} | {
|
|
834
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
835
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
836
|
+
} | {
|
|
837
|
+
readonly alias: "--ant-id <antId>";
|
|
838
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
839
|
+
} | {
|
|
840
|
+
readonly alias: "--undername <undername>";
|
|
841
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
842
|
+
} | {
|
|
843
|
+
readonly alias: "--display-name <displayName>";
|
|
844
|
+
readonly description: "Display name for the record (Set-Record-Metadata)";
|
|
845
|
+
} | {
|
|
846
|
+
readonly alias: "--clear-display-name";
|
|
847
|
+
readonly description: "Clear the record display name (Set-Record-Metadata)";
|
|
848
|
+
readonly default: false;
|
|
849
|
+
} | {
|
|
850
|
+
readonly alias: "--record-logo <transactionId>";
|
|
851
|
+
readonly description: "Arweave transaction ID for the record logo (Set-Record-Metadata)";
|
|
852
|
+
} | {
|
|
853
|
+
readonly alias: "--clear-record-logo";
|
|
854
|
+
readonly description: "Clear the record logo (Set-Record-Metadata)";
|
|
855
|
+
readonly default: false;
|
|
856
|
+
} | {
|
|
857
|
+
readonly alias: "--record-description <description>";
|
|
858
|
+
readonly description: "Description for the record (Set-Record-Metadata)";
|
|
859
|
+
} | {
|
|
860
|
+
readonly alias: "--clear-record-description";
|
|
861
|
+
readonly description: "Clear the record description (Set-Record-Metadata)";
|
|
862
|
+
readonly default: false;
|
|
863
|
+
} | {
|
|
864
|
+
readonly alias: "--record-keywords <keywords...>";
|
|
865
|
+
readonly description: "Keywords for the record (Set-Record-Metadata)";
|
|
866
|
+
readonly type: "array";
|
|
867
|
+
} | {
|
|
868
|
+
readonly alias: "--clear-record-keywords";
|
|
869
|
+
readonly description: "Clear the record keywords (Set-Record-Metadata)";
|
|
870
|
+
readonly default: false;
|
|
871
|
+
})[];
|
|
872
|
+
export declare const removeArNSRecordMetadataOptions: ({
|
|
873
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
874
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
875
|
+
} | {
|
|
876
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
877
|
+
readonly description: "Mnemonic to use with the action";
|
|
878
|
+
} | {
|
|
879
|
+
readonly alias: "-p, --private-key <key>";
|
|
880
|
+
readonly description: "Private key to use with the action";
|
|
881
|
+
} | {
|
|
882
|
+
readonly alias: "--owner-key <base58SolanaSecretKey>";
|
|
883
|
+
readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
|
|
884
|
+
} | {
|
|
885
|
+
readonly alias: "--ant-id <antId>";
|
|
886
|
+
readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
|
|
887
|
+
} | {
|
|
888
|
+
readonly alias: "--undername <undername>";
|
|
889
|
+
readonly description: "ArNS undername record to set or remove (defaults to '@')";
|
|
890
|
+
})[];
|
|
891
|
+
export declare const arnsActionPriceOptions: {
|
|
892
|
+
readonly alias: "--action <action>";
|
|
893
|
+
readonly description: string;
|
|
894
|
+
}[];
|
|
472
895
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+RZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;IAIzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AASF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAC;A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,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaxC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;IAK3C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;GAAyB,CAAC"}
|
package/lib/types/cli/types.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export type WalletOptions = GlobalOptions & {
|
|
|
33
33
|
export type AddressOptions = WalletOptions & {
|
|
34
34
|
address: string | undefined;
|
|
35
35
|
};
|
|
36
|
+
export type PaymentHistoryOptions = WalletOptions & {
|
|
37
|
+
limit: string | undefined;
|
|
38
|
+
cursor: string | undefined;
|
|
39
|
+
};
|
|
36
40
|
export type TopUpOptions = AddressOptions & {
|
|
37
41
|
value: string | undefined;
|
|
38
42
|
currency: string | undefined;
|
|
@@ -89,4 +93,78 @@ export type RevokeCreditsOptions = WalletOptions & {
|
|
|
89
93
|
address: string | undefined;
|
|
90
94
|
};
|
|
91
95
|
export type ListSharesOptions = RevokeCreditsOptions;
|
|
96
|
+
export type ArNSPriceOptions = GlobalOptions & {
|
|
97
|
+
name: string | undefined;
|
|
98
|
+
type: string | undefined;
|
|
99
|
+
years: string | undefined;
|
|
100
|
+
increaseQty: string | undefined;
|
|
101
|
+
processId: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
export type ArNSFiatQuoteOptions = ArNSPriceOptions & {
|
|
104
|
+
address: string | undefined;
|
|
105
|
+
currency: string | undefined;
|
|
106
|
+
method: string | undefined;
|
|
107
|
+
promoCode: string[] | undefined;
|
|
108
|
+
};
|
|
109
|
+
/** Base58 Solana secret key that will OWN the ANT — separate from the payer. */
|
|
110
|
+
export type ArNSOwnerKeyOption = {
|
|
111
|
+
ownerKey?: string;
|
|
112
|
+
};
|
|
113
|
+
export type ArNSPurchaseOptions = ArNSOwnerKeyOption & WalletOptions & ArNSPriceOptions & {
|
|
114
|
+
paidBy: string[] | undefined;
|
|
115
|
+
};
|
|
116
|
+
export type ArNSPurchaseStatusOptions = GlobalOptions & {
|
|
117
|
+
nonce: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Authenticated, unlike `ArNSPurchaseStatusOptions`: `getArNSActionStatus`
|
|
121
|
+
* lives on the authenticated client even though the route needs no signature.
|
|
122
|
+
*/
|
|
123
|
+
export type ArNSActionStatusOptions = WalletOptions & {
|
|
124
|
+
nonce: string | undefined;
|
|
125
|
+
};
|
|
126
|
+
export type TransferArNSAntOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
127
|
+
antId: string | undefined;
|
|
128
|
+
target: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
export type SetArNSRecordOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
131
|
+
antId: string | undefined;
|
|
132
|
+
undername: string | undefined;
|
|
133
|
+
transactionId: string | undefined;
|
|
134
|
+
ttlSeconds: string | undefined;
|
|
135
|
+
};
|
|
136
|
+
export type RemoveArNSRecordOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
137
|
+
antId: string | undefined;
|
|
138
|
+
undername: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
export type AddArNSControllerOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
141
|
+
antId: string | undefined;
|
|
142
|
+
target: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
export type RemoveArNSControllerOptions = AddArNSControllerOptions;
|
|
145
|
+
export type TransferArNSRecordOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
146
|
+
antId: string | undefined;
|
|
147
|
+
undername: string | undefined;
|
|
148
|
+
target: string | undefined;
|
|
149
|
+
};
|
|
150
|
+
export type SetArNSRecordMetadataOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
151
|
+
antId: string | undefined;
|
|
152
|
+
undername: string | undefined;
|
|
153
|
+
displayName: string | undefined;
|
|
154
|
+
clearDisplayName: boolean;
|
|
155
|
+
recordLogo: string | undefined;
|
|
156
|
+
clearRecordLogo: boolean;
|
|
157
|
+
recordDescription: string | undefined;
|
|
158
|
+
clearRecordDescription: boolean;
|
|
159
|
+
recordKeywords: string[] | undefined;
|
|
160
|
+
clearRecordKeywords: boolean;
|
|
161
|
+
};
|
|
162
|
+
export type RemoveArNSRecordMetadataOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
163
|
+
antId: string | undefined;
|
|
164
|
+
undername: string | undefined;
|
|
165
|
+
};
|
|
166
|
+
/** `--action` names one of the eight non-purchase actions to price. */
|
|
167
|
+
export type ArNSActionPriceOptions = GlobalOptions & {
|
|
168
|
+
action: string | undefined;
|
|
169
|
+
};
|
|
92
170
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;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EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEJ,MAAM,MAAM,+BAA+B,GAAG,kBAAkB,GAC9D,aAAa,GAAG;IACd,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEJ,uEAAuE;AACvE,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IACnD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ArNSOwnerSigner } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Canonical ACTION-BOUND message for the owner proof.
|
|
4
|
+
*
|
|
5
|
+
* MUST match the bundler's `buildArNSCustodyMessage` byte for byte
|
|
6
|
+
* (newline-delimited) or every signature is rejected. The bundler rebuilds this
|
|
7
|
+
* from the request and verifies the signature over `message + nonce`, so a
|
|
8
|
+
* signature captured for one operation cannot authorize a different one, and
|
|
9
|
+
* the nonce is consumed on use so the same one cannot be replayed (e.g. to
|
|
10
|
+
* revert a record to an older value).
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildArNSCustodyMessage(action: 'set-record' | 'remove-record' | 'set-record-metadata' | 'remove-record-metadata' | 'transfer-record', fields: string[]): string;
|
|
13
|
+
/**
|
|
14
|
+
* A metadata field's ABSENT/EMPTY distinction, as the bundler binds it.
|
|
15
|
+
*
|
|
16
|
+
* `null` (clear the field) must not sign the same message as `''` (set it to
|
|
17
|
+
* empty), or a signature authorizing one would authorize the other. NUL can
|
|
18
|
+
* never appear in a value that reached here — the route rejects control
|
|
19
|
+
* characters — so it is a safe sentinel.
|
|
20
|
+
*/
|
|
21
|
+
export declare function arNSMetadataField(value: string | null | undefined): string;
|
|
22
|
+
/**
|
|
23
|
+
* Keywords joined on a separator the route rejects INSIDE a keyword, so
|
|
24
|
+
* `['a,b']` and `['a','b']` cannot be re-partitioned into one another with the
|
|
25
|
+
* same signature.
|
|
26
|
+
*/
|
|
27
|
+
export declare function arNSKeywordsField(keywords: readonly string[] | null | undefined): string;
|
|
28
|
+
/**
|
|
29
|
+
* The ANT owner's half of the envelope, in its own `x-owner-*` headers.
|
|
30
|
+
*
|
|
31
|
+
* Two signatures travel on a record action — the PAYER's signed request over
|
|
32
|
+
* `"" + nonce`, and the OWNER's action-bound proof over `message + nonce` —
|
|
33
|
+
* from two different keys, usually on two different chains. They cannot share
|
|
34
|
+
* one header set: whichever verifier ran second would reject a signature that
|
|
35
|
+
* was never meant for it.
|
|
36
|
+
*/
|
|
37
|
+
export declare function arNSOwnerProofHeaders(owner: ArNSOwnerSigner, message: string, nonce: string): Promise<Record<string, string>>;
|
|
38
|
+
/**
|
|
39
|
+
* Build an {@link ArNSOwnerSigner} from a raw Solana secret key.
|
|
40
|
+
*
|
|
41
|
+
* For servers and tests. A browser wallet (Phantom, Solflare, or a console's
|
|
42
|
+
* embedded wallet) should implement the interface directly against its own
|
|
43
|
+
* `signTransaction` / `signMessage` rather than exposing a secret key.
|
|
44
|
+
*
|
|
45
|
+
* Note the owner needs a key to SIGN with, not a funded account: Turbo is the
|
|
46
|
+
* fee payer on every sponsored action, so this wallet's SOL balance can stay
|
|
47
|
+
* at zero for the entire life of the name.
|
|
48
|
+
*/
|
|
49
|
+
export declare function solanaOwnerSigner(secretKey: Uint8Array | string): ArNSOwnerSigner;
|
|
50
|
+
/**
|
|
51
|
+
* Count the signature slots a prepared transaction still has empty.
|
|
52
|
+
*
|
|
53
|
+
* Turbo pre-signs as fee payer and leaves exactly one slot for the owner, so a
|
|
54
|
+
* client can assert that before prompting a wallet — a cheap way to catch a
|
|
55
|
+
* malformed or already-signed transaction before bothering the user.
|
|
56
|
+
*/
|
|
57
|
+
export declare function emptySignatureSlots(transactionBase64: string): number;
|
|
58
|
+
//# sourceMappingURL=arnsActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arnsActions.d.ts","sourceRoot":"","sources":["../../../src/common/arnsActions.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EACF,YAAY,GACZ,eAAe,GACf,qBAAqB,GACrB,wBAAwB,GACxB,iBAAiB,EACrB,MAAM,EAAE,MAAM,EAAE,GACf,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAE1E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC7C,MAAM,CAIR;AAKD;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAcjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,UAAU,GAAG,MAAM,GAC7B,eAAe,CAmBjB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAKrE"}
|