@parity/product-sdk-signer 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -200,18 +200,23 @@ interface HostProviderOptions {
200
200
  loadSdk?: () => Promise<ProductSdkModule>;
201
201
  /**
202
202
  * Custom loader for `@novasamatech/host-api` (used to construct the
203
- * `TransactionSubmit` permission request). Defaults to dynamic import.
203
+ * `ChainSubmit` permission request). Defaults to dynamic import.
204
204
  * @internal
205
205
  */
206
206
  loadHostApiEnum?: () => Promise<HostApiEnumHelper>;
207
207
  /**
208
- * Whether to request the host's `TransactionSubmit` permission after a
208
+ * Whether to request the host's `ChainSubmit` permission after a
209
209
  * successful `connect()`. Without this, subsequent signing requests are
210
210
  * rejected by the host with `PermissionDenied`. Default: `true`.
211
211
  *
212
212
  * Set to `false` if your app needs to defer the permission prompt or
213
213
  * drives it manually.
214
+ *
215
+ * (Previously named `requestTransactionSubmitPermission` — alias kept
216
+ * for backwards compatibility but the new wire format uses `ChainSubmit`.)
214
217
  */
218
+ requestChainSubmitPermission?: boolean;
219
+ /** @deprecated Renamed to `requestChainSubmitPermission`. */
215
220
  requestTransactionSubmitPermission?: boolean;
216
221
  }
217
222
  /**
@@ -260,8 +265,8 @@ interface NeverthrowResultAsync<T, E> {
260
265
  }
261
266
  /** @internal */
262
267
  interface AccountsProvider {
263
- getNonProductAccounts: () => NeverthrowResultAsync<RawAccount[], unknown>;
264
- getNonProductAccountSigner: (account: ProductAccount) => polkadot_api.PolkadotSigner;
268
+ getLegacyAccounts: () => NeverthrowResultAsync<RawAccount[], unknown>;
269
+ getLegacyAccountSigner: (account: ProductAccount) => polkadot_api.PolkadotSigner;
265
270
  getProductAccount: (dotNsIdentifier: string, derivationIndex?: number) => NeverthrowResultAsync<RawAccount, unknown>;
266
271
  getProductAccountSigner: (account: ProductAccount) => polkadot_api.PolkadotSigner;
267
272
  getProductAccountAlias: (dotNsIdentifier: string, derivationIndex?: number) => NeverthrowResultAsync<ContextualAlias, unknown>;
@@ -309,7 +314,7 @@ declare class HostProvider implements SignerProvider {
309
314
  private readonly retryDelay;
310
315
  private readonly loadSdk;
311
316
  private readonly loadHostApiEnum;
312
- private readonly requestTxPermission;
317
+ private readonly requestChainSubmitPermission;
313
318
  private accountsProvider;
314
319
  private statusCleanup;
315
320
  private statusListeners;
@@ -522,6 +527,7 @@ declare function withRetry<T, E>(fn: (attempt: number) => Promise<Result<T, E>>,
522
527
 
523
528
  /** Standard Substrate dev account names. */
524
529
  declare const DEFAULT_DEV_NAMES: readonly ["Alice", "Bob", "Charlie", "Dave", "Eve", "Ferdie"];
530
+ /** A well-known Substrate development account name (Alice, Bob, …) used to derive deterministic dev accounts from the standard Substrate dev mnemonic. */
525
531
  type DevAccountName = (typeof DEFAULT_DEV_NAMES)[number];
526
532
  /** Supported key types for dev account derivation. */
527
533
  type DevKeyType = "sr25519" | "ed25519";