@dedot/chaintypes 0.95.0 → 0.97.0

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": "@dedot/chaintypes",
3
- "version": "0.95.0",
3
+ "version": "0.97.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "9f9b007e35f5fcc2a2a326cdad78f2c3985ec54c",
22
+ "gitHead": "d7eca2ab18e1e83fd127f623513441e1c868a500",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
25
25
  "exports": {
package/paseo/consts.d.ts CHANGED
@@ -501,15 +501,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
501
501
  **/
502
502
  [name: string]: any;
503
503
  };
504
- /**
505
- * Pallet `Parameters`'s constants
506
- **/
507
- parameters: {
508
- /**
509
- * Generic pallet constant
510
- **/
511
- [name: string]: any;
512
- };
513
504
  /**
514
505
  * Pallet `Claims`'s constants
515
506
  **/
package/paseo/errors.d.ts CHANGED
@@ -439,12 +439,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
439
439
  **/
440
440
  VirtualStakerNotAllowed: GenericPalletError<Rv>;
441
441
 
442
- /**
443
- * Account is restricted from participation in staking. This may happen if the account is
444
- * staking in another way already, such as via pool.
445
- **/
446
- Restricted: GenericPalletError<Rv>;
447
-
448
442
  /**
449
443
  * Generic pallet error
450
444
  **/
@@ -1379,12 +1373,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1379
1373
  **/
1380
1374
  NotSupported: GenericPalletError<Rv>;
1381
1375
 
1382
- /**
1383
- * Account is restricted from participation in pools. This may happen if the account is
1384
- * staking in another way already.
1385
- **/
1386
- Restricted: GenericPalletError<Rv>;
1387
-
1388
1376
  /**
1389
1377
  * Generic pallet error
1390
1378
  **/
package/paseo/events.d.ts CHANGED
@@ -26,9 +26,7 @@ import type {
26
26
  PalletConvictionVotingTally,
27
27
  FrameSupportDispatchPostDispatchInfo,
28
28
  SpRuntimeDispatchErrorWithPostInfo,
29
- PaseoRuntimeRuntimeParametersKey,
30
- PaseoRuntimeRuntimeParametersValue,
31
- PaseoRuntimeProxyType,
29
+ PaseoRuntimeConstantsProxyProxyType,
32
30
  PalletMultisigTimepoint,
33
31
  PalletElectionProviderMultiPhaseElectionCompute,
34
32
  SpNposElectionsElectionScore,
@@ -1080,42 +1078,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1080
1078
  **/
1081
1079
  [prop: string]: GenericPalletEvent<Rv>;
1082
1080
  };
1083
- /**
1084
- * Pallet `Parameters`'s events
1085
- **/
1086
- parameters: {
1087
- /**
1088
- * A Parameter was set.
1089
- *
1090
- * Is also emitted when the value was not changed.
1091
- **/
1092
- Updated: GenericPalletEvent<
1093
- Rv,
1094
- 'Parameters',
1095
- 'Updated',
1096
- {
1097
- /**
1098
- * The key that was updated.
1099
- **/
1100
- key: PaseoRuntimeRuntimeParametersKey;
1101
-
1102
- /**
1103
- * The old value before this call.
1104
- **/
1105
- oldValue?: PaseoRuntimeRuntimeParametersValue | undefined;
1106
-
1107
- /**
1108
- * The new value after this call.
1109
- **/
1110
- newValue?: PaseoRuntimeRuntimeParametersValue | undefined;
1111
- }
1112
- >;
1113
-
1114
- /**
1115
- * Generic pallet event
1116
- **/
1117
- [prop: string]: GenericPalletEvent<Rv>;
1118
- };
1119
1081
  /**
1120
1082
  * Pallet `Claims`'s events
1121
1083
  **/
@@ -1212,7 +1174,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1212
1174
  Rv,
1213
1175
  'Proxy',
1214
1176
  'PureCreated',
1215
- { pure: AccountId32; who: AccountId32; proxyType: PaseoRuntimeProxyType; disambiguationIndex: number }
1177
+ {
1178
+ pure: AccountId32;
1179
+ who: AccountId32;
1180
+ proxyType: PaseoRuntimeConstantsProxyProxyType;
1181
+ disambiguationIndex: number;
1182
+ }
1216
1183
  >;
1217
1184
 
