carbon-js-sdk 0.3.43-dev.1 → 0.3.43-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.
- package/lib/codec/index.d.ts +2 -2
- package/lib/codec/index.js +10 -6
- package/lib/codec/liquiditypool/event.d.ts +14 -0
- package/lib/codec/liquiditypool/event.js +107 -1
- package/lib/codec/liquiditypool/query.d.ts +71 -34
- package/lib/codec/liquiditypool/query.js +304 -112
- package/lib/codec/liquiditypool/tx.d.ts +0 -1
- package/lib/codec/liquiditypool/tx.js +1 -18
- package/lib/modules/liquiditypool.d.ts +0 -1
- package/lib/modules/liquiditypool.js +0 -1
- package/lib/provider/amino/types/gov.js +0 -8
- package/lib/provider/amino/types/liquidityPool.js +0 -2
- package/lib/websocket/models.d.ts +7 -2
- package/package.json +1 -1
package/lib/codec/index.d.ts
CHANGED
|
@@ -435,9 +435,9 @@ export { MsgCreatePool, MsgCreatePoolResponse, MsgCreatePoolWithLiquidity, MsgCr
|
|
|
435
435
|
export { RewardCurve, CommitmentCurve, RewardWeight, RewardWeights, Commitment, CommitmentRecord, TotalCommitment, TotalCommitmentRecord, CommitmentResponse, RewardHistory, RewardHistoryRecord, CommitmentExpiry, CommitmentExpiries, CommitmentExpiriesRecord, LastClaimRecord, AllocatedRewards } from "./liquiditypool/reward";
|
|
436
436
|
export { Params as LiquiditypoolParams, Pool, Pools, PoolRoute, AddLiquidity, AddLiquidities, RemoveLiquidity, RemoveLiquidities, RemovePoolRoutes, PoolReserve } from "./liquiditypool/liquiditypool";
|
|
437
437
|
export { SetRewardCurveProposal, SetCommitmentCurveProposal, SetRewardsWeightsProposal, UpdatePoolProposal, CreatePoolRouteProposal, RemovePoolRouteProposal, UpdatePoolRouteProposal } from "./liquiditypool/proposal";
|
|
438
|
-
export { QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolRequest, QueryAllPoolResponse, 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,
|
|
438
|
+
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";
|
|
439
439
|
export { ParamsV2170 } from "./liquiditypool/legacy";
|
|
440
|
-
export { PoolEvent, TotalCommitmentChangeEvent, RewardsWeightChangeEvent, CommitmentCurveEvent, CommitmentEvent } from "./liquiditypool/event";
|
|
440
|
+
export { PoolEvent, TotalCommitmentChangeEvent, RewardsWeightChangeEvent, CommitmentCurveEvent, CommitmentEvent, SwapEvent } from "./liquiditypool/event";
|
|
441
441
|
export { QueryCoinBalancesRequest, QueryCoinBalancesResponse } from "./insurance/query";
|
|
442
442
|
export { EventDataInsuranceFundTransfer } from "./insurance/event";
|
|
443
443
|
export { FundByMarket, Fund } from "./insurance/fund";
|
package/lib/codec/index.js
CHANGED
|
@@ -33,9 +33,9 @@ exports.MsgUpdateGroupedTokenConfigResponse = exports.UpdateGroupedTokenConfigPa
|
|
|
33
33
|
exports.MarketLeverageRecord = exports.MarketLeverage = exports.WithdrawFromGroupEvent = exports.DepositToGroupEvent = exports.SetGroupedTokenConfigEvent = exports.DeregisterFromGroupEvent = exports.RegisterToGroupEvent = exports.UpdateGroupEvent = exports.NewGroupEvent = exports.LinkTokenEvent = exports.UnbindTokenEvent = exports.BindTokenEvent = exports.SyncTokenEvent = exports.NewTokenEvent = exports.TokenBalance = exports.PositionPool = exports.LockedCoinsRecord = exports.LockedCoins = exports.Metadata = exports.BalanceChange = exports.Token = exports.QueryTokenGroupMappingsResponse_TokenGroupMappingsEntry = exports.QueryTokenGroupMappingsResponse = exports.QueryTokenGroupMappingsRequest = exports.QueryAllTokenGroupsResponse = exports.QueryAllTokenGroupsRequest = exports.QueryGetTokenGroupResponse = exports.QueryGetTokenGroupRequest = exports.QueryAllBridgeResponse = exports.QueryAllBridgeRequest = exports.QueryGetBridgeResponse = exports.QueryGetBridgeRequest = exports.QueryTotalBalancesResponse = exports.QueryTotalBalancesRequest = exports.QueryGetBalancesResponse = exports.QueryGetBalancesRequest = exports.QueryAllWrapperMappingsResponse_WrapperMappingsEntry = exports.QueryAllWrapperMappingsResponse = exports.QueryAllWrapperMappingsRequest = exports.QueryGetLockedCoinsResponse = exports.QueryGetLockedCoinsRequest = exports.QueryAllTokenResponse = exports.QueryAllTokenRequest = exports.QueryGetTokenResponse = exports.QueryGetTokenRequest = exports.Bridge = exports.CreateTokenProposal = exports.GroupedTokenConfig = exports.TokenGroupDetails = exports.TokenGroup = void 0;
|
|
34
34
|
exports.UpdatePerpetualsFundingIntervalProposal = exports.UpdateMarketProposal = exports.CreateMarketProposal = exports.MsgUpdatePerpetualsFundingIntervalResponse = exports.MsgUpdatePerpetualsFundingInterval = exports.MsgUpdateMarketResponse = exports.MsgUpdateMarket = exports.MsgCreateMarketResponse = exports.MsgCreateMarket = 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 = exports.MsgRemoveSubAccountResponse = exports.MsgRemoveSubAccount = exports.MsgActivateSubAccountResponse = exports.MsgActivateSubAccount = exports.MsgCreateSubAccountResponse = exports.MsgCreateSubAccount = exports.UpdateProfileEvent = exports.QueryAllProfileResponse = exports.QueryAllProfileRequest = exports.QueryGetProfileResponse = exports.QueryGetProfileRequest = exports.Profile = exports.MsgUpdateProfileResponse = exports.MsgUpdateProfile = exports.LeverageEvent = exports.QueryAllLeverageResponse = exports.QueryAllLeverageRequest = exports.QueryGetLeverageResponse = exports.QueryGetLeverageRequest = exports.MsgSetLeverageResponse = exports.MsgSetLeverage = void 0;
|
|
35
35
|
exports.MsgUpdatePoolResponse = exports.UpdatePoolParams = exports.MsgUpdatePool = exports.MsgSetCommitmentCurveResponse = exports.SetCommitmentCurveParams = exports.MsgSetCommitmentCurve = exports.MsgSetRewardCurveResponse = exports.SetRewardCurveParams = exports.MsgSetRewardCurve = exports.MsgClaimPoolRewardsResponse = exports.MsgClaimPoolRewards = exports.MsgUnstakePoolTokenResponse = exports.MsgUnstakePoolToken = exports.MsgStakePoolTokenResponse = exports.MsgStakePoolToken = exports.MsgSetRewardsWeightsResponse = exports.SetRewardsWeightsParams = exports.MsgSetRewardsWeights = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreatePoolWithLiquidityResponse = exports.MsgCreatePoolWithLiquidity = exports.MsgCreatePoolResponse = exports.MsgCreatePool = exports.PageResponse = exports.PageRequest = exports.QuerySequenceAllResponse = exports.QuerySequenceAllRequest = exports.QuerySequenceResponse = exports.QuerySequenceRequest = exports.MsgSetSequenceResponse = exports.MsgSetSequence = exports.QueryMintDataResponse = exports.QueryMintDataRequest = exports.MintData = exports.MarketEvent = exports.ParamsV280 = exports.ParamsV270 = exports.QueryMarketParamsResponse = exports.QueryMarketParamsRequest = exports.QueryAllMarketResponse = exports.QueryAllMarketRequest = exports.QueryGetMarketResponse = exports.QueryGetMarketRequest = exports.MarketParams = exports.Market = exports.ControlledParams = exports.MarketDefaultsParams = void 0;
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
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 = void 0;
|
|
36
|
+
exports.QueryRewardHistoryRequest = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.UpdatePoolRouteProposal = exports.RemovePoolRouteProposal = exports.CreatePoolRouteProposal = exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetCommitmentCurveProposal = exports.SetRewardCurveProposal = 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 = void 0;
|
|
37
|
+
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.QueryCoinBalancesResponse = exports.QueryCoinBalancesRequest = exports.SwapEvent = exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = exports.ParamsV2170 = 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 = void 0;
|
|
38
|
+
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 = void 0;
|
|
39
39
|
// GENERATED by scripts/generate-registry.sh
|
|
40
40
|
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
41
41
|
const tx_1 = require("./order/tx");
|
|
@@ -1453,6 +1453,9 @@ Object.defineProperty(exports, "QueryGetPoolRequest", { enumerable: true, get: f
|
|
|
1453
1453
|
Object.defineProperty(exports, "QueryGetPoolResponse", { enumerable: true, get: function () { return query_20.QueryGetPoolResponse; } });
|
|
1454
1454
|
Object.defineProperty(exports, "QueryAllPoolRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolRequest; } });
|
|
1455
1455
|
Object.defineProperty(exports, "QueryAllPoolResponse", { enumerable: true, get: function () { return query_20.QueryAllPoolResponse; } });
|
|
1456
|
+
Object.defineProperty(exports, "QueryAllPoolAddressRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressRequest; } });
|
|
1457
|
+
Object.defineProperty(exports, "QueryAllPoolAddressResponse", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressResponse; } });
|
|
1458
|
+
Object.defineProperty(exports, "QueryAllPoolAddressResponse_AddressesEntry", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressResponse_AddressesEntry; } });
|
|
1456
1459
|
Object.defineProperty(exports, "QueryRewardHistoryRequest", { enumerable: true, get: function () { return query_20.QueryRewardHistoryRequest; } });
|
|
1457
1460
|
Object.defineProperty(exports, "ExtendedPool", { enumerable: true, get: function () { return query_20.ExtendedPool; } });
|
|
1458
1461
|
Object.defineProperty(exports, "QueryRewardHistoryResponse", { enumerable: true, get: function () { return query_20.QueryRewardHistoryResponse; } });
|
|
@@ -1474,11 +1477,11 @@ Object.defineProperty(exports, "QueryClaimableRewardsRequest", { enumerable: tru
|
|
|
1474
1477
|
Object.defineProperty(exports, "QueryClaimableRewardsResponse", { enumerable: true, get: function () { return query_20.QueryClaimableRewardsResponse; } });
|
|
1475
1478
|
Object.defineProperty(exports, "QueryLiquiditypoolParamsRequest", { enumerable: true, get: function () { return query_20.QueryParamsRequest; } });
|
|
1476
1479
|
Object.defineProperty(exports, "QueryLiquiditypoolParamsResponse", { enumerable: true, get: function () { return query_20.QueryParamsResponse; } });
|
|
1477
|
-
Object.defineProperty(exports, "QueryAllPoolAddressRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressRequest; } });
|
|
1478
|
-
Object.defineProperty(exports, "QueryAllPoolAddressResponse", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressResponse; } });
|
|
1479
|
-
Object.defineProperty(exports, "QueryAllPoolAddressResponse_AddressesEntry", { enumerable: true, get: function () { return query_20.QueryAllPoolAddressResponse_AddressesEntry; } });
|
|
1480
1480
|
Object.defineProperty(exports, "QueryAllPoolRouteRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteRequest; } });
|
|
1481
1481
|
Object.defineProperty(exports, "QueryAllPoolRouteResponse", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteResponse; } });
|
|
1482
|
+
Object.defineProperty(exports, "QueryAllPoolRouteAddressRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteAddressRequest; } });
|
|
1483
|
+
Object.defineProperty(exports, "QueryAllPoolRouteAddressResponse", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteAddressResponse; } });
|
|
1484
|
+
Object.defineProperty(exports, "QueryAllPoolRouteAddressResponse_AddressesEntry", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteAddressResponse_AddressesEntry; } });
|
|
1482
1485
|
var legacy_2 = require("./liquiditypool/legacy");
|
|
1483
1486
|
Object.defineProperty(exports, "ParamsV2170", { enumerable: true, get: function () { return legacy_2.ParamsV2170; } });
|
|
1484
1487
|
var event_13 = require("./liquiditypool/event");
|
|
@@ -1487,6 +1490,7 @@ Object.defineProperty(exports, "TotalCommitmentChangeEvent", { enumerable: true,
|
|
|
1487
1490
|
Object.defineProperty(exports, "RewardsWeightChangeEvent", { enumerable: true, get: function () { return event_13.RewardsWeightChangeEvent; } });
|
|
1488
1491
|
Object.defineProperty(exports, "CommitmentCurveEvent", { enumerable: true, get: function () { return event_13.CommitmentCurveEvent; } });
|
|
1489
1492
|
Object.defineProperty(exports, "CommitmentEvent", { enumerable: true, get: function () { return event_13.CommitmentEvent; } });
|
|
1493
|
+
Object.defineProperty(exports, "SwapEvent", { enumerable: true, get: function () { return event_13.SwapEvent; } });
|
|
1490
1494
|
var query_21 = require("./insurance/query");
|
|
1491
1495
|
Object.defineProperty(exports, "QueryCoinBalancesRequest", { enumerable: true, get: function () { return query_21.QueryCoinBalancesRequest; } });
|
|
1492
1496
|
Object.defineProperty(exports, "QueryCoinBalancesResponse", { enumerable: true, get: function () { return query_21.QueryCoinBalancesResponse; } });
|
|
@@ -27,6 +27,13 @@ export interface CommitmentEvent {
|
|
|
27
27
|
commitment?: Commitment;
|
|
28
28
|
type: string;
|
|
29
29
|
}
|
|
30
|
+
export interface SwapEvent {
|
|
31
|
+
poolId: Long;
|
|
32
|
+
inputDenom: string;
|
|
33
|
+
inputAmount: string;
|
|
34
|
+
outputDenom: string;
|
|
35
|
+
outputAmount: string;
|
|
36
|
+
}
|
|
30
37
|
export declare const PoolEvent: {
|
|
31
38
|
encode(message: PoolEvent, writer?: _m0.Writer): _m0.Writer;
|
|
32
39
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PoolEvent;
|
|
@@ -62,6 +69,13 @@ export declare const CommitmentEvent: {
|
|
|
62
69
|
toJSON(message: CommitmentEvent): unknown;
|
|
63
70
|
fromPartial(object: DeepPartial<CommitmentEvent>): CommitmentEvent;
|
|
64
71
|
};
|
|
72
|
+
export declare const SwapEvent: {
|
|
73
|
+
encode(message: SwapEvent, writer?: _m0.Writer): _m0.Writer;
|
|
74
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SwapEvent;
|
|
75
|
+
fromJSON(object: any): SwapEvent;
|
|
76
|
+
toJSON(message: SwapEvent): unknown;
|
|
77
|
+
fromPartial(object: DeepPartial<SwapEvent>): SwapEvent;
|
|
78
|
+
};
|
|
65
79
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
66
80
|
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 {} ? {
|
|
67
81
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,7 +3,7 @@ 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.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = exports.protobufPackage = void 0;
|
|
6
|
+
exports.SwapEvent = exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = 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"));
|
|
@@ -392,6 +392,112 @@ exports.CommitmentEvent = {
|
|
|
392
392
|
return message;
|
|
393
393
|
},
|
|
394
394
|
};
|
|
395
|
+
const baseSwapEvent = {
|
|
396
|
+
poolId: long_1.default.UZERO,
|
|
397
|
+
inputDenom: "",
|
|
398
|
+
inputAmount: "",
|
|
399
|
+
outputDenom: "",
|
|
400
|
+
outputAmount: "",
|
|
401
|
+
};
|
|
402
|
+
exports.SwapEvent = {
|
|
403
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
404
|
+
if (!message.poolId.isZero()) {
|
|
405
|
+
writer.uint32(8).uint64(message.poolId);
|
|
406
|
+
}
|
|
407
|
+
if (message.inputDenom !== "") {
|
|
408
|
+
writer.uint32(18).string(message.inputDenom);
|
|
409
|
+
}
|
|
410
|
+
if (message.inputAmount !== "") {
|
|
411
|
+
writer.uint32(26).string(message.inputAmount);
|
|
412
|
+
}
|
|
413
|
+
if (message.outputDenom !== "") {
|
|
414
|
+
writer.uint32(34).string(message.outputDenom);
|
|
415
|
+
}
|
|
416
|
+
if (message.outputAmount !== "") {
|
|
417
|
+
writer.uint32(42).string(message.outputAmount);
|
|
418
|
+
}
|
|
419
|
+
return writer;
|
|
420
|
+
},
|
|
421
|
+
decode(input, length) {
|
|
422
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
423
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
424
|
+
const message = Object.assign({}, baseSwapEvent);
|
|
425
|
+
while (reader.pos < end) {
|
|
426
|
+
const tag = reader.uint32();
|
|
427
|
+
switch (tag >>> 3) {
|
|
428
|
+
case 1:
|
|
429
|
+
message.poolId = reader.uint64();
|
|
430
|
+
break;
|
|
431
|
+
case 2:
|
|
432
|
+
message.inputDenom = reader.string();
|
|
433
|
+
break;
|
|
434
|
+
case 3:
|
|
435
|
+
message.inputAmount = reader.string();
|
|
436
|
+
break;
|
|
437
|
+
case 4:
|
|
438
|
+
message.outputDenom = reader.string();
|
|
439
|
+
break;
|
|
440
|
+
case 5:
|
|
441
|
+
message.outputAmount = reader.string();
|
|
442
|
+
break;
|
|
443
|
+
default:
|
|
444
|
+
reader.skipType(tag & 7);
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
fromJSON(object) {
|
|
451
|
+
const message = Object.assign({}, baseSwapEvent);
|
|
452
|
+
message.poolId =
|
|
453
|
+
object.poolId !== undefined && object.poolId !== null
|
|
454
|
+
? long_1.default.fromString(object.poolId)
|
|
455
|
+
: long_1.default.UZERO;
|
|
456
|
+
message.inputDenom =
|
|
457
|
+
object.inputDenom !== undefined && object.inputDenom !== null
|
|
458
|
+
? String(object.inputDenom)
|
|
459
|
+
: "";
|
|
460
|
+
message.inputAmount =
|
|
461
|
+
object.inputAmount !== undefined && object.inputAmount !== null
|
|
462
|
+
? String(object.inputAmount)
|
|
463
|
+
: "";
|
|
464
|
+
message.outputDenom =
|
|
465
|
+
object.outputDenom !== undefined && object.outputDenom !== null
|
|
466
|
+
? String(object.outputDenom)
|
|
467
|
+
: "";
|
|
468
|
+
message.outputAmount =
|
|
469
|
+
object.outputAmount !== undefined && object.outputAmount !== null
|
|
470
|
+
? String(object.outputAmount)
|
|
471
|
+
: "";
|
|
472
|
+
return message;
|
|
473
|
+
},
|
|
474
|
+
toJSON(message) {
|
|
475
|
+
const obj = {};
|
|
476
|
+
message.poolId !== undefined &&
|
|
477
|
+
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
478
|
+
message.inputDenom !== undefined && (obj.inputDenom = message.inputDenom);
|
|
479
|
+
message.inputAmount !== undefined &&
|
|
480
|
+
(obj.inputAmount = message.inputAmount);
|
|
481
|
+
message.outputDenom !== undefined &&
|
|
482
|
+
(obj.outputDenom = message.outputDenom);
|
|
483
|
+
message.outputAmount !== undefined &&
|
|
484
|
+
(obj.outputAmount = message.outputAmount);
|
|
485
|
+
return obj;
|
|
486
|
+
},
|
|
487
|
+
fromPartial(object) {
|
|
488
|
+
var _a, _b, _c, _d;
|
|
489
|
+
const message = Object.assign({}, baseSwapEvent);
|
|
490
|
+
message.poolId =
|
|
491
|
+
object.poolId !== undefined && object.poolId !== null
|
|
492
|
+
? long_1.default.fromValue(object.poolId)
|
|
493
|
+
: long_1.default.UZERO;
|
|
494
|
+
message.inputDenom = (_a = object.inputDenom) !== null && _a !== void 0 ? _a : "";
|
|
495
|
+
message.inputAmount = (_b = object.inputAmount) !== null && _b !== void 0 ? _b : "";
|
|
496
|
+
message.outputDenom = (_c = object.outputDenom) !== null && _c !== void 0 ? _c : "";
|
|
497
|
+
message.outputAmount = (_d = object.outputAmount) !== null && _d !== void 0 ? _d : "";
|
|
498
|
+
return message;
|
|
499
|
+
},
|
|
500
|
+
};
|
|
395
501
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
396
502
|
minimal_1.default.util.Long = long_1.default;
|
|
397
503
|
minimal_1.default.configure();
|
|
@@ -19,6 +19,19 @@ export interface QueryAllPoolResponse {
|
|
|
19
19
|
pools: ExtendedPool[];
|
|
20
20
|
pagination?: PageResponse;
|
|
21
21
|
}
|
|
22
|
+
export interface QueryAllPoolAddressRequest {
|
|
23
|
+
pagination?: PageRequest;
|
|
24
|
+
}
|
|
25
|
+
export interface QueryAllPoolAddressResponse {
|
|
26
|
+
addresses: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
pagination?: PageResponse;
|
|
30
|
+
}
|
|
31
|
+
export interface QueryAllPoolAddressResponse_AddressesEntry {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
22
35
|
export interface QueryRewardHistoryRequest {
|
|
23
36
|
poolId: string;
|
|
24
37
|
startBlockHeight: string;
|
|
@@ -94,26 +107,26 @@ export interface QueryParamsResponse {
|
|
|
94
107
|
/** params holds all the parameters of this module. */
|
|
95
108
|
params?: Params;
|
|
96
109
|
}
|
|
97
|
-
export interface
|
|
110
|
+
export interface QueryAllPoolRouteRequest {
|
|
98
111
|
pagination?: PageRequest;
|
|
99
112
|
}
|
|
100
|
-
export interface
|
|
113
|
+
export interface QueryAllPoolRouteResponse {
|
|
114
|
+
poolRoutes: PoolRoute[];
|
|
115
|
+
pagination?: PageResponse;
|
|
116
|
+
}
|
|
117
|
+
export interface QueryAllPoolRouteAddressRequest {
|
|
118
|
+
pagination?: PageRequest;
|
|
119
|
+
}
|
|
120
|
+
export interface QueryAllPoolRouteAddressResponse {
|
|
101
121
|
addresses: {
|
|
102
122
|
[key: string]: string;
|
|
103
123
|
};
|
|
104
124
|
pagination?: PageResponse;
|
|
105
125
|
}
|
|
106
|
-
export interface
|
|
126
|
+
export interface QueryAllPoolRouteAddressResponse_AddressesEntry {
|
|
107
127
|
key: string;
|
|
108
128
|
value: string;
|
|
109
129
|
}
|
|
110
|
-
export interface QueryAllPoolRouteRequest {
|
|
111
|
-
pagination?: PageRequest;
|
|
112
|
-
}
|
|
113
|
-
export interface QueryAllPoolRouteResponse {
|
|
114
|
-
poolRoutes: PoolRoute[];
|
|
115
|
-
pagination?: PageResponse;
|
|
116
|
-
}
|
|
117
130
|
export declare const QueryGetPoolRequest: {
|
|
118
131
|
encode(message: QueryGetPoolRequest, writer?: _m0.Writer): _m0.Writer;
|
|
119
132
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGetPoolRequest;
|
|
@@ -142,6 +155,27 @@ export declare const QueryAllPoolResponse: {
|
|
|
142
155
|
toJSON(message: QueryAllPoolResponse): unknown;
|
|
143
156
|
fromPartial(object: DeepPartial<QueryAllPoolResponse>): QueryAllPoolResponse;
|
|
144
157
|
};
|
|
158
|
+
export declare const QueryAllPoolAddressRequest: {
|
|
159
|
+
encode(message: QueryAllPoolAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
160
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressRequest;
|
|
161
|
+
fromJSON(object: any): QueryAllPoolAddressRequest;
|
|
162
|
+
toJSON(message: QueryAllPoolAddressRequest): unknown;
|
|
163
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressRequest>): QueryAllPoolAddressRequest;
|
|
164
|
+
};
|
|
165
|
+
export declare const QueryAllPoolAddressResponse: {
|
|
166
|
+
encode(message: QueryAllPoolAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
167
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse;
|
|
168
|
+
fromJSON(object: any): QueryAllPoolAddressResponse;
|
|
169
|
+
toJSON(message: QueryAllPoolAddressResponse): unknown;
|
|
170
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse>): QueryAllPoolAddressResponse;
|
|
171
|
+
};
|
|
172
|
+
export declare const QueryAllPoolAddressResponse_AddressesEntry: {
|
|
173
|
+
encode(message: QueryAllPoolAddressResponse_AddressesEntry, writer?: _m0.Writer): _m0.Writer;
|
|
174
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse_AddressesEntry;
|
|
175
|
+
fromJSON(object: any): QueryAllPoolAddressResponse_AddressesEntry;
|
|
176
|
+
toJSON(message: QueryAllPoolAddressResponse_AddressesEntry): unknown;
|
|
177
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse_AddressesEntry>): QueryAllPoolAddressResponse_AddressesEntry;
|
|
178
|
+
};
|
|
145
179
|
export declare const QueryRewardHistoryRequest: {
|
|
146
180
|
encode(message: QueryRewardHistoryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
147
181
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryRewardHistoryRequest;
|
|
@@ -289,27 +323,6 @@ export declare const QueryParamsResponse: {
|
|
|
289
323
|
toJSON(message: QueryParamsResponse): unknown;
|
|
290
324
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
291
325
|
};
|
|
292
|
-
export declare const QueryAllPoolAddressRequest: {
|
|
293
|
-
encode(message: QueryAllPoolAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
294
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressRequest;
|
|
295
|
-
fromJSON(object: any): QueryAllPoolAddressRequest;
|
|
296
|
-
toJSON(message: QueryAllPoolAddressRequest): unknown;
|
|
297
|
-
fromPartial(object: DeepPartial<QueryAllPoolAddressRequest>): QueryAllPoolAddressRequest;
|
|
298
|
-
};
|
|
299
|
-
export declare const QueryAllPoolAddressResponse: {
|
|
300
|
-
encode(message: QueryAllPoolAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
301
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse;
|
|
302
|
-
fromJSON(object: any): QueryAllPoolAddressResponse;
|
|
303
|
-
toJSON(message: QueryAllPoolAddressResponse): unknown;
|
|
304
|
-
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse>): QueryAllPoolAddressResponse;
|
|
305
|
-
};
|
|
306
|
-
export declare const QueryAllPoolAddressResponse_AddressesEntry: {
|
|
307
|
-
encode(message: QueryAllPoolAddressResponse_AddressesEntry, writer?: _m0.Writer): _m0.Writer;
|
|
308
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse_AddressesEntry;
|
|
309
|
-
fromJSON(object: any): QueryAllPoolAddressResponse_AddressesEntry;
|
|
310
|
-
toJSON(message: QueryAllPoolAddressResponse_AddressesEntry): unknown;
|
|
311
|
-
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse_AddressesEntry>): QueryAllPoolAddressResponse_AddressesEntry;
|
|
312
|
-
};
|
|
313
326
|
export declare const QueryAllPoolRouteRequest: {
|
|
314
327
|
encode(message: QueryAllPoolRouteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
315
328
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolRouteRequest;
|
|
@@ -324,8 +337,31 @@ export declare const QueryAllPoolRouteResponse: {
|
|
|
324
337
|
toJSON(message: QueryAllPoolRouteResponse): unknown;
|
|
325
338
|
fromPartial(object: DeepPartial<QueryAllPoolRouteResponse>): QueryAllPoolRouteResponse;
|
|
326
339
|
};
|
|
340
|
+
export declare const QueryAllPoolRouteAddressRequest: {
|
|
341
|
+
encode(message: QueryAllPoolRouteAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
342
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolRouteAddressRequest;
|
|
343
|
+
fromJSON(object: any): QueryAllPoolRouteAddressRequest;
|
|
344
|
+
toJSON(message: QueryAllPoolRouteAddressRequest): unknown;
|
|
345
|
+
fromPartial(object: DeepPartial<QueryAllPoolRouteAddressRequest>): QueryAllPoolRouteAddressRequest;
|
|
346
|
+
};
|
|
347
|
+
export declare const QueryAllPoolRouteAddressResponse: {
|
|
348
|
+
encode(message: QueryAllPoolRouteAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
349
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolRouteAddressResponse;
|
|
350
|
+
fromJSON(object: any): QueryAllPoolRouteAddressResponse;
|
|
351
|
+
toJSON(message: QueryAllPoolRouteAddressResponse): unknown;
|
|
352
|
+
fromPartial(object: DeepPartial<QueryAllPoolRouteAddressResponse>): QueryAllPoolRouteAddressResponse;
|
|
353
|
+
};
|
|
354
|
+
export declare const QueryAllPoolRouteAddressResponse_AddressesEntry: {
|
|
355
|
+
encode(message: QueryAllPoolRouteAddressResponse_AddressesEntry, writer?: _m0.Writer): _m0.Writer;
|
|
356
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolRouteAddressResponse_AddressesEntry;
|
|
357
|
+
fromJSON(object: any): QueryAllPoolRouteAddressResponse_AddressesEntry;
|
|
358
|
+
toJSON(message: QueryAllPoolRouteAddressResponse_AddressesEntry): unknown;
|
|
359
|
+
fromPartial(object: DeepPartial<QueryAllPoolRouteAddressResponse_AddressesEntry>): QueryAllPoolRouteAddressResponse_AddressesEntry;
|
|
360
|
+
};
|
|
327
361
|
/** Query defines the gRPC querier service. */
|
|
328
362
|
export interface Query {
|
|
363
|
+
/** Get addresses for all pools */
|
|
364
|
+
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
329
365
|
/** Get pool details */
|
|
330
366
|
Pool(request: QueryGetPoolRequest): Promise<QueryGetPoolResponse>;
|
|
331
367
|
/** Get details for all pools */
|
|
@@ -350,13 +386,14 @@ export interface Query {
|
|
|
350
386
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
351
387
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
352
388
|
/** Get liquidity pool addresses for all pools */
|
|
353
|
-
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
354
|
-
/** Get liquidity pool addresses for all pools */
|
|
355
389
|
PoolRouteAll(request: QueryAllPoolRouteRequest): Promise<QueryAllPoolRouteResponse>;
|
|
390
|
+
/** Get addresses for all pool route */
|
|
391
|
+
PoolRouteAddressAll(request: QueryAllPoolRouteAddressRequest): Promise<QueryAllPoolRouteAddressResponse>;
|
|
356
392
|
}
|
|
357
393
|
export declare class QueryClientImpl implements Query {
|
|
358
394
|
private readonly rpc;
|
|
359
395
|
constructor(rpc: Rpc);
|
|
396
|
+
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
360
397
|
Pool(request: QueryGetPoolRequest): Promise<QueryGetPoolResponse>;
|
|
361
398
|
PoolAll(request: QueryAllPoolRequest): Promise<QueryAllPoolResponse>;
|
|
362
399
|
RewardHistory(request: QueryRewardHistoryRequest): Promise<QueryRewardHistoryResponse>;
|
|
@@ -369,8 +406,8 @@ export declare class QueryClientImpl implements Query {
|
|
|
369
406
|
TotalCommitmentAll(request: QueryAllTotalCommitmentRequest): Promise<QueryAllTotalCommitmentResponse>;
|
|
370
407
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
371
408
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
372
|
-
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
373
409
|
PoolRouteAll(request: QueryAllPoolRouteRequest): Promise<QueryAllPoolRouteResponse>;
|
|
410
|
+
PoolRouteAddressAll(request: QueryAllPoolRouteAddressRequest): Promise<QueryAllPoolRouteAddressResponse>;
|
|
374
411
|
}
|
|
375
412
|
interface Rpc {
|
|
376
413
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.QueryClientImpl = exports.QueryAllPoolRouteAddressResponse_AddressesEntry = exports.QueryAllPoolRouteAddressResponse = exports.QueryAllPoolRouteAddressRequest = exports.QueryAllPoolRouteResponse = exports.QueryAllPoolRouteRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = 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.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -226,6 +226,192 @@ exports.QueryAllPoolResponse = {
|
|
|
226
226
|
return message;
|
|
227
227
|
},
|
|
228
228
|
};
|
|
229
|
+
const baseQueryAllPoolAddressRequest = {};
|
|
230
|
+
exports.QueryAllPoolAddressRequest = {
|
|
231
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
232
|
+
if (message.pagination !== undefined) {
|
|
233
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
234
|
+
}
|
|
235
|
+
return writer;
|
|
236
|
+
},
|
|
237
|
+
decode(input, length) {
|
|
238
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
240
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
241
|
+
while (reader.pos < end) {
|
|
242
|
+
const tag = reader.uint32();
|
|
243
|
+
switch (tag >>> 3) {
|
|
244
|
+
case 1:
|
|
245
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
246
|
+
break;
|
|
247
|
+
default:
|
|
248
|
+
reader.skipType(tag & 7);
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return message;
|
|
253
|
+
},
|
|
254
|
+
fromJSON(object) {
|
|
255
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
256
|
+
message.pagination =
|
|
257
|
+
object.pagination !== undefined && object.pagination !== null
|
|
258
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
259
|
+
: undefined;
|
|
260
|
+
return message;
|
|
261
|
+
},
|
|
262
|
+
toJSON(message) {
|
|
263
|
+
const obj = {};
|
|
264
|
+
message.pagination !== undefined &&
|
|
265
|
+
(obj.pagination = message.pagination
|
|
266
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
267
|
+
: undefined);
|
|
268
|
+
return obj;
|
|
269
|
+
},
|
|
270
|
+
fromPartial(object) {
|
|
271
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
272
|
+
message.pagination =
|
|
273
|
+
object.pagination !== undefined && object.pagination !== null
|
|
274
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
275
|
+
: undefined;
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
const baseQueryAllPoolAddressResponse = {};
|
|
280
|
+
exports.QueryAllPoolAddressResponse = {
|
|
281
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
282
|
+
Object.entries(message.addresses).forEach(([key, value]) => {
|
|
283
|
+
exports.QueryAllPoolAddressResponse_AddressesEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
284
|
+
});
|
|
285
|
+
if (message.pagination !== undefined) {
|
|
286
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
292
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
294
|
+
message.addresses = {};
|
|
295
|
+
while (reader.pos < end) {
|
|
296
|
+
const tag = reader.uint32();
|
|
297
|
+
switch (tag >>> 3) {
|
|
298
|
+
case 1:
|
|
299
|
+
const entry1 = exports.QueryAllPoolAddressResponse_AddressesEntry.decode(reader, reader.uint32());
|
|
300
|
+
if (entry1.value !== undefined) {
|
|
301
|
+
message.addresses[entry1.key] = entry1.value;
|
|
302
|
+
}
|
|
303
|
+
break;
|
|
304
|
+
case 2:
|
|
305
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
306
|
+
break;
|
|
307
|
+
default:
|
|
308
|
+
reader.skipType(tag & 7);
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return message;
|
|
313
|
+
},
|
|
314
|
+
fromJSON(object) {
|
|
315
|
+
var _a;
|
|
316
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
317
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
318
|
+
acc[key] = String(value);
|
|
319
|
+
return acc;
|
|
320
|
+
}, {});
|
|
321
|
+
message.pagination =
|
|
322
|
+
object.pagination !== undefined && object.pagination !== null
|
|
323
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
324
|
+
: undefined;
|
|
325
|
+
return message;
|
|
326
|
+
},
|
|
327
|
+
toJSON(message) {
|
|
328
|
+
const obj = {};
|
|
329
|
+
obj.addresses = {};
|
|
330
|
+
if (message.addresses) {
|
|
331
|
+
Object.entries(message.addresses).forEach(([k, v]) => {
|
|
332
|
+
obj.addresses[k] = v;
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
message.pagination !== undefined &&
|
|
336
|
+
(obj.pagination = message.pagination
|
|
337
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
338
|
+
: undefined);
|
|
339
|
+
return obj;
|
|
340
|
+
},
|
|
341
|
+
fromPartial(object) {
|
|
342
|
+
var _a;
|
|
343
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
344
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
345
|
+
if (value !== undefined) {
|
|
346
|
+
acc[key] = String(value);
|
|
347
|
+
}
|
|
348
|
+
return acc;
|
|
349
|
+
}, {});
|
|
350
|
+
message.pagination =
|
|
351
|
+
object.pagination !== undefined && object.pagination !== null
|
|
352
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
353
|
+
: undefined;
|
|
354
|
+
return message;
|
|
355
|
+
},
|
|
356
|
+
};
|
|
357
|
+
const baseQueryAllPoolAddressResponse_AddressesEntry = {
|
|
358
|
+
key: "",
|
|
359
|
+
value: "",
|
|
360
|
+
};
|
|
361
|
+
exports.QueryAllPoolAddressResponse_AddressesEntry = {
|
|
362
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
363
|
+
if (message.key !== "") {
|
|
364
|
+
writer.uint32(10).string(message.key);
|
|
365
|
+
}
|
|
366
|
+
if (message.value !== "") {
|
|
367
|
+
writer.uint32(18).string(message.value);
|
|
368
|
+
}
|
|
369
|
+
return writer;
|
|
370
|
+
},
|
|
371
|
+
decode(input, length) {
|
|
372
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
373
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
374
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
375
|
+
while (reader.pos < end) {
|
|
376
|
+
const tag = reader.uint32();
|
|
377
|
+
switch (tag >>> 3) {
|
|
378
|
+
case 1:
|
|
379
|
+
message.key = reader.string();
|
|
380
|
+
break;
|
|
381
|
+
case 2:
|
|
382
|
+
message.value = reader.string();
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
reader.skipType(tag & 7);
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
fromJSON(object) {
|
|
392
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
393
|
+
message.key =
|
|
394
|
+
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
395
|
+
message.value =
|
|
396
|
+
object.value !== undefined && object.value !== null
|
|
397
|
+
? String(object.value)
|
|
398
|
+
: "";
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
toJSON(message) {
|
|
402
|
+
const obj = {};
|
|
403
|
+
message.key !== undefined && (obj.key = message.key);
|
|
404
|
+
message.value !== undefined && (obj.value = message.value);
|
|
405
|
+
return obj;
|
|
406
|
+
},
|
|
407
|
+
fromPartial(object) {
|
|
408
|
+
var _a, _b;
|
|
409
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
410
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
411
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
412
|
+
return message;
|
|
413
|
+
},
|
|
414
|
+
};
|
|
229
415
|
const baseQueryRewardHistoryRequest = {
|
|
230
416
|
poolId: "",
|
|
231
417
|
startBlockHeight: "",
|
|
@@ -1370,8 +1556,8 @@ exports.QueryParamsResponse = {
|
|
|
1370
1556
|
return message;
|
|
1371
1557
|
},
|
|
1372
1558
|
};
|
|
1373
|
-
const
|
|
1374
|
-
exports.
|
|
1559
|
+
const baseQueryAllPoolRouteRequest = {};
|
|
1560
|
+
exports.QueryAllPoolRouteRequest = {
|
|
1375
1561
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1376
1562
|
if (message.pagination !== undefined) {
|
|
1377
1563
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
@@ -1381,7 +1567,7 @@ exports.QueryAllPoolAddressRequest = {
|
|
|
1381
1567
|
decode(input, length) {
|
|
1382
1568
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1383
1569
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1384
|
-
const message = Object.assign({},
|
|
1570
|
+
const message = Object.assign({}, baseQueryAllPoolRouteRequest);
|
|
1385
1571
|
while (reader.pos < end) {
|
|
1386
1572
|
const tag = reader.uint32();
|
|
1387
1573
|
switch (tag >>> 3) {
|
|
@@ -1396,7 +1582,7 @@ exports.QueryAllPoolAddressRequest = {
|
|
|
1396
1582
|
return message;
|
|
1397
1583
|
},
|
|
1398
1584
|
fromJSON(object) {
|
|
1399
|
-
const message = Object.assign({},
|
|
1585
|
+
const message = Object.assign({}, baseQueryAllPoolRouteRequest);
|
|
1400
1586
|
message.pagination =
|
|
1401
1587
|
object.pagination !== undefined && object.pagination !== null
|
|
1402
1588
|
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
@@ -1412,7 +1598,7 @@ exports.QueryAllPoolAddressRequest = {
|
|
|
1412
1598
|
return obj;
|
|
1413
1599
|
},
|
|
1414
1600
|
fromPartial(object) {
|
|
1415
|
-
const message = Object.assign({},
|
|
1601
|
+
const message = Object.assign({}, baseQueryAllPoolRouteRequest);
|
|
1416
1602
|
message.pagination =
|
|
1417
1603
|
object.pagination !== undefined && object.pagination !== null
|
|
1418
1604
|
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
@@ -1420,12 +1606,12 @@ exports.QueryAllPoolAddressRequest = {
|
|
|
1420
1606
|
return message;
|
|
1421
1607
|
},
|
|
1422
1608
|
};
|
|
1423
|
-
const
|
|
1424
|
-
exports.
|
|
1609
|
+
const baseQueryAllPoolRouteResponse = {};
|
|
1610
|
+
exports.QueryAllPoolRouteResponse = {
|
|
1425
1611
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
}
|
|
1612
|
+
for (const v of message.poolRoutes) {
|
|
1613
|
+
liquiditypool_1.PoolRoute.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1614
|
+
}
|
|
1429
1615
|
if (message.pagination !== undefined) {
|
|
1430
1616
|
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1431
1617
|
}
|
|
@@ -1434,16 +1620,13 @@ exports.QueryAllPoolAddressResponse = {
|
|
|
1434
1620
|
decode(input, length) {
|
|
1435
1621
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1436
1622
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1437
|
-
const message = Object.assign({},
|
|
1438
|
-
message.
|
|
1623
|
+
const message = Object.assign({}, baseQueryAllPoolRouteResponse);
|
|
1624
|
+
message.poolRoutes = [];
|
|
1439
1625
|
while (reader.pos < end) {
|
|
1440
1626
|
const tag = reader.uint32();
|
|
1441
1627
|
switch (tag >>> 3) {
|
|
1442
1628
|
case 1:
|
|
1443
|
-
|
|
1444
|
-
if (entry1.value !== undefined) {
|
|
1445
|
-
message.addresses[entry1.key] = entry1.value;
|
|
1446
|
-
}
|
|
1629
|
+
message.poolRoutes.push(liquiditypool_1.PoolRoute.decode(reader, reader.uint32()));
|
|
1447
1630
|
break;
|
|
1448
1631
|
case 2:
|
|
1449
1632
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
@@ -1457,11 +1640,8 @@ exports.QueryAllPoolAddressResponse = {
|
|
|
1457
1640
|
},
|
|
1458
1641
|
fromJSON(object) {
|
|
1459
1642
|
var _a;
|
|
1460
|
-
const message = Object.assign({},
|
|
1461
|
-
message.
|
|
1462
|
-
acc[key] = String(value);
|
|
1463
|
-
return acc;
|
|
1464
|
-
}, {});
|
|
1643
|
+
const message = Object.assign({}, baseQueryAllPoolRouteResponse);
|
|
1644
|
+
message.poolRoutes = ((_a = object.poolRoutes) !== null && _a !== void 0 ? _a : []).map((e) => liquiditypool_1.PoolRoute.fromJSON(e));
|
|
1465
1645
|
message.pagination =
|
|
1466
1646
|
object.pagination !== undefined && object.pagination !== null
|
|
1467
1647
|
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
@@ -1470,11 +1650,11 @@ exports.QueryAllPoolAddressResponse = {
|
|
|
1470
1650
|
},
|
|
1471
1651
|
toJSON(message) {
|
|
1472
1652
|
const obj = {};
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1653
|
+
if (message.poolRoutes) {
|
|
1654
|
+
obj.poolRoutes = message.poolRoutes.map((e) => e ? liquiditypool_1.PoolRoute.toJSON(e) : undefined);
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
obj.poolRoutes = [];
|
|
1478
1658
|
}
|
|
1479
1659
|
message.pagination !== undefined &&
|
|
1480
1660
|
(obj.pagination = message.pagination
|
|
@@ -1484,13 +1664,8 @@ exports.QueryAllPoolAddressResponse = {
|
|
|
1484
1664
|
},
|
|
1485
1665
|
fromPartial(object) {
|
|
1486
1666
|
var _a;
|
|
1487
|
-
const message = Object.assign({},
|
|
1488
|
-
message.
|
|
1489
|
-
if (value !== undefined) {
|
|
1490
|
-
acc[key] = String(value);
|
|
1491
|
-
}
|
|
1492
|
-
return acc;
|
|
1493
|
-
}, {});
|
|
1667
|
+
const message = Object.assign({}, baseQueryAllPoolRouteResponse);
|
|
1668
|
+
message.poolRoutes = ((_a = object.poolRoutes) !== null && _a !== void 0 ? _a : []).map((e) => liquiditypool_1.PoolRoute.fromPartial(e));
|
|
1494
1669
|
message.pagination =
|
|
1495
1670
|
object.pagination !== undefined && object.pagination !== null
|
|
1496
1671
|
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
@@ -1498,32 +1673,23 @@ exports.QueryAllPoolAddressResponse = {
|
|
|
1498
1673
|
return message;
|
|
1499
1674
|
},
|
|
1500
1675
|
};
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1503
|
-
value: "",
|
|
1504
|
-
};
|
|
1505
|
-
exports.QueryAllPoolAddressResponse_AddressesEntry = {
|
|
1676
|
+
const baseQueryAllPoolRouteAddressRequest = {};
|
|
1677
|
+
exports.QueryAllPoolRouteAddressRequest = {
|
|
1506
1678
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1507
|
-
if (message.
|
|
1508
|
-
writer.uint32(10).
|
|
1509
|
-
}
|
|
1510
|
-
if (message.value !== "") {
|
|
1511
|
-
writer.uint32(18).string(message.value);
|
|
1679
|
+
if (message.pagination !== undefined) {
|
|
1680
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1512
1681
|
}
|
|
1513
1682
|
return writer;
|
|
1514
1683
|
},
|
|
1515
1684
|
decode(input, length) {
|
|
1516
1685
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1517
1686
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1518
|
-
const message = Object.assign({},
|
|
1687
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressRequest);
|
|
1519
1688
|
while (reader.pos < end) {
|
|
1520
1689
|
const tag = reader.uint32();
|
|
1521
1690
|
switch (tag >>> 3) {
|
|
1522
1691
|
case 1:
|
|
1523
|
-
message.
|
|
1524
|
-
break;
|
|
1525
|
-
case 2:
|
|
1526
|
-
message.value = reader.string();
|
|
1692
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1527
1693
|
break;
|
|
1528
1694
|
default:
|
|
1529
1695
|
reader.skipType(tag & 7);
|
|
@@ -1533,46 +1699,57 @@ exports.QueryAllPoolAddressResponse_AddressesEntry = {
|
|
|
1533
1699
|
return message;
|
|
1534
1700
|
},
|
|
1535
1701
|
fromJSON(object) {
|
|
1536
|
-
const message = Object.assign({},
|
|
1537
|
-
message.
|
|
1538
|
-
object.
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
? String(object.value)
|
|
1542
|
-
: "";
|
|
1702
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressRequest);
|
|
1703
|
+
message.pagination =
|
|
1704
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1705
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1706
|
+
: undefined;
|
|
1543
1707
|
return message;
|
|
1544
1708
|
},
|
|
1545
1709
|
toJSON(message) {
|
|
1546
1710
|
const obj = {};
|
|
1547
|
-
message.
|
|
1548
|
-
|
|
1711
|
+
message.pagination !== undefined &&
|
|
1712
|
+
(obj.pagination = message.pagination
|
|
1713
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
1714
|
+
: undefined);
|
|
1549
1715
|
return obj;
|
|
1550
1716
|
},
|
|
1551
1717
|
fromPartial(object) {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1718
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressRequest);
|
|
1719
|
+
message.pagination =
|
|
1720
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1721
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1722
|
+
: undefined;
|
|
1556
1723
|
return message;
|
|
1557
1724
|
},
|
|
1558
1725
|
};
|
|
1559
|
-
const
|
|
1560
|
-
exports.
|
|
1726
|
+
const baseQueryAllPoolRouteAddressResponse = {};
|
|
1727
|
+
exports.QueryAllPoolRouteAddressResponse = {
|
|
1561
1728
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1729
|
+
Object.entries(message.addresses).forEach(([key, value]) => {
|
|
1730
|
+
exports.QueryAllPoolRouteAddressResponse_AddressesEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
1731
|
+
});
|
|
1562
1732
|
if (message.pagination !== undefined) {
|
|
1563
|
-
pagination_1.
|
|
1733
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1564
1734
|
}
|
|
1565
1735
|
return writer;
|
|
1566
1736
|
},
|
|
1567
1737
|
decode(input, length) {
|
|
1568
1738
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1569
1739
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1570
|
-
const message = Object.assign({},
|
|
1740
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse);
|
|
1741
|
+
message.addresses = {};
|
|
1571
1742
|
while (reader.pos < end) {
|
|
1572
1743
|
const tag = reader.uint32();
|
|
1573
1744
|
switch (tag >>> 3) {
|
|
1574
1745
|
case 1:
|
|
1575
|
-
|
|
1746
|
+
const entry1 = exports.QueryAllPoolRouteAddressResponse_AddressesEntry.decode(reader, reader.uint32());
|
|
1747
|
+
if (entry1.value !== undefined) {
|
|
1748
|
+
message.addresses[entry1.key] = entry1.value;
|
|
1749
|
+
}
|
|
1750
|
+
break;
|
|
1751
|
+
case 2:
|
|
1752
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1576
1753
|
break;
|
|
1577
1754
|
default:
|
|
1578
1755
|
reader.skipType(tag & 7);
|
|
@@ -1582,54 +1759,74 @@ exports.QueryAllPoolRouteRequest = {
|
|
|
1582
1759
|
return message;
|
|
1583
1760
|
},
|
|
1584
1761
|
fromJSON(object) {
|
|
1585
|
-
|
|
1762
|
+
var _a;
|
|
1763
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse);
|
|
1764
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
1765
|
+
acc[key] = String(value);
|
|
1766
|
+
return acc;
|
|
1767
|
+
}, {});
|
|
1586
1768
|
message.pagination =
|
|
1587
1769
|
object.pagination !== undefined && object.pagination !== null
|
|
1588
|
-
? pagination_1.
|
|
1770
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1589
1771
|
: undefined;
|
|
1590
1772
|
return message;
|
|
1591
1773
|
},
|
|
1592
1774
|
toJSON(message) {
|
|
1593
1775
|
const obj = {};
|
|
1776
|
+
obj.addresses = {};
|
|
1777
|
+
if (message.addresses) {
|
|
1778
|
+
Object.entries(message.addresses).forEach(([k, v]) => {
|
|
1779
|
+
obj.addresses[k] = v;
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1594
1782
|
message.pagination !== undefined &&
|
|
1595
1783
|
(obj.pagination = message.pagination
|
|
1596
|
-
? pagination_1.
|
|
1784
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
1597
1785
|
: undefined);
|
|
1598
1786
|
return obj;
|
|
1599
1787
|
},
|
|
1600
1788
|
fromPartial(object) {
|
|
1601
|
-
|
|
1789
|
+
var _a;
|
|
1790
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse);
|
|
1791
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
1792
|
+
if (value !== undefined) {
|
|
1793
|
+
acc[key] = String(value);
|
|
1794
|
+
}
|
|
1795
|
+
return acc;
|
|
1796
|
+
}, {});
|
|
1602
1797
|
message.pagination =
|
|
1603
1798
|
object.pagination !== undefined && object.pagination !== null
|
|
1604
|
-
? pagination_1.
|
|
1799
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1605
1800
|
: undefined;
|
|
1606
1801
|
return message;
|
|
1607
1802
|
},
|
|
1608
1803
|
};
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1804
|
+
const baseQueryAllPoolRouteAddressResponse_AddressesEntry = {
|
|
1805
|
+
key: "",
|
|
1806
|
+
value: "",
|
|
1807
|
+
};
|
|
1808
|
+
exports.QueryAllPoolRouteAddressResponse_AddressesEntry = {
|
|
1611
1809
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1612
|
-
|
|
1613
|
-
|
|
1810
|
+
if (message.key !== "") {
|
|
1811
|
+
writer.uint32(10).string(message.key);
|
|
1614
1812
|
}
|
|
1615
|
-
if (message.
|
|
1616
|
-
|
|
1813
|
+
if (message.value !== "") {
|
|
1814
|
+
writer.uint32(18).string(message.value);
|
|
1617
1815
|
}
|
|
1618
1816
|
return writer;
|
|
1619
1817
|
},
|
|
1620
1818
|
decode(input, length) {
|
|
1621
1819
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1622
1820
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1623
|
-
const message = Object.assign({},
|
|
1624
|
-
message.poolRoutes = [];
|
|
1821
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse_AddressesEntry);
|
|
1625
1822
|
while (reader.pos < end) {
|
|
1626
1823
|
const tag = reader.uint32();
|
|
1627
1824
|
switch (tag >>> 3) {
|
|
1628
1825
|
case 1:
|
|
1629
|
-
message.
|
|
1826
|
+
message.key = reader.string();
|
|
1630
1827
|
break;
|
|
1631
1828
|
case 2:
|
|
1632
|
-
message.
|
|
1829
|
+
message.value = reader.string();
|
|
1633
1830
|
break;
|
|
1634
1831
|
default:
|
|
1635
1832
|
reader.skipType(tag & 7);
|
|
@@ -1639,43 +1836,33 @@ exports.QueryAllPoolRouteResponse = {
|
|
|
1639
1836
|
return message;
|
|
1640
1837
|
},
|
|
1641
1838
|
fromJSON(object) {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
message.
|
|
1646
|
-
object.
|
|
1647
|
-
?
|
|
1648
|
-
:
|
|
1839
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse_AddressesEntry);
|
|
1840
|
+
message.key =
|
|
1841
|
+
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
1842
|
+
message.value =
|
|
1843
|
+
object.value !== undefined && object.value !== null
|
|
1844
|
+
? String(object.value)
|
|
1845
|
+
: "";
|
|
1649
1846
|
return message;
|
|
1650
1847
|
},
|
|
1651
1848
|
toJSON(message) {
|
|
1652
1849
|
const obj = {};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1656
|
-
else {
|
|
1657
|
-
obj.poolRoutes = [];
|
|
1658
|
-
}
|
|
1659
|
-
message.pagination !== undefined &&
|
|
1660
|
-
(obj.pagination = message.pagination
|
|
1661
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
1662
|
-
: undefined);
|
|
1850
|
+
message.key !== undefined && (obj.key = message.key);
|
|
1851
|
+
message.value !== undefined && (obj.value = message.value);
|
|
1663
1852
|
return obj;
|
|
1664
1853
|
},
|
|
1665
1854
|
fromPartial(object) {
|
|
1666
|
-
var _a;
|
|
1667
|
-
const message = Object.assign({},
|
|
1668
|
-
message.
|
|
1669
|
-
message.
|
|
1670
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1671
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1672
|
-
: undefined;
|
|
1855
|
+
var _a, _b;
|
|
1856
|
+
const message = Object.assign({}, baseQueryAllPoolRouteAddressResponse_AddressesEntry);
|
|
1857
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
1858
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
1673
1859
|
return message;
|
|
1674
1860
|
},
|
|
1675
1861
|
};
|
|
1676
1862
|
class QueryClientImpl {
|
|
1677
1863
|
constructor(rpc) {
|
|
1678
1864
|
this.rpc = rpc;
|
|
1865
|
+
this.PoolAddressAll = this.PoolAddressAll.bind(this);
|
|
1679
1866
|
this.Pool = this.Pool.bind(this);
|
|
1680
1867
|
this.PoolAll = this.PoolAll.bind(this);
|
|
1681
1868
|
this.RewardHistory = this.RewardHistory.bind(this);
|
|
@@ -1688,8 +1875,13 @@ class QueryClientImpl {
|
|
|
1688
1875
|
this.TotalCommitmentAll = this.TotalCommitmentAll.bind(this);
|
|
1689
1876
|
this.ClaimableRewards = this.ClaimableRewards.bind(this);
|
|
1690
1877
|
this.Params = this.Params.bind(this);
|
|
1691
|
-
this.PoolAddressAll = this.PoolAddressAll.bind(this);
|
|
1692
1878
|
this.PoolRouteAll = this.PoolRouteAll.bind(this);
|
|
1879
|
+
this.PoolRouteAddressAll = this.PoolRouteAddressAll.bind(this);
|
|
1880
|
+
}
|
|
1881
|
+
PoolAddressAll(request) {
|
|
1882
|
+
const data = exports.QueryAllPoolAddressRequest.encode(request).finish();
|
|
1883
|
+
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolAddressAll", data);
|
|
1884
|
+
return promise.then((data) => exports.QueryAllPoolAddressResponse.decode(new minimal_1.default.Reader(data)));
|
|
1693
1885
|
}
|
|
1694
1886
|
Pool(request) {
|
|
1695
1887
|
const data = exports.QueryGetPoolRequest.encode(request).finish();
|
|
@@ -1751,16 +1943,16 @@ class QueryClientImpl {
|
|
|
1751
1943
|
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "Params", data);
|
|
1752
1944
|
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1753
1945
|
}
|
|
1754
|
-
PoolAddressAll(request) {
|
|
1755
|
-
const data = exports.QueryAllPoolAddressRequest.encode(request).finish();
|
|
1756
|
-
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolAddressAll", data);
|
|
1757
|
-
return promise.then((data) => exports.QueryAllPoolAddressResponse.decode(new minimal_1.default.Reader(data)));
|
|
1758
|
-
}
|
|
1759
1946
|
PoolRouteAll(request) {
|
|
1760
1947
|
const data = exports.QueryAllPoolRouteRequest.encode(request).finish();
|
|
1761
1948
|
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolRouteAll", data);
|
|
1762
1949
|
return promise.then((data) => exports.QueryAllPoolRouteResponse.decode(new minimal_1.default.Reader(data)));
|
|
1763
1950
|
}
|
|
1951
|
+
PoolRouteAddressAll(request) {
|
|
1952
|
+
const data = exports.QueryAllPoolRouteAddressRequest.encode(request).finish();
|
|
1953
|
+
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolRouteAddressAll", data);
|
|
1954
|
+
return promise.then((data) => exports.QueryAllPoolRouteAddressResponse.decode(new minimal_1.default.Reader(data)));
|
|
1955
|
+
}
|
|
1764
1956
|
}
|
|
1765
1957
|
exports.QueryClientImpl = QueryClientImpl;
|
|
1766
1958
|
function toTimestamp(date) {
|
|
@@ -200,7 +200,6 @@ const baseMsgCreatePoolWithLiquidity = {
|
|
|
200
200
|
amountA: "",
|
|
201
201
|
amountB: "",
|
|
202
202
|
swapFee: "",
|
|
203
|
-
numQuotes: long_1.default.ZERO,
|
|
204
203
|
ampBps: long_1.default.UZERO,
|
|
205
204
|
};
|
|
206
205
|
exports.MsgCreatePoolWithLiquidity = {
|
|
@@ -229,11 +228,8 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
229
228
|
if (message.swapFee !== "") {
|
|
230
229
|
writer.uint32(66).string(message.swapFee);
|
|
231
230
|
}
|
|
232
|
-
if (!message.numQuotes.isZero()) {
|
|
233
|
-
writer.uint32(72).int64(message.numQuotes);
|
|
234
|
-
}
|
|
235
231
|
if (!message.ampBps.isZero()) {
|
|
236
|
-
writer.uint32(
|
|
232
|
+
writer.uint32(72).uint64(message.ampBps);
|
|
237
233
|
}
|
|
238
234
|
return writer;
|
|
239
235
|
},
|
|
@@ -269,9 +265,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
269
265
|
message.swapFee = reader.string();
|
|
270
266
|
break;
|
|
271
267
|
case 9:
|
|
272
|
-
message.numQuotes = reader.int64();
|
|
273
|
-
break;
|
|
274
|
-
case 10:
|
|
275
268
|
message.ampBps = reader.uint64();
|
|
276
269
|
break;
|
|
277
270
|
default:
|
|
@@ -315,10 +308,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
315
308
|
object.swapFee !== undefined && object.swapFee !== null
|
|
316
309
|
? String(object.swapFee)
|
|
317
310
|
: "";
|
|
318
|
-
message.numQuotes =
|
|
319
|
-
object.numQuotes !== undefined && object.numQuotes !== null
|
|
320
|
-
? long_1.default.fromString(object.numQuotes)
|
|
321
|
-
: long_1.default.ZERO;
|
|
322
311
|
message.ampBps =
|
|
323
312
|
object.ampBps !== undefined && object.ampBps !== null
|
|
324
313
|
? long_1.default.fromString(object.ampBps)
|
|
@@ -339,8 +328,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
339
328
|
message.amountA !== undefined && (obj.amountA = message.amountA);
|
|
340
329
|
message.amountB !== undefined && (obj.amountB = message.amountB);
|
|
341
330
|
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
342
|
-
message.numQuotes !== undefined &&
|
|
343
|
-
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
344
331
|
message.ampBps !== undefined &&
|
|
345
332
|
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
346
333
|
return obj;
|
|
@@ -356,10 +343,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
356
343
|
message.amountA = (_f = object.amountA) !== null && _f !== void 0 ? _f : "";
|
|
357
344
|
message.amountB = (_g = object.amountB) !== null && _g !== void 0 ? _g : "";
|
|
358
345
|
message.swapFee = (_h = object.swapFee) !== null && _h !== void 0 ? _h : "";
|
|
359
|
-
message.numQuotes =
|
|
360
|
-
object.numQuotes !== undefined && object.numQuotes !== null
|
|
361
|
-
? long_1.default.fromValue(object.numQuotes)
|
|
362
|
-
: long_1.default.ZERO;
|
|
363
346
|
message.ampBps =
|
|
364
347
|
object.ampBps !== undefined && object.ampBps !== null
|
|
365
348
|
? long_1.default.fromValue(object.ampBps)
|
|
@@ -51,7 +51,6 @@ class LiquidityPoolModule extends base_1.default {
|
|
|
51
51
|
amountB: params.amountB.toString(10),
|
|
52
52
|
swapFee: params.swapFee.shiftedBy(18).toString(10),
|
|
53
53
|
ampBps: params.ampBps,
|
|
54
|
-
numQuotes: new long_1.default(params.numQuotes),
|
|
55
54
|
});
|
|
56
55
|
return yield wallet.sendTx({
|
|
57
56
|
typeUrl: util_1.CarbonTx.Types.MsgCreatePoolWithLiquidity,
|
|
@@ -142,14 +142,6 @@ const UpdateGroupConfig = {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
const ChangeNumQuotes = {
|
|
146
|
-
value: {
|
|
147
|
-
msg: {
|
|
148
|
-
poolId: utils_1.ConvertEncType.Long,
|
|
149
|
-
numQuotes: utils_1.ConvertEncType.Long,
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
145
|
const UpdatePool = {
|
|
154
146
|
value: {
|
|
155
147
|
msg: {
|
|
@@ -33,7 +33,6 @@ const TxTypes = {
|
|
|
33
33
|
const MsgCreatePool = {
|
|
34
34
|
aminoType: TxTypes.CreatePool,
|
|
35
35
|
valueMap: {
|
|
36
|
-
numQuotes: utils_1.ConvertEncType.Long,
|
|
37
36
|
swapFee: utils_1.ConvertEncType.Dec,
|
|
38
37
|
tokenAWeight: utils_1.ConvertEncType.Dec,
|
|
39
38
|
tokenBWeight: utils_1.ConvertEncType.Dec,
|
|
@@ -46,7 +45,6 @@ const MsgCreatePoolWithLiquidity = {
|
|
|
46
45
|
tokenAWeight: utils_1.ConvertEncType.Dec,
|
|
47
46
|
tokenBWeight: utils_1.ConvertEncType.Dec,
|
|
48
47
|
swapFee: utils_1.ConvertEncType.Dec,
|
|
49
|
-
numQuotes: utils_1.ConvertEncType.Long,
|
|
50
48
|
ampBps: utils_1.ConvertEncType.Long,
|
|
51
49
|
},
|
|
52
50
|
};
|
|
@@ -139,12 +139,17 @@ export interface Pool {
|
|
|
139
139
|
amount_b: string;
|
|
140
140
|
weight_b: string;
|
|
141
141
|
swap_fee: string;
|
|
142
|
-
num_quotes: number;
|
|
143
142
|
shares_amount: string;
|
|
144
|
-
market: string;
|
|
145
143
|
amp_bps: string;
|
|
146
144
|
v_amount_a: string;
|
|
147
145
|
v_amount_b: string;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated num_quotes and market fields have been removed in websocket data
|
|
148
|
+
* Use Pool Routes API to retrieve numQuotes value for market, as well as the attached pool ids
|
|
149
|
+
* i.e. sdk.query.liquiditypool.PoolRoutesAll({})
|
|
150
|
+
**/
|
|
151
|
+
num_quotes?: number;
|
|
152
|
+
market?: string;
|
|
148
153
|
};
|
|
149
154
|
rewards_weight: string;
|
|
150
155
|
total_commitment: string;
|