diff --git a/typescript-api/src/dancebox/interfaces/augment-api-events.ts b/typescript-api/src/dancebox/interfaces/augment-api-events.ts index 8dd6d16a9..c5fa33134 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-events.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-events.ts @@ -12,9 +12,9 @@ import type { DanceboxRuntimeProxyType, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, - PalletPooledStakingTargetPool, SpRuntimeDispatchError, SpWeightsWeightV2Weight, + TpPooledStakingTargetPool, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, @@ -451,14 +451,14 @@ declare module "@polkadot/api-base/types/events" { [ candidate: AccountId32, delegator: AccountId32, - pool: PalletPooledStakingTargetPool, + pool: TpPooledStakingTargetPool, staked: u128, released: u128 ], { candidate: AccountId32; delegator: AccountId32; - pool: PalletPooledStakingTargetPool; + pool: TpPooledStakingTargetPool; staked: u128; released: u128; } @@ -478,8 +478,8 @@ declare module "@polkadot/api-base/types/events" { /** User requested to delegate towards a candidate. */ RequestedDelegate: AugmentedEvent< ApiType, - [candidate: AccountId32, delegator: AccountId32, pool: PalletPooledStakingTargetPool, pending: u128], - { candidate: AccountId32; delegator: AccountId32; pool: PalletPooledStakingTargetPool; pending: u128 } + [candidate: AccountId32, delegator: AccountId32, pool: TpPooledStakingTargetPool, pending: u128], + { candidate: AccountId32; delegator: AccountId32; pool: TpPooledStakingTargetPool; pending: u128 } >; /** * User requested to undelegate from a candidate. Stake was removed from a `pool` and is `pending` for the request @@ -490,14 +490,14 @@ declare module "@polkadot/api-base/types/events" { [ candidate: AccountId32, delegator: AccountId32, - from: PalletPooledStakingTargetPool, + from: TpPooledStakingTargetPool, pending: u128, released: u128 ], { candidate: AccountId32; delegator: AccountId32; - from: PalletPooledStakingTargetPool; + from: TpPooledStakingTargetPool; pending: u128; released: u128; } diff --git a/typescript-api/src/dancebox/interfaces/augment-api-tx.ts b/typescript-api/src/dancebox/interfaces/augment-api-tx.ts index 38fe4dd01..df22e4b05 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-tx.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-tx.ts @@ -19,13 +19,13 @@ import type { DanceboxRuntimeOriginCaller, DanceboxRuntimeProxyType, DanceboxRuntimeSessionKeys, - PalletPooledStakingAllTargetPool, PalletPooledStakingPendingOperationQuery, PalletPooledStakingSharesOrStake, - PalletPooledStakingTargetPool, SpWeightsWeightV2Weight, TpAuthorNotingInherentOwnParachainInherentData, TpContainerChainGenesisDataContainerChainGenesisData, + TpPooledStakingAllTargetPool, + TpPooledStakingTargetPool, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, @@ -644,7 +644,7 @@ declare module "@polkadot/api-base/types/submittable" { candidate: AccountId32 | string | Uint8Array, delegator: AccountId32 | string | Uint8Array, pool: - | PalletPooledStakingAllTargetPool + | TpPooledStakingAllTargetPool | "Joining" | "AutoCompounding" | "ManualRewards" @@ -652,24 +652,24 @@ declare module "@polkadot/api-base/types/submittable" { | number | Uint8Array ) => SubmittableExtrinsic, - [AccountId32, AccountId32, PalletPooledStakingAllTargetPool] + [AccountId32, AccountId32, TpPooledStakingAllTargetPool] >; requestDelegate: AugmentedSubmittable< ( candidate: AccountId32 | string | Uint8Array, - pool: PalletPooledStakingTargetPool | "AutoCompounding" | "ManualRewards" | number | Uint8Array, + pool: TpPooledStakingTargetPool | "AutoCompounding" | "ManualRewards" | number | Uint8Array, stake: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic, - [AccountId32, PalletPooledStakingTargetPool, u128] + [AccountId32, TpPooledStakingTargetPool, u128] >; /** Request undelegate can incur in either claim manual rewards or hold rebalances, we simply add the worst case */ requestUndelegate: AugmentedSubmittable< ( candidate: AccountId32 | string | Uint8Array, - pool: PalletPooledStakingTargetPool | "AutoCompounding" | "ManualRewards" | number | Uint8Array, + pool: TpPooledStakingTargetPool | "AutoCompounding" | "ManualRewards" | number | Uint8Array, amount: PalletPooledStakingSharesOrStake | { Shares: any } | { Stake: any } | string | Uint8Array ) => SubmittableExtrinsic, - [AccountId32, PalletPooledStakingTargetPool, PalletPooledStakingSharesOrStake] + [AccountId32, TpPooledStakingTargetPool, PalletPooledStakingSharesOrStake] >; updateCandidatePosition: AugmentedSubmittable< (candidates: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, diff --git a/typescript-api/src/dancebox/interfaces/lookup.ts b/typescript-api/src/dancebox/interfaces/lookup.ts index 7d0ad5dfc..596c799be 100644 --- a/typescript-api/src/dancebox/interfaces/lookup.ts +++ b/typescript-api/src/dancebox/interfaces/lookup.ts @@ -434,20 +434,20 @@ export default { RequestedDelegate: { candidate: "AccountId32", delegator: "AccountId32", - pool: "PalletPooledStakingTargetPool", + pool: "TpPooledStakingTargetPool", pending: "u128", }, ExecutedDelegate: { candidate: "AccountId32", delegator: "AccountId32", - pool: "PalletPooledStakingTargetPool", + pool: "TpPooledStakingTargetPool", staked: "u128", released: "u128", }, RequestedUndelegate: { candidate: "AccountId32", delegator: "AccountId32", - from: "PalletPooledStakingTargetPool", + from: "TpPooledStakingTargetPool", pending: "u128", released: "u128", }, @@ -505,8 +505,8 @@ export default { }, }, }, - /** Lookup53: pallet_pooled_staking::pallet::TargetPool */ - PalletPooledStakingTargetPool: { + /** Lookup53: tp_pooled_staking::TargetPool */ + TpPooledStakingTargetPool: { _enum: ["AutoCompounding", "ManualRewards"], }, /** Lookup54: cumulus_pallet_xcmp_queue::pallet::Event */ @@ -1793,11 +1793,11 @@ export default { rebalance_hold: { candidate: "AccountId32", delegator: "AccountId32", - pool: "PalletPooledStakingAllTargetPool", + pool: "TpPooledStakingAllTargetPool", }, request_delegate: { candidate: "AccountId32", - pool: "PalletPooledStakingTargetPool", + pool: "TpPooledStakingTargetPool", stake: "u128", }, execute_pending_operations: { @@ -1805,7 +1805,7 @@ export default { }, request_undelegate: { candidate: "AccountId32", - pool: "PalletPooledStakingTargetPool", + pool: "TpPooledStakingTargetPool", amount: "PalletPooledStakingSharesOrStake", }, claim_manual_rewards: { @@ -1816,8 +1816,8 @@ export default { }, }, }, - /** Lookup206: pallet_pooled_staking::pallet::AllTargetPool */ - PalletPooledStakingAllTargetPool: { + /** Lookup206: tp_pooled_staking::AllTargetPool */ + TpPooledStakingAllTargetPool: { _enum: ["Joining", "AutoCompounding", "ManualRewards", "Leaving"], }, /** Lookup208: pallet_pooled_staking::pallet::PendingOperationQuery */ diff --git a/typescript-api/src/dancebox/interfaces/registry.ts b/typescript-api/src/dancebox/interfaces/registry.ts index 25f49d09b..e0cd20e75 100644 --- a/typescript-api/src/dancebox/interfaces/registry.ts +++ b/typescript-api/src/dancebox/interfaces/registry.ts @@ -87,7 +87,6 @@ import type { PalletMaintenanceModeEvent, PalletMigrationsError, PalletMigrationsEvent, - PalletPooledStakingAllTargetPool, PalletPooledStakingCall, PalletPooledStakingCandidateEligibleCandidate, PalletPooledStakingError, @@ -96,7 +95,6 @@ import type { PalletPooledStakingPendingOperationQuery, PalletPooledStakingPoolsKey, PalletPooledStakingSharesOrStake, - PalletPooledStakingTargetPool, PalletProxyAnnouncement, PalletProxyCall, PalletProxyError, @@ -161,6 +159,8 @@ import type { TpContainerChainGenesisDataContainerChainGenesisDataItem, TpContainerChainGenesisDataProperties, TpContainerChainGenesisDataTokenMetadata, + TpPooledStakingAllTargetPool, + TpPooledStakingTargetPool, XcmDoubleEncoded, XcmV2BodyId, XcmV2BodyPart, @@ -295,7 +295,6 @@ declare module "@polkadot/types/types/registry" { PalletMaintenanceModeEvent: PalletMaintenanceModeEvent; PalletMigrationsError: PalletMigrationsError; PalletMigrationsEvent: PalletMigrationsEvent; - PalletPooledStakingAllTargetPool: PalletPooledStakingAllTargetPool; PalletPooledStakingCall: PalletPooledStakingCall; PalletPooledStakingCandidateEligibleCandidate: PalletPooledStakingCandidateEligibleCandidate; PalletPooledStakingError: PalletPooledStakingError; @@ -304,7 +303,6 @@ declare module "@polkadot/types/types/registry" { PalletPooledStakingPendingOperationQuery: PalletPooledStakingPendingOperationQuery; PalletPooledStakingPoolsKey: PalletPooledStakingPoolsKey; PalletPooledStakingSharesOrStake: PalletPooledStakingSharesOrStake; - PalletPooledStakingTargetPool: PalletPooledStakingTargetPool; PalletProxyAnnouncement: PalletProxyAnnouncement; PalletProxyCall: PalletProxyCall; PalletProxyError: PalletProxyError; @@ -369,6 +367,8 @@ declare module "@polkadot/types/types/registry" { TpContainerChainGenesisDataContainerChainGenesisDataItem: TpContainerChainGenesisDataContainerChainGenesisDataItem; TpContainerChainGenesisDataProperties: TpContainerChainGenesisDataProperties; TpContainerChainGenesisDataTokenMetadata: TpContainerChainGenesisDataTokenMetadata; + TpPooledStakingAllTargetPool: TpPooledStakingAllTargetPool; + TpPooledStakingTargetPool: TpPooledStakingTargetPool; XcmDoubleEncoded: XcmDoubleEncoded; XcmV2BodyId: XcmV2BodyId; XcmV2BodyPart: XcmV2BodyPart; diff --git a/typescript-api/src/dancebox/interfaces/types-lookup.ts b/typescript-api/src/dancebox/interfaces/types-lookup.ts index da9c4a9c3..8bb435abd 100644 --- a/typescript-api/src/dancebox/interfaces/types-lookup.ts +++ b/typescript-api/src/dancebox/interfaces/types-lookup.ts @@ -628,14 +628,14 @@ declare module "@polkadot/types/lookup" { readonly asRequestedDelegate: { readonly candidate: AccountId32; readonly delegator: AccountId32; - readonly pool: PalletPooledStakingTargetPool; + readonly pool: TpPooledStakingTargetPool; readonly pending: u128; } & Struct; readonly isExecutedDelegate: boolean; readonly asExecutedDelegate: { readonly candidate: AccountId32; readonly delegator: AccountId32; - readonly pool: PalletPooledStakingTargetPool; + readonly pool: TpPooledStakingTargetPool; readonly staked: u128; readonly released: u128; } & Struct; @@ -643,7 +643,7 @@ declare module "@polkadot/types/lookup" { readonly asRequestedUndelegate: { readonly candidate: AccountId32; readonly delegator: AccountId32; - readonly from: PalletPooledStakingTargetPool; + readonly from: TpPooledStakingTargetPool; readonly pending: u128; readonly released: u128; } & Struct; @@ -726,8 +726,8 @@ declare module "@polkadot/types/lookup" { | "ClaimedManualRewards"; } - /** @name PalletPooledStakingTargetPool (53) */ - interface PalletPooledStakingTargetPool extends Enum { + /** @name TpPooledStakingTargetPool (53) */ + interface TpPooledStakingTargetPool extends Enum { readonly isAutoCompounding: boolean; readonly isManualRewards: boolean; readonly type: "AutoCompounding" | "ManualRewards"; @@ -2438,12 +2438,12 @@ declare module "@polkadot/types/lookup" { readonly asRebalanceHold: { readonly candidate: AccountId32; readonly delegator: AccountId32; - readonly pool: PalletPooledStakingAllTargetPool; + readonly pool: TpPooledStakingAllTargetPool; } & Struct; readonly isRequestDelegate: boolean; readonly asRequestDelegate: { readonly candidate: AccountId32; - readonly pool: PalletPooledStakingTargetPool; + readonly pool: TpPooledStakingTargetPool; readonly stake: u128; } & Struct; readonly isExecutePendingOperations: boolean; @@ -2453,7 +2453,7 @@ declare module "@polkadot/types/lookup" { readonly isRequestUndelegate: boolean; readonly asRequestUndelegate: { readonly candidate: AccountId32; - readonly pool: PalletPooledStakingTargetPool; + readonly pool: TpPooledStakingTargetPool; readonly amount: PalletPooledStakingSharesOrStake; } & Struct; readonly isClaimManualRewards: boolean; @@ -2473,8 +2473,8 @@ declare module "@polkadot/types/lookup" { | "UpdateCandidatePosition"; } - /** @name PalletPooledStakingAllTargetPool (206) */ - interface PalletPooledStakingAllTargetPool extends Enum { + /** @name TpPooledStakingAllTargetPool (206) */ + interface TpPooledStakingAllTargetPool extends Enum { readonly isJoining: boolean; readonly isAutoCompounding: boolean; readonly isManualRewards: boolean;