Skip to content

Commit

Permalink
create-local-interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocryk committed Sep 20, 2023
1 parent aafa7cb commit d2d8c89
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
14 changes: 7 additions & 7 deletions typescript-api/src/dancebox/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import type {
DanceboxRuntimeProxyType,
FrameSupportDispatchDispatchInfo,
FrameSupportTokensMiscBalanceStatus,
PalletPooledStakingTargetPool,
SpRuntimeDispatchError,
SpWeightsWeightV2Weight,
TpPooledStakingTargetPool,
XcmV3MultiLocation,
XcmV3MultiassetMultiAssets,
XcmV3Response,
Expand Down Expand Up @@ -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;
}
Expand All @@ -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
Expand All @@ -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;
}
Expand Down
16 changes: 8 additions & 8 deletions typescript-api/src/dancebox/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import type {
DanceboxRuntimeOriginCaller,
DanceboxRuntimeProxyType,
DanceboxRuntimeSessionKeys,
PalletPooledStakingAllTargetPool,
PalletPooledStakingPendingOperationQuery,
PalletPooledStakingSharesOrStake,
PalletPooledStakingTargetPool,
SpWeightsWeightV2Weight,
TpAuthorNotingInherentOwnParachainInherentData,
TpContainerChainGenesisDataContainerChainGenesisData,
TpPooledStakingAllTargetPool,
TpPooledStakingTargetPool,
XcmV3MultiLocation,
XcmV3WeightLimit,
XcmVersionedMultiAssets,
Expand Down Expand Up @@ -644,32 +644,32 @@ declare module "@polkadot/api-base/types/submittable" {
candidate: AccountId32 | string | Uint8Array,
delegator: AccountId32 | string | Uint8Array,
pool:
| PalletPooledStakingAllTargetPool
| TpPooledStakingAllTargetPool
| "Joining"
| "AutoCompounding"
| "ManualRewards"
| "Leaving"
| number
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[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<ApiType>,
[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<ApiType>,
[AccountId32, PalletPooledStakingTargetPool, PalletPooledStakingSharesOrStake]
[AccountId32, TpPooledStakingTargetPool, PalletPooledStakingSharesOrStake]
>;
updateCandidatePosition: AugmentedSubmittable<
(candidates: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>,
Expand Down
20 changes: 10 additions & 10 deletions typescript-api/src/dancebox/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down Expand Up @@ -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<T> */
Expand Down Expand Up @@ -1793,19 +1793,19 @@ 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: {
operations: "Vec<PalletPooledStakingPendingOperationQuery>",
},
request_undelegate: {
candidate: "AccountId32",
pool: "PalletPooledStakingTargetPool",
pool: "TpPooledStakingTargetPool",
amount: "PalletPooledStakingSharesOrStake",
},
claim_manual_rewards: {
Expand All @@ -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<sp_core::crypto::AccountId32, J, L> */
Expand Down
8 changes: 4 additions & 4 deletions typescript-api/src/dancebox/interfaces/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ import type {
PalletMaintenanceModeEvent,
PalletMigrationsError,
PalletMigrationsEvent,
PalletPooledStakingAllTargetPool,
PalletPooledStakingCall,
PalletPooledStakingCandidateEligibleCandidate,
PalletPooledStakingError,
Expand All @@ -96,7 +95,6 @@ import type {
PalletPooledStakingPendingOperationQuery,
PalletPooledStakingPoolsKey,
PalletPooledStakingSharesOrStake,
PalletPooledStakingTargetPool,
PalletProxyAnnouncement,
PalletProxyCall,
PalletProxyError,
Expand Down Expand Up @@ -161,6 +159,8 @@ import type {
TpContainerChainGenesisDataContainerChainGenesisDataItem,
TpContainerChainGenesisDataProperties,
TpContainerChainGenesisDataTokenMetadata,
TpPooledStakingAllTargetPool,
TpPooledStakingTargetPool,
XcmDoubleEncoded,
XcmV2BodyId,
XcmV2BodyPart,
Expand Down Expand Up @@ -295,7 +295,6 @@ declare module "@polkadot/types/types/registry" {
PalletMaintenanceModeEvent: PalletMaintenanceModeEvent;
PalletMigrationsError: PalletMigrationsError;
PalletMigrationsEvent: PalletMigrationsEvent;
PalletPooledStakingAllTargetPool: PalletPooledStakingAllTargetPool;
PalletPooledStakingCall: PalletPooledStakingCall;
PalletPooledStakingCandidateEligibleCandidate: PalletPooledStakingCandidateEligibleCandidate;
PalletPooledStakingError: PalletPooledStakingError;
Expand All @@ -304,7 +303,6 @@ declare module "@polkadot/types/types/registry" {
PalletPooledStakingPendingOperationQuery: PalletPooledStakingPendingOperationQuery;
PalletPooledStakingPoolsKey: PalletPooledStakingPoolsKey;
PalletPooledStakingSharesOrStake: PalletPooledStakingSharesOrStake;
PalletPooledStakingTargetPool: PalletPooledStakingTargetPool;
PalletProxyAnnouncement: PalletProxyAnnouncement;
PalletProxyCall: PalletProxyCall;
PalletProxyError: PalletProxyError;
Expand Down Expand Up @@ -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;
Expand Down
20 changes: 10 additions & 10 deletions typescript-api/src/dancebox/interfaces/types-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,22 +628,22 @@ 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;
readonly isRequestedUndelegate: boolean;
readonly asRequestedUndelegate: {
readonly candidate: AccountId32;
readonly delegator: AccountId32;
readonly from: PalletPooledStakingTargetPool;
readonly from: TpPooledStakingTargetPool;
readonly pending: u128;
readonly released: u128;
} & Struct;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d2d8c89

Please sign in to comment.