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.
Files changed (186) hide show
  1. package/package.json +2 -2
  2. package/types/codegen/JunoSwap.client.d.ts +122 -0
  3. package/types/codegen/JunoSwap.types.d.ts +142 -0
  4. package/types/codegen/confio/proofs.d.ts +495 -0
  5. package/types/codegen/contracts.d.ts +12 -0
  6. package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
  7. package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
  8. package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
  9. package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
  10. package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
  11. package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
  12. package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
  13. package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
  14. package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
  15. package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
  16. package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
  17. package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
  18. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
  19. package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
  20. package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
  21. package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
  22. package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
  23. package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
  24. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
  25. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
  26. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
  27. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
  28. package/types/codegen/cosmos/bundle.d.ts +25545 -0
  29. package/types/codegen/cosmos/client.d.ts +473 -0
  30. package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
  31. package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
  32. package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
  33. package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
  34. package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  35. package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  36. package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
  37. package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
  38. package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
  39. package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
  40. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
  41. package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
  42. package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
  43. package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
  44. package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
  45. package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
  46. package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
  47. package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
  48. package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
  49. package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
  50. package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
  51. package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
  52. package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
  53. package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
  54. package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
  55. package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
  56. package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
  57. package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
  58. package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  59. package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
  60. package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
  61. package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
  62. package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
  63. package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
  64. package/types/codegen/cosmos/lcd.d.ts +28 -0
  65. package/types/codegen/cosmos/rpc.query.d.ts +97 -0
  66. package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
  67. package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
  68. package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
  69. package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
  70. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
  71. package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
  72. package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
  73. package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
  74. package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
  75. package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
  76. package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
  77. package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
  78. package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
  79. package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
  80. package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
  81. package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
  82. package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
  83. package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
  84. package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
  85. package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
  86. package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
  87. package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
  88. package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
  89. package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
  90. package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
  91. package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
  92. package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
  93. package/types/codegen/cosmwasm/client.d.ts +120 -0
  94. package/types/codegen/cosmwasm/lcd.d.ts +33 -0
  95. package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
  96. package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
  97. package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
  98. package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
  99. package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
  100. package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
  101. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
  102. package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
  103. package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
  104. package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
  105. package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
  106. package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
  107. package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
  108. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  109. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  110. package/types/codegen/google/bundle.d.ts +8939 -0
  111. package/types/codegen/google/protobuf/any.d.ts +237 -0
  112. package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
  113. package/types/codegen/google/protobuf/duration.d.ts +161 -0
  114. package/types/codegen/google/protobuf/empty.d.ts +33 -0
  115. package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
  116. package/types/codegen/helpers.d.ts +82 -0
  117. package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
  118. package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
  119. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
  120. package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
  121. package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
  122. package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
  123. package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
  124. package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  125. package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  126. package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
  127. package/types/codegen/ibc/bundle.d.ts +21744 -0
  128. package/types/codegen/ibc/client.d.ts +559 -0
  129. package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
  130. package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
  131. package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
  132. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
  133. package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
  134. package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
  135. package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
  136. package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
  137. package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
  138. package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
  139. package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
  140. package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
  141. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
  142. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
  143. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  144. package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
  145. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
  146. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
  147. package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
  148. package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
  149. package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
  150. package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
  151. package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
  152. package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
  153. package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
  154. package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
  155. package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
  156. package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
  157. package/types/codegen/ibc/lcd.d.ts +46 -0
  158. package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
  159. package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
  160. package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
  161. package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
  162. package/types/codegen/ibc/rpc.query.d.ts +148 -0
  163. package/types/codegen/ibc/rpc.tx.d.ts +44 -0
  164. package/types/codegen/ics23/bundle.d.ts +545 -0
  165. package/types/codegen/index.d.ts +18 -0
  166. package/types/codegen/juno/bundle.d.ts +723 -0
  167. package/types/codegen/juno/lcd.d.ts +31 -0
  168. package/types/codegen/juno/mint/genesis.d.ts +22 -0
  169. package/types/codegen/juno/mint/mint.d.ts +44 -0
  170. package/types/codegen/juno/mint/query.d.ts +99 -0
  171. package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
  172. package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
  173. package/types/codegen/juno/rpc.query.d.ts +104 -0
  174. package/types/codegen/tendermint/abci/types.d.ts +902 -0
  175. package/types/codegen/tendermint/bundle.d.ts +19673 -0
  176. package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
  177. package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
  178. package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
  179. package/types/codegen/tendermint/p2p/types.d.ts +87 -0
  180. package/types/codegen/tendermint/types/block.d.ts +21 -0
  181. package/types/codegen/tendermint/types/evidence.d.ts +70 -0
  182. package/types/codegen/tendermint/types/params.d.ts +181 -0
  183. package/types/codegen/tendermint/types/types.d.ts +326 -0
  184. package/types/codegen/tendermint/types/validator.d.ts +48 -0
  185. package/types/codegen/tendermint/version/types.d.ts +48 -0
  186. 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.7.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": "b5b5e51ea4e5c4768bfc8ffceb5aab0a3329c140"
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
+ }