carbon-js-sdk 0.2.13-dev.2 → 0.2.14
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/NEOClient.js +1 -1
- package/lib/clients/TokenClient.d.ts +0 -4
- package/lib/clients/TokenClient.js +7 -23
- 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 +22 -240
- package/lib/codec/cdp/event.js +80 -1516
- package/lib/codec/cdp/genesis.d.ts +4 -80
- package/lib/codec/cdp/genesis.js +22 -531
- package/lib/codec/cdp/query.d.ts +94 -397
- package/lib/codec/cdp/query.js +230 -1586
- package/lib/codec/cdp/tx.d.ts +96 -466
- package/lib/codec/cdp/tx.js +182 -1962
- 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/authz.d.ts +19 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.js +89 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -15
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +7 -120
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +70 -2
- package/lib/codec/cosmos/authz/v1beta1/query.js +275 -3
- 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/export.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +3 -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 +43 -3
- package/lib/codec/cosmos/bank/v1beta1/query.js +140 -4
- 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/snapshots/v1beta1/snapshot.d.ts +64 -0
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +343 -1
- 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 +35 -2
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +139 -3
- 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 +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- 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 +14 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +19 -1
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +53 -5
- package/lib/codec/cosmos/tx/v1beta1/service.js +179 -4
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
- 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 +16 -52
- package/lib/codec/index.js +55 -204
- 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 +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 +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 +1 -11
- package/lib/codec/pricing/event.js +2 -52
- package/lib/codec/pricing/genesis.d.ts +1 -2
- package/lib/codec/pricing/genesis.js +5 -20
- package/lib/codec/pricing/pricing.d.ts +0 -13
- package/lib/codec/pricing/pricing.js +1 -83
- 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/modules/admin.d.ts +1 -53
- package/lib/modules/admin.js +43 -175
- package/lib/modules/cdp.d.ts +12 -62
- package/lib/modules/cdp.js +20 -149
- package/lib/provider/amino/types/admin.js +7 -48
- package/lib/provider/amino/types/cdp.js +32 -72
- package/lib/util/tx.d.ts +10 -42
- package/lib/wallet/CarbonSigningClient.js +27 -2
- package/lib/websocket/channel.js +0 -44
- package/lib/websocket/models.d.ts +36 -136
- package/lib/websocket/types.d.ts +3 -58
- package/lib/websocket/types.js +0 -22
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ exports.GenesisFlag = exports.GenesisAccountSequence = exports.GenesisAccountOrd
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const order_1 = require("
|
|
10
|
+
const order_1 = require("../order/order");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
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 { Order, Params, DBOrder } from "
|
|
3
|
+
import { Order, Params, DBOrder } from "../order/order";
|
|
4
4
|
import { PageRequest, PageResponse } from "../query/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.order";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
package/lib/codec/order/query.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryOrderAllocatedMarginResponse = exports.Qu
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const order_1 = require("
|
|
10
|
+
const order_1 = require("../order/order");
|
|
11
11
|
const pagination_1 = require("../query/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
13
13
|
const baseQueryGetOrderRequest = { id: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Position } from "
|
|
3
|
+
import { Position } from "../position/position";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.position";
|
|
5
5
|
export interface PositionEvent {
|
|
6
6
|
position?: Position;
|
|
@@ -7,7 +7,7 @@ exports.PositionEvent = 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 position_1 = require("
|
|
10
|
+
const position_1 = require("../position/position");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.position";
|
|
12
12
|
const basePositionEvent = {
|
|
13
13
|
id: long_1.default.UZERO,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Position } from "
|
|
3
|
+
import { Position } from "../position/position";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.position";
|
|
5
5
|
/** GenesisState defines the position 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 position_1 = require("
|
|
10
|
+
const position_1 = require("../position/position");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.position";
|
|
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 { Position, APIPosition, PositionAllocatedMargin } from "
|
|
3
|
+
import { Position, APIPosition, PositionAllocatedMargin } from "../position/position";
|
|
4
4
|
import { PageRequest, PageResponse } from "../query/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.position";
|
|
6
6
|
export interface QueryGetPositionRequest {
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryPositionAllocatedMarginResponse = exports
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const position_1 = require("
|
|
10
|
+
const position_1 = require("../position/position");
|
|
11
11
|
const pagination_1 = require("../query/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.position";
|
|
13
13
|
const baseQueryGetPositionRequest = { address: "", market: "" };
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PriceSet
|
|
3
|
+
import { PriceSet } from "../pricing/pricing";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.pricing";
|
|
5
5
|
export interface PriceUpdateEvent {
|
|
6
6
|
prices?: PriceSet;
|
|
7
7
|
}
|
|
8
|
-
export interface TokenPriceUpdateEvent {
|
|
9
|
-
price?: TokenPrice;
|
|
10
|
-
}
|
|
11
8
|
export declare const PriceUpdateEvent: {
|
|
12
9
|
encode(message: PriceUpdateEvent, writer?: _m0.Writer): _m0.Writer;
|
|
13
10
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PriceUpdateEvent;
|
|
@@ -15,13 +12,6 @@ export declare const PriceUpdateEvent: {
|
|
|
15
12
|
toJSON(message: PriceUpdateEvent): unknown;
|
|
16
13
|
fromPartial(object: DeepPartial<PriceUpdateEvent>): PriceUpdateEvent;
|
|
17
14
|
};
|
|
18
|
-
export declare const TokenPriceUpdateEvent: {
|
|
19
|
-
encode(message: TokenPriceUpdateEvent, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TokenPriceUpdateEvent;
|
|
21
|
-
fromJSON(object: any): TokenPriceUpdateEvent;
|
|
22
|
-
toJSON(message: TokenPriceUpdateEvent): unknown;
|
|
23
|
-
fromPartial(object: DeepPartial<TokenPriceUpdateEvent>): TokenPriceUpdateEvent;
|
|
24
|
-
};
|
|
25
15
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
16
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
27
17
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,11 +3,11 @@ 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.
|
|
6
|
+
exports.PriceUpdateEvent = 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 pricing_1 = require("
|
|
10
|
+
const pricing_1 = require("../pricing/pricing");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.pricing";
|
|
12
12
|
const basePriceUpdateEvent = {};
|
|
13
13
|
exports.PriceUpdateEvent = {
|
|
@@ -59,56 +59,6 @@ exports.PriceUpdateEvent = {
|
|
|
59
59
|
return message;
|
|
60
60
|
},
|
|
61
61
|
};
|
|
62
|
-
const baseTokenPriceUpdateEvent = {};
|
|
63
|
-
exports.TokenPriceUpdateEvent = {
|
|
64
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
65
|
-
if (message.price !== undefined) {
|
|
66
|
-
pricing_1.TokenPrice.encode(message.price, writer.uint32(10).fork()).ldelim();
|
|
67
|
-
}
|
|
68
|
-
return writer;
|
|
69
|
-
},
|
|
70
|
-
decode(input, length) {
|
|
71
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
72
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
-
const message = Object.assign({}, baseTokenPriceUpdateEvent);
|
|
74
|
-
while (reader.pos < end) {
|
|
75
|
-
const tag = reader.uint32();
|
|
76
|
-
switch (tag >>> 3) {
|
|
77
|
-
case 1:
|
|
78
|
-
message.price = pricing_1.TokenPrice.decode(reader, reader.uint32());
|
|
79
|
-
break;
|
|
80
|
-
default:
|
|
81
|
-
reader.skipType(tag & 7);
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return message;
|
|
86
|
-
},
|
|
87
|
-
fromJSON(object) {
|
|
88
|
-
const message = Object.assign({}, baseTokenPriceUpdateEvent);
|
|
89
|
-
message.price =
|
|
90
|
-
object.price !== undefined && object.price !== null
|
|
91
|
-
? pricing_1.TokenPrice.fromJSON(object.price)
|
|
92
|
-
: undefined;
|
|
93
|
-
return message;
|
|
94
|
-
},
|
|
95
|
-
toJSON(message) {
|
|
96
|
-
const obj = {};
|
|
97
|
-
message.price !== undefined &&
|
|
98
|
-
(obj.price = message.price
|
|
99
|
-
? pricing_1.TokenPrice.toJSON(message.price)
|
|
100
|
-
: undefined);
|
|
101
|
-
return obj;
|
|
102
|
-
},
|
|
103
|
-
fromPartial(object) {
|
|
104
|
-
const message = Object.assign({}, baseTokenPriceUpdateEvent);
|
|
105
|
-
message.price =
|
|
106
|
-
object.price !== undefined && object.price !== null
|
|
107
|
-
? pricing_1.TokenPrice.fromPartial(object.price)
|
|
108
|
-
: undefined;
|
|
109
|
-
return message;
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
62
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
113
63
|
minimal_1.default.util.Long = long_1.default;
|
|
114
64
|
minimal_1.default.configure();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, PriceSet
|
|
3
|
+
import { Params, PriceSet } from "../pricing/pricing";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.pricing";
|
|
5
5
|
/** GenesisState defines the pricing module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -9,7 +9,6 @@ export interface GenesisState {
|
|
|
9
9
|
* this line is used by starport scaffolding # ibc/genesis/proto
|
|
10
10
|
*/
|
|
11
11
|
prices: PriceSet[];
|
|
12
|
-
tokenPrice: TokenPrice[];
|
|
13
12
|
params?: Params;
|
|
14
13
|
}
|
|
15
14
|
export declare const 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 pricing_1 = require("
|
|
10
|
+
const pricing_1 = require("../pricing/pricing");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.pricing";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -15,11 +15,8 @@ exports.GenesisState = {
|
|
|
15
15
|
for (const v of message.prices) {
|
|
16
16
|
pricing_1.PriceSet.encode(v, writer.uint32(10).fork()).ldelim();
|
|
17
17
|
}
|
|
18
|
-
for (const v of message.tokenPrice) {
|
|
19
|
-
pricing_1.TokenPrice.encode(v, writer.uint32(18).fork()).ldelim();
|
|
20
|
-
}
|
|
21
18
|
if (message.params !== undefined) {
|
|
22
|
-
pricing_1.Params.encode(message.params, writer.uint32(
|
|
19
|
+
pricing_1.Params.encode(message.params, writer.uint32(42).fork()).ldelim();
|
|
23
20
|
}
|
|
24
21
|
return writer;
|
|
25
22
|
},
|
|
@@ -28,17 +25,13 @@ exports.GenesisState = {
|
|
|
28
25
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
26
|
const message = Object.assign({}, baseGenesisState);
|
|
30
27
|
message.prices = [];
|
|
31
|
-
message.tokenPrice = [];
|
|
32
28
|
while (reader.pos < end) {
|
|
33
29
|
const tag = reader.uint32();
|
|
34
30
|
switch (tag >>> 3) {
|
|
35
31
|
case 1:
|
|
36
32
|
message.prices.push(pricing_1.PriceSet.decode(reader, reader.uint32()));
|
|
37
33
|
break;
|
|
38
|
-
case
|
|
39
|
-
message.tokenPrice.push(pricing_1.TokenPrice.decode(reader, reader.uint32()));
|
|
40
|
-
break;
|
|
41
|
-
case 3:
|
|
34
|
+
case 5:
|
|
42
35
|
message.params = pricing_1.Params.decode(reader, reader.uint32());
|
|
43
36
|
break;
|
|
44
37
|
default:
|
|
@@ -49,10 +42,9 @@ exports.GenesisState = {
|
|
|
49
42
|
return message;
|
|
50
43
|
},
|
|
51
44
|
fromJSON(object) {
|
|
52
|
-
var _a
|
|
45
|
+
var _a;
|
|
53
46
|
const message = Object.assign({}, baseGenesisState);
|
|
54
47
|
message.prices = ((_a = object.prices) !== null && _a !== void 0 ? _a : []).map((e) => pricing_1.PriceSet.fromJSON(e));
|
|
55
|
-
message.tokenPrice = ((_b = object.tokenPrice) !== null && _b !== void 0 ? _b : []).map((e) => pricing_1.TokenPrice.fromJSON(e));
|
|
56
48
|
message.params =
|
|
57
49
|
object.params !== undefined && object.params !== null
|
|
58
50
|
? pricing_1.Params.fromJSON(object.params)
|
|
@@ -67,21 +59,14 @@ exports.GenesisState = {
|
|
|
67
59
|
else {
|
|
68
60
|
obj.prices = [];
|
|
69
61
|
}
|
|
70
|
-
if (message.tokenPrice) {
|
|
71
|
-
obj.tokenPrice = message.tokenPrice.map((e) => e ? pricing_1.TokenPrice.toJSON(e) : undefined);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
obj.tokenPrice = [];
|
|
75
|
-
}
|
|
76
62
|
message.params !== undefined &&
|
|
77
63
|
(obj.params = message.params ? pricing_1.Params.toJSON(message.params) : undefined);
|
|
78
64
|
return obj;
|
|
79
65
|
},
|
|
80
66
|
fromPartial(object) {
|
|
81
|
-
var _a
|
|
67
|
+
var _a;
|
|
82
68
|
const message = Object.assign({}, baseGenesisState);
|
|
83
69
|
message.prices = ((_a = object.prices) !== null && _a !== void 0 ? _a : []).map((e) => pricing_1.PriceSet.fromPartial(e));
|
|
84
|
-
message.tokenPrice = ((_b = object.tokenPrice) !== null && _b !== void 0 ? _b : []).map((e) => pricing_1.TokenPrice.fromPartial(e));
|
|
85
70
|
message.params =
|
|
86
71
|
object.params !== undefined && object.params !== null
|
|
87
72
|
? pricing_1.Params.fromPartial(object.params)
|
|
@@ -24,12 +24,6 @@ export interface PriceSet {
|
|
|
24
24
|
premiumRateCounter: string;
|
|
25
25
|
lastFundingAt?: Date;
|
|
26
26
|
}
|
|
27
|
-
export interface TokenPrice {
|
|
28
|
-
denom: string;
|
|
29
|
-
index: string;
|
|
30
|
-
twap: string;
|
|
31
|
-
indexUpdatedAt?: Date;
|
|
32
|
-
}
|
|
33
27
|
export declare const Params: {
|
|
34
28
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
35
29
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
|
|
@@ -44,13 +38,6 @@ export declare const PriceSet: {
|
|
|
44
38
|
toJSON(message: PriceSet): unknown;
|
|
45
39
|
fromPartial(object: DeepPartial<PriceSet>): PriceSet;
|
|
46
40
|
};
|
|
47
|
-
export declare const TokenPrice: {
|
|
48
|
-
encode(message: TokenPrice, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TokenPrice;
|
|
50
|
-
fromJSON(object: any): TokenPrice;
|
|
51
|
-
toJSON(message: TokenPrice): unknown;
|
|
52
|
-
fromPartial(object: DeepPartial<TokenPrice>): TokenPrice;
|
|
53
|
-
};
|
|
54
41
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
55
42
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
56
43
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.PriceSet = exports.Params = 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"));
|
|
@@ -312,88 +312,6 @@ exports.PriceSet = {
|
|
|
312
312
|
return message;
|
|
313
313
|
},
|
|
314
314
|
};
|
|
315
|
-
const baseTokenPrice = { denom: "", index: "", twap: "" };
|
|
316
|
-
exports.TokenPrice = {
|
|
317
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
318
|
-
if (message.denom !== "") {
|
|
319
|
-
writer.uint32(10).string(message.denom);
|
|
320
|
-
}
|
|
321
|
-
if (message.index !== "") {
|
|
322
|
-
writer.uint32(18).string(message.index);
|
|
323
|
-
}
|
|
324
|
-
if (message.twap !== "") {
|
|
325
|
-
writer.uint32(26).string(message.twap);
|
|
326
|
-
}
|
|
327
|
-
if (message.indexUpdatedAt !== undefined) {
|
|
328
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.indexUpdatedAt), writer.uint32(34).fork()).ldelim();
|
|
329
|
-
}
|
|
330
|
-
return writer;
|
|
331
|
-
},
|
|
332
|
-
decode(input, length) {
|
|
333
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
334
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
335
|
-
const message = Object.assign({}, baseTokenPrice);
|
|
336
|
-
while (reader.pos < end) {
|
|
337
|
-
const tag = reader.uint32();
|
|
338
|
-
switch (tag >>> 3) {
|
|
339
|
-
case 1:
|
|
340
|
-
message.denom = reader.string();
|
|
341
|
-
break;
|
|
342
|
-
case 2:
|
|
343
|
-
message.index = reader.string();
|
|
344
|
-
break;
|
|
345
|
-
case 3:
|
|
346
|
-
message.twap = reader.string();
|
|
347
|
-
break;
|
|
348
|
-
case 4:
|
|
349
|
-
message.indexUpdatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
350
|
-
break;
|
|
351
|
-
default:
|
|
352
|
-
reader.skipType(tag & 7);
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
return message;
|
|
357
|
-
},
|
|
358
|
-
fromJSON(object) {
|
|
359
|
-
const message = Object.assign({}, baseTokenPrice);
|
|
360
|
-
message.denom =
|
|
361
|
-
object.denom !== undefined && object.denom !== null
|
|
362
|
-
? String(object.denom)
|
|
363
|
-
: "";
|
|
364
|
-
message.index =
|
|
365
|
-
object.index !== undefined && object.index !== null
|
|
366
|
-
? String(object.index)
|
|
367
|
-
: "";
|
|
368
|
-
message.twap =
|
|
369
|
-
object.twap !== undefined && object.twap !== null
|
|
370
|
-
? String(object.twap)
|
|
371
|
-
: "";
|
|
372
|
-
message.indexUpdatedAt =
|
|
373
|
-
object.indexUpdatedAt !== undefined && object.indexUpdatedAt !== null
|
|
374
|
-
? fromJsonTimestamp(object.indexUpdatedAt)
|
|
375
|
-
: undefined;
|
|
376
|
-
return message;
|
|
377
|
-
},
|
|
378
|
-
toJSON(message) {
|
|
379
|
-
const obj = {};
|
|
380
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
381
|
-
message.index !== undefined && (obj.index = message.index);
|
|
382
|
-
message.twap !== undefined && (obj.twap = message.twap);
|
|
383
|
-
message.indexUpdatedAt !== undefined &&
|
|
384
|
-
(obj.indexUpdatedAt = message.indexUpdatedAt.toISOString());
|
|
385
|
-
return obj;
|
|
386
|
-
},
|
|
387
|
-
fromPartial(object) {
|
|
388
|
-
var _a, _b, _c, _d;
|
|
389
|
-
const message = Object.assign({}, baseTokenPrice);
|
|
390
|
-
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
391
|
-
message.index = (_b = object.index) !== null && _b !== void 0 ? _b : "";
|
|
392
|
-
message.twap = (_c = object.twap) !== null && _c !== void 0 ? _c : "";
|
|
393
|
-
message.indexUpdatedAt = (_d = object.indexUpdatedAt) !== null && _d !== void 0 ? _d : undefined;
|
|
394
|
-
return message;
|
|
395
|
-
},
|
|
396
|
-
};
|
|
397
315
|
function toTimestamp(date) {
|
|
398
316
|
const seconds = numberToLong(date.getTime() / 1000);
|
|
399
317
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PriceSet, Params } from "
|
|
3
|
+
import { PriceSet, Params } from "../pricing/pricing";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.pricing";
|
|
6
6
|
export interface QueryPriceSetRequest {
|
|
@@ -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 pricing_1 = require("
|
|
10
|
+
const pricing_1 = require("../pricing/pricing");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.pricing";
|
|
13
13
|
const baseQueryPriceSetRequest = { market: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Profile } from "
|
|
3
|
+
import { Profile } from "../profile/profile";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.profile";
|
|
5
5
|
export interface UpdateProfileEvent {
|
|
6
6
|
profile?: Profile;
|
|
@@ -7,7 +7,7 @@ exports.UpdateProfileEvent = 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 profile_1 = require("
|
|
10
|
+
const profile_1 = require("../profile/profile");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.profile";
|
|
12
12
|
const baseUpdateProfileEvent = { type: "" };
|
|
13
13
|
exports.UpdateProfileEvent = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Profile } from "
|
|
3
|
+
import { Profile } from "../profile/profile";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.profile";
|
|
5
5
|
/** GenesisState defines the profile 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 profile_1 = require("
|
|
10
|
+
const profile_1 = require("../profile/profile");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.profile";
|
|
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 { Profile } from "
|
|
3
|
+
import { Profile } from "../profile/profile";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.profile";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllProfileResponse = exports.QueryAllProf
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const profile_1 = require("
|
|
10
|
+
const profile_1 = require("../profile/profile");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.profile";
|
|
13
13
|
const baseQueryGetProfileRequest = { address: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { GenesisSubAccount } from "
|
|
3
|
+
import { GenesisSubAccount } from "../subaccount/subaccount";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.subaccount";
|
|
5
5
|
/** GenesisState defines the subaccount 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 subaccount_1 = require("
|
|
10
|
+
const subaccount_1 = require("../subaccount/subaccount");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.subaccount";
|
|
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 { SubAccount, GenesisSubAccount } from "
|
|
3
|
+
import { SubAccount, GenesisSubAccount } from "../subaccount/subaccount";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.subaccount";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QuerySubAccountPowerResponse = exports.QuerySu
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const subaccount_1 = require("
|
|
10
|
+
const subaccount_1 = require("../subaccount/subaccount");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.subaccount";
|
|
13
13
|
const baseQueryGetSubAccountRequest = { address: "" };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Header } from "
|
|
4
|
-
import { ProofOps } from "
|
|
5
|
-
import { EvidenceParams, ValidatorParams, VersionParams } from "
|
|
6
|
-
import { PublicKey } from "
|
|
3
|
+
import { Header } from "../../tendermint/types/types";
|
|
4
|
+
import { ProofOps } from "../../tendermint/crypto/proof";
|
|
5
|
+
import { EvidenceParams, ValidatorParams, VersionParams } from "../../tendermint/types/params";
|
|
6
|
+
import { PublicKey } from "../../tendermint/crypto/keys";
|
|
7
7
|
export declare const protobufPackage = "tendermint.abci";
|
|
8
8
|
export declare enum CheckTxType {
|
|
9
9
|
NEW = 0,
|
|
@@ -8,10 +8,10 @@ exports.ABCIApplicationClientImpl = exports.Snapshot = exports.Evidence = export
|
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
const long_1 = __importDefault(require("long"));
|
|
10
10
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
|
-
const types_1 = require("
|
|
12
|
-
const proof_1 = require("
|
|
13
|
-
const params_1 = require("
|
|
14
|
-
const keys_1 = require("
|
|
11
|
+
const types_1 = require("../../tendermint/types/types");
|
|
12
|
+
const proof_1 = require("../../tendermint/crypto/proof");
|
|
13
|
+
const params_1 = require("../../tendermint/types/params");
|
|
14
|
+
const keys_1 = require("../../tendermint/crypto/keys");
|
|
15
15
|
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
16
16
|
exports.protobufPackage = "tendermint.abci";
|
|
17
17
|
var CheckTxType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Header, Data, Commit } from "
|
|
4
|
-
import { EvidenceList } from "
|
|
3
|
+
import { Header, Data, Commit } from "../../tendermint/types/types";
|
|
4
|
+
import { EvidenceList } from "../../tendermint/types/evidence";
|
|
5
5
|
export declare const protobufPackage = "tendermint.types";
|
|
6
6
|
export interface Block {
|
|
7
7
|
header?: Header;
|
|
@@ -7,8 +7,8 @@ exports.Block = 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 types_1 = require("
|
|
11
|
-
const evidence_1 = require("
|
|
10
|
+
const types_1 = require("../../tendermint/types/types");
|
|
11
|
+
const evidence_1 = require("../../tendermint/types/evidence");
|
|
12
12
|
exports.protobufPackage = "tendermint.types";
|
|
13
13
|
const baseBlock = {};
|
|
14
14
|
exports.Block = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Vote, LightBlock } from "
|
|
4
|
-
import { Validator } from "
|
|
3
|
+
import { Vote, LightBlock } from "../../tendermint/types/types";
|
|
4
|
+
import { Validator } from "../../tendermint/types/validator";
|
|
5
5
|
export declare const protobufPackage = "tendermint.types";
|
|
6
6
|
export interface Evidence {
|
|
7
7
|
duplicateVoteEvidence?: DuplicateVoteEvidence | undefined;
|
|
@@ -7,9 +7,9 @@ exports.EvidenceList = exports.LightClientAttackEvidence = exports.DuplicateVote
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const types_1 = require("
|
|
10
|
+
const types_1 = require("../../tendermint/types/types");
|
|
11
11
|
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
12
|
-
const validator_1 = require("
|
|
12
|
+
const validator_1 = require("../../tendermint/types/validator");
|
|
13
13
|
exports.protobufPackage = "tendermint.types";
|
|
14
14
|
const baseEvidence = {};
|
|
15
15
|
exports.Evidence = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Proof } from "
|
|
4
|
-
import { Consensus } from "
|
|
5
|
-
import { ValidatorSet } from "
|
|
3
|
+
import { Proof } from "../../tendermint/crypto/proof";
|
|
4
|
+
import { Consensus } from "../../tendermint/version/types";
|
|
5
|
+
import { ValidatorSet } from "../../tendermint/types/validator";
|
|
6
6
|
export declare const protobufPackage = "tendermint.types";
|
|
7
7
|
/** BlockIdFlag indicates which BlcokID the signature is for */
|
|
8
8
|
export declare enum BlockIDFlag {
|
|
@@ -7,9 +7,9 @@ exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const proof_1 = require("
|
|
11
|
-
const types_1 = require("
|
|
12
|
-
const validator_1 = require("
|
|
10
|
+
const proof_1 = require("../../tendermint/crypto/proof");
|
|
11
|
+
const types_1 = require("../../tendermint/version/types");
|
|
12
|
+
const validator_1 = require("../../tendermint/types/validator");
|
|
13
13
|
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
14
14
|
exports.protobufPackage = "tendermint.types";
|
|
15
15
|
/** BlockIdFlag indicates which BlcokID the signature is for */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PublicKey } from "
|
|
3
|
+
import { PublicKey } from "../../tendermint/crypto/keys";
|
|
4
4
|
export declare const protobufPackage = "tendermint.types";
|
|
5
5
|
export interface ValidatorSet {
|
|
6
6
|
validators: Validator[];
|