1218
1185
  /**
@@ -1227,7 +1194,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1227
1194
  Rv,
1228
1195
  'Proxy',
1229
1196
  'ProxyAdded',
1230
- { delegator: AccountId32; delegatee: AccountId32; proxyType: PaseoRuntimeProxyType; delay: number }
1197
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number }
1231
1198
  >;
1232
1199
 
1233
1200
  /**
@@ -1237,7 +1204,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1237
1204
  Rv,
1238
1205
  'Proxy',
1239
1206
  'ProxyRemoved',
1240
- { delegator: AccountId32; delegatee: AccountId32; proxyType: PaseoRuntimeProxyType; delay: number }
1207
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number }
1241
1208
  >;
1242
1209
 
1243
1210
  /**
package/paseo/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: PaseoApi
26
- * @specVersion: 1004001
26
+ * @specVersion: 1004003
27
27
  **/
28
28
  export interface PaseoApi {
29
29
  legacy: VersionedPaseoApi<RpcLegacy>;
package/paseo/query.d.ts CHANGED
@@ -62,8 +62,6 @@ import type {
62
62
  PalletTreasurySpendStatus,
63
63
  PalletConvictionVotingVoteVoting,
64
64
  PalletReferendaReferendumInfo,
65
- PaseoRuntimeRuntimeParametersValue,
66
- PaseoRuntimeRuntimeParametersKey,
67
65
  PolkadotRuntimeCommonClaimsStatementKind,
68
66
  PalletVestingVestingInfo,
69
67
  PalletVestingReleases,
@@ -1575,27 +1573,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1575
1573
  **/
1576
1574
  [storage: string]: GenericStorageQuery<Rv>;
1577
1575
  };
1578
- /**
1579
- * Pallet `Parameters`'s storage queries
1580
- **/
1581
- parameters: {
1582
- /**
1583
- * Stored parameters.
1584
- *
1585
- * @param {PaseoRuntimeRuntimeParametersKey} arg
1586
- * @param {Callback<PaseoRuntimeRuntimeParametersValue | undefined> =} callback
1587
- **/
1588
- parameters: GenericStorageQuery<
1589
- Rv,
1590
- (arg: PaseoRuntimeRuntimeParametersKey) => PaseoRuntimeRuntimeParametersValue | undefined,
1591
- PaseoRuntimeRuntimeParametersKey
1592
- >;
1593
-
1594
- /**
1595
- * Generic pallet storage query
1596
- **/
1597
- [storage: string]: GenericStorageQuery<Rv>;
1598
- };
1599
1576
  /**
1600
1577
  * Pallet `Claims`'s storage queries
1601
1578
  **/
@@ -1422,17 +1422,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1422
1422
  **/
1423
1423
  dryRunApi: {
1424
1424
  /**
1425
- * Dry run call.
1425
+ * Dry run call V2.
1426
1426
  *
1427
1427
  * @callname: DryRunApi_dry_run_call
1428
1428
  * @param {PaseoRuntimeOriginCaller} origin
1429
1429
  * @param {PaseoRuntimeRuntimeCallLike} call
1430
+ * @param {number} result_xcms_version
1430
1431
  **/
1431
1432
  dryRunCall: GenericRuntimeApiMethod<
1432
1433
  Rv,
1433
1434
  (
1434
1435
  origin: PaseoRuntimeOriginCaller,
1435
1436
  call: PaseoRuntimeRuntimeCallLike,
1437
+ resultXcmsVersion: number,
1436
1438
  ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
1437
1439
  >;
1438
1440
 
package/paseo/tx.d.ts CHANGED
@@ -47,11 +47,10 @@ import type {
47
47
  FrameSupportPreimagesBounded,
48
48
  FrameSupportScheduleDispatchTime,
49
49
  SpWeightsWeightV2Weight,
50
- PaseoRuntimeRuntimeParameters,
51
50
  PolkadotRuntimeCommonClaimsEcdsaSignature,
52
51
  PolkadotRuntimeCommonClaimsStatementKind,
53
52
  PalletVestingVestingInfo,
54
- PaseoRuntimeProxyType,
53
+ PaseoRuntimeConstantsProxyProxyType,
55
54
  PalletMultisigTimepoint,
56
55
  PalletElectionProviderMultiPhaseRawSolution,
57
56
  PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
@@ -3297,37 +3296,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3297
3296
  **/
3298
3297
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3299
3298
  };
3300
- /**
3301
- * Pallet `Parameters`'s transaction calls
3302
- **/
3303
- parameters: {
3304
- /**
3305
- * Set the value of a parameter.
3306
- *
3307
- * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
3308
- * deleted by setting them to `None`.
3309
- *
3310
- * @param {PaseoRuntimeRuntimeParameters} keyValue
3311
- **/
3312
- setParameter: GenericTxCall<
3313
- Rv,
3314
- (keyValue: PaseoRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
3315
- Rv,
3316
- {
3317
- pallet: 'Parameters';
3318
- palletCall: {
3319
- name: 'SetParameter';
3320
- params: { keyValue: PaseoRuntimeRuntimeParameters };
3321
- };
3322
- }
3323
- >
3324
- >;
3325
-
3326
- /**
3327
- * Generic pallet tx call
3328
- **/
3329
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3330
- };
3331
3299
  /**
3332
3300
  * Pallet `Claims`'s transaction calls
3333
3301
  **/
@@ -3966,14 +3934,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3966
3934
  * - `call`: The call to be made by the `real` account.
3967
3935
  *
3968
3936
  * @param {MultiAddressLike} real
3969
- * @param {PaseoRuntimeProxyType | undefined} forceProxyType
3937
+ * @param {PaseoRuntimeConstantsProxyProxyType | undefined} forceProxyType
3970
3938
  * @param {PaseoRuntimeRuntimeCallLike} call
3971
3939
  **/
3972
3940
  proxy: GenericTxCall<
3973
3941
  Rv,
3974
3942
  (
3975
3943
  real: MultiAddressLike,
3976
- forceProxyType: PaseoRuntimeProxyType | undefined,
3944
+ forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined,
3977
3945
  call: PaseoRuntimeRuntimeCallLike,
3978
3946
  ) => ChainSubmittableExtrinsic<
3979
3947
  Rv,
@@ -3983,7 +3951,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3983
3951
  name: 'Proxy';
3984
3952
  params: {
3985
3953
  real: MultiAddressLike;
3986
- forceProxyType: PaseoRuntimeProxyType | undefined;
3954
+ forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined;
3987
3955
  call: PaseoRuntimeRuntimeCallLike;
3988
3956
  };
3989
3957
  };
@@ -4003,14 +3971,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4003
3971
  * zero.
4004
3972
  *
4005
3973
  * @param {MultiAddressLike} delegate
4006
- * @param {PaseoRuntimeProxyType} proxyType
3974
+ * @param {PaseoRuntimeConstantsProxyProxyType} proxyType
4007
3975
  * @param {number} delay
4008
3976
  **/
4009
3977
  addProxy: GenericTxCall<
4010
3978
  Rv,
4011
3979
  (
4012
3980
  delegate: MultiAddressLike,
4013
- proxyType: PaseoRuntimeProxyType,
3981
+ proxyType: PaseoRuntimeConstantsProxyProxyType,
4014
3982
  delay: number,
4015
3983
  ) => ChainSubmittableExtrinsic<
4016
3984
  Rv,
@@ -4018,7 +3986,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4018
3986
  pallet: 'Proxy';
4019
3987
  palletCall: {
4020
3988
  name: 'AddProxy';
4021
- params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeProxyType; delay: number };
3989
+ params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number };
4022
3990
  };
4023
3991
  }
