@parity/product-sdk-tx 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parity/product-sdk-tx",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Transaction submission, lifecycle watching, and dev signers for Polkadot chains",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -19,9 +19,9 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@polkadot-labs/hdkd-helpers": "^0.0.10",
22
- "polkadot-api": "^1.9.0",
23
- "@parity/product-sdk-keys": "0.1.0",
24
- "@parity/product-sdk-logger": "0.1.0"
22
+ "polkadot-api": "^2.1.2",
23
+ "@parity/product-sdk-keys": "0.2.1",
24
+ "@parity/product-sdk-logger": "0.1.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typescript": "^5.7.0",
package/src/batch.ts CHANGED
@@ -66,8 +66,8 @@ async function resolveDecodedCall(call: BatchableCall): Promise<unknown> {
66
66
  * chain that has the Utility pallet — no chain-specific imports required.
67
67
  * **All calls must target the same chain as this API.** Do not mix decoded calls
68
68
  * from different chains (e.g., Asset Hub and Bulletin) in a single batch.
69
- * @param signer - The signer to use. Can come from a wallet extension, Host API
70
- * (`getProductAccountSigner`), or {@link createDevSigner}.
69
+ * @param signer - The signer to use. Can come from the Host API
70
+ * (`getProductAccountSigner`) or {@link createDevSigner}.
71
71
  * @param options - Optional {@link BatchSubmitOptions} (extends `SubmitOptions` with `mode`).
72
72
  * @returns The transaction result from the batch submission.
73
73
  *
package/src/index.ts CHANGED
@@ -1,3 +1,15 @@
1
+ /**
2
+ * @parity/product-sdk-tx — Submit Polkadot transactions and follow them to finality.
3
+ *
4
+ * `submitAndWatch` signs, broadcasts, and tracks a single extrinsic through its
5
+ * lifecycle; `batchSubmitAndWatch` does the same for a list of calls. The package
6
+ * also bundles the things you almost always reach for next to a real submission:
7
+ * dry-run helpers, Asset Hub account mapping, retry primitives, dev signers, and
8
+ * a typed error hierarchy with formatters that turn dispatch errors into readable
9
+ * messages.
10
+ *
11
+ * @packageDocumentation
12
+ */
1
13
  export { submitAndWatch } from "./submit.js";
2
14
  export { batchSubmitAndWatch } from "./batch.js";
3
15
  export { withRetry, calculateDelay } from "./retry.js";
package/src/submit.ts CHANGED
@@ -47,8 +47,8 @@ function buildTxResult(
47
47
  *
48
48
  * @param tx - A transaction object with `signSubmitAndWatch`. Works with raw PAPI
49
49
  * transactions and Ink SDK `AsyncTransaction` wrappers (resolved automatically).
50
- * @param signer - The signer to use. Can come from a wallet extension, Host API
51
- * (`getProductAccountSigner`), or {@link createDevSigner}.
50
+ * @param signer - The signer to use. Can come from the Host API
51
+ * (`getProductAccountSigner`) or {@link createDevSigner}.
52
52
  * @param options - Submission options (waitFor, timeout, mortality, status callback).
53
53
  * @returns The transaction result once included/finalized.
54
54
  *