@parity/dotns-cli 0.7.5 → 0.7.6

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.
Files changed (144) hide show
  1. package/dist/bulletin/cid.d.ts +14 -0
  2. package/dist/bulletin/cid.d.ts.map +1 -0
  3. package/dist/bulletin/cidHistory.d.ts +9 -0
  4. package/dist/bulletin/cidHistory.d.ts.map +1 -0
  5. package/dist/bulletin/heliaClient.d.ts +16 -0
  6. package/dist/bulletin/heliaClient.d.ts.map +1 -0
  7. package/dist/bulletin/ipfs.d.ts +6 -0
  8. package/dist/bulletin/ipfs.d.ts.map +1 -0
  9. package/dist/bulletin/store.d.ts +60 -0
  10. package/dist/bulletin/store.d.ts.map +1 -0
  11. package/dist/bulletin/uploadManifest.d.ts +9 -0
  12. package/dist/bulletin/uploadManifest.d.ts.map +1 -0
  13. package/dist/bulletin/uploadRetry.d.ts +22 -0
  14. package/dist/bulletin/uploadRetry.d.ts.map +1 -0
  15. package/dist/cli/commands/auth.d.ts +3 -0
  16. package/dist/cli/commands/auth.d.ts.map +1 -0
  17. package/dist/cli/commands/authOptions.d.ts +5 -0
  18. package/dist/cli/commands/authOptions.d.ts.map +1 -0
  19. package/dist/cli/commands/bulletin.d.ts +19 -0
  20. package/dist/cli/commands/bulletin.d.ts.map +1 -0
  21. package/dist/cli/commands/content.d.ts +3 -0
  22. package/dist/cli/commands/content.d.ts.map +1 -0
  23. package/dist/cli/commands/delegate.d.ts +3 -0
  24. package/dist/cli/commands/delegate.d.ts.map +1 -0
  25. package/dist/cli/commands/escrow.d.ts +3 -0
  26. package/dist/cli/commands/escrow.d.ts.map +1 -0
  27. package/dist/cli/commands/info.d.ts +3 -0
  28. package/dist/cli/commands/info.d.ts.map +1 -0
  29. package/dist/cli/commands/jsonHelpers.d.ts +46 -0
  30. package/dist/cli/commands/jsonHelpers.d.ts.map +1 -0
  31. package/dist/cli/commands/lookup.d.ts +7 -0
  32. package/dist/cli/commands/lookup.d.ts.map +1 -0
  33. package/dist/cli/commands/pop.d.ts +3 -0
  34. package/dist/cli/commands/pop.d.ts.map +1 -0
  35. package/dist/cli/commands/primary.d.ts +3 -0
  36. package/dist/cli/commands/primary.d.ts.map +1 -0
  37. package/dist/cli/commands/register.d.ts +52 -0
  38. package/dist/cli/commands/register.d.ts.map +1 -0
  39. package/dist/cli/commands/registerCommand.d.ts +9 -0
  40. package/dist/cli/commands/registerCommand.d.ts.map +1 -0
  41. package/dist/cli/commands/store.d.ts +3 -0
  42. package/dist/cli/commands/store.d.ts.map +1 -0
  43. package/dist/cli/commands/text.d.ts +3 -0
  44. package/dist/cli/commands/text.d.ts.map +1 -0
  45. package/dist/cli/context.d.ts +20 -0
  46. package/dist/cli/context.d.ts.map +1 -0
  47. package/dist/cli/env.d.ts +50 -0
  48. package/dist/cli/env.d.ts.map +1 -0
  49. package/dist/cli/exit.d.ts +5 -0
  50. package/dist/cli/exit.d.ts.map +1 -0
  51. package/dist/cli/index.d.ts +2 -0
  52. package/dist/cli/index.d.ts.map +1 -0
  53. package/dist/cli/io.d.ts +6 -0
  54. package/dist/cli/io.d.ts.map +1 -0
  55. package/dist/cli/keystore/crypto.d.ts +4 -0
  56. package/dist/cli/keystore/crypto.d.ts.map +1 -0
  57. package/dist/cli/keystore/file.d.ts +6 -0
  58. package/dist/cli/keystore/file.d.ts.map +1 -0
  59. package/dist/cli/keystore/payload.d.ts +16 -0
  60. package/dist/cli/keystore/payload.d.ts.map +1 -0
  61. package/dist/cli/keystore/types.d.ts +29 -0
  62. package/dist/cli/keystore/types.d.ts.map +1 -0
  63. package/dist/cli/labels.d.ts +3 -0
  64. package/dist/cli/labels.d.ts.map +1 -0
  65. package/dist/cli/program.d.ts +3 -0
  66. package/dist/cli/program.d.ts.map +1 -0
  67. package/dist/cli/qrSigner.d.ts +9 -0
  68. package/dist/cli/qrSigner.d.ts.map +1 -0
  69. package/dist/cli/reporter.d.ts +26 -0
  70. package/dist/cli/reporter.d.ts.map +1 -0
  71. package/dist/cli/transfer.d.ts +15 -0
  72. package/dist/cli/transfer.d.ts.map +1 -0
  73. package/dist/cli/txStatus.d.ts +4 -0
  74. package/dist/cli/txStatus.d.ts.map +1 -0
  75. package/dist/cli/ui.d.ts +4 -0
  76. package/dist/cli/ui.d.ts.map +1 -0
  77. package/dist/cli/views/escrow.d.ts +4 -0
  78. package/dist/cli/views/escrow.d.ts.map +1 -0
  79. package/dist/client/polkadotClient.d.ts +38 -0
  80. package/dist/client/polkadotClient.d.ts.map +1 -0
  81. package/dist/commands/accountChecks.d.ts +6 -0
  82. package/dist/commands/accountChecks.d.ts.map +1 -0
  83. package/dist/commands/auth.d.ts +8 -0
  84. package/dist/commands/auth.d.ts.map +1 -0
  85. package/dist/commands/bulletin.d.ts +19 -0
  86. package/dist/commands/bulletin.d.ts.map +1 -0
  87. package/dist/commands/contentHash.d.ts +15 -0
  88. package/dist/commands/contentHash.d.ts.map +1 -0
  89. package/dist/commands/delegate.d.ts +18 -0
  90. package/dist/commands/delegate.d.ts.map +1 -0
  91. package/dist/commands/escrow.d.ts +51 -0
  92. package/dist/commands/escrow.d.ts.map +1 -0
  93. package/dist/commands/lookup.d.ts +12 -0
  94. package/dist/commands/lookup.d.ts.map +1 -0
  95. package/dist/commands/register.d.ts +68 -0
  96. package/dist/commands/register.d.ts.map +1 -0
  97. package/dist/commands/registrationManifest.d.ts +68 -0
  98. package/dist/commands/registrationManifest.d.ts.map +1 -0
  99. package/dist/commands/resolverAuth.d.ts +10 -0
  100. package/dist/commands/resolverAuth.d.ts.map +1 -0
  101. package/dist/commands/reverseRecord.d.ts +9 -0
  102. package/dist/commands/reverseRecord.d.ts.map +1 -0
  103. package/dist/commands/storeManagement.d.ts +17 -0
  104. package/dist/commands/storeManagement.d.ts.map +1 -0
  105. package/dist/commands/textRecord.d.ts +17 -0
  106. package/dist/commands/textRecord.d.ts.map +1 -0
  107. package/dist/core/bulletin.d.ts +4 -0
  108. package/dist/core/bulletin.d.ts.map +1 -0
  109. package/dist/core/bulletin.js +38654 -0
  110. package/dist/core/context.d.ts +43 -0
  111. package/dist/core/context.d.ts.map +1 -0
  112. package/dist/core/index.d.ts +27 -0
  113. package/dist/core/index.d.ts.map +1 -0
  114. package/dist/core/index.js +20017 -0
  115. package/dist/core/keyring.d.ts +10 -0
  116. package/dist/core/keyring.d.ts.map +1 -0
  117. package/dist/core/keyring.js +18114 -0
  118. package/dist/simpleExamples/00_shared.d.ts +21 -0
  119. package/dist/simpleExamples/00_shared.d.ts.map +1 -0
  120. package/dist/simpleExamples/01_info.d.ts +2 -0
  121. package/dist/simpleExamples/01_info.d.ts.map +1 -0
  122. package/dist/simpleExamples/02_register_regular.d.ts +2 -0
  123. package/dist/simpleExamples/02_register_regular.d.ts.map +1 -0
  124. package/dist/simpleExamples/03_register_governance.d.ts +2 -0
  125. package/dist/simpleExamples/03_register_governance.d.ts.map +1 -0
  126. package/dist/simpleExamples/04_lookup_and_list.d.ts +2 -0
  127. package/dist/simpleExamples/04_lookup_and_list.d.ts.map +1 -0
  128. package/dist/simpleExamples/05_set_content_and_transfer.d.ts +2 -0
  129. package/dist/simpleExamples/05_set_content_and_transfer.d.ts.map +1 -0
  130. package/dist/simpleExamples/06_upload_to_bulletin.d.ts +2 -0
  131. package/dist/simpleExamples/06_upload_to_bulletin.d.ts.map +1 -0
  132. package/dist/types/types.d.ts +952 -0
  133. package/dist/types/types.d.ts.map +1 -0
  134. package/dist/utils/address.d.ts +2 -0
  135. package/dist/utils/address.d.ts.map +1 -0
  136. package/dist/utils/constants.d.ts +179 -0
  137. package/dist/utils/constants.d.ts.map +1 -0
  138. package/dist/utils/contractInteractions.d.ts +12 -0
  139. package/dist/utils/contractInteractions.d.ts.map +1 -0
  140. package/dist/utils/formatting.d.ts +11 -0
  141. package/dist/utils/formatting.d.ts.map +1 -0
  142. package/dist/utils/validation.d.ts +10 -0
  143. package/dist/utils/validation.d.ts.map +1 -0
  144. package/package.json +12 -6
