@dedot/chaintypes 0.134.0 → 0.136.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/astar/consts.d.ts +63 -0
- package/astar/errors.d.ts +74 -0
- package/astar/events.d.ts +73 -0
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +48 -0
- package/astar/tx.d.ts +316 -0
- package/astar/types.d.ts +371 -3
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-people/consts.d.ts +38 -1
- package/kusama-people/errors.d.ts +18 -12
- package/kusama-people/events.d.ts +110 -2
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -6
- package/kusama-people/runtime.d.ts +1 -1
- package/kusama-people/tx.d.ts +204 -0
- package/kusama-people/types.d.ts +315 -24
- package/moonbeam/consts.d.ts +125 -0
- package/moonbeam/errors.d.ts +219 -50
- package/moonbeam/events.d.ts +331 -0
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +267 -17
- package/moonbeam/runtime.d.ts +117 -1
- package/moonbeam/tx.d.ts +564 -88
- package/moonbeam/types.d.ts +1376 -239
- package/package.json +2 -2
package/kusama-people/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
MultiAddress,
|
|
14
14
|
MultiAddressLike,
|
|
15
15
|
AccountId32Like,
|
|
16
|
+
Perbill,
|
|
16
17
|
Data,
|
|
17
18
|
Era,
|
|
18
19
|
Header,
|
|
@@ -94,7 +95,11 @@ export type FrameSystemEvent =
|
|
|
94
95
|
/**
|
|
95
96
|
* An upgrade was authorized.
|
|
96
97
|
**/
|
|
97
|
-
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }
|
|
98
|
+
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }
|
|
99
|
+
/**
|
|
100
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
101
|
+
**/
|
|
102
|
+
| { name: 'RejectedInvalidAuthorizedUpgrade'; data: { codeHash: H256; error: DispatchError } };
|
|
98
103
|
|
|
99
104
|
export type FrameSystemDispatchEventInfo = {
|
|
100
105
|
weight: SpWeightsWeightV2Weight;
|
|
@@ -431,7 +436,15 @@ export type PalletSessionEvent =
|
|
|
431
436
|
* New session has happened. Note that the argument is the session index, not the
|
|
432
437
|
* block number as the type might suggest.
|
|
433
438
|
**/
|
|
434
|
-
{ name: 'NewSession'; data: { sessionIndex: number } }
|
|
439
|
+
| { name: 'NewSession'; data: { sessionIndex: number } }
|
|
440
|
+
/**
|
|
441
|
+
* Validator has been disabled.
|
|
442
|
+
**/
|
|
443
|
+
| { name: 'ValidatorDisabled'; data: { validator: AccountId32 } }
|
|
444
|
+
/**
|
|
445
|
+
* Validator has been re-enabled.
|
|
446
|
+
**/
|
|
447
|
+
| { name: 'ValidatorReenabled'; data: { validator: AccountId32 } };
|
|
435
448
|
|
|
436
449
|
/**
|
|
437
450
|
* The `Event` enum of this pallet
|
|
@@ -451,7 +464,7 @@ export type PalletXcmEvent =
|
|
|
451
464
|
**/
|
|
452
465
|
| { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
|
|
453
466
|
/**
|
|
454
|
-
*
|
|
467
|
+
* An XCM message was sent.
|
|
455
468
|
**/
|
|
456
469
|
| {
|
|
457
470
|
name: 'Sent';
|
|
@@ -462,6 +475,25 @@ export type PalletXcmEvent =
|
|
|
462
475
|
messageId: FixedBytes<32>;
|
|
463
476
|
};
|
|
464
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* An XCM message failed to send.
|
|
480
|
+
**/
|
|
481
|
+
| {
|
|
482
|
+
name: 'SendFailed';
|
|
483
|
+
data: {
|
|
484
|
+
origin: StagingXcmV5Location;
|
|
485
|
+
destination: StagingXcmV5Location;
|
|
486
|
+
error: XcmV3TraitsSendError;
|
|
487
|
+
messageId: FixedBytes<32>;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* An XCM message failed to process.
|
|
492
|
+
**/
|
|
493
|
+
| {
|
|
494
|
+
name: 'ProcessXcmError';
|
|
495
|
+
data: { origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> };
|
|
496
|
+
}
|
|
465
497
|
/**
|
|
466
498
|
* Query response received which does not match a registered query. This may be because a
|
|
467
499
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -618,7 +650,23 @@ export type PalletXcmEvent =
|
|
|
618
650
|
/**
|
|
619
651
|
* A XCM version migration finished.
|
|
620
652
|
**/
|
|
621
|
-
| { name: 'VersionMigrationFinished'; data: { version: number } }
|
|
653
|
+
| { name: 'VersionMigrationFinished'; data: { version: number } }
|
|
654
|
+
/**
|
|
655
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
656
|
+
* `expiry` block number.
|
|
657
|
+
**/
|
|
658
|
+
| {
|
|
659
|
+
name: 'AliasAuthorized';
|
|
660
|
+
data: { aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined };
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* `target` removed alias authorization for `aliaser`.
|
|
664
|
+
**/
|
|
665
|
+
| { name: 'AliasAuthorizationRemoved'; data: { aliaser: StagingXcmV5Location; target: StagingXcmV5Location } }
|
|
666
|
+
/**
|
|
667
|
+
* `target` removed all alias authorizations.
|
|
668
|
+
**/
|
|
669
|
+
| { name: 'AliasesAuthorizationsRemoved'; data: { target: StagingXcmV5Location } };
|
|
622
670
|
|
|
623
671
|
export type StagingXcmV5TraitsOutcome =
|
|
624
672
|
| { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
|
|
@@ -903,6 +951,15 @@ export type StagingXcmV5AssetAssetTransferFilter =
|
|
|
903
951
|
|
|
904
952
|
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
905
953
|
|
|
954
|
+
export type XcmV3TraitsSendError =
|
|
955
|
+
| 'NotApplicable'
|
|
956
|
+
| 'Transport'
|
|
957
|
+
| 'Unroutable'
|
|
958
|
+
| 'DestinationUnsupported'
|
|
959
|
+
| 'ExceedsMaxMessageSize'
|
|
960
|
+
| 'MissingArgument'
|
|
961
|
+
| 'Fees';
|
|
962
|
+
|
|
906
963
|
export type XcmVersionedAssets =
|
|
907
964
|
| { type: 'V3'; value: XcmV3MultiassetMultiAssets }
|
|
908
965
|
| { type: 'V4'; value: StagingXcmV4AssetAssets }
|
|
@@ -1211,7 +1268,15 @@ export type PalletUtilityEvent =
|
|
|
1211
1268
|
/**
|
|
1212
1269
|
* A call was dispatched.
|
|
1213
1270
|
**/
|
|
1214
|
-
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1271
|
+
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1272
|
+
/**
|
|
1273
|
+
* Main call was dispatched.
|
|
1274
|
+
**/
|
|
1275
|
+
| { name: 'IfElseMainSuccess' }
|
|
1276
|
+
/**
|
|
1277
|
+
* The fallback call was dispatched.
|
|
1278
|
+
**/
|
|
1279
|
+
| { name: 'IfElseFallbackCalled'; data: { mainError: DispatchError } };
|
|
1215
1280
|
|
|
1216
1281
|
/**
|
|
1217
1282
|
* The `Event` enum of this pallet
|
|
@@ -1257,6 +1322,13 @@ export type PalletMultisigEvent =
|
|
|
1257
1322
|
multisig: AccountId32;
|
|
1258
1323
|
callHash: FixedBytes<32>;
|
|
1259
1324
|
};
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1328
|
+
**/
|
|
1329
|
+
| {
|
|
1330
|
+
name: 'DepositPoked';
|
|
1331
|
+
data: { who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint };
|
|
1260
1332
|
};
|
|
1261
1333
|
|
|
1262
1334
|
export type PalletMultisigTimepoint = { height: number; index: number };
|
|
@@ -1299,6 +1371,13 @@ export type PalletProxyEvent =
|
|
|
1299
1371
|
| {
|
|
1300
1372
|
name: 'ProxyRemoved';
|
|
1301
1373
|
data: { delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleKusamaRuntimeProxyType; delay: number };
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1377
|
+
**/
|
|
1378
|
+
| {
|
|
1379
|
+
name: 'DepositPoked';
|
|
1380
|
+
data: { who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint };
|
|
1302
1381
|
};
|
|
1303
1382
|
|
|
1304
1383
|
export type PeopleKusamaRuntimeProxyType =
|
|
@@ -1309,6 +1388,8 @@ export type PeopleKusamaRuntimeProxyType =
|
|
|
1309
1388
|
| 'IdentityJudgement'
|
|
1310
1389
|
| 'Collator';
|
|
1311
1390
|
|
|
1391
|
+
export type PalletProxyDepositKind = 'Proxies' | 'Announcements';
|
|
1392
|
+
|
|
1312
1393
|
/**
|
|
1313
1394
|
* The `Event` enum of this pallet
|
|
1314
1395
|
**/
|
|
@@ -1780,15 +1861,7 @@ export type CumulusPalletParachainSystemError =
|
|
|
1780
1861
|
/**
|
|
1781
1862
|
* No validation function upgrade is currently scheduled.
|
|
1782
1863
|
**/
|
|
1783
|
-
| 'NotScheduled'
|
|
1784
|
-
/**
|
|
1785
|
-
* No code upgrade has been authorized.
|
|
1786
|
-
**/
|
|
1787
|
-
| 'NothingAuthorized'
|
|
1788
|
-
/**
|
|
1789
|
-
* The given code upgrade has not been authorized.
|
|
1790
|
-
**/
|
|
1791
|
-
| 'Unauthorized';
|
|
1864
|
+
| 'NotScheduled';
|
|
1792
1865
|
|
|
1793
1866
|
/**
|
|
1794
1867
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -1952,7 +2025,9 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
|
|
|
1952
2025
|
|
|
1953
2026
|
export type FrameSupportTokensMiscIdAmount = { id: PeopleKusamaRuntimeRuntimeHoldReason; amount: bigint };
|
|
1954
2027
|
|
|
1955
|
-
export type PeopleKusamaRuntimeRuntimeHoldReason =
|
|
2028
|
+
export type PeopleKusamaRuntimeRuntimeHoldReason = { type: 'PolkadotXcm'; value: PalletXcmHoldReason };
|
|
2029
|
+
|
|
2030
|
+
export type PalletXcmHoldReason = 'AuthorizeAlias';
|
|
1956
2031
|
|
|
1957
2032
|
export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
|
|
1958
2033
|
|
|
@@ -2361,6 +2436,8 @@ export type PalletCollatorSelectionCallLike =
|
|
|
2361
2436
|
**/
|
|
2362
2437
|
| { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } };
|
|
2363
2438
|
|
|
2439
|
+
export type FrameSupportPalletId = FixedBytes<8>;
|
|
2440
|
+
|
|
2364
2441
|
/**
|
|
2365
2442
|
* The `Error` enum of this pallet.
|
|
2366
2443
|
**/
|
|
@@ -2438,6 +2515,8 @@ export type PeopleKusamaRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr
|
|
|
2438
2515
|
|
|
2439
2516
|
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
2440
2517
|
|
|
2518
|
+
export type SpStakingOffenceOffenceSeverity = Perbill;
|
|
2519
|
+
|
|
2441
2520
|
export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
|
|
2442
2521
|
|
|
2443
2522
|
/**
|
|
@@ -2764,6 +2843,20 @@ export type PalletXcmRemoteLockedFungibleRecord = {
|
|
|
2764
2843
|
consumers: Array<[[], bigint]>;
|
|
2765
2844
|
};
|
|
2766
2845
|
|
|
2846
|
+
export type PalletXcmAuthorizedAliasesEntry = {
|
|
2847
|
+
aliasers: Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>;
|
|
2848
|
+
ticket: FrameSupportStorageDisabled;
|
|
2849
|
+
};
|
|
2850
|
+
|
|
2851
|
+
export type FrameSupportStorageDisabled = {};
|
|
2852
|
+
|
|
2853
|
+
export type PalletXcmMaxAuthorizedAliases = {};
|
|
2854
|
+
|
|
2855
|
+
export type XcmRuntimeApisAuthorizedAliasesOriginAliaser = {
|
|
2856
|
+
location: XcmVersionedLocation;
|
|
2857
|
+
expiry?: bigint | undefined;
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2767
2860
|
/**
|
|
2768
2861
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
2769
2862
|
**/
|
|
@@ -3077,7 +3170,31 @@ export type PalletXcmCall =
|
|
|
3077
3170
|
customXcmOnDest: XcmVersionedXcm;
|
|
3078
3171
|
weightLimit: XcmV3WeightLimit;
|
|
3079
3172
|
};
|
|
3080
|
-
}
|
|
3173
|
+
}
|
|
3174
|
+
/**
|
|
3175
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
3176
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
3177
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
3178
|
+
* `expiry` block number.
|
|
3179
|
+
*
|
|
3180
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
3181
|
+
* also under your control (like your account on another chain).
|
|
3182
|
+
*
|
|
3183
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
3184
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
3185
|
+
* `origin` in XCM programs executed on the local chain.
|
|
3186
|
+
**/
|
|
3187
|
+
| { name: 'AddAuthorizedAlias'; params: { aliaser: XcmVersionedLocation; expires?: bigint | undefined } }
|
|
3188
|
+
/**
|
|
3189
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
3190
|
+
* the local `origin` making this call.
|
|
3191
|
+
**/
|
|
3192
|
+
| { name: 'RemoveAuthorizedAlias'; params: { aliaser: XcmVersionedLocation } }
|
|
3193
|
+
/**
|
|
3194
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
3195
|
+
* making this call.
|
|
3196
|
+
**/
|
|
3197
|
+
| { name: 'RemoveAllAuthorizedAliases' };
|
|
3081
3198
|
|
|
3082
3199
|
export type PalletXcmCallLike =
|
|
3083
3200
|
| { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
|
|
@@ -3389,7 +3506,31 @@ export type PalletXcmCallLike =
|
|
|
3389
3506
|
customXcmOnDest: XcmVersionedXcm;
|
|
3390
3507
|
weightLimit: XcmV3WeightLimit;
|
|
3391
3508
|
};
|
|
3392
|
-
}
|
|
3509
|
+
}
|
|
3510
|
+
/**
|
|
3511
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
3512
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
3513
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
3514
|
+
* `expiry` block number.
|
|
3515
|
+
*
|
|
3516
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
3517
|
+
* also under your control (like your account on another chain).
|
|
3518
|
+
*
|
|
3519
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
3520
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
3521
|
+
* `origin` in XCM programs executed on the local chain.
|
|
3522
|
+
**/
|
|
3523
|
+
| { name: 'AddAuthorizedAlias'; params: { aliaser: XcmVersionedLocation; expires?: bigint | undefined } }
|
|
3524
|
+
/**
|
|
3525
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
3526
|
+
* the local `origin` making this call.
|
|
3527
|
+
**/
|
|
3528
|
+
| { name: 'RemoveAuthorizedAlias'; params: { aliaser: XcmVersionedLocation } }
|
|
3529
|
+
/**
|
|
3530
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
3531
|
+
* making this call.
|
|
3532
|
+
**/
|
|
3533
|
+
| { name: 'RemoveAllAuthorizedAliases' };
|
|
3393
3534
|
|
|
3394
3535
|
export type XcmVersionedXcm =
|
|
3395
3536
|
| { type: 'V3'; value: XcmV3Xcm }
|
|
@@ -3736,7 +3877,19 @@ export type PalletXcmError =
|
|
|
3736
3877
|
/**
|
|
3737
3878
|
* Local XCM execution incomplete.
|
|
3738
3879
|
**/
|
|
3739
|
-
| 'LocalExecutionIncomplete'
|
|
3880
|
+
| 'LocalExecutionIncomplete'
|
|
3881
|
+
/**
|
|
3882
|
+
* Too many locations authorized to alias origin.
|
|
3883
|
+
**/
|
|
3884
|
+
| 'TooManyAuthorizedAliases'
|
|
3885
|
+
/**
|
|
3886
|
+
* Expiry block number is in the past.
|
|
3887
|
+
**/
|
|
3888
|
+
| 'ExpiresInPast'
|
|
3889
|
+
/**
|
|
3890
|
+
* The alias to remove authorization for was not found.
|
|
3891
|
+
**/
|
|
3892
|
+
| 'AliasNotFound';
|
|
3740
3893
|
|
|
3741
3894
|
/**
|
|
3742
3895
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -3968,7 +4121,44 @@ export type PalletUtilityCall =
|
|
|
3968
4121
|
*
|
|
3969
4122
|
* The dispatch origin for this call must be _Root_.
|
|
3970
4123
|
**/
|
|
3971
|
-
| { name: 'WithWeight'; params: { call: PeopleKusamaRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
4124
|
+
| { name: 'WithWeight'; params: { call: PeopleKusamaRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
4125
|
+
/**
|
|
4126
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
4127
|
+
* May be called from any origin except `None`.
|
|
4128
|
+
*
|
|
4129
|
+
* This function first attempts to dispatch the `main` call.
|
|
4130
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
4131
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
4132
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
4133
|
+
*
|
|
4134
|
+
* In the event of a fallback failure the whole call fails
|
|
4135
|
+
* with the weights returned.
|
|
4136
|
+
*
|
|
4137
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
4138
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
4139
|
+
*
|
|
4140
|
+
* ## Dispatch Logic
|
|
4141
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
4142
|
+
* applying any origin filters.
|
|
4143
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
4144
|
+
* `fallback` calls.
|
|
4145
|
+
*
|
|
4146
|
+
* ## Use Case
|
|
4147
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
4148
|
+
* or both.
|
|
4149
|
+
**/
|
|
4150
|
+
| { name: 'IfElse'; params: { main: PeopleKusamaRuntimeRuntimeCall; fallback: PeopleKusamaRuntimeRuntimeCall } }
|
|
4151
|
+
/**
|
|
4152
|
+
* Dispatches a function call with a provided origin.
|
|
4153
|
+
*
|
|
4154
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
4155
|
+
*
|
|
4156
|
+
* The dispatch origin for this call must be _Root_.
|
|
4157
|
+
**/
|
|
4158
|
+
| {
|
|
4159
|
+
name: 'DispatchAsFallible';
|
|
4160
|
+
params: { asOrigin: PeopleKusamaRuntimeOriginCaller; call: PeopleKusamaRuntimeRuntimeCall };
|
|
4161
|
+
};
|
|
3972
4162
|
|
|
3973
4163
|
export type PalletUtilityCallLike =
|
|
3974
4164
|
/**
|
|
@@ -4060,7 +4250,47 @@ export type PalletUtilityCallLike =
|
|
|
4060
4250
|
*
|
|
4061
4251
|
* The dispatch origin for this call must be _Root_.
|
|
4062
4252
|
**/
|
|
4063
|
-
| { name: 'WithWeight'; params: { call: PeopleKusamaRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
4253
|
+
| { name: 'WithWeight'; params: { call: PeopleKusamaRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
4254
|
+
/**
|
|
4255
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
4256
|
+
* May be called from any origin except `None`.
|
|
4257
|
+
*
|
|
4258
|
+
* This function first attempts to dispatch the `main` call.
|
|
4259
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
4260
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
4261
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
4262
|
+
*
|
|
4263
|
+
* In the event of a fallback failure the whole call fails
|
|
4264
|
+
* with the weights returned.
|
|
4265
|
+
*
|
|
4266
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
4267
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
4268
|
+
*
|
|
4269
|
+
* ## Dispatch Logic
|
|
4270
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
4271
|
+
* applying any origin filters.
|
|
4272
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
4273
|
+
* `fallback` calls.
|
|
4274
|
+
*
|
|
4275
|
+
* ## Use Case
|
|
4276
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
4277
|
+
* or both.
|
|
4278
|
+
**/
|
|
4279
|
+
| {
|
|
4280
|
+
name: 'IfElse';
|
|
4281
|
+
params: { main: PeopleKusamaRuntimeRuntimeCallLike; fallback: PeopleKusamaRuntimeRuntimeCallLike };
|
|
4282
|
+
}
|
|
4283
|
+
/**
|
|
4284
|
+
* Dispatches a function call with a provided origin.
|
|
4285
|
+
*
|
|
4286
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
4287
|
+
*
|
|
4288
|
+
* The dispatch origin for this call must be _Root_.
|
|
4289
|
+
**/
|
|
4290
|
+
| {
|
|
4291
|
+
name: 'DispatchAsFallible';
|
|
4292
|
+
params: { asOrigin: PeopleKusamaRuntimeOriginCaller; call: PeopleKusamaRuntimeRuntimeCallLike };
|
|
4293
|
+
};
|
|
4064
4294
|
|
|
4065
4295
|
export type PeopleKusamaRuntimeRuntimeCall =
|
|
4066
4296
|
| { pallet: 'System'; palletCall: FrameSystemCall }
|
|
@@ -4244,6 +4474,25 @@ export type PalletMultisigCall =
|
|
|
4244
4474
|
timepoint: PalletMultisigTimepoint;
|
|
4245
4475
|
callHash: FixedBytes<32>;
|
|
4246
4476
|
};
|
|
4477
|
+
}
|
|
4478
|
+
/**
|
|
4479
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4480
|
+
*
|
|
4481
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4482
|
+
* the multisig operation.
|
|
4483
|
+
*
|
|
4484
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4485
|
+
*
|
|
4486
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4487
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4488
|
+
* multisig.
|
|
4489
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4490
|
+
*
|
|
4491
|
+
* Emits `DepositPoked` if successful.
|
|
4492
|
+
**/
|
|
4493
|
+
| {
|
|
4494
|
+
name: 'PokeDeposit';
|
|
4495
|
+
params: { threshold: number; otherSignatories: Array<AccountId32>; callHash: FixedBytes<32> };
|
|
4247
4496
|
};
|
|
4248
4497
|
|
|
4249
4498
|
export type PalletMultisigCallLike =
|
|
@@ -4389,6 +4638,25 @@ export type PalletMultisigCallLike =
|
|
|
4389
4638
|
timepoint: PalletMultisigTimepoint;
|
|
4390
4639
|
callHash: FixedBytes<32>;
|
|
4391
4640
|
};
|
|
4641
|
+
}
|
|
4642
|
+
/**
|
|
4643
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4644
|
+
*
|
|
4645
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4646
|
+
* the multisig operation.
|
|
4647
|
+
*
|
|
4648
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4649
|
+
*
|
|
4650
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4651
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4652
|
+
* multisig.
|
|
4653
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4654
|
+
*
|
|
4655
|
+
* Emits `DepositPoked` if successful.
|
|
4656
|
+
**/
|
|
4657
|
+
| {
|
|
4658
|
+
name: 'PokeDeposit';
|
|
4659
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
4392
4660
|
};
|
|
4393
4661
|
|
|
4394
4662
|
/**
|
|
@@ -4559,7 +4827,18 @@ export type PalletProxyCall =
|
|
|
4559
4827
|
forceProxyType?: PeopleKusamaRuntimeProxyType | undefined;
|
|
4560
4828
|
call: PeopleKusamaRuntimeRuntimeCall;
|
|
4561
4829
|
};
|
|
4562
|
-
}
|
|
4830
|
+
}
|
|
4831
|
+
/**
|
|
4832
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
4833
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
4834
|
+
*
|
|
4835
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4836
|
+
*
|
|
4837
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4838
|
+
*
|
|
4839
|
+
* Emits `DepositPoked` if successful.
|
|
4840
|
+
**/
|
|
4841
|
+
| { name: 'PokeDeposit' };
|
|
4563
4842
|
|
|
4564
4843
|
export type PalletProxyCallLike =
|
|
4565
4844
|
/**
|
|
@@ -4729,7 +5008,18 @@ export type PalletProxyCallLike =
|
|
|
4729
5008
|
forceProxyType?: PeopleKusamaRuntimeProxyType | undefined;
|
|
4730
5009
|
call: PeopleKusamaRuntimeRuntimeCallLike;
|
|
4731
5010
|
};
|
|
4732
|
-
}
|
|
5011
|
+
}
|
|
5012
|
+
/**
|
|
5013
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
5014
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
5015
|
+
*
|
|
5016
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5017
|
+
*
|
|
5018
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5019
|
+
*
|
|
5020
|
+
* Emits `DepositPoked` if successful.
|
|
5021
|
+
**/
|
|
5022
|
+
| { name: 'PokeDeposit' };
|
|
4733
5023
|
|
|
4734
5024
|
/**
|
|
4735
5025
|
* Identity pallet declaration.
|
|
@@ -5334,11 +5624,12 @@ export type PalletMultisigError =
|
|
|
5334
5624
|
**/
|
|
5335
5625
|
| 'SenderInSignatories'
|
|
5336
5626
|
/**
|
|
5337
|
-
* Multisig operation not found
|
|
5627
|
+
* Multisig operation not found in storage.
|
|
5338
5628
|
**/
|
|
5339
5629
|
| 'NotFound'
|
|
5340
5630
|
/**
|
|
5341
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
5631
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
5632
|
+
* its deposits.
|
|
5342
5633
|
**/
|
|
5343
5634
|
| 'NotOwner'
|
|
5344
5635
|
/**
|
package/moonbeam/consts.d.ts
CHANGED
|
@@ -273,6 +273,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
273
273
|
**/
|
|
274
274
|
maxCandidates: number;
|
|
275
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Threshold after which inflation become linear
|
|
278
|
+
* If you don't want to use it, set it to `()`
|
|
279
|
+
**/
|
|
280
|
+
linearInflationThreshold: bigint | undefined;
|
|
281
|
+
|
|
276
282
|
/**
|
|
277
283
|
* Generic pallet constant
|
|
278
284
|
**/
|
|
@@ -1087,6 +1093,125 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1087
1093
|
**/
|
|
1088
1094
|
epochExpirationDelay: bigint;
|
|
1089
1095
|
|
|
1096
|
+
/**
|
|
1097
|
+
* Generic pallet constant
|
|
1098
|
+
**/
|
|
1099
|
+
[name: string]: any;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* Pallet `BridgeKusamaGrandpa`'s constants
|
|
1103
|
+
**/
|
|
1104
|
+
bridgeKusamaGrandpa: {
|
|
1105
|
+
/**
|
|
1106
|
+
* Maximal number of "free" header transactions per block.
|
|
1107
|
+
*
|
|
1108
|
+
* To be able to track the bridged chain, the pallet requires all headers that are
|
|
1109
|
+
* changing GRANDPA authorities set at the bridged chain (we call them mandatory).
|
|
1110
|
+
* So it is a common good deed to submit mandatory headers to the pallet.
|
|
1111
|
+
*
|
|
1112
|
+
* The pallet may be configured (see `[Self::FreeHeadersInterval]`) to import some
|
|
1113
|
+
* non-mandatory headers for free as well. It also may be treated as a common good
|
|
1114
|
+
* deed, because it may help to reduce bridge fees - this cost may be deducted from
|
|
1115
|
+
* bridge fees, paid by message senders.
|
|
1116
|
+
*
|
|
1117
|
+
* However, if the bridged chain gets compromised, its validators may generate as many
|
|
1118
|
+
* "free" headers as they want. And they may fill the whole block (at this chain) for
|
|
1119
|
+
* free. This constant limits number of calls that we may refund in a single block.
|
|
1120
|
+
* All calls above this limit are accepted, but are not refunded.
|
|
1121
|
+
**/
|
|
1122
|
+
maxFreeHeadersPerBlock: number;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* The distance between bridged chain headers, that may be submitted for free. The
|
|
1126
|
+
* first free header is header number zero, the next one is header number
|
|
1127
|
+
* `FreeHeadersInterval::get()` or any of its descendant if that header has not
|
|
1128
|
+
* been submitted. In other words, interval between free headers should be at least
|
|
1129
|
+
* `FreeHeadersInterval`.
|
|
1130
|
+
**/
|
|
1131
|
+
freeHeadersInterval: number | undefined;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Maximal number of finalized headers to keep in the storage.
|
|
1135
|
+
*
|
|
1136
|
+
* The setting is there to prevent growing the on-chain state indefinitely. Note
|
|
1137
|
+
* the setting does not relate to block numbers - we will simply keep as much items
|
|
1138
|
+
* in the storage, so it doesn't guarantee any fixed timeframe for finality headers.
|
|
1139
|
+
*
|
|
1140
|
+
* Incautious change of this constant may lead to orphan entries in the runtime storage.
|
|
1141
|
+
**/
|
|
1142
|
+
headersToKeep: number;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Generic pallet constant
|
|
1146
|
+
**/
|
|
1147
|
+
[name: string]: any;
|
|
1148
|
+
};
|
|
1149
|
+
/**
|
|
1150
|
+
* Pallet `BridgeKusamaParachains`'s constants
|
|
1151
|
+
**/
|
|
1152
|
+
bridgeKusamaParachains: {
|
|
1153
|
+
/**
|
|
1154
|
+
* Name of the original `paras` pallet in the `construct_runtime!()` call at the bridged
|
|
1155
|
+
* chain.
|
|
1156
|
+
*
|
|
1157
|
+
* Please keep in mind that this should be the name of the `runtime_parachains::paras`
|
|
1158
|
+
* pallet from polkadot repository, not the `pallet-bridge-parachains`.
|
|
1159
|
+
**/
|
|
1160
|
+
parasPalletName: string;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Maximal number of single parachain heads to keep in the storage.
|
|
1164
|
+
*
|
|
1165
|
+
* The setting is there to prevent growing the on-chain state indefinitely. Note
|
|
1166
|
+
* the setting does not relate to parachain block numbers - we will simply keep as much
|
|
1167
|
+
* items in the storage, so it doesn't guarantee any fixed timeframe for heads.
|
|
1168
|
+
*
|
|
1169
|
+
* Incautious change of this constant may lead to orphan entries in the runtime storage.
|
|
1170
|
+
**/
|
|
1171
|
+
headsToKeep: number;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Maximal size (in bytes) of the SCALE-encoded parachain head data
|
|
1175
|
+
* (`bp_parachains::ParaStoredHeaderData`).
|
|
1176
|
+
*
|
|
1177
|
+
* Keep in mind that the size of any tracked parachain header data must not exceed this
|
|
1178
|
+
* value. So if you're going to track multiple parachains, one of which is using large
|
|
1179
|
+
* hashes, you shall choose this maximal value.
|
|
1180
|
+
*
|
|
1181
|
+
* There's no mandatory headers in this pallet, so it can't stall if there's some header
|
|
1182
|
+
* that exceeds this bound.
|
|
1183
|
+
**/
|
|
1184
|
+
maxParaHeadDataSize: number;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Generic pallet constant
|
|
1188
|
+
**/
|
|
1189
|
+
[name: string]: any;
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Pallet `BridgeKusamaMessages`'s constants
|
|
1193
|
+
**/
|
|
1194
|
+
bridgeKusamaMessages: {
|
|
1195
|
+
/**
|
|
1196
|
+
* Generic pallet constant
|
|
1197
|
+
**/
|
|
1198
|
+
[name: string]: any;
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* Pallet `BridgeXcmOverMoonriver`'s constants
|
|
1202
|
+
**/
|
|
1203
|
+
bridgeXcmOverMoonriver: {
|
|
1204
|
+
/**
|
|
1205
|
+
* Bridged network as relative location of bridged `GlobalConsensus`.
|
|
1206
|
+
**/
|
|
1207
|
+
bridgedNetwork: StagingXcmV5Location;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Amount of this chain native tokens that is reserved on the sibling parachain account
|
|
1211
|
+
* when bridge open request is registered.
|
|
1212
|
+
**/
|
|
1213
|
+
bridgeDeposit: bigint;
|
|
1214
|
+
|
|
1090
1215
|
/**
|
|
1091
1216
|
* Generic pallet constant
|
|
1092
1217
|
**/
|