@dedot/chaintypes 0.143.0 → 0.145.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 +2 -2
- package/paseo/consts.d.ts +67 -7
- package/paseo/errors.d.ts +164 -4
- package/paseo/events.d.ts +490 -4
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +308 -19
- package/paseo/runtime.d.ts +22 -0
- package/paseo/tx.d.ts +682 -31
- package/paseo/types.d.ts +1406 -129
- package/paseo-people/consts.d.ts +38 -1
- package/paseo-people/errors.d.ts +18 -12
- package/paseo-people/events.d.ts +110 -2
- package/paseo-people/index.d.ts +1 -1
- package/paseo-people/query.d.ts +36 -6
- package/paseo-people/runtime.d.ts +1 -1
- package/paseo-people/tx.d.ts +204 -0
- package/paseo-people/types.d.ts +312 -24
- package/polkadot-asset-hub/consts.d.ts +38 -2
- package/polkadot-asset-hub/errors.d.ts +48 -12
- package/polkadot-asset-hub/events.d.ts +110 -2
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +36 -6
- package/polkadot-asset-hub/runtime.d.ts +1 -1
- package/polkadot-asset-hub/tx.d.ts +231 -0
- package/polkadot-asset-hub/types.d.ts +383 -30
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
MultiAddress,
|
|
16
16
|
MultiAddressLike,
|
|
17
17
|
AccountId32Like,
|
|
18
|
+
Perbill,
|
|
18
19
|
Era,
|
|
19
20
|
Header,
|
|
20
21
|
UncheckedExtrinsic,
|
|
@@ -103,7 +104,11 @@ export type FrameSystemEvent =
|
|
|
103
104
|
/**
|
|
104
105
|
* An upgrade was authorized.
|
|
105
106
|
**/
|
|
106
|
-
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }
|
|
107
|
+
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }
|
|
108
|
+
/**
|
|
109
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
110
|
+
**/
|
|
111
|
+
| { name: 'RejectedInvalidAuthorizedUpgrade'; data: { codeHash: H256; error: DispatchError } };
|
|
107
112
|
|
|
108
113
|
export type FrameSystemDispatchEventInfo = {
|
|
109
114
|
weight: SpWeightsWeightV2Weight;
|
|
@@ -417,7 +422,15 @@ export type PalletSessionEvent =
|
|
|
417
422
|
* New session has happened. Note that the argument is the session index, not the
|
|
418
423
|
* block number as the type might suggest.
|
|
419
424
|
**/
|
|
420
|
-
{ name: 'NewSession'; data: { sessionIndex: number } }
|
|
425
|
+
| { name: 'NewSession'; data: { sessionIndex: number } }
|
|
426
|
+
/**
|
|
427
|
+
* Validator has been disabled.
|
|
428
|
+
**/
|
|
429
|
+
| { name: 'ValidatorDisabled'; data: { validator: AccountId32 } }
|
|
430
|
+
/**
|
|
431
|
+
* Validator has been re-enabled.
|
|
432
|
+
**/
|
|
433
|
+
| { name: 'ValidatorReenabled'; data: { validator: AccountId32 } };
|
|
421
434
|
|
|
422
435
|
/**
|
|
423
436
|
* The `Event` enum of this pallet
|
|
@@ -437,7 +450,7 @@ export type PalletXcmEvent =
|
|
|
437
450
|
**/
|
|
438
451
|
| { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
|
|
439
452
|
/**
|
|
440
|
-
*
|
|
453
|
+
* An XCM message was sent.
|
|
441
454
|
**/
|
|
442
455
|
| {
|
|
443
456
|
name: 'Sent';
|
|
@@ -448,6 +461,25 @@ export type PalletXcmEvent =
|
|
|
448
461
|
messageId: FixedBytes<32>;
|
|
449
462
|
};
|
|
450
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* An XCM message failed to send.
|
|
466
|
+
**/
|
|
467
|
+
| {
|
|
468
|
+
name: 'SendFailed';
|
|
469
|
+
data: {
|
|
470
|
+
origin: StagingXcmV5Location;
|
|
471
|
+
destination: StagingXcmV5Location;
|
|
472
|
+
error: XcmV3TraitsSendError;
|
|
473
|
+
messageId: FixedBytes<32>;
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* An XCM message failed to process.
|
|
478
|
+
**/
|
|
479
|
+
| {
|
|
480
|
+
name: 'ProcessXcmError';
|
|
481
|
+
data: { origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> };
|
|
482
|
+
}
|
|
451
483
|
/**
|
|
452
484
|
* Query response received which does not match a registered query. This may be because a
|
|
453
485
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -604,7 +636,23 @@ export type PalletXcmEvent =
|
|
|
604
636
|
/**
|
|
605
637
|
* A XCM version migration finished.
|
|
606
638
|
**/
|
|
607
|
-
| { name: 'VersionMigrationFinished'; data: { version: number } }
|
|
639
|
+
| { name: 'VersionMigrationFinished'; data: { version: number } }
|
|
640
|
+
/**
|
|
641
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
642
|
+
* `expiry` block number.
|
|
643
|
+
**/
|
|
644
|
+
| {
|
|
645
|
+
name: 'AliasAuthorized';
|
|
646
|
+
data: { aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined };
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* `target` removed alias authorization for `aliaser`.
|
|
650
|
+
**/
|
|
651
|
+
| { name: 'AliasAuthorizationRemoved'; data: { aliaser: StagingXcmV5Location; target: StagingXcmV5Location } }
|
|
652
|
+
/**
|
|
653
|
+
* `target` removed all alias authorizations.
|
|
654
|
+
**/
|
|
655
|
+
| { name: 'AliasesAuthorizationsRemoved'; data: { target: StagingXcmV5Location } };
|
|
608
656
|
|
|
609
657
|
export type StagingXcmV5TraitsOutcome =
|
|
610
658
|
| { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
|
|
@@ -870,6 +918,15 @@ export type StagingXcmV5AssetAssetTransferFilter =
|
|
|
870
918
|
|
|
871
919
|
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
872
920
|
|
|
921
|
+
export type XcmV3TraitsSendError =
|
|
922
|
+
| 'NotApplicable'
|
|
923
|
+
| 'Transport'
|
|
924
|
+
| 'Unroutable'
|
|
925
|
+
| 'DestinationUnsupported'
|
|
926
|
+
| 'ExceedsMaxMessageSize'
|
|
927
|
+
| 'MissingArgument'
|
|
928
|
+
| 'Fees';
|
|
929
|
+
|
|
873
930
|
export type XcmVersionedAssets =
|
|
874
931
|
| { type: 'V3'; value: XcmV3MultiassetMultiAssets }
|
|
875
932
|
| { type: 'V4'; value: StagingXcmV4AssetAssets }
|
|
@@ -1169,7 +1226,15 @@ export type PalletUtilityEvent =
|
|
|
1169
1226
|
/**
|
|
1170
1227
|
* A call was dispatched.
|
|
1171
1228
|
**/
|
|
1172
|
-
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1229
|
+
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1230
|
+
/**
|
|
1231
|
+
* Main call was dispatched.
|
|
1232
|
+
**/
|
|
1233
|
+
| { name: 'IfElseMainSuccess' }
|
|
1234
|
+
/**
|
|
1235
|
+
* The fallback call was dispatched.
|
|
1236
|
+
**/
|
|
1237
|
+
| { name: 'IfElseFallbackCalled'; data: { mainError: DispatchError } };
|
|
1173
1238
|
|
|
1174
1239
|
/**
|
|
1175
1240
|
* The `Event` enum of this pallet
|
|
@@ -1215,6 +1280,13 @@ export type PalletMultisigEvent =
|
|
|
1215
1280
|
multisig: AccountId32;
|
|
1216
1281
|
callHash: FixedBytes<32>;
|
|
1217
1282
|
};
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1286
|
+
**/
|
|
1287
|
+
| {
|
|
1288
|
+
name: 'DepositPoked';
|
|
1289
|
+
data: { who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint };
|
|
1218
1290
|
};
|
|
1219
1291
|
|
|
1220
1292
|
export type PalletMultisigTimepoint = { height: number; index: number };
|
|
@@ -1267,6 +1339,13 @@ export type PalletProxyEvent =
|
|
|
1267
1339
|
proxyType: AssetHubPolkadotRuntimeProxyType;
|
|
1268
1340
|
delay: number;
|
|
1269
1341
|
};
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1345
|
+
**/
|
|
1346
|
+
| {
|
|
1347
|
+
name: 'DepositPoked';
|
|
1348
|
+
data: { who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint };
|
|
1270
1349
|
};
|
|
1271
1350
|
|
|
1272
1351
|
export type AssetHubPolkadotRuntimeProxyType =
|
|
@@ -1278,6 +1357,8 @@ export type AssetHubPolkadotRuntimeProxyType =
|
|
|
1278
1357
|
| 'AssetManager'
|
|
1279
1358
|
| 'Collator';
|
|
1280
1359
|
|
|
1360
|
+
export type PalletProxyDepositKind = 'Proxies' | 'Announcements';
|
|
1361
|
+
|
|
1281
1362
|
/**
|
|
1282
1363
|
* The `Event` enum of this pallet
|
|
1283
1364
|
**/
|
|
@@ -2529,15 +2610,7 @@ export type CumulusPalletParachainSystemError =
|
|
|
2529
2610
|
/**
|
|
2530
2611
|
* No validation function upgrade is currently scheduled.
|
|
2531
2612
|
**/
|
|
2532
|
-
| 'NotScheduled'
|
|
2533
|
-
/**
|
|
2534
|
-
* No code upgrade has been authorized.
|
|
2535
|
-
**/
|
|
2536
|
-
| 'NothingAuthorized'
|
|
2537
|
-
/**
|
|
2538
|
-
* The given code upgrade has not been authorized.
|
|
2539
|
-
**/
|
|
2540
|
-
| 'Unauthorized';
|
|
2613
|
+
| 'NotScheduled';
|
|
2541
2614
|
|
|
2542
2615
|
/**
|
|
2543
2616
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -2605,10 +2678,11 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
|
|
|
2605
2678
|
|
|
2606
2679
|
export type FrameSupportTokensMiscIdAmount = { id: AssetHubPolkadotRuntimeRuntimeHoldReason; amount: bigint };
|
|
2607
2680
|
|
|
2608
|
-
export type AssetHubPolkadotRuntimeRuntimeHoldReason =
|
|
2609
|
-
type: '
|
|
2610
|
-
value: PalletStateTrieMigrationHoldReason;
|
|
2611
|
-
|
|
2681
|
+
export type AssetHubPolkadotRuntimeRuntimeHoldReason =
|
|
2682
|
+
| { type: 'PolkadotXcm'; value: PalletXcmHoldReason }
|
|
2683
|
+
| { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason };
|
|
2684
|
+
|
|
2685
|
+
export type PalletXcmHoldReason = 'AuthorizeAlias';
|
|
2612
2686
|
|
|
2613
2687
|
export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
|
|
2614
2688
|
|
|
@@ -3246,6 +3320,8 @@ export type PalletCollatorSelectionCallLike =
|
|
|
3246
3320
|
**/
|
|
3247
3321
|
| { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } };
|
|
3248
3322
|
|
|
3323
|
+
export type FrameSupportPalletId = FixedBytes<8>;
|
|
3324
|
+
|
|
3249
3325
|
/**
|
|
3250
3326
|
* The `Error` enum of this pallet.
|
|
3251
3327
|
**/
|
|
@@ -3323,6 +3399,8 @@ export type AssetHubPolkadotRuntimeSessionKeys = { aura: SpConsensusAuraEd25519A
|
|
|
3323
3399
|
|
|
3324
3400
|
export type SpConsensusAuraEd25519AppEd25519Public = FixedBytes<32>;
|
|
3325
3401
|
|
|
3402
|
+
export type SpStakingOffenceOffenceSeverity = Perbill;
|
|
3403
|
+
|
|
3326
3404
|
export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
|
|
3327
3405
|
|
|
3328
3406
|
/**
|
|
@@ -3649,6 +3727,20 @@ export type PalletXcmRemoteLockedFungibleRecord = {
|
|
|
3649
3727
|
consumers: Array<[[], bigint]>;
|
|
3650
3728
|
};
|
|
3651
3729
|
|
|
3730
|
+
export type PalletXcmAuthorizedAliasesEntry = {
|
|
3731
|
+
aliasers: Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>;
|
|
3732
|
+
ticket: FrameSupportStorageDisabled;
|
|
3733
|
+
};
|
|
3734
|
+
|
|
3735
|
+
export type FrameSupportStorageDisabled = {};
|
|
3736
|
+
|
|
3737
|
+
export type PalletXcmMaxAuthorizedAliases = {};
|
|
3738
|
+
|
|
3739
|
+
export type XcmRuntimeApisAuthorizedAliasesOriginAliaser = {
|
|
3740
|
+
location: XcmVersionedLocation;
|
|
3741
|
+
expiry?: bigint | undefined;
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3652
3744
|
/**
|
|
3653
3745
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3654
3746
|
**/
|
|
@@ -3962,7 +4054,31 @@ export type PalletXcmCall =
|
|
|
3962
4054
|
customXcmOnDest: XcmVersionedXcm;
|
|
3963
4055
|
weightLimit: XcmV3WeightLimit;
|
|
3964
4056
|
};
|
|
3965
|
-
}
|
|
4057
|
+
}
|
|
4058
|
+
/**
|
|
4059
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
4060
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
4061
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
4062
|
+
* `expiry` block number.
|
|
4063
|
+
*
|
|
4064
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
4065
|
+
* also under your control (like your account on another chain).
|
|
4066
|
+
*
|
|
4067
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
4068
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
4069
|
+
* `origin` in XCM programs executed on the local chain.
|
|
4070
|
+
**/
|
|
4071
|
+
| { name: 'AddAuthorizedAlias'; params: { aliaser: XcmVersionedLocation; expires?: bigint | undefined } }
|
|
4072
|
+
/**
|
|
4073
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
4074
|
+
* the local `origin` making this call.
|
|
4075
|
+
**/
|
|
4076
|
+
| { name: 'RemoveAuthorizedAlias'; params: { aliaser: XcmVersionedLocation } }
|
|
4077
|
+
/**
|
|
4078
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
4079
|
+
* making this call.
|
|
4080
|
+
**/
|
|
4081
|
+
| { name: 'RemoveAllAuthorizedAliases' };
|
|
3966
4082
|
|
|
3967
4083
|
export type PalletXcmCallLike =
|
|
3968
4084
|
| { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
|
|
@@ -4274,7 +4390,31 @@ export type PalletXcmCallLike =
|
|
|
4274
4390
|
customXcmOnDest: XcmVersionedXcm;
|
|
4275
4391
|
weightLimit: XcmV3WeightLimit;
|
|
4276
4392
|
};
|
|
4277
|
-
}
|
|
4393
|
+
}
|
|
4394
|
+
/**
|
|
4395
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
4396
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
4397
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
4398
|
+
* `expiry` block number.
|
|
4399
|
+
*
|
|
4400
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
4401
|
+
* also under your control (like your account on another chain).
|
|
4402
|
+
*
|
|
4403
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
4404
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
4405
|
+
* `origin` in XCM programs executed on the local chain.
|
|
4406
|
+
**/
|
|
4407
|
+
| { name: 'AddAuthorizedAlias'; params: { aliaser: XcmVersionedLocation; expires?: bigint | undefined } }
|
|
4408
|
+
/**
|
|
4409
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
4410
|
+
* the local `origin` making this call.
|
|
4411
|
+
**/
|
|
4412
|
+
| { name: 'RemoveAuthorizedAlias'; params: { aliaser: XcmVersionedLocation } }
|
|
4413
|
+
/**
|
|
4414
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
4415
|
+
* making this call.
|
|
4416
|
+
**/
|
|
4417
|
+
| { name: 'RemoveAllAuthorizedAliases' };
|
|
4278
4418
|
|
|
4279
4419
|
export type XcmVersionedXcm =
|
|
4280
4420
|
| { type: 'V3'; value: XcmV3Xcm }
|
|
@@ -4621,7 +4761,19 @@ export type PalletXcmError =
|
|
|
4621
4761
|
/**
|
|
4622
4762
|
* Local XCM execution incomplete.
|
|
4623
4763
|
**/
|
|
4624
|
-
| 'LocalExecutionIncomplete'
|
|
4764
|
+
| 'LocalExecutionIncomplete'
|
|
4765
|
+
/**
|
|
4766
|
+
* Too many locations authorized to alias origin.
|
|
4767
|
+
**/
|
|
4768
|
+
| 'TooManyAuthorizedAliases'
|
|
4769
|
+
/**
|
|
4770
|
+
* Expiry block number is in the past.
|
|
4771
|
+
**/
|
|
4772
|
+
| 'ExpiresInPast'
|
|
4773
|
+
/**
|
|
4774
|
+
* The alias to remove authorization for was not found.
|
|
4775
|
+
**/
|
|
4776
|
+
| 'AliasNotFound';
|
|
4625
4777
|
|
|
4626
4778
|
/**
|
|
4627
4779
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -4873,7 +5025,47 @@ export type PalletUtilityCall =
|
|
|
4873
5025
|
*
|
|
4874
5026
|
* The dispatch origin for this call must be _Root_.
|
|
4875
5027
|
**/
|
|
4876
|
-
| { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
5028
|
+
| { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
5029
|
+
/**
|
|
5030
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
5031
|
+
* May be called from any origin except `None`.
|
|
5032
|
+
*
|
|
5033
|
+
* This function first attempts to dispatch the `main` call.
|
|
5034
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
5035
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
5036
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
5037
|
+
*
|
|
5038
|
+
* In the event of a fallback failure the whole call fails
|
|
5039
|
+
* with the weights returned.
|
|
5040
|
+
*
|
|
5041
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
5042
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
5043
|
+
*
|
|
5044
|
+
* ## Dispatch Logic
|
|
5045
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
5046
|
+
* applying any origin filters.
|
|
5047
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
5048
|
+
* `fallback` calls.
|
|
5049
|
+
*
|
|
5050
|
+
* ## Use Case
|
|
5051
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
5052
|
+
* or both.
|
|
5053
|
+
**/
|
|
5054
|
+
| {
|
|
5055
|
+
name: 'IfElse';
|
|
5056
|
+
params: { main: AssetHubPolkadotRuntimeRuntimeCall; fallback: AssetHubPolkadotRuntimeRuntimeCall };
|
|
5057
|
+
}
|
|
5058
|
+
/**
|
|
5059
|
+
* Dispatches a function call with a provided origin.
|
|
5060
|
+
*
|
|
5061
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
5062
|
+
*
|
|
5063
|
+
* The dispatch origin for this call must be _Root_.
|
|
5064
|
+
**/
|
|
5065
|
+
| {
|
|
5066
|
+
name: 'DispatchAsFallible';
|
|
5067
|
+
params: { asOrigin: AssetHubPolkadotRuntimeOriginCaller; call: AssetHubPolkadotRuntimeRuntimeCall };
|
|
5068
|
+
};
|
|
4877
5069
|
|
|
4878
5070
|
export type PalletUtilityCallLike =
|
|
4879
5071
|
/**
|
|
@@ -4965,7 +5157,47 @@ export type PalletUtilityCallLike =
|
|
|
4965
5157
|
*
|
|
4966
5158
|
* The dispatch origin for this call must be _Root_.
|
|
4967
5159
|
**/
|
|
4968
|
-
| { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
5160
|
+
| { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
5161
|
+
/**
|
|
5162
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
5163
|
+
* May be called from any origin except `None`.
|
|
5164
|
+
*
|
|
5165
|
+
* This function first attempts to dispatch the `main` call.
|
|
5166
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
5167
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
5168
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
5169
|
+
*
|
|
5170
|
+
* In the event of a fallback failure the whole call fails
|
|
5171
|
+
* with the weights returned.
|
|
5172
|
+
*
|
|
5173
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
5174
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
5175
|
+
*
|
|
5176
|
+
* ## Dispatch Logic
|
|
5177
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
5178
|
+
* applying any origin filters.
|
|
5179
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
5180
|
+
* `fallback` calls.
|
|
5181
|
+
*
|
|
5182
|
+
* ## Use Case
|
|
5183
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
5184
|
+
* or both.
|
|
5185
|
+
**/
|
|
5186
|
+
| {
|
|
5187
|
+
name: 'IfElse';
|
|
5188
|
+
params: { main: AssetHubPolkadotRuntimeRuntimeCallLike; fallback: AssetHubPolkadotRuntimeRuntimeCallLike };
|
|
5189
|
+
}
|
|
5190
|
+
/**
|
|
5191
|
+
* Dispatches a function call with a provided origin.
|
|
5192
|
+
*
|
|
5193
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
5194
|
+
*
|
|
5195
|
+
* The dispatch origin for this call must be _Root_.
|
|
5196
|
+
**/
|
|
5197
|
+
| {
|
|
5198
|
+
name: 'DispatchAsFallible';
|
|
5199
|
+
params: { asOrigin: AssetHubPolkadotRuntimeOriginCaller; call: AssetHubPolkadotRuntimeRuntimeCallLike };
|
|
5200
|
+
};
|
|
4969
5201
|
|
|
4970
5202
|
export type AssetHubPolkadotRuntimeRuntimeCall =
|
|
4971
5203
|
| { pallet: 'System'; palletCall: FrameSystemCall }
|
|
@@ -5163,6 +5395,25 @@ export type PalletMultisigCall =
|
|
|
5163
5395
|
timepoint: PalletMultisigTimepoint;
|
|
5164
5396
|
callHash: FixedBytes<32>;
|
|
5165
5397
|
};
|
|
5398
|
+
}
|
|
5399
|
+
/**
|
|
5400
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
5401
|
+
*
|
|
5402
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
5403
|
+
* the multisig operation.
|
|
5404
|
+
*
|
|
5405
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5406
|
+
*
|
|
5407
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
5408
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
5409
|
+
* multisig.
|
|
5410
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
5411
|
+
*
|
|
5412
|
+
* Emits `DepositPoked` if successful.
|
|
5413
|
+
**/
|
|
5414
|
+
| {
|
|
5415
|
+
name: 'PokeDeposit';
|
|
5416
|
+
params: { threshold: number; otherSignatories: Array<AccountId32>; callHash: FixedBytes<32> };
|
|
5166
5417
|
};
|
|
5167
5418
|
|
|
5168
5419
|
export type PalletMultisigCallLike =
|
|
@@ -5308,6 +5559,25 @@ export type PalletMultisigCallLike =
|
|
|
5308
5559
|
timepoint: PalletMultisigTimepoint;
|
|
5309
5560
|
callHash: FixedBytes<32>;
|
|
5310
5561
|
};
|
|
5562
|
+
}
|
|
5563
|
+
/**
|
|
5564
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
5565
|
+
*
|
|
5566
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
5567
|
+
* the multisig operation.
|
|
5568
|
+
*
|
|
5569
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5570
|
+
*
|
|
5571
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
5572
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
5573
|
+
* multisig.
|
|
5574
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
5575
|
+
*
|
|
5576
|
+
* Emits `DepositPoked` if successful.
|
|
5577
|
+
**/
|
|
5578
|
+
| {
|
|
5579
|
+
name: 'PokeDeposit';
|
|
5580
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
5311
5581
|
};
|
|
5312
5582
|
|
|
5313
5583
|
/**
|
|
@@ -5481,7 +5751,18 @@ export type PalletProxyCall =
|
|
|
5481
5751
|
forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined;
|
|
5482
5752
|
call: AssetHubPolkadotRuntimeRuntimeCall;
|
|
5483
5753
|
};
|
|
5484
|
-
}
|
|
5754
|
+
}
|
|
5755
|
+
/**
|
|
5756
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
5757
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
5758
|
+
*
|
|
5759
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5760
|
+
*
|
|
5761
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5762
|
+
*
|
|
5763
|
+
* Emits `DepositPoked` if successful.
|
|
5764
|
+
**/
|
|
5765
|
+
| { name: 'PokeDeposit' };
|
|
5485
5766
|
|
|
5486
5767
|
export type PalletProxyCallLike =
|
|
5487
5768
|
/**
|
|
@@ -5654,7 +5935,18 @@ export type PalletProxyCallLike =
|
|
|
5654
5935
|
forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined;
|
|
5655
5936
|
call: AssetHubPolkadotRuntimeRuntimeCallLike;
|
|
5656
5937
|
};
|
|
5657
|
-
}
|
|
5938
|
+
}
|
|
5939
|
+
/**
|
|
5940
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
5941
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
5942
|
+
*
|
|
5943
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5944
|
+
*
|
|
5945
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5946
|
+
*
|
|
5947
|
+
* Emits `DepositPoked` if successful.
|
|
5948
|
+
**/
|
|
5949
|
+
| { name: 'PokeDeposit' };
|
|
5658
5950
|
|
|
5659
5951
|
/**
|
|
5660
5952
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5714,6 +6006,9 @@ export type PalletAssetsCall =
|
|
|
5714
6006
|
*
|
|
5715
6007
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
5716
6008
|
* asset.
|
|
6009
|
+
*
|
|
6010
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6011
|
+
* an account contains holds or freezes in place.
|
|
5717
6012
|
**/
|
|
5718
6013
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
5719
6014
|
/**
|
|
@@ -6138,6 +6433,9 @@ export type PalletAssetsCall =
|
|
|
6138
6433
|
* refunded.
|
|
6139
6434
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
6140
6435
|
*
|
|
6436
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6437
|
+
* the asset account contains holds or freezes in place.
|
|
6438
|
+
*
|
|
6141
6439
|
* Emits `Refunded` event when successful.
|
|
6142
6440
|
**/
|
|
6143
6441
|
| { name: 'Refund'; params: { id: number; allowBurn: boolean } }
|
|
@@ -6179,6 +6477,9 @@ export type PalletAssetsCall =
|
|
|
6179
6477
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
6180
6478
|
* - `who`: The account to refund.
|
|
6181
6479
|
*
|
|
6480
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6481
|
+
* the asset account contains holds or freezes in place.
|
|
6482
|
+
*
|
|
6182
6483
|
* Emits `Refunded` event when successful.
|
|
6183
6484
|
**/
|
|
6184
6485
|
| { name: 'RefundOther'; params: { id: number; who: MultiAddress } }
|
|
@@ -6270,6 +6571,9 @@ export type PalletAssetsCallLike =
|
|
|
6270
6571
|
*
|
|
6271
6572
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6272
6573
|
* asset.
|
|
6574
|
+
*
|
|
6575
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6576
|
+
* an account contains holds or freezes in place.
|
|
6273
6577
|
**/
|
|
6274
6578
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
6275
6579
|
/**
|
|
@@ -6700,6 +7004,9 @@ export type PalletAssetsCallLike =
|
|
|
6700
7004
|
* refunded.
|
|
6701
7005
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
6702
7006
|
*
|
|
7007
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7008
|
+
* the asset account contains holds or freezes in place.
|
|
7009
|
+
*
|
|
6703
7010
|
* Emits `Refunded` event when successful.
|
|
6704
7011
|
**/
|
|
6705
7012
|
| { name: 'Refund'; params: { id: number; allowBurn: boolean } }
|
|
@@ -6741,6 +7048,9 @@ export type PalletAssetsCallLike =
|
|
|
6741
7048
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
6742
7049
|
* - `who`: The account to refund.
|
|
6743
7050
|
*
|
|
7051
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7052
|
+
* the asset account contains holds or freezes in place.
|
|
7053
|
+
*
|
|
6744
7054
|
* Emits `Refunded` event when successful.
|
|
6745
7055
|
**/
|
|
6746
7056
|
| { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } }
|
|
@@ -9239,6 +9549,9 @@ export type PalletAssetsCall002 =
|
|
|
9239
9549
|
*
|
|
9240
9550
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
9241
9551
|
* asset.
|
|
9552
|
+
*
|
|
9553
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
9554
|
+
* an account contains holds or freezes in place.
|
|
9242
9555
|
**/
|
|
9243
9556
|
| { name: 'StartDestroy'; params: { id: StagingXcmV4Location } }
|
|
9244
9557
|
/**
|
|
@@ -9672,6 +9985,9 @@ export type PalletAssetsCall002 =
|
|
|
9672
9985
|
* refunded.
|
|
9673
9986
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
9674
9987
|
*
|
|
9988
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
9989
|
+
* the asset account contains holds or freezes in place.
|
|
9990
|
+
*
|
|
9675
9991
|
* Emits `Refunded` event when successful.
|
|
9676
9992
|
**/
|
|
9677
9993
|
| { name: 'Refund'; params: { id: StagingXcmV4Location; allowBurn: boolean } }
|
|
@@ -9713,6 +10029,9 @@ export type PalletAssetsCall002 =
|
|
|
9713
10029
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
9714
10030
|
* - `who`: The account to refund.
|
|
9715
10031
|
*
|
|
10032
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10033
|
+
* the asset account contains holds or freezes in place.
|
|
10034
|
+
*
|
|
9716
10035
|
* Emits `Refunded` event when successful.
|
|
9717
10036
|
**/
|
|
9718
10037
|
| { name: 'RefundOther'; params: { id: StagingXcmV4Location; who: MultiAddress } }
|
|
@@ -9807,6 +10126,9 @@ export type PalletAssetsCallLike002 =
|
|
|
9807
10126
|
*
|
|
9808
10127
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
9809
10128
|
* asset.
|
|
10129
|
+
*
|
|
10130
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10131
|
+
* an account contains holds or freezes in place.
|
|
9810
10132
|
**/
|
|
9811
10133
|
| { name: 'StartDestroy'; params: { id: StagingXcmV4Location } }
|
|
9812
10134
|
/**
|
|
@@ -10248,6 +10570,9 @@ export type PalletAssetsCallLike002 =
|
|
|
10248
10570
|
* refunded.
|
|
10249
10571
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
10250
10572
|
*
|
|
10573
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10574
|
+
* the asset account contains holds or freezes in place.
|
|
10575
|
+
*
|
|
10251
10576
|
* Emits `Refunded` event when successful.
|
|
10252
10577
|
**/
|
|
10253
10578
|
| { name: 'Refund'; params: { id: StagingXcmV4Location; allowBurn: boolean } }
|
|
@@ -10289,6 +10614,9 @@ export type PalletAssetsCallLike002 =
|
|
|
10289
10614
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
10290
10615
|
* - `who`: The account to refund.
|
|
10291
10616
|
*
|
|
10617
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10618
|
+
* the asset account contains holds or freezes in place.
|
|
10619
|
+
*
|
|
10292
10620
|
* Emits `Refunded` event when successful.
|
|
10293
10621
|
**/
|
|
10294
10622
|
| { name: 'RefundOther'; params: { id: StagingXcmV4Location; who: MultiAddressLike } }
|
|
@@ -10383,6 +10711,9 @@ export type PalletAssetsCall003 =
|
|
|
10383
10711
|
*
|
|
10384
10712
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
10385
10713
|
* asset.
|
|
10714
|
+
*
|
|
10715
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10716
|
+
* an account contains holds or freezes in place.
|
|
10386
10717
|
**/
|
|
10387
10718
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
10388
10719
|
/**
|
|
@@ -10807,6 +11138,9 @@ export type PalletAssetsCall003 =
|
|
|
10807
11138
|
* refunded.
|
|
10808
11139
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
10809
11140
|
*
|
|
11141
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
11142
|
+
* the asset account contains holds or freezes in place.
|
|
11143
|
+
*
|
|
10810
11144
|
* Emits `Refunded` event when successful.
|
|
10811
11145
|
**/
|
|
10812
11146
|
| { name: 'Refund'; params: { id: number; allowBurn: boolean } }
|
|
@@ -10848,6 +11182,9 @@ export type PalletAssetsCall003 =
|
|
|
10848
11182
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
10849
11183
|
* - `who`: The account to refund.
|
|
10850
11184
|
*
|
|
11185
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
11186
|
+
* the asset account contains holds or freezes in place.
|
|
11187
|
+
*
|
|
10851
11188
|
* Emits `Refunded` event when successful.
|
|
10852
11189
|
**/
|
|
10853
11190
|
| { name: 'RefundOther'; params: { id: number; who: MultiAddress } }
|
|
@@ -10939,6 +11276,9 @@ export type PalletAssetsCallLike003 =
|
|
|
10939
11276
|
*
|
|
10940
11277
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
10941
11278
|
* asset.
|
|
11279
|
+
*
|
|
11280
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
11281
|
+
* an account contains holds or freezes in place.
|
|
10942
11282
|
**/
|
|
10943
11283
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
10944
11284
|
/**
|
|
@@ -11369,6 +11709,9 @@ export type PalletAssetsCallLike003 =
|
|
|
11369
11709
|
* refunded.
|
|
11370
11710
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
11371
11711
|
*
|
|
11712
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
11713
|
+
* the asset account contains holds or freezes in place.
|
|
11714
|
+
*
|
|
11372
11715
|
* Emits `Refunded` event when successful.
|
|
11373
11716
|
**/
|
|
11374
11717
|
| { name: 'Refund'; params: { id: number; allowBurn: boolean } }
|
|
@@ -11410,6 +11753,9 @@ export type PalletAssetsCallLike003 =
|
|
|
11410
11753
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
11411
11754
|
* - `who`: The account to refund.
|
|
11412
11755
|
*
|
|
11756
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
11757
|
+
* the asset account contains holds or freezes in place.
|
|
11758
|
+
*
|
|
11413
11759
|
* Emits `Refunded` event when successful.
|
|
11414
11760
|
**/
|
|
11415
11761
|
| { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } }
|
|
@@ -11888,11 +12234,12 @@ export type PalletMultisigError =
|
|
|
11888
12234
|
**/
|
|
11889
12235
|
| 'SenderInSignatories'
|
|
11890
12236
|
/**
|
|
11891
|
-
* Multisig operation not found
|
|
12237
|
+
* Multisig operation not found in storage.
|
|
11892
12238
|
**/
|
|
11893
12239
|
| 'NotFound'
|
|
11894
12240
|
/**
|
|
11895
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
12241
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
12242
|
+
* its deposits.
|
|
11896
12243
|
**/
|
|
11897
12244
|
| 'NotOwner'
|
|
11898
12245
|
/**
|
|
@@ -12094,7 +12441,15 @@ export type PalletAssetsError =
|
|
|
12094
12441
|
/**
|
|
12095
12442
|
* The asset ID must be equal to the [`NextAssetId`].
|
|
12096
12443
|
**/
|
|
12097
|
-
| 'BadAssetId'
|
|
12444
|
+
| 'BadAssetId'
|
|
12445
|
+
/**
|
|
12446
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
12447
|
+
**/
|
|
12448
|
+
| 'ContainsFreezes'
|
|
12449
|
+
/**
|
|
12450
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
12451
|
+
**/
|
|
12452
|
+
| 'ContainsHolds';
|
|
12098
12453
|
|
|
12099
12454
|
export type PalletUniquesCollectionDetails = {
|
|
12100
12455
|
owner: AccountId32;
|
|
@@ -12424,8 +12779,6 @@ export type PalletNftsError =
|
|
|
12424
12779
|
|
|
12425
12780
|
export type PalletAssetConversionPoolInfo = { lpToken: number };
|
|
12426
12781
|
|
|
12427
|
-
export type FrameSupportPalletId = FixedBytes<8>;
|
|
12428
|
-
|
|
12429
12782
|
/**
|
|
12430
12783
|
* The `Error` enum of this pallet.
|
|
12431
12784
|
**/
|