-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better parsing, more feature support
- Loading branch information
1 parent
ed79c7c
commit af26662
Showing
20 changed files
with
1,392 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
export type Addr = string; | ||
export interface Asset { | ||
amount: Uint128; | ||
info: AssetInfo; | ||
} | ||
export type AssetInfo = { | ||
token: { | ||
contractAddr: Addr; | ||
}; | ||
} | { | ||
nativeToken: { | ||
denom: string; | ||
}; | ||
}; | ||
export type Binary = string; | ||
export interface Cw20ReceiveMsg { | ||
amount: Uint128; | ||
msg: Binary; | ||
sender: string; | ||
} | ||
export type Decimal = string; | ||
export interface FeeInfo { | ||
devFeePercent: number; | ||
developerAddr?: Addr | any; | ||
protocolFeePercent: number; | ||
totalFeeBps: number; | ||
} | ||
export interface PoolConfig { | ||
codeId: number; | ||
feeInfo: FeeInfo; | ||
isDisabled: boolean; | ||
isGeneratorDisabled: boolean; | ||
poolType: PoolType; | ||
} | ||
export type PoolType = { | ||
xyk: any; | ||
} | { | ||
stable2Pool: any; | ||
} | { | ||
stable3Pool: any; | ||
} | { | ||
weighted: any; | ||
} | { | ||
custom: string; | ||
}; | ||
export interface SingleSwapRequest { | ||
amount: Uint128; | ||
assetIn: AssetInfo; | ||
assetOut: AssetInfo; | ||
beliefPrice?: Decimal | any; | ||
maxSpread?: Decimal | any; | ||
poolId: Uint128; | ||
swapType: SwapType; | ||
} | ||
export type SwapType = { | ||
giveIn: any; | ||
} | { | ||
giveOut: any; | ||
} | { | ||
custom: string; | ||
}; | ||
export type Uint128 = string; | ||
export type ExecuteMsg = { | ||
receive: Cw20ReceiveMsg; | ||
} | { | ||
updateConfig: { | ||
feeCollector?: any; | ||
generatorAddress?: any; | ||
lpTokenCodeId?: any; | ||
}; | ||
} | { | ||
updatePoolConfig: { | ||
isDisabled?: any; | ||
newFeeInfo?: FeeInfo | any; | ||
poolType: PoolType; | ||
}; | ||
} | { | ||
addToRegistery: { | ||
newPoolConfig: PoolConfig; | ||
}; | ||
} | { | ||
createPoolInstance: { | ||
assetInfos: AssetInfo[]; | ||
initParams?: Binary | any; | ||
lpTokenName?: any; | ||
lpTokenSymbol?: any; | ||
poolType: PoolType; | ||
}; | ||
} | { | ||
joinPool: { | ||
assets?: any; | ||
autoStake?: any; | ||
lpToMint?: Uint128 | any; | ||
poolId: Uint128; | ||
recipient?: any; | ||
slippageTolerance?: Decimal | any; | ||
}; | ||
} | { | ||
swap: { | ||
recipient?: any; | ||
swapRequest: SingleSwapRequest; | ||
}; | ||
} | { | ||
proposeNewOwner: { | ||
expiresIn: number; | ||
owner: string; | ||
}; | ||
} | { | ||
dropOwnershipProposal: any; | ||
} | { | ||
claimOwnership: any; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
export type Addr = string; | ||
export interface Asset { | ||
amount: Uint128; | ||
info: AssetInfo; | ||
} | ||
export type AssetInfo = { | ||
token: { | ||
contract_addr: Addr; | ||
}; | ||
} | { | ||
native_token: { | ||
denom: string; | ||
}; | ||
}; | ||
export type Binary = string; | ||
export interface Cw20ReceiveMsg { | ||
amount: Uint128; | ||
msg: Binary; | ||
sender: string; | ||
} | ||
export type Decimal = string; | ||
export interface FeeInfo { | ||
dev_fee_percent: number; | ||
developer_addr?: Addr | any; | ||
protocol_fee_percent: number; | ||
total_fee_bps: number; | ||
} | ||
export interface PoolConfig { | ||
code_id: number; | ||
fee_info: FeeInfo; | ||
is_disabled: boolean; | ||
is_generator_disabled: boolean; | ||
pool_type: PoolType; | ||
} | ||
export type PoolType = { | ||
xyk: any; | ||
} | { | ||
stable2_pool: any; | ||
} | { | ||
stable3_pool: any; | ||
} | { | ||
weighted: any; | ||
} | { | ||
custom: string; | ||
}; | ||
export interface SingleSwapRequest { | ||
amount: Uint128; | ||
asset_in: AssetInfo; | ||
asset_out: AssetInfo; | ||
belief_price?: Decimal | any; | ||
max_spread?: Decimal | any; | ||
pool_id: Uint128; | ||
swap_type: SwapType; | ||
} | ||
export type SwapType = { | ||
give_in: any; | ||
} | { | ||
give_out: any; | ||
} | { | ||
custom: string; | ||
}; | ||
export type Uint128 = string; | ||
export type ExecuteMsg = { | ||
receive: Cw20ReceiveMsg; | ||
} | { | ||
update_config: { | ||
fee_collector?: any; | ||
generator_address?: any; | ||
lp_token_code_id?: any; | ||
}; | ||
} | { | ||
update_pool_config: { | ||
is_disabled?: any; | ||
new_fee_info?: FeeInfo | any; | ||
pool_type: PoolType; | ||
}; | ||
} | { | ||
add_to_registery: { | ||
new_pool_config: PoolConfig; | ||
}; | ||
} | { | ||
create_pool_instance: { | ||
asset_infos: AssetInfo[]; | ||
init_params?: Binary | any; | ||
lp_token_name?: any; | ||
lp_token_symbol?: any; | ||
pool_type: PoolType; | ||
}; | ||
} | { | ||
join_pool: { | ||
assets?: any; | ||
auto_stake?: any; | ||
lp_to_mint?: Uint128 | any; | ||
pool_id: Uint128; | ||
recipient?: any; | ||
slippage_tolerance?: Decimal | any; | ||
}; | ||
} | { | ||
swap: { | ||
recipient?: any; | ||
swap_request: SingleSwapRequest; | ||
}; | ||
} | { | ||
propose_new_owner: { | ||
expires_in: number; | ||
owner: string; | ||
}; | ||
} | { | ||
drop_ownership_proposal: any; | ||
} | { | ||
claim_ownership: any; | ||
}; |
Oops, something went wrong.