carbon-js-sdk 0.5.12 → 0.5.13

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.
@@ -7,7 +7,7 @@ export declare class GrpcWebError extends Error {
7
7
  }
8
8
  /**
9
9
  * Uses grpc-web module on cosmos-sdk to simulate gRPC queries
10
- * through HTTP/1.1.
10
+ * throught HTTP/1.1.
11
11
  * see https://github.com/cosmos/cosmos-sdk/issues/7345
12
12
  */
13
13
  export declare class GrpcQueryClient implements ProtobufRpcClient {
@@ -12,7 +12,7 @@ class GrpcWebError extends Error {
12
12
  exports.GrpcWebError = GrpcWebError;
13
13
  /**
14
14
  * Uses grpc-web module on cosmos-sdk to simulate gRPC queries
15
- * through HTTP/1.1.
15
+ * throught HTTP/1.1.
16
16
  * see https://github.com/cosmos/cosmos-sdk/issues/7345
17
17
  */
18
18
  class GrpcQueryClient {
@@ -27,6 +27,7 @@ export interface QueryAllianceRequest {
27
27
  export interface QueryAllianceResponse {
28
28
  alliance?: AllianceAsset;
29
29
  }
30
+ /** @deprecated */
30
31
  export interface QueryIBCAllianceRequest {
31
32
  hash: string;
32
33
  }
@@ -69,6 +70,7 @@ export interface QueryAllianceDelegationRequest {
69
70
  denom: string;
70
71
  pagination?: PageRequest;
71
72
  }
73
+ /** @deprecated */
72
74
  export interface QueryIBCAllianceDelegationRequest {
73
75
  delegatorAddr: string;
74
76
  validatorAddr: string;
@@ -85,6 +87,7 @@ export interface QueryAllianceDelegationRewardsRequest {
85
87
  denom: string;
86
88
  pagination?: PageRequest;
87
89
  }
90
+ /** @deprecated */
88
91
  export interface QueryIBCAllianceDelegationRewardsRequest {
89
92
  delegatorAddr: string;
90
93
  validatorAddr: string;
@@ -262,7 +265,13 @@ export interface Query {
262
265
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
263
266
  /** Query paginated alliances */
264
267
  Alliances(request: QueryAlliancesRequest): Promise<QueryAlliancesResponse>;
265
- /** Query a specific alliance by ibc hash */
268
+ /**
269
+ * Query a specific alliance by ibc hash
270
+ * @deprecated: this endpoint will be replaced for by the encoded version
271
+ * of the denom e.g.: GET:/terra/alliances/ibc%2Falliance
272
+ *
273
+ * @deprecated
274
+ */
266
275
  IBCAlliance(request: QueryIBCAllianceRequest): Promise<QueryAllianceResponse>;
267
276
  /** Query all paginated alliance delegations */
268
277
  AllAlliancesDelegations(request: QueryAllAlliancesDelegationsRequest): Promise<QueryAlliancesDelegationsResponse>;
@@ -276,11 +285,23 @@ export interface Query {
276
285
  AlliancesDelegationByValidator(request: QueryAlliancesDelegationByValidatorRequest): Promise<QueryAlliancesDelegationsResponse>;
277
286
  /** Query a delegation to an alliance by delegator addr, validator_addr and denom */
278
287
  AllianceDelegation(request: QueryAllianceDelegationRequest): Promise<QueryAllianceDelegationResponse>;
279
- /** Query a delegation to an alliance by delegator addr, validator_addr and denom */
288
+ /**
289
+ * Query a delegation to an alliance by delegator addr, validator_addr and denom
290
+ * @deprecated: this endpoint will be replaced for by the encoded version
291
+ * of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
292
+ *
293
+ * @deprecated
294
+ */
280
295
  IBCAllianceDelegation(request: QueryIBCAllianceDelegationRequest): Promise<QueryAllianceDelegationResponse>;
281
296
  /** Query for rewards by delegator addr, validator_addr and denom */
282
297
  AllianceDelegationRewards(request: QueryAllianceDelegationRewardsRequest): Promise<QueryAllianceDelegationRewardsResponse>;
283
- /** Query for rewards by delegator addr, validator_addr and denom */
298
+ /**
299
+ * Query for rewards by delegator addr, validator_addr and denom
300
+ * @deprecated: this endpoint will be replaced for by the encoded version
301
+ * of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
302
+ *
303
+ * @deprecated
304
+ */
284
305
  IBCAllianceDelegationRewards(request: QueryIBCAllianceDelegationRewardsRequest): Promise<QueryAllianceDelegationRewardsResponse>;
285
306
  /** Query a specific alliance by denom */
286
307
  Alliance(request: QueryAllianceRequest): Promise<QueryAllianceResponse>;
@@ -15,6 +15,7 @@ export interface StopBook {
15
15
  market: string;
16
16
  asks: string[];
17
17
  bids: string[];
18
+ trigger: string;
18
19
  }
19
20
  export declare const OrderBookLevel: {
20
21
  encode(message: OrderBookLevel, writer?: _m0.Writer): _m0.Writer;
@@ -158,7 +158,7 @@ exports.OrderBook = {
158
158
  return message;
159
159
  },
160
160
  };
161
- const baseStopBook = { market: "", asks: "", bids: "" };
161
+ const baseStopBook = { market: "", asks: "", bids: "", trigger: "" };
162
162
  exports.StopBook = {
163
163
  encode(message, writer = minimal_1.default.Writer.create()) {
164
164
  if (message.market !== "") {
@@ -170,6 +170,9 @@ exports.StopBook = {
170
170
  for (const v of message.bids) {
171
171
  writer.uint32(26).string(v);
172
172
  }
173
+ if (message.trigger !== "") {
174
+ writer.uint32(34).string(message.trigger);
175
+ }
173
176
  return writer;
174
177
  },
175
178
  decode(input, length) {
@@ -190,6 +193,9 @@ exports.StopBook = {
190
193
  case 3:
191
194
  message.bids.push(reader.string());
192
195
  break;
196
+ case 4:
197
+ message.trigger = reader.string();
198
+ break;
193
199
  default:
194
200
  reader.skipType(tag & 7);
195
201
  break;
@@ -206,6 +212,10 @@ exports.StopBook = {
206
212
  : "";
207
213
  message.asks = ((_a = object.asks) !== null && _a !== void 0 ? _a : []).map((e) => String(e));
208
214
  message.bids = ((_b = object.bids) !== null && _b !== void 0 ? _b : []).map((e) => String(e));
215
+ message.trigger =
216
+ object.trigger !== undefined && object.trigger !== null
217
+ ? String(object.trigger)
218
+ : "";
209
219
  return message;
210
220
  },
211
221
  toJSON(message) {
@@ -223,14 +233,16 @@ exports.StopBook = {
223
233
  else {
224
234
  obj.bids = [];
225
235
  }
236
+ message.trigger !== undefined && (obj.trigger = message.trigger);
226
237
  return obj;
227
238
  },
228
239
  fromPartial(object) {
229
- var _a, _b, _c;
240
+ var _a, _b, _c, _d;
230
241
  const message = Object.assign({}, baseStopBook);
231
242
  message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
232
243
  message.asks = ((_b = object.asks) !== null && _b !== void 0 ? _b : []).map((e) => e);
233
244
  message.bids = ((_c = object.bids) !== null && _c !== void 0 ? _c : []).map((e) => e);
245
+ message.trigger = (_d = object.trigger) !== null && _d !== void 0 ? _d : "";
234
246
  return message;
235
247
  },
236
248
  };
@@ -577,7 +577,7 @@ export { LinkPoolProposal, UnlinkPoolProposal, SetRewardCurveProposal, SetCommit
577
577
  export { QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllPoolAddressRequest, QueryAllPoolAddressResponse, QueryAllPoolAddressResponse_AddressesEntry, QueryRewardHistoryRequest, ExtendedPool, QueryRewardHistoryResponse, QueryCommitmentRequest, QueryCommitmentResponse, QueryAllCommitmentRequest, QueryAllCommitmentResponse, QueryLastClaimRequest, QueryLastClaimResponse, QueryCommitmentCurveRequest, QueryCommitmentCurveResponse, QueryRewardCurveRequest, QueryRewardCurveResponse, QueryTotalCommitmentRequest, QueryTotalCommitmentResponse, QueryAllTotalCommitmentRequest, QueryAllTotalCommitmentResponse, QueryClaimableRewardsRequest, QueryClaimableRewardsResponse, QueryParamsRequest as QueryLiquiditypoolParamsRequest, QueryParamsResponse as QueryLiquiditypoolParamsResponse, QueryAllPoolRouteRequest, QueryAllPoolRouteResponse, QueryAllPoolRouteAddressRequest, QueryAllPoolRouteAddressResponse, QueryAllPoolRouteAddressResponse_AddressesEntry } from "./liquiditypool/query";
578
578
  export { PoolEvent, TotalCommitmentChangeEvent, RewardsWeightChangeEvent, CommitmentCurveEvent, CommitmentEvent, SwapEvent, DepositToPoolEvent, WithdrawFromPoolEvent, StakePoolTokenEvent, UnstakePoolTokenEvent } from "./liquiditypool/event";
579
579
  export { MsgTopUpInsurance, MsgTopUpInsuranceResponse } from "./insurance/tx";
580
- export { QueryCoinBalancesRequest, QueryCoinBalancesResponse, QueryFundsInByMarketRequest, QueryFundsInByMarketResponse, QueryFundsOutByMarketRequest, QueryFundsOutByMarketResponse } from "./insurance/query";
580
+ export { QueryCoinBalancesRequest, QueryCoinBalancesResponse } from "./insurance/query";
581
581
  export { EventDataInsuranceFundTransfer } from "./insurance/event";
582
582
  export { FundByMarket, Fund } from "./insurance/fund";
583
583
  export { MsgSetBackfillTimeInterval, MsgSetBackfillTimeIntervalResponse, MsgSetSmoothenBand, MsgSetSmoothenBandResponse, MsgSetImpactBand, MsgSetImpactBandResponse, MsgSetStaleIndexAllowance, MsgSetStaleIndexAllowanceResponse, MsgUpdateTokenPriceOracle, MsgUpdateTokenPriceOracleResponse } from "./pricing/tx";
@@ -37,8 +37,8 @@ exports.MsgRemoveSubAccountResponse = exports.MsgRemoveSubAccount = exports.MsgA
37
37
  exports.Market = exports.ControlledParams = exports.MarketDefaultsParams = exports.UpdatePerpetualsFundingIntervalProposal = exports.UpdateMarketProposal = exports.CreateMarketProposal = exports.StakeEquivalence = exports.TradingFees = exports.FeeTier = exports.FeeCategory = exports.FeeStructure = exports.UpdateAllPoolTradingFeesParams = exports.MsgUpdateAllPoolTradingFeesResponse = exports.MsgUpdateAllPoolTradingFees = exports.MsgSetStakeEquivalenceResponse = exports.MsgSetStakeEquivalence = exports.MsgRemoveFeeTierResponse = exports.MsgRemoveFeeTier = exports.MsgUpdateFeeTierResponse = exports.MsgUpdateFeeTier = exports.MsgAddFeeTierResponse = exports.MsgAddFeeTier = exports.MsgUpdatePerpetualsFundingIntervalResponse = exports.MsgUpdatePerpetualsFundingInterval = exports.MsgUpdateMarketResponse = exports.MsgUpdateMarket = exports.MsgCreateMarketResponse = exports.MsgCreateMarket = exports.MsgDisableSpotMarketResponse = exports.MsgDisableSpotMarket = exports.OrderBookEvent = exports.QueryAllBookResponse = exports.QueryAllBookRequest = exports.QueryGetBookResponse = exports.QueryGetBookRequest = exports.QueryImpactPriceResponse = exports.QueryImpactPriceRequest = exports.StopBook = exports.OrderBook = exports.OrderBookLevel = exports.GenesisSubAccount = exports.SubAccount = exports.QuerySubAccountPowerResponse = exports.QuerySubAccountPowerRequest = exports.QuerySubAccountStatusResponse = exports.QuerySubAccountStatusRequest = exports.QueryAllSubAccountResponse = exports.QueryAllSubAccountRequest = exports.QueryGetSubAccountResponse = exports.QueryGetSubAccountRequest = void 0;
38
38
  exports.MsgSetRewardCurve = exports.MsgClaimPoolRewardsResponse = exports.MsgClaimPoolRewards = exports.MsgUnstakePoolTokenResponse = exports.MsgUnstakePoolToken = exports.MsgStakePoolTokenResponse = exports.MsgStakePoolToken = exports.MsgSetRewardsWeightsResponse = exports.SetRewardsWeightsParams = exports.MsgSetRewardsWeights = exports.UnlinkPoolParams = exports.LinkPoolParams = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreatePoolWithLiquidityResponse = exports.MsgCreatePoolWithLiquidity = exports.MsgCreatePoolResponse = exports.MsgCreatePool = exports.QuerySequenceAllResponse = exports.QuerySequenceAllRequest = exports.QuerySequenceResponse = exports.QuerySequenceRequest = exports.MsgSetSequenceResponse = exports.MsgSetSequence = exports.QueryMintDataResponse = exports.QueryMintDataRequest = exports.MintData = exports.MarketEvent = exports.QueryControlledParamsResponse = exports.QueryControlledParamsRequest = exports.QueryMarketParamsResponse = exports.QueryMarketParamsRequest = exports.QueryUserFeeStructuresResponse = exports.QueryUserFeeStructuresRequest = exports.QueryAllFeeStructuresResponse = exports.QueryAllFeeStructuresRequest = exports.QueryAllStakeEquivalenceResponse = exports.QueryAllStakeEquivalenceRequest = exports.QueryGetFeeTiersResponse = exports.QueryGetFeeTiersRequest = exports.QueryGetTradingFeesResponse = exports.QueryGetTradingFeesRequest = exports.QueryAllMarketResponse = exports.QueryAllMarketRequest = exports.QueryGetMarketResponse = exports.QueryGetMarketRequest = exports.IncomingDisableSpotMarketNames = exports.MarketParams = void 0;
39
39
  exports.CreatePoolRouteProposal = exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetCommitmentCurveProposal = exports.SetRewardCurveProposal = exports.UnlinkPoolProposal = exports.LinkPoolProposal = exports.PoolReserve = exports.RemovePoolRoutes = exports.RemoveLiquidities = exports.RemoveLiquidity = exports.AddLiquidities = exports.AddLiquidity = exports.PoolRoute = exports.Pools = exports.Pool = exports.LiquiditypoolParams = exports.AllocatedRewards = exports.LastClaimRecord = exports.CommitmentExpiriesRecord = exports.CommitmentExpiries = exports.CommitmentExpiry = exports.RewardHistoryRecord = exports.RewardHistory = exports.CommitmentResponse = exports.TotalCommitmentRecord = exports.TotalCommitment = exports.CommitmentRecord = exports.Commitment = exports.RewardWeights = exports.RewardWeight = exports.CommitmentCurve = exports.RewardCurve = exports.UpdatePoolRouteParams = exports.MsgUpdatePoolRouteResponse = exports.MsgUpdatePoolRoute = exports.RemovePoolRouteParams = exports.MsgRemovePoolRouteResponse = exports.MsgRemovePoolRoute = exports.CreatePoolRouteParams = exports.MsgCreatePoolRouteResponse = exports.MsgCreatePoolRoute = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams = exports.MsgUpdatePool = exports.MsgSetCommitmentCurveResponse = exports.SetCommitmentCurveParams = exports.MsgSetCommitmentCurve = exports.MsgSetRewardCurveResponse = exports.SetRewardCurveParams = void 0;
40
- exports.QueryFundsInByMarketRequest = exports.QueryCoinBalancesResponse = exports.QueryCoinBalancesRequest = exports.MsgTopUpInsuranceResponse = exports.MsgTopUpInsurance = exports.UnstakePoolTokenEvent = exports.StakePoolTokenEvent = exports.WithdrawFromPoolEvent = exports.DepositToPoolEvent = exports.SwapEvent = exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = exports.QueryAllPoolRouteAddressResponse_AddressesEntry = exports.QueryAllPoolRouteAddressResponse = exports.QueryAllPoolRouteAddressRequest = exports.QueryAllPoolRouteResponse = exports.QueryAllPoolRouteRequest = exports.QueryLiquiditypoolParamsResponse = exports.QueryLiquiditypoolParamsRequest = exports.QueryClaimableRewardsResponse = exports.QueryClaimableRewardsRequest = exports.QueryAllTotalCommitmentResponse = exports.QueryAllTotalCommitmentRequest = exports.QueryTotalCommitmentResponse = exports.QueryTotalCommitmentRequest = exports.QueryRewardCurveResponse = exports.QueryRewardCurveRequest = exports.QueryCommitmentCurveResponse = exports.QueryCommitmentCurveRequest = exports.QueryLastClaimResponse = exports.QueryLastClaimRequest = exports.QueryAllCommitmentResponse = exports.QueryAllCommitmentRequest = exports.QueryCommitmentResponse = exports.QueryCommitmentRequest = exports.QueryRewardHistoryResponse = exports.ExtendedPool = exports.QueryRewardHistoryRequest = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.UpdatePoolRouteProposal = exports.RemovePoolRouteProposal = void 0;
41
- exports.EIP712Types = exports.MsgExecuteContract = exports.SetBackfillTimeIntervalEvent = exports.SetStaleIndexAllowanceEvent = exports.SetSmoothenBandEvent = exports.SetImpactBandEvent = exports.TokenPriceUpdateEvent = exports.PriceUpdateEvent = exports.ParamsV2130 = exports.QueryTokenPriceAllResponse = exports.QueryTokenPriceAllRequest = exports.QueryTokenPriceResponse = exports.QueryTokenPriceRequest = exports.QueryPricingParamsResponse = exports.QueryPricingParamsRequest = exports.QueryRateResponse = exports.QueryRateRequest = exports.QueryAllPriceSetResponse = exports.QueryAllPriceSetRequest = exports.QueryPriceSetResponse = exports.QueryPriceSetRequest = exports.QueryPriceTokenResponse = exports.QueryPriceTokenRequest = exports.SettlementPriceParams = exports.SettlementPriceProposal = exports.TokenPrice = exports.PriceSet = exports.PricingParams = exports.MsgUpdateTokenPriceOracleResponse = exports.MsgUpdateTokenPriceOracle = exports.MsgSetStaleIndexAllowanceResponse = exports.MsgSetStaleIndexAllowance = exports.MsgSetImpactBandResponse = exports.MsgSetImpactBand = exports.MsgSetSmoothenBandResponse = exports.MsgSetSmoothenBand = exports.MsgSetBackfillTimeIntervalResponse = exports.MsgSetBackfillTimeInterval = exports.Fund = exports.FundByMarket = exports.EventDataInsuranceFundTransfer = exports.QueryFundsOutByMarketResponse = exports.QueryFundsOutByMarketRequest = exports.QueryFundsInByMarketResponse = void 0;
40
+ exports.EventDataInsuranceFundTransfer = exports.QueryCoinBalancesResponse = exports.QueryCoinBalancesRequest = exports.MsgTopUpInsuranceResponse = exports.MsgTopUpInsurance = exports.UnstakePoolTokenEvent = exports.StakePoolTokenEvent = exports.WithdrawFromPoolEvent = exports.DepositToPoolEvent = exports.SwapEvent = exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = exports.QueryAllPoolRouteAddressResponse_AddressesEntry = exports.QueryAllPoolRouteAddressResponse = exports.QueryAllPoolRouteAddressRequest = exports.QueryAllPoolRouteResponse = exports.QueryAllPoolRouteRequest = exports.QueryLiquiditypoolParamsResponse = exports.QueryLiquiditypoolParamsRequest = exports.QueryClaimableRewardsResponse = exports.QueryClaimableRewardsRequest = exports.QueryAllTotalCommitmentResponse = exports.QueryAllTotalCommitmentRequest = exports.QueryTotalCommitmentResponse = exports.QueryTotalCommitmentRequest = exports.QueryRewardCurveResponse = exports.QueryRewardCurveRequest = exports.QueryCommitmentCurveResponse = exports.QueryCommitmentCurveRequest = exports.QueryLastClaimResponse = exports.QueryLastClaimRequest = exports.QueryAllCommitmentResponse = exports.QueryAllCommitmentRequest = exports.QueryCommitmentResponse = exports.QueryCommitmentRequest = exports.QueryRewardHistoryResponse = exports.ExtendedPool = exports.QueryRewardHistoryRequest = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.UpdatePoolRouteProposal = exports.RemovePoolRouteProposal = void 0;
41
+ exports.EIP712Types = exports.MsgExecuteContract = exports.SetBackfillTimeIntervalEvent = exports.SetStaleIndexAllowanceEvent = exports.SetSmoothenBandEvent = exports.SetImpactBandEvent = exports.TokenPriceUpdateEvent = exports.PriceUpdateEvent = exports.ParamsV2130 = exports.QueryTokenPriceAllResponse = exports.QueryTokenPriceAllRequest = exports.QueryTokenPriceResponse = exports.QueryTokenPriceRequest = exports.QueryPricingParamsResponse = exports.QueryPricingParamsRequest = exports.QueryRateResponse = exports.QueryRateRequest = exports.QueryAllPriceSetResponse = exports.QueryAllPriceSetRequest = exports.QueryPriceSetResponse = exports.QueryPriceSetRequest = exports.QueryPriceTokenResponse = exports.QueryPriceTokenRequest = exports.SettlementPriceParams = exports.SettlementPriceProposal = exports.TokenPrice = exports.PriceSet = exports.PricingParams = exports.MsgUpdateTokenPriceOracleResponse = exports.MsgUpdateTokenPriceOracle = exports.MsgSetStaleIndexAllowanceResponse = exports.MsgSetStaleIndexAllowance = exports.MsgSetImpactBandResponse = exports.MsgSetImpactBand = exports.MsgSetSmoothenBandResponse = exports.MsgSetSmoothenBand = exports.MsgSetBackfillTimeIntervalResponse = exports.MsgSetBackfillTimeInterval = exports.Fund = exports.FundByMarket = void 0;
42
42
  // GENERATED by scripts/generate-registry.sh
43
43
  const proto_signing_1 = require("@cosmjs/proto-signing");
44
44
  const tx_1 = require("cosmjs-types/cosmwasm/wasm/v1/tx");
@@ -1937,10 +1937,6 @@ Object.defineProperty(exports, "MsgTopUpInsuranceResponse", { enumerable: true,
1937
1937
  var query_25 = require("./insurance/query");
1938
1938
  Object.defineProperty(exports, "QueryCoinBalancesRequest", { enumerable: true, get: function () { return query_25.QueryCoinBalancesRequest; } });
1939
1939
  Object.defineProperty(exports, "QueryCoinBalancesResponse", { enumerable: true, get: function () { return query_25.QueryCoinBalancesResponse; } });
1940
- Object.defineProperty(exports, "QueryFundsInByMarketRequest", { enumerable: true, get: function () { return query_25.QueryFundsInByMarketRequest; } });
1941
- Object.defineProperty(exports, "QueryFundsInByMarketResponse", { enumerable: true, get: function () { return query_25.QueryFundsInByMarketResponse; } });
1942
- Object.defineProperty(exports, "QueryFundsOutByMarketRequest", { enumerable: true, get: function () { return query_25.QueryFundsOutByMarketRequest; } });
1943
- Object.defineProperty(exports, "QueryFundsOutByMarketResponse", { enumerable: true, get: function () { return query_25.QueryFundsOutByMarketResponse; } });
1944
1940
  var event_15 = require("./insurance/event");
1945
1941
  Object.defineProperty(exports, "EventDataInsuranceFundTransfer", { enumerable: true, get: function () { return event_15.EventDataInsuranceFundTransfer; } });
1946
1942
  var fund_1 = require("./insurance/fund");
@@ -3730,6 +3726,10 @@ exports.EIP712Types = {
3730
3726
  {
3731
3727
  "name": "bids",
3732
3728
  "type": "string[]"
3729
+ },
3730
+ {
3731
+ "name": "trigger",
3732
+ "type": "string"
3733
3733
  }
3734
3734
  ],
3735
3735
  "OrderBookEvent": [
@@ -20657,18 +20657,7 @@ exports.EIP712Types = {
20657
20657
  "type": "string"
20658
20658
  }
20659
20659
  ],
20660
- "GenesisState": [
20661
- {
20662
- "name": "fund_in_by_markets",
20663
- "type": "FundByMarket[]",
20664
- "packageName": "/Switcheo.carbon.insurance"
20665
- },
20666
- {
20667
- "name": "fund_out_by_markets",
20668
- "type": "FundByMarket[]",
20669
- "packageName": "/Switcheo.carbon.insurance"
20670
- }
20671
- ],
20660
+ "GenesisState": [],
20672
20661
  "QueryCoinBalancesRequest": [],
20673
20662
  "QueryCoinBalancesResponse": [
20674
20663
  {
@@ -20677,38 +20666,6 @@ exports.EIP712Types = {
20677
20666
  "packageName": "/cosmos.base.v1beta1"
20678
20667
  }
20679
20668
  ],
20680
- "QueryFundsInByMarketRequest": [
20681
- {
20682
- "name": "denom",
20683
- "type": "string"
20684
- },
20685
- {
20686
- "name": "market",
20687
- "type": "string"
20688
- }
20689
- ],
20690
- "QueryFundsInByMarketResponse": [
20691
- {
20692
- "name": "funds",
20693
- "type": "string"
20694
- }
20695
- ],
20696
- "QueryFundsOutByMarketRequest": [
20697
- {
20698
- "name": "denom",
20699
- "type": "string"
20700
- },
20701
- {
20702
- "name": "market",
20703
- "type": "string"
20704
- }
20705
- ],
20706
- "QueryFundsOutByMarketResponse": [
20707
- {
20708
- "name": "funds",
20709
- "type": "string"
20710
- }
20711
- ],
20712
20669
  "MsgTopUpInsurance": [
20713
20670
  {
20714
20671
  "name": "creator",
@@ -1,22 +1,15 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { FundByMarket } from "./fund";
4
3
  export declare const protobufPackage = "Switcheo.carbon.insurance";
5
4
  /** GenesisState defines the insurance module's genesis state. */
6
5
  export interface GenesisState {
7
- /**
8
- * this line is used by starport scaffolding # genesis/proto/state
9
- * this line is used by starport scaffolding # ibc/genesis/proto
10
- */
11
- fundInByMarkets: FundByMarket[];
12
- fundOutByMarkets: FundByMarket[];
13
6
  }
14
7
  export declare const GenesisState: {
15
- encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
8
+ encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
16
9
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
17
- fromJSON(object: any): GenesisState;
18
- toJSON(message: GenesisState): unknown;
19
- fromPartial(object: DeepPartial<GenesisState>): GenesisState;
10
+ fromJSON(_: any): GenesisState;
11
+ toJSON(_: GenesisState): unknown;
12
+ fromPartial(_: DeepPartial<GenesisState>): GenesisState;
20
13
  };
21
14
  declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
22
15
  export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -7,34 +7,19 @@ 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 fund_1 = require("./fund");
11
10
  exports.protobufPackage = "Switcheo.carbon.insurance";
12
11
  const baseGenesisState = {};
13
12
  exports.GenesisState = {
14
- encode(message, writer = minimal_1.default.Writer.create()) {
15
- for (const v of message.fundInByMarkets) {
16
- fund_1.FundByMarket.encode(v, writer.uint32(10).fork()).ldelim();
17
- }
18
- for (const v of message.fundOutByMarkets) {
19
- fund_1.FundByMarket.encode(v, writer.uint32(18).fork()).ldelim();
20
- }
13
+ encode(_, writer = minimal_1.default.Writer.create()) {
21
14
  return writer;
22
15
  },
23
16
  decode(input, length) {
24
17
  const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
25
18
  let end = length === undefined ? reader.len : reader.pos + length;
26
19
  const message = Object.assign({}, baseGenesisState);
27
- message.fundInByMarkets = [];
28
- message.fundOutByMarkets = [];
29
20
  while (reader.pos < end) {
30
21
  const tag = reader.uint32();
31
22
  switch (tag >>> 3) {
32
- case 1:
33
- message.fundInByMarkets.push(fund_1.FundByMarket.decode(reader, reader.uint32()));
34
- break;
35
- case 2:
36
- message.fundOutByMarkets.push(fund_1.FundByMarket.decode(reader, reader.uint32()));
37
- break;
38
23
  default:
39
24
  reader.skipType(tag & 7);
40
25
  break;
@@ -42,34 +27,16 @@ exports.GenesisState = {
42
27
  }
43
28
  return message;
44
29
  },
45
- fromJSON(object) {
46
- var _a, _b;
30
+ fromJSON(_) {
47
31
  const message = Object.assign({}, baseGenesisState);
48
- message.fundInByMarkets = ((_a = object.fundInByMarkets) !== null && _a !== void 0 ? _a : []).map((e) => fund_1.FundByMarket.fromJSON(e));
49
- message.fundOutByMarkets = ((_b = object.fundOutByMarkets) !== null && _b !== void 0 ? _b : []).map((e) => fund_1.FundByMarket.fromJSON(e));
50
32
  return message;
51
33
  },
52
- toJSON(message) {
34
+ toJSON(_) {
53
35
  const obj = {};
54
- if (message.fundInByMarkets) {
55
- obj.fundInByMarkets = message.fundInByMarkets.map((e) => e ? fund_1.FundByMarket.toJSON(e) : undefined);
56
- }
57
- else {
58
- obj.fundInByMarkets = [];
59
- }
60
- if (message.fundOutByMarkets) {
61
- obj.fundOutByMarkets = message.fundOutByMarkets.map((e) => e ? fund_1.FundByMarket.toJSON(e) : undefined);
62
- }
63
- else {
64
- obj.fundOutByMarkets = [];
65
- }
66
36
  return obj;
67
37
  },
68
- fromPartial(object) {
69
- var _a, _b;
38
+ fromPartial(_) {
70
39
  const message = Object.assign({}, baseGenesisState);
71
- message.fundInByMarkets = ((_a = object.fundInByMarkets) !== null && _a !== void 0 ? _a : []).map((e) => fund_1.FundByMarket.fromPartial(e));
72
- message.fundOutByMarkets = ((_b = object.fundOutByMarkets) !== null && _b !== void 0 ? _b : []).map((e) => fund_1.FundByMarket.fromPartial(e));
73
40
  return message;
74
41
  },
75
42
  };
@@ -7,20 +7,6 @@ export interface QueryCoinBalancesRequest {
7
7
  export interface QueryCoinBalancesResponse {
8
8
  coins: Coin[];
9
9
  }
10
- export interface QueryFundsInByMarketRequest {
11
- denom: string;
12
- market: string;
13
- }
14
- export interface QueryFundsInByMarketResponse {
15
- funds: string;
16
- }
17
- export interface QueryFundsOutByMarketRequest {
18
- denom: string;
19
- market: string;
20
- }
21
- export interface QueryFundsOutByMarketResponse {
22
- funds: string;
23
- }
24
10
  export declare const QueryCoinBalancesRequest: {
25
11
  encode(_: QueryCoinBalancesRequest, writer?: _m0.Writer): _m0.Writer;
26
12
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryCoinBalancesRequest;
@@ -35,49 +21,15 @@ export declare const QueryCoinBalancesResponse: {
35
21
  toJSON(message: QueryCoinBalancesResponse): unknown;
36
22
  fromPartial(object: DeepPartial<QueryCoinBalancesResponse>): QueryCoinBalancesResponse;
37
23
  };
38
- export declare const QueryFundsInByMarketRequest: {
39
- encode(message: QueryFundsInByMarketRequest, writer?: _m0.Writer): _m0.Writer;
40
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryFundsInByMarketRequest;
41
- fromJSON(object: any): QueryFundsInByMarketRequest;
42
- toJSON(message: QueryFundsInByMarketRequest): unknown;
43
- fromPartial(object: DeepPartial<QueryFundsInByMarketRequest>): QueryFundsInByMarketRequest;
44
- };
45
- export declare const QueryFundsInByMarketResponse: {
46
- encode(message: QueryFundsInByMarketResponse, writer?: _m0.Writer): _m0.Writer;
47
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryFundsInByMarketResponse;
48
- fromJSON(object: any): QueryFundsInByMarketResponse;
49
- toJSON(message: QueryFundsInByMarketResponse): unknown;
50
- fromPartial(object: DeepPartial<QueryFundsInByMarketResponse>): QueryFundsInByMarketResponse;
51
- };
52
- export declare const QueryFundsOutByMarketRequest: {
53
- encode(message: QueryFundsOutByMarketRequest, writer?: _m0.Writer): _m0.Writer;
54
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryFundsOutByMarketRequest;
55
- fromJSON(object: any): QueryFundsOutByMarketRequest;
56
- toJSON(message: QueryFundsOutByMarketRequest): unknown;
57
- fromPartial(object: DeepPartial<QueryFundsOutByMarketRequest>): QueryFundsOutByMarketRequest;
58
- };
59
- export declare const QueryFundsOutByMarketResponse: {
60
- encode(message: QueryFundsOutByMarketResponse, writer?: _m0.Writer): _m0.Writer;
61
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryFundsOutByMarketResponse;
62
- fromJSON(object: any): QueryFundsOutByMarketResponse;
63
- toJSON(message: QueryFundsOutByMarketResponse): unknown;
64
- fromPartial(object: DeepPartial<QueryFundsOutByMarketResponse>): QueryFundsOutByMarketResponse;
65
- };
66
24
  /** Query defines the gRPC querier service. */
67
25
  export interface Query {
68
26
  /** Get the insurance fund balance */
69
27
  CoinBalances(request: QueryCoinBalancesRequest): Promise<QueryCoinBalancesResponse>;
70
- /** Get the funds transferred into the insurance fund for a given denom and market */
71
- FundsInByMarket(request: QueryFundsInByMarketRequest): Promise<QueryFundsInByMarketResponse>;
72
- /** Get the funds withdrawn from the insurance fund for a given denom and market */
73
- FundsOutByMarket(request: QueryFundsOutByMarketRequest): Promise<QueryFundsOutByMarketResponse>;
74
28
  }
75
29
  export declare class QueryClientImpl implements Query {
76
30
  private readonly rpc;
77
31
  constructor(rpc: Rpc);
78
32
  CoinBalances(request: QueryCoinBalancesRequest): Promise<QueryCoinBalancesResponse>;
79
- FundsInByMarket(request: QueryFundsInByMarketRequest): Promise<QueryFundsInByMarketResponse>;
80
- FundsOutByMarket(request: QueryFundsOutByMarketRequest): Promise<QueryFundsOutByMarketResponse>;
81
33
  }
82
34
  interface Rpc {
83
35
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;