Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aafd0a90c7 | ||
|
|
e64eb91ba9 | ||
|
|
02947a1c08 | ||
|
|
5a44d3b6e0 | ||
|
|
0bac3d4915 | ||
|
|
ab3f0253bd | ||
|
|
6f199db86a | ||
|
|
a95bca939d | ||
|
|
c5446d6fef | ||
|
|
b1ec8d160a | ||
|
|
b0acdbd96c | ||
|
|
af3d20ebe1 | ||
|
|
5897fb7e3b | ||
|
|
bdafcd9e97 | ||
|
|
095710349a | ||
|
|
586f02f831 | ||
|
|
5ca873b501 | ||
|
|
058a3ac640 |
@@ -1,5 +1,36 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 12.0.2 June 27, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- `withSignedTransaction`: This option has been added to `SignerOptions`. When using `signAndSend`, `signAsync`, and `dryRun` you may now enable or disable the use of the `signedTransaction` field by adding the `withSignedTransaction` option. When withSignedTransaction is not enabled but the signer adds a signedTransaction the api will error.
|
||||
- Always disabled by default.
|
||||
- This ensures no big breaking changes happen to the interface of `signPayload`.
|
||||
- `withSignedTransaction` has also been added to the `SignerPayload` type which allows for `payload.toPayload()` to include the option.
|
||||
- `signAsync`: now accepts the `signedTransaction` field as well. This means that if `withSignedTransaction` is enabled, and `signedTransaction` is present the api will adjust the current payload attached to the SubmittableExtrinsic, and add the signature. Then the user can call `.send()` as they please.
|
||||
- `dryRun`: All steps will be the same as signAsync with the exception that .send() has never needed to be called.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add LocationToAccountApi::convert_location runtime API (Thanks to https://github.com/bkontur)
|
||||
|
||||
|
||||
## 12.0.1 June 24, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
|
||||
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
|
||||
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
|
||||
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)
|
||||
|
||||
Changes:
|
||||
|
||||
- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
|
||||
- Sanitize `eras` for `api.derive.staking._stakerRewards`
|
||||
|
||||
|
||||
## 11.3.1 June 17, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
3512 Jaco Bump deps (#5785)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
61 Tarik Gul 11.3.1 (#5909)
|
||||
67 Tarik Gul 12.0.2 (#5924)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||
@@ -10,11 +10,12 @@
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
6 Andreea Eftene Update check for contract instantiation (#5699)
|
||||
5 Alberto Nicolas Penayo added use of accountNonceApi (#5915)
|
||||
5 Branislav Kontur Adjusted `LocationToAccountApi` (#5919)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||
5 Matias Volpe Bump @substrate/connect to 0.8.10 (#5863)
|
||||
4 Alberto Nicolas Penayo fix: add support for `AuraUnincludedSegmentApi` (#5891)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||
4 Alexander Popiak Add asset id in signing (#4009)
|
||||
@@ -25,7 +26,6 @@
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
3 Branislav Kontur Added FungiblesApi version 2 (#5687)
|
||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||
3 hamidra add support for n key entries for NMaps (#3886)
|
||||
3 Hamza Tokuchi more typos (#2532)
|
||||
|
||||
+3
-3
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"versions": {
|
||||
"git": "11.3.1",
|
||||
"npm": "11.3.1"
|
||||
"git": "12.0.2",
|
||||
"npm": "12.0.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "11.3.1",
|
||||
"@polkadot/rpc-augment": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-augment": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface SignerOptions {
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: AnyU8a;
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
@@ -66,8 +67,27 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
|
||||
|
||||
send (statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will modify the payload. This
|
||||
* The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
|
||||
* things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAsync (account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.1 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will be directly broadcasted. This
|
||||
* bypasses the api adding the signature to the payload. The api will ensure that the Call Data is not changed before it broadcasts the
|
||||
* transaction. This allows for the signer to modify the payload to add things like `mode`, and `metadataHash` for
|
||||
* signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAndSend (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
|
||||
|
||||
signAndSend (account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;
|
||||
|
||||
@@ -18,22 +18,22 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.3.1",
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-create": "11.3.1",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "11.3.1"
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.3.1",
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/api-base": "11.3.1",
|
||||
"@polkadot/rpc-core": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "11.3.1",
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/rpc-augment": "11.3.1",
|
||||
"@polkadot/rpc-provider": "11.3.1",
|
||||
"@polkadot/types-support": "11.3.1"
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -168,11 +168,15 @@ export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras:
|
||||
}
|
||||
|
||||
export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerReward[][]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> =>
|
||||
combineLatest([
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> => {
|
||||
// Ensures that when number or string types are passed in they are sanitized
|
||||
// Ref: https://github.com/polkadot-js/api/issues/5910
|
||||
const sanitizedEras: EraIndex[] = eras.map((e) => typeof e === 'number' || typeof e === 'string' ? api.registry.createType('u32', e) : e);
|
||||
|
||||
return combineLatest([
|
||||
api.derive.staking.queryMulti(accountIds, { withClaimedRewardsEras: true, withLedger: true }),
|
||||
api.derive.staking._stakerExposures(accountIds, eras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(eras, withActive)
|
||||
api.derive.staking._stakerExposures(accountIds, sanitizedEras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(sanitizedEras, withActive)
|
||||
]).pipe(
|
||||
switchMap(([queries, exposures, erasResult]): Observable<DeriveStakerReward[][]> => {
|
||||
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
|
||||
@@ -208,7 +212,8 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
)
|
||||
);
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,13 @@ function latestNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
}
|
||||
|
||||
function nextNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
if (api.call.accountNonceApi) {
|
||||
return api.call.accountNonceApi.accountNonce(address);
|
||||
} else {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
}
|
||||
}
|
||||
|
||||
function signingHeader (api: DeriveApi): Observable<Header> {
|
||||
|
||||
+14
-14
@@ -18,21 +18,21 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/api-base": "11.3.1",
|
||||
"@polkadot/api-derive": "11.3.1",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/api-derive": "12.0.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "11.3.1",
|
||||
"@polkadot/rpc-core": "11.3.1",
|
||||
"@polkadot/rpc-provider": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-augment": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-create": "11.3.1",
|
||||
"@polkadot/types-known": "11.3.1",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/types-known": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
@@ -40,7 +40,7 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/types-support": "11.3.1"
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -7,6 +7,7 @@ import type { Observable } from 'rxjs';
|
||||
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
|
||||
import type { Callback, Codec, CodecClass, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ApiBase } from '../base/index.js';
|
||||
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types/index.js';
|
||||
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types.js';
|
||||
@@ -28,6 +29,12 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
|
||||
interface UpdateInfo {
|
||||
options: SignatureOptions;
|
||||
updateId: number;
|
||||
signedTransaction: HexString | Uint8Array | null;
|
||||
}
|
||||
|
||||
interface SignerInfo {
|
||||
id: number;
|
||||
signedTransaction?: HexString | Uint8Array;
|
||||
}
|
||||
|
||||
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
||||
@@ -246,14 +253,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
mergeMap(async (signingInfo): Promise<UpdateInfo> => {
|
||||
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
|
||||
let updateId = -1;
|
||||
let signedTx = null;
|
||||
|
||||
if (isKeyringPair(account)) {
|
||||
this.sign(account, eraOptions);
|
||||
} else {
|
||||
updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
const result = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
|
||||
updateId = result.id;
|
||||
|
||||
if (result.signedTransaction) {
|
||||
signedTx = result.signedTransaction;
|
||||
}
|
||||
}
|
||||
|
||||
return { options: eraOptions, updateId };
|
||||
return { options: eraOptions, signedTransaction: signedTx, updateId };
|
||||
})
|
||||
);
|
||||
};
|
||||
@@ -288,18 +302,18 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#observeSend = (info: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(this).pipe(
|
||||
#observeSend = (info?: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(info?.signedTransaction || this).pipe(
|
||||
tap((hash): void => {
|
||||
this.#updateSigner(hash, info);
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
#observeSubscribe = (info: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
#observeSubscribe = (info?: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
const txHash = this.hash;
|
||||
|
||||
return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
|
||||
return api.rpc.author.submitAndWatchExtrinsic(info?.signedTransaction || this).pipe(
|
||||
switchMap((status): Observable<ISubmittableResult> =>
|
||||
this.#observeStatus(txHash, status)
|
||||
),
|
||||
@@ -309,7 +323,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<number> => {
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<SignerInfo> => {
|
||||
const signer = options.signer || api.signer;
|
||||
|
||||
if (!signer) {
|
||||
@@ -325,6 +339,41 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
if (isFunction(signer.signPayload)) {
|
||||
result = await signer.signPayload(payload.toPayload());
|
||||
|
||||
if (result.signedTransaction && !options.withSignedTransaction) {
|
||||
throw new Error('The `signedTransaction` field may not be submitted when `withSignedTransaction` is disabled');
|
||||
}
|
||||
|
||||
if (result.signedTransaction && options.withSignedTransaction) {
|
||||
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
|
||||
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
|
||||
address,
|
||||
assetId: ext.assetId ? ext.assetId.toHex() : null,
|
||||
blockHash: payload.blockHash,
|
||||
blockNumber: header ? header.number : 0,
|
||||
era: ext.era.toHex(),
|
||||
genesisHash: payload.genesisHash,
|
||||
metadataHash: ext.metadataHash ? ext.metadataHash.toHex() : null,
|
||||
method: ext.method.toHex(),
|
||||
mode: ext.mode ? ext.mode.toHex() : null,
|
||||
nonce: ext.nonce.toHex(),
|
||||
runtimeVersion: payload.runtimeVersion,
|
||||
signedExtensions: payload.signedExtensions,
|
||||
tip: ext.tip.toHex(),
|
||||
version: payload.version
|
||||
})]);
|
||||
|
||||
if (!ext.isSigned) {
|
||||
throw new Error(`When using the signedTransaction field, the transaction must be signed. Recieved isSigned: ${ext.isSigned}`);
|
||||
}
|
||||
|
||||
this.#validateSignedTransaction(payload, ext);
|
||||
// This is only used for signAsync - signAndSend does not need to adjust the super payload or
|
||||
// add the signature.
|
||||
super.addSignature(address, result.signature, newSignerPayload.toPayload());
|
||||
|
||||
return { id: result.id, signedTransaction: result.signedTransaction };
|
||||
}
|
||||
} else if (isFunction(signer.signRaw)) {
|
||||
result = await signer.signRaw(payload.toRaw());
|
||||
} else {
|
||||
@@ -336,7 +385,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
// payload data is not modified from our inputs, but the signer
|
||||
super.addSignature(address, result.signature, payload.toPayload());
|
||||
|
||||
return result.id;
|
||||
return { id: result.id };
|
||||
};
|
||||
|
||||
#updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
|
||||
@@ -349,6 +398,20 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* When a signer includes `signedTransaction` within the SignerResult this will validate
|
||||
* specific fields within the signed extrinsic against the original payload that was passed
|
||||
* to the signer.
|
||||
*/
|
||||
#validateSignedTransaction = (signerPayload: SignerPayload, signedExt: Extrinsic): void => {
|
||||
const payload = signerPayload.toPayload();
|
||||
const errMsg = (field: string) => `signAndSend: ${field} does not match the original payload`;
|
||||
|
||||
if (payload.method !== signedExt.method.toHex()) {
|
||||
throw new Error(errMsg('call data'));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return Submittable;
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "11.3.1",
|
||||
"@polkadot/rpc-provider": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "11.3.1"
|
||||
"@polkadot/rpc-augment": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-support": "11.3.1",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-fetch": "^12.6.2",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,15 +28,15 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.3.1",
|
||||
"@polkadot/api-augment": "11.3.1",
|
||||
"@polkadot/rpc-augment": "11.3.1",
|
||||
"@polkadot/rpc-provider": "11.3.1",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-augment": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-create": "11.3.1",
|
||||
"@polkadot/types-support": "11.3.1",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -74,6 +74,7 @@ import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalan
|
||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
|
||||
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -400,6 +401,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
EraPoints: EraPoints;
|
||||
EraRewardPoints: EraRewardPoints;
|
||||
EraRewards: EraRewards;
|
||||
Error: Error;
|
||||
ErrorMetadataLatest: ErrorMetadataLatest;
|
||||
ErrorMetadataV10: ErrorMetadataV10;
|
||||
ErrorMetadataV11: ErrorMetadataV11;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.2",
|
||||
@@ -26,9 +26,9 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-augment": "11.3.1",
|
||||
"@polkadot/types-support": "11.3.1",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util-crypto": "^12.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "11.3.1"
|
||||
"@polkadot/types": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.6.2",
|
||||
"@polkadot/types": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-create": "11.3.1",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "11.3.1"
|
||||
"@polkadot/api": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.2",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.3.1",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-augment": "11.3.1",
|
||||
"@polkadot/types-codec": "11.3.1",
|
||||
"@polkadot/types-create": "11.3.1",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "11.3.1"
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,6 +206,13 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
return this.inner.signature.metadataHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get mode (): INumber {
|
||||
return this.inner.signature.mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the raw transaction version (not flagged with signing information)
|
||||
*/
|
||||
@@ -334,6 +341,7 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
|
||||
assetId: this.assetId ? this.assetId.toHuman(isExpanded, disableAscii) : null,
|
||||
era: this.era.toHuman(isExpanded, disableAscii),
|
||||
metadataHash: this.metadataHash ? this.metadataHash.toHex() : null,
|
||||
mode: this.mode.toHuman(),
|
||||
nonce: this.nonce.toHuman(isExpanded, disableAscii),
|
||||
signature: this.signature.toHex(),
|
||||
signer: this.signer.toHuman(isExpanded, disableAscii),
|
||||
|
||||
@@ -31,7 +31,8 @@ describe('SignerPayload', (): void => {
|
||||
specVersion: '0x00000006',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000007',
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: false
|
||||
};
|
||||
|
||||
it('creates a valid JSON output', (): void => {
|
||||
@@ -50,7 +51,8 @@ describe('SignerPayload', (): void => {
|
||||
nonce: 0x1234,
|
||||
signedExtensions: ['CheckNonce'],
|
||||
tip: 0x5678,
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: true
|
||||
}).toPayload()
|
||||
).toEqual({
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
@@ -68,7 +70,8 @@ describe('SignerPayload', (): void => {
|
||||
specVersion: '0x00000000',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000000',
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: true
|
||||
});
|
||||
});
|
||||
|
||||
@@ -164,7 +167,8 @@ describe('SignerPayload', (): void => {
|
||||
specVersion: '0x00000006',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000007',
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: false
|
||||
};
|
||||
|
||||
it('can build SignerPayload without additional SignedExtensions', (): void => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Text, Vec } from '@polkadot/types-codec';
|
||||
import type { bool, Text, Vec } from '@polkadot/types-codec';
|
||||
import type { AnyJson, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Address, BlockHash, Call, ExtrinsicEra, Hash, MultiLocation } from '../interfaces/index.js';
|
||||
@@ -55,7 +55,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
constructor (registry: Registry, value?: HexString | Record<string, unknown> | Map<unknown, unknown> | unknown[]) {
|
||||
const extensionTypes = objectSpread<Record<string, string>>({}, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra());
|
||||
|
||||
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes), value);
|
||||
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes, { withSignedTransaction: 'bool' }), value);
|
||||
|
||||
this.#extraTypes = {};
|
||||
const getter = (key: string) => this.get(key);
|
||||
@@ -126,6 +126,12 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
return this.getT('metadataHash');
|
||||
}
|
||||
|
||||
get withSignedTransaction (): boolean {
|
||||
const val: bool = this.getT('withSignedTransaction');
|
||||
|
||||
return val.isTrue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Creates an representation of the structure as an ISignerPayload JSON
|
||||
*/
|
||||
@@ -166,7 +172,8 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
specVersion: this.runtimeVersion.specVersion.toHex(),
|
||||
tip: this.tip.toHex(),
|
||||
transactionVersion: this.runtimeVersion.transactionVersion.toHex(),
|
||||
version: this.version.toNumber()
|
||||
version: this.version.toNumber(),
|
||||
withSignedTransaction: this.withSignedTransaction
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,13 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
||||
return this.getT('assetId');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description the [[u32]] mode
|
||||
*/
|
||||
public get mode (): INumber {
|
||||
return this.getT('mode');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Hash]] for the metadata
|
||||
*/
|
||||
|
||||
@@ -122,7 +122,7 @@ describe('runtime definitions', (): void => {
|
||||
for (const { methods, version } of versions) {
|
||||
describe(`version ${version}`, (): void => {
|
||||
const methodsEntries = Object.entries<DefinitionCall>(methods);
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV3MultiLocation', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedMultiAssets, FungiblesAccessError>'];
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedMultiAssets, FungiblesAccessError>', 'XcmVersionedLocation'];
|
||||
|
||||
for (const [key, { params, type }] of methodsEntries) {
|
||||
describe(`${key}`, (): void => {
|
||||
|
||||
@@ -64,7 +64,10 @@ export { default as finality } from './finality/definitions.js';
|
||||
export { default as parachains } from './parachains/definitions.js';
|
||||
export { default as poll } from './poll/definitions.js';
|
||||
export { default as purchase } from './purchase/definitions.js';
|
||||
|
||||
// XCM related types
|
||||
export { default as xcm } from './xcm/definitions.js';
|
||||
export { default as xcmRuntimeApi } from './xcmRuntimeApi/definitions.js';
|
||||
|
||||
// other useful types
|
||||
export { default as contractsAbi } from './contractsAbi/definitions.js';
|
||||
|
||||
@@ -75,3 +75,4 @@ export * from './uniques/types.js';
|
||||
export * from './utility/types.js';
|
||||
export * from './vesting/types.js';
|
||||
export * from './xcm/types.js';
|
||||
export * from './xcmRuntimeApi/types.js';
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
Error: {
|
||||
_enum: ['Unsupported', 'VersionedConversionFailed']
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
LocationToAccountApi: [
|
||||
{
|
||||
methods: {
|
||||
convert_location: {
|
||||
description: 'Converts `Location` to `AccountId`',
|
||||
params: [
|
||||
{
|
||||
name: 'location',
|
||||
type: 'XcmVersionedLocation'
|
||||
}
|
||||
],
|
||||
type: 'Result<AccountId, Error>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum } from '@polkadot/types-codec';
|
||||
|
||||
/** @name Error */
|
||||
export interface Error extends Enum {
|
||||
readonly isUnsupported: boolean;
|
||||
readonly isVersionedConversionFailed: boolean;
|
||||
readonly type: 'Unsupported' | 'VersionedConversionFailed';
|
||||
}
|
||||
|
||||
export type PHANTOM_XCMRUNTIMEAPI = 'xcmRuntimeApi';
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '11.3.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -104,6 +104,12 @@ export interface SignerPayloadJSON {
|
||||
* @description The version of the extrinsic we are dealing with
|
||||
*/
|
||||
version: number;
|
||||
|
||||
/**
|
||||
* @description Optional flag that enables the use of the `signedTransaction` field in
|
||||
* `singAndSend`, `signAsync`, and `dryRun`.
|
||||
*/
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
export interface SignerPayloadRawBase {
|
||||
@@ -145,6 +151,18 @@ export interface SignerResult {
|
||||
* @description The resulting signature in hex
|
||||
*/
|
||||
signature: HexString;
|
||||
|
||||
/**
|
||||
* @description The payload constructed by the signer. This allows the
|
||||
* inputted signed transaction to bypass `signAndSend` from adding the signature to the payload,
|
||||
* and instead broadcasting the transaction directly. There is a small validation layer. Please refer
|
||||
* to the implementation for more information. If the inputted signed transaction is not actually signed, it will fail with an error.
|
||||
*
|
||||
* This will also work for `signAsync`. The new payload will be added to the Extrinsic, and will be sent once the consumer calls `.send()`.
|
||||
*
|
||||
* NOTE: This is only implemented for `signPayload`, and will only work when the `withSignedTransaction` option is enabled as an option.
|
||||
*/
|
||||
signedTransaction?: HexString | Uint8Array;
|
||||
}
|
||||
|
||||
export interface Signer {
|
||||
@@ -181,6 +199,7 @@ export interface SignatureOptions {
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: Uint8Array | string;
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
interface ExtrinsicSignatureBase {
|
||||
|
||||
@@ -444,26 +444,26 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-augment@npm:11.3.1, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
"@polkadot/api-augment@npm:12.0.2, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
|
||||
dependencies:
|
||||
"@polkadot/api-base": "npm:11.3.1"
|
||||
"@polkadot/rpc-augment": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-augment": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-base@npm:11.3.1, @polkadot/api-base@workspace:packages/api-base":
|
||||
"@polkadot/api-base@npm:12.0.2, @polkadot/api-base@workspace:packages/api-base":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-base@workspace:packages/api-base"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.6.2"
|
||||
@@ -474,13 +474,13 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.3.1"
|
||||
"@polkadot/api-augment": "npm:11.3.1"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-create": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
@@ -488,19 +488,19 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@npm:11.3.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@npm:12.0.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.3.1"
|
||||
"@polkadot/api-augment": "npm:11.3.1"
|
||||
"@polkadot/api-base": "npm:11.3.1"
|
||||
"@polkadot/rpc-augment": "npm:11.3.1"
|
||||
"@polkadot/rpc-core": "npm:11.3.1"
|
||||
"@polkadot/rpc-provider": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
@@ -508,23 +508,23 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@npm:11.3.1, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@npm:12.0.2, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@polkadot/api-augment": "npm:11.3.1"
|
||||
"@polkadot/api-base": "npm:11.3.1"
|
||||
"@polkadot/api-derive": "npm:11.3.1"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/api-derive": "npm:12.0.2"
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/rpc-augment": "npm:11.3.1"
|
||||
"@polkadot/rpc-core": "npm:11.3.1"
|
||||
"@polkadot/rpc-provider": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-augment": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-create": "npm:11.3.1"
|
||||
"@polkadot/types-known": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-known": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
eventemitter3: "npm:^5.0.1"
|
||||
@@ -654,39 +654,39 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-augment@npm:11.3.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
"@polkadot/rpc-augment@npm:12.0.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@npm:11.3.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@npm:12.0.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/rpc-augment": "npm:11.3.1"
|
||||
"@polkadot/rpc-provider": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@npm:11.3.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@npm:12.0.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-fetch": "npm:^12.6.2"
|
||||
@@ -707,15 +707,15 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.3.1"
|
||||
"@polkadot/api-augment": "npm:11.3.1"
|
||||
"@polkadot/rpc-augment": "npm:11.3.1"
|
||||
"@polkadot/rpc-provider": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-augment": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-create": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-ws": "npm:^12.6.2"
|
||||
@@ -732,24 +732,24 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-augment@npm:11.3.1, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
"@polkadot/types-augment@npm:12.0.2, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-codec@npm:11.3.1, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
"@polkadot/types-codec@npm:12.0.2, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-augment": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-bigint": "npm:^12.6.2"
|
||||
@@ -757,32 +757,32 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-create@npm:11.3.1, @polkadot/types-create@workspace:packages/types-create":
|
||||
"@polkadot/types-create@npm:12.0.2, @polkadot/types-create@workspace:packages/types-create":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-create@workspace:packages/types-create"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@npm:11.3.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@npm:12.0.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.3.1"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/networks": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-create": "npm:11.3.1"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@npm:11.3.1, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@npm:12.0.2, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
@@ -791,15 +791,15 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@npm:11.3.1, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@npm:12.0.2, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types-augment": "npm:11.3.1"
|
||||
"@polkadot/types-codec": "npm:11.3.1"
|
||||
"@polkadot/types-create": "npm:11.3.1"
|
||||
"@polkadot/types-support": "npm:11.3.1"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
|
||||
Reference in New Issue
Block a user