@dedot/chaintypes 0.59.0 → 0.60.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/polkadot/consts.d.ts +19 -9
- package/polkadot/errors.d.ts +95 -12
- package/polkadot/events.d.ts +90 -51
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +104 -75
- package/polkadot/runtime.d.ts +141 -63
- package/polkadot/tx.d.ts +165 -72
- package/polkadot/types.d.ts +440 -301
- package/polkadot-asset-hub/events.d.ts +50 -1
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +12 -12
- package/polkadot-asset-hub/runtime.d.ts +1 -1
- package/polkadot-asset-hub/tx.d.ts +121 -64
- package/polkadot-asset-hub/types.d.ts +167 -81
|
@@ -9,13 +9,13 @@ import type {
|
|
|
9
9
|
FixedBytes,
|
|
10
10
|
FixedArray,
|
|
11
11
|
Bytes,
|
|
12
|
+
FixedU128,
|
|
12
13
|
Result,
|
|
13
14
|
Permill,
|
|
14
15
|
BytesLike,
|
|
15
16
|
MultiAddress,
|
|
16
17
|
MultiAddressLike,
|
|
17
18
|
AccountId32Like,
|
|
18
|
-
FixedU128,
|
|
19
19
|
Era,
|
|
20
20
|
Header,
|
|
21
21
|
UncheckedExtrinsic,
|
|
@@ -60,6 +60,7 @@ export type AssetHubPolkadotRuntimeRuntimeEvent =
|
|
|
60
60
|
| { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
|
|
61
61
|
| { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent }
|
|
62
62
|
| { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent }
|
|
63
|
+
| { pallet: 'ToKusamaXcmRouter'; palletEvent: PalletXcmBridgeHubRouterEvent }
|
|
63
64
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
64
65
|
| { pallet: 'Utility'; palletEvent: PalletUtilityEvent }
|
|
65
66
|
| { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
|
|
@@ -975,6 +976,35 @@ export type CumulusPalletXcmEvent =
|
|
|
975
976
|
**/
|
|
976
977
|
| { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] };
|
|
977
978
|
|
|
979
|
+
/**
|
|
980
|
+
* The `Event` enum of this pallet
|
|
981
|
+
**/
|
|
982
|
+
export type PalletXcmBridgeHubRouterEvent =
|
|
983
|
+
/**
|
|
984
|
+
* Delivery fee factor has been decreased.
|
|
985
|
+
**/
|
|
986
|
+
| {
|
|
987
|
+
name: 'DeliveryFeeFactorDecreased';
|
|
988
|
+
data: {
|
|
989
|
+
/**
|
|
990
|
+
* New value of the `DeliveryFeeFactor`.
|
|
991
|
+
**/
|
|
992
|
+
newValue: FixedU128;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Delivery fee factor has been increased.
|
|
997
|
+
**/
|
|
998
|
+
| {
|
|
999
|
+
name: 'DeliveryFeeFactorIncreased';
|
|
1000
|
+
data: {
|
|
1001
|
+
/**
|
|
1002
|
+
* New value of the `DeliveryFeeFactor`.
|
|
1003
|
+
**/
|
|
1004
|
+
newValue: FixedU128;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
|
|
978
1008
|
/**
|
|
979
1009
|
* The `Event` enum of this pallet
|
|
980
1010
|
**/
|
|
@@ -2273,7 +2303,7 @@ export type FrameSystemError =
|
|
|
2273
2303
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
2274
2304
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
2275
2305
|
paraHeadHash?: H256 | undefined;
|
|
2276
|
-
consumedGoAheadSignal?:
|
|
2306
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
|
|
2277
2307
|
};
|
|
2278
2308
|
|
|
2279
2309
|
export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
@@ -2286,15 +2316,15 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
|
2286
2316
|
|
|
2287
2317
|
export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
|
|
2288
2318
|
|
|
2289
|
-
export type
|
|
2319
|
+
export type PolkadotPrimitivesV8UpgradeGoAhead = 'Abort' | 'GoAhead';
|
|
2290
2320
|
|
|
2291
2321
|
export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
|
|
2292
2322
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
2293
2323
|
hrmpWatermark?: number | undefined;
|
|
2294
|
-
consumedGoAheadSignal?:
|
|
2324
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
|
|
2295
2325
|
};
|
|
2296
2326
|
|
|
2297
|
-
export type
|
|
2327
|
+
export type PolkadotPrimitivesV8PersistedValidationData = {
|
|
2298
2328
|
parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
|
|
2299
2329
|
relayParentNumber: number;
|
|
2300
2330
|
relayParentStorageRoot: H256;
|
|
@@ -2303,15 +2333,15 @@ export type PolkadotPrimitivesV7PersistedValidationData = {
|
|
|
2303
2333
|
|
|
2304
2334
|
export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes;
|
|
2305
2335
|
|
|
2306
|
-
export type
|
|
2336
|
+
export type PolkadotPrimitivesV8UpgradeRestriction = 'Present';
|
|
2307
2337
|
|
|
2308
2338
|
export type SpTrieStorageProof = { trieNodes: Array<Bytes> };
|
|
2309
2339
|
|
|
2310
2340
|
export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
|
|
2311
2341
|
dmqMqcHead: H256;
|
|
2312
2342
|
relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
|
|
2313
|
-
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
2314
|
-
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
2343
|
+
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
|
|
2344
|
+
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
|
|
2315
2345
|
};
|
|
2316
2346
|
|
|
2317
2347
|
export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
|
|
@@ -2319,7 +2349,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
|
|
|
2319
2349
|
remainingSize: number;
|
|
2320
2350
|
};
|
|
2321
2351
|
|
|
2322
|
-
export type
|
|
2352
|
+
export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
|
|
2323
2353
|
maxCapacity: number;
|
|
2324
2354
|
maxTotalSize: number;
|
|
2325
2355
|
maxMessageSize: number;
|
|
@@ -2328,7 +2358,7 @@ export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
|
|
|
2328
2358
|
mqcHead?: H256 | undefined;
|
|
2329
2359
|
};
|
|
2330
2360
|
|
|
2331
|
-
export type
|
|
2361
|
+
export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
|
|
2332
2362
|
maxCodeSize: number;
|
|
2333
2363
|
maxHeadDataSize: number;
|
|
2334
2364
|
maxUpwardQueueCount: number;
|
|
@@ -2338,10 +2368,10 @@ export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
|
|
|
2338
2368
|
hrmpMaxMessageNumPerCandidate: number;
|
|
2339
2369
|
validationUpgradeCooldown: number;
|
|
2340
2370
|
validationUpgradeDelay: number;
|
|
2341
|
-
asyncBackingParams:
|
|
2371
|
+
asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
|
|
2342
2372
|
};
|
|
2343
2373
|
|
|
2344
|
-
export type
|
|
2374
|
+
export type PolkadotPrimitivesV8AsyncBackingAsyncBackingParams = {
|
|
2345
2375
|
maxCandidateDepth: number;
|
|
2346
2376
|
allowedAncestryLen: number;
|
|
2347
2377
|
};
|
|
@@ -2369,30 +2399,7 @@ export type CumulusPalletParachainSystemCall =
|
|
|
2369
2399
|
* if the appropriate time has come.
|
|
2370
2400
|
**/
|
|
2371
2401
|
| { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
|
|
2372
|
-
| { name: 'SudoSendUpwardMessage'; params: { message: Bytes } }
|
|
2373
|
-
/**
|
|
2374
|
-
* Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
|
|
2375
|
-
* later.
|
|
2376
|
-
*
|
|
2377
|
-
* The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
|
|
2378
|
-
* version and name should be verified on upgrade. Since the authorization only has a hash,
|
|
2379
|
-
* it cannot actually perform the verification.
|
|
2380
|
-
*
|
|
2381
|
-
* This call requires Root origin.
|
|
2382
|
-
**/
|
|
2383
|
-
| { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
|
|
2384
|
-
/**
|
|
2385
|
-
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
|
|
2386
|
-
*
|
|
2387
|
-
* If the authorization required a version check, this call will ensure the spec name
|
|
2388
|
-
* remains unchanged and that the spec version has increased.
|
|
2389
|
-
*
|
|
2390
|
-
* Note that this function will not apply the new `code`, but only attempt to schedule the
|
|
2391
|
-
* upgrade with the Relay Chain.
|
|
2392
|
-
*
|
|
2393
|
-
* All origins are allowed.
|
|
2394
|
-
**/
|
|
2395
|
-
| { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } };
|
|
2402
|
+
| { name: 'SudoSendUpwardMessage'; params: { message: Bytes } };
|
|
2396
2403
|
|
|
2397
2404
|
export type CumulusPalletParachainSystemCallLike =
|
|
2398
2405
|
/**
|
|
@@ -2407,33 +2414,10 @@ export type CumulusPalletParachainSystemCallLike =
|
|
|
2407
2414
|
* if the appropriate time has come.
|
|
2408
2415
|
**/
|
|
2409
2416
|
| { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
|
|
2410
|
-
| { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } }
|
|
2411
|
-
/**
|
|
2412
|
-
* Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
|
|
2413
|
-
* later.
|
|
2414
|
-
*
|
|
2415
|
-
* The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
|
|
2416
|
-
* version and name should be verified on upgrade. Since the authorization only has a hash,
|
|
2417
|
-
* it cannot actually perform the verification.
|
|
2418
|
-
*
|
|
2419
|
-
* This call requires Root origin.
|
|
2420
|
-
**/
|
|
2421
|
-
| { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
|
|
2422
|
-
/**
|
|
2423
|
-
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
|
|
2424
|
-
*
|
|
2425
|
-
* If the authorization required a version check, this call will ensure the spec name
|
|
2426
|
-
* remains unchanged and that the spec version has increased.
|
|
2427
|
-
*
|
|
2428
|
-
* Note that this function will not apply the new `code`, but only attempt to schedule the
|
|
2429
|
-
* upgrade with the Relay Chain.
|
|
2430
|
-
*
|
|
2431
|
-
* All origins are allowed.
|
|
2432
|
-
**/
|
|
2433
|
-
| { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } };
|
|
2417
|
+
| { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } };
|
|
2434
2418
|
|
|
2435
2419
|
export type CumulusPrimitivesParachainInherentParachainInherentData = {
|
|
2436
|
-
validationData:
|
|
2420
|
+
validationData: PolkadotPrimitivesV8PersistedValidationData;
|
|
2437
2421
|
relayChainState: SpTrieStorageProof;
|
|
2438
2422
|
downwardMessages: Array<PolkadotCorePrimitivesInboundDownwardMessage>;
|
|
2439
2423
|
horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>;
|
|
@@ -5596,8 +5580,6 @@ export type PalletAssetsCall =
|
|
|
5596
5580
|
*
|
|
5597
5581
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
5598
5582
|
* asset.
|
|
5599
|
-
*
|
|
5600
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
5601
5583
|
**/
|
|
5602
5584
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
5603
5585
|
/**
|
|
@@ -6078,7 +6060,26 @@ export type PalletAssetsCall =
|
|
|
6078
6060
|
*
|
|
6079
6061
|
* Weight: `O(1)`
|
|
6080
6062
|
**/
|
|
6081
|
-
| { name: 'Block'; params: { id: number; who: MultiAddress } }
|
|
6063
|
+
| { name: 'Block'; params: { id: number; who: MultiAddress } }
|
|
6064
|
+
/**
|
|
6065
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
6066
|
+
*
|
|
6067
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
6068
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
6069
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
6070
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
6071
|
+
* deposits, etc...
|
|
6072
|
+
*
|
|
6073
|
+
* The dispatch origin of this call must be Signed.
|
|
6074
|
+
*
|
|
6075
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
6076
|
+
* - `dest`: The recipient of the transfer.
|
|
6077
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
6078
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
6079
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
6080
|
+
* guarantee to keep the sender asset account alive (true).
|
|
6081
|
+
**/
|
|
6082
|
+
| { name: 'TransferAll'; params: { id: number; dest: MultiAddress; keepAlive: boolean } };
|
|
6082
6083
|
|
|
6083
6084
|
export type PalletAssetsCallLike =
|
|
6084
6085
|
/**
|
|
@@ -6135,8 +6136,6 @@ export type PalletAssetsCallLike =
|
|
|
6135
6136
|
*
|
|
6136
6137
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6137
6138
|
* asset.
|
|
6138
|
-
*
|
|
6139
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
6140
6139
|
**/
|
|
6141
6140
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
6142
6141
|
/**
|
|
@@ -6623,7 +6622,26 @@ export type PalletAssetsCallLike =
|
|
|
6623
6622
|
*
|
|
6624
6623
|
* Weight: `O(1)`
|
|
6625
6624
|
**/
|
|
6626
|
-
| { name: 'Block'; params: { id: number; who: MultiAddressLike } }
|
|
6625
|
+
| { name: 'Block'; params: { id: number; who: MultiAddressLike } }
|
|
6626
|
+
/**
|
|
6627
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
6628
|
+
*
|
|
6629
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
6630
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
6631
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
6632
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
6633
|
+
* deposits, etc...
|
|
6634
|
+
*
|
|
6635
|
+
* The dispatch origin of this call must be Signed.
|
|
6636
|
+
*
|
|
6637
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
6638
|
+
* - `dest`: The recipient of the transfer.
|
|
6639
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
6640
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
6641
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
6642
|
+
* guarantee to keep the sender asset account alive (true).
|
|
6643
|
+
**/
|
|
6644
|
+
| { name: 'TransferAll'; params: { id: number; dest: MultiAddressLike; keepAlive: boolean } };
|
|
6627
6645
|
|
|
6628
6646
|
/**
|
|
6629
6647
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -9087,8 +9105,6 @@ export type PalletAssetsCall002 =
|
|
|
9087
9105
|
*
|
|
9088
9106
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
9089
9107
|
* asset.
|
|
9090
|
-
*
|
|
9091
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
9092
9108
|
**/
|
|
9093
9109
|
| { name: 'StartDestroy'; params: { id: StagingXcmV4Location } }
|
|
9094
9110
|
/**
|
|
@@ -9578,7 +9594,26 @@ export type PalletAssetsCall002 =
|
|
|
9578
9594
|
*
|
|
9579
9595
|
* Weight: `O(1)`
|
|
9580
9596
|
**/
|
|
9581
|
-
| { name: 'Block'; params: { id: StagingXcmV4Location; who: MultiAddress } }
|
|
9597
|
+
| { name: 'Block'; params: { id: StagingXcmV4Location; who: MultiAddress } }
|
|
9598
|
+
/**
|
|
9599
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
9600
|
+
*
|
|
9601
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
9602
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
9603
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
9604
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
9605
|
+
* deposits, etc...
|
|
9606
|
+
*
|
|
9607
|
+
* The dispatch origin of this call must be Signed.
|
|
9608
|
+
*
|
|
9609
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
9610
|
+
* - `dest`: The recipient of the transfer.
|
|
9611
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
9612
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
9613
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
9614
|
+
* guarantee to keep the sender asset account alive (true).
|
|
9615
|
+
**/
|
|
9616
|
+
| { name: 'TransferAll'; params: { id: StagingXcmV4Location; dest: MultiAddress; keepAlive: boolean } };
|
|
9582
9617
|
|
|
9583
9618
|
export type PalletAssetsCallLike002 =
|
|
9584
9619
|
/**
|
|
@@ -9638,8 +9673,6 @@ export type PalletAssetsCallLike002 =
|
|
|
9638
9673
|
*
|
|
9639
9674
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
9640
9675
|
* asset.
|
|
9641
|
-
*
|
|
9642
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
9643
9676
|
**/
|
|
9644
9677
|
| { name: 'StartDestroy'; params: { id: StagingXcmV4Location } }
|
|
9645
9678
|
/**
|
|
@@ -10137,7 +10170,26 @@ export type PalletAssetsCallLike002 =
|
|
|
10137
10170
|
*
|
|
10138
10171
|
* Weight: `O(1)`
|
|
10139
10172
|
**/
|
|
10140
|
-
| { name: 'Block'; params: { id: StagingXcmV4Location; who: MultiAddressLike } }
|
|
10173
|
+
| { name: 'Block'; params: { id: StagingXcmV4Location; who: MultiAddressLike } }
|
|
10174
|
+
/**
|
|
10175
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
10176
|
+
*
|
|
10177
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
10178
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
10179
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
10180
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
10181
|
+
* deposits, etc...
|
|
10182
|
+
*
|
|
10183
|
+
* The dispatch origin of this call must be Signed.
|
|
10184
|
+
*
|
|
10185
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
10186
|
+
* - `dest`: The recipient of the transfer.
|
|
10187
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
10188
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
10189
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
10190
|
+
* guarantee to keep the sender asset account alive (true).
|
|
10191
|
+
**/
|
|
10192
|
+
| { name: 'TransferAll'; params: { id: StagingXcmV4Location; dest: MultiAddressLike; keepAlive: boolean } };
|
|
10141
10193
|
|
|
10142
10194
|
/**
|
|
10143
10195
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -10197,8 +10249,6 @@ export type PalletAssetsCall003 =
|
|
|
10197
10249
|
*
|
|
10198
10250
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
10199
10251
|
* asset.
|
|
10200
|
-
*
|
|
10201
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
10202
10252
|
**/
|
|
10203
10253
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
10204
10254
|
/**
|
|
@@ -10679,7 +10729,26 @@ export type PalletAssetsCall003 =
|
|
|
10679
10729
|
*
|
|
10680
10730
|
* Weight: `O(1)`
|
|
10681
10731
|
**/
|
|
10682
|
-
| { name: 'Block'; params: { id: number; who: MultiAddress } }
|
|
10732
|
+
| { name: 'Block'; params: { id: number; who: MultiAddress } }
|
|
10733
|
+
/**
|
|
10734
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
10735
|
+
*
|
|
10736
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
10737
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
10738
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
10739
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
10740
|
+
* deposits, etc...
|
|
10741
|
+
*
|
|
10742
|
+
* The dispatch origin of this call must be Signed.
|
|
10743
|
+
*
|
|
10744
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
10745
|
+
* - `dest`: The recipient of the transfer.
|
|
10746
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
10747
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
10748
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
10749
|
+
* guarantee to keep the sender asset account alive (true).
|
|
10750
|
+
**/
|
|
10751
|
+
| { name: 'TransferAll'; params: { id: number; dest: MultiAddress; keepAlive: boolean } };
|
|
10683
10752
|
|
|
10684
10753
|
export type PalletAssetsCallLike003 =
|
|
10685
10754
|
/**
|
|
@@ -10736,8 +10805,6 @@ export type PalletAssetsCallLike003 =
|
|
|
10736
10805
|
*
|
|
10737
10806
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
10738
10807
|
* asset.
|
|
10739
|
-
*
|
|
10740
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
10741
10808
|
**/
|
|
10742
10809
|
| { name: 'StartDestroy'; params: { id: number } }
|
|
10743
10810
|
/**
|
|
@@ -11224,7 +11291,26 @@ export type PalletAssetsCallLike003 =
|
|
|
11224
11291
|
*
|
|
11225
11292
|
* Weight: `O(1)`
|
|
11226
11293
|
**/
|
|
11227
|
-
| { name: 'Block'; params: { id: number; who: MultiAddressLike } }
|
|
11294
|
+
| { name: 'Block'; params: { id: number; who: MultiAddressLike } }
|
|
11295
|
+
/**
|
|
11296
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
11297
|
+
*
|
|
11298
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
11299
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
11300
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
11301
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
11302
|
+
* deposits, etc...
|
|
11303
|
+
*
|
|
11304
|
+
* The dispatch origin of this call must be Signed.
|
|
11305
|
+
*
|
|
11306
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
11307
|
+
* - `dest`: The recipient of the transfer.
|
|
11308
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
11309
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
11310
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
11311
|
+
* guarantee to keep the sender asset account alive (true).
|
|
11312
|
+
**/
|
|
11313
|
+
| { name: 'TransferAll'; params: { id: number; dest: MultiAddressLike; keepAlive: boolean } };
|
|
11228
11314
|
|
|
11229
11315
|
/**
|
|
11230
11316
|
* Pallet's callable functions.
|
|
@@ -11251,7 +11337,7 @@ export type PalletAssetConversionCall =
|
|
|
11251
11337
|
* calls to render the liquidity withdrawable and rectify the exchange rate.
|
|
11252
11338
|
*
|
|
11253
11339
|
* Once liquidity is added, someone may successfully call
|
|
11254
|
-
* [`Pallet::swap_exact_tokens_for_tokens`]
|
|
11340
|
+
* [`Pallet::swap_exact_tokens_for_tokens`].
|
|
11255
11341
|
**/
|
|
11256
11342
|
| {
|
|
11257
11343
|
name: 'AddLiquidity';
|
|
@@ -11354,7 +11440,7 @@ export type PalletAssetConversionCallLike =
|
|
|
11354
11440
|
* calls to render the liquidity withdrawable and rectify the exchange rate.
|
|
11355
11441
|
*
|
|
11356
11442
|
* Once liquidity is added, someone may successfully call
|
|
11357
|
-
* [`Pallet::swap_exact_tokens_for_tokens`]
|
|
11443
|
+
* [`Pallet::swap_exact_tokens_for_tokens`].
|
|
11358
11444
|
**/
|
|
11359
11445
|
| {
|
|
11360
11446
|
name: 'AddLiquidity';
|