juno-network 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +25545 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +8939 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +21744 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +723 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +19673 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "juno-network",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"description": "juno",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/CosmosContracts/typescript#readme",
|
@@ -90,5 +90,5 @@
|
|
90
90
|
"@osmonauts/lcd": "0.8.0",
|
91
91
|
"protobufjs": "^6.11.2"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "630fa65318ecf0f6651fe4390e0af462fa60ec91"
|
94
94
|
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
/**
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
|
+
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
|
+
*/
|
6
|
+
import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate";
|
7
|
+
import { Coin, StdFee } from "@cosmjs/amino";
|
8
|
+
import { Uint128, BalanceResponse, Expiration, TokenSelect, Decimal, InfoResponse, Token1ForToken2PriceResponse, Token2ForToken1PriceResponse } from "./JunoSwap.types";
|
9
|
+
export interface JunoSwapReadOnlyInterface {
|
10
|
+
contractAddress: string;
|
11
|
+
balance: ({ address }: {
|
12
|
+
address: string;
|
13
|
+
}) => Promise<BalanceResponse>;
|
14
|
+
info: () => Promise<InfoResponse>;
|
15
|
+
token1ForToken2Price: ({ token1Amount }: {
|
16
|
+
token1Amount: Uint128;
|
17
|
+
}) => Promise<Token1ForToken2PriceResponse>;
|
18
|
+
token2ForToken1Price: ({ token2Amount }: {
|
19
|
+
token2Amount: Uint128;
|
20
|
+
}) => Promise<Token2ForToken1PriceResponse>;
|
21
|
+
}
|
22
|
+
export declare class JunoSwapQueryClient implements JunoSwapReadOnlyInterface {
|
23
|
+
client: CosmWasmClient;
|
24
|
+
contractAddress: string;
|
25
|
+
constructor(client: CosmWasmClient, contractAddress: string);
|
26
|
+
balance: ({ address }: {
|
27
|
+
address: string;
|
28
|
+
}) => Promise<BalanceResponse>;
|
29
|
+
info: () => Promise<InfoResponse>;
|
30
|
+
token1ForToken2Price: ({ token1Amount }: {
|
31
|
+
token1Amount: Uint128;
|
32
|
+
}) => Promise<Token1ForToken2PriceResponse>;
|
33
|
+
token2ForToken1Price: ({ token2Amount }: {
|
34
|
+
token2Amount: Uint128;
|
35
|
+
}) => Promise<Token2ForToken1PriceResponse>;
|
36
|
+
}
|
37
|
+
export interface JunoSwapInterface extends JunoSwapReadOnlyInterface {
|
38
|
+
contractAddress: string;
|
39
|
+
sender: string;
|
40
|
+
addLiquidity: ({ expiration, maxToken2, minLiquidity, token1Amount }: {
|
41
|
+
expiration?: Expiration;
|
42
|
+
maxToken2: Uint128;
|
43
|
+
minLiquidity: Uint128;
|
44
|
+
token1Amount: Uint128;
|
45
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
46
|
+
removeLiquidity: ({ amount, expiration, minToken1, minToken2 }: {
|
47
|
+
amount: Uint128;
|
48
|
+
expiration?: Expiration;
|
49
|
+
minToken1: Uint128;
|
50
|
+
minToken2: Uint128;
|
51
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
52
|
+
swap: ({ expiration, inputAmount, inputToken, minOutput }: {
|
53
|
+
expiration?: Expiration;
|
54
|
+
inputAmount: Uint128;
|
55
|
+
inputToken: TokenSelect;
|
56
|
+
minOutput: Uint128;
|
57
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
58
|
+
passThroughSwap: ({ expiration, inputToken, inputTokenAmount, outputAmmAddress, outputMinToken }: {
|
59
|
+
expiration?: Expiration;
|
60
|
+
inputToken: TokenSelect;
|
61
|
+
inputTokenAmount: Uint128;
|
62
|
+
outputAmmAddress: string;
|
63
|
+
outputMinToken: Uint128;
|
64
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
65
|
+
swapAndSendTo: ({ expiration, inputAmount, inputToken, minToken, recipient }: {
|
66
|
+
expiration?: Expiration;
|
67
|
+
inputAmount: Uint128;
|
68
|
+
inputToken: TokenSelect;
|
69
|
+
minToken: Uint128;
|
70
|
+
recipient: string;
|
71
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
72
|
+
updateConfig: ({ lpFeePercent, owner, protocolFeePercent, protocolFeeRecipient }: {
|
73
|
+
lpFeePercent: Decimal;
|
74
|
+
owner?: string;
|
75
|
+
protocolFeePercent: Decimal;
|
76
|
+
protocolFeeRecipient: string;
|
77
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
78
|
+
}
|
79
|
+
export declare class JunoSwapClient extends JunoSwapQueryClient implements JunoSwapInterface {
|
80
|
+
client: SigningCosmWasmClient;
|
81
|
+
sender: string;
|
82
|
+
contractAddress: string;
|
83
|
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string);
|
84
|
+
addLiquidity: ({ expiration, maxToken2, minLiquidity, token1Amount }: {
|
85
|
+
expiration?: Expiration;
|
86
|
+
maxToken2: Uint128;
|
87
|
+
minLiquidity: Uint128;
|
88
|
+
token1Amount: Uint128;
|
89
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
90
|
+
removeLiquidity: ({ amount, expiration, minToken1, minToken2 }: {
|
91
|
+
amount: Uint128;
|
92
|
+
expiration?: Expiration;
|
93
|
+
minToken1: Uint128;
|
94
|
+
minToken2: Uint128;
|
95
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
96
|
+
swap: ({ expiration, inputAmount, inputToken, minOutput }: {
|
97
|
+
expiration?: Expiration;
|
98
|
+
inputAmount: Uint128;
|
99
|
+
inputToken: TokenSelect;
|
100
|
+
minOutput: Uint128;
|
101
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
102
|
+
passThroughSwap: ({ expiration, inputToken, inputTokenAmount, outputAmmAddress, outputMinToken }: {
|
103
|
+
expiration?: Expiration;
|
104
|
+
inputToken: TokenSelect;
|
105
|
+
inputTokenAmount: Uint128;
|
106
|
+
outputAmmAddress: string;
|
107
|
+
outputMinToken: Uint128;
|
108
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
109
|
+
swapAndSendTo: ({ expiration, inputAmount, inputToken, minToken, recipient }: {
|
110
|
+
expiration?: Expiration;
|
111
|
+
inputAmount: Uint128;
|
112
|
+
inputToken: TokenSelect;
|
113
|
+
minToken: Uint128;
|
114
|
+
recipient: string;
|
115
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
116
|
+
updateConfig: ({ lpFeePercent, owner, protocolFeePercent, protocolFeeRecipient }: {
|
117
|
+
lpFeePercent: Decimal;
|
118
|
+
owner?: string;
|
119
|
+
protocolFeePercent: Decimal;
|
120
|
+
protocolFeeRecipient: string;
|
121
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
122
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
/**
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
|
+
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
|
+
*/
|
6
|
+
export declare type Uint128 = string;
|
7
|
+
export interface BalanceResponse {
|
8
|
+
balance: Uint128;
|
9
|
+
[k: string]: unknown;
|
10
|
+
}
|
11
|
+
export declare type ExecuteMsg = {
|
12
|
+
add_liquidity: {
|
13
|
+
expiration?: Expiration | null;
|
14
|
+
max_token2: Uint128;
|
15
|
+
min_liquidity: Uint128;
|
16
|
+
token1_amount: Uint128;
|
17
|
+
[k: string]: unknown;
|
18
|
+
};
|
19
|
+
} | {
|
20
|
+
remove_liquidity: {
|
21
|
+
amount: Uint128;
|
22
|
+
expiration?: Expiration | null;
|
23
|
+
min_token1: Uint128;
|
24
|
+
min_token2: Uint128;
|
25
|
+
[k: string]: unknown;
|
26
|
+
};
|
27
|
+
} | {
|
28
|
+
swap: {
|
29
|
+
expiration?: Expiration | null;
|
30
|
+
input_amount: Uint128;
|
31
|
+
input_token: TokenSelect;
|
32
|
+
min_output: Uint128;
|
33
|
+
[k: string]: unknown;
|
34
|
+
};
|
35
|
+
} | {
|
36
|
+
pass_through_swap: {
|
37
|
+
expiration?: Expiration | null;
|
38
|
+
input_token: TokenSelect;
|
39
|
+
input_token_amount: Uint128;
|
40
|
+
output_amm_address: string;
|
41
|
+
output_min_token: Uint128;
|
42
|
+
[k: string]: unknown;
|
43
|
+
};
|
44
|
+
} | {
|
45
|
+
swap_and_send_to: {
|
46
|
+
expiration?: Expiration | null;
|
47
|
+
input_amount: Uint128;
|
48
|
+
input_token: TokenSelect;
|
49
|
+
min_token: Uint128;
|
50
|
+
recipient: string;
|
51
|
+
[k: string]: unknown;
|
52
|
+
};
|
53
|
+
} | {
|
54
|
+
update_config: {
|
55
|
+
lp_fee_percent: Decimal;
|
56
|
+
owner?: string | null;
|
57
|
+
protocol_fee_percent: Decimal;
|
58
|
+
protocol_fee_recipient: string;
|
59
|
+
[k: string]: unknown;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
export declare type Expiration = {
|
63
|
+
at_height: number;
|
64
|
+
} | {
|
65
|
+
at_time: Timestamp;
|
66
|
+
} | {
|
67
|
+
never: {
|
68
|
+
[k: string]: unknown;
|
69
|
+
};
|
70
|
+
};
|
71
|
+
export declare type Timestamp = Uint64;
|
72
|
+
export declare type Uint64 = string;
|
73
|
+
export declare type TokenSelect = "Token1" | "Token2";
|
74
|
+
export declare type Decimal = string;
|
75
|
+
export declare type Denom = {
|
76
|
+
native: string;
|
77
|
+
} | {
|
78
|
+
cw20: Addr;
|
79
|
+
};
|
80
|
+
export declare type Addr = string;
|
81
|
+
export interface InfoResponse {
|
82
|
+
lp_fee_percent: Decimal;
|
83
|
+
lp_token_address: string;
|
84
|
+
lp_token_supply: Uint128;
|
85
|
+
owner?: string | null;
|
86
|
+
protocol_fee_percent: Decimal;
|
87
|
+
protocol_fee_recipient: string;
|
88
|
+
token1_denom: Denom;
|
89
|
+
token1_reserve: Uint128;
|
90
|
+
token2_denom: Denom;
|
91
|
+
token2_reserve: Uint128;
|
92
|
+
[k: string]: unknown;
|
93
|
+
}
|
94
|
+
export interface InstantiateMsg {
|
95
|
+
lp_fee_percent: Decimal;
|
96
|
+
lp_token_code_id: number;
|
97
|
+
owner?: string | null;
|
98
|
+
protocol_fee_percent: Decimal;
|
99
|
+
protocol_fee_recipient: string;
|
100
|
+
token1_denom: Denom;
|
101
|
+
token2_denom: Denom;
|
102
|
+
[k: string]: unknown;
|
103
|
+
}
|
104
|
+
export interface MigrateMsg {
|
105
|
+
lp_fee_percent: Decimal;
|
106
|
+
protocol_fee_percent: Decimal;
|
107
|
+
protocol_fee_recipient: string;
|
108
|
+
[k: string]: unknown;
|
109
|
+
}
|
110
|
+
export declare type QueryMsg = {
|
111
|
+
balance: {
|
112
|
+
address: string;
|
113
|
+
[k: string]: unknown;
|
114
|
+
};
|
115
|
+
} | {
|
116
|
+
info: {
|
117
|
+
[k: string]: unknown;
|
118
|
+
};
|
119
|
+
} | {
|
120
|
+
token1_for_token2_price: {
|
121
|
+
token1_amount: Uint128;
|
122
|
+
[k: string]: unknown;
|
123
|
+
};
|
124
|
+
} | {
|
125
|
+
token2_for_token1_price: {
|
126
|
+
token2_amount: Uint128;
|
127
|
+
[k: string]: unknown;
|
128
|
+
};
|
129
|
+
};
|
130
|
+
export interface Token {
|
131
|
+
denom: Denom;
|
132
|
+
reserve: Uint128;
|
133
|
+
[k: string]: unknown;
|
134
|
+
}
|
135
|
+
export interface Token1ForToken2PriceResponse {
|
136
|
+
token2_amount: Uint128;
|
137
|
+
[k: string]: unknown;
|
138
|
+
}
|
139
|
+
export interface Token2ForToken1PriceResponse {
|
140
|
+
token1_amount: Uint128;
|
141
|
+
[k: string]: unknown;
|
142
|
+
}
|