4024
3992
  >
@@ -4034,14 +4002,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4034
4002
  * - `proxy_type`: The permissions currently enabled for the removed proxy account.
4035
4003
  *
4036
4004
  * @param {MultiAddressLike} delegate
4037
- * @param {PaseoRuntimeProxyType} proxyType
4005
+ * @param {PaseoRuntimeConstantsProxyProxyType} proxyType
4038
4006
  * @param {number} delay
4039
4007
  **/
4040
4008
  removeProxy: GenericTxCall<
4041
4009
  Rv,
4042
4010
  (
4043
4011
  delegate: MultiAddressLike,
4044
- proxyType: PaseoRuntimeProxyType,
4012
+ proxyType: PaseoRuntimeConstantsProxyProxyType,
4045
4013
  delay: number,
4046
4014
  ) => ChainSubmittableExtrinsic<
4047
4015
  Rv,
@@ -4049,7 +4017,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4049
4017
  pallet: 'Proxy';
4050
4018
  palletCall: {
4051
4019
  name: 'RemoveProxy';
4052
- params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeProxyType; delay: number };
4020
+ params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number };
4053
4021
  };
4054
4022
  }
4055
4023
  >
@@ -4097,14 +4065,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4097
4065
  *
4098
4066
  * Fails if there are insufficient funds to pay for deposit.
