carbon-js-sdk 0.2.13 → 0.2.14-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/lib/clients/NEOClient.js +1 -1
  2. package/lib/clients/TokenClient.d.ts +5 -0
  3. package/lib/clients/TokenClient.js +29 -7
  4. package/lib/codec/book/genesis.d.ts +1 -1
  5. package/lib/codec/book/genesis.js +1 -1
  6. package/lib/codec/book/query.d.ts +1 -1
  7. package/lib/codec/book/query.js +1 -1
  8. package/lib/codec/broker/genesis.d.ts +1 -1
  9. package/lib/codec/broker/genesis.js +1 -1
  10. package/lib/codec/broker/query.d.ts +3 -3
  11. package/lib/codec/broker/query.js +3 -3
  12. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  13. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  14. package/lib/codec/btcx/query.d.ts +1 -1
  15. package/lib/codec/btcx/query.js +1 -1
  16. package/lib/codec/ccm/genesis.d.ts +1 -1
  17. package/lib/codec/ccm/genesis.js +1 -1
  18. package/lib/codec/cdp/asset_params.d.ts +1 -12
  19. package/lib/codec/cdp/asset_params.js +14 -81
  20. package/lib/codec/cdp/debt_info.d.ts +1 -1
  21. package/lib/codec/cdp/debt_info.js +11 -13
  22. package/lib/codec/cdp/event.d.ts +345 -22
  23. package/lib/codec/cdp/event.js +2247 -81
  24. package/lib/codec/cdp/genesis.d.ts +80 -4
  25. package/lib/codec/cdp/genesis.js +531 -22
  26. package/lib/codec/cdp/params.d.ts +35 -0
  27. package/lib/codec/cdp/params.js +47 -1
  28. package/lib/codec/cdp/query.d.ts +437 -89
  29. package/lib/codec/cdp/query.js +1966 -177
  30. package/lib/codec/cdp/reward_scheme.d.ts +85 -0
  31. package/lib/codec/cdp/reward_scheme.js +656 -0
  32. package/lib/codec/cdp/stablecoin_debt_info.d.ts +1 -1
  33. package/lib/codec/cdp/stablecoin_debt_info.js +11 -13
  34. package/lib/codec/cdp/tx.d.ts +696 -96
  35. package/lib/codec/cdp/tx.js +3392 -243
  36. package/lib/codec/coin/event.d.ts +1 -1
  37. package/lib/codec/coin/event.js +1 -1
  38. package/lib/codec/coin/genesis.d.ts +2 -2
  39. package/lib/codec/coin/genesis.js +2 -2
  40. package/lib/codec/coin/proposal.d.ts +1 -1
  41. package/lib/codec/coin/proposal.js +1 -1
  42. package/lib/codec/coin/query.d.ts +2 -5
  43. package/lib/codec/coin/query.js +2 -8
  44. package/lib/codec/coin/token.d.ts +11 -0
  45. package/lib/codec/coin/token.js +65 -1
  46. package/lib/codec/coin/tx.d.ts +1 -1
  47. package/lib/codec/coin/tx.js +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  49. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  50. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  51. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  52. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +19 -0
  53. package/lib/codec/cosmos/authz/v1beta1/authz.js +89 -1
  54. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -15
  55. package/lib/codec/cosmos/authz/v1beta1/genesis.js +7 -120
  56. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +70 -2
  57. package/lib/codec/cosmos/authz/v1beta1/query.js +275 -3
  58. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  59. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  60. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  61. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  62. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  63. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  64. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
  65. package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
  66. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  67. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  68. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +43 -3
  69. package/lib/codec/cosmos/bank/v1beta1/query.js +140 -4
  70. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  71. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  72. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +64 -0
  73. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +343 -1
  74. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  75. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  76. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  77. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  78. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  79. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  80. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  81. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  82. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  83. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  84. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  85. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  86. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  87. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  88. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  89. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  90. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  91. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  92. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  93. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  94. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +35 -2
  95. package/lib/codec/cosmos/feegrant/v1beta1/query.js +139 -3
  96. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  97. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  98. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  99. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  100. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  101. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  102. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  103. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  104. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  105. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  106. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  107. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  108. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  109. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  110. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  111. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  112. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  113. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  114. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  115. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  116. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  117. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  118. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  119. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  120. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  121. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  122. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  123. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  124. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +14 -1
  125. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +19 -1
  126. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
  127. package/lib/codec/cosmos/tx/v1beta1/export.js +3 -1
  128. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +53 -5
  129. package/lib/codec/cosmos/tx/v1beta1/service.js +179 -4
  130. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  131. package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
  132. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  133. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  134. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  135. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  136. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  137. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  138. package/lib/codec/fee/genesis.d.ts +1 -1
  139. package/lib/codec/fee/genesis.js +1 -1
  140. package/lib/codec/fee/proposal.d.ts +1 -1
  141. package/lib/codec/fee/proposal.js +1 -1
  142. package/lib/codec/fee/query.d.ts +1 -1
  143. package/lib/codec/fee/query.js +1 -1
  144. package/lib/codec/fee/tx.d.ts +1 -1
  145. package/lib/codec/fee/tx.js +1 -1
  146. package/lib/codec/headersync/genesis.d.ts +1 -1
  147. package/lib/codec/headersync/genesis.js +1 -1
  148. package/lib/codec/headersync/query.d.ts +1 -1
  149. package/lib/codec/headersync/query.js +1 -1
  150. package/lib/codec/index.d.ts +73 -23
  151. package/lib/codec/index.js +597 -384
  152. package/lib/codec/inflation/genesis.d.ts +1 -1
  153. package/lib/codec/inflation/genesis.js +1 -1
  154. package/lib/codec/inflation/query.d.ts +1 -1
  155. package/lib/codec/inflation/query.js +1 -1
  156. package/lib/codec/insurance/genesis.d.ts +1 -1
  157. package/lib/codec/insurance/genesis.js +1 -1
  158. package/lib/codec/leverage/genesis.d.ts +1 -1
  159. package/lib/codec/leverage/genesis.js +1 -1
  160. package/lib/codec/leverage/query.d.ts +1 -1
  161. package/lib/codec/leverage/query.js +1 -1
  162. package/lib/codec/liquidation/genesis.d.ts +1 -1
  163. package/lib/codec/liquidation/genesis.js +1 -1
  164. package/lib/codec/liquidation/query.d.ts +1 -1
  165. package/lib/codec/liquidation/query.js +1 -1
  166. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  167. package/lib/codec/liquidation/quote_changes.js +1 -1
  168. package/lib/codec/liquiditypool/event.d.ts +2 -2
  169. package/lib/codec/liquiditypool/event.js +2 -2
  170. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  171. package/lib/codec/liquiditypool/genesis.js +2 -2
  172. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  173. package/lib/codec/liquiditypool/proposal.js +1 -1
  174. package/lib/codec/liquiditypool/query.d.ts +2 -2
  175. package/lib/codec/liquiditypool/query.js +2 -2
  176. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  177. package/lib/codec/liquiditypool/tx.js +1 -1
  178. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  179. package/lib/codec/lockproxy/genesis.js +1 -1
  180. package/lib/codec/lockproxy/query.d.ts +1 -1
  181. package/lib/codec/lockproxy/query.js +1 -1
  182. package/lib/codec/market/event.d.ts +1 -1
  183. package/lib/codec/market/event.js +1 -1
  184. package/lib/codec/market/genesis.d.ts +2 -1
  185. package/lib/codec/market/genesis.js +20 -2
  186. package/lib/codec/market/proposal.d.ts +1 -1
  187. package/lib/codec/market/proposal.js +1 -1
  188. package/lib/codec/market/query.d.ts +1 -1
  189. package/lib/codec/market/query.js +1 -1
  190. package/lib/codec/market/tx.d.ts +1 -1
  191. package/lib/codec/market/tx.js +1 -1
  192. package/lib/codec/marketstats/genesis.d.ts +1 -1
  193. package/lib/codec/marketstats/genesis.js +1 -1
  194. package/lib/codec/marketstats/query.d.ts +2 -2
  195. package/lib/codec/marketstats/query.js +2 -2
  196. package/lib/codec/misc/message.d.ts +1 -1
  197. package/lib/codec/misc/message.js +1 -1
  198. package/lib/codec/misc/query.d.ts +3 -3
  199. package/lib/codec/misc/query.js +3 -3
  200. package/lib/codec/misc/trade.d.ts +1 -0
  201. package/lib/codec/misc/trade.js +17 -0
  202. package/lib/codec/misc/transaction.d.ts +1 -1
  203. package/lib/codec/misc/transaction.js +1 -1
  204. package/lib/codec/oracle/event.d.ts +1 -1
  205. package/lib/codec/oracle/event.js +1 -1
  206. package/lib/codec/oracle/genesis.d.ts +1 -1
  207. package/lib/codec/oracle/genesis.js +1 -1
  208. package/lib/codec/oracle/proposal.d.ts +1 -1
  209. package/lib/codec/oracle/proposal.js +1 -1
  210. package/lib/codec/oracle/query.d.ts +2 -2
  211. package/lib/codec/oracle/query.js +2 -2
  212. package/lib/codec/order/event.d.ts +1 -1
  213. package/lib/codec/order/event.js +1 -1
  214. package/lib/codec/order/genesis.d.ts +1 -1
  215. package/lib/codec/order/genesis.js +1 -1
  216. package/lib/codec/order/query.d.ts +1 -1
  217. package/lib/codec/order/query.js +1 -1
  218. package/lib/codec/position/event.d.ts +1 -1
  219. package/lib/codec/position/event.js +1 -1
  220. package/lib/codec/position/genesis.d.ts +1 -1
  221. package/lib/codec/position/genesis.js +1 -1
  222. package/lib/codec/position/query.d.ts +1 -1
  223. package/lib/codec/position/query.js +1 -1
  224. package/lib/codec/pricing/event.d.ts +11 -1
  225. package/lib/codec/pricing/event.js +52 -2
  226. package/lib/codec/pricing/genesis.d.ts +2 -1
  227. package/lib/codec/pricing/genesis.js +20 -5
  228. package/lib/codec/pricing/pricing.d.ts +13 -0
  229. package/lib/codec/pricing/pricing.js +83 -1
  230. package/lib/codec/pricing/query.d.ts +68 -1
  231. package/lib/codec/pricing/query.js +321 -2
  232. package/lib/codec/profile/event.d.ts +1 -1
  233. package/lib/codec/profile/event.js +1 -1
  234. package/lib/codec/profile/genesis.d.ts +1 -1
  235. package/lib/codec/profile/genesis.js +1 -1
  236. package/lib/codec/profile/query.d.ts +1 -1
  237. package/lib/codec/profile/query.js +1 -1
  238. package/lib/codec/subaccount/genesis.d.ts +1 -1
  239. package/lib/codec/subaccount/genesis.js +1 -1
  240. package/lib/codec/subaccount/query.d.ts +1 -1
  241. package/lib/codec/subaccount/query.js +1 -1
  242. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  243. package/lib/codec/tendermint/abci/types.js +4 -4
  244. package/lib/codec/tendermint/types/block.d.ts +2 -2
  245. package/lib/codec/tendermint/types/block.js +2 -2
  246. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  247. package/lib/codec/tendermint/types/evidence.js +2 -2
  248. package/lib/codec/tendermint/types/types.d.ts +3 -3
  249. package/lib/codec/tendermint/types/types.js +3 -3
  250. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  251. package/lib/codec/tendermint/types/validator.js +1 -1
  252. package/lib/modules/admin.d.ts +53 -1
  253. package/lib/modules/admin.js +175 -43
  254. package/lib/modules/cdp.d.ts +105 -13
  255. package/lib/modules/cdp.js +628 -20
  256. package/lib/provider/amino/types/admin.js +48 -7
  257. package/lib/provider/amino/types/cdp.js +72 -32
  258. package/lib/util/number.d.ts +1 -0
  259. package/lib/util/number.js +2 -1
  260. package/lib/util/tx.d.ts +60 -14
  261. package/lib/wallet/CarbonSigningClient.js +27 -2
  262. package/lib/wallet/CarbonWallet.js +0 -1
  263. package/lib/websocket/channel.js +60 -0
  264. package/lib/websocket/models.d.ts +180 -21
  265. package/lib/websocket/types.d.ts +69 -3
  266. package/lib/websocket/types.js +27 -0
  267. package/package.json +1 -1
