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
package/lib/clients/NEOClient.js
CHANGED
|
@@ -37,8 +37,8 @@ const util_1 = require("../util");
|
|
|
37
37
|
const address_1 = require("../util/address");
|
|
38
38
|
const blockchain_1 = require("../util/blockchain");
|
|
39
39
|
const generic_1 = require("../util/generic");
|
|
40
|
-
const Neon = __importStar(require("@cityofzion/neon-core"));
|
|
41
40
|
const neon_js_1 = require("@cityofzion/neon-js");
|
|
41
|
+
const Neon = __importStar(require("@cityofzion/neon-core"));
|
|
42
42
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
43
43
|
const ethers_1 = require("ethers");
|
|
44
44
|
const lodash_1 = require("lodash");
|
|
@@ -11,7 +11,6 @@ declare class TokenClient {
|
|
|
11
11
|
readonly tokens: TypeUtils.SimpleMap<Token>;
|
|
12
12
|
readonly wrapperMap: TypeUtils.SimpleMap<string>;
|
|
13
13
|
readonly poolTokens: TypeUtils.SimpleMap<Token>;
|
|
14
|
-
readonly cdpTokens: TypeUtils.SimpleMap<Token>;
|
|
15
14
|
readonly symbols: TypeUtils.SimpleMap<string>;
|
|
16
15
|
readonly usdValues: TypeUtils.SimpleMap<BigNumber>;
|
|
17
16
|
readonly commonAssetNames: TypeUtils.SimpleMap<string>;
|
|
@@ -36,7 +35,6 @@ declare class TokenClient {
|
|
|
36
35
|
static isPoolTokenNew(denom: string): boolean;
|
|
37
36
|
static isPoolTokenLegacy(denom: string): boolean;
|
|
38
37
|
static isPoolToken(denom: string): boolean;
|
|
39
|
-
static isCdpToken(denom: string): boolean;
|
|
40
38
|
static isIBCDenom(denom: string): boolean;
|
|
41
39
|
isWrappedToken(denom?: string): boolean;
|
|
42
40
|
hasWrappedToken(denom?: string): boolean;
|
|
@@ -44,9 +42,7 @@ declare class TokenClient {
|
|
|
44
42
|
getWrappedToken(denom: string, blockchain?: BlockchainUtils.Blockchain): Token | null;
|
|
45
43
|
getSourceToken(denom: string): Token | null;
|
|
46
44
|
getNativeToken(): Token | undefined;
|
|
47
|
-
getNativeStablecoin(): Token | undefined;
|
|
48
45
|
isNativeToken(denom: string): boolean;
|
|
49
|
-
isNativeStablecoin(denom: string): boolean;
|
|
50
46
|
getDepositTokenFor(tokenDenom: string, chain: BlockchainUtils.Blockchain): Token | undefined;
|
|
51
47
|
getAllTokens(): Promise<Token[]>;
|
|
52
48
|
reloadTokens(): Promise<TypeUtils.SimpleMap<Token>>;
|
|
@@ -39,7 +39,6 @@ class TokenClient {
|
|
|
39
39
|
this.tokens = {};
|
|
40
40
|
this.wrapperMap = {};
|
|
41
41
|
this.poolTokens = {};
|
|
42
|
-
this.cdpTokens = {};
|
|
43
42
|
this.symbols = {};
|
|
44
43
|
this.usdValues = {};
|
|
45
44
|
this.commonAssetNames = constant_1.CommonAssetName;
|
|
@@ -73,16 +72,16 @@ class TokenClient {
|
|
|
73
72
|
return (_a = this.commonAssetNames[denom]) !== null && _a !== void 0 ? _a : denom;
|
|
74
73
|
}
|
|
75
74
|
getDecimals(denom) {
|
|
76
|
-
var _a, _b
|
|
77
|
-
return (
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return (_b = ((_a = this.tokens[denom]) !== null && _a !== void 0 ? _a : this.poolTokens[denom])) === null || _b === void 0 ? void 0 : _b.decimals.toNumber();
|
|
78
77
|
}
|
|
79
78
|
getBlockchain(denom) {
|
|
80
79
|
var _a, _b, _c;
|
|
81
80
|
// chainId defaults to 3 so that blockchain will be undefined
|
|
82
81
|
let chainId = (_c = (_b = (_a = this.tokens[denom]) === null || _a === void 0 ? void 0 : _a.chainId) === null || _b === void 0 ? void 0 : _b.toNumber()) !== null && _c !== void 0 ? _c : 3;
|
|
83
|
-
if (this.isNativeToken(denom) ||
|
|
84
|
-
// native
|
|
85
|
-
// pool
|
|
82
|
+
if (this.isNativeToken(denom) || TokenClient.isPoolToken(denom)) {
|
|
83
|
+
// native denom "swth" should be native.
|
|
84
|
+
// pool tokens are on the Native blockchain, hence 0
|
|
86
85
|
chainId = 0;
|
|
87
86
|
}
|
|
88
87
|
if (TokenClient.isIBCDenom(denom)) {
|
|
@@ -156,7 +155,7 @@ class TokenClient {
|
|
|
156
155
|
return symbol;
|
|
157
156
|
}
|
|
158
157
|
getTokenDesc(denom) {
|
|
159
|
-
var _a, _b
|
|
158
|
+
var _a, _b;
|
|
160
159
|
if (typeof denom !== 'string')
|
|
161
160
|
return '';
|
|
162
161
|
denom = denom.toLowerCase();
|
|
@@ -173,10 +172,7 @@ class TokenClient {
|
|
|
173
172
|
const symbolB = this.getTokenName(denomB);
|
|
174
173
|
return `${weightA}% ${symbolA} / ${weightB}% ${symbolB}`;
|
|
175
174
|
}
|
|
176
|
-
|
|
177
|
-
return (_b = (_a = this.cdpTokens[denom]) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getSymbol(denom);
|
|
178
|
-
}
|
|
179
|
-
return (_d = (_c = this.tokens[denom]) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : this.getSymbol(denom);
|
|
175
|
+
return (_b = (_a = this.tokens[denom]) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getSymbol(denom);
|
|
180
176
|
}
|
|
181
177
|
static isPoolTokenNew(denom) {
|
|
182
178
|
return denom.match(/^clpt\/(\d+)$/i) !== null;
|
|
@@ -187,9 +183,6 @@ class TokenClient {
|
|
|
187
183
|
static isPoolToken(denom) {
|
|
188
184
|
return this.isPoolTokenNew(denom) || this.isPoolTokenLegacy(denom);
|
|
189
185
|
}
|
|
190
|
-
static isCdpToken(denom) {
|
|
191
|
-
return denom.includes('cdp/');
|
|
192
|
-
}
|
|
193
186
|
static isIBCDenom(denom) {
|
|
194
187
|
return denom.match(ibc_1.ibcTokenRegex) !== null;
|
|
195
188
|
}
|
|
@@ -259,15 +252,9 @@ class TokenClient {
|
|
|
259
252
|
getNativeToken() {
|
|
260
253
|
return this.tokenForId("swth");
|
|
261
254
|
}
|
|
262
|
-
getNativeStablecoin() {
|
|
263
|
-
return this.tokenForId("usc");
|
|
264
|
-
}
|
|
265
255
|
isNativeToken(denom) {
|
|
266
256
|
return denom === "swth";
|
|
267
257
|
}
|
|
268
|
-
isNativeStablecoin(denom) {
|
|
269
|
-
return denom === "usc";
|
|
270
|
-
}
|
|
271
258
|
getDepositTokenFor(tokenDenom, chain) {
|
|
272
259
|
const token = this.tokenForDenom(tokenDenom);
|
|
273
260
|
if (!token) {
|
|
@@ -313,9 +300,6 @@ class TokenClient {
|
|
|
313
300
|
if (TokenClient.isPoolToken(token.denom)) {
|
|
314
301
|
this.poolTokens[token.denom] = token;
|
|
315
302
|
}
|
|
316
|
-
else if (TokenClient.isCdpToken(token.denom)) {
|
|
317
|
-
this.cdpTokens[token.denom] = token;
|
|
318
|
-
}
|
|
319
303
|
else {
|
|
320
304
|
if (this.isNativeToken(token.denom)) {
|
|
321
305
|
// Change token name to Carbon
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { OrderBook, StopBook } from "
|
|
3
|
+
import { OrderBook, StopBook } from "../book/book";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.book";
|
|
5
5
|
/** GenesisState defines the book 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 book_1 = require("
|
|
10
|
+
const book_1 = require("../book/book");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.book";
|
|
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 { OrderBook } from "
|
|
3
|
+
import { OrderBook } from "../book/book";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.book";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
package/lib/codec/book/query.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllBookResponse = exports.QueryAllBookReq
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const book_1 = require("
|
|
10
|
+
const book_1 = require("../book/book");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.book";
|
|
13
13
|
const baseQueryGetBookRequest = { market: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Amm } from "
|
|
3
|
+
import { Amm } from "../broker/amm";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.broker";
|
|
5
5
|
/** GenesisState defines the broker 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 amm_1 = require("
|
|
10
|
+
const amm_1 = require("../broker/amm");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.broker";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../query/pagination";
|
|
4
|
-
import { MinMaxBoundary } from "
|
|
5
|
-
import { Candlestick } from "
|
|
6
|
-
import { TradeEvent } from "
|
|
4
|
+
import { MinMaxBoundary } from "../broker/pagination";
|
|
5
|
+
import { Candlestick } from "../broker/candlestick";
|
|
6
|
+
import { TradeEvent } from "../broker/event";
|
|
7
7
|
export declare const protobufPackage = "Switcheo.carbon.broker";
|
|
8
8
|
export interface QueryCandlesticksRequest {
|
|
9
9
|
market: string;
|
|
@@ -8,9 +8,9 @@ exports.QueryClientImpl = exports.QueryTradesForPositionResponse = exports.Query
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const pagination_1 = require("../query/pagination");
|
|
11
|
-
const pagination_2 = require("
|
|
12
|
-
const candlestick_1 = require("
|
|
13
|
-
const event_1 = require("
|
|
11
|
+
const pagination_2 = require("../broker/pagination");
|
|
12
|
+
const candlestick_1 = require("../broker/candlestick");
|
|
13
|
+
const event_1 = require("../broker/event");
|
|
14
14
|
exports.protobufPackage = "Switcheo.carbon.broker";
|
|
15
15
|
const baseQueryCandlesticksRequest = {
|
|
16
16
|
market: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DenomInfo } from "
|
|
3
|
+
import { DenomInfo } from "../btcx/denom_info";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.btcx";
|
|
5
5
|
export interface DenomCrossChainInfo {
|
|
6
6
|
denomInfo?: DenomInfo;
|
|
@@ -7,7 +7,7 @@ exports.DenomCrossChainInfo = 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 denom_info_1 = require("
|
|
10
|
+
const denom_info_1 = require("../btcx/denom_info");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.btcx";
|
|
12
12
|
const baseDenomCrossChainInfo = {
|
|
13
13
|
toChainId: long_1.default.UZERO,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DenomInfo } from "
|
|
3
|
+
import { DenomInfo } from "../btcx/denom_info";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.btcx";
|
|
5
5
|
/** this line is used by starport scaffolding # 3 */
|
|
6
6
|
export interface QueryGetDenomInfoRequest {
|
package/lib/codec/btcx/query.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryGetDenomCrossChainInfoResponse = exports.
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const denom_info_1 = require("
|
|
10
|
+
const denom_info_1 = require("../btcx/denom_info");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.btcx";
|
|
12
12
|
const baseQueryGetDenomInfoRequest = { denom: "" };
|
|
13
13
|
exports.QueryGetDenomInfoRequest = {
|
|
@@ -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 "../ccm/ccm";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.ccm";
|
|
5
5
|
/** GenesisState defines the ccm module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
package/lib/codec/ccm/genesis.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreat
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const ccm_1 = require("
|
|
10
|
+
const ccm_1 = require("../ccm/ccm");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.ccm";
|
|
12
12
|
const baseGenesisState = { createdTxCount: "" };
|
|
13
13
|
exports.GenesisState = {
|
package/lib/codec/cdp/event.d.ts
CHANGED
|
@@ -1,249 +1,31 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import {
|
|
4
|
-
import { AssetParams } from "./asset_params";
|
|
5
|
-
import { DebtInfo } from "./debt_info";
|
|
6
|
-
import { StablecoinDebtInfo } from "./stablecoin_debt_info";
|
|
3
|
+
import { VaultType } from "../cdp/vault";
|
|
7
4
|
export declare const protobufPackage = "Switcheo.carbon.cdp";
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export interface UpdateRateStrategyParamsEvent {
|
|
13
|
-
rateStrategyParams?: RateStrategyParams;
|
|
14
|
-
type: string;
|
|
15
|
-
}
|
|
16
|
-
export interface RemoveRateStrategyParamsEvent {
|
|
17
|
-
rateStrategyParams?: RateStrategyParams;
|
|
18
|
-
type: string;
|
|
19
|
-
}
|
|
20
|
-
export interface NewAssetParamsEvent {
|
|
21
|
-
assetParams?: AssetParams;
|
|
22
|
-
type: string;
|
|
23
|
-
}
|
|
24
|
-
export interface UpdateAssetParamsEvent {
|
|
25
|
-
assetParams?: AssetParams;
|
|
26
|
-
type: string;
|
|
27
|
-
}
|
|
28
|
-
export interface SetInterestFeeEvent {
|
|
29
|
-
interestFee: string;
|
|
30
|
-
type: string;
|
|
31
|
-
}
|
|
32
|
-
export interface SetLiquidationFeeEvent {
|
|
33
|
-
liquidationFee: string;
|
|
34
|
-
type: string;
|
|
35
|
-
}
|
|
36
|
-
export interface SetStablecoinInterestRateEvent {
|
|
37
|
-
stablecoinInterestRate: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}
|
|
40
|
-
export interface SupplyAssetEvent {
|
|
41
|
-
supplier: string;
|
|
42
|
-
denom: string;
|
|
43
|
-
amountSupplied: string;
|
|
44
|
-
cdpDenom: string;
|
|
45
|
-
amountMinted: string;
|
|
46
|
-
}
|
|
47
|
-
export interface WithdrawAssetEvent {
|
|
48
|
-
withdrawer: string;
|
|
49
|
-
denom: string;
|
|
50
|
-
amountWithdrawed: string;
|
|
51
|
-
cdpDenom: string;
|
|
52
|
-
amountBurned: string;
|
|
53
|
-
}
|
|
54
|
-
export interface BorrowAssetEvent {
|
|
55
|
-
borrower: string;
|
|
56
|
-
denom: string;
|
|
57
|
-
amountBorrowed: string;
|
|
58
|
-
healthFactor: string;
|
|
59
|
-
}
|
|
60
|
-
export interface RepayAssetEvent {
|
|
61
|
-
repayer: string;
|
|
62
|
-
debtor: string;
|
|
63
|
-
denom: string;
|
|
64
|
-
principalRepaid: string;
|
|
65
|
-
interestRepaid: string;
|
|
66
|
-
healthFactor: string;
|
|
67
|
-
}
|
|
68
|
-
export interface LockCollateralEvent {
|
|
69
|
-
locker: string;
|
|
70
|
-
cdpDenom: string;
|
|
71
|
-
amountLocked: string;
|
|
72
|
-
healthFactor: string;
|
|
73
|
-
}
|
|
74
|
-
export interface UnlockCollateralEvent {
|
|
75
|
-
unlocker: string;
|
|
76
|
-
cdpDenom: string;
|
|
77
|
-
amountUnlocked: string;
|
|
78
|
-
healthFactor: string;
|
|
79
|
-
}
|
|
80
|
-
export interface UpdateDebtInfoEvent {
|
|
81
|
-
debtInfo?: DebtInfo;
|
|
82
|
-
type: string;
|
|
5
|
+
export interface VaultTypeEvent {
|
|
6
|
+
vaultType?: VaultType;
|
|
7
|
+
creator: string;
|
|
83
8
|
}
|
|
84
|
-
export interface
|
|
85
|
-
stablecoinDebtInfo?: StablecoinDebtInfo;
|
|
9
|
+
export interface VaultEvent {
|
|
86
10
|
type: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
minter: string;
|
|
90
|
-
denom: string;
|
|
91
|
-
amountMinted: string;
|
|
92
|
-
healthFactor: string;
|
|
93
|
-
}
|
|
94
|
-
export interface ReturnStablecoinEvent {
|
|
95
|
-
returner: string;
|
|
96
|
-
debtor: string;
|
|
97
|
-
interestDenom: string;
|
|
98
|
-
interestRepaid: string;
|
|
99
|
-
principalRepaid: string;
|
|
100
|
-
healthFactor: string;
|
|
101
|
-
}
|
|
102
|
-
export interface LiquidateCollateralEvent {
|
|
103
|
-
liquidator: string;
|
|
104
|
-
debtor: string;
|
|
105
|
-
collateralDenom: string;
|
|
106
|
-
collateralAmountLiquidated: string;
|
|
107
|
-
collateralAmountLiquidator: string;
|
|
108
|
-
collateralAmountFee: string;
|
|
109
|
-
liquidationPrice: string;
|
|
110
|
-
marketPrice: string;
|
|
111
|
-
discount: string;
|
|
112
|
-
debtDenom: string;
|
|
11
|
+
vaultTypeId: Long;
|
|
12
|
+
collateralAmount: string;
|
|
113
13
|
debtAmount: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
export declare const RemoveRateStrategyParamsEvent: {
|
|
130
|
-
encode(message: RemoveRateStrategyParamsEvent, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RemoveRateStrategyParamsEvent;
|
|
132
|
-
fromJSON(object: any): RemoveRateStrategyParamsEvent;
|
|
133
|
-
toJSON(message: RemoveRateStrategyParamsEvent): unknown;
|
|
134
|
-
fromPartial(object: DeepPartial<RemoveRateStrategyParamsEvent>): RemoveRateStrategyParamsEvent;
|
|
135
|
-
};
|
|
136
|
-
export declare const NewAssetParamsEvent: {
|
|
137
|
-
encode(message: NewAssetParamsEvent, writer?: _m0.Writer): _m0.Writer;
|
|
138
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): NewAssetParamsEvent;
|
|
139
|
-
fromJSON(object: any): NewAssetParamsEvent;
|
|
140
|
-
toJSON(message: NewAssetParamsEvent): unknown;
|
|
141
|
-
fromPartial(object: DeepPartial<NewAssetParamsEvent>): NewAssetParamsEvent;
|
|
142
|
-
};
|
|
143
|
-
export declare const UpdateAssetParamsEvent: {
|
|
144
|
-
encode(message: UpdateAssetParamsEvent, writer?: _m0.Writer): _m0.Writer;
|
|
145
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateAssetParamsEvent;
|
|
146
|
-
fromJSON(object: any): UpdateAssetParamsEvent;
|
|
147
|
-
toJSON(message: UpdateAssetParamsEvent): unknown;
|
|
148
|
-
fromPartial(object: DeepPartial<UpdateAssetParamsEvent>): UpdateAssetParamsEvent;
|
|
149
|
-
};
|
|
150
|
-
export declare const SetInterestFeeEvent: {
|
|
151
|
-
encode(message: SetInterestFeeEvent, writer?: _m0.Writer): _m0.Writer;
|
|
152
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetInterestFeeEvent;
|
|
153
|
-
fromJSON(object: any): SetInterestFeeEvent;
|
|
154
|
-
toJSON(message: SetInterestFeeEvent): unknown;
|
|
155
|
-
fromPartial(object: DeepPartial<SetInterestFeeEvent>): SetInterestFeeEvent;
|
|
156
|
-
};
|
|
157
|
-
export declare const SetLiquidationFeeEvent: {
|
|
158
|
-
encode(message: SetLiquidationFeeEvent, writer?: _m0.Writer): _m0.Writer;
|
|
159
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetLiquidationFeeEvent;
|
|
160
|
-
fromJSON(object: any): SetLiquidationFeeEvent;
|
|
161
|
-
toJSON(message: SetLiquidationFeeEvent): unknown;
|
|
162
|
-
fromPartial(object: DeepPartial<SetLiquidationFeeEvent>): SetLiquidationFeeEvent;
|
|
163
|
-
};
|
|
164
|
-
export declare const SetStablecoinInterestRateEvent: {
|
|
165
|
-
encode(message: SetStablecoinInterestRateEvent, writer?: _m0.Writer): _m0.Writer;
|
|
166
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetStablecoinInterestRateEvent;
|
|
167
|
-
fromJSON(object: any): SetStablecoinInterestRateEvent;
|
|
168
|
-
toJSON(message: SetStablecoinInterestRateEvent): unknown;
|
|
169
|
-
fromPartial(object: DeepPartial<SetStablecoinInterestRateEvent>): SetStablecoinInterestRateEvent;
|
|
170
|
-
};
|
|
171
|
-
export declare const SupplyAssetEvent: {
|
|
172
|
-
encode(message: SupplyAssetEvent, writer?: _m0.Writer): _m0.Writer;
|
|
173
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SupplyAssetEvent;
|
|
174
|
-
fromJSON(object: any): SupplyAssetEvent;
|
|
175
|
-
toJSON(message: SupplyAssetEvent): unknown;
|
|
176
|
-
fromPartial(object: DeepPartial<SupplyAssetEvent>): SupplyAssetEvent;
|
|
177
|
-
};
|
|
178
|
-
export declare const WithdrawAssetEvent: {
|
|
179
|
-
encode(message: WithdrawAssetEvent, writer?: _m0.Writer): _m0.Writer;
|
|
180
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WithdrawAssetEvent;
|
|
181
|
-
fromJSON(object: any): WithdrawAssetEvent;
|
|
182
|
-
toJSON(message: WithdrawAssetEvent): unknown;
|
|
183
|
-
fromPartial(object: DeepPartial<WithdrawAssetEvent>): WithdrawAssetEvent;
|
|
184
|
-
};
|
|
185
|
-
export declare const BorrowAssetEvent: {
|
|
186
|
-
encode(message: BorrowAssetEvent, writer?: _m0.Writer): _m0.Writer;
|
|
187
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BorrowAssetEvent;
|
|
188
|
-
fromJSON(object: any): BorrowAssetEvent;
|
|
189
|
-
toJSON(message: BorrowAssetEvent): unknown;
|
|
190
|
-
fromPartial(object: DeepPartial<BorrowAssetEvent>): BorrowAssetEvent;
|
|
191
|
-
};
|
|
192
|
-
export declare const RepayAssetEvent: {
|
|
193
|
-
encode(message: RepayAssetEvent, writer?: _m0.Writer): _m0.Writer;
|
|
194
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RepayAssetEvent;
|
|
195
|
-
fromJSON(object: any): RepayAssetEvent;
|
|
196
|
-
toJSON(message: RepayAssetEvent): unknown;
|
|
197
|
-
fromPartial(object: DeepPartial<RepayAssetEvent>): RepayAssetEvent;
|
|
198
|
-
};
|
|
199
|
-
export declare const LockCollateralEvent: {
|
|
200
|
-
encode(message: LockCollateralEvent, writer?: _m0.Writer): _m0.Writer;
|
|
201
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LockCollateralEvent;
|
|
202
|
-
fromJSON(object: any): LockCollateralEvent;
|
|
203
|
-
toJSON(message: LockCollateralEvent): unknown;
|
|
204
|
-
fromPartial(object: DeepPartial<LockCollateralEvent>): LockCollateralEvent;
|
|
205
|
-
};
|
|
206
|
-
export declare const UnlockCollateralEvent: {
|
|
207
|
-
encode(message: UnlockCollateralEvent, writer?: _m0.Writer): _m0.Writer;
|
|
208
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UnlockCollateralEvent;
|
|
209
|
-
fromJSON(object: any): UnlockCollateralEvent;
|
|
210
|
-
toJSON(message: UnlockCollateralEvent): unknown;
|
|
211
|
-
fromPartial(object: DeepPartial<UnlockCollateralEvent>): UnlockCollateralEvent;
|
|
212
|
-
};
|
|
213
|
-
export declare const UpdateDebtInfoEvent: {
|
|
214
|
-
encode(message: UpdateDebtInfoEvent, writer?: _m0.Writer): _m0.Writer;
|
|
215
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateDebtInfoEvent;
|
|
216
|
-
fromJSON(object: any): UpdateDebtInfoEvent;
|
|
217
|
-
toJSON(message: UpdateDebtInfoEvent): unknown;
|
|
218
|
-
fromPartial(object: DeepPartial<UpdateDebtInfoEvent>): UpdateDebtInfoEvent;
|
|
219
|
-
};
|
|
220
|
-
export declare const UpdateStablecoinDebtInfoEvent: {
|
|
221
|
-
encode(message: UpdateStablecoinDebtInfoEvent, writer?: _m0.Writer): _m0.Writer;
|
|
222
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateStablecoinDebtInfoEvent;
|
|
223
|
-
fromJSON(object: any): UpdateStablecoinDebtInfoEvent;
|
|
224
|
-
toJSON(message: UpdateStablecoinDebtInfoEvent): unknown;
|
|
225
|
-
fromPartial(object: DeepPartial<UpdateStablecoinDebtInfoEvent>): UpdateStablecoinDebtInfoEvent;
|
|
226
|
-
};
|
|
227
|
-
export declare const MintStablecoinEvent: {
|
|
228
|
-
encode(message: MintStablecoinEvent, writer?: _m0.Writer): _m0.Writer;
|
|
229
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MintStablecoinEvent;
|
|
230
|
-
fromJSON(object: any): MintStablecoinEvent;
|
|
231
|
-
toJSON(message: MintStablecoinEvent): unknown;
|
|
232
|
-
fromPartial(object: DeepPartial<MintStablecoinEvent>): MintStablecoinEvent;
|
|
233
|
-
};
|
|
234
|
-
export declare const ReturnStablecoinEvent: {
|
|
235
|
-
encode(message: ReturnStablecoinEvent, writer?: _m0.Writer): _m0.Writer;
|
|
236
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ReturnStablecoinEvent;
|
|
237
|
-
fromJSON(object: any): ReturnStablecoinEvent;
|
|
238
|
-
toJSON(message: ReturnStablecoinEvent): unknown;
|
|
239
|
-
fromPartial(object: DeepPartial<ReturnStablecoinEvent>): ReturnStablecoinEvent;
|
|
240
|
-
};
|
|
241
|
-
export declare const LiquidateCollateralEvent: {
|
|
242
|
-
encode(message: LiquidateCollateralEvent, writer?: _m0.Writer): _m0.Writer;
|
|
243
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LiquidateCollateralEvent;
|
|
244
|
-
fromJSON(object: any): LiquidateCollateralEvent;
|
|
245
|
-
toJSON(message: LiquidateCollateralEvent): unknown;
|
|
246
|
-
fromPartial(object: DeepPartial<LiquidateCollateralEvent>): LiquidateCollateralEvent;
|
|
14
|
+
address: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const VaultTypeEvent: {
|
|
17
|
+
encode(message: VaultTypeEvent, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VaultTypeEvent;
|
|
19
|
+
fromJSON(object: any): VaultTypeEvent;
|
|
20
|
+
toJSON(message: VaultTypeEvent): unknown;
|
|
21
|
+
fromPartial(object: DeepPartial<VaultTypeEvent>): VaultTypeEvent;
|
|
22
|
+
};
|
|
23
|
+
export declare const VaultEvent: {
|
|
24
|
+
encode(message: VaultEvent, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VaultEvent;
|
|
26
|
+
fromJSON(object: any): VaultEvent;
|
|
27
|
+
toJSON(message: VaultEvent): unknown;
|
|
28
|
+
fromPartial(object: DeepPartial<VaultEvent>): VaultEvent;
|
|
247
29
|
};
|
|
248
30
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
249
31
|
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 {} ? {
|