@paraspell/descriptors 14.1.0-rc.1 → 14.1.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/dist/ahp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SizedHex, FixedSizeArray } from "polkadot-api";
2
- import type { Ia5cotcvi888ln, I21jsa919m88fd, Iegif7m3upfe1k, I9kt8c221c83ln, Ic76kfh5ebqkpl, Icscpmubum33bq, I21d2olof7eb60, Ibgm4rnf22lal1, Ie68np0vpihith, I9bnv6lu0crf1q, Iauhjqifrdklq7, Ie1uso9m8rt5cf, Idrv9sn94spntn, I66celthih5oio, I6h467t3h9mu0r, Iaoqe81db6mqng, Ie9o86shcq0ome, I5r8t4iaend96p, Ie2db4l6126rkt, Ictkqqlhdjt761, Iftvbctbo05fu4, XcmVersionedXcm, Ic0c3req3mlc1l, I4q39t5hn830vp, XcmVersionedAssetId, I7ocn4njqde3v5, XcmVersionedLocation, Iek7ha36da9mf5, I7qpv90droestd, I2nhpa757v7jk9, I7d04odr0ekssi, I2timq2cfgd8gf, If9iqq7i64mur8, I35p85j063s0il, I5vv5n03oo8gas, ExtensionsCheckMortality, I182pt4kr56mhn, I87rnrnks7g0hm, I4s6vifaf8k998 } from "./common-types";
1
+ import { PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, FixedSizeArray } from "polkadot-api";
2
+ import type { Ia5cotcvi888ln, I21jsa919m88fd, Iegif7m3upfe1k, I9kt8c221c83ln, Ic76kfh5ebqkpl, Icscpmubum33bq, I21d2olof7eb60, Ibgm4rnf22lal1, Ie68np0vpihith, I9bnv6lu0crf1q, Iauhjqifrdklq7, Ie1uso9m8rt5cf, I9qs6t5j6q39a, Iedqm0jmes3b8c, Ias85rlb3o6s7q, Id0gqblkd1p3al, Ictdeqps0jf561, I5r8t4iaend96p, Ie2db4l6126rkt, Ictkqqlhdjt761, Iftvbctbo05fu4, XcmVersionedXcm, Ic0c3req3mlc1l, I4q39t5hn830vp, XcmVersionedAssetId, I7ocn4njqde3v5, XcmVersionedLocation, Iek7ha36da9mf5, I7qpv90droestd, I785ek4pgn6k35, Iae250dgeu7tp6, I68d4gbta4a6d1, If9iqq7i64mur8, I35p85j063s0il, I5vv5n03oo8gas } from "./common-types";
3
3
  type AnonymousEnum<T extends {}> = T & {
4
4
  __anonymous: true;
5
5
  };
@@ -318,7 +318,7 @@ type ICalls = {
318
318
  * and the error of the failed call. If all were successful, then the `BatchCompleted`
319
319
  * event is deposited.
320
320
  */
321
- batch: TxDescriptor<Anonymize<Idrv9sn94spntn>>;
321
+ batch: TxDescriptor<Anonymize<I9qs6t5j6q39a>>;
322
322
  /**
323
323
  * Send a call through an indexed pseudonym of the sender.
324
324
  *
@@ -334,7 +334,7 @@ type ICalls = {
334
334
  *
335
335
  * The dispatch origin for this call must be _Signed_.
336
336
  */
337
- as_derivative: TxDescriptor<Anonymize<I66celthih5oio>>;
337
+ as_derivative: TxDescriptor<Anonymize<Iedqm0jmes3b8c>>;
338
338
  /**
339
339
  * Send a batch of dispatch calls and atomically execute them.
340
340
  * The whole transaction will rollback and fail if any of the calls failed.
@@ -350,7 +350,7 @@ type ICalls = {
350
350
  * ## Complexity
351
351
  * - O(C) where C is the number of calls to be batched.
352
352
  */
353
- batch_all: TxDescriptor<Anonymize<Idrv9sn94spntn>>;
353
+ batch_all: TxDescriptor<Anonymize<I9qs6t5j6q39a>>;
354
354
  /**
355
355
  * Dispatches a function call with a provided origin.
356
356
  *
@@ -359,7 +359,7 @@ type ICalls = {
359
359
  * ## Complexity
360
360
  * - O(1).
361
361
  */
362
- dispatch_as: TxDescriptor<Anonymize<I6h467t3h9mu0r>>;
362
+ dispatch_as: TxDescriptor<Anonymize<Ias85rlb3o6s7q>>;
363
363
  /**
364
364
  * Send a batch of dispatch calls.
365
365
  * Unlike `batch`, it allows errors and won't interrupt.
@@ -375,7 +375,7 @@ type ICalls = {
375
375
  * ## Complexity
376
376
  * - O(C) where C is the number of calls to be batched.
377
377
  */
378
- force_batch: TxDescriptor<Anonymize<Idrv9sn94spntn>>;
378
+ force_batch: TxDescriptor<Anonymize<I9qs6t5j6q39a>>;
379
379
  /**
380
380
  * Dispatch a function call with a specified weight.
381
381
  *
@@ -384,7 +384,7 @@ type ICalls = {
384
384
  *
385
385
  * The dispatch origin for this call must be _Root_.
386
386
  */
387
- with_weight: TxDescriptor<Anonymize<Iaoqe81db6mqng>>;
387
+ with_weight: TxDescriptor<Anonymize<Id0gqblkd1p3al>>;
388
388
  /**
389
389
  * Dispatch a fallback call in the event the main call fails to execute.
390
390
  * May be called from any origin except `None`.
@@ -410,7 +410,7 @@ type ICalls = {
410
410
  * - Some use cases might involve submitting a `batch` type call in either main, fallback
411
411
  * or both.
412
412
  */
413
- if_else: TxDescriptor<Anonymize<Ie9o86shcq0ome>>;
413
+ if_else: TxDescriptor<Anonymize<Ictdeqps0jf561>>;
414
414
  /**
415
415
  * Dispatches a function call with a provided origin.
416
416
  *
@@ -418,7 +418,7 @@ type ICalls = {
418
418
  *
419
419
  * The dispatch origin for this call must be _Root_.
420
420
  */
421
- dispatch_as_fallible: TxDescriptor<Anonymize<I6h467t3h9mu0r>>;
421
+ dispatch_as_fallible: TxDescriptor<Anonymize<Ias85rlb3o6s7q>>;
422
422
  };