@@ -1,8 +1,14 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { PriceSet, Params } from "../pricing/pricing";
3
+ import { TokenPrice, PriceSet, Params } from "./pricing";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.pricing";
6
+ export interface QueryPriceTokenRequest {
7
+ denom: string;
8
+ }
9
+ export interface QueryPriceTokenResponse {
10
+ tokenPrice?: TokenPrice;
11
+ }
6
12
  export interface QueryPriceSetRequest {
7
13
  market: string;
8
14
  }
@@ -31,6 +37,33 @@ export interface QueryParamsResponse {
31
37
  /** params holds all the parameters of this module. */
32
38
  params?: Params;
33
39
  }
40
+ export interface QueryTokenPriceRequest {
41
+ denom: string;
42
+ }
43
+ export interface QueryTokenPriceResponse {
44
+ tokenPrice?: TokenPrice;
45
+ }
46
+ export interface QueryTokenPriceAllRequest {
47
+ pagination?: PageRequest;
48
+ }
49
+ export interface QueryTokenPriceAllResponse {
50
+ tokenPrices: TokenPrice[];
51
+ pagination?: PageResponse;
52
+ }
53
+ export declare const QueryPriceTokenRequest: {
54
+ encode(message: QueryPriceTokenRequest, writer?: _m0.Writer): _m0.Writer;
55
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryPriceTokenRequest;
56
+ fromJSON(object: any): QueryPriceTokenRequest;
57
+ toJSON(message: QueryPriceTokenRequest): unknown;
58
+ fromPartial(object: DeepPartial<QueryPriceTokenRequest>): QueryPriceTokenRequest;
59
+ };
60
+ export declare const QueryPriceTokenResponse: {
61
+ encode(message: QueryPriceTokenResponse, writer?: _m0.Writer): _m0.Writer;
62
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryPriceTokenResponse;
63
+ fromJSON(object: any): QueryPriceTokenResponse;
64
+ toJSON(message: QueryPriceTokenResponse): unknown;
65
+ fromPartial(object: DeepPartial<QueryPriceTokenResponse>): QueryPriceTokenResponse;
66
+ };
34
67
  export declare const QueryPriceSetRequest: {
35
68
  encode(message: QueryPriceSetRequest, writer?: _m0.Writer): _m0.Writer;
36
69
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryPriceSetRequest;
@@ -87,6 +120,34 @@ export declare const QueryParamsResponse: {
87
120
  toJSON(message: QueryParamsResponse): unknown;
88
121
  fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
89
122
  };
123
+ export declare const QueryTokenPriceRequest: {
124
+ encode(message: QueryTokenPriceRequest, writer?: _m0.Writer): _m0.Writer;
125
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTokenPriceRequest;
126
+ fromJSON(object: any): QueryTokenPriceRequest;
127
+ toJSON(message: QueryTokenPriceRequest): unknown;
128
+ fromPartial(object: DeepPartial<QueryTokenPriceRequest>): QueryTokenPriceRequest;
129
+ };
130
+ export declare const QueryTokenPriceResponse: {
131
+ encode(message: QueryTokenPriceResponse, writer?: _m0.Writer): _m0.Writer;
132
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTokenPriceResponse;
133
+ fromJSON(object: any): QueryTokenPriceResponse;
134
+ toJSON(message: QueryTokenPriceResponse): unknown;
135
+ fromPartial(object: DeepPartial<QueryTokenPriceResponse>): QueryTokenPriceResponse;
136
+ };
137
+ export declare const QueryTokenPriceAllRequest: {
138
+ encode(message: QueryTokenPriceAllRequest, writer?: _m0.Writer): _m0.Writer;
139
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTokenPriceAllRequest;
140
+ fromJSON(object: any): QueryTokenPriceAllRequest;
141
+ toJSON(message: QueryTokenPriceAllRequest): unknown;
142
+ fromPartial(object: DeepPartial<QueryTokenPriceAllRequest>): QueryTokenPriceAllRequest;
143
+ };
144
+ export declare const QueryTokenPriceAllResponse: {
145
+ encode(message: QueryTokenPriceAllResponse, writer?: _m0.Writer): _m0.Writer;
146
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTokenPriceAllResponse;
147
+ fromJSON(object: any): QueryTokenPriceAllResponse;
148
+ toJSON(message: QueryTokenPriceAllResponse): unknown;
149
+ fromPartial(object: DeepPartial<QueryTokenPriceAllResponse>): QueryTokenPriceAllResponse;
150
+ };
90
151
  /** Query defines the gRPC querier service. */
91
152
  export interface Query {
92
153
  /** Get prices for a market */
@@ -97,6 +158,10 @@ export interface Query {
97
158
  Rate(request: QueryRateRequest): Promise<QueryRateResponse>;
98
159
  /** Parameters queries the pricing parameters. */
99
160
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
161
+ /** Get index price and twap for a token */
162
+ TokenPrice(request: QueryTokenPriceRequest): Promise<QueryTokenPriceResponse>;
163
+ /** Get index price and twap for all tokens */
164
+ TokenPriceAll(request: QueryTokenPriceAllRequest): Promise<QueryTokenPriceAllResponse>;
100
165
  }
101
166
  export declare class QueryClientImpl implements Query {
102
167
  private readonly rpc;
@@ -105,6 +170,8 @@ export declare class QueryClientImpl implements Query {
105
170
  PriceSetAll(request: QueryAllPriceSetRequest): Promise<QueryAllPriceSetResponse>;
106
171
  Rate(request: QueryRateRequest): Promise<QueryRateResponse>;
107
172
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
173
+ TokenPrice(request: QueryTokenPriceRequest): Promise<QueryTokenPriceResponse>;
174
+ TokenPriceAll(request: QueryTokenPriceAllRequest): Promise<QueryTokenPriceAllResponse>;
108
175
  }
109
176
  interface Rpc {
110
177
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
@@ -3,13 +3,108 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRateResponse = exports.QueryRateRequest = exports.QueryAllPriceSetResponse = exports.QueryAllPriceSetRequest = exports.QueryPriceSetResponse = exports.QueryPriceSetRequest = exports.protobufPackage = void 0;
6
+ exports.QueryClientImpl = exports.QueryTokenPriceAllResponse = exports.QueryTokenPriceAllRequest = exports.QueryTokenPriceResponse = exports.QueryTokenPriceRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRateResponse = exports.QueryRateRequest = exports.QueryAllPriceSetResponse = exports.QueryAllPriceSetRequest = exports.QueryPriceSetResponse = exports.QueryPriceSetRequest = exports.QueryPriceTokenResponse = exports.QueryPriceTokenRequest = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const pricing_1 = require("../pricing/pricing");
10
+ const pricing_1 = require("./pricing");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.pricing";
13
+ const baseQueryPriceTokenRequest = { denom: "" };
14
+ exports.QueryPriceTokenRequest = {
15
+ encode(message, writer = minimal_1.default.Writer.create()) {
16
+ if (message.denom !== "") {
17
+ writer.uint32(10).string(message.denom);
18
+ }
19
+ return writer;
20
+ },
21
+ decode(input, length) {
22
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
23
+ let end = length === undefined ? reader.len : reader.pos + length;
24
+ const message = Object.assign({}, baseQueryPriceTokenRequest);
25
+ while (reader.pos < end) {
26
+ const tag = reader.uint32();
27
+ switch (tag >>> 3) {
28
+ case 1:
29
+ message.denom = reader.string();
30
+ break;
31
+ default:
32
+ reader.skipType(tag & 7);
33
+ break;
34
+ }
35
+ }
36
+ return message;
37
+ },
38
+ fromJSON(object) {
39
+ const message = Object.assign({}, baseQueryPriceTokenRequest);
40
+ message.denom =
41
+ object.denom !== undefined && object.denom !== null
42
+ ? String(object.denom)
43
+ : "";
44
+ return message;
45
+ },
46
+ toJSON(message) {
47
+ const obj = {};
48
+ message.denom !== undefined && (obj.denom = message.denom);
49
+ return obj;
50
+ },
51
+ fromPartial(object) {
52
+ var _a;
53
+ const message = Object.assign({}, baseQueryPriceTokenRequest);
54
+ message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
55
+ return message;
56
+ },
57
+ };
58
+ const baseQueryPriceTokenResponse = {};
59
+ exports.QueryPriceTokenResponse = {
60
+ encode(message, writer = minimal_1.default.Writer.create()) {
61
+ if (message.tokenPrice !== undefined) {
62
+ pricing_1.TokenPrice.encode(message.tokenPrice, writer.uint32(10).fork()).ldelim();
63
+ }
64
+ return writer;
65
+ },
66
+ decode(input, length) {
67
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
68
+ let end = length === undefined ? reader.len : reader.pos + length;
69
+ const message = Object.assign({}, baseQueryPriceTokenResponse);
70
+ while (reader.pos < end) {
71
+ const tag = reader.uint32();
72
+ switch (tag >>> 3) {
73
+ case 1:
74
+ message.tokenPrice = pricing_1.TokenPrice.decode(reader, reader.uint32());
75
+ break;
76
+ default:
77
+ reader.skipType(tag & 7);
78
+ break;
79
+ }
80
+ }
81
+ return message;
82
+ },
83
+ fromJSON(object) {
84
+ const message = Object.assign({}, baseQueryPriceTokenResponse);
85
+ message.tokenPrice =
86
+ object.tokenPrice !== undefined && object.tokenPrice !== null
87
+ ? pricing_1.TokenPrice.fromJSON(object.tokenPrice)
88
+ : undefined;
89
+ return message;
90
+ },
91
+ toJSON(message) {
92
+ const obj = {};
93
+ message.tokenPrice !== undefined &&
94
+ (obj.tokenPrice = message.tokenPrice
95
+ ? pricing_1.TokenPrice.toJSON(message.tokenPrice)
96
+ : undefined);
97
+ return obj;
98
+ },
99
+ fromPartial(object) {
100
+ const message = Object.assign({}, baseQueryPriceTokenResponse);
101
+ message.tokenPrice =
102
+ object.tokenPrice !== undefined && object.tokenPrice !== null
103
+ ? pricing_1.TokenPrice.fromPartial(object.tokenPrice)
104
+ : undefined;
105
+ return message;
106
+ },
107
+ };
13
108
  const baseQueryPriceSetRequest = { market: "" };
14
109
  exports.QueryPriceSetRequest = {
15
110
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -404,6 +499,218 @@ exports.QueryParamsResponse = {
404
499
  return message;
405
500
  },
406
501
  };
502
+ const baseQueryTokenPriceRequest = { denom: "" };
503
+ exports.QueryTokenPriceRequest = {
504
+ encode(message, writer = minimal_1.default.Writer.create()) {
505
+ if (message.denom !== "") {
506
+ writer.uint32(10).string(message.denom);
507
+ }
508
+ return writer;
509
+ },
510
+ decode(input, length) {
511
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
512
+ let end = length === undefined ? reader.len : reader.pos + length;
513
+ const message = Object.assign({}, baseQueryTokenPriceRequest);
514
+ while (reader.pos < end) {
515
+ const tag = reader.uint32();
516
+ switch (tag >>> 3) {
517
+ case 1:
518
+ message.denom = reader.string();
519
+ break;
520
+ default:
521
+ reader.skipType(tag & 7);
522
+ break;
523
+ }
524
+ }
525
+ return message;
526
+ },
527
+ fromJSON(object) {
528
+ const message = Object.assign({}, baseQueryTokenPriceRequest);
529
+ message.denom =
530
+ object.denom !== undefined && object.denom !== null
531
+ ? String(object.denom)
532
+ : "";
533
+ return message;
534
+ },
535
+ toJSON(message) {
536
+ const obj = {};
537
+ message.denom !== undefined && (obj.denom = message.denom);
538
+ return obj;
539
+ },
540
+ fromPartial(object) {
541
+ var _a;
542
+ const message = Object.assign({}, baseQueryTokenPriceRequest);
543
+ message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
544
+ return message;
545
+ },
546
+ };
547
+ const baseQueryTokenPriceResponse = {};
548
+ exports.QueryTokenPriceResponse = {
549
+ encode(message, writer = minimal_1.default.Writer.create()) {
550
+ if (message.tokenPrice !== undefined) {
551
+ pricing_1.TokenPrice.encode(message.tokenPrice, writer.uint32(10).fork()).ldelim();
552
+ }
553
+ return writer;
554
+ },
555
+ decode(input, length) {
556
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
557
+ let end = length === undefined ? reader.len : reader.pos + length;
558
+ const message = Object.assign({}, baseQueryTokenPriceResponse);
559
+ while (reader.pos < end) {
560
+ const tag = reader.uint32();
561
+ switch (tag >>> 3) {
562
+ case 1:
563
+ message.tokenPrice = pricing_1.TokenPrice.decode(reader, reader.uint32());
564
+ break;
565
+ default:
566
+ reader.skipType(tag & 7);
567
+ break;
568
+ }
569
+ }
570
+ return message;
571
+ },
572
+ fromJSON(object) {
573
+ const message = Object.assign({}, baseQueryTokenPriceResponse);
574
+ message.tokenPrice =
575
+ object.tokenPrice !== undefined && object.tokenPrice !== null
576
+ ? pricing_1.TokenPrice.fromJSON(object.tokenPrice)
577
+ : undefined;
578
+ return message;
579
+ },
580
+ toJSON(message) {
581
+ const obj = {};
582
+ message.tokenPrice !== undefined &&
583
+ (obj.tokenPrice = message.tokenPrice
584
+ ? pricing_1.TokenPrice.toJSON(message.tokenPrice)
585
+ : undefined);
586
+ return obj;
587
+ },
588
+ fromPartial(object) {
589
+ const message = Object.assign({}, baseQueryTokenPriceResponse);
590
+ message.tokenPrice =
591
+ object.tokenPrice !== undefined && object.tokenPrice !== null
592
+ ? pricing_1.TokenPrice.fromPartial(object.tokenPrice)
593
+ : undefined;
594
+ return message;
595
+ },
596
+ };
597
+ const baseQueryTokenPriceAllRequest = {};
598
+ exports.QueryTokenPriceAllRequest = {
599
+ encode(message, writer = minimal_1.default.Writer.create()) {
600
+ if (message.pagination !== undefined) {
601
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
602
+ }
603
+ return writer;
604
+ },
605
+ decode(input, length) {
606
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
607
+ let end = length === undefined ? reader.len : reader.pos + length;
608
+ const message = Object.assign({}, baseQueryTokenPriceAllRequest);
609
+ while (reader.pos < end) {
610
+ const tag = reader.uint32();
611
+ switch (tag >>> 3) {
612
+ case 1:
613
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
614
+ break;
615
+ default:
616
+ reader.skipType(tag & 7);
617
+ break;
618
+ }
619
+ }
620
+ return message;
621
+ },
622
+ fromJSON(object) {
623
+ const message = Object.assign({}, baseQueryTokenPriceAllRequest);
624
+ message.pagination =
625
+ object.pagination !== undefined && object.pagination !== null
626
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
627
+ : undefined;
628
+ return message;
629
+ },
630
+ toJSON(message) {
631
+ const obj = {};
632
+ message.pagination !== undefined &&
633
+ (obj.pagination = message.pagination
634
+ ? pagination_1.PageRequest.toJSON(message.pagination)
635
+ : undefined);
636
+ return obj;
637
+ },
638
+ fromPartial(object) {
639
+ const message = Object.assign({}, baseQueryTokenPriceAllRequest);
640
+ message.pagination =
641
+ object.pagination !== undefined && object.pagination !== null
642
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
643
+ : undefined;
644
+ return message;
645
+ },
646
+ };
647
+ const baseQueryTokenPriceAllResponse = {};
648
+ exports.QueryTokenPriceAllResponse = {
649
+ encode(message, writer = minimal_1.default.Writer.create()) {
650
+ for (const v of message.tokenPrices) {
651
+ pricing_1.TokenPrice.encode(v, writer.uint32(10).fork()).ldelim();
652
+ }
653
+ if (message.pagination !== undefined) {
654
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
655
+ }
656
+ return writer;
657
+ },
658
+ decode(input, length) {
659
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
660
+ let end = length === undefined ? reader.len : reader.pos + length;
661
+ const message = Object.assign({}, baseQueryTokenPriceAllResponse);
662
+ message.tokenPrices = [];
663
+ while (reader.pos < end) {
664
+ const tag = reader.uint32();
665
+ switch (tag >>> 3) {
666
+ case 1:
667
+ message.tokenPrices.push(pricing_1.TokenPrice.decode(reader, reader.uint32()));
668
+ break;
669
+ case 2:
670
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
671
+ break;
672
+ default:
673
+ reader.skipType(tag & 7);
674
+ break;
675
+ }
676
+ }
677
+ return message;
678
+ },
679
+ fromJSON(object) {
680
+ var _a;
681
+ const message = Object.assign({}, baseQueryTokenPriceAllResponse);
682
+ message.tokenPrices = ((_a = object.tokenPrices) !== null && _a !== void 0 ? _a : []).map((e) => pricing_1.TokenPrice.fromJSON(e));
683
+ message.pagination =
684
+ object.pagination !== undefined && object.pagination !== null
685
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
686
+ : undefined;
687
+ return message;
688
+ },
689
+ toJSON(message) {
690
+ const obj = {};
691
+ if (message.tokenPrices) {
692
+ obj.tokenPrices = message.tokenPrices.map((e) => e ? pricing_1.TokenPrice.toJSON(e) : undefined);
693
+ }
694
+ else {
695
+ obj.tokenPrices = [];
696
+ }
697
+ message.pagination !== undefined &&
698
+ (obj.pagination = message.pagination
699
+ ? pagination_1.PageResponse.toJSON(message.pagination)
700
+ : undefined);
701
+ return obj;
702
+ },
703
+ fromPartial(object) {
704
+ var _a;
705
+ const message = Object.assign({}, baseQueryTokenPriceAllResponse);
706
+ message.tokenPrices = ((_a = object.tokenPrices) !== null && _a !== void 0 ? _a : []).map((e) => pricing_1.TokenPrice.fromPartial(e));
707
+ message.pagination =
708
+ object.pagination !== undefined && object.pagination !== null
709
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
710
+ : undefined;
711
+ return message;
712
+ },
713
+ };
407
714
  class QueryClientImpl {
408
715
  constructor(rpc) {
409
716
  this.rpc = rpc;
@@ -411,6 +718,8 @@ class QueryClientImpl {
411
718
  this.PriceSetAll = this.PriceSetAll.bind(this);
412
719
  this.Rate = this.Rate.bind(this);
413
720
  this.Params = this.Params.bind(this);
721
+ this.TokenPrice = this.TokenPrice.bind(this);
722
+ this.TokenPriceAll = this.TokenPriceAll.bind(this);
414
723
  }
415
724
  PriceSet(request) {
416
725
  const data = exports.QueryPriceSetRequest.encode(request).finish();
@@ -432,6 +741,16 @@ class QueryClientImpl {
432
741
  const promise = this.rpc.request("Switcheo.carbon.pricing.Query", "Params", data);
433
742
  return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
434
743
  }
744
+ TokenPrice(request) {
745
+ const data = exports.QueryTokenPriceRequest.encode(request).finish();
746
+ const promise = this.rpc.request("Switcheo.carbon.pricing.Query", "TokenPrice", data);
747
+ return promise.then((data) => exports.QueryTokenPriceResponse.decode(new minimal_1.default.Reader(data)));
748
+ }
749
+ TokenPriceAll(request) {
750
+ const data = exports.QueryTokenPriceAllRequest.encode(request).finish();
751
+ const promise = this.rpc.request("Switcheo.carbon.pricing.Query", "TokenPriceAll", data);
752
+ return promise.then((data) => exports.QueryTokenPriceAllResponse.decode(new minimal_1.default.Reader(data)));
753
+ }
435
754
  }
436
755
  exports.QueryClientImpl = QueryClientImpl;
437
756
  if (minimal_1.default.util.Long !== long_1.default) {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Profile } from "../profile/profile";
3
+ import { Profile } from "./profile";
4
4
  export declare const protobufPackage = "Switcheo.carbon.profile";
5
5
  export interface UpdateProfileEvent {
6
6
  profile?: Profile;
@@ -7,7 +7,7 @@ exports.UpdateProfileEvent = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const profile_1 = require("../profile/profile");
10
+ const profile_1 = require("./profile");
11
11
  exports.protobufPackage = "Switcheo.carbon.profile";
12
12
  const baseUpdateProfileEvent = { type: "" };
13
13
  exports.UpdateProfileEvent = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Profile } from "../profile/profile";
3
+ import { Profile } from "./profile";
4
4
  export declare const protobufPackage = "Switcheo.carbon.profile";
5
5
  /** GenesisState defines the profile module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const profile_1 = require("../profile/profile");
10
+ const profile_1 = require("./profile");
11
11
  exports.protobufPackage = "Switcheo.carbon.profile";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Profile } from "../profile/profile";
3
+ import { Profile } from "./profile";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.profile";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllProfileResponse = exports.QueryAllProf
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const profile_1 = require("../profile/profile");
10
+ const profile_1 = require("./profile");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.profile";
13
13
  const baseQueryGetProfileRequest = { address: "" };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { GenesisSubAccount } from "../subaccount/subaccount";
3
+ import { GenesisSubAccount } from "./subaccount";
4
4
  export declare const protobufPackage = "Switcheo.carbon.subaccount";
5
5
  /** GenesisState defines the subaccount module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const subaccount_1 = require("../subaccount/subaccount");
10
+ const subaccount_1 = require("./subaccount");
11
11
  exports.protobufPackage = "Switcheo.carbon.subaccount";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { SubAccount, GenesisSubAccount } from "../subaccount/subaccount";
3
+ import { SubAccount, GenesisSubAccount } from "./subaccount";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.subaccount";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QuerySubAccountPowerResponse = exports.QuerySu
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const subaccount_1 = require("../subaccount/subaccount");
10
+ const subaccount_1 = require("./subaccount");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.subaccount";
13
13
  const baseQueryGetSubAccountRequest = { address: "" };
@@ -1,9 +1,9 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Header } from "../../tendermint/types/types";
4
- import { ProofOps } from "../../tendermint/crypto/proof";
5
- import { EvidenceParams, ValidatorParams, VersionParams } from "../../tendermint/types/params";
6
- import { PublicKey } from "../../tendermint/crypto/keys";
3
+ import { Header } from "../types/types";
4
+ import { ProofOps } from "../crypto/proof";
5
+ import { EvidenceParams, ValidatorParams, VersionParams } from "../types/params";
6
+ import { PublicKey } from "../crypto/keys";
7
7
  export declare const protobufPackage = "tendermint.abci";
8
8
  export declare enum CheckTxType {
9
9
  NEW = 0,
@@ -8,10 +8,10 @@ exports.ABCIApplicationClientImpl = exports.Snapshot = exports.Evidence = export
8
8
  /* eslint-disable */
9
9
  const long_1 = __importDefault(require("long"));
10
10
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
- const types_1 = require("../../tendermint/types/types");
12
- const proof_1 = require("../../tendermint/crypto/proof");
13
- const params_1 = require("../../tendermint/types/params");
14
- const keys_1 = require("../../tendermint/crypto/keys");
11
+ const types_1 = require("../types/types");
12
+ const proof_1 = require("../crypto/proof");
13
+ const params_1 = require("../types/params");
14
+ const keys_1 = require("../crypto/keys");
15
15
  const timestamp_1 = require("../../google/protobuf/timestamp");
16
16
  exports.protobufPackage = "tendermint.abci";
17
17
  var CheckTxType;
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Header, Data, Commit } from "../../tendermint/types/types";
4
- import { EvidenceList } from "../../tendermint/types/evidence";
3
+ import { Header, Data, Commit } from "./types";
4
+ import { EvidenceList } from "./evidence";
5
5
  export declare const protobufPackage = "tendermint.types";
6
6
  export interface Block {
7
7
  header?: Header;
@@ -7,8 +7,8 @@ exports.Block = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const types_1 = require("../../tendermint/types/types");
11
- const evidence_1 = require("../../tendermint/types/evidence");
10
+ const types_1 = require("./types");
11
+ const evidence_1 = require("./evidence");
12
12
  exports.protobufPackage = "tendermint.types";
13
13
  const baseBlock = {};
14
14
  exports.Block = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Vote, LightBlock } from "../../tendermint/types/types";
4
- import { Validator } from "../../tendermint/types/validator";
3
+ import { Vote, LightBlock } from "./types";
4
+ import { Validator } from "./validator";
5
5
  export declare const protobufPackage = "tendermint.types";
6
6
  export interface Evidence {
7
7
  duplicateVoteEvidence?: DuplicateVoteEvidence | undefined;
@@ -7,9 +7,9 @@ exports.EvidenceList = exports.LightClientAttackEvidence = exports.DuplicateVote
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const types_1 = require("../../tendermint/types/types");
10
+ const types_1 = require("./types");
11
11
  const timestamp_1 = require("../../google/protobuf/timestamp");
12
- const validator_1 = require("../../tendermint/types/validator");
12
+ const validator_1 = require("./validator");
13
13
  exports.protobufPackage = "tendermint.types";
14
14
  const baseEvidence = {};
15
15
  exports.Evidence = {
@@ -1,8 +1,8 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Proof } from "../../tendermint/crypto/proof";
4
- import { Consensus } from "../../tendermint/version/types";
5
- import { ValidatorSet } from "../../tendermint/types/validator";
3
+ import { Proof } from "../crypto/proof";
4
+ import { Consensus } from "../version/types";
5
+ import { ValidatorSet } from "./validator";
6
6
  export declare const protobufPackage = "tendermint.types";
7
7
  /** BlockIdFlag indicates which BlcokID the signature is for */
8
8
  export declare enum BlockIDFlag {
@@ -7,9 +7,9 @@ exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const proof_1 = require("../../tendermint/crypto/proof");
11
- const types_1 = require("../../tendermint/version/types");
12
- const validator_1 = require("../../tendermint/types/validator");
10
+ const proof_1 = require("../crypto/proof");
11
+ const types_1 = require("../version/types");
12
+ const validator_1 = require("./validator");
13
13
  const timestamp_1 = require("../../google/protobuf/timestamp");
14
14
  exports.protobufPackage = "tendermint.types";
15
15
  /** BlockIdFlag indicates which BlcokID the signature is for */