picasso-sdk
Version:
Picasso sdk for cosmos, ethereum, solana, and polkadot ibc transfer
61 lines • 2.44 kB
TypeScript
import type { Enum, Null, Struct, u16, u128 } from '@polkadot/types-codec';
import type { AccountId32, BlockNumber, Permill } from '@polkadot/types/interfaces/runtime';
import type { ComposableTraitsDefiCurrencyPairCurrencyId, CustomRpcBalance, CustomRpcCurrencyId, SafeRpcWrapper } from '../common';
export interface ComposableTraitsDexFee extends Struct {
readonly fee: u128;
readonly lp_fee: u128;
readonly owner_fee: u128;
readonly protocol_fee: u128;
readonly asset_id: u128;
}
export interface ComposableTraitsDexStakingRewardPool extends Null {
}
export interface PalletPabloPoolConfiguration extends Enum {
readonly isStableSwap: boolean;
readonly asStableSwap: {
readonly owner: AccountId32;
readonly pair: ComposableTraitsDefiCurrencyPairCurrencyId;
readonly amplification_coefficient: u16;
readonly fee: Permill;
} & Struct;
readonly isConstantProduct: boolean;
readonly asConstantProduct: {
readonly owner: AccountId32;
readonly pair: ComposableTraitsDefiCurrencyPairCurrencyId;
readonly fee: Permill;
readonly baseWeight: Permill;
} & Struct;
readonly isLiquidityBootstrapping: boolean;
readonly asLiquidityBootstrapping: {
readonly owner: AccountId32;
readonly pair: ComposableTraitsDefiCurrencyPairCurrencyId;
readonly sale: {
readonly start: BlockNumber;
readonly end: BlockNumber;
readonly initial_weight: Permill;
readonly final_weight: Permill;
} & Struct;
readonly feeConfig: {
readonly feeRate: Permill;
readonly ownerFeeRate: Permill;
readonly protocolFeeRate: Permill;
} & Struct;
} & Struct;
readonly type: 'StableSwap' | 'ConstantProduct' | 'LiquidityBootstrapping';
}
export interface PalletPabloPoolId extends SafeRpcWrapper {
}
export interface PalletPabloPoolInitConfiguration extends PalletPabloPoolConfiguration {
}
export interface PalletPabloPriceAggregate extends Struct {
readonly poolId: PalletPabloPoolId;
readonly baseAssetId: CustomRpcCurrencyId;
readonly quoteAssetId: CustomRpcCurrencyId;
readonly spotPrice: CustomRpcBalance;
}
export interface PalletPabloPriceCumulative extends Null {
}
export interface PalletPabloTimeWeightedAveragePrice extends Null {
}
export type PHANTOM_PABLO = 'pablo';
//# sourceMappingURL=types.d.ts.map