@parity/dotns-cli 0.7.5 → 0.7.9

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 (145) 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/cli.js +27 -2
  80. package/dist/client/polkadotClient.d.ts +38 -0
  81. package/dist/client/polkadotClient.d.ts.map +1 -0
  82. package/dist/commands/accountChecks.d.ts +6 -0
  83. package/dist/commands/accountChecks.d.ts.map +1 -0
  84. package/dist/commands/auth.d.ts +8 -0
  85. package/dist/commands/auth.d.ts.map +1 -0
  86. package/dist/commands/bulletin.d.ts +19 -0
  87. package/dist/commands/bulletin.d.ts.map +1 -0
  88. package/dist/commands/contentHash.d.ts +15 -0
  89. package/dist/commands/contentHash.d.ts.map +1 -0
  90. package/dist/commands/delegate.d.ts +18 -0
  91. package/dist/commands/delegate.d.ts.map +1 -0
  92. package/dist/commands/escrow.d.ts +51 -0
  93. package/dist/commands/escrow.d.ts.map +1 -0
  94. package/dist/commands/lookup.d.ts +12 -0
  95. package/dist/commands/lookup.d.ts.map +1 -0
  96. package/dist/commands/register.d.ts +68 -0
  97. package/dist/commands/register.d.ts.map +1 -0
  98. package/dist/commands/registrationManifest.d.ts +68 -0
  99. package/dist/commands/registrationManifest.d.ts.map +1 -0
  100. package/dist/commands/resolverAuth.d.ts +10 -0
  101. package/dist/commands/resolverAuth.d.ts.map +1 -0
  102. package/dist/commands/reverseRecord.d.ts +9 -0
  103. package/dist/commands/reverseRecord.d.ts.map +1 -0
  104. package/dist/commands/storeManagement.d.ts +17 -0
  105. package/dist/commands/storeManagement.d.ts.map +1 -0
  106. package/dist/commands/textRecord.d.ts +17 -0
  107. package/dist/commands/textRecord.d.ts.map +1 -0
  108. package/dist/core/bulletin.d.ts +4 -0
  109. package/dist/core/bulletin.d.ts.map +1 -0
  110. package/dist/core/bulletin.js +38679 -0
  111. package/dist/core/context.d.ts +43 -0
  112. package/dist/core/context.d.ts.map +1 -0
  113. package/dist/core/index.d.ts +27 -0
  114. package/dist/core/index.d.ts.map +1 -0
  115. package/dist/core/index.js +20045 -0
  116. package/dist/core/keyring.d.ts +10 -0
  117. package/dist/core/keyring.d.ts.map +1 -0
  118. package/dist/core/keyring.js +18142 -0
  119. package/dist/simpleExamples/00_shared.d.ts +21 -0
  120. package/dist/simpleExamples/00_shared.d.ts.map +1 -0
  121. package/dist/simpleExamples/01_info.d.ts +2 -0
  122. package/dist/simpleExamples/01_info.d.ts.map +1 -0
  123. package/dist/simpleExamples/02_register_regular.d.ts +2 -0
  124. package/dist/simpleExamples/02_register_regular.d.ts.map +1 -0
  125. package/dist/simpleExamples/03_register_governance.d.ts +2 -0
  126. package/dist/simpleExamples/03_register_governance.d.ts.map +1 -0
  127. package/dist/simpleExamples/04_lookup_and_list.d.ts +2 -0
  128. package/dist/simpleExamples/04_lookup_and_list.d.ts.map +1 -0
  129. package/dist/simpleExamples/05_set_content_and_transfer.d.ts +2 -0
  130. package/dist/simpleExamples/05_set_content_and_transfer.d.ts.map +1 -0
  131. package/dist/simpleExamples/06_upload_to_bulletin.d.ts +2 -0
  132. package/dist/simpleExamples/06_upload_to_bulletin.d.ts.map +1 -0
  133. package/dist/types/types.d.ts +952 -0
  134. package/dist/types/types.d.ts.map +1 -0
  135. package/dist/utils/address.d.ts +2 -0
  136. package/dist/utils/address.d.ts.map +1 -0
  137. package/dist/utils/constants.d.ts +182 -0
  138. package/dist/utils/constants.d.ts.map +1 -0
  139. package/dist/utils/contractInteractions.d.ts +12 -0
  140. package/dist/utils/contractInteractions.d.ts.map +1 -0
  141. package/dist/utils/formatting.d.ts +11 -0
  142. package/dist/utils/formatting.d.ts.map +1 -0
  143. package/dist/utils/validation.d.ts +10 -0
  144. package/dist/utils/validation.d.ts.map +1 -0
  145. package/package.json +12 -6