423
423
  };
424
424
  type IEvent = {};
@@ -3064,11 +3064,11 @@ type IRuntimeCalls = {
3064
3064
  /**
3065
3065
  * Dry run call V2.
3066
3066
  */
3067
- dry_run_call: RuntimeDescriptor<[origin: Anonymize<I7qpv90droestd>, call: Anonymize<I2nhpa757v7jk9>, result_xcms_version: number], Anonymize<I7d04odr0ekssi>>;
3067
+ dry_run_call: RuntimeDescriptor<[origin: Anonymize<I7qpv90droestd>, call: Anonymize<I785ek4pgn6k35>, result_xcms_version: number], Anonymize<Iae250dgeu7tp6>>;
3068
3068
  /**
3069
3069
  * Dry run XCM program
3070
3070
  */
3071
- dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<I2timq2cfgd8gf>>;
3071
+ dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<I68d4gbta4a6d1>>;
3072
3072
  };
3073
3073
  /**
3074
3074
  * This runtime api allows people to query the size of the liquidity pools
@@ -3096,32 +3096,8 @@ type IRuntimeCalls = {
3096
3096
  };
3097
3097
  };
3098
3098
  export type AhpDispatchError = unknown;
3099
- export type AhpExtensions = {
3100
- "CheckSpecVersion": {
3101
- additionalSigned: number;
3102
- };
3103
- "CheckTxVersion": {
3104
- additionalSigned: number;
3105
- };
3106
- "CheckGenesis": {
3107
- additionalSigned: SizedHex<32>;
3108
- };
3109
- "CheckMortality": {
3110
- value: ExtensionsCheckMortality;
3111
- additionalSigned: SizedHex<32>;
3112
- };
3113
- "CheckNonce": {
3114
- value: number;
3115
- };
3116
- "ChargeAssetTxPayment": {
3117
- value: Anonymize<I182pt4kr56mhn>;
3118
- };
3119
- "CheckMetadataHash": {
3120
- value: Anonymize<I87rnrnks7g0hm>;
3121
- additionalSigned: Anonymize<I4s6vifaf8k998>;
3122
- };
3123
- };
3124
- type IRequiredExtensions = PlainDescriptor<"CheckSpecVersion" | "CheckTxVersion" | "CheckGenesis" | "CheckMortality" | "CheckNonce" | "ChargeAssetTxPayment" | "CheckMetadataHash">;
3099
+ type IAsset = PlainDescriptor<Anonymize<If9iqq7i64mur8>>;
3100
+ export type AhpExtensions = {};
3125
3101
  type PalletsTypedef = {
3126
3102
  __storage: IStorage;
3127
3103
  __tx: ICalls;
@@ -3136,8 +3112,8 @@ export type Ahp = {
3136
3112
  apis: IRuntimeCalls;
3137
3113
  } & Promise<any>;
3138
3114
  metadataTypes: Promise<Uint8Array>;
3115
+ asset: IAsset;
3139
3116
  extensions: AhpExtensions;
3140
- requiredExtensions: IRequiredExtensions;
3141
3117
  getMetadata: () => Promise<Uint8Array>;
3142
3118
  genesis: string | undefined;
3143
3119
  };
@@ -3150,7 +3126,7 @@ export type AhpEvents = EventsFromPalletsDef<PalletsTypedef>;
3150
3126
  export type AhpErrors = ErrorsFromPalletsDef<PalletsTypedef>;
3151
3127
  export type AhpConstants = ConstFromPalletsDef<PalletsTypedef>;
3152
3128
  export type AhpViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
3153
- export type AhpCallData = Anonymize<I2nhpa757v7jk9> & {
3129
+ export type AhpCallData = Anonymize<I785ek4pgn6k35> & {
3154
3130
  value: {
3155
3131
  type: string;
3156
3132
  };
@@ -3247,7 +3223,7 @@ type AllInteractions = {
3247
3223
  Bounties: ['propose_bounty', 'approve_bounty', 'propose_curator', 'unassign_curator', 'accept_curator', 'award_bounty', 'claim_bounty', 'close_bounty', 'extend_bounty_expiry', 'approve_bounty_with_curator', 'poke_deposit'];
3248
3224
  ChildBounties: ['add_child_bounty', 'propose_curator', 'accept_curator', 'unassign_curator', 'award_child_bounty', 'claim_child_bounty', 'close_child_bounty'];
3249
3225
  AssetRate: ['create', 'update', 'remove'];
3250
- MultiAssetBounties: ['fund_bounty', 'fund_child_bounty', 'propose_curator', 'accept_curator', 'unassign_curator', 'award_bounty', 'close_bounty', 'check_status', 'retry_payment', 'increase_value'];
3226
+ MultiAssetBounties: ['fund_bounty', 'fund_child_bounty', 'propose_curator', 'accept_curator', 'unassign_curator', 'award_bounty', 'close_bounty', 'check_status', 'retry_payment'];
3251
3227
  StateTrieMigration: ['control_auto_migration', 'continue_migrate', 'migrate_custom_top', 'migrate_custom_child', 'set_signed_max_limits', 'force_set_progress'];
3252
3228
  NominationPools: ['join', 'bond_extra', 'claim_payout', 'unbond', 'pool_withdraw_unbonded', 'withdraw_unbonded', 'create', 'create_with_pool_id', 'nominate', 'set_state', 'set_metadata', 'set_configs', 'update_roles', 'chill', 'bond_extra_other', 'set_claim_permission', 'claim_payout_other', 'set_commission', 'set_commission_max', 'set_commission_change_rate', 'claim_commission', 'adjust_pool_deposit', 'set_commission_claim_permission', 'apply_slash', 'migrate_delegation', 'migrate_pool_to_delegate_stake'];
3253
3229
  VoterList: ['rebag', 'put_in_front_of', 'put_in_front_of_other'];
@@ -3297,7 +3273,7 @@ type AllInteractions = {
3297
3273
  Bounties: ['BountyProposed', 'BountyRejected', 'BountyBecameActive', 'BountyAwarded', 'BountyClaimed', 'BountyCanceled', 'BountyExtended', 'BountyApproved', 'CuratorProposed', 'CuratorUnassigned', 'CuratorAccepted', 'DepositPoked'];
3298
3274
  ChildBounties: ['Added', 'Awarded', 'Claimed', 'Canceled'];
3299
3275
  AssetRate: ['AssetRateCreated', 'AssetRateRemoved', 'AssetRateUpdated'];
3300
- MultiAssetBounties: ['BountyCreated', 'ChildBountyCreated', 'BountyBecameActive', 'BountyAwarded', 'BountyPayoutProcessed', 'BountyFundingProcessed', 'BountyRefundProcessed', 'BountyCanceled', 'CuratorUnassigned', 'CuratorProposed', 'PaymentFailed', 'Paid', 'BountyValueIncreased'];
3276
+ MultiAssetBounties: ['BountyCreated', 'ChildBountyCreated', 'BountyBecameActive', 'BountyAwarded', 'BountyPayoutProcessed', 'BountyFundingProcessed', 'BountyRefundProcessed', 'BountyCanceled', 'CuratorUnassigned', 'CuratorProposed', 'PaymentFailed', 'Paid'];
3301
3277
  StateTrieMigration: ['Migrated', 'Slashed', 'AutoMigrationFinished', 'Halted'];
3302
3278
  NominationPools: ['Created', 'Bonded', 'PaidOut', 'Unbonded', 'Withdrawn', 'Destroyed', 'StateChanged', 'MemberRemoved', 'RolesUpdated', 'PoolSlashed', 'UnbondingPoolSlashed', 'PoolCommissionUpdated', 'PoolMaxCommissionUpdated', 'PoolCommissionChangeRateUpdated', 'PoolCommissionClaimPermissionUpdated', 'PoolCommissionClaimed', 'MinBalanceDeficitAdjusted', 'MinBalanceExcessAdjusted', 'MemberClaimPermissionUpdated', 'MetadataUpdated', 'PoolNominationMade', 'PoolNominatorChilled', 'GlobalParamsUpdated'];
3303
3279
  VoterList: ['Rebagged', 'ScoreUpdated'];