carbon-js-sdk 0.2.17 → 0.2.18-dev.0
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/CarbonSDK.d.ts +13 -1
- package/lib/CarbonSDK.js +31 -2
- package/lib/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.d.ts +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/N3Client.js +3 -2
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.d.ts +5 -0
- package/lib/clients/TokenClient.js +38 -10
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.js +16 -16
- package/lib/codec/book/genesis.d.ts +1 -1
- package/lib/codec/book/genesis.js +1 -1
- package/lib/codec/book/query.d.ts +1 -1
- package/lib/codec/book/query.js +1 -1
- package/lib/codec/broker/genesis.d.ts +1 -1
- package/lib/codec/broker/genesis.js +1 -1
- package/lib/codec/broker/query.d.ts +3 -3
- package/lib/codec/broker/query.js +3 -3
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
- package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
- package/lib/codec/btcx/query.d.ts +1 -1
- package/lib/codec/btcx/query.js +1 -1
- package/lib/codec/ccm/genesis.d.ts +1 -1
- package/lib/codec/ccm/genesis.js +1 -1
- package/lib/codec/cdp/event.d.ts +389 -22
- package/lib/codec/cdp/event.js +2494 -83
- package/lib/codec/cdp/genesis.d.ts +97 -4
- package/lib/codec/cdp/genesis.js +648 -23
- package/lib/codec/cdp/query.d.ts +439 -89
- package/lib/codec/cdp/query.js +1995 -177
- package/lib/codec/cdp/tx.d.ts +760 -96
- package/lib/codec/cdp/tx.js +3645 -235
- package/lib/codec/coin/event.d.ts +1 -1
- package/lib/codec/coin/event.js +1 -1
- package/lib/codec/coin/genesis.d.ts +2 -2
- package/lib/codec/coin/genesis.js +2 -2
- package/lib/codec/coin/proposal.d.ts +1 -1
- package/lib/codec/coin/proposal.js +1 -1
- package/lib/codec/coin/query.d.ts +2 -2
- package/lib/codec/coin/query.js +2 -2
- package/lib/codec/coin/tx.d.ts +1 -1
- package/lib/codec/coin/tx.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
- package/lib/codec/fee/genesis.d.ts +1 -1
- package/lib/codec/fee/genesis.js +1 -1
- package/lib/codec/fee/proposal.d.ts +1 -1
- package/lib/codec/fee/proposal.js +1 -1
- package/lib/codec/fee/query.d.ts +1 -1
- package/lib/codec/fee/query.js +1 -1
- package/lib/codec/fee/tx.d.ts +1 -1
- package/lib/codec/fee/tx.js +1 -1
- package/lib/codec/headersync/genesis.d.ts +1 -1
- package/lib/codec/headersync/genesis.js +1 -1
- package/lib/codec/headersync/query.d.ts +1 -1
- package/lib/codec/headersync/query.js +1 -1
- package/lib/codec/index.d.ts +89 -18
- package/lib/codec/index.js +463 -180
- package/lib/codec/inflation/genesis.d.ts +1 -1
- package/lib/codec/inflation/genesis.js +1 -1
- package/lib/codec/inflation/query.d.ts +1 -1
- package/lib/codec/inflation/query.js +1 -1
- package/lib/codec/insurance/genesis.d.ts +1 -1
- package/lib/codec/insurance/genesis.js +1 -1
- package/lib/codec/leverage/genesis.d.ts +1 -1
- package/lib/codec/leverage/genesis.js +1 -1
- package/lib/codec/leverage/query.d.ts +1 -1
- package/lib/codec/leverage/query.js +1 -1
- package/lib/codec/liquidation/genesis.d.ts +1 -1
- package/lib/codec/liquidation/genesis.js +1 -1
- package/lib/codec/liquidation/query.d.ts +1 -1
- package/lib/codec/liquidation/query.js +1 -1
- package/lib/codec/liquidation/quote_changes.d.ts +1 -1
- package/lib/codec/liquidation/quote_changes.js +1 -1
- package/lib/codec/liquiditypool/event.d.ts +2 -2
- package/lib/codec/liquiditypool/event.js +2 -2
- package/lib/codec/liquiditypool/genesis.d.ts +2 -2
- package/lib/codec/liquiditypool/genesis.js +2 -2
- package/lib/codec/liquiditypool/liquiditypool.d.ts +3 -0
- package/lib/codec/liquiditypool/liquiditypool.js +44 -1
- package/lib/codec/liquiditypool/proposal.d.ts +1 -1
- package/lib/codec/liquiditypool/proposal.js +1 -1
- package/lib/codec/liquiditypool/query.d.ts +39 -2
- package/lib/codec/liquiditypool/query.js +195 -3
- package/lib/codec/liquiditypool/tx.d.ts +3 -1
- package/lib/codec/liquiditypool/tx.js +35 -1
- package/lib/codec/lockproxy/genesis.d.ts +1 -1
- package/lib/codec/lockproxy/genesis.js +1 -1
- package/lib/codec/lockproxy/query.d.ts +1 -1
- package/lib/codec/lockproxy/query.js +1 -1
- package/lib/codec/market/event.d.ts +1 -1
- package/lib/codec/market/event.js +1 -1
- package/lib/codec/market/genesis.d.ts +1 -1
- package/lib/codec/market/genesis.js +1 -1
- package/lib/codec/market/proposal.d.ts +1 -1
- package/lib/codec/market/proposal.js +1 -1
- package/lib/codec/market/query.d.ts +1 -1
- package/lib/codec/market/query.js +1 -1
- package/lib/codec/market/tx.d.ts +1 -1
- package/lib/codec/market/tx.js +1 -1
- package/lib/codec/marketstats/genesis.d.ts +1 -1
- package/lib/codec/marketstats/genesis.js +1 -1
- package/lib/codec/marketstats/query.d.ts +2 -2
- package/lib/codec/marketstats/query.js +2 -2
- package/lib/codec/misc/message.d.ts +1 -1
- package/lib/codec/misc/message.js +1 -1
- package/lib/codec/misc/query.d.ts +3 -3
- package/lib/codec/misc/query.js +3 -3
- package/lib/codec/misc/transaction.d.ts +1 -1
- package/lib/codec/misc/transaction.js +1 -1
- package/lib/codec/oracle/event.d.ts +1 -1
- package/lib/codec/oracle/event.js +1 -1
- package/lib/codec/oracle/genesis.d.ts +4 -1
- package/lib/codec/oracle/genesis.js +34 -3
- package/lib/codec/oracle/proposal.d.ts +1 -1
- package/lib/codec/oracle/proposal.js +1 -1
- package/lib/codec/oracle/query.d.ts +2 -2
- package/lib/codec/oracle/query.js +2 -2
- package/lib/codec/order/event.d.ts +1 -1
- package/lib/codec/order/event.js +1 -1
- package/lib/codec/order/genesis.d.ts +1 -1
- package/lib/codec/order/genesis.js +1 -1
- package/lib/codec/order/query.d.ts +1 -1
- package/lib/codec/order/query.js +1 -1
- package/lib/codec/position/event.d.ts +1 -1
- package/lib/codec/position/event.js +1 -1
- package/lib/codec/position/genesis.d.ts +1 -1
- package/lib/codec/position/genesis.js +1 -1
- package/lib/codec/position/query.d.ts +1 -1
- package/lib/codec/position/query.js +1 -1
- package/lib/codec/pricing/event.d.ts +56 -1
- package/lib/codec/pricing/event.js +298 -2
- package/lib/codec/pricing/genesis.d.ts +2 -1
- package/lib/codec/pricing/genesis.js +20 -5
- package/lib/codec/pricing/pricing.d.ts +14 -0
- package/lib/codec/pricing/pricing.js +103 -1
- package/lib/codec/pricing/query.d.ts +68 -1
- package/lib/codec/pricing/query.js +321 -2
- package/lib/codec/pricing/tx.d.ts +96 -0
- package/lib/codec/pricing/tx.js +399 -1
- package/lib/codec/profile/event.d.ts +1 -1
- package/lib/codec/profile/event.js +1 -1
- package/lib/codec/profile/genesis.d.ts +1 -1
- package/lib/codec/profile/genesis.js +1 -1
- package/lib/codec/profile/query.d.ts +1 -1
- package/lib/codec/profile/query.js +1 -1
- package/lib/codec/subaccount/genesis.d.ts +1 -1
- package/lib/codec/subaccount/genesis.js +1 -1
- package/lib/codec/subaccount/query.d.ts +1 -1
- package/lib/codec/subaccount/query.js +1 -1
- package/lib/codec/tendermint/abci/types.d.ts +4 -4
- package/lib/codec/tendermint/abci/types.js +4 -4
- package/lib/codec/tendermint/types/block.d.ts +2 -2
- package/lib/codec/tendermint/types/block.js +2 -2
- package/lib/codec/tendermint/types/evidence.d.ts +2 -2
- package/lib/codec/tendermint/types/evidence.js +2 -2
- package/lib/codec/tendermint/types/types.d.ts +3 -3
- package/lib/codec/tendermint/types/types.js +3 -3
- package/lib/codec/tendermint/types/validator.d.ts +1 -1
- package/lib/codec/tendermint/types/validator.js +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/token.d.ts +4 -0
- package/lib/constant/token.js +5 -1
- package/lib/modules/admin.d.ts +114 -7
- package/lib/modules/admin.js +275 -53
- package/lib/modules/cdp.d.ts +152 -13
- package/lib/modules/cdp.js +800 -20
- package/lib/modules/gov.js +14 -14
- package/lib/modules/liquiditypool.d.ts +3 -0
- package/lib/modules/liquiditypool.js +3 -1
- 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 +91 -26
- 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 +135 -24
- package/lib/provider/amino/types/coin.js +2 -2
- package/lib/provider/amino/types/gov.js +4 -4
- 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 +9 -7
- 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/keplr/KeplrStore.js +1 -1
- 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.d.ts +1 -0
- package/lib/util/address.js +21 -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/number.d.ts +1 -0
- package/lib/util/number.js +7 -6
- package/lib/util/tx.d.ts +74 -10
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -7
- package/lib/websocket/channel.js +115 -21
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +156 -0
- package/lib/websocket/types.d.ts +87 -3
- package/lib/websocket/types.js +31 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MintData } from "
|
|
3
|
+
import { MintData } from "./inflation";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.inflation";
|
|
5
5
|
/** GenesisState defines the inflation module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const inflation_1 = require("
|
|
10
|
+
const inflation_1 = require("./inflation");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.inflation";
|
|
12
12
|
const baseGenesisState = { inflationEnabled: false };
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MintData } from "
|
|
3
|
+
import { MintData } from "./inflation";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.inflation";
|
|
5
5
|
export interface QueryMintDataRequest {
|
|
6
6
|
}
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryMintDataResponse = exports.QueryMintDataR
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const inflation_1 = require("
|
|
10
|
+
const inflation_1 = require("./inflation");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.inflation";
|
|
12
12
|
const baseQueryMintDataRequest = {};
|
|
13
13
|
exports.QueryMintDataRequest = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { FundByMarket } from "
|
|
3
|
+
import { FundByMarket } from "./fund";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.insurance";
|
|
5
5
|
/** GenesisState defines the insurance module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const fund_1 = require("
|
|
10
|
+
const fund_1 = require("./fund");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.insurance";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MarketLeverageRecord } from "
|
|
3
|
+
import { MarketLeverageRecord } from "./leverage";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.leverage";
|
|
5
5
|
/** GenesisState defines the leverage module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const leverage_1 = require("
|
|
10
|
+
const leverage_1 = require("./leverage");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.leverage";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MarketLeverage } from "
|
|
3
|
+
import { MarketLeverage } from "./leverage";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.leverage";
|
|
5
5
|
/** this line is used by starport scaffolding # 3 */
|
|
6
6
|
export interface QueryGetLeverageRequest {
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllLeverageResponse = exports.QueryAllLev
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const leverage_1 = require("
|
|
10
|
+
const leverage_1 = require("./leverage");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.leverage";
|
|
12
12
|
const baseQueryGetLeverageRequest = { address: "", market: "" };
|
|
13
13
|
exports.QueryGetLeverageRequest = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { OutstandingPositions } from "
|
|
3
|
+
import { OutstandingPositions } from "./outstanding_position";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.liquidation";
|
|
5
5
|
/** GenesisState defines the liquidation module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState_OutstandingPositionsEntry = exports.GenesisState = exports.
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const outstanding_position_1 = require("
|
|
10
|
+
const outstanding_position_1 = require("./outstanding_position");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.liquidation";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "
|
|
3
|
+
import { Params } from "./liquidation";
|
|
4
4
|
import { AccountTrade } from "../misc/trade";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.liquidation";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const liquidation_1 = require("
|
|
10
|
+
const liquidation_1 = require("./liquidation");
|
|
11
11
|
const trade_1 = require("../misc/trade");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquidation";
|
|
13
13
|
const baseQueryAllLiquidationRequest = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Order } from "../order/order";
|
|
4
|
-
import { OutstandingPosition } from "
|
|
4
|
+
import { OutstandingPosition } from "./outstanding_position";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.liquidation";
|
|
6
6
|
export interface QuoteChanges {
|
|
7
7
|
create: Order[];
|
|
@@ -8,7 +8,7 @@ exports.QuoteChanges = exports.protobufPackage = void 0;
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const order_1 = require("../order/order");
|
|
11
|
-
const outstanding_position_1 = require("
|
|
11
|
+
const outstanding_position_1 = require("./outstanding_position");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquidation";
|
|
13
13
|
const baseQuoteChanges = { remove: "" };
|
|
14
14
|
exports.QuoteChanges = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Pool } from "
|
|
4
|
-
import { CommitmentCurve, Commitment } from "
|
|
3
|
+
import { Pool } from "./liquiditypool";
|
|
4
|
+
import { CommitmentCurve, Commitment } from "./reward";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
6
6
|
export interface PoolEvent {
|
|
7
7
|
creator: string;
|
|
@@ -7,8 +7,8 @@ exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightCh
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const liquiditypool_1 = require("
|
|
11
|
-
const reward_1 = require("
|
|
10
|
+
const liquiditypool_1 = require("./liquiditypool");
|
|
11
|
+
const reward_1 = require("./reward");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
13
13
|
const basePoolEvent = {
|
|
14
14
|
creator: "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "
|
|
4
|
-
import { Params, Pool } from "
|
|
3
|
+
import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "./reward";
|
|
4
|
+
import { Params, Pool } 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 {
|
|
@@ -7,8 +7,8 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const reward_1 = require("
|
|
11
|
-
const liquiditypool_1 = require("
|
|
10
|
+
const reward_1 = require("./reward");
|
|
11
|
+
const liquiditypool_1 = require("./liquiditypool");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
13
13
|
const baseGenesisState = {};
|
|
14
14
|
exports.GenesisState = {
|
|
@@ -73,6 +73,9 @@ const basePool = {
|
|
|
73
73
|
numQuotes: long_1.default.ZERO,
|
|
74
74
|
sharesAmount: "",
|
|
75
75
|
market: "",
|
|
76
|
+
ampBps: long_1.default.UZERO,
|
|
77
|
+
vAmountA: "",
|
|
78
|
+
vAmountB: "",
|
|
76
79
|
};
|
|
77
80
|
exports.Pool = {
|
|
78
81
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -118,6 +121,15 @@ exports.Pool = {
|
|
|
118
121
|
if (message.market !== "") {
|
|
119
122
|
writer.uint32(114).string(message.market);
|
|
120
123
|
}
|
|
124
|
+
if (!message.ampBps.isZero()) {
|
|
125
|
+
writer.uint32(120).uint64(message.ampBps);
|
|
126
|
+
}
|
|
127
|
+
if (message.vAmountA !== "") {
|
|
128
|
+
writer.uint32(130).string(message.vAmountA);
|
|
129
|
+
}
|
|
130
|
+
if (message.vAmountB !== "") {
|
|
131
|
+
writer.uint32(138).string(message.vAmountB);
|
|
132
|
+
}
|
|
121
133
|
return writer;
|
|
122
134
|
},
|
|
123
135
|
decode(input, length) {
|
|
@@ -169,6 +181,15 @@ exports.Pool = {
|
|
|
169
181
|
case 14:
|
|
170
182
|
message.market = reader.string();
|
|
171
183
|
break;
|
|
184
|
+
case 15:
|
|
185
|
+
message.ampBps = reader.uint64();
|
|
186
|
+
break;
|
|
187
|
+
case 16:
|
|
188
|
+
message.vAmountA = reader.string();
|
|
189
|
+
break;
|
|
190
|
+
case 17:
|
|
191
|
+
message.vAmountB = reader.string();
|
|
192
|
+
break;
|
|
172
193
|
default:
|
|
173
194
|
reader.skipType(tag & 7);
|
|
174
195
|
break;
|
|
@@ -234,6 +255,18 @@ exports.Pool = {
|
|
|
234
255
|
object.market !== undefined && object.market !== null
|
|
235
256
|
? String(object.market)
|
|
236
257
|
: "";
|
|
258
|
+
message.ampBps =
|
|
259
|
+
object.ampBps !== undefined && object.ampBps !== null
|
|
260
|
+
? long_1.default.fromString(object.ampBps)
|
|
261
|
+
: long_1.default.UZERO;
|
|
262
|
+
message.vAmountA =
|
|
263
|
+
object.vAmountA !== undefined && object.vAmountA !== null
|
|
264
|
+
? String(object.vAmountA)
|
|
265
|
+
: "";
|
|
266
|
+
message.vAmountB =
|
|
267
|
+
object.vAmountB !== undefined && object.vAmountB !== null
|
|
268
|
+
? String(object.vAmountB)
|
|
269
|
+
: "";
|
|
237
270
|
return message;
|
|
238
271
|
},
|
|
239
272
|
toJSON(message) {
|
|
@@ -255,10 +288,14 @@ exports.Pool = {
|
|
|
255
288
|
message.sharesAmount !== undefined &&
|
|
256
289
|
(obj.sharesAmount = message.sharesAmount);
|
|
257
290
|
message.market !== undefined && (obj.market = message.market);
|
|
291
|
+
message.ampBps !== undefined &&
|
|
292
|
+
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
293
|
+
message.vAmountA !== undefined && (obj.vAmountA = message.vAmountA);
|
|
294
|
+
message.vAmountB !== undefined && (obj.vAmountB = message.vAmountB);
|
|
258
295
|
return obj;
|
|
259
296
|
},
|
|
260
297
|
fromPartial(object) {
|
|
261
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
298
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
262
299
|
const message = Object.assign({}, basePool);
|
|
263
300
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
264
301
|
message.id =
|
|
@@ -280,6 +317,12 @@ exports.Pool = {
|
|
|
280
317
|
: long_1.default.ZERO;
|
|
281
318
|
message.sharesAmount = (_l = object.sharesAmount) !== null && _l !== void 0 ? _l : "";
|
|
282
319
|
message.market = (_m = object.market) !== null && _m !== void 0 ? _m : "";
|
|
320
|
+
message.ampBps =
|
|
321
|
+
object.ampBps !== undefined && object.ampBps !== null
|
|
322
|
+
? long_1.default.fromValue(object.ampBps)
|
|
323
|
+
: long_1.default.UZERO;
|
|
324
|
+
message.vAmountA = (_o = object.vAmountA) !== null && _o !== void 0 ? _o : "";
|
|
325
|
+
message.vAmountB = (_p = object.vAmountB) !== null && _p !== void 0 ? _p : "";
|
|
283
326
|
return message;
|
|
284
327
|
},
|
|
285
328
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "
|
|
3
|
+
import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "./tx";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
5
5
|
export interface LinkPoolProposal {
|
|
6
6
|
title: string;
|
|
@@ -7,7 +7,7 @@ exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetComm
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const tx_1 = require("
|
|
10
|
+
const tx_1 = require("./tx");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
12
12
|
const baseLinkPoolProposal = { title: "", description: "" };
|
|
13
13
|
exports.LinkPoolProposal = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
4
|
-
import { Pool, Params } from "
|
|
5
|
-
import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "
|
|
4
|
+
import { Pool, Params } from "./liquiditypool";
|
|
5
|
+
import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "./reward";
|
|
6
6
|
import { DecCoin } from "../cosmos/base/v1beta1/coin";
|
|
7
7
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
8
8
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -94,6 +94,19 @@ export interface QueryParamsResponse {
|
|
|
94
94
|
/** params holds all the parameters of this module. */
|
|
95
95
|
params?: Params;
|
|
96
96
|
}
|
|
97
|
+
export interface QueryAllPoolAddressRequest {
|
|
98
|
+
pagination?: PageRequest;
|
|
99
|
+
}
|
|
100
|
+
export interface QueryAllPoolAddressResponse {
|
|
101
|
+
addresses: {
|
|
102
|
+
[key: string]: string;
|
|
103
|
+
};
|
|
104
|
+
pagination?: PageResponse;
|
|
105
|
+
}
|
|
106
|
+
export interface QueryAllPoolAddressResponse_AddressesEntry {
|
|
107
|
+
key: string;
|
|
108
|
+
value: string;
|
|
109
|
+
}
|
|
97
110
|
export declare const QueryGetPoolRequest: {
|
|
98
111
|
encode(message: QueryGetPoolRequest, writer?: _m0.Writer): _m0.Writer;
|
|
99
112
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGetPoolRequest;
|
|
@@ -269,6 +282,27 @@ export declare const QueryParamsResponse: {
|
|
|
269
282
|
toJSON(message: QueryParamsResponse): unknown;
|
|
270
283
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
271
284
|
};
|
|
285
|
+
export declare const QueryAllPoolAddressRequest: {
|
|
286
|
+
encode(message: QueryAllPoolAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
287
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressRequest;
|
|
288
|
+
fromJSON(object: any): QueryAllPoolAddressRequest;
|
|
289
|
+
toJSON(message: QueryAllPoolAddressRequest): unknown;
|
|
290
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressRequest>): QueryAllPoolAddressRequest;
|
|
291
|
+
};
|
|
292
|
+
export declare const QueryAllPoolAddressResponse: {
|
|
293
|
+
encode(message: QueryAllPoolAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
294
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse;
|
|
295
|
+
fromJSON(object: any): QueryAllPoolAddressResponse;
|
|
296
|
+
toJSON(message: QueryAllPoolAddressResponse): unknown;
|
|
297
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse>): QueryAllPoolAddressResponse;
|
|
298
|
+
};
|
|
299
|
+
export declare const QueryAllPoolAddressResponse_AddressesEntry: {
|
|
300
|
+
encode(message: QueryAllPoolAddressResponse_AddressesEntry, writer?: _m0.Writer): _m0.Writer;
|
|
301
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse_AddressesEntry;
|
|
302
|
+
fromJSON(object: any): QueryAllPoolAddressResponse_AddressesEntry;
|
|
303
|
+
toJSON(message: QueryAllPoolAddressResponse_AddressesEntry): unknown;
|
|
304
|
+
fromPartial(object: DeepPartial<QueryAllPoolAddressResponse_AddressesEntry>): QueryAllPoolAddressResponse_AddressesEntry;
|
|
305
|
+
};
|
|
272
306
|
/** Query defines the gRPC querier service. */
|
|
273
307
|
export interface Query {
|
|
274
308
|
/** Get pool details */
|
|
@@ -294,6 +328,8 @@ export interface Query {
|
|
|
294
328
|
/** Get currently claimable rewards for a pool for the given address */
|
|
295
329
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
296
330
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
331
|
+
/** Get liquidity pool addresses for all pools */
|
|
332
|
+
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
297
333
|
}
|
|
298
334
|
export declare class QueryClientImpl implements Query {
|
|
299
335
|
private readonly rpc;
|
|
@@ -310,6 +346,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
310
346
|
TotalCommitmentAll(request: QueryAllTotalCommitmentRequest): Promise<QueryAllTotalCommitmentResponse>;
|
|
311
347
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
312
348
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
349
|
+
PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
|
|
313
350
|
}
|
|
314
351
|
interface Rpc {
|
|
315
352
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,13 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.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.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = 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.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"));
|
|
10
10
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
11
|
-
const liquiditypool_1 = require("
|
|
12
|
-
const reward_1 = require("
|
|
11
|
+
const liquiditypool_1 = require("./liquiditypool");
|
|
12
|
+
const reward_1 = require("./reward");
|
|
13
13
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
14
14
|
const coin_1 = require("../cosmos/base/v1beta1/coin");
|
|
15
15
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
@@ -1370,6 +1370,192 @@ exports.QueryParamsResponse = {
|
|
|
1370
1370
|
return message;
|
|
1371
1371
|
},
|
|
1372
1372
|
};
|
|
1373
|
+
const baseQueryAllPoolAddressRequest = {};
|
|
1374
|
+
exports.QueryAllPoolAddressRequest = {
|
|
1375
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1376
|
+
if (message.pagination !== undefined) {
|
|
1377
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1378
|
+
}
|
|
1379
|
+
return writer;
|
|
1380
|
+
},
|
|
1381
|
+
decode(input, length) {
|
|
1382
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1384
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
1385
|
+
while (reader.pos < end) {
|
|
1386
|
+
const tag = reader.uint32();
|
|
1387
|
+
switch (tag >>> 3) {
|
|
1388
|
+
case 1:
|
|
1389
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1390
|
+
break;
|
|
1391
|
+
default:
|
|
1392
|
+
reader.skipType(tag & 7);
|
|
1393
|
+
break;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return message;
|
|
1397
|
+
},
|
|
1398
|
+
fromJSON(object) {
|
|
1399
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
1400
|
+
message.pagination =
|
|
1401
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1402
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1403
|
+
: undefined;
|
|
1404
|
+
return message;
|
|
1405
|
+
},
|
|
1406
|
+
toJSON(message) {
|
|
1407
|
+
const obj = {};
|
|
1408
|
+
message.pagination !== undefined &&
|
|
1409
|
+
(obj.pagination = message.pagination
|
|
1410
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
1411
|
+
: undefined);
|
|
1412
|
+
return obj;
|
|
1413
|
+
},
|
|
1414
|
+
fromPartial(object) {
|
|
1415
|
+
const message = Object.assign({}, baseQueryAllPoolAddressRequest);
|
|
1416
|
+
message.pagination =
|
|
1417
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1418
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1419
|
+
: undefined;
|
|
1420
|
+
return message;
|
|
1421
|
+
},
|
|
1422
|
+
};
|
|
1423
|
+
const baseQueryAllPoolAddressResponse = {};
|
|
1424
|
+
exports.QueryAllPoolAddressResponse = {
|
|
1425
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1426
|
+
Object.entries(message.addresses).forEach(([key, value]) => {
|
|
1427
|
+
exports.QueryAllPoolAddressResponse_AddressesEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
1428
|
+
});
|
|
1429
|
+
if (message.pagination !== undefined) {
|
|
1430
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1431
|
+
}
|
|
1432
|
+
return writer;
|
|
1433
|
+
},
|
|
1434
|
+
decode(input, length) {
|
|
1435
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1436
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1437
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
1438
|
+
message.addresses = {};
|
|
1439
|
+
while (reader.pos < end) {
|
|
1440
|
+
const tag = reader.uint32();
|
|
1441
|
+
switch (tag >>> 3) {
|
|
1442
|
+
case 1:
|
|
1443
|
+
const entry1 = exports.QueryAllPoolAddressResponse_AddressesEntry.decode(reader, reader.uint32());
|
|
1444
|
+
if (entry1.value !== undefined) {
|
|
1445
|
+
message.addresses[entry1.key] = entry1.value;
|
|
1446
|
+
}
|
|
1447
|
+
break;
|
|
1448
|
+
case 2:
|
|
1449
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1450
|
+
break;
|
|
1451
|
+
default:
|
|
1452
|
+
reader.skipType(tag & 7);
|
|
1453
|
+
break;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
return message;
|
|
1457
|
+
},
|
|
1458
|
+
fromJSON(object) {
|
|
1459
|
+
var _a;
|
|
1460
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
1461
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
1462
|
+
acc[key] = String(value);
|
|
1463
|
+
return acc;
|
|
1464
|
+
}, {});
|
|
1465
|
+
message.pagination =
|
|
1466
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1467
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1468
|
+
: undefined;
|
|
1469
|
+
return message;
|
|
1470
|
+
},
|
|
1471
|
+
toJSON(message) {
|
|
1472
|
+
const obj = {};
|
|
1473
|
+
obj.addresses = {};
|
|
1474
|
+
if (message.addresses) {
|
|
1475
|
+
Object.entries(message.addresses).forEach(([k, v]) => {
|
|
1476
|
+
obj.addresses[k] = v;
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
message.pagination !== undefined &&
|
|
1480
|
+
(obj.pagination = message.pagination
|
|
1481
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
1482
|
+
: undefined);
|
|
1483
|
+
return obj;
|
|
1484
|
+
},
|
|
1485
|
+
fromPartial(object) {
|
|
1486
|
+
var _a;
|
|
1487
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse);
|
|
1488
|
+
message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
1489
|
+
if (value !== undefined) {
|
|
1490
|
+
acc[key] = String(value);
|
|
1491
|
+
}
|
|
1492
|
+
return acc;
|
|
1493
|
+
}, {});
|
|
1494
|
+
message.pagination =
|
|
1495
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1496
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1497
|
+
: undefined;
|
|
1498
|
+
return message;
|
|
1499
|
+
},
|
|
1500
|
+
};
|
|
1501
|
+
const baseQueryAllPoolAddressResponse_AddressesEntry = {
|
|
1502
|
+
key: "",
|
|
1503
|
+
value: "",
|
|
1504
|
+
};
|
|
1505
|
+
exports.QueryAllPoolAddressResponse_AddressesEntry = {
|
|
1506
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1507
|
+
if (message.key !== "") {
|
|
1508
|
+
writer.uint32(10).string(message.key);
|
|
1509
|
+
}
|
|
1510
|
+
if (message.value !== "") {
|
|
1511
|
+
writer.uint32(18).string(message.value);
|
|
1512
|
+
}
|
|
1513
|
+
return writer;
|
|
1514
|
+
},
|
|
1515
|
+
decode(input, length) {
|
|
1516
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1517
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1518
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
1519
|
+
while (reader.pos < end) {
|
|
1520
|
+
const tag = reader.uint32();
|
|
1521
|
+
switch (tag >>> 3) {
|
|
1522
|
+
case 1:
|
|
1523
|
+
message.key = reader.string();
|
|
1524
|
+
break;
|
|
1525
|
+
case 2:
|
|
1526
|
+
message.value = reader.string();
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1529
|
+
reader.skipType(tag & 7);
|
|
1530
|
+
break;
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
return message;
|
|
1534
|
+
},
|
|
1535
|
+
fromJSON(object) {
|
|
1536
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
1537
|
+
message.key =
|
|
1538
|
+
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
1539
|
+
message.value =
|
|
1540
|
+
object.value !== undefined && object.value !== null
|
|
1541
|
+
? String(object.value)
|
|
1542
|
+
: "";
|
|
1543
|
+
return message;
|
|
1544
|
+
},
|
|
1545
|
+
toJSON(message) {
|
|
1546
|
+
const obj = {};
|
|
1547
|
+
message.key !== undefined && (obj.key = message.key);
|
|
1548
|
+
message.value !== undefined && (obj.value = message.value);
|
|
1549
|
+
return obj;
|
|
1550
|
+
},
|
|
1551
|
+
fromPartial(object) {
|
|
1552
|
+
var _a, _b;
|
|
1553
|
+
const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
|
|
1554
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
1555
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
1556
|
+
return message;
|
|
1557
|
+
},
|
|
1558
|
+
};
|
|
1373
1559
|
class QueryClientImpl {
|
|
1374
1560
|
constructor(rpc) {
|
|
1375
1561
|
this.rpc = rpc;
|
|
@@ -1385,6 +1571,7 @@ class QueryClientImpl {
|
|
|
1385
1571
|
this.TotalCommitmentAll = this.TotalCommitmentAll.bind(this);
|
|
1386
1572
|
this.ClaimableRewards = this.ClaimableRewards.bind(this);
|
|
1387
1573
|
this.Params = this.Params.bind(this);
|
|
1574
|
+
this.PoolAddressAll = this.PoolAddressAll.bind(this);
|
|
1388
1575
|
}
|
|
1389
1576
|
Pool(request) {
|
|
1390
1577
|
const data = exports.QueryGetPoolRequest.encode(request).finish();
|
|
@@ -1446,6 +1633,11 @@ class QueryClientImpl {
|
|
|
1446
1633
|
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "Params", data);
|
|
1447
1634
|
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1448
1635
|
}
|
|
1636
|
+
PoolAddressAll(request) {
|
|
1637
|
+
const data = exports.QueryAllPoolAddressRequest.encode(request).finish();
|
|
1638
|
+
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolAddressAll", data);
|
|
1639
|
+
return promise.then((data) => exports.QueryAllPoolAddressResponse.decode(new minimal_1.default.Reader(data)));
|
|
1640
|
+
}
|
|
1449
1641
|
}
|
|
1450
1642
|
exports.QueryClientImpl = QueryClientImpl;
|
|
1451
1643
|
function toTimestamp(date) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { RewardWeight } from "
|
|
3
|
+
import { RewardWeight } from "./reward";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
5
5
|
/** this line is used by starport scaffolding # proto/tx/message */
|
|
6
6
|
export interface MsgCreatePool {
|
|
@@ -11,6 +11,7 @@ export interface MsgCreatePool {
|
|
|
11
11
|
tokenBWeight: string;
|
|
12
12
|
swapFee: string;
|
|
13
13
|
numQuotes: Long;
|
|
14
|
+
ampBps: Long;
|
|
14
15
|
}
|
|
15
16
|
export interface MsgCreatePoolResponse {
|
|
16
17
|
poolId: Long;
|
|
@@ -25,6 +26,7 @@ export interface MsgCreatePoolWithLiquidity {
|
|
|
25
26
|
amountB: string;
|
|
26
27
|
swapFee: string;
|
|
27
28
|
numQuotes: Long;
|
|
29
|
+
ampBps: Long;
|
|
28
30
|
}
|
|
29
31
|
export interface MsgCreatePoolWithLiquidityResponse {
|
|
30
32
|
}
|