@@ -0,0 +1,29 @@
1
+ export type StoredAuth = {
2
+ mnemonic?: string;
3
+ keyUri?: string;
4
+ };
5
+ export type KeystorePayload = {
6
+ version: 2;
7
+ defaultAccount: string;
8
+ accounts: Record<string, StoredAuth>;
9
+ updatedAtIso: string;
10
+ };
11
+ export type DotnsKeystore = {
12
+ version: 1;
13
+ kdf: {
14
+ name: "scrypt";
15
+ saltB64: string;
16
+ cost: number;
17
+ blockSize: number;
18
+ parallelization: number;
19
+ keyLen: number;
20
+ };
21
+ cipher: {
22
+ name: "aes-256-gcm";
23
+ ivB64: string;
24
+ tagB64: string;
25
+ };
26
+ ciphertextB64: string;
27
+ createdAtIso: string;
28
+ };
29
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/keystore/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,CAAC,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,CAAC,CAAC;IACX,GAAG,EAAE;QACH,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,aAAa,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ProofOfPersonhoodStatus } from "../types/types";
2
+ export declare function generateRandomLabel(status: ProofOfPersonhoodStatus): string;
3
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/cli/labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAmC3E"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function createProgram(): Command;
3
+ //# sourceMappingURL=program.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,wBAAgB,aAAa,YAqB5B"}
@@ -0,0 +1,9 @@
1
+ import type { SignerHandle } from "../core/keyring";
2
+ export declare function createQrSigner(options?: {
3
+ appId?: string;
4
+ hostName?: string;
5
+ endpoints?: string[];
6
+ pairTimeoutMs?: number;
7
+ fresh?: boolean;
8
+ }): Promise<SignerHandle>;
9
+ //# sourceMappingURL=qrSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qrSigner.d.ts","sourceRoot":"","sources":["../../src/cli/qrSigner.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAiLpD,wBAAsB,cAAc,CAAC,OAAO,CAAC,EAAE;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,YAAY,CAAC,CAuCxB"}
@@ -0,0 +1,26 @@
1
+ import type { BulletinReporterMode } from "../types/types";
2
+ export type ResolvedReporterMode = "interactive" | "stream" | "quiet";
3
+ export type ReporterTask = {
4
+ update: (message: string) => void;
5
+ succeed: (message?: string) => void;
6
+ warn: (message?: string) => void;
7
+ fail: (message?: string) => void;
8
+ stop: () => void;
9
+ };
10
+ export type CliReporter = {
11
+ mode: ResolvedReporterMode;
12
+ task: (message: string) => ReporterTask;
13
+ line: (message: string) => void;
14
+ detail: (message: string) => void;
15
+ success: (message: string) => void;
16
+ warn: (message: string) => void;
17
+ fail: (message: string) => void;
18
+ };
19
+ export declare function printHumanLine(message: string): void;
20
+ export declare function printHumanDetail(message: string): void;
21
+ export declare function printHumanSuccess(message: string): void;
22
+ export declare function printHumanFailure(message: string): void;
23
+ export declare function resolveReporterMode(mode: BulletinReporterMode | undefined): ResolvedReporterMode;
24
+ export declare function createCliReporter(mode: BulletinReporterMode | undefined): CliReporter;
25
+ export declare function withConsoleToStderr<T>(callback: () => Promise<T>): Promise<T>;
26
+ //# sourceMappingURL=reporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../../src/cli/reporter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;IACxC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAqBF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEvD;AAUD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,SAAS,GAAG,oBAAoB,CAUhG;AA4DD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,GAAG,SAAS,GAAG,WAAW,CA0DrF;AAED,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA+BnF"}
@@ -0,0 +1,15 @@
1
+ import { type Address, type Hex } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ export declare function resolveTransferRecipient(ctx: DotnsContext, recipientIdentifier: string): Promise<Address>;
4
+ export type TransferResult = {
5
+ name: string;
6
+ from: Address;
7
+ to: Address;
8
+ feeWei: bigint;
9
+ txHash: Hex;
10
+ };
11
+ export type TransferNameOptions = {
12
+ syncLabel?: boolean;
13
+ };
14
+ export declare function transferName(ctx: DotnsContext, name: string, recipient: Address, opts?: TransferNameOptions): Promise<TransferResult>;
15
+ //# sourceMappingURL=transfer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/cli/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AACvF,OAAO,EAAE,KAAK,YAAY,EAA8B,MAAM,iBAAiB,CAAC;AAwBhF,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,YAAY,EACjB,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,OAAO,CAAC,CAqBlB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AA0BF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAMF,wBAAsB,YAAY,CAChC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,OAAO,EAClB,IAAI,GAAE,mBAAwB,GAC7B,OAAO,CAAC,cAAc,CAAC,CA6CzB"}
@@ -0,0 +1,4 @@
1
+ import type { Ora } from "ora";
2
+ import type { OperationStatus } from "../core/context";
3
+ export declare function makeOnStatus(spinner?: Ora, operationName?: string): (status: OperationStatus) => void;
4
+ //# sourceMappingURL=txStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"txStatus.d.ts","sourceRoot":"","sources":["../../src/cli/txStatus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AA0EvD,wBAAgB,YAAY,CAC1B,OAAO,CAAC,EAAE,GAAG,EACb,aAAa,CAAC,EAAE,MAAM,GACrB,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAwBnC"}
@@ -0,0 +1,4 @@
1
+ export declare function printCommandHeader(action: string, target?: string): void;
2
+ export declare function stepOk(label: string): void;
3
+ export declare function step<T>(label: string, fn: () => Promise<T>): Promise<T>;
4
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/cli/ui.ts"],"names":[],"mappings":"AAQA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAKxE;AAMD,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,QAEnC;AAED,wBAAsB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAK7E"}
@@ -0,0 +1,4 @@
1
+ import { type EscrowPositionView, type RefundEntryView } from "../../commands/escrow";
2
+ export declare function formatPositionsTable(positions: readonly EscrowPositionView[], nowSeconds: bigint): string[];
3
+ export declare function formatRefundEntryLine(entry: RefundEntryView): string;
4
+ //# sourceMappingURL=escrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../../../src/cli/views/escrow.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAY/B,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,UAAU,EAAE,MAAM,GACjB,MAAM,EAAE,CAmBV;AAGD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CASpE"}
package/dist/cli.js CHANGED
@@ -27616,7 +27616,7 @@ function setActiveDotnsEnvironment(value) {
27616
27616
  function getActiveDotnsEnvironment() {
27617
27617
  return DOTNS_ENVIRONMENTS[activeDotnsEnvironment];
27618
27618
  }
27619
- var DOTLI_GATEWAYS, PASEO_ASSET_HUB_URL = "wss://paseo-asset-hub-next-rpc.polkadot.io", PREVIEWNET_ASSET_HUB_URL = "wss://previewnet.substrate.dev/asset-hub", PASEO_IPFS_GATEWAY_URL = "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs", PERSONHOOD_PRECOMPILE_ADDRESS = "0x000000000000000000000000000000000a010000", PERSONHOOD_CONTEXT = "0x646f746e73000000000000000000000000000000000000000000000000000000", DEFAULT_BULLETIN_RPC = "wss://paseo-bulletin-next-rpc.polkadot.io", DEFAULT_CHUNK_SIZE_BYTES, MAX_SINGLE_UPLOAD_SIZE_BYTES, DEFAULT_UPLOAD_MAX_RETRIES = 5, MAX_UPLOAD_MAX_RETRIES = 20, UPLOAD_RETRY_BASE_DELAYS_MS, DEFAULT_AUTHORIZATION_TRANSACTIONS = 1e6, DEFAULT_AUTHORIZATION_BYTES, DEFAULT_VERIFICATION_GATEWAY, DOT_NODE = "0x3fce7d1364a893e213bc4212792b517ffc88f5b13b86c8ef9c8d390c3a1370ce", DEFAULT_NATIVE_TOKEN_DECIMALS = 10, EVM_TOKEN_DECIMALS = 18, DEFAULT_MNEMONIC = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", MIN_KEYSTORE_PASSWORD_LENGTH = 6, DEFAULT_BULLETIN_AUTHORIZER_KEY_URI = "//Eve", BULLETIN_BLOCK_TIME_MS = 6000, OPERATION_TIMEOUT_MILLISECONDS = 300000, DEFAULT_COMMITMENT_BUFFER_SECONDS = 6, COMMITMENT_POLL_TIMEOUT_MS = 30000, COMMITMENT_POLL_INTERVAL_MS = 2000, DOTNS_REGISTRAR_CONTROLLER_ABI, DOTNS_REGISTRY_ABI, DOTNS_REGISTRAR_ABI, DOTNS_CONTENT_RESOLVER_ABI, DOTNS_RESOLVER_ABI, DOTNS_REVERSE_RESOLVER_ABI, DOTNS_POP_RESOLVER_ABI, DOTNS_NAME_ESCROW_ABI, POP_RULES_ABI, STORE_FACTORY_ABI, LABEL_STORE_ABI, USER_STORE_ABI, DOTNS_POP_CONTROLLER_ABI, PERSONHOOD_ABI, RPC_ENDPOINTS, PASEO_BULLETIN_PEERS, DOTNS_ENVIRONMENT_IDS, SHARED_MULTICALL3 = "0xFc430CcCdb9335C1907fc72e93eb1f48e847319C", DOTNS_ENVIRONMENTS, DEFAULT_DOTNS_ENVIRONMENT = "paseo-v2", activeDotnsEnvironment;
27619
+ var DOTLI_GATEWAYS, PASEO_ASSET_HUB_URL = "wss://paseo-asset-hub-next-rpc.polkadot.io", PREVIEWNET_ASSET_HUB_URL = "wss://previewnet.substrate.dev/asset-hub", PASEO_IPFS_GATEWAY_URL = "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs", DEVNET_ASSET_HUB_URL = "wss://asset-hub-paseo-rpc.n.dwellir.com", DEVNET_BULLETIN_RPC = "wss://bulletin-paseo.tservices.es:8443", DEVNET_IPFS_GATEWAY_URL = "https://devnet-ipfs.api.polkadotcommunity.foundation/ipfs", PERSONHOOD_PRECOMPILE_ADDRESS = "0x000000000000000000000000000000000a010000", PERSONHOOD_CONTEXT = "0x646f746e73000000000000000000000000000000000000000000000000000000", DEFAULT_BULLETIN_RPC = "wss://paseo-bulletin-next-rpc.polkadot.io", DEFAULT_CHUNK_SIZE_BYTES, MAX_SINGLE_UPLOAD_SIZE_BYTES, DEFAULT_UPLOAD_MAX_RETRIES = 5, MAX_UPLOAD_MAX_RETRIES = 20, UPLOAD_RETRY_BASE_DELAYS_MS, DEFAULT_AUTHORIZATION_TRANSACTIONS = 1e6, DEFAULT_AUTHORIZATION_BYTES, DEFAULT_VERIFICATION_GATEWAY, DOT_NODE = "0x3fce7d1364a893e213bc4212792b517ffc88f5b13b86c8ef9c8d390c3a1370ce", DEFAULT_NATIVE_TOKEN_DECIMALS = 10, EVM_TOKEN_DECIMALS = 18, DEFAULT_MNEMONIC = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", MIN_KEYSTORE_PASSWORD_LENGTH = 6, DEFAULT_BULLETIN_AUTHORIZER_KEY_URI = "//Eve", BULLETIN_BLOCK_TIME_MS = 6000, OPERATION_TIMEOUT_MILLISECONDS = 300000, DEFAULT_COMMITMENT_BUFFER_SECONDS = 6, COMMITMENT_POLL_TIMEOUT_MS = 30000, COMMITMENT_POLL_INTERVAL_MS = 2000, DOTNS_REGISTRAR_CONTROLLER_ABI, DOTNS_REGISTRY_ABI, DOTNS_REGISTRAR_ABI, DOTNS_CONTENT_RESOLVER_ABI, DOTNS_RESOLVER_ABI, DOTNS_REVERSE_RESOLVER_ABI, DOTNS_POP_RESOLVER_ABI, DOTNS_NAME_ESCROW_ABI, POP_RULES_ABI, STORE_FACTORY_ABI, LABEL_STORE_ABI, USER_STORE_ABI, DOTNS_POP_CONTROLLER_ABI, PERSONHOOD_ABI, RPC_ENDPOINTS, PASEO_BULLETIN_PEERS, DOTNS_ENVIRONMENT_IDS, SHARED_MULTICALL3 = "0xFc430CcCdb9335C1907fc72e93eb1f48e847319C", DOTNS_ENVIRONMENTS, DEFAULT_DOTNS_ENVIRONMENT = "paseo-v2", activeDotnsEnvironment;
27620
27620
  var init_constants2 = __esm(() => {
27621
27621
  init_validation();
27622
27622
  init_DotnsRegistrarController();
@@ -27700,7 +27700,7 @@ var init_constants2 = __esm(() => {
27700
27700
  "/dns4/paseo-bulletin-next-rpc-node-0.polkadot.io/tcp/443/wss/p2p/12D3KooWS4ptBbHGritdb1T7JPxKT2EN7FXvqq9rUp12jUvjnqQ1",
27701
27701
  "/dns4/paseo-bulletin-next-rpc-node-1.polkadot.io/tcp/443/wss/p2p/12D3KooWKMc4jJsU7fdEsis4AsM8Assk5jFqhEUEa2ZSiWJGKpfv"
27702
27702
  ];
27703
- DOTNS_ENVIRONMENT_IDS = ["paseo-v2", "previewnet"];
27703
+ DOTNS_ENVIRONMENT_IDS = ["paseo-v2", "previewnet", "devnet"];
27704
27704
  DOTNS_ENVIRONMENTS = {
27705
27705
  "paseo-v2": {
27706
27706
  id: "paseo-v2",
@@ -27751,6 +27751,31 @@ var init_constants2 = __esm(() => {
27751
27751
  bulletinRpc: "wss://previewnet.substrate.dev/bulletin",
27752
27752
  ipfsGatewayUrl: "https://previewnet.substrate.dev/ipfs",
27753
27753
  bulletinP2pPeers: []
27754
+ },
27755
+ devnet: {
27756
+ id: "devnet",
27757
+ label: "Products Devnet (Paseo Asset Hub)",
27758
+ aliases: ["devnet", "dev", "products-devnet"],
27759
+ rpc: DEVNET_ASSET_HUB_URL,
27760
+ blockExplorerUrl: "",
27761
+ previewBaseUrl: null,
27762
+ contracts: {
27763
+ DOTNS_REGISTRAR: "0x7f0dF075cc8B7FE7218E90fFC5a553450dB120F3",
27764
+ DOTNS_REGISTRAR_CONTROLLER: "0x45fDEa4Ad7b8607Fc22DBC3DBE3cD8b350F8bede",
27765
+ DOTNS_REGISTRY: "0x527b08a640b527a3dae0C4BE04D7344E430B6E50",
27766
+ DOTNS_RESOLVER: "0xC28796526Bf3E9295f09655a1001F30f77AfCF0D",
27767
+ DOTNS_REVERSE_RESOLVER: "0xfd2594FcF920B38A970011C486e1E3041563147F",
27768
+ DOTNS_POP_RESOLVER: "0x92Fd4195Be40A266d2914FB64C63cC50715dB1D8",
27769
+ DOTNS_CONTENT_RESOLVER: "0x326bdE29315199c814B1c58b431D84D16EA5cE41",
27770
+ STORE_FACTORY: "0xD81DC23FAa69B311C1FC553Ea63798772e7D253D",
27771
+ DOTNS_RULES: "0x2181a14081fF2D4477BAA8FB1aEB4C9c44F5F2b0",
27772
+ DOTNS_POP_CONTROLLER: "0x1884819F6747576883805Cb2b7BB68d29484d1b0",
27773
+ DOTNS_NAME_ESCROW: "0xfEdBe7a7F32017F6bCAA3109bE2EaC7D59E319E5",
27774
+ MULTICALL3: "0x929EdB8d61461c29d07deC834ef747EbFDcf0B74"
27775
+ },
27776
+ bulletinRpc: DEVNET_BULLETIN_RPC,
27777
+ ipfsGatewayUrl: DEVNET_IPFS_GATEWAY_URL,
27778
+ bulletinP2pPeers: []
27754
27779
  }
27755
27780
  };
27756
27781
  activeDotnsEnvironment = DEFAULT_DOTNS_ENVIRONMENT;
@@ -0,0 +1,38 @@
1
+ import type { Paseo } from "@polkadot-api/descriptors";
2
+ import { type PolkadotSigner, type TypedApi } from "polkadot-api";
3
+ import { type Address, type Hash } from "viem";
4
+ import type { ReviveCallResult, SubstrateWeight, TransactionStatus } from "../types/types";
5
+ export type PolkadotApiClient = TypedApi<Paseo>;
6
+ export declare function convertToHexString(value: unknown): `0x${string}`;
7
+ export declare class ReviveClientWrapper {
8
+ client: PolkadotApiClient;
9
+ private mappedAccounts;
10
+ private static readonly DRY_RUN_STORAGE_LIMIT;
11
+ private static readonly DRY_RUN_WEIGHT_LIMIT;
12
+ constructor(client: PolkadotApiClient);
13
+ getEvmAddress(substrateAddress: string): Promise<Address>;
14
+ getSubstrateAddress(evmAddress: Address): Promise<string>;
15
+ resolveOwnEvmAddress(substrateAddress: string): Promise<Address>;
16
+ performDryRunCall(originSubstrateAddress: string, contractAddress: Address, valueInNativeUnits: bigint, encodedData: `0x${string}`): Promise<ReviveCallResult>;
17
+ estimateGasForCall(originSubstrateAddress: string, contractAddress: Address, valueInNativeUnits: bigint, encodedData: `0x${string}`): Promise<{
18
+ success: boolean;
19
+ gasConsumed: SubstrateWeight;
20
+ storageDeposit: bigint;
21
+ gasRequired: SubstrateWeight;
22
+ revertData: `0x${string}`;
23
+ revertFlags: bigint;
24
+ } | {
25
+ success: boolean;
26
+ gasConsumed: SubstrateWeight;
27
+ storageDeposit: bigint;
28
+ gasRequired: SubstrateWeight;
29
+ revertData?: undefined;
30
+ revertFlags?: undefined;
31
+ }>;
32
+ checkIfAccountMapped(address: string): Promise<boolean>;
33
+ ensureAccountMapped(substrateAddress: string, signer: PolkadotSigner, signal?: AbortSignal): Promise<boolean | undefined>;
34
+ private fetchNextNonce;
35
+ private signAndSubmitExtrinsic;
36
+ submitTransaction(contractAddress: Address, valueInNativeUnits: bigint, encodedData: `0x${string}`, signerSubstrateAddress: string, signer: PolkadotSigner, statusCallback: (status: TransactionStatus) => void, signal?: AbortSignal): Promise<Hash>;
37
+ }
38
+ //# sourceMappingURL=polkadotClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polkadotClient.d.ts","sourceRoot":"","sources":["../../src/client/polkadotClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAa,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG3F,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAgChD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,MAAM,EAAE,CAgBhE;AA4DD,qBAAa,mBAAmB;IACvB,MAAM,EAAE,iBAAiB,CAAC;IACjC,OAAO,CAAC,cAAc,CAA0B;IAEhD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAiC;IAE9E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAG1C;gBAEU,MAAM,EAAE,iBAAiB;IAI/B,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMzD,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAQzD,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAehE,iBAAiB,CACrB,sBAAsB,EAAE,MAAM,EAC9B,eAAe,EAAE,OAAO,EACxB,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,KAAK,MAAM,EAAE,GACzB,OAAO,CAAC,gBAAgB,CAAC;IAkDtB,kBAAkB,CACtB,sBAAsB,EAAE,MAAM,EAC9B,eAAe,EAAE,OAAO,EACxB,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,KAAK,MAAM,EAAE;;;;;;;;;;;;;;;IA4BtB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWvD,mBAAmB,CACvB,gBAAgB,EAAE,MAAM,EACxB,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;YAwCjB,cAAc;YAKd,sBAAsB;IAiF9B,iBAAiB,CACrB,eAAe,EAAE,OAAO,EACxB,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,KAAK,MAAM,EAAE,EAC1B,sBAAsB,EAAE,MAAM,EAC9B,MAAM,EAAE,cAAc,EACtB,cAAc,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,EACnD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC;CAgDjB"}
@@ -0,0 +1,6 @@
1
+ import { type DotnsContext } from "../core/context";
2
+ import type { IsMappedResult, IsWhitelistedResult, WhitelistResult } from "../types/types";
3
+ export declare function checkAccountMapped(ctx: DotnsContext, targetAddress: string): Promise<IsMappedResult>;
4
+ export declare function getWhitelistStatus(ctx: DotnsContext, targetAddress: string): Promise<IsWhitelistedResult>;
5
+ export declare function whitelistAddress(ctx: DotnsContext, targetAddress: string, enable?: boolean): Promise<WhitelistResult>;
6
+ //# sourceMappingURL=accountChecks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountChecks.d.ts","sourceRoot":"","sources":["../../src/commands/accountChecks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,eAAe,EAEhB,MAAM,gBAAgB,CAAC;AAexB,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAIzB;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,mBAAmB,CAAC,CAU9B;AAED,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,OAAc,GACrB,OAAO,CAAC,eAAe,CAAC,CAsB1B"}
@@ -0,0 +1,8 @@
1
+ import type { KeyringPair } from "@polkadot/keyring/types";
2
+ import type { PolkadotSigner } from "polkadot-api";
3
+ import type { ResolvedAuthSource, AuthSource } from "../types/types";
4
+ export declare function createAccountFromSource(source: string, isKeyUri: boolean): Promise<KeyringPair>;
5
+ export declare function createSubstrateSigner(keypair: KeyringPair): PolkadotSigner;
6
+ export declare function resolveAuthSourceReadOnly(): Promise<ResolvedAuthSource>;
7
+ export declare function resolveAuthSource(opts: AuthSource): Promise<ResolvedAuthSource>;
8
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAUnD,OAAO,KAAK,EAAE,kBAAkB,EAA0B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7F,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,wBAI9E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAE1E;AAqHD,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAU7E;AAUD,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAyCrF"}
@@ -0,0 +1,19 @@
1
+ import type { PolkadotSigner } from "polkadot-api";
2
+ import type { ValidatePathResult, AuthorizeAccountOptions, AuthorizeAccountResult, AuthorizationStatus, RefreshAccountAuthorizationOptions, StoreDirectoryOptions, StoreDirectoryResult, UploadChunkedBlocksOptions, UploadSingleBlockOptions, AuthorizationState, BulletinPhaseHandler } from "../types/types";
3
+ export declare function clampU32(value: bigint | number, fieldName: string): number;
4
+ export declare function detectBulletinTestnet(rpc: string): Promise<boolean>;
5
+ export declare function estimateBlockDate(currentBlock: number, targetBlock: number): Date;
6
+ export declare function formatEstimatedDate(date: Date): string;
7
+ export declare function formatExpirationDisplay(currentBlock: number, expirationBlock: number): string;
8
+ export declare function expirationToISOString(currentBlock: number | undefined, expirationBlock: number | undefined): string | null;
9
+ export declare function validateAndReadPath(inputPath: string, onPhase?: BulletinPhaseHandler): Promise<ValidatePathResult>;
10
+ export declare function authorizeAccount(options: AuthorizeAccountOptions): Promise<AuthorizeAccountResult>;
11
+ export declare function refreshAccountAuthorization(options: RefreshAccountAuthorizationOptions): Promise<AuthorizeAccountResult>;
12
+ export declare function checkAuthorization(rpc: string, accountAddress: string): Promise<AuthorizationStatus>;
13
+ export declare function ensureAccountAuthorized(bulletinRpc: string, accountAddress: string): Promise<AuthorizationState>;
14
+ export declare function uploadSingleBlock(bulletinRpc: string, signer: PolkadotSigner, fileBytes: Uint8Array, options?: UploadSingleBlockOptions): Promise<string>;
15
+ export declare function uploadChunkedBlocks(bulletinRpc: string, signer: PolkadotSigner, filePath: string, chunkSizeBytes: number, fileSize: number, accountAddress: string, options?: UploadChunkedBlocksOptions): Promise<string>;
16
+ export declare function storeDirectory(bulletinRpc: string, signer: PolkadotSigner, directoryPath: string, options?: StoreDirectoryOptions): Promise<StoreDirectoryResult>;
17
+ export { verifySingleFileCid } from "../bulletin/ipfs";
18
+ export declare function generateContenthash(contentCid: string): string;
19
+ //# sourceMappingURL=bulletin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulletin.d.ts","sourceRoot":"","sources":["../../src/commands/bulletin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,cAAc,CAAC;AAwBnE,OAAO,KAAK,EACV,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,kCAAkC,EAClC,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAE1B,wBAAwB,EAExB,kBAAkB,EAElB,oBAAoB,EAIrB,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAW1E;AAoBD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAazE;AAmED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAGjF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAOtD;AAED,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAE7F;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,MAAM,GAAG,IAAI,CAGf;AA+ND,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,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contenthash: string | null;
5
+ cid: string | null;
6
+ };
7
+ export type ContentSetResult = {
8
+ domain: string;
9
+ cid: string;
10
+ contenthash: string;
11
+ txHash: string;
12
+ };
13
+ export declare function getContentHash(ctx: DotnsContext, name: string): Promise<ContentViewResult>;
14
+ export declare function setContentHash(ctx: DotnsContext, name: string, cid: string): Promise<ContentSetResult>;
15
+ //# sourceMappingURL=contentHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentHash.d.ts","sourceRoot":"","sources":["../../src/commands/contentHash.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAiBjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAsChG;AAED,wBAAsB,cAAc,CAClC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,gBAAgB,CAAC,CAuB3B"}
@@ -0,0 +1,18 @@
1
+ import { type Address } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ export type DelegateResult = {
4
+ name: string;
5
+ delegate: Address;
6
+ txHash: string;
7
+ };
8
+ export type RecordDelegateResult = {
9
+ operator: Address;
10
+ approved: boolean;
11
+ txHash: string;
12
+ };
13
+ export declare function setNameDelegate(ctx: DotnsContext, name: string, delegate: Address): Promise<DelegateResult>;
14
+ export declare function revokeNameDelegate(ctx: DotnsContext, name: string): Promise<DelegateResult>;
15
+ export declare function getNameDelegate(ctx: DotnsContext, name: string): Promise<Address | null>;
16
+ export declare function setRecordDelegate(ctx: DotnsContext, operator: Address, approved: boolean): Promise<RecordDelegateResult>;
17
+ export declare function getRecordDelegate(ctx: DotnsContext, operator: Address): Promise<boolean>;
18
+ //# sourceMappingURL=delegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/commands/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,KAAK,YAAY,EAA8B,MAAM,iBAAiB,CAAC;AAKhF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAuBF,wBAAsB,eAAe,CACnC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAEjG;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAY9F;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,oBAAoB,CAAC,CAY/B;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAS9F"}
@@ -0,0 +1,51 @@
1
+ import { type Address } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ export type EscrowPositionView = {
4
+ domain: string;
5
+ tokenId: bigint;
6
+ recipient: Address;
7
+ asset: Address;
8
+ amount: bigint;
9
+ withdrawAvailableAt: bigint;
10
+ released: boolean;
11
+ claimed: boolean;
12
+ };
13
+ export type RefundEntryView = {
14
+ entryId: bigint;
15
+ recipient: Address;
16
+ amount: bigint;
17
+ availableAt: bigint;
18
+ tokenId: bigint;
19
+ };
20
+ export type RefundsListResult = {
21
+ recipient: Address;
22
+ total: bigint;
23
+ page: {
24
+ offset: number;
25
+ limit: number;
26
+ };
27
+ entries: RefundEntryView[];
28
+ };
29
+ export declare function getEscrowPosition(ctx: DotnsContext, label: string): Promise<EscrowPositionView | null>;
30
+ export declare function listEscrowPositions(ctx: DotnsContext, recipient: Address, names: string[]): Promise<EscrowPositionView[]>;
31
+ export declare function isRefundableDeposit(position: {
32
+ amount: bigint;
33
+ }): boolean;
34
+ export declare function totalEscrowAmount(positions: readonly {
35
+ amount: bigint;
36
+ }[]): bigint;
37
+ export declare function cooldownRemainingSeconds(position: Pick<EscrowPositionView, "withdrawAvailableAt">, nowSeconds: bigint): bigint;
38
+ export declare function formatCooldown(seconds: bigint): string;
39
+ export declare function formatPositionStatus(position: EscrowPositionView, nowSeconds: bigint): string;
40
+ export declare function getPendingWithdrawal(ctx: DotnsContext, recipient: Address): Promise<bigint>;
41
+ export declare function releaseName(ctx: DotnsContext, label: string): Promise<{
42
+ approveTxHash: string;
43
+ releaseTxHash: string;
44
+ tokenId: bigint;
45
+ }>;
46
+ export declare function withdrawName(ctx: DotnsContext, label: string): Promise<string>;
47
+ export declare function claimWithdrawal(ctx: DotnsContext): Promise<string>;
48
+ export declare function listRefunds(ctx: DotnsContext, recipient: Address, offset: number, limit: number): Promise<RefundsListResult>;
49
+ export declare function claimRefund(ctx: DotnsContext, entryId: bigint): Promise<string>;
50
+ export declare function claimRefundsBatch(ctx: DotnsContext, entryIds: bigint[]): Promise<string>;
51
+ //# sourceMappingURL=escrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../../src/commands/escrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAOjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAqDF,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAEpC;AAKD,wBAAsB,mBAAmB,CACvC,G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,CAAC,CA8B5B;AAGD,wBAAsB,WAAW,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAUrF;AAID,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAU9F"}
@@ -0,0 +1,12 @@
1
+ import { type Address } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ import type { DomainLookupResult, DomainOwnership } from "../types/types";
4
+ export type RegisteredNamesResult = {
5
+ owner: Address;
6
+ store: Address | null;
7
+ names: string[];
8
+ };
9
+ export declare function performDomainLookup(ctx: DotnsContext, label: string): Promise<DomainLookupResult>;
10
+ export declare function listMyRegisteredNames(ctx: DotnsContext): Promise<RegisteredNamesResult>;
11
+ export declare function performOwnerOfLookup(ctx: DotnsContext, name: string): Promise<DomainOwnership>;
12
+ //# sourceMappingURL=lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/commands/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,OAAO,EAAgC,MAAM,MAAM,CAAC;AACxF,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,iBAAiB,CAAC;AAazE,OAAO,KAAK,EAAE,kBAAkB,EAAuB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE/F,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,CA8E7B;AAuCD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4B7F;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,CAyC1B"}
@@ -0,0 +1,68 @@
1
+ import { type Address, type Hex } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ import { ProofOfPersonhoodStatus, type DomainRegistration, type NameClassification, type PricingAndEligibility } from "../types/types";
4
+ export declare function classifyDomainName(ctx: DotnsContext, name: string): Promise<NameClassification>;
5
+ export declare function ensureDomainNotRegistered(ctx: DotnsContext, name: string): Promise<void>;
6
+ export type GenerateCommitmentOptions = {
7
+ owner?: Address;
8
+ secret?: Hex;
9
+ includeReverse?: boolean;
10
+ };
11
+ export type GeneratedCommitment = {
12
+ commitment: Hex;
13
+ registration: DomainRegistration;
14
+ secret: Hex;
15
+ };
16
+ export declare function generateCommitment(ctx: DotnsContext, name: string, opts?: GenerateCommitmentOptions): Promise<GeneratedCommitment>;
17
+ export declare function submitCommitment(ctx: DotnsContext, commitment: Hex): Promise<Hex>;
18
+ export type WaitForCommitmentOptions = {
19
+ commitmentBuffer?: number;
20
+ };
21
+ export declare function waitForMinimumCommitmentAge(ctx: DotnsContext, commitment: Hex, opts?: WaitForCommitmentOptions): Promise<void>;
22
+ export declare function readDomainOwner(ctx: DotnsContext, name: string): Promise<Address>;
23
+ export type CommitmentStatus = {
24
+ committedTimestampSeconds: number;
25
+ nowSeconds: number;
26
+ minAgeSeconds: number;
27
+ maxAgeSeconds: number;
28
+ };
29
+ export declare function readCommitmentStatus(ctx: DotnsContext, commitment: Hex): Promise<CommitmentStatus>;
30
+ export declare function getUserProofOfPersonhoodStatus(ctx: DotnsContext, ownerAddress: Address): Promise<ProofOfPersonhoodStatus>;
31
+ export declare function getPriceAndValidateEligibility(ctx: DotnsContext, name: string, ownerAddress: Address): Promise<PricingAndEligibility>;
32
+ export declare function quoteCrossPayerFriction(ctx: DotnsContext, name: string, callerEvmAddress: Address, ownerEvmAddress: Address): Promise<bigint>;
33
+ export type RegistrationResult = {
34
+ name: string;
35
+ owner: Address;
36
+ priceWei: bigint;
37
+ frictionWei: bigint;
38
+ chargedWei: bigint;
39
+ bufferedWei: bigint;
40
+ txHash: Hex;
41
+ };
42
+ export declare function finalizeRegularRegistration(ctx: DotnsContext, registration: DomainRegistration, priceWei: bigint, frictionWei?: bigint): Promise<RegistrationResult>;
43
+ export declare function finalizeGovernanceRegistration(ctx: DotnsContext, registration: DomainRegistration): Promise<{
44
+ name: string;
45
+ owner: Address;
46
+ txHash: Hex;
47
+ }>;
48
+ export type SubnameResult = {
49
+ name: string;
50
+ owner: Address;
51
+ txHash: Hex;
52
+ };
53
+ export declare function registerSubnode(ctx: DotnsContext, sublabel: string, parentLabel: string, ownerAddress: Address): Promise<SubnameResult>;
54
+ export declare function verifyDomainOwnership(ctx: DotnsContext, name: string, expectedOwner: Address): Promise<Address>;
55
+ export declare function getWhitelistStatus(ctx: DotnsContext, address: Address): Promise<boolean>;
56
+ export declare function getPendingClaimLabels(ctx: DotnsContext, address: Address): Promise<string[]>;
57
+ export type LabelStoreSyncResult = {
58
+ labelStore: Address;
59
+ pending: string[];
60
+ synced: boolean;
61
+ };
62
+ export declare function ensureLabelStoreReady(ctx: DotnsContext, ownerAddress: Address): Promise<LabelStoreSyncResult>;
63
+ export type RegisterNameOptions = GenerateCommitmentOptions & {
64
+ commitmentBuffer?: number;
65
+ callerAddress?: Address;
66
+ };
67
+ export declare function registerName(ctx: DotnsContext, name: string, opts?: RegisterNameOptions): Promise<RegistrationResult>;
68
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/commands/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,OAAO,EACZ,KAAK,GAAG,EACT,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,YAAY,EAKlB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,uBAAuB,EACvB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/keystore/types";
3
+ /**
4
+ * Local, resumable record of a submitted commit-reveal registration.
5
+ *
6
+ * The commit (a hash) is already on-chain; to reveal we must re-supply the
7
+ * original preimage, of which only `secret` is sensitive and unrecoverable. The
8
+ * secret is therefore encrypted at rest with the caller's credential (reusing
9
+ * the keystore's scrypt + AES-256-GCM); everything else is plaintext so the
10
+ * cache can be listed and cleared without unlocking.
11
+ */
12
+ export type CommitmentRecord = {
13
+ /** DotNS environment id the commit was submitted on (e.g. "paseo-v2"). */
14
+ env: string;
15
+ /** EVM address that submitted the commit (the cache owner). */
16
+ caller: Address;
17
+ /** Domain label without ".dot". */
18
+ label: string;
19
+ /** EVM address that will own the name once revealed. */
20
+ owner: Address;
21
+ /** The commit-reveal `reserved` field (governance true, or regular --reverse). */
22
+ reserved: boolean;
23
+ /** True when the reveal must use registerReserved (governance) rather than register. */
24
+ governance: boolean;
25
+ /** keccak(label, owner, secret, reserved) as submitted on-chain. */
26
+ commitmentHash: Hex;
27
+ /** Transaction hash of the commit, if known. */
28
+ commitTxHash?: string;
29
+ /** ISO timestamp when the commit was submitted. */
30
+ committedAtIso: string;
31
+ /** Post-mint transfer destination to replay on resume, if any. */
32
+ transferDestination?: string;
33
+ /** Encrypted { secret } payload (scrypt + AES-256-GCM). */
34
+ encryptedSecret: DotnsKeystore;
35
+ };
36
+ /**
37
+ * Resolve the passphrase used to lock the stored secret from raw command/env
38
+ * options. Registration flows prefer the credential attached to the resolved
39
+ * auth source so keystore account selection and cache encryption stay aligned.
40
+ */
41
+ export declare function resolveManifestCredential(options: {
42
+ password?: string;
43
+ mnemonic?: string;
44
+ keyUri?: string;
45
+ }): string | null;
46
+ export declare function saveCommitmentRecord(params: {
47
+ env: string;
48
+ caller: Address;
49
+ label: string;
50
+ owner: Address;
51
+ reserved: boolean;
52
+ governance: boolean;
53
+ secret: Hex;
54
+ commitmentHash: Hex;
55
+ commitTxHash?: string;
56
+ transferDestination?: string;
57
+ committedAtIso: string;
58
+ credential: string;
59
+ }): void;
60
+ /** All records for the given env + caller, newest commit first. */
61
+ export declare function loadCommitmentRecords(env: string, caller: Address): CommitmentRecord[];
62
+ export declare function findCommitmentRecord(env: string, caller: Address, label: string): CommitmentRecord | null;
63
+ export declare function latestCommitmentRecord(env: string, caller: Address): CommitmentRecord | null;
64
+ export declare function loadCommitmentRecordsForClear(env: string, caller: Address, label?: string): CommitmentRecord[];
65
+ export declare function deleteCommitmentRecord(env: string, caller: Address, label: string): void;
66
+ /** Decrypt and return the reveal secret for a stored commitment. */
67
+ export declare function decryptCommitmentSecret(record: CommitmentRecord, credential: string): Hex;
68
+ //# sourceMappingURL=registrationManifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registrationManifest.d.ts","sourceRoot":"","sources":["../../src/commands/registrationManifest.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0EAA0E;IAC1E,GAAG,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,MAAM,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAC;IACf,kFAAkF;IAClF,QAAQ,EAAE,OAAO,CAAC;IAClB,wFAAwF;IACxF,UAAU,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,cAAc,EAAE,GAAG,CAAC;IACpB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,eAAe,EAAE,aAAa,CAAC;CAChC,CAAC;AAyBF;;;;GAIG;AACH,wBAAgB,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C,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,GAAG,CAMzF"}
@@ -0,0 +1,10 @@
1
+ import { type Address } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ export interface ResolverNodeInfo {
4
+ exists: boolean;
5
+ owner: Address;
6
+ caller: Address;
7
+ }
8
+ export declare function getResolverNodeInfo(ctx: DotnsContext, namehashNode: string): Promise<ResolverNodeInfo>;
9
+ export declare function requireResolverAuthorization(ctx: DotnsContext, owner: Address, caller: Address): Promise<void>;
10
+ //# sourceMappingURL=resolverAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolverAuth.d.ts","sourceRoot":"","sources":["../../src/commands/resolverAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAgC,MAAM,MAAM,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,iBAAiB,CAAC;AAGzE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAoB3B;AAED,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAaf"}
@@ -0,0 +1,9 @@
1
+ import type { Address } from "viem";
2
+ import { type DotnsContext } from "../core/context";
3
+ export type PrimaryNameResult = {
4
+ name: string;
5
+ txHash: string;
6
+ };
7
+ export declare function setPrimaryName(ctx: DotnsContext, name: string): Promise<PrimaryNameResult>;
8
+ export declare function getPrimaryName(ctx: DotnsContext, address?: Address): Promise<string | null>;
9
+ //# sourceMappingURL=reverseRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reverseRecord.d.ts","sourceRoot":"","sources":["../../src/commands/reverseRecord.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,YAAY,EAA8B,MAAM,iBAAiB,CAAC;AAIhF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAahG;AAED,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUjG"}