@polkadot/api-base 15.8.1 → 15.9.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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '15.8.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '15.9.1' };
@@ -39,13 +39,10 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
39
39
  send(): SubmittableResultResult<ApiType>;
40
40
  send(statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
41
41
  /**
42
- * @description Sign and broadcast the constructued transaction.
42
+ * @description Sign the constructed transaction asynchronously.
43
43
  *
44
- * Note for injected signers:
45
- * As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
46
- * This allows the signer to input a signed transaction that will modify the payload. This
47
- * The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
48
- * things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
44
+ * The result is a signed extrinsic that is ready to be broadcast to the network via `.send()`, `rpc.author.submitExtrinsic()`, or
45
+ * any custom submission logic.
49
46
  */
50
47
  signAsync(account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
51
48
  /**
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "15.8.1",
21
+ "version": "15.9.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -255,8 +255,8 @@
255
255
  }
256
256
  },
257
257
  "dependencies": {
258
- "@polkadot/rpc-core": "15.8.1",
259
- "@polkadot/types": "15.8.1",
258
+ "@polkadot/rpc-core": "15.9.1",
259
+ "@polkadot/types": "15.9.1",
260
260
  "@polkadot/util": "^13.4.3",
261
261
  "rxjs": "^7.8.1",
262
262
  "tslib": "^2.8.1"
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '15.8.1' };
1
+ export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '15.9.1' };
@@ -39,13 +39,10 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
39
39
  send(): SubmittableResultResult<ApiType>;
40
40
  send(statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
41
41
  /**
42
- * @description Sign and broadcast the constructued transaction.
42
+ * @description Sign the constructed transaction asynchronously.
43
43
  *
44
- * Note for injected signers:
45
- * As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
46
- * This allows the signer to input a signed transaction that will modify the payload. This
47
- * The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
48
- * things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
44
+ * The result is a signed extrinsic that is ready to be broadcast to the network via `.send()`, `rpc.author.submitExtrinsic()`, or
45
+ * any custom submission logic.
49
46
  */
50
47
  signAsync(account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
51
48
  /**