4099
4067
  *
4100
- * @param {PaseoRuntimeProxyType} proxyType
4068
+ * @param {PaseoRuntimeConstantsProxyProxyType} proxyType
4101
4069
  * @param {number} delay
4102
4070
  * @param {number} index
4103
4071
  **/
4104
4072
  createPure: GenericTxCall<
4105
4073
  Rv,
4106
4074
  (
4107
- proxyType: PaseoRuntimeProxyType,
4075
+ proxyType: PaseoRuntimeConstantsProxyProxyType,
4108
4076
  delay: number,
4109
4077
  index: number,
4110
4078
  ) => ChainSubmittableExtrinsic<
@@ -4113,7 +4081,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4113
4081
  pallet: 'Proxy';
4114
4082
  palletCall: {
4115
4083
  name: 'CreatePure';
4116
- params: { proxyType: PaseoRuntimeProxyType; delay: number; index: number };
4084
+ params: { proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number; index: number };
4117
4085
  };
4118
4086
  }
4119
4087
  >
@@ -4138,7 +4106,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4138
4106
  * account whose `pure` call has corresponding parameters.
4139
4107
  *
4140
4108
  * @param {MultiAddressLike} spawner
4141
- * @param {PaseoRuntimeProxyType} proxyType
4109
+ * @param {PaseoRuntimeConstantsProxyProxyType} proxyType
4142
4110
  * @param {number} index
4143
4111
  * @param {number} height
4144
4112
  * @param {number} extIndex
@@ -4147,7 +4115,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4147
4115
  Rv,
4148
4116
  (
4149
4117
  spawner: MultiAddressLike,
4150
- proxyType: PaseoRuntimeProxyType,
4118
+ proxyType: PaseoRuntimeConstantsProxyProxyType,
4151
4119
  index: number,
4152
4120
  height: number,
4153
4121
  extIndex: number,
@@ -4159,7 +4127,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4159
4127
  name: 'KillPure';
4160
4128
  params: {
4161
4129
  spawner: MultiAddressLike;
4162
- proxyType: PaseoRuntimeProxyType;
4130
+ proxyType: PaseoRuntimeConstantsProxyProxyType;
4163
4131
  index: number;
4164
4132
  height: number;
4165
4133
  extIndex: number;
@@ -4285,7 +4253,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4285
4253
  *
4286
4254
  * @param {MultiAddressLike} delegate
4287
4255
  * @param {MultiAddressLike} real
4288
- * @param {PaseoRuntimeProxyType | undefined} forceProxyType
4256
+ * @param {PaseoRuntimeConstantsProxyProxyType | undefined} forceProxyType
4289
4257
  * @param {PaseoRuntimeRuntimeCallLike} call
4290
4258
  **/
4291
4259
  proxyAnnounced: GenericTxCall<
@@ -4293,7 +4261,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4293
4261
  (
4294
4262
  delegate: MultiAddressLike,
4295
4263
  real: MultiAddressLike,
4296
- forceProxyType: PaseoRuntimeProxyType | undefined,
4264
+ forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined,
4297
4265
  call: PaseoRuntimeRuntimeCallLike,
4298
4266
  ) => ChainSubmittableExtrinsic<
4299
4267
  Rv,
@@ -4304,7 +4272,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4304
4272
  params: {
4305
4273
  delegate: MultiAddressLike;
4306
4274
  real: MultiAddressLike;
4307
- forceProxyType: PaseoRuntimeProxyType | undefined;
4275
+ forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined;
4308
4276
  call: PaseoRuntimeRuntimeCallLike;
4309
4277
  };
4310
4278
  };
@@ -5381,9 +5349,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5381
5349
  **/
5382
5350
  nominationPools: {
5383
5351
  /**
5384
- * Stake funds with a pool. The amount to bond is delegated (or transferred based on
5385
- * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
5386
- * increases the pool's bond.
5352
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
5353
+ * account and immediately increases the pools bond.
5387
5354
  *
5388
5355
  * The method of transferring the amount to the pool account is determined by
5389
5356
  * [`adapter::StakeStrategyType`]. If the pool is configured to use