carbon-js-sdk 0.2.10 → 0.2.11-dev.1
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 +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/InsightsQueryClient.d.ts +3 -1
- package/lib/clients/InsightsQueryClient.js +17 -6
- package/lib/clients/NEOClient.js +7 -7
- 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/asset_params.d.ts +1 -0
- package/lib/codec/cdp/asset_params.js +31 -15
- package/lib/codec/cdp/event.d.ts +226 -22
- package/lib/codec/cdp/event.js +1414 -80
- package/lib/codec/cdp/genesis.d.ts +57 -4
- package/lib/codec/cdp/genesis.js +417 -22
- package/lib/codec/cdp/query.d.ts +328 -94
- package/lib/codec/cdp/query.js +1300 -236
- package/lib/codec/cdp/tx.d.ts +466 -96
- package/lib/codec/cdp/tx.js +1961 -181
- 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 -5
- package/lib/codec/coin/query.js +2 -8
- package/lib/codec/coin/token.d.ts +11 -0
- package/lib/codec/coin/token.js +65 -1
- 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/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 +53 -22
- package/lib/codec/index.js +514 -384
- 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/proposal.d.ts +1 -1
- package/lib/codec/liquiditypool/proposal.js +1 -1
- package/lib/codec/liquiditypool/query.d.ts +2 -2
- package/lib/codec/liquiditypool/query.js +2 -2
- package/lib/codec/liquiditypool/tx.d.ts +1 -1
- package/lib/codec/liquiditypool/tx.js +1 -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 +2 -1
- package/lib/codec/market/genesis.js +20 -2
- 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/trade.d.ts +1 -0
- package/lib/codec/misc/trade.js +17 -0
- 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 +1 -1
- package/lib/codec/oracle/genesis.js +1 -1
- 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 +11 -1
- package/lib/codec/pricing/event.js +52 -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 +13 -0
- package/lib/codec/pricing/pricing.js +83 -1
- package/lib/codec/pricing/query.d.ts +1 -1
- package/lib/codec/pricing/query.js +1 -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/insights/common.d.ts +2 -0
- package/lib/insights/common.js +2 -0
- package/lib/insights/competition.d.ts +49 -7
- package/lib/modules/admin.d.ts +61 -1
- package/lib/modules/admin.js +193 -42
- package/lib/modules/cdp.d.ts +55 -12
- package/lib/modules/cdp.js +134 -20
- package/lib/modules/gov.js +14 -14
- package/lib/modules/liquiditypool.js +1 -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 +67 -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 +72 -32
- 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 +7 -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.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/number.js +5 -5
- package/lib/util/tx.d.ts +42 -14
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -6
- package/lib/websocket/channel.js +26 -0
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +63 -0
- package/lib/websocket/types.d.ts +38 -3
- package/lib/websocket/types.js +16 -0
- package/package.json +2 -1
package/lib/codec/coin/event.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.LinkTokenEvent = exports.UnbindTokenEvent = exports.BindTokenEvent = exp
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const token_1 = require("
|
|
10
|
+
const token_1 = require("./token");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
12
12
|
const baseNewTokenEvent = { type: "" };
|
|
13
13
|
exports.NewTokenEvent = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Token, LockedCoinsRecord, PositionPool } from "
|
|
4
|
-
import { Bridge } from "
|
|
3
|
+
import { Token, LockedCoinsRecord, PositionPool } from "./token";
|
|
4
|
+
import { Bridge } from "./bridge";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.coin";
|
|
6
6
|
/** GenesisState defines the coin module's genesis state. */
|
|
7
7
|
export interface GenesisState {
|
|
@@ -7,8 +7,8 @@ exports.GenesisState_WrapperMappingsEntry = exports.GenesisState = exports.proto
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const token_1 = require("
|
|
11
|
-
const bridge_1 = require("
|
|
10
|
+
const token_1 = require("./token");
|
|
11
|
+
const bridge_1 = require("./bridge");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
13
13
|
const baseGenesisState = {};
|
|
14
14
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { CreateTokenParams } from "
|
|
3
|
+
import { CreateTokenParams } from "./tx";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.coin";
|
|
5
5
|
export interface CreateTokenProposal {
|
|
6
6
|
title: string;
|
|
@@ -7,7 +7,7 @@ exports.CreateTokenProposal = 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 tx_1 = require("
|
|
10
|
+
const tx_1 = require("./tx");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
12
12
|
const baseCreateTokenProposal = { title: "", description: "" };
|
|
13
13
|
exports.CreateTokenProposal = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Token, LockedCoins, TokenBalance } from "
|
|
3
|
+
import { Token, LockedCoins, TokenBalance } from "./token";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
|
-
import { Bridge } from "
|
|
5
|
+
import { Bridge } from "./bridge";
|
|
6
6
|
export declare const protobufPackage = "Switcheo.carbon.coin";
|
|
7
7
|
/** this line is used by starport scaffolding # 3 */
|
|
8
8
|
export interface QueryGetTokenRequest {
|
|
@@ -188,8 +188,6 @@ export declare const QueryAllBridgeResponse: {
|
|
|
188
188
|
export interface Query {
|
|
189
189
|
/** Get token details for a denom */
|
|
190
190
|
Token(request: QueryGetTokenRequest): Promise<QueryGetTokenResponse>;
|
|
191
|
-
/** Get token details for a denom(as string) */
|
|
192
|
-
TokenQueryParams(request: QueryGetTokenRequest): Promise<QueryGetTokenResponse>;
|
|
193
191
|
/** Get all token details */
|
|
194
192
|
TokenAll(request: QueryAllTokenRequest): Promise<QueryAllTokenResponse>;
|
|
195
193
|
/** Get locked coins for an address */
|
|
@@ -209,7 +207,6 @@ export declare class QueryClientImpl implements Query {
|
|
|
209
207
|
private readonly rpc;
|
|
210
208
|
constructor(rpc: Rpc);
|
|
211
209
|
Token(request: QueryGetTokenRequest): Promise<QueryGetTokenResponse>;
|
|
212
|
-
TokenQueryParams(request: QueryGetTokenRequest): Promise<QueryGetTokenResponse>;
|
|
213
210
|
TokenAll(request: QueryAllTokenRequest): Promise<QueryAllTokenResponse>;
|
|
214
211
|
LockedCoins(request: QueryGetLockedCoinsRequest): Promise<QueryGetLockedCoinsResponse>;
|
|
215
212
|
WrapperMappings(request: QueryAllWrapperMappingsRequest): Promise<QueryAllWrapperMappingsResponse>;
|
package/lib/codec/coin/query.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.QueryClientImpl = exports.QueryAllBridgeResponse = exports.QueryAllBridg
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const token_1 = require("
|
|
10
|
+
const token_1 = require("./token");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
|
-
const bridge_1 = require("
|
|
12
|
+
const bridge_1 = require("./bridge");
|
|
13
13
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
14
14
|
const baseQueryGetTokenRequest = { denom: "" };
|
|
15
15
|
exports.QueryGetTokenRequest = {
|
|
@@ -962,7 +962,6 @@ class QueryClientImpl {
|
|
|
962
962
|
constructor(rpc) {
|
|
963
963
|
this.rpc = rpc;
|
|
964
964
|
this.Token = this.Token.bind(this);
|
|
965
|
-
this.TokenQueryParams = this.TokenQueryParams.bind(this);
|
|
966
965
|
this.TokenAll = this.TokenAll.bind(this);
|
|
967
966
|
this.LockedCoins = this.LockedCoins.bind(this);
|
|
968
967
|
this.WrapperMappings = this.WrapperMappings.bind(this);
|
|
@@ -976,11 +975,6 @@ class QueryClientImpl {
|
|
|
976
975
|
const promise = this.rpc.request("Switcheo.carbon.coin.Query", "Token", data);
|
|
977
976
|
return promise.then((data) => exports.QueryGetTokenResponse.decode(new minimal_1.default.Reader(data)));
|
|
978
977
|
}
|
|
979
|
-
TokenQueryParams(request) {
|
|
980
|
-
const data = exports.QueryGetTokenRequest.encode(request).finish();
|
|
981
|
-
const promise = this.rpc.request("Switcheo.carbon.coin.Query", "TokenQueryParams", data);
|
|
982
|
-
return promise.then((data) => exports.QueryGetTokenResponse.decode(new minimal_1.default.Reader(data)));
|
|
983
|
-
}
|
|
984
978
|
TokenAll(request) {
|
|
985
979
|
const data = exports.QueryAllTokenRequest.encode(request).finish();
|
|
986
980
|
const promise = this.rpc.request("Switcheo.carbon.coin.Query", "TokenAll", data);
|
|
@@ -23,6 +23,10 @@ export interface BalanceChange {
|
|
|
23
23
|
amount: string;
|
|
24
24
|
type: string;
|
|
25
25
|
location: string;
|
|
26
|
+
metadata?: Metadata;
|
|
27
|
+
}
|
|
28
|
+
export interface Metadata {
|
|
29
|
+
orderId?: string;
|
|
26
30
|
}
|
|
27
31
|
export interface LockedCoins {
|
|
28
32
|
denom: string;
|
|
@@ -59,6 +63,13 @@ export declare const BalanceChange: {
|
|
|
59
63
|
toJSON(message: BalanceChange): unknown;
|
|
60
64
|
fromPartial(object: DeepPartial<BalanceChange>): BalanceChange;
|
|
61
65
|
};
|
|
66
|
+
export declare const Metadata: {
|
|
67
|
+
encode(message: Metadata, writer?: _m0.Writer): _m0.Writer;
|
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Metadata;
|
|
69
|
+
fromJSON(object: any): Metadata;
|
|
70
|
+
toJSON(message: Metadata): unknown;
|
|
71
|
+
fromPartial(object: DeepPartial<Metadata>): Metadata;
|
|
72
|
+
};
|
|
62
73
|
export declare const LockedCoins: {
|
|
63
74
|
encode(message: LockedCoins, writer?: _m0.Writer): _m0.Writer;
|
|
64
75
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LockedCoins;
|
package/lib/codec/coin/token.js
CHANGED
|
@@ -3,11 +3,12 @@ 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.TokenBalance = exports.PositionPool = exports.LockedCoinsRecord = exports.LockedCoins = exports.BalanceChange = exports.Token = exports.protobufPackage = void 0;
|
|
6
|
+
exports.TokenBalance = exports.PositionPool = exports.LockedCoinsRecord = exports.LockedCoins = exports.Metadata = exports.BalanceChange = exports.Token = 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 coin_1 = require("../cosmos/base/v1beta1/coin");
|
|
11
|
+
const wrappers_1 = require("../google/protobuf/wrappers");
|
|
11
12
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
12
13
|
const baseToken = {
|
|
13
14
|
id: "",
|
|
@@ -240,6 +241,9 @@ exports.BalanceChange = {
|
|
|
240
241
|
if (message.location !== "") {
|
|
241
242
|
writer.uint32(50).string(message.location);
|
|
242
243
|
}
|
|
244
|
+
if (message.metadata !== undefined) {
|
|
245
|
+
exports.Metadata.encode(message.metadata, writer.uint32(58).fork()).ldelim();
|
|
246
|
+
}
|
|
243
247
|
return writer;
|
|
244
248
|
},
|
|
245
249
|
decode(input, length) {
|
|
@@ -267,6 +271,9 @@ exports.BalanceChange = {
|
|
|
267
271
|
case 6:
|
|
268
272
|
message.location = reader.string();
|
|
269
273
|
break;
|
|
274
|
+
case 7:
|
|
275
|
+
message.metadata = exports.Metadata.decode(reader, reader.uint32());
|
|
276
|
+
break;
|
|
270
277
|
default:
|
|
271
278
|
reader.skipType(tag & 7);
|
|
272
279
|
break;
|
|
@@ -300,6 +307,10 @@ exports.BalanceChange = {
|
|
|
300
307
|
object.location !== undefined && object.location !== null
|
|
301
308
|
? String(object.location)
|
|
302
309
|
: "";
|
|
310
|
+
message.metadata =
|
|
311
|
+
object.metadata !== undefined && object.metadata !== null
|
|
312
|
+
? exports.Metadata.fromJSON(object.metadata)
|
|
313
|
+
: undefined;
|
|
303
314
|
return message;
|
|
304
315
|
},
|
|
305
316
|
toJSON(message) {
|
|
@@ -311,6 +322,10 @@ exports.BalanceChange = {
|
|
|
311
322
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
312
323
|
message.type !== undefined && (obj.type = message.type);
|
|
313
324
|
message.location !== undefined && (obj.location = message.location);
|
|
325
|
+
message.metadata !== undefined &&
|
|
326
|
+
(obj.metadata = message.metadata
|
|
327
|
+
? exports.Metadata.toJSON(message.metadata)
|
|
328
|
+
: undefined);
|
|
314
329
|
return obj;
|
|
315
330
|
},
|
|
316
331
|
fromPartial(object) {
|
|
@@ -325,6 +340,55 @@ exports.BalanceChange = {
|
|
|
325
340
|
message.amount = (_c = object.amount) !== null && _c !== void 0 ? _c : "";
|
|
326
341
|
message.type = (_d = object.type) !== null && _d !== void 0 ? _d : "";
|
|
327
342
|
message.location = (_e = object.location) !== null && _e !== void 0 ? _e : "";
|
|
343
|
+
message.metadata =
|
|
344
|
+
object.metadata !== undefined && object.metadata !== null
|
|
345
|
+
? exports.Metadata.fromPartial(object.metadata)
|
|
346
|
+
: undefined;
|
|
347
|
+
return message;
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
const baseMetadata = {};
|
|
351
|
+
exports.Metadata = {
|
|
352
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
353
|
+
if (message.orderId !== undefined) {
|
|
354
|
+
wrappers_1.StringValue.encode({ value: message.orderId }, writer.uint32(10).fork()).ldelim();
|
|
355
|
+
}
|
|
356
|
+
return writer;
|
|
357
|
+
},
|
|
358
|
+
decode(input, length) {
|
|
359
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
360
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
361
|
+
const message = Object.assign({}, baseMetadata);
|
|
362
|
+
while (reader.pos < end) {
|
|
363
|
+
const tag = reader.uint32();
|
|
364
|
+
switch (tag >>> 3) {
|
|
365
|
+
case 1:
|
|
366
|
+
message.orderId = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
367
|
+
break;
|
|
368
|
+
default:
|
|
369
|
+
reader.skipType(tag & 7);
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
fromJSON(object) {
|
|
376
|
+
const message = Object.assign({}, baseMetadata);
|
|
377
|
+
message.orderId =
|
|
378
|
+
object.orderId !== undefined && object.orderId !== null
|
|
379
|
+
? String(object.orderId)
|
|
380
|
+
: undefined;
|
|
381
|
+
return message;
|
|
382
|
+
},
|
|
383
|
+
toJSON(message) {
|
|
384
|
+
const obj = {};
|
|
385
|
+
message.orderId !== undefined && (obj.orderId = message.orderId);
|
|
386
|
+
return obj;
|
|
387
|
+
},
|
|
388
|
+
fromPartial(object) {
|
|
389
|
+
var _a;
|
|
390
|
+
const message = Object.assign({}, baseMetadata);
|
|
391
|
+
message.orderId = (_a = object.orderId) !== null && _a !== void 0 ? _a : undefined;
|
|
328
392
|
return message;
|
|
329
393
|
},
|
|
330
394
|
};
|
package/lib/codec/coin/tx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Bridge } from "
|
|
3
|
+
import { Bridge } from "./bridge";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.coin";
|
|
5
5
|
/** this line is used by starport scaffolding # proto/tx/message */
|
|
6
6
|
export interface MsgCreateToken {
|
package/lib/codec/coin/tx.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.MsgRemoveBridgeAddressResponse = exports.MsgRemo
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const bridge_1 = require("
|
|
10
|
+
const bridge_1 = require("./bridge");
|
|
11
11
|
const wrappers_1 = require("../google/protobuf/wrappers");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.coin";
|
|
13
13
|
const baseMsgCreateToken = { creator: "" };
|
|
@@ -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 "./auth";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
5
|
export declare const protobufPackage = "cosmos.auth.v1beta1";
|
|
6
6
|
/** GenesisState defines the auth module's genesis state. */
|
|
@@ -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 auth_1 = require("
|
|
10
|
+
const auth_1 = require("./auth");
|
|
11
11
|
const any_1 = require("../../../google/protobuf/any");
|
|
12
12
|
exports.protobufPackage = "cosmos.auth.v1beta1";
|
|
13
13
|
const baseGenesisState = {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "
|
|
3
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
|
-
import { Params } from "
|
|
5
|
+
import { Params } from "./auth";
|
|
6
6
|
export declare const protobufPackage = "cosmos.auth.v1beta1";
|
|
7
7
|
/**
|
|
8
8
|
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
@@ -7,9 +7,9 @@ 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 pagination_1 = require("
|
|
10
|
+
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
11
11
|
const any_1 = require("../../../google/protobuf/any");
|
|
12
|
-
const auth_1 = require("
|
|
12
|
+
const auth_1 = require("./auth");
|
|
13
13
|
exports.protobufPackage = "cosmos.auth.v1beta1";
|
|
14
14
|
const baseQueryAccountsRequest = {};
|
|
15
15
|
exports.QueryAccountsRequest = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "
|
|
4
|
-
import { Grant } from "
|
|
3
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
4
|
+
import { Grant } from "./authz";
|
|
5
5
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
6
6
|
/** Since: cosmos-sdk 0.43 */
|
|
7
7
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
|
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryGrantsResponse = exports.QueryGrantsReque
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const pagination_1 = require("
|
|
11
|
-
const authz_1 = require("
|
|
10
|
+
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
11
|
+
const authz_1 = require("./authz");
|
|
12
12
|
exports.protobufPackage = "cosmos.authz.v1beta1";
|
|
13
13
|
const baseQueryGrantsRequest = {
|
|
14
14
|
granter: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Grant } from "
|
|
3
|
+
import { Grant } from "./authz";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
5
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
6
6
|
/** Since: cosmos-sdk 0.43 */
|
|
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.MsgRevokeResponse = exports.MsgRevoke = exports.
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const authz_1 = require("
|
|
10
|
+
const authz_1 = require("./authz");
|
|
11
11
|
const any_1 = require("../../../google/protobuf/any");
|
|
12
12
|
exports.protobufPackage = "cosmos.authz.v1beta1";
|
|
13
13
|
const baseMsgGrant = { granter: "", grantee: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
5
5
|
/**
|
|
6
6
|
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
|
@@ -7,7 +7,7 @@ exports.SendAuthorization = 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 coin_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "cosmos.bank.v1beta1";
|
|
12
12
|
const baseSendAuthorization = {};
|
|
13
13
|
exports.SendAuthorization = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
5
5
|
/** Params defines the parameters for the bank module. */
|
|
6
6
|
export interface Params {
|
|
@@ -7,7 +7,7 @@ exports.Metadata = exports.DenomUnit = exports.Supply = exports.Output = exports
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "cosmos.bank.v1beta1";
|
|
12
12
|
const baseParams = { defaultSendEnabled: false };
|
|
13
13
|
exports.Params = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, Metadata } from "
|
|
4
|
-
import { Coin } from "
|
|
3
|
+
import { Params, Metadata } from "./bank";
|
|
4
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
5
5
|
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
6
6
|
/** GenesisState defines the bank module's genesis state. */
|
|
7
7
|
export interface GenesisState {
|
|
@@ -7,8 +7,8 @@ exports.Balance = 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 bank_1 = require("
|
|
11
|
-
const coin_1 = require("
|
|
10
|
+
const bank_1 = require("./bank");
|
|
11
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
12
12
|
exports.protobufPackage = "cosmos.bank.v1beta1";
|
|
13
13
|
const baseGenesisState = {};
|
|
14
14
|
exports.GenesisState = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
4
|
-
import { PageRequest, PageResponse } from "
|
|
5
|
-
import { Params, Metadata } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
5
|
+
import { Params, Metadata } from "./bank";
|
|
6
6
|
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
7
7
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
|
|
8
8
|
export interface QueryBalanceRequest {
|
|
@@ -7,9 +7,9 @@ exports.QueryClientImpl = exports.QueryDenomMetadataResponse = exports.QueryDeno
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
11
|
-
const pagination_1 = require("
|
|
12
|
-
const bank_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
|
+
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
12
|
+
const bank_1 = require("./bank");
|
|
13
13
|
exports.protobufPackage = "cosmos.bank.v1beta1";
|
|
14
14
|
const baseQueryBalanceRequest = { address: "", denom: "" };
|
|
15
15
|
exports.QueryBalanceRequest = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
4
|
-
import { Input, Output } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
+
import { Input, Output } from "./bank";
|
|
5
5
|
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
6
6
|
/** MsgSend represents a message to send coins from one account to another. */
|
|
7
7
|
export interface MsgSend {
|
|
@@ -7,8 +7,8 @@ exports.MsgClientImpl = exports.MsgMultiSendResponse = exports.MsgMultiSend = ex
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
11
|
-
const bank_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
|
+
const bank_1 = require("./bank");
|
|
12
12
|
exports.protobufPackage = "cosmos.bank.v1beta1";
|
|
13
13
|
const baseMsgSend = { fromAddress: "", toAddress: "" };
|
|
14
14
|
exports.MsgSend = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "
|
|
3
|
+
import { PageRequest, PageResponse } from "../../query/v1beta1/pagination";
|
|
4
4
|
import { Any } from "../../../../google/protobuf/any";
|
|
5
5
|
import { BlockID } from "../../../../tendermint/types/types";
|
|
6
6
|
import { Block } from "../../../../tendermint/types/block";
|
|
@@ -7,7 +7,7 @@ exports.ServiceClientImpl = exports.Module = exports.VersionInfo = exports.GetNo
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const pagination_1 = require("
|
|
10
|
+
const pagination_1 = require("../../query/v1beta1/pagination");
|
|
11
11
|
const any_1 = require("../../../../google/protobuf/any");
|
|
12
12
|
const types_1 = require("../../../../tendermint/types/types");
|
|
13
13
|
const block_1 = require("../../../../tendermint/types/block");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { CapabilityOwners } from "
|
|
3
|
+
import { CapabilityOwners } from "./capability";
|
|
4
4
|
export declare const protobufPackage = "cosmos.capability.v1beta1";
|
|
5
5
|
/** GenesisOwners defines the capability owners with their corresponding index. */
|
|
6
6
|
export interface GenesisOwners {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.GenesisOwners = 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 capability_1 = require("
|
|
10
|
+
const capability_1 = require("./capability");
|
|
11
11
|
exports.protobufPackage = "cosmos.capability.v1beta1";
|
|
12
12
|
const baseGenesisOwners = { index: long_1.default.UZERO };
|
|
13
13
|
exports.GenesisOwners = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "cosmos.crisis.v1beta1";
|
|
5
5
|
/** GenesisState defines the crisis 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 coin_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "cosmos.crisis.v1beta1";
|
|
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 { DecCoin, Coin } from "
|
|
3
|
+
import { DecCoin, Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
5
5
|
/** Params defines the set of params for the distribution module. */
|
|
6
6
|
export interface Params {
|
|
@@ -7,7 +7,7 @@ exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorRewar
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "cosmos.distribution.v1beta1";
|
|
12
12
|
const baseParams = {
|
|
13
13
|
communityTax: "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool } from "
|
|
4
|
-
import { DecCoin } from "
|
|
3
|
+
import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool } from "./distribution";
|
|
4
|
+
import { DecCoin } from "../../base/v1beta1/coin";
|
|
5
5
|
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
6
6
|
/**
|
|
7
7
|
* DelegatorWithdrawInfo is the address for where distributions rewards are
|
|
@@ -7,8 +7,8 @@ exports.GenesisState = exports.ValidatorSlashEventRecord = exports.DelegatorStar
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const distribution_1 = require("
|
|
11
|
-
const coin_1 = require("
|
|
10
|
+
const distribution_1 = require("./distribution");
|
|
11
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
12
12
|
exports.protobufPackage = "cosmos.distribution.v1beta1";
|
|
13
13
|
const baseDelegatorWithdrawInfo = {
|
|
14
14
|
delegatorAddress: "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "
|
|
4
|
-
import { PageRequest, PageResponse } from "
|
|
5
|
-
import { DecCoin } from "
|
|
3
|
+
import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "./distribution";
|
|
4
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
5
|
+
import { DecCoin } from "../../base/v1beta1/coin";
|
|
6
6
|
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
7
7
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
8
8
|
export interface QueryParamsRequest {
|
|
@@ -7,9 +7,9 @@ exports.QueryClientImpl = exports.QueryLiquidityProviderRewardsResponse = export
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const distribution_1 = require("
|
|
11
|
-
const pagination_1 = require("
|
|
12
|
-
const coin_1 = require("
|
|
10
|
+
const distribution_1 = require("./distribution");
|
|
11
|
+
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
12
|
+
const coin_1 = require("../../base/v1beta1/coin");
|
|
13
13
|
exports.protobufPackage = "cosmos.distribution.v1beta1";
|
|
14
14
|
const baseQueryParamsRequest = {};
|
|
15
15
|
exports.QueryParamsRequest = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
5
5
|
/**
|
|
6
6
|
* MsgSetWithdrawAddress sets the withdraw address for
|