carbon-js-sdk 0.3.42 → 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/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.js +1 -1
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/broker/amm.d.ts +1 -1
- package/lib/codec/broker/amm.js +16 -18
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/v1beta1/tx.js +2 -2
- package/lib/codec/index.d.ts +15 -12
- package/lib/codec/index.js +56 -37
- package/lib/codec/liquiditypool/event.d.ts +14 -0
- package/lib/codec/liquiditypool/event.js +107 -1
- package/lib/codec/liquiditypool/genesis.d.ts +2 -1
- package/lib/codec/liquiditypool/genesis.js +17 -2
- package/lib/codec/liquiditypool/legacy.d.ts +18 -0
- package/lib/codec/liquiditypool/legacy.js +64 -0
- package/lib/codec/liquiditypool/liquiditypool.d.ts +40 -0
- package/lib/codec/liquiditypool/liquiditypool.js +320 -2
- package/lib/codec/liquiditypool/proposal.d.ts +37 -25
- package/lib/codec/liquiditypool/proposal.js +139 -61
- package/lib/codec/liquiditypool/query.d.ts +85 -24
- package/lib/codec/liquiditypool/query.js +338 -23
- package/lib/codec/liquiditypool/tx.d.ts +101 -67
- package/lib/codec/liquiditypool/tx.js +821 -601
- package/lib/codec/order/order.d.ts +1 -0
- package/lib/codec/order/order.js +45 -1
- package/lib/constant/generic.js +1 -1
- package/lib/modules/admin.d.ts +0 -2
- package/lib/modules/admin.js +0 -26
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/coin.d.ts +19 -0
- package/lib/modules/coin.js +39 -0
- package/lib/modules/gov.js +12 -26
- package/lib/modules/liquiditypool.d.ts +11 -2
- package/lib/modules/liquiditypool.js +34 -3
- package/lib/modules/market.d.ts +11 -0
- package/lib/modules/market.js +19 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/amino/types/admin.js +28 -32
- package/lib/provider/amino/types/bank.js +1 -1
- package/lib/provider/amino/types/broker.js +1 -1
- package/lib/provider/amino/types/cdp.js +22 -22
- package/lib/provider/amino/types/coin.js +4 -4
- package/lib/provider/amino/types/gov.js +4 -40
- package/lib/provider/amino/types/ibc.js +1 -1
- package/lib/provider/amino/types/leverage.js +1 -1
- package/lib/provider/amino/types/liquidityPool.js +7 -9
- package/lib/provider/amino/types/market.js +1 -1
- package/lib/provider/amino/types/oracle.js +1 -1
- package/lib/provider/amino/types/order.js +4 -4
- package/lib/provider/amino/types/position.js +1 -1
- package/lib/provider/amino/types/profile.js +1 -1
- package/lib/provider/amino/types/staking.js +4 -4
- package/lib/provider/amino/types/subaccount.js +3 -3
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.js +1 -1
- package/lib/provider/o3/O3Wallet.js +2 -2
- package/lib/util/address.js +13 -13
- package/lib/util/api.js +4 -4
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +0 -2
- package/lib/util/gov.js +0 -6
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +9 -6
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -6
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +7 -2
- package/package.json +1 -1
package/lib/codec/index.js
CHANGED
|
@@ -26,16 +26,16 @@ exports.QueryOrderAllocatedMarginRequest = exports.QueryOrderParamsResponse = ex
|
|
|
26
26
|
exports.MsgSetMinimumCloseFactor = exports.MsgSetCompleteLiquidationThresholdResponse = exports.MsgSetCompleteLiquidationThreshold = exports.MsgReturnStablecoinResponse = exports.MsgReturnStablecoin = exports.MsgMintStablecoinResponse = exports.MsgMintStablecoin = exports.MsgSetStablecoinMintCapResponse = exports.MsgSetStablecoinMintCap = exports.MsgSetStablecoinInterestRateResponse = exports.MsgSetStablecoinInterestRate = exports.MsgRepayAssetWithCollateralResponse = exports.MsgRepayAssetWithCollateral = exports.MsgRepayAssetWithCdpTokensResponse = exports.MsgRepayAssetWithCdpTokens = exports.MsgSetInterestFeeResponse = exports.MsgSetInterestFee = exports.MsgSetLiquidationFeeResponse = exports.MsgSetLiquidationFee = exports.MsgLiquidateCollateralResponse = exports.MsgLiquidateCollateral = exports.MsgUnlockCollateralAndWithdrawAssetResponse = exports.MsgUnlockCollateralAndWithdrawAsset = exports.MsgSupplyAssetAndLockCollateralResponse = exports.MsgSupplyAssetAndLockCollateral = exports.MsgRepayAssetResponse = exports.MsgRepayAsset = exports.MsgBorrowAssetResponse = exports.MsgBorrowAsset = exports.MsgUnlockCollateralResponse = exports.MsgUnlockCollateral = exports.MsgLockCollateralResponse = exports.MsgLockCollateral = exports.MsgWithdrawAssetResponse = exports.MsgWithdrawAsset = exports.MsgSupplyAssetResponse = exports.MsgSupplyAsset = exports.MsgUpdateAssetResponse = exports.MsgUpdateAsset = exports.MsgAddAssetResponse = exports.MsgAddAsset = exports.MsgRemoveRateStrategyResponse = exports.MsgRemoveRateStrategy = exports.MsgUpdateRateStrategyResponse = exports.MsgUpdateRateStrategy = exports.MsgAddRateStrategyResponse = exports.MsgAddRateStrategy = exports.DebtInfo = exports.OrderEvent = exports.QueryOrderAllocatedMarginResponse = void 0;
|
|
27
27
|
exports.Collateral = exports.QueryAccountCollateralAllResponse = exports.QueryAccountCollateralAllRequest = exports.QueryAccountCollateralResponse = exports.QueryAccountCollateralRequest = exports.QueryAccountDataResponse = exports.QueryAccountDataRequest = exports.QueryRateStrategyAllResponse = exports.QueryRateStrategyAllRequest = exports.QueryRateStrategyResponse = exports.QueryRateStrategyRequest = exports.QueryCdpParamsResponse = exports.QueryCdpParamsRequest = exports.RewardDebt = exports.UpdateRewardSchemeParams = exports.CreateRewardSchemeParams = exports.RewardScheme = exports.StablecoinDebtInfo = exports.RateStrategyParams = exports.AssetUtilization = exports.AssetParams = exports.MsgConvertTokenInCdpToGroupTokensResponse = exports.MsgConvertTokenInCdpToGroupTokens = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCollateralResponse = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCollateral = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokensResponse = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokens = exports.MsgReturnStablecoinWithInterestInCdpTokensResponse = exports.MsgReturnStablecoinWithInterestInCdpTokens = exports.MsgReturnStablecoinWithInterestInCollateralResponse = exports.MsgReturnStablecoinWithInterestInCollateral = exports.MsgSetCdpPausedResponse = exports.MsgSetCdpPaused = exports.MsgSetStalePriceGracePeriodResponse = exports.MsgSetStalePriceGracePeriod = exports.MsgClaimRewardsResponse = exports.MsgClaimRewards = exports.MsgUpdateRewardSchemeResponse = exports.MsgUpdateRewardScheme = exports.MsgCreateRewardSchemeResponse = exports.MsgCreateRewardScheme = exports.MsgLiquidateCollateralWithStablecoinResponse = exports.MsgLiquidateCollateralWithStablecoin = exports.MsgLiquidateCollateralWithCollateralResponse = exports.MsgLiquidateCollateralWithCollateral = exports.MsgLiquidateCollateralWithCdpTokensResponse = exports.MsgLiquidateCollateralWithCdpTokens = exports.MsgSetSmallLiquidationSizeResponse = exports.MsgSetSmallLiquidationSize = exports.MsgSetMinimumCloseFactorResponse = void 0;
|
|
28
28
|
exports.ReturnStablecoinEvent = exports.MintStablecoinEvent = exports.UpdateStablecoinDebtInfoEvent = exports.UpdateDebtInfoEvent = exports.UnlockCollateralEvent = exports.LockCollateralEvent = exports.RepayAssetEvent = exports.BorrowAssetEvent = exports.WithdrawAssetEvent = exports.SupplyAssetEvent = exports.SetCdpPausedEvent = exports.SetStalePriceGracePeriodEvent = exports.SetSmallLiquidationSizeEvent = exports.SetMinimumCloseFactorEvent = exports.SetCompleteLiquidationThresholdEvent = exports.SetStablecoinMintCapEvent = exports.SetStablecoinInterestRateEvent = exports.SetLiquidationFeeEvent = exports.SetInterestFeeEvent = exports.UpdateAssetParamsEvent = exports.NewAssetParamsEvent = exports.RemoveRateStrategyParamsEvent = exports.UpdateRateStrategyParamsEvent = exports.NewRateStrategyParamsEvent = exports.QueryRewardDebtsAllRequest = exports.QueryRewardDebtsResponse = exports.QueryRewardDebtsRequest = exports.QueryRewardSchemesAllResponse = exports.QueryRewardSchemesAllRequest = exports.QueryCdpPositionsResponse = exports.QueryCdpPositionsRequest = exports.CdpPosition = exports.CdpPositionItem = exports.QueryStablecoinDebtResponse = exports.QueryStablecoinDebtRequest = exports.QueryTokenDebtAllResponse = exports.QueryTokenDebtAllRequest = exports.QueryTokenDebtResponse = exports.QueryTokenDebtRequest = exports.QueryAssetAllResponse = exports.QueryAssetAllRequest = exports.QueryAssetResponse = exports.QueryAssetRequest = exports.QueryAccountStablecoinResponse = exports.QueryAccountStablecoinRequest = exports.Debt = exports.QueryAccountDebtAllResponse = exports.QueryAccountDebtAllRequest = exports.QueryAccountDebtResponse = exports.QueryAccountDebtRequest = void 0;
|
|
29
|
-
exports.MsgRemoveMinGasPriceResponse = exports.MsgRemoveMinGasPrice = exports.MsgRemoveGasCostResponse = exports.MsgRemoveGasCost = exports.MsgSetMinGasPriceResponse = exports.MsgSetMinGasPrice = exports.MsgSetGasCostResponse = exports.MsgSetGasCost = exports.
|
|
30
|
-
exports.QueryGetPositionResponse = exports.QueryGetPositionRequest = exports.PositionAllocatedMargin = exports.APIPosition = exports.Positions = exports.Position = exports.MsgSetMarginResponse = exports.MsgSetMargin = exports.Duration = exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = exports.Timestamp = exports.Any = exports.QueryLiquidationParamsResponse = exports.QueryLiquidationParamsRequest = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.OutstandingPositions = exports.OutstandingPosition = exports.QuoteChanges = exports.LiquidationParams = exports.CoinSent = exports.CoinReceived = exports.CoinSpent = exports.QueryInternalTransfersResponse = exports.QueryInternalTransfersRequest = exports.InternalTransfer = exports.FeeDeductionEvent = exports.QueryAllMinGasPriceResponse = exports.QueryAllMinGasPriceRequest = exports.QueryGetMinGasPriceResponse = exports.QueryGetMinGasPriceRequest = exports.QueryAllMsgGasCostResponse = exports.QueryAllMsgGasCostRequest = exports.QueryGetMsgGasCostResponse = exports.QueryGetMsgGasCostRequest = exports.RemoveMinGasPriceProposal = exports.RemoveMsgGasCostProposal = exports.SetMinGasPriceProposal = exports.SetMsgGasCostProposal = exports.MinGasPrice = exports.MsgGasCost =
|
|
31
|
-
exports.QueryMarketstatsParamsRequest = exports.QueryCrisisParamsResponse = exports.QueryCrisisParamsRequest = exports.OracleSlashEvent = exports.ResultEvent = exports.QueryOracleParamsResponse = exports.QueryOracleParamsRequest = exports.QueryOracleVotesWindowResponse = exports.QueryOracleVotesWindowRequest = exports.QueryAllOracleVotesWindowResponse = exports.QueryAllOracleVotesWindowRequest = exports.QuerySlashCounterResponse = exports.QuerySlashCounterRequest = exports.QueryAllSlashCounterResponse = exports.QueryAllSlashCounterRequest = exports.QueryVoterPowerResponse = exports.QueryVoterPowerRequest = exports.QueryAllVoteResponse = exports.QueryAllVoteRequest = exports.QueryAllResultResponse = exports.QueryAllResultRequest = exports.QueryAllOracleResponse = exports.QueryAllOracleRequest = exports.QueryOracleResponse = exports.QueryOracleRequest = exports.CreateOracleProposal = exports.SlashCounter = exports.OracleVotesWindow = exports.Mark = exports.Result = exports.Vote = exports.Oracle = exports.OracleParams = exports.MsgSetOracleSlashEnabledResponse = exports.MsgSetOracleSlashEnabled = exports.MsgRemoveOracleResponse = exports.MsgRemoveOracle = exports.MsgUpdateOracleResponse = exports.UpdateOracleParams = exports.MsgUpdateOracle = exports.MsgCreateVoteResponse = exports.MsgCreateVote = exports.MsgCreateOracleResponse = exports.CreateOracleParams = exports.MsgCreateOracle = exports.PositionEvent = exports.QueryPositionAllocatedMarginResponse = exports.QueryPositionAllocatedMarginRequest = exports.QueryAllPositionResponse =
|
|
32
|
-
exports.UpdateGroupedTokenConfigParams = exports.MsgUpdateGroupedTokenConfig = exports.MsgWithdrawFromGroupResponse = exports.MsgWithdrawFromGroup = exports.MsgDepositToGroupResponse = exports.MsgDepositToGroup = exports.MsgDeregisterFromGroupResponse = exports.MsgDeregisterFromGroup = exports.MsgRegisterToGroupResponse = exports.MsgRegisterToGroup = exports.MsgUpdateGroupResponse = exports.UpdateGroupParams = exports.MsgUpdateGroup = exports.MsgCreateGroupResponse = exports.MsgCreateGroup = exports.MsgRemoveBridgeAddressResponse = exports.MsgRemoveBridgeAddress = exports.MsgAddBridgeAddressResponse = exports.MsgAddBridgeAddress = exports.MsgUpdateTokenResponse = exports.UpdateTokenParams = exports.MsgUpdateToken = exports.MsgRemoveBridgeResponse = exports.MsgRemoveBridge = exports.MsgEditBridgeNameResponse = exports.MsgEditBridgeName = exports.MsgDeauthorizeBridgeResponse = exports.MsgDeauthorizeBridge = exports.MsgAuthorizeBridgeResponse = exports.MsgAuthorizeBridge = exports.MsgWithdrawResponse = exports.MsgWithdraw = exports.MsgLinkTokenResponse = exports.MsgLinkToken = exports.MsgUnbindTokenResponse = exports.MsgUnbindToken = exports.MsgBindTokenResponse = exports.MsgBindToken = exports.MsgMintTokenResponse = exports.MsgMintToken = exports.MsgSyncTokenResponse = exports.MsgSyncToken = exports.MsgCreateTokenResponse = exports.CreateTokenParams = exports.MsgCreateToken = exports.MarketStats = exports.MarketstatsParams = exports.QueryMarketStatsResponse = exports.QueryMarketStatsRequest =
|
|
33
|
-
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 =
|
|
34
|
-
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 =
|
|
35
|
-
exports.
|
|
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 = void 0;
|
|
29
|
+
exports.MsgFee = exports.MsgRemoveMinGasPriceResponse = exports.MsgRemoveMinGasPrice = exports.MsgRemoveGasCostResponse = exports.MsgRemoveGasCost = exports.MsgSetMinGasPriceResponse = exports.MsgSetMinGasPrice = exports.MsgSetGasCostResponse = exports.MsgSetGasCost = exports.TradeEvent = exports.QueryTradesForPositionResponse = exports.QueryTradesForPositionRequest = exports.QueryTradesResponse = exports.QueryTradesRequest = exports.QueryCandlesticksResponse = exports.QueryCandlesticksRequest = exports.Amm = exports.Candlestick = exports.MinMaxBoundary = exports.IncomingLiquidations = exports.MsgInitiateLiquidationResponse = exports.MsgInitiateLiquidation = exports.LiquidatorPosition = exports.CompressedNonExistenceProof = exports.CompressedExistenceProof = exports.CompressedBatchEntry = exports.CompressedBatchProof = exports.BatchEntry = exports.BatchProof = exports.InnerSpec = exports.ProofSpec = exports.InnerOp = exports.LeafOp = exports.CommitmentProof = exports.NonExistenceProof = exports.ExistenceProof = exports.lengthOpToJSON = exports.lengthOpFromJSON = exports.LengthOp = exports.hashOpToJSON = exports.hashOpFromJSON = exports.HashOp = exports.CdpParams = exports.RefundReserveEvent = exports.AddReserveEvent = exports.RewardSchemeEvent = exports.RewardDebtEvent = exports.ClaimRewardEvent = exports.LiquidateCollateralWithStablecoinEvent = exports.LiquidateCollateralEvent = void 0;
|
|
30
|
+
exports.QueryAllPositionRequest = exports.QueryGetPositionResponse = exports.QueryGetPositionRequest = exports.PositionAllocatedMargin = exports.APIPosition = exports.Positions = exports.Position = exports.MsgSetMarginResponse = exports.MsgSetMargin = exports.Duration = exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = exports.Timestamp = exports.Any = exports.QueryLiquidationParamsResponse = exports.QueryLiquidationParamsRequest = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.OutstandingPositions = exports.OutstandingPosition = exports.QuoteChanges = exports.LiquidationParams = exports.CoinSent = exports.CoinReceived = exports.CoinSpent = exports.QueryInternalTransfersResponse = exports.QueryInternalTransfersRequest = exports.InternalTransfer = exports.FeeDeductionEvent = exports.QueryAllMinGasPriceResponse = exports.QueryAllMinGasPriceRequest = exports.QueryGetMinGasPriceResponse = exports.QueryGetMinGasPriceRequest = exports.QueryAllMsgGasCostResponse = exports.QueryAllMsgGasCostRequest = exports.QueryGetMsgGasCostResponse = exports.QueryGetMsgGasCostRequest = exports.RemoveMinGasPriceProposal = exports.RemoveMsgGasCostProposal = exports.SetMinGasPriceProposal = exports.SetMsgGasCostProposal = exports.MinGasPrice = exports.MsgGasCost = void 0;
|
|
31
|
+
exports.QueryMarketstatsParamsResponse = exports.QueryMarketstatsParamsRequest = exports.QueryCrisisParamsResponse = exports.QueryCrisisParamsRequest = exports.OracleSlashEvent = exports.ResultEvent = exports.QueryOracleParamsResponse = exports.QueryOracleParamsRequest = exports.QueryOracleVotesWindowResponse = exports.QueryOracleVotesWindowRequest = exports.QueryAllOracleVotesWindowResponse = exports.QueryAllOracleVotesWindowRequest = exports.QuerySlashCounterResponse = exports.QuerySlashCounterRequest = exports.QueryAllSlashCounterResponse = exports.QueryAllSlashCounterRequest = exports.QueryVoterPowerResponse = exports.QueryVoterPowerRequest = exports.QueryAllVoteResponse = exports.QueryAllVoteRequest = exports.QueryAllResultResponse = exports.QueryAllResultRequest = exports.QueryAllOracleResponse = exports.QueryAllOracleRequest = exports.QueryOracleResponse = exports.QueryOracleRequest = exports.CreateOracleProposal = exports.SlashCounter = exports.OracleVotesWindow = exports.Mark = exports.Result = exports.Vote = exports.Oracle = exports.OracleParams = exports.MsgSetOracleSlashEnabledResponse = exports.MsgSetOracleSlashEnabled = exports.MsgRemoveOracleResponse = exports.MsgRemoveOracle = exports.MsgUpdateOracleResponse = exports.UpdateOracleParams = exports.MsgUpdateOracle = exports.MsgCreateVoteResponse = exports.MsgCreateVote = exports.MsgCreateOracleResponse = exports.CreateOracleParams = exports.MsgCreateOracle = exports.PositionEvent = exports.QueryPositionAllocatedMarginResponse = exports.QueryPositionAllocatedMarginRequest = exports.QueryAllPositionResponse = void 0;
|
|
32
|
+
exports.MsgUpdateGroupedTokenConfigResponse = exports.UpdateGroupedTokenConfigParams = exports.MsgUpdateGroupedTokenConfig = exports.MsgWithdrawFromGroupResponse = exports.MsgWithdrawFromGroup = exports.MsgDepositToGroupResponse = exports.MsgDepositToGroup = exports.MsgDeregisterFromGroupResponse = exports.MsgDeregisterFromGroup = exports.MsgRegisterToGroupResponse = exports.MsgRegisterToGroup = exports.MsgUpdateGroupResponse = exports.UpdateGroupParams = exports.MsgUpdateGroup = exports.MsgCreateGroupResponse = exports.MsgCreateGroup = exports.MsgRemoveBridgeAddressResponse = exports.MsgRemoveBridgeAddress = exports.MsgAddBridgeAddressResponse = exports.MsgAddBridgeAddress = exports.MsgUpdateTokenResponse = exports.UpdateTokenParams = exports.MsgUpdateToken = exports.MsgRemoveBridgeResponse = exports.MsgRemoveBridge = exports.MsgEditBridgeNameResponse = exports.MsgEditBridgeName = exports.MsgDeauthorizeBridgeResponse = exports.MsgDeauthorizeBridge = exports.MsgAuthorizeBridgeResponse = exports.MsgAuthorizeBridge = exports.MsgWithdrawResponse = exports.MsgWithdraw = exports.MsgLinkTokenResponse = exports.MsgLinkToken = exports.MsgUnbindTokenResponse = exports.MsgUnbindToken = exports.MsgBindTokenResponse = exports.MsgBindToken = exports.MsgMintTokenResponse = exports.MsgMintToken = exports.MsgSyncTokenResponse = exports.MsgSyncToken = exports.MsgCreateTokenResponse = exports.CreateTokenParams = exports.MsgCreateToken = exports.MarketStats = exports.MarketstatsParams = exports.QueryMarketStatsResponse = exports.QueryMarketStatsRequest = void 0;
|
|
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
|
+
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
|
+
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.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");
|
|
@@ -379,10 +379,6 @@ exports.registry.register("/Switcheo.carbon.liquiditypool.MsgAddLiquidity", tx_2
|
|
|
379
379
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgAddLiquidityResponse", tx_27.MsgAddLiquidityResponse);
|
|
380
380
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgRemoveLiquidity", tx_27.MsgRemoveLiquidity);
|
|
381
381
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgRemoveLiquidityResponse", tx_27.MsgRemoveLiquidityResponse);
|
|
382
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgLinkPool", tx_27.MsgLinkPool);
|
|
383
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgLinkPoolResponse", tx_27.MsgLinkPoolResponse);
|
|
384
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUnlinkPool", tx_27.MsgUnlinkPool);
|
|
385
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUnlinkPoolResponse", tx_27.MsgUnlinkPoolResponse);
|
|
386
382
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgSetRewardsWeights", tx_27.MsgSetRewardsWeights);
|
|
387
383
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgSetRewardsWeightsResponse", tx_27.MsgSetRewardsWeightsResponse);
|
|
388
384
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgStakePoolToken", tx_27.MsgStakePoolToken);
|
|
@@ -397,12 +393,19 @@ exports.registry.register("/Switcheo.carbon.liquiditypool.MsgSetCommitmentCurve"
|
|
|
397
393
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgSetCommitmentCurveResponse", tx_27.MsgSetCommitmentCurveResponse);
|
|
398
394
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUpdatePool", tx_27.MsgUpdatePool);
|
|
399
395
|
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUpdatePoolResponse", tx_27.MsgUpdatePoolResponse);
|
|
400
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.
|
|
401
|
-
exports.registry.register("/Switcheo.carbon.liquiditypool.
|
|
396
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgCreatePoolRoute", tx_27.MsgCreatePoolRoute);
|
|
397
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgCreatePoolRouteResponse", tx_27.MsgCreatePoolRouteResponse);
|
|
398
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgRemovePoolRoute", tx_27.MsgRemovePoolRoute);
|
|
399
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgRemovePoolRouteResponse", tx_27.MsgRemovePoolRouteResponse);
|
|
400
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUpdatePoolRoute", tx_27.MsgUpdatePoolRoute);
|
|
401
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.MsgUpdatePoolRouteResponse", tx_27.MsgUpdatePoolRouteResponse);
|
|
402
402
|
exports.registry.register("/Switcheo.carbon.liquiditypool.SetRewardCurveProposal", proposal_5.SetRewardCurveProposal);
|
|
403
403
|
exports.registry.register("/Switcheo.carbon.liquiditypool.SetCommitmentCurveProposal", proposal_5.SetCommitmentCurveProposal);
|
|
404
404
|
exports.registry.register("/Switcheo.carbon.liquiditypool.SetRewardsWeightsProposal", proposal_5.SetRewardsWeightsProposal);
|
|
405
405
|
exports.registry.register("/Switcheo.carbon.liquiditypool.UpdatePoolProposal", proposal_5.UpdatePoolProposal);
|
|
406
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.CreatePoolRouteProposal", proposal_5.CreatePoolRouteProposal);
|
|
407
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.RemovePoolRouteProposal", proposal_5.RemovePoolRouteProposal);
|
|
408
|
+
exports.registry.register("/Switcheo.carbon.liquiditypool.UpdatePoolRouteProposal", proposal_5.UpdatePoolRouteProposal);
|
|
406
409
|
exports.registry.register("/Switcheo.carbon.pricing.MsgSetBackfillTimeInterval", tx_28.MsgSetBackfillTimeInterval);
|
|
407
410
|
exports.registry.register("/Switcheo.carbon.pricing.MsgSetBackfillTimeIntervalResponse", tx_28.MsgSetBackfillTimeIntervalResponse);
|
|
408
411
|
exports.registry.register("/Switcheo.carbon.pricing.MsgSetSmoothenBand", tx_28.MsgSetSmoothenBand);
|
|
@@ -721,10 +724,6 @@ exports.TxTypes = {
|
|
|
721
724
|
"MsgAddLiquidityResponse": "/Switcheo.carbon.liquiditypool.MsgAddLiquidityResponse",
|
|
722
725
|
"MsgRemoveLiquidity": "/Switcheo.carbon.liquiditypool.MsgRemoveLiquidity",
|
|
723
726
|
"MsgRemoveLiquidityResponse": "/Switcheo.carbon.liquiditypool.MsgRemoveLiquidityResponse",
|
|
724
|
-
"MsgLinkPool": "/Switcheo.carbon.liquiditypool.MsgLinkPool",
|
|
725
|
-
"MsgLinkPoolResponse": "/Switcheo.carbon.liquiditypool.MsgLinkPoolResponse",
|
|
726
|
-
"MsgUnlinkPool": "/Switcheo.carbon.liquiditypool.MsgUnlinkPool",
|
|
727
|
-
"MsgUnlinkPoolResponse": "/Switcheo.carbon.liquiditypool.MsgUnlinkPoolResponse",
|
|
728
727
|
"MsgSetRewardsWeights": "/Switcheo.carbon.liquiditypool.MsgSetRewardsWeights",
|
|
729
728
|
"MsgSetRewardsWeightsResponse": "/Switcheo.carbon.liquiditypool.MsgSetRewardsWeightsResponse",
|
|
730
729
|
"MsgStakePoolToken": "/Switcheo.carbon.liquiditypool.MsgStakePoolToken",
|
|
@@ -739,12 +738,19 @@ exports.TxTypes = {
|
|
|
739
738
|
"MsgSetCommitmentCurveResponse": "/Switcheo.carbon.liquiditypool.MsgSetCommitmentCurveResponse",
|
|
740
739
|
"MsgUpdatePool": "/Switcheo.carbon.liquiditypool.MsgUpdatePool",
|
|
741
740
|
"MsgUpdatePoolResponse": "/Switcheo.carbon.liquiditypool.MsgUpdatePoolResponse",
|
|
742
|
-
"
|
|
743
|
-
"
|
|
741
|
+
"MsgCreatePoolRoute": "/Switcheo.carbon.liquiditypool.MsgCreatePoolRoute",
|
|
742
|
+
"MsgCreatePoolRouteResponse": "/Switcheo.carbon.liquiditypool.MsgCreatePoolRouteResponse",
|
|
743
|
+
"MsgRemovePoolRoute": "/Switcheo.carbon.liquiditypool.MsgRemovePoolRoute",
|
|
744
|
+
"MsgRemovePoolRouteResponse": "/Switcheo.carbon.liquiditypool.MsgRemovePoolRouteResponse",
|
|
745
|
+
"MsgUpdatePoolRoute": "/Switcheo.carbon.liquiditypool.MsgUpdatePoolRoute",
|
|
746
|
+
"MsgUpdatePoolRouteResponse": "/Switcheo.carbon.liquiditypool.MsgUpdatePoolRouteResponse",
|
|
744
747
|
"SetRewardCurveProposal": "/Switcheo.carbon.liquiditypool.SetRewardCurveProposal",
|
|
745
748
|
"SetCommitmentCurveProposal": "/Switcheo.carbon.liquiditypool.SetCommitmentCurveProposal",
|
|
746
749
|
"SetRewardsWeightsProposal": "/Switcheo.carbon.liquiditypool.SetRewardsWeightsProposal",
|
|
747
750
|
"UpdatePoolProposal": "/Switcheo.carbon.liquiditypool.UpdatePoolProposal",
|
|
751
|
+
"CreatePoolRouteProposal": "/Switcheo.carbon.liquiditypool.CreatePoolRouteProposal",
|
|
752
|
+
"RemovePoolRouteProposal": "/Switcheo.carbon.liquiditypool.RemovePoolRouteProposal",
|
|
753
|
+
"UpdatePoolRouteProposal": "/Switcheo.carbon.liquiditypool.UpdatePoolRouteProposal",
|
|
748
754
|
"MsgSetBackfillTimeInterval": "/Switcheo.carbon.pricing.MsgSetBackfillTimeInterval",
|
|
749
755
|
"MsgSetBackfillTimeIntervalResponse": "/Switcheo.carbon.pricing.MsgSetBackfillTimeIntervalResponse",
|
|
750
756
|
"MsgSetSmoothenBand": "/Switcheo.carbon.pricing.MsgSetSmoothenBand",
|
|
@@ -1026,8 +1032,6 @@ Object.defineProperty(exports, "QueryTradesForPositionRequest", { enumerable: tr
|
|
|
1026
1032
|
Object.defineProperty(exports, "QueryTradesForPositionResponse", { enumerable: true, get: function () { return query_4.QueryTradesForPositionResponse; } });
|
|
1027
1033
|
var event_3 = require("./broker/event");
|
|
1028
1034
|
Object.defineProperty(exports, "TradeEvent", { enumerable: true, get: function () { return event_3.TradeEvent; } });
|
|
1029
|
-
var incoming_pool_swap_1 = require("./broker/incoming_pool_swap");
|
|
1030
|
-
Object.defineProperty(exports, "IncomingPoolSwap", { enumerable: true, get: function () { return incoming_pool_swap_1.IncomingPoolSwap; } });
|
|
1031
1035
|
var tx_32 = require("./fee/tx");
|
|
1032
1036
|
Object.defineProperty(exports, "MsgSetGasCost", { enumerable: true, get: function () { return tx_32.MsgSetGasCost; } });
|
|
1033
1037
|
Object.defineProperty(exports, "MsgSetGasCostResponse", { enumerable: true, get: function () { return tx_32.MsgSetGasCostResponse; } });
|
|
@@ -1381,12 +1385,6 @@ Object.defineProperty(exports, "MsgAddLiquidity", { enumerable: true, get: funct
|
|
|
1381
1385
|
Object.defineProperty(exports, "MsgAddLiquidityResponse", { enumerable: true, get: function () { return tx_41.MsgAddLiquidityResponse; } });
|
|
1382
1386
|
Object.defineProperty(exports, "MsgRemoveLiquidity", { enumerable: true, get: function () { return tx_41.MsgRemoveLiquidity; } });
|
|
1383
1387
|
Object.defineProperty(exports, "MsgRemoveLiquidityResponse", { enumerable: true, get: function () { return tx_41.MsgRemoveLiquidityResponse; } });
|
|
1384
|
-
Object.defineProperty(exports, "MsgLinkPool", { enumerable: true, get: function () { return tx_41.MsgLinkPool; } });
|
|
1385
|
-
Object.defineProperty(exports, "LinkPoolParams", { enumerable: true, get: function () { return tx_41.LinkPoolParams; } });
|
|
1386
|
-
Object.defineProperty(exports, "MsgLinkPoolResponse", { enumerable: true, get: function () { return tx_41.MsgLinkPoolResponse; } });
|
|
1387
|
-
Object.defineProperty(exports, "MsgUnlinkPool", { enumerable: true, get: function () { return tx_41.MsgUnlinkPool; } });
|
|
1388
|
-
Object.defineProperty(exports, "UnlinkPoolParams", { enumerable: true, get: function () { return tx_41.UnlinkPoolParams; } });
|
|
1389
|
-
Object.defineProperty(exports, "MsgUnlinkPoolResponse", { enumerable: true, get: function () { return tx_41.MsgUnlinkPoolResponse; } });
|
|
1390
1388
|
Object.defineProperty(exports, "MsgSetRewardsWeights", { enumerable: true, get: function () { return tx_41.MsgSetRewardsWeights; } });
|
|
1391
1389
|
Object.defineProperty(exports, "SetRewardsWeightsParams", { enumerable: true, get: function () { return tx_41.SetRewardsWeightsParams; } });
|
|
1392
1390
|
Object.defineProperty(exports, "MsgSetRewardsWeightsResponse", { enumerable: true, get: function () { return tx_41.MsgSetRewardsWeightsResponse; } });
|
|
@@ -1405,6 +1403,15 @@ Object.defineProperty(exports, "MsgSetCommitmentCurveResponse", { enumerable: tr
|
|
|
1405
1403
|
Object.defineProperty(exports, "MsgUpdatePool", { enumerable: true, get: function () { return tx_41.MsgUpdatePool; } });
|
|
1406
1404
|
Object.defineProperty(exports, "UpdatePoolParams", { enumerable: true, get: function () { return tx_41.UpdatePoolParams; } });
|
|
1407
1405
|
Object.defineProperty(exports, "MsgUpdatePoolResponse", { enumerable: true, get: function () { return tx_41.MsgUpdatePoolResponse; } });
|
|
1406
|
+
Object.defineProperty(exports, "MsgCreatePoolRoute", { enumerable: true, get: function () { return tx_41.MsgCreatePoolRoute; } });
|
|
1407
|
+
Object.defineProperty(exports, "MsgCreatePoolRouteResponse", { enumerable: true, get: function () { return tx_41.MsgCreatePoolRouteResponse; } });
|
|
1408
|
+
Object.defineProperty(exports, "CreatePoolRouteParams", { enumerable: true, get: function () { return tx_41.CreatePoolRouteParams; } });
|
|
1409
|
+
Object.defineProperty(exports, "MsgRemovePoolRoute", { enumerable: true, get: function () { return tx_41.MsgRemovePoolRoute; } });
|
|
1410
|
+
Object.defineProperty(exports, "MsgRemovePoolRouteResponse", { enumerable: true, get: function () { return tx_41.MsgRemovePoolRouteResponse; } });
|
|
1411
|
+
Object.defineProperty(exports, "RemovePoolRouteParams", { enumerable: true, get: function () { return tx_41.RemovePoolRouteParams; } });
|
|
1412
|
+
Object.defineProperty(exports, "MsgUpdatePoolRoute", { enumerable: true, get: function () { return tx_41.MsgUpdatePoolRoute; } });
|
|
1413
|
+
Object.defineProperty(exports, "MsgUpdatePoolRouteResponse", { enumerable: true, get: function () { return tx_41.MsgUpdatePoolRouteResponse; } });
|
|
1414
|
+
Object.defineProperty(exports, "UpdatePoolRouteParams", { enumerable: true, get: function () { return tx_41.UpdatePoolRouteParams; } });
|
|
1408
1415
|
var reward_1 = require("./liquiditypool/reward");
|
|
1409
1416
|
Object.defineProperty(exports, "RewardCurve", { enumerable: true, get: function () { return reward_1.RewardCurve; } });
|
|
1410
1417
|
Object.defineProperty(exports, "CommitmentCurve", { enumerable: true, get: function () { return reward_1.CommitmentCurve; } });
|
|
@@ -1426,22 +1433,29 @@ var liquiditypool_1 = require("./liquiditypool/liquiditypool");
|
|
|
1426
1433
|
Object.defineProperty(exports, "LiquiditypoolParams", { enumerable: true, get: function () { return liquiditypool_1.Params; } });
|
|
1427
1434
|
Object.defineProperty(exports, "Pool", { enumerable: true, get: function () { return liquiditypool_1.Pool; } });
|
|
1428
1435
|
Object.defineProperty(exports, "Pools", { enumerable: true, get: function () { return liquiditypool_1.Pools; } });
|
|
1436
|
+
Object.defineProperty(exports, "PoolRoute", { enumerable: true, get: function () { return liquiditypool_1.PoolRoute; } });
|
|
1429
1437
|
Object.defineProperty(exports, "AddLiquidity", { enumerable: true, get: function () { return liquiditypool_1.AddLiquidity; } });
|
|
1430
1438
|
Object.defineProperty(exports, "AddLiquidities", { enumerable: true, get: function () { return liquiditypool_1.AddLiquidities; } });
|
|
1431
1439
|
Object.defineProperty(exports, "RemoveLiquidity", { enumerable: true, get: function () { return liquiditypool_1.RemoveLiquidity; } });
|
|
1432
1440
|
Object.defineProperty(exports, "RemoveLiquidities", { enumerable: true, get: function () { return liquiditypool_1.RemoveLiquidities; } });
|
|
1441
|
+
Object.defineProperty(exports, "RemovePoolRoutes", { enumerable: true, get: function () { return liquiditypool_1.RemovePoolRoutes; } });
|
|
1442
|
+
Object.defineProperty(exports, "PoolReserve", { enumerable: true, get: function () { return liquiditypool_1.PoolReserve; } });
|
|
1433
1443
|
var proposal_11 = require("./liquiditypool/proposal");
|
|
1434
|
-
Object.defineProperty(exports, "LinkPoolProposal", { enumerable: true, get: function () { return proposal_11.LinkPoolProposal; } });
|
|
1435
|
-
Object.defineProperty(exports, "UnlinkPoolProposal", { enumerable: true, get: function () { return proposal_11.UnlinkPoolProposal; } });
|
|
1436
1444
|
Object.defineProperty(exports, "SetRewardCurveProposal", { enumerable: true, get: function () { return proposal_11.SetRewardCurveProposal; } });
|
|
1437
1445
|
Object.defineProperty(exports, "SetCommitmentCurveProposal", { enumerable: true, get: function () { return proposal_11.SetCommitmentCurveProposal; } });
|
|
1438
1446
|
Object.defineProperty(exports, "SetRewardsWeightsProposal", { enumerable: true, get: function () { return proposal_11.SetRewardsWeightsProposal; } });
|
|
1439
1447
|
Object.defineProperty(exports, "UpdatePoolProposal", { enumerable: true, get: function () { return proposal_11.UpdatePoolProposal; } });
|
|
1448
|
+
Object.defineProperty(exports, "CreatePoolRouteProposal", { enumerable: true, get: function () { return proposal_11.CreatePoolRouteProposal; } });
|
|
1449
|
+
Object.defineProperty(exports, "RemovePoolRouteProposal", { enumerable: true, get: function () { return proposal_11.RemovePoolRouteProposal; } });
|
|
1450
|
+
Object.defineProperty(exports, "UpdatePoolRouteProposal", { enumerable: true, get: function () { return proposal_11.UpdatePoolRouteProposal; } });
|
|
1440
1451
|
var query_20 = require("./liquiditypool/query");
|
|
1441
1452
|
Object.defineProperty(exports, "QueryGetPoolRequest", { enumerable: true, get: function () { return query_20.QueryGetPoolRequest; } });
|
|
1442
1453
|
Object.defineProperty(exports, "QueryGetPoolResponse", { enumerable: true, get: function () { return query_20.QueryGetPoolResponse; } });
|
|
1443
1454
|
Object.defineProperty(exports, "QueryAllPoolRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolRequest; } });
|
|
1444
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; } });
|
|
1445
1459
|
Object.defineProperty(exports, "QueryRewardHistoryRequest", { enumerable: true, get: function () { return query_20.QueryRewardHistoryRequest; } });
|
|
1446
1460
|
Object.defineProperty(exports, "ExtendedPool", { enumerable: true, get: function () { return query_20.ExtendedPool; } });
|
|
1447
1461
|
Object.defineProperty(exports, "QueryRewardHistoryResponse", { enumerable: true, get: function () { return query_20.QueryRewardHistoryResponse; } });
|
|
@@ -1463,15 +1477,20 @@ Object.defineProperty(exports, "QueryClaimableRewardsRequest", { enumerable: tru
|
|
|
1463
1477
|
Object.defineProperty(exports, "QueryClaimableRewardsResponse", { enumerable: true, get: function () { return query_20.QueryClaimableRewardsResponse; } });
|
|
1464
1478
|
Object.defineProperty(exports, "QueryLiquiditypoolParamsRequest", { enumerable: true, get: function () { return query_20.QueryParamsRequest; } });
|
|
1465
1479
|
Object.defineProperty(exports, "QueryLiquiditypoolParamsResponse", { enumerable: true, get: function () { return query_20.QueryParamsResponse; } });
|
|
1466
|
-
Object.defineProperty(exports, "
|
|
1467
|
-
Object.defineProperty(exports, "
|
|
1468
|
-
Object.defineProperty(exports, "
|
|
1480
|
+
Object.defineProperty(exports, "QueryAllPoolRouteRequest", { enumerable: true, get: function () { return query_20.QueryAllPoolRouteRequest; } });
|
|
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; } });
|
|
1485
|
+
var legacy_2 = require("./liquiditypool/legacy");
|
|
1486
|
+
Object.defineProperty(exports, "ParamsV2170", { enumerable: true, get: function () { return legacy_2.ParamsV2170; } });
|
|
1469
1487
|
var event_13 = require("./liquiditypool/event");
|
|
1470
1488
|
Object.defineProperty(exports, "PoolEvent", { enumerable: true, get: function () { return event_13.PoolEvent; } });
|
|
1471
1489
|
Object.defineProperty(exports, "TotalCommitmentChangeEvent", { enumerable: true, get: function () { return event_13.TotalCommitmentChangeEvent; } });
|
|
1472
1490
|
Object.defineProperty(exports, "RewardsWeightChangeEvent", { enumerable: true, get: function () { return event_13.RewardsWeightChangeEvent; } });
|
|
1473
1491
|
Object.defineProperty(exports, "CommitmentCurveEvent", { enumerable: true, get: function () { return event_13.CommitmentCurveEvent; } });
|
|
1474
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; } });
|
|
1475
1494
|
var query_21 = require("./insurance/query");
|
|
1476
1495
|
Object.defineProperty(exports, "QueryCoinBalancesRequest", { enumerable: true, get: function () { return query_21.QueryCoinBalancesRequest; } });
|
|
1477
1496
|
Object.defineProperty(exports, "QueryCoinBalancesResponse", { enumerable: true, get: function () { return query_21.QueryCoinBalancesResponse; } });
|
|
@@ -1513,8 +1532,8 @@ Object.defineProperty(exports, "QueryTokenPriceRequest", { enumerable: true, get
|
|
|
1513
1532
|
Object.defineProperty(exports, "QueryTokenPriceResponse", { enumerable: true, get: function () { return query_22.QueryTokenPriceResponse; } });
|
|
1514
1533
|
Object.defineProperty(exports, "QueryTokenPriceAllRequest", { enumerable: true, get: function () { return query_22.QueryTokenPriceAllRequest; } });
|
|
1515
1534
|
Object.defineProperty(exports, "QueryTokenPriceAllResponse", { enumerable: true, get: function () { return query_22.QueryTokenPriceAllResponse; } });
|
|
1516
|
-
var
|
|
1517
|
-
Object.defineProperty(exports, "ParamsV2130", { enumerable: true, get: function () { return
|
|
1535
|
+
var legacy_3 = require("./pricing/legacy");
|
|
1536
|
+
Object.defineProperty(exports, "ParamsV2130", { enumerable: true, get: function () { return legacy_3.ParamsV2130; } });
|
|
1518
1537
|
var event_15 = require("./pricing/event");
|
|
1519
1538
|
Object.defineProperty(exports, "PriceUpdateEvent", { enumerable: true, get: function () { return event_15.PriceUpdateEvent; } });
|
|
1520
1539
|
Object.defineProperty(exports, "TokenPriceUpdateEvent", { enumerable: true, get: function () { return event_15.TokenPriceUpdateEvent; } });
|
|
@@ -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();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "./reward";
|
|
4
|
-
import { Params, Pool } from "./liquiditypool";
|
|
4
|
+
import { Params, Pool, PoolRoute } from "./liquiditypool";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
6
6
|
/** GenesisState defines the liquiditypool module's genesis state. */
|
|
7
7
|
export interface GenesisState {
|
|
@@ -17,6 +17,7 @@ export interface GenesisState {
|
|
|
17
17
|
allocatedRewards?: AllocatedRewards;
|
|
18
18
|
/** params defines all the paramaters of the module. */
|
|
19
19
|
params?: Params;
|
|
20
|
+
poolRoutes: PoolRoute[];
|
|
20
21
|
}
|
|
21
22
|
export declare const GenesisState: {
|
|
22
23
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -46,6 +46,9 @@ exports.GenesisState = {
|
|
|
46
46
|
if (message.params !== undefined) {
|
|
47
47
|
liquiditypool_1.Params.encode(message.params, writer.uint32(90).fork()).ldelim();
|
|
48
48
|
}
|
|
49
|
+
for (const v of message.poolRoutes) {
|
|
50
|
+
liquiditypool_1.PoolRoute.encode(v, writer.uint32(98).fork()).ldelim();
|
|
51
|
+
}
|
|
49
52
|
return writer;
|
|
50
53
|
},
|
|
51
54
|
decode(input, length) {
|
|
@@ -58,6 +61,7 @@ exports.GenesisState = {
|
|
|
58
61
|
message.commitmentExpiries = [];
|
|
59
62
|
message.rewardHistories = [];
|
|
60
63
|
message.lastClaims = [];
|
|
64
|
+
message.poolRoutes = [];
|
|
61
65
|
while (reader.pos < end) {
|
|
62
66
|
const tag = reader.uint32();
|
|
63
67
|
switch (tag >>> 3) {
|
|
@@ -94,6 +98,9 @@ exports.GenesisState = {
|
|
|
94
98
|
case 11:
|
|
95
99
|
message.params = liquiditypool_1.Params.decode(reader, reader.uint32());
|
|
96
100
|
break;
|
|
101
|
+
case 12:
|
|
102
|
+
message.poolRoutes.push(liquiditypool_1.PoolRoute.decode(reader, reader.uint32()));
|
|
103
|
+
break;
|
|
97
104
|
default:
|
|
98
105
|
reader.skipType(tag & 7);
|
|
99
106
|
break;
|
|
@@ -102,7 +109,7 @@ exports.GenesisState = {
|
|
|
102
109
|
return message;
|
|
103
110
|
},
|
|
104
111
|
fromJSON(object) {
|
|
105
|
-
var _a, _b, _c, _d, _e, _f;
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
106
113
|
const message = Object.assign({}, baseGenesisState);
|
|
107
114
|
message.pools = ((_a = object.pools) !== null && _a !== void 0 ? _a : []).map((e) => liquiditypool_1.Pool.fromJSON(e));
|
|
108
115
|
message.rewardCurve =
|
|
@@ -130,6 +137,7 @@ exports.GenesisState = {
|
|
|
130
137
|
object.params !== undefined && object.params !== null
|
|
131
138
|
? liquiditypool_1.Params.fromJSON(object.params)
|
|
132
139
|
: undefined;
|
|
140
|
+
message.poolRoutes = ((_g = object.poolRoutes) !== null && _g !== void 0 ? _g : []).map((e) => liquiditypool_1.PoolRoute.fromJSON(e));
|
|
133
141
|
return message;
|
|
134
142
|
},
|
|
135
143
|
toJSON(message) {
|
|
@@ -188,10 +196,16 @@ exports.GenesisState = {
|
|
|
188
196
|
: undefined);
|
|
189
197
|
message.params !== undefined &&
|
|
190
198
|
(obj.params = message.params ? liquiditypool_1.Params.toJSON(message.params) : undefined);
|
|
199
|
+
if (message.poolRoutes) {
|
|
200
|
+
obj.poolRoutes = message.poolRoutes.map((e) => e ? liquiditypool_1.PoolRoute.toJSON(e) : undefined);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
obj.poolRoutes = [];
|
|
204
|
+
}
|
|
191
205
|
return obj;
|
|
192
206
|
},
|
|
193
207
|
fromPartial(object) {
|
|
194
|
-
var _a, _b, _c, _d, _e, _f;
|
|
208
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
195
209
|
const message = Object.assign({}, baseGenesisState);
|
|
196
210
|
message.pools = ((_a = object.pools) !== null && _a !== void 0 ? _a : []).map((e) => liquiditypool_1.Pool.fromPartial(e));
|
|
197
211
|
message.rewardCurve =
|
|
@@ -219,6 +233,7 @@ exports.GenesisState = {
|
|
|
219
233
|
object.params !== undefined && object.params !== null
|
|
220
234
|
? liquiditypool_1.Params.fromPartial(object.params)
|
|
221
235
|
: undefined;
|
|
236
|
+
message.poolRoutes = ((_g = object.poolRoutes) !== null && _g !== void 0 ? _g : []).map((e) => liquiditypool_1.PoolRoute.fromPartial(e));
|
|
222
237
|
return message;
|
|
223
238
|
},
|
|
224
239
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
4
|
+
export interface ParamsV2170 {
|
|
5
|
+
rewardReductionThreshold: Long;
|
|
6
|
+
}
|
|
7
|
+
export declare const ParamsV2170: {
|
|
8
|
+
encode(message: ParamsV2170, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ParamsV2170;
|
|
10
|
+
fromJSON(object: any): ParamsV2170;
|
|
11
|
+
toJSON(message: ParamsV2170): unknown;
|
|
12
|
+
fromPartial(object: DeepPartial<ParamsV2170>): ParamsV2170;
|
|
13
|
+
};
|
|
14
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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 {} ? {
|
|
16
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
17
|
+
} : Partial<T>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ParamsV2170 = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
11
|
+
const baseParamsV2170 = { rewardReductionThreshold: long_1.default.UZERO };
|
|
12
|
+
exports.ParamsV2170 = {
|
|
13
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
if (!message.rewardReductionThreshold.isZero()) {
|
|
15
|
+
writer.uint32(8).uint64(message.rewardReductionThreshold);
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = Object.assign({}, baseParamsV2170);
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
case 1:
|
|
27
|
+
message.rewardReductionThreshold = reader.uint64();
|
|
28
|
+
break;
|
|
29
|
+
default:
|
|
30
|
+
reader.skipType(tag & 7);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return message;
|
|
35
|
+
},
|
|
36
|
+
fromJSON(object) {
|
|
37
|
+
const message = Object.assign({}, baseParamsV2170);
|
|
38
|
+
message.rewardReductionThreshold =
|
|
39
|
+
object.rewardReductionThreshold !== undefined &&
|
|
40
|
+
object.rewardReductionThreshold !== null
|
|
41
|
+
? long_1.default.fromString(object.rewardReductionThreshold)
|
|
42
|
+
: long_1.default.UZERO;
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
toJSON(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
message.rewardReductionThreshold !== undefined &&
|
|
48
|
+
(obj.rewardReductionThreshold = (message.rewardReductionThreshold || long_1.default.UZERO).toString());
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = Object.assign({}, baseParamsV2170);
|
|
53
|
+
message.rewardReductionThreshold =
|
|
54
|
+
object.rewardReductionThreshold !== undefined &&
|
|
55
|
+
object.rewardReductionThreshold !== null
|
|
56
|
+
? long_1.default.fromValue(object.rewardReductionThreshold)
|
|
57
|
+
: long_1.default.UZERO;
|
|
58
|
+
return message;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
62
|
+
minimal_1.default.util.Long = long_1.default;
|
|
63
|
+
minimal_1.default.configure();
|
|
64
|
+
}
|