@polkadot/api-base 11.2.1 → 12.0.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: '11.2.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.0.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "11.2.1",
21
+ "version": "12.0.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -127,8 +127,8 @@
127
127
  }
128
128
  },
129
129
  "dependencies": {
130
- "@polkadot/rpc-core": "11.2.1",
131
- "@polkadot/types": "11.2.1",
130
+ "@polkadot/rpc-core": "12.0.1",
131
+ "@polkadot/types": "12.0.1",
132
132
  "@polkadot/util": "^12.6.2",
133
133
  "rxjs": "^7.8.1",
134
134
  "tslib": "^2.6.2"
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: '11.2.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: '12.0.1' };
@@ -38,6 +38,16 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
38
38
  send(): SubmittableResultResult<ApiType>;
39
39
  send(statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
40
40
  signAsync(account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
41
+ /**
42
+ * @description Sign and broadcast the constructued transaction.
43
+ *
44
+ * Note for injected signers:
45
+ * As of v12.0.1 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 be directly broadcasted. This
47
+ * bypasses the api adding the signature to the payload. The api will ensure that the Call Data is not changed before it broadcasts the
48
+ * transaction. This allows for the signer to modify the payload to add things like `mode`, and `metadataHash` for
49
+ * signedExtensions such as `CheckMetadataHash`.
50
+ */
41
51
  signAndSend(account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
42
52
  signAndSend(account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;
43
53
  signAndSend(account: AddressOrPair, options: Partial<SignerOptions>, statusCb?: Callback<R>): SubmittableResultSubscription<ApiType, R>;