@@ -0,0 +1,14 @@
1
+ import { CID } from "multiformats/cid";
2
+ export declare const CODEC: {
3
+ readonly RAW: 85;
4
+ readonly DAG_PB: 112;
5
+ };
6
+ export declare const HASH: {
7
+ readonly SHA2_256: 18;
8
+ readonly BLAKE2B_256: 45600;
9
+ };
10
+ export declare function createRawCid(data: Uint8Array, hashCode?: number): CID;
11
+ export declare function createDagPbCid(data: Uint8Array, hashCode?: number): CID;
12
+ export declare function encodeIpfsContenthash(cidString: string): string;
13
+ export declare function decodeIpfsContenthash(contenthashHex: string): string | null;
14
+ //# sourceMappingURL=cid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cid.d.ts","sourceRoot":"","sources":["../../src/bulletin/cid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAMvC,eAAO,MAAM,KAAK;;;CAGR,CAAC;AAEX,eAAO,MAAM,IAAI;;;CAGP,CAAC;AAeX,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,GAAE,MAAsB,GAAG,GAAG,CAIpF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,GAAE,MAAsB,GAAG,GAAG,CAItF;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAU3E"}
@@ -0,0 +1,9 @@
1
+ import type { UploadRecord } from "../types/types";
2
+ export declare function formatRecordTimestamp(record: UploadRecord): string;
3
+ export declare function readHistory(): Promise<UploadRecord[]>;
4
+ export declare function addUploadRecord(record: Omit<UploadRecord, "timestamp">): Promise<UploadRecord>;
5
+ export declare function removeUploadRecord(cid: string): Promise<boolean>;
6
+ export declare function clearHistory(): Promise<number>;
7
+ export declare function getHistoryPath(): string;
8
+ export declare function getPreviewUrl(record: UploadRecord): string | null;
9
+ //# sourceMappingURL=cidHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cidHistory.d.ts","sourceRoot":"","sources":["../../src/bulletin/cidHistory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAgCnD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAElE;AAUD,wBAAsB,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAO3D;AAOD,wBAAsB,eAAe,CACnC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,GACtC,OAAO,CAAC,YAAY,CAAC,CAYvB;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAYtE;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAMpD;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AASD,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,GAAG,IAAI,CAKjE"}
@@ -0,0 +1,16 @@
1
+ export interface HeliaFetchResult {
2
+ data: Uint8Array;
3
+ size: number;
4
+ }
5
+ export declare class BulletinHeliaClient {
6
+ private helia;
7
+ private peerAddresses;
8
+ constructor(peerAddresses?: readonly string[]);
9
+ initialize(): Promise<void>;
10
+ fetchBlock(cidString: string): Promise<HeliaFetchResult>;
11
+ verifyCid(cidString: string): Promise<boolean>;
12
+ destroy(): Promise<void>;
13
+ }
14
+ export declare function getSharedHeliaClient(): BulletinHeliaClient;
15
+ export declare function destroySharedHeliaClient(): Promise<void>;
16
+ //# sourceMappingURL=heliaClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heliaClient.d.ts","sourceRoot":"","sources":["../../src/bulletin/heliaClient.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AA+DD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,aAAa,CAAW;gBAEpB,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE;IAIvC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B3B,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkBxD,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAS9C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAM/B;AAED,wBAAgB,oBAAoB,IAAI,mBAAmB,CAK1D;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK9D"}
@@ -0,0 +1,6 @@
1
+ import type { VerificationResult } from "../types/types";
2
+ export declare function verifyCidResolution(contentCid: string, gatewayBaseUrl?: string): Promise<VerificationResult>;
3
+ export declare function verifyCidWithMultipleGateways(contentCid: string, gatewayUrls?: string[]): Promise<Map<string, VerificationResult>>;
4
+ export declare function verifyCidViaP2P(cidString: string): Promise<VerificationResult>;
5
+ export declare function verifySingleFileCid(contentCid: string, gatewayBaseUrl?: string): Promise<VerificationResult>;
6
+ //# sourceMappingURL=ipfs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipfs.d.ts","sourceRoot":"","sources":["../../src/bulletin/ipfs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAoCzD,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,cAAc,GAAE,MAA+B,GAC9C,OAAO,CAAC,kBAAkB,CAAC,CAyB7B;AAED,wBAAsB,6BAA6B,CACjD,UAAU,EAAE,MAAM,EAClB,WAAW,GAAE,MAAM,EAA0D,GAC5E,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAS1C;AAED,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAkBpF;AAED,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,cAAc,GAAE,MAA+B,GAC9C,OAAO,CAAC,kBAAkB,CAAC,CAO7B"}
@@ -0,0 +1,60 @@
1
+ import type { PolkadotClient } from "polkadot-api";
2
+ import type { BulletinStoreResult, StoreSingleFileParameters, StoreChunkedFileParameters, ChunkedStoreResult, StoreBlockParameters, UploadManifestCompletedBlock } from "../types/types";
3
+ export declare const FINAL_STORE_CALL_TIMEOUT_MS = 180000;
4
+ export type AdaptiveWindowUpdateInput = {
5
+ currentWindow: number;
6
+ maxWindow: number;
7
+ cleanWaveStreak: number;
8
+ waveDurationMs: number;
9
+ hadRetryableFailures: boolean;
10
+ hadRetries: boolean;
11
+ };
12
+ export type AdaptiveWindowUpdateOutput = {
13
+ nextWindow: number;
14
+ nextCleanWaveStreak: number;
15
+ };
16
+ export type UploadWaveChunk = {
17
+ index: number;
18
+ bytes: Uint8Array;
19
+ length: number;
20
+ cid: string;
21
+ };
22
+ type WaveSubmitResult = {
23
+ retries: number;
24
+ retryableFailures: number;
25
+ attemptedSubmissions: number;
26
+ };
27
+ export declare function clampChunkSizeBytes(chunkSize: number | undefined): number;
28
+ export declare function buildOrderedStoredChunks(totalChunks: number, completedByIndex: Map<number, UploadManifestCompletedBlock>): Array<{
29
+ index: number;
30
+ cid: string;
31
+ length: number;
32
+ }>;
33
+ export declare function selectWaveChunks(queue: UploadWaveChunk[], window: number, maxInFlightBytes?: number): UploadWaveChunk[];
34
+ export declare function computeNextAdaptiveWindow(input: AdaptiveWindowUpdateInput): AdaptiveWindowUpdateOutput;
35
+ export declare function runWaveWithRetries(parameters: {
36
+ waveChunks: UploadWaveChunk[];
37
+ submitChunk: (chunk: UploadWaveChunk, retryAttempt: number) => Promise<void>;
38
+ isRetryable?: (error: unknown) => boolean;
39
+ maxRetries?: number;
40
+ retryBaseDelaysMs?: readonly number[];
41
+ jitterMs?: () => number;
42
+ }): Promise<WaveSubmitResult>;
43
+ export declare function destroyBulletinClient(client: Pick<PolkadotClient, "destroy"> | undefined | null): void;
44
+ export type TransactionWatchFailureEvent = {
45
+ type: string;
46
+ dispatchError?: {
47
+ type: string;
48
+ value?: unknown;
49
+ };
50
+ error?: unknown;
51
+ reason?: string;
52
+ };
53
+ export declare function formatTransactionWatchFailure(event: TransactionWatchFailureEvent, fallbackMessage?: string): string;
54
+ export declare function createBulletinClient(rpc: string): PolkadotClient;
55
+ export declare function storeSingleFileToBulletin(parameters: StoreSingleFileParameters): Promise<BulletinStoreResult>;
56
+ export declare function storeChunkedFileToBulletin(parameters: StoreChunkedFileParameters): Promise<ChunkedStoreResult>;
57
+ export declare function storeBlockToBulletin(parameters: StoreBlockParameters): Promise<BulletinStoreResult>;
58
+ export declare function fetchAccountNonce(rpc: string, accountAddress: string): Promise<number>;
59
+ export {};
60
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/bulletin/store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAcnD,OAAO,KAAK,EAGV,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EAEpB,4BAA4B,EAE7B,MAAM,gBAAgB,CAAC;AAiBxB,eAAO,MAAM,2BAA2B,SAAU,CAAC;AAanD,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAA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CAAC,gBAAgB,CAAC,CA8D5B;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,GACzD,IAAI,CAQN;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,4BAA4B,EACnC,eAAe,SAA8B,GAC5C,MAAM,CAWR;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAWhE;AAsJD,wBAAsB,yBAAyB,CAC7C,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,mBAAmB,CAAC,CAgB9B;AAED,wBAAsB,0BAA0B,CAC9C,UAAU,EAAE,0BAA0B,GACrC,OAAO,CAAC,kBAAkB,CAAC,CAsT7B;AAED,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,oBAAoB,GAC/B,OAAO,CAAC,mBAAmB,CAAC,CAa9B;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE5F"}
@@ -0,0 +1,9 @@
1
+ import type { UploadManifest, UploadManifestCompletedBlock, UploadManifestIdentity, UploadManifestLoadResult } from "../types/types";
2
+ export declare function createUploadFingerprint(identity: UploadManifestIdentity): string;
3
+ export declare function createUploadManifestId(identity: UploadManifestIdentity): string;
4
+ export declare function loadManifestForResume(identity: UploadManifestIdentity): Promise<UploadManifestLoadResult>;
5
+ export declare function saveManifest(manifest: UploadManifest): Promise<void>;
6
+ export declare function deleteManifest(target: string | UploadManifestIdentity | UploadManifest): Promise<void>;
7
+ export declare function completedBlocksFromManifest(manifest: UploadManifest): Map<number, UploadManifestCompletedBlock>;
8
+ export declare function cleanupStaleManifests(maxAgeMs?: number): Promise<number>;
9
+ //# sourceMappingURL=uploadManifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadManifest.d.ts","sourceRoot":"","sources":["../../src/bulletin/uploadManifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AAoIxB,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM,CAQhF;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM,CAE/E;AA0CD,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,wBAAwB,CAAC,CAOnC;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAO1E;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,GAAG,sBAAsB,GAAG,cAAc,GACvD,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,cAAc,GACvB,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAK3C;AAED,wBAAsB,qBAAqB,CACzC,QAAQ,GAAE,MAAgC,GACzC,OAAO,CAAC,MAAM,CAAC,CA8BjB"}
@@ -0,0 +1,22 @@
1
+ type UploadRetryAttemptContext = {
2
+ retry: number;
3
+ nextAttempt: number;
4
+ totalAttempts: number;
5
+ maxRetries: number;
6
+ delayMs: number;
7
+ error: unknown;
8
+ };
9
+ type RunWithUploadRetriesOptions<T> = {
10
+ maxRetries?: number;
11
+ execute: (attempt: number, totalAttempts: number) => Promise<T>;
12
+ onRetry?: (context: UploadRetryAttemptContext) => Promise<void> | void;
13
+ isRetryable?: (error: unknown) => boolean;
14
+ retryBaseDelaysMs?: readonly number[];
15
+ sleep?: (milliseconds: number) => Promise<void>;
16
+ };
17
+ export declare function normalizeUploadMaxRetries(value: number | string | undefined): number;
18
+ export declare function isRetryableUploadError(error: unknown): boolean;
19
+ export declare function isReconnectRequiredUploadError(error: unknown): boolean;
20
+ export declare function runWithUploadRetries<T>(options: RunWithUploadRetriesOptions<T>): Promise<T>;
21
+ export {};
22
+ //# sourceMappingURL=uploadRetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadRetry.d.ts","sourceRoot":"","sources":["../../src/bulletin/uploadRetry.ts"],"names":[],"mappings":"AAqDA,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,KAAK,2BAA2B,CAAC,CAAC,IAAI;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IAC1C,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD,CAAC;AAkBF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAiBpF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG9D;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGtE;AAED,wBAAsB,oBAAoB,CAAC,CAAC,EAAE,OAAO,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAmCjG"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachAuthCommands(root: Command): void;
3
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoIpC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CA+OtD"}
@@ -0,0 +1,5 @@
1
+ import type { Command } from "commander";
2
+ import type { AuthOptionValues } from "../../types/types";
3
+ export declare function addAuthOptions(cmd: Command): Command;
4
+ export declare function getAuthOptions(cmd: Command): AuthOptionValues;
5
+ //# sourceMappingURL=authOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOptions.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/authOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAqBpD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAI7D"}
@@ -0,0 +1,19 @@
1
+ import { Command } from "commander";
2
+ import type { UploadProfiler, UploadProfilerOptions } from "../../types/types";
3
+ export declare function createProfileFingerprint(input: string): string;
4
+ export declare function buildDefaultProfileOutputPath(sourcePath: string, fingerprint: string): string;
5
+ export declare function resolveBulletinCacheAssetHubRpc(options: {
6
+ rpc?: string;
7
+ env?: string;
8
+ network?: string;
9
+ bulletinRpc?: string;
10
+ }): string;
11
+ export declare function createUploadProfiler(options: UploadProfilerOptions): UploadProfiler;
12
+ /**
13
+ * Warn when the dev-default authorizer signer is used against an environment
14
+ * where the bulletin Authorizer is almost certainly *not* the default
15
+ * (previewnet). Silent on `paseo-v2` (local dev) and on explicit overrides.
16
+ */
17
+ export declare function warnIfDevKeyOnTestnet(signerKeyUri: string, environmentId: string): void;
18
+ export declare function attachBulletinCommands(root: Command): void;
19
+ //# sourceMappingURL=bulletin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulletin.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/bulletin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,KAAK,EAKV,cAAc,EACd,qBAAqB,EAMtB,MAAM,mBAAmB,CAAC;AA0E3B,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAS7F;AAED,wBAAgB,+BAA+B,CAAC,OAAO,EAAE;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,MAAM,CA+BT;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CA4GnF;AAkCD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAUvF;AAiID,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAw7B1D"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachContentCommands(root: Command): void;
3
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/content.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyBpC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,QA2FlD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachDelegateCommands(root: Command): void;
3
+ //# sourceMappingURL=delegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/delegate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgCpC,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,QAkMnD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachEscrowCommands(root: Command): void;
3
+ //# sourceMappingURL=escrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/escrow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkEpC,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,QA6ZjD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachAccountCommands(root: Command): void;
3
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BpC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,QA2OlD"}
@@ -0,0 +1,46 @@
1
+ import { Command } from "commander";
2
+ import type { CommandOptions } from "../../types/types";
3
+ /**
4
+ * Shared helpers for --json output and Commander option merging.
5
+ *
6
+ * JSON envelope convention:
7
+ * - Mutations (register, set, etc.) return { ok: true, ...fields }
8
+ * - Reads (view, info, lookup) return the data directly (no ok field)
9
+ * - Errors always return { error: "message" } on stderr with exit code 1
10
+ */
11
+ /**
12
+ * Walk up the Commander parent chain and merge options from ancestor
13
+ * commands into a single object. Child options take precedence.
14
+ */
15
+ export declare function getMergedOptions<T>(command: Command | undefined, fallback: T): CommandOptions & T;
16
+ /**
17
+ * Read the --json flag from a Commander command, checking optsWithGlobals
18
+ * first (covers parent-level flags), then local opts.
19
+ */
20
+ export declare function getJsonFlag(command: any): boolean;
21
+ /**
22
+ * Emit a JSON result to stdout if --json is active.
23
+ * Returns true if JSON was emitted, false otherwise (so the caller
24
+ * can provide human-readable output in the else branch).
25
+ */
26
+ export declare function emitJsonResult(jsonOutput: boolean, result: unknown): boolean;
27
+ /**
28
+ * Handle a command error, formatting as JSON or human-readable depending
29
+ * on the --json flag. Always exits with code 1.
30
+ */
31
+ export declare function handleCommandError(jsonOutput: boolean, error: unknown): never;
32
+ /**
33
+ * Suppress all console and stream output during a callback, restoring the
34
+ * originals afterwards. Used in --json/quiet mode so human-readable spinner
35
+ * and log noise never reaches the streams. Errors propagate to the caller,
36
+ * which reports them via handleCommandError (clean { error } JSON on stderr).
37
+ */
38
+ export declare function withCapturedConsole<T>(callback: () => Promise<T>): Promise<T>;
39
+ /**
40
+ * When --json is active, suppress human-readable output by capturing it.
41
+ * Ora caches process.stderr (the object), not .write (the method).
42
+ * withCapturedConsole replaces .write on the object, so spinner
43
+ * output is captured as long as start/succeed/fail run inside maybeQuiet.
44
+ */
45
+ export declare function maybeQuiet<T>(jsonOutput: boolean, callback: () => Promise<T>): Promise<T>;
46
+ //# sourceMappingURL=jsonHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonHelpers.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/jsonHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;;GAOG;AAEH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,GAAG,cAAc,GAAG,CAAC,CAiBjG;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAWjD;AAUD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAM5E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,CAU7E;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA8BnF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzF"}
@@ -0,0 +1,7 @@
1
+ import { Command } from "commander";
2
+ import type { AuthSource, ReadOnlyContext } from "../../types/types";
3
+ export declare function prepareReadOnlyContext(options: AuthSource & {
4
+ rpc?: string;
5
+ }): Promise<ReadOnlyContext>;
6
+ export declare function attachLookupCommands(root: Command): void;
7
+ //# sourceMappingURL=lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BpC,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EAIhB,MAAM,mBAAmB,CAAC;AAuH3B,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,UAAU,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACrC,OAAO,CAAC,eAAe,CAAC,CAwD1B;AAsBD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAwPxD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachPopCommands(root: Command): void;
3
+ //# sourceMappingURL=pop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pop.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/pop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8DpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAoDrD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachPrimaryCommands(root: Command): void;
3
+ //# sourceMappingURL=primary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/primary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBpC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,QAiFlD"}
@@ -0,0 +1,52 @@
1
+ import { type RegistrationCommandOptions } from "../../types/types";
2
+ export type TransferDestinationKind = "evm" | "substrate" | "label";
3
+ export type RegisterActionOptions = RegistrationCommandOptions & {
4
+ transfer?: boolean;
5
+ to?: string;
6
+ parent?: string;
7
+ };
8
+ export declare function classifyTransferDestination(destination: string): TransferDestinationKind;
9
+ export declare function isValidTransferDestination(destination: string): boolean;
10
+ type DomainRegistrationResult = {
11
+ ok: true;
12
+ label: string;
13
+ domain: string;
14
+ caller: string;
15
+ owner: string;
16
+ };
17
+ export type SubnameRegistrationResult = {
18
+ ok: true;
19
+ label: string;
20
+ parent: string;
21
+ domain: string;
22
+ owner: string;
23
+ };
24
+ export declare function executeRegistration(options?: Partial<RegisterActionOptions>): Promise<DomainRegistrationResult | SubnameRegistrationResult>;
25
+ export declare function executeSubnameRegistration(options: Partial<RegisterActionOptions>): Promise<SubnameRegistrationResult>;
26
+ export declare function executeRetry(options?: Partial<RegisterActionOptions>): Promise<DomainRegistrationResult>;
27
+ type ClearSummary = {
28
+ ok: true;
29
+ purged: string[];
30
+ discarded: string[];
31
+ resumed: string[];
32
+ cancelled: boolean;
33
+ };
34
+ export declare function executeClear(options?: Partial<RegisterActionOptions> & {
35
+ discard?: boolean;
36
+ register?: boolean;
37
+ }): Promise<ClearSummary>;
38
+ type CommitmentRow = {
39
+ label: string;
40
+ status: "registered" | "pending";
41
+ committedAtIso: string;
42
+ env: string;
43
+ };
44
+ export type ListSummary = {
45
+ ok: true;
46
+ records: CommitmentRow[];
47
+ };
48
+ export declare function executeList(options?: Partial<RegisterActionOptions> & {
49
+ json?: boolean;
50
+ }): Promise<ListSummary>;
51
+ export {};
52
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/register.ts"],"names":[],"mappings":"AAsCA,OAAO,EAEL,KAAK,0BAA0B,EAEhC,MAAM,mBAAmB,CAAC;AA8D3B,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,WAAW,GAAG,OAAO,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,GAAG;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAmBF,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,uBAAuB,CAIxF;AAED,wBAAgB,0BAA0B,CAAC,WAAW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jC,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,IAAI,CAAC;IACT,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B,CAAC;AAEF,wBAAsB,WAAW,CAC/B,OAAO,GAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAChE,OAAO,CAAC,WAAW,CAAC,CA0CtB"}
@@ -0,0 +1,9 @@
1
+ import { Command } from "commander";
2
+ import { type RegistrationCommandOptions } from "../../types/types";
3
+ export type RegisterActionOptions = RegistrationCommandOptions & {
4
+ transfer?: boolean;
5
+ to?: string;
6
+ parent?: string;
7
+ };
8
+ export declare function attachRegisterCommand(root: Command): void;
9
+ //# sourceMappingURL=registerCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerCommand.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/registerCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAKpE,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,GAAG;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAsBF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,QAyJlD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachStoreCommands(root: Command): void;
3
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgCpC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAqTvD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function attachTextCommands(root: Command): void;
3
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBpC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,QAyG/C"}
@@ -0,0 +1,20 @@
1
+ import { type PolkadotClient } from "polkadot-api";
2
+ import { type Address } from "viem";
3
+ import { type PolkadotApiClient } from "../client/polkadotClient";
4
+ import type { AssetHubContext, ChainContext, ReadOnlyContext } from "../types/types";
5
+ import { type DotnsContext, type OperationStatus } from "../core/context";
6
+ type BuildContextOptions = {
7
+ onStatus?: (status: OperationStatus) => void;
8
+ signal?: AbortSignal;
9
+ };
10
+ export declare function buildDotnsContext(context: AssetHubContext, opts?: BuildContextOptions): DotnsContext;
11
+ export declare function buildReadOnlyDotnsContext(context: ReadOnlyContext, opts?: BuildContextOptions): DotnsContext;
12
+ export declare function getChainTokenInfo(rawClient: PolkadotClient): Promise<{
13
+ nativeTokenDecimals: number;
14
+ nativeTokenSymbol: string;
15
+ }>;
16
+ export declare function displayAccountInformation(client: PolkadotApiClient, evmAddress: Address, substrateAddress: string, nativeTokenDecimals?: number, nativeTokenSymbol?: string): Promise<void>;
17
+ export declare function prepareAssetHubContext(options: any): Promise<AssetHubContext>;
18
+ export declare function prepareContext(options: any): Promise<ChainContext>;
19
+ export {};
20
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/cli/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAGjE,OAAO,EAAE,KAAK,O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_RPC";
5
+ readonly BULLETIN_RPC: "DOTNS_BULLETIN_RPC";
6
+ readonly MNEMONIC: "DOTNS_MNEMONIC";
7
+ readonly KEY_URI: "DOTNS_KEY_URI";
8
+ readonly KEYSTORE_PATH: "DOTNS_KEYSTORE_PATH";
9
+ readonly KEYSTORE_PASSWORD: "DOTNS_KEYSTORE_PASSWORD";
10
+ readonly COMMITMENT_BUFFER: "DOTNS_COMMITMENT_BUFFER";
11
+ readonly SIGNER: "DOTNS_SIGNER";
12
+ readonly QR_APP_ID: "DOTNS_QR_APP_ID";
13
+ readonly QR_PEOPLE_RPC: "DOTNS_QR_PEOPLE_RPC";
14
+ readonly QR_DEBUG: "DOTNS_QR_DEBUG";
15
+ };
16
+ export type SignerKind = "keystore" | "qr";
17
+ export declare const DEFAULT_QR_APP_ID = "dotns";
18
+ declare const QR_PEOPLE_STAGES: {
19
+ readonly paseo: readonly ["wss://paseo-people-next-system-rpc.polkadot.io"];
20
+ readonly preview: readonly ["wss://previewnet.substrate.dev/people"];
21
+ readonly stable: readonly ["wss://pop3-testnet.parity-lab.parity.io/people"];
22
+ };
23
+ export type QrPeopleStage = keyof typeof QR_PEOPLE_STAGES;
24
+ export declare const DEFAULT_QR_PEOPLE_STAGE: QrPeopleStage;
25
+ export declare function resolveSignerKind(maybeKind?: string): SignerKind;
26
+ export declare function resolveQrAppId(maybeAppId?: string): string;
27
+ export declare function resolveQrPeopleEndpoints(maybeStageOrUrls?: string): string[];
28
+ declare const KEYSTORE_AUTH_FLAGS: {
29
+ readonly account: "--account";
30
+ readonly password: "--password";
31
+ readonly keystorePath: "--keystore-path";
32
+ readonly mnemonic: "--mnemonic";
33
+ readonly keyUri: "--key-uri";
34
+ };
35
+ export type KeystoreAuthOption = keyof typeof KEYSTORE_AUTH_FLAGS;
36
+ export declare function assertSignerOptions(options: {
37
+ signer?: string;
38
+ } & Partial<Record<KeystoreAuthOption, unknown>>): void;
39
+ export declare function resolveDotnsEnvironment(maybeEnvironment?: string): DotnsEnvironmentConfig;
40
+ export declare function resolveRpc(maybeRpc?: string, maybeEnvironment?: string): string;
41
+ /**
42
+ * Resolve the bulletin WebSocket RPC endpoint.
43
+ *
44
+ * Precedence: explicit argument => `DOTNS_BULLETIN_RPC` env var => active
45
+ * environment's `bulletinRpc`.
46
+ */
47
+ export declare function resolveBulletinRpc(maybeRpc?: string, maybeEnvironment?: string): string;
48
+ export declare function resolveKeystorePath(maybeDir?: string): string;
49
+ export {};
50
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/cli/env.ts"],"names":[],"mappings":"AAGA,OAAO,EAA6B,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5F,eAAO,MAAM,GAAG;;;;;;;;;;;;;CAeN,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,IAAI,CAAC;AAM3C,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAKzC,QAAA,MAAM,gBAAgB;;;;CAIZ,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAC1D,eAAO,MAAM,uBAAuB,EAAE,aAAuB,CAAC;AAE9D,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,CAGhE;AAED,wBAAgB,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAiC5E;AAGD,QAAA,MAAM,mBAAmB;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAOlE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,GAC1E,IAAI,CAgBN;AAMD,wBAAgB,uBAAuB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAEzF;AAED,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAS/E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CASvF;AAUD,wBAAgB,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7D"}
@@ -0,0 +1,5 @@
1
+ export declare class CliExit extends Error {
2
+ code: number;
3
+ constructor(code: number, message?: string);
4
+ }
5
+ //# sourceMappingURL=exit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../src/cli/exit.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAQ,SAAQ,KAAK;IAEvB,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM;CAInB"}
@@ -0,0 +1,2 @@
1
+ export declare function main(argv?: string[]): Promise<number>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAGA,wBAAsB,IAAI,CAAC,IAAI,WAAe,mBAS7C"}
@@ -0,0 +1,6 @@
1
+ export declare function validateNewKeystorePassword(password: string): string;
2
+ export declare function readSecret(promptText: string): Promise<string>;
3
+ export declare function readLine(promptText: string): Promise<string>;
4
+ export declare function promptNewPassword(): Promise<string>;
5
+ export declare function getPasswordForDecrypt(passwordOverride?: string): Promise<string>;
6
+ //# sourceMappingURL=io.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/cli/io.ts"],"names":[],"mappings":"AAGA,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqDpE;AAED,wBAAsB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBlE;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAMzD;AAED,wBAAsB,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAQtF"}
@@ -0,0 +1,4 @@
1
+ import type { DotnsKeystore } from "./types";
2
+ export declare function encryptKeystorePayload(payload: object, password: string): DotnsKeystore;
3
+ export declare function decryptKeystorePayload(ks: DotnsKeystore, password: string): any;
4
+ //# sourceMappingURL=crypto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/cli/keystore/crypto.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAyB7C,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CAkCvF;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,GAAG,CAkC/E"}
@@ -0,0 +1,6 @@
1
+ import type { DotnsKeystore } from "./types";
2
+ export declare function pathExists(p: string): Promise<boolean>;
3
+ export declare function readKeystoreFile(keystorePath: string): Promise<DotnsKeystore>;
4
+ export declare function writeKeystoreFile(keystorePath: string, ks: DotnsKeystore): Promise<void>;
5
+ export declare function deleteKeystoreFile(keystorePath: string): Promise<void>;
6
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/cli/keystore/file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAsB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO5D;AAED,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CASnF;AAED,wBAAsB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ9F;AAED,wBAAsB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE5E"}
@@ -0,0 +1,16 @@
1
+ import type { KeystorePayload } from "./types";
2
+ /**
3
+ * Normalize and validate account name.
4
+ * Rejects names that could cause issues.
5
+ *
6
+ * Invalid patterns:
7
+ * - Empty or whitespace-only names
8
+ * - Names containing path separators (/ or \)
9
+ * - Names that are just dots (. or ..)
10
+ * - Names longer than 255 characters
11
+ * - Names with control characters or null bytes
12
+ * - Names with leading/trailing dots or spaces
13
+ */
14
+ export declare function normalizeAccountName(input: any): string;
15
+ export declare function normalizePayload(payload: any): KeystorePayload;
16
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/cli/keystore/payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,SAAS,CAAC;AAE3D;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAsCvD;AASD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,GAAG,eAAe,CA6D9D"}