@polkadot/api-augment 13.0.1 → 13.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.
@@ -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-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '13.0.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '13.2.1' };
@@ -7,6 +7,7 @@ import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet,
7
7
  import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
8
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
9
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
+ import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
10
11
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
12
  import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
12
13
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
@@ -15,12 +16,13 @@ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/
15
16
  import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
16
17
  import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreIndex, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
17
18
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
18
- import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
19
+ import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, ValidatorId, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
19
20
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
20
21
  import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
21
22
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
22
23
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
23
24
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
25
+ import type { VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
24
26
  import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
25
27
  import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
26
28
  import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
@@ -186,6 +188,43 @@ declare module '@polkadot/api-base/types/calls' {
186
188
  **/
187
189
  [key: string]: DecoratedCallBase<ApiType>;
188
190
  };
191
+ /** 0x91b1c8b16328eb92/1 */
192
+ dryRunApi: {
193
+ /**
194
+ * Dry run call
195
+ **/
196
+ dryRunCall: AugmentedCall<ApiType, (origin: OriginCaller | {
197
+ System: any;
198
+ } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<CallDryRunEffects, XcmDryRunApiError>>>;
199
+ /**
200
+ * Dry run XCM program
201
+ **/
202
+ dryRunXcm: AugmentedCall<ApiType, (originLocation: VersionedMultiLocation | {
203
+ V0: any;
204
+ } | {
205
+ V1: any;
206
+ } | {
207
+ V2: any;
208
+ } | {
209
+ V3: any;
210
+ } | {
211
+ V4: any;
212
+ } | string | Uint8Array, xcm: VersionedXcm | {
213
+ V0: any;
214
+ } | {
215
+ V1: any;
216
+ } | {
217
+ V2: any;
218
+ } | {
219
+ V3: any;
220
+ } | {
221
+ V4: any;
222
+ } | string | Uint8Array) => Observable<Result<XcmDryRunEffects, XcmDryRunApiError>>>;
223
+ /**
224
+ * Generic call
225
+ **/
226
+ [key: string]: DecoratedCallBase<ApiType>;
227
+ };
189
228
  /** 0xfbc577b9d747efd6/1 */
190
229
  genesisBuilder: {
191
230
  /**
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "13.0.1",
21
+ "version": "13.2.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -211,12 +211,12 @@
211
211
  }
212
212
  },
213
213
  "dependencies": {
214
- "@polkadot/api-base": "13.0.1",
215
- "@polkadot/rpc-augment": "13.0.1",
216
- "@polkadot/types": "13.0.1",
217
- "@polkadot/types-augment": "13.0.1",
218
- "@polkadot/types-codec": "13.0.1",
219
- "@polkadot/util": "^13.0.2",
214
+ "@polkadot/api-base": "13.2.1",
215
+ "@polkadot/rpc-augment": "13.2.1",
216
+ "@polkadot/types": "13.2.1",
217
+ "@polkadot/types-augment": "13.2.1",
218
+ "@polkadot/types-codec": "13.2.1",
219
+ "@polkadot/util": "^13.1.1",
220
220
  "tslib": "^2.7.0"
221
221
  }
222
222
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-augment', 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: '13.0.1' };
1
+ export const packageInfo = { name: '@polkadot/api-augment', 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: '13.2.1' };