carbon-js-sdk 0.2.11 → 0.2.13-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clients/CarbonQueryClient.d.ts +5 -2
- package/lib/clients/CarbonQueryClient.js +59 -54
- package/lib/clients/ETHClient.js +4 -4
- package/lib/clients/NEOClient.js +1 -1
- package/lib/clients/TokenClient.d.ts +6 -1
- package/lib/clients/TokenClient.js +24 -8
- 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 -11
- package/lib/codec/cdp/asset_params.js +32 -84
- package/lib/codec/cdp/debt_info.d.ts +2 -3
- package/lib/codec/cdp/debt_info.js +31 -42
- package/lib/codec/cdp/event.d.ts +240 -22
- package/lib/codec/cdp/event.js +1516 -80
- package/lib/codec/cdp/genesis.d.ts +80 -4
- package/lib/codec/cdp/genesis.js +531 -22
- package/lib/codec/cdp/query.d.ts +397 -94
- package/lib/codec/cdp/query.js +1586 -230
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +2 -3
- package/lib/codec/cdp/stablecoin_debt_info.js +29 -40
- 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 +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 +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 +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 +53 -22
- package/lib/codec/index.js +520 -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/network.d.ts +3 -0
- package/lib/constant/network.js +12 -0
- package/lib/modules/admin.d.ts +53 -1
- package/lib/modules/admin.js +175 -43
- package/lib/modules/cdp.d.ts +62 -12
- package/lib/modules/cdp.js +149 -20
- package/lib/modules/fee.d.ts +2 -2
- package/lib/modules/fee.js +4 -5
- package/lib/provider/amino/types/admin.js +48 -7
- package/lib/provider/amino/types/cdp.js +72 -32
- package/lib/provider/sdk/SDKProvider.d.ts +2 -1
- package/lib/util/tx.d.ts +42 -14
- package/lib/websocket/channel.js +44 -0
- package/lib/websocket/models.d.ts +116 -0
- package/lib/websocket/types.d.ts +58 -3
- package/lib/websocket/types.js +22 -0
- package/package.json +1 -1
|
@@ -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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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 "../types/types";
|
|
4
|
+
import { ProofOps } from "../crypto/proof";
|
|
5
|
+
import { EvidenceParams, ValidatorParams, VersionParams } from "../types/params";
|
|
6
|
+
import { PublicKey } from "../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("../types/types");
|
|
12
|
+
const proof_1 = require("../crypto/proof");
|
|
13
|
+
const params_1 = require("../types/params");
|
|
14
|
+
const keys_1 = require("../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 "./types";
|
|
4
|
+
import { EvidenceList } from "./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("./types");
|
|
11
|
+
const evidence_1 = require("./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 "./types";
|
|
4
|
+
import { Validator } from "./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("./types");
|
|
11
11
|
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
12
|
-
const validator_1 = require("
|
|
12
|
+
const validator_1 = require("./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 "../crypto/proof";
|
|
4
|
+
import { Consensus } from "../version/types";
|
|
5
|
+
import { ValidatorSet } from "./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("../crypto/proof");
|
|
11
|
+
const types_1 = require("../version/types");
|
|
12
|
+
const validator_1 = require("./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 "../crypto/keys";
|
|
4
4
|
export declare const protobufPackage = "tendermint.types";
|
|
5
5
|
export interface ValidatorSet {
|
|
6
6
|
validators: Validator[];
|
|
@@ -7,7 +7,7 @@ exports.SimpleValidator = exports.Validator = exports.ValidatorSet = exports.pro
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const keys_1 = require("
|
|
10
|
+
const keys_1 = require("../crypto/keys");
|
|
11
11
|
exports.protobufPackage = "tendermint.types";
|
|
12
12
|
const baseValidatorSet = { totalVotingPower: long_1.default.ZERO };
|
|
13
13
|
exports.ValidatorSet = {
|
|
@@ -38,6 +38,9 @@ export interface NetworkConfig {
|
|
|
38
38
|
faucetUrl: string;
|
|
39
39
|
Bech32Prefix: string;
|
|
40
40
|
network: Network;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated on-chain fee service has been removed, please use the hydrogen fee_quote endpoint to query deposit/withdraw fees (please see HydrogenClient for the required query)
|
|
43
|
+
*/
|
|
41
44
|
feeURL: string;
|
|
42
45
|
feeAddress: string;
|
|
43
46
|
eth: EthNetworkConfig;
|
package/lib/constant/network.js
CHANGED
|
@@ -21,6 +21,9 @@ exports.NetworkConfigs = {
|
|
|
21
21
|
wsUrl: "wss://ws-api.carbon.network/ws",
|
|
22
22
|
faucetUrl: "",
|
|
23
23
|
Bech32Prefix: "swth",
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated on-chain fee service has been removed, please use the hydrogen fee_quote endpoint to query deposit/withdraw fees (please see HydrogenClient for the required query)
|
|
26
|
+
*/
|
|
24
27
|
feeURL: "https://fees.carbon.network",
|
|
25
28
|
feeAddress: "08d8f59e475830d9a1bb97d74285c4d34c6dac08",
|
|
26
29
|
eth: {
|
|
@@ -66,6 +69,9 @@ exports.NetworkConfigs = {
|
|
|
66
69
|
wsUrl: "wss://test-ws-api.carbon.network/ws",
|
|
67
70
|
faucetUrl: "https://test-faucet.carbon.network",
|
|
68
71
|
Bech32Prefix: "tswth",
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated on-chain fee service has been removed, please use the hydrogen fee_quote endpoint to query deposit/withdraw fees (please see HydrogenClient for the required query)
|
|
74
|
+
*/
|
|
69
75
|
feeURL: `http://54.255.42.175:9001`,
|
|
70
76
|
feeAddress: "989761fb0c0eb0c05605e849cae77d239f98ac7f",
|
|
71
77
|
eth: {
|
|
@@ -111,6 +117,9 @@ exports.NetworkConfigs = {
|
|
|
111
117
|
wsUrl: "wss://dev-ws-api.carbon.network/ws",
|
|
112
118
|
faucetUrl: "https://dev-faucet.carbon.network",
|
|
113
119
|
Bech32Prefix: "swth",
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated on-chain fee service has been removed, please use the hydrogen fee_quote endpoint to query deposit/withdraw fees (please see HydrogenClient for the required query)
|
|
122
|
+
*/
|
|
114
123
|
feeURL: `https://dev-fees.carbon.network`,
|
|
115
124
|
feeAddress: "989761fb0c0eb0c05605e849cae77d239f98ac7f",
|
|
116
125
|
eth: {
|
|
@@ -156,6 +165,9 @@ exports.NetworkConfigs = {
|
|
|
156
165
|
wsUrl: "ws://localhost:5000/ws",
|
|
157
166
|
faucetUrl: "http://localhost:4500",
|
|
158
167
|
Bech32Prefix: "tswth",
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated on-chain fee service has been removed, please use the hydrogen fee_quote endpoint to query deposit/withdraw fees (please see HydrogenClient for the required query)
|
|
170
|
+
*/
|
|
159
171
|
feeURL: `http://localhost:9001`,
|
|
160
172
|
feeAddress: "989761fb0c0eb0c05605e849cae77d239f98ac7f",
|
|
161
173
|
eth: {
|
package/lib/modules/admin.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare class AdminModule extends BaseModule {
|
|
|
16
16
|
linkToken(params: AdminModule.LinkTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
17
17
|
createMarket(params: AdminModule.CreateMarketParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
18
18
|
createMarkets(params: AdminModule.CreateMarketParams[], opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
19
|
-
createVaultType(params: AdminModule.CreateVaultTypeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
20
19
|
linkPool(params: AdminModule.LinkPoolParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
21
20
|
unlinkPool(params: AdminModule.UnlinkPoolParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
22
21
|
setRewardsWeights(params: AdminModule.SetRewardsWeightsParams[], opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
@@ -33,6 +32,14 @@ export declare class AdminModule extends BaseModule {
|
|
|
33
32
|
editValidator(params: AdminModule.EditValidatorParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
34
33
|
authorizeBridge(params: AdminModule.AuthorizeBridgeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
35
34
|
deauthorizeBridge(params: AdminModule.DeauthorizeBridgeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
35
|
+
addRateStrategy(params: AdminModule.AddRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
36
|
+
updateRateStrategy(params: AdminModule.UpdateRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
37
|
+
removeRateStrategy(params: AdminModule.RemoveRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
38
|
+
addAsset(params: AdminModule.AddAssetParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
39
|
+
updateAsset(params: AdminModule.UpdateAssetParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
40
|
+
setLiquidationFee(params: AdminModule.SetLiquidationFeeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
41
|
+
setInterestFee(params: AdminModule.SetInterestFeeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
42
|
+
setStableCoinInterestRate(params: AdminModule.SetStableCoinInterestRateParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
36
43
|
}
|
|
37
44
|
export declare namespace AdminModule {
|
|
38
45
|
interface AuthorizeBridgeParams {
|
|
@@ -181,6 +188,51 @@ export declare namespace AdminModule {
|
|
|
181
188
|
commissionRate: BigNumber;
|
|
182
189
|
minSelfDelegation: BigNumber;
|
|
183
190
|
}
|
|
191
|
+
interface RateStrategy {
|
|
192
|
+
name: string;
|
|
193
|
+
optimalUsage: BigNumber;
|
|
194
|
+
baseVariableBorrowRate: BigNumber;
|
|
195
|
+
variableRateSlope1: BigNumber;
|
|
196
|
+
variableRateSlope2: BigNumber;
|
|
197
|
+
baseStableBorrowRate: BigNumber;
|
|
198
|
+
stableRateSlope1: BigNumber;
|
|
199
|
+
stableRateSlope2: BigNumber;
|
|
200
|
+
optimalStableToTotalDebtRatio: BigNumber;
|
|
201
|
+
}
|
|
202
|
+
interface Asset {
|
|
203
|
+
denom: string;
|
|
204
|
+
oracleId: string;
|
|
205
|
+
rateStrategyName: string;
|
|
206
|
+
loanToValue: BigNumber;
|
|
207
|
+
liquidationThreshold: BigNumber;
|
|
208
|
+
liquidationBonus: BigNumber;
|
|
209
|
+
supplyCap: BigNumber;
|
|
210
|
+
borrowCap: BigNumber;
|
|
211
|
+
}
|
|
212
|
+
interface AddRateStrategyParams {
|
|
213
|
+
rateStrategy: RateStrategy;
|
|
214
|
+
}
|
|
215
|
+
interface UpdateRateStrategyParams {
|
|
216
|
+
rateStrategy: RateStrategy;
|
|
217
|
+
}
|
|
218
|
+
interface RemoveRateStrategyParams {
|
|
219
|
+
name: string;
|
|
220
|
+
}
|
|
221
|
+
interface AddAssetParams {
|
|
222
|
+
asset: Asset;
|
|
223
|
+
}
|
|
224
|
+
interface UpdateAssetParams {
|
|
225
|
+
asset: Asset;
|
|
226
|
+
}
|
|
227
|
+
interface SetLiquidationFeeParams {
|
|
228
|
+
liquidationFee: BigNumber;
|
|
229
|
+
}
|
|
230
|
+
interface SetInterestFeeParams {
|
|
231
|
+
interestFee: BigNumber;
|
|
232
|
+
}
|
|
233
|
+
interface SetStableCoinInterestRateParams {
|
|
234
|
+
stablecoinInterestRate: BigNumber;
|
|
235
|
+
}
|
|
184
236
|
}
|
|
185
237
|
export declare function transfromCreateOracleParams(msg: AdminModule.CreateOracleParams, address: string): {
|
|
186
238
|
creator: string;
|