carbon-js-sdk 0.7.12 → 0.7.13
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 +1 -1
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/codec/Switcheo/carbon/book/event.d.ts +1 -20
- package/lib/codec/Switcheo/carbon/book/event.js +19 -101
- package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/export.js +1 -3
- package/lib/codec/Switcheo/carbon/book/query.d.ts +6 -12
- package/lib/codec/Switcheo/carbon/book/query.js +6 -18
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +0 -8
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/ccm/export.js +1 -3
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/ccm/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/export.js +1 -3
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1 -46
- package/lib/codec/Switcheo/carbon/cdp/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +4 -10
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +4 -54
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +0 -98
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +1 -374
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +0 -103
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +1 -425
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/liquidation/export.js +5 -1
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +25 -0
- package/lib/codec/Switcheo/carbon/liquidation/query.js +88 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +3 -6
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +0 -20
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +1 -191
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/market/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/market/export.js +2 -6
- package/lib/codec/Switcheo/carbon/market/query.d.ts +0 -31
- package/lib/codec/Switcheo/carbon/market/query.js +1 -226
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +2 -46
- package/lib/codec/Switcheo/carbon/market/tx.js +1 -100
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/marketstats/export.js +5 -1
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +7 -4
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +21 -4
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/marketstats/query.js +88 -1
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/oracle/export.js +1 -4
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/oracle/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/order/export.d.ts +3 -4
- package/lib/codec/Switcheo/carbon/order/export.js +4 -11
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/order/genesis.js +16 -16
- package/lib/codec/Switcheo/carbon/order/order.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/order/order.js +11 -11
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/order/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.js +1 -3
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +1 -46
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/position/export.d.ts +0 -1
- package/lib/codec/Switcheo/carbon/position/export.js +1 -4
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/pricing/export.js +1 -3
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/pricing/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.js +1 -3
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +1 -101
- package/lib/codec/carbon-models.d.ts +1 -2
- package/lib/codec/carbon-models.js +2 -3
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +0 -26
- package/lib/codec/cosmos/app/v1alpha1/config.js +4 -94
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +0 -21
- package/lib/codec/cosmos/auth/v1beta1/auth.js +1 -92
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +2 -3
- package/lib/codec/cosmos/auth/v1beta1/export.js +1 -7
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -54
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -120
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +0 -7
- package/lib/codec/cosmos/bank/v1beta1/authz.js +3 -18
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +0 -9
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.js +1 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +3 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -17
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +5 -125
- package/lib/codec/cosmos/bank/v1beta1/query.js +1 -257
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +1 -102
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -215
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +0 -8
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +1 -2
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +1 -39
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +46 -16
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +1 -46
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +1 -103
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -20
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/export.js +1 -8
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +1 -32
- package/lib/codec/cosmos/distribution/v1beta1/query.js +1 -134
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +3 -103
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -212
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +0 -4
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -12
- package/lib/codec/cosmos/evidence/v1beta1/query.js +2 -14
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +0 -2
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +4 -25
- package/lib/codec/cosmos/gov/v1/genesis.js +0 -16
- package/lib/codec/cosmos/gov/v1/gov.d.ts +2 -83
- package/lib/codec/cosmos/gov/v1/gov.js +3 -231
- package/lib/codec/cosmos/gov/v1/query.d.ts +6 -30
- package/lib/codec/cosmos/gov/v1/query.js +0 -16
- package/lib/codec/cosmos/gov/v1/tx.d.ts +2 -74
- package/lib/codec/cosmos/gov/v1/tx.js +3 -131
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +5 -30
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -4
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +0 -13
- package/lib/codec/cosmos/group/v1/events.d.ts +1 -17
- package/lib/codec/cosmos/group/v1/events.js +1 -81
- package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/group/v1/tx.d.ts +13 -25
- package/lib/codec/cosmos/group/v1/tx.js +34 -60
- package/lib/codec/cosmos/group/v1/types.d.ts +6 -26
- package/lib/codec/cosmos/group/v1/types.js +1 -27
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/export.js +1 -4
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +0 -10
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +0 -20
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +1 -3
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +0 -46
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +1 -101
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js +2 -8
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +5 -36
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -40
- package/lib/codec/cosmos/staking/v1beta1/staking.js +2 -212
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +1 -45
- package/lib/codec/cosmos/staking/v1beta1/tx.js +1 -100
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +1 -9
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +2 -164
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -407
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +4 -6
- package/lib/codec/ethermint/evm/v1/export.d.ts +1 -2
- package/lib/codec/ethermint/evm/v1/export.js +1 -8
- package/lib/codec/ethermint/evm/v1/tx.d.ts +1 -37
- package/lib/codec/ethermint/evm/v1/tx.js +1 -100
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -2
- package/lib/codec/ethermint/feemarket/v1/export.js +1 -7
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +0 -10
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +1 -28
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -2
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -8
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -26
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +1 -113
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +1 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +6 -1
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -2
- package/lib/codec/ibc/applications/transfer/v1/export.js +1 -8
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +0 -6
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +2 -18
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +1 -56
- package/lib/codec/ibc/applications/transfer/v1/query.js +1 -210
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -8
- package/lib/codec/ibc/applications/transfer/v1/tx.js +6 -35
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -2
- package/lib/codec/ibc/applications/transfer/v2/packet.js +1 -14
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -20
- package/lib/codec/ibc/core/channel/v1/channel.js +1 -78
- package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/channel/v1/export.js +2 -3
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +12 -16
- package/lib/codec/ibc/core/channel/v1/tx.js +25 -62
- package/lib/codec/ibc/core/client/v1/client.d.ts +1 -5
- package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/client/v1/export.js +1 -3
- package/lib/codec/ibc/core/client/v1/query.d.ts +1 -38
- package/lib/codec/ibc/core/client/v1/query.js +1 -137
- package/lib/codec/ibc/core/client/v1/tx.d.ts +6 -19
- package/lib/codec/ibc/core/client/v1/tx.js +11 -13
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +1 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +1 -26
- package/lib/codec/ibc/core/connection/v1/query.js +1 -87
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +2 -7
- package/lib/codec/ibc/core/connection/v1/tx.js +2 -38
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +5 -12
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/lib/codec/ibc-models.d.ts +2 -3
- package/lib/codec/ibc-models.js +3 -4
- package/lib/codec/index.d.ts +20 -99
- package/lib/codec/index.js +890 -3371
- package/lib/codec/proofs.d.ts +0 -1
- package/lib/codec/proofs.js +0 -6
- package/lib/codec/tendermint/abci/types.d.ts +84 -131
- package/lib/codec/tendermint/abci/types.js +351 -707
- package/lib/codec/tendermint/types/params.d.ts +8 -1
- package/lib/codec/tendermint/types/params.js +33 -13
- package/lib/modules/evm.js +1 -1
- package/lib/provider/amino/types/evm.js +1 -1
- package/lib/util/tx.d.ts +7 -89
- package/package.json +1 -1
|
@@ -3,438 +3,14 @@ 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.MsgClientImpl = exports.
|
|
6
|
+
exports.MsgClientImpl = 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 params_1 = require("./params");
|
|
11
|
-
const wrappers_1 = require("../../../google/protobuf/wrappers");
|
|
12
10
|
exports.protobufPackage = "Switcheo.carbon.evmcontract";
|
|
13
|
-
const baseMsgDeactivateContract = {
|
|
14
|
-
creator: "",
|
|
15
|
-
moduleName: "",
|
|
16
|
-
contractAddress: "",
|
|
17
|
-
};
|
|
18
|
-
exports.MsgDeactivateContract = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.creator !== "") {
|
|
21
|
-
writer.uint32(10).string(message.creator);
|
|
22
|
-
}
|
|
23
|
-
if (message.moduleName !== "") {
|
|
24
|
-
writer.uint32(18).string(message.moduleName);
|
|
25
|
-
}
|
|
26
|
-
if (message.contractAddress !== "") {
|
|
27
|
-
writer.uint32(26).string(message.contractAddress);
|
|
28
|
-
}
|
|
29
|
-
return writer;
|
|
30
|
-
},
|
|
31
|
-
decode(input, length) {
|
|
32
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
33
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
-
const message = Object.assign({}, baseMsgDeactivateContract);
|
|
35
|
-
while (reader.pos < end) {
|
|
36
|
-
const tag = reader.uint32();
|
|
37
|
-
switch (tag >>> 3) {
|
|
38
|
-
case 1:
|
|
39
|
-
message.creator = reader.string();
|
|
40
|
-
break;
|
|
41
|
-
case 2:
|
|
42
|
-
message.moduleName = reader.string();
|
|
43
|
-
break;
|
|
44
|
-
case 3:
|
|
45
|
-
message.contractAddress = reader.string();
|
|
46
|
-
break;
|
|
47
|
-
default:
|
|
48
|
-
reader.skipType(tag & 7);
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return message;
|
|
53
|
-
},
|
|
54
|
-
fromJSON(object) {
|
|
55
|
-
const message = Object.assign({}, baseMsgDeactivateContract);
|
|
56
|
-
message.creator =
|
|
57
|
-
object.creator !== undefined && object.creator !== null
|
|
58
|
-
? String(object.creator)
|
|
59
|
-
: "";
|
|
60
|
-
message.moduleName =
|
|
61
|
-
object.moduleName !== undefined && object.moduleName !== null
|
|
62
|
-
? String(object.moduleName)
|
|
63
|
-
: "";
|
|
64
|
-
message.contractAddress =
|
|
65
|
-
object.contractAddress !== undefined && object.contractAddress !== null
|
|
66
|
-
? String(object.contractAddress)
|
|
67
|
-
: "";
|
|
68
|
-
return message;
|
|
69
|
-
},
|
|
70
|
-
toJSON(message) {
|
|
71
|
-
const obj = {};
|
|
72
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
|
73
|
-
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
|
74
|
-
message.contractAddress !== undefined &&
|
|
75
|
-
(obj.contractAddress = message.contractAddress);
|
|
76
|
-
return obj;
|
|
77
|
-
},
|
|
78
|
-
fromPartial(object) {
|
|
79
|
-
var _a, _b, _c;
|
|
80
|
-
const message = Object.assign({}, baseMsgDeactivateContract);
|
|
81
|
-
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
82
|
-
message.moduleName = (_b = object.moduleName) !== null && _b !== void 0 ? _b : "";
|
|
83
|
-
message.contractAddress = (_c = object.contractAddress) !== null && _c !== void 0 ? _c : "";
|
|
84
|
-
return message;
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
const baseMsgDeactivateContractResponse = {};
|
|
88
|
-
exports.MsgDeactivateContractResponse = {
|
|
89
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
90
|
-
return writer;
|
|
91
|
-
},
|
|
92
|
-
decode(input, length) {
|
|
93
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
94
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
95
|
-
const message = Object.assign({}, baseMsgDeactivateContractResponse);
|
|
96
|
-
while (reader.pos < end) {
|
|
97
|
-
const tag = reader.uint32();
|
|
98
|
-
switch (tag >>> 3) {
|
|
99
|
-
default:
|
|
100
|
-
reader.skipType(tag & 7);
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return message;
|
|
105
|
-
},
|
|
106
|
-
fromJSON(_) {
|
|
107
|
-
const message = Object.assign({}, baseMsgDeactivateContractResponse);
|
|
108
|
-
return message;
|
|
109
|
-
},
|
|
110
|
-
toJSON(_) {
|
|
111
|
-
const obj = {};
|
|
112
|
-
return obj;
|
|
113
|
-
},
|
|
114
|
-
fromPartial(_) {
|
|
115
|
-
const message = Object.assign({}, baseMsgDeactivateContractResponse);
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
const baseMsgActivateContract = {
|
|
120
|
-
creator: "",
|
|
121
|
-
moduleName: "",
|
|
122
|
-
contractAddress: "",
|
|
123
|
-
};
|
|
124
|
-
exports.MsgActivateContract = {
|
|
125
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
126
|
-
if (message.creator !== "") {
|
|
127
|
-
writer.uint32(10).string(message.creator);
|
|
128
|
-
}
|
|
129
|
-
if (message.moduleName !== "") {
|
|
130
|
-
writer.uint32(18).string(message.moduleName);
|
|
131
|
-
}
|
|
132
|
-
if (message.contractAddress !== "") {
|
|
133
|
-
writer.uint32(26).string(message.contractAddress);
|
|
134
|
-
}
|
|
135
|
-
return writer;
|
|
136
|
-
},
|
|
137
|
-
decode(input, length) {
|
|
138
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
139
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
140
|
-
const message = Object.assign({}, baseMsgActivateContract);
|
|
141
|
-
while (reader.pos < end) {
|
|
142
|
-
const tag = reader.uint32();
|
|
143
|
-
switch (tag >>> 3) {
|
|
144
|
-
case 1:
|
|
145
|
-
message.creator = reader.string();
|
|
146
|
-
break;
|
|
147
|
-
case 2:
|
|
148
|
-
message.moduleName = reader.string();
|
|
149
|
-
break;
|
|
150
|
-
case 3:
|
|
151
|
-
message.contractAddress = reader.string();
|
|
152
|
-
break;
|
|
153
|
-
default:
|
|
154
|
-
reader.skipType(tag & 7);
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return message;
|
|
159
|
-
},
|
|
160
|
-
fromJSON(object) {
|
|
161
|
-
const message = Object.assign({}, baseMsgActivateContract);
|
|
162
|
-
message.creator =
|
|
163
|
-
object.creator !== undefined && object.creator !== null
|
|
164
|
-
? String(object.creator)
|
|
165
|
-
: "";
|
|
166
|
-
message.moduleName =
|
|
167
|
-
object.moduleName !== undefined && object.moduleName !== null
|
|
168
|
-
? String(object.moduleName)
|
|
169
|
-
: "";
|
|
170
|
-
message.contractAddress =
|
|
171
|
-
object.contractAddress !== undefined && object.contractAddress !== null
|
|
172
|
-
? String(object.contractAddress)
|
|
173
|
-
: "";
|
|
174
|
-
return message;
|
|
175
|
-
},
|
|
176
|
-
toJSON(message) {
|
|
177
|
-
const obj = {};
|
|
178
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
|
179
|
-
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
|
180
|
-
message.contractAddress !== undefined &&
|
|
181
|
-
(obj.contractAddress = message.contractAddress);
|
|
182
|
-
return obj;
|
|
183
|
-
},
|
|
184
|
-
fromPartial(object) {
|
|
185
|
-
var _a, _b, _c;
|
|
186
|
-
const message = Object.assign({}, baseMsgActivateContract);
|
|
187
|
-
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
188
|
-
message.moduleName = (_b = object.moduleName) !== null && _b !== void 0 ? _b : "";
|
|
189
|
-
message.contractAddress = (_c = object.contractAddress) !== null && _c !== void 0 ? _c : "";
|
|
190
|
-
return message;
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
const baseMsgActivateContractResponse = {};
|
|
194
|
-
exports.MsgActivateContractResponse = {
|
|
195
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
196
|
-
return writer;
|
|
197
|
-
},
|
|
198
|
-
decode(input, length) {
|
|
199
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
200
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
-
const message = Object.assign({}, baseMsgActivateContractResponse);
|
|
202
|
-
while (reader.pos < end) {
|
|
203
|
-
const tag = reader.uint32();
|
|
204
|
-
switch (tag >>> 3) {
|
|
205
|
-
default:
|
|
206
|
-
reader.skipType(tag & 7);
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return message;
|
|
211
|
-
},
|
|
212
|
-
fromJSON(_) {
|
|
213
|
-
const message = Object.assign({}, baseMsgActivateContractResponse);
|
|
214
|
-
return message;
|
|
215
|
-
},
|
|
216
|
-
toJSON(_) {
|
|
217
|
-
const obj = {};
|
|
218
|
-
return obj;
|
|
219
|
-
},
|
|
220
|
-
fromPartial(_) {
|
|
221
|
-
const message = Object.assign({}, baseMsgActivateContractResponse);
|
|
222
|
-
return message;
|
|
223
|
-
},
|
|
224
|
-
};
|
|
225
|
-
const baseMsgSetParams = { creator: "" };
|
|
226
|
-
exports.MsgSetParams = {
|
|
227
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
228
|
-
if (message.creator !== "") {
|
|
229
|
-
writer.uint32(10).string(message.creator);
|
|
230
|
-
}
|
|
231
|
-
if (message.responseGasCap !== undefined) {
|
|
232
|
-
wrappers_1.UInt64Value.encode({ value: message.responseGasCap }, writer.uint32(18).fork()).ldelim();
|
|
233
|
-
}
|
|
234
|
-
return writer;
|
|
235
|
-
},
|
|
236
|
-
decode(input, length) {
|
|
237
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
238
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
239
|
-
const message = Object.assign({}, baseMsgSetParams);
|
|
240
|
-
while (reader.pos < end) {
|
|
241
|
-
const tag = reader.uint32();
|
|
242
|
-
switch (tag >>> 3) {
|
|
243
|
-
case 1:
|
|
244
|
-
message.creator = reader.string();
|
|
245
|
-
break;
|
|
246
|
-
case 2:
|
|
247
|
-
message.responseGasCap = wrappers_1.UInt64Value.decode(reader, reader.uint32()).value;
|
|
248
|
-
break;
|
|
249
|
-
default:
|
|
250
|
-
reader.skipType(tag & 7);
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return message;
|
|
255
|
-
},
|
|
256
|
-
fromJSON(object) {
|
|
257
|
-
const message = Object.assign({}, baseMsgSetParams);
|
|
258
|
-
message.creator =
|
|
259
|
-
object.creator !== undefined && object.creator !== null
|
|
260
|
-
? String(object.creator)
|
|
261
|
-
: "";
|
|
262
|
-
message.responseGasCap =
|
|
263
|
-
object.responseGasCap !== undefined && object.responseGasCap !== null
|
|
264
|
-
? long_1.default.fromValue(object.responseGasCap)
|
|
265
|
-
: undefined;
|
|
266
|
-
return message;
|
|
267
|
-
},
|
|
268
|
-
toJSON(message) {
|
|
269
|
-
const obj = {};
|
|
270
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
|
271
|
-
message.responseGasCap !== undefined &&
|
|
272
|
-
(obj.responseGasCap = message.responseGasCap);
|
|
273
|
-
return obj;
|
|
274
|
-
},
|
|
275
|
-
fromPartial(object) {
|
|
276
|
-
var _a;
|
|
277
|
-
const message = Object.assign({}, baseMsgSetParams);
|
|
278
|
-
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
279
|
-
message.responseGasCap =
|
|
280
|
-
object.responseGasCap !== undefined && object.responseGasCap !== null
|
|
281
|
-
? long_1.default.fromValue(object.responseGasCap)
|
|
282
|
-
: undefined;
|
|
283
|
-
return message;
|
|
284
|
-
},
|
|
285
|
-
};
|
|
286
|
-
const baseMsgSetParamsResponse = {};
|
|
287
|
-
exports.MsgSetParamsResponse = {
|
|
288
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
289
|
-
return writer;
|
|
290
|
-
},
|
|
291
|
-
decode(input, length) {
|
|
292
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
293
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
294
|
-
const message = Object.assign({}, baseMsgSetParamsResponse);
|
|
295
|
-
while (reader.pos < end) {
|
|
296
|
-
const tag = reader.uint32();
|
|
297
|
-
switch (tag >>> 3) {
|
|
298
|
-
default:
|
|
299
|
-
reader.skipType(tag & 7);
|
|
300
|
-
break;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
return message;
|
|
304
|
-
},
|
|
305
|
-
fromJSON(_) {
|
|
306
|
-
const message = Object.assign({}, baseMsgSetParamsResponse);
|
|
307
|
-
return message;
|
|
308
|
-
},
|
|
309
|
-
toJSON(_) {
|
|
310
|
-
const obj = {};
|
|
311
|
-
return obj;
|
|
312
|
-
},
|
|
313
|
-
fromPartial(_) {
|
|
314
|
-
const message = Object.assign({}, baseMsgSetParamsResponse);
|
|
315
|
-
return message;
|
|
316
|
-
},
|
|
317
|
-
};
|
|
318
|
-
const baseMsgUpdateParams = { authority: "" };
|
|
319
|
-
exports.MsgUpdateParams = {
|
|
320
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
321
|
-
if (message.authority !== "") {
|
|
322
|
-
writer.uint32(10).string(message.authority);
|
|
323
|
-
}
|
|
324
|
-
if (message.params !== undefined) {
|
|
325
|
-
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
326
|
-
}
|
|
327
|
-
return writer;
|
|
328
|
-
},
|
|
329
|
-
decode(input, length) {
|
|
330
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
331
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
332
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
333
|
-
while (reader.pos < end) {
|
|
334
|
-
const tag = reader.uint32();
|
|
335
|
-
switch (tag >>> 3) {
|
|
336
|
-
case 1:
|
|
337
|
-
message.authority = reader.string();
|
|
338
|
-
break;
|
|
339
|
-
case 2:
|
|
340
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
341
|
-
break;
|
|
342
|
-
default:
|
|
343
|
-
reader.skipType(tag & 7);
|
|
344
|
-
break;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
return message;
|
|
348
|
-
},
|
|
349
|
-
fromJSON(object) {
|
|
350
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
351
|
-
message.authority =
|
|
352
|
-
object.authority !== undefined && object.authority !== null
|
|
353
|
-
? String(object.authority)
|
|
354
|
-
: "";
|
|
355
|
-
message.params =
|
|
356
|
-
object.params !== undefined && object.params !== null
|
|
357
|
-
? params_1.Params.fromJSON(object.params)
|
|
358
|
-
: undefined;
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
toJSON(message) {
|
|
362
|
-
const obj = {};
|
|
363
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
364
|
-
message.params !== undefined &&
|
|
365
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
366
|
-
return obj;
|
|
367
|
-
},
|
|
368
|
-
fromPartial(object) {
|
|
369
|
-
var _a;
|
|
370
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
371
|
-
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
372
|
-
message.params =
|
|
373
|
-
object.params !== undefined && object.params !== null
|
|
374
|
-
? params_1.Params.fromPartial(object.params)
|
|
375
|
-
: undefined;
|
|
376
|
-
return message;
|
|
377
|
-
},
|
|
378
|
-
};
|
|
379
|
-
const baseMsgUpdateParamsResponse = {};
|
|
380
|
-
exports.MsgUpdateParamsResponse = {
|
|
381
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
382
|
-
return writer;
|
|
383
|
-
},
|
|
384
|
-
decode(input, length) {
|
|
385
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
386
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
388
|
-
while (reader.pos < end) {
|
|
389
|
-
const tag = reader.uint32();
|
|
390
|
-
switch (tag >>> 3) {
|
|
391
|
-
default:
|
|
392
|
-
reader.skipType(tag & 7);
|
|
393
|
-
break;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return message;
|
|
397
|
-
},
|
|
398
|
-
fromJSON(_) {
|
|
399
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
400
|
-
return message;
|
|
401
|
-
},
|
|
402
|
-
toJSON(_) {
|
|
403
|
-
const obj = {};
|
|
404
|
-
return obj;
|
|
405
|
-
},
|
|
406
|
-
fromPartial(_) {
|
|
407
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
408
|
-
return message;
|
|
409
|
-
},
|
|
410
|
-
};
|
|
411
11
|
class MsgClientImpl {
|
|
412
12
|
constructor(rpc) {
|
|
413
13
|
this.rpc = rpc;
|
|
414
|
-
this.DeactivateContract = this.DeactivateContract.bind(this);
|
|
415
|
-
this.ActivateContract = this.ActivateContract.bind(this);
|
|
416
|
-
this.SetParams = this.SetParams.bind(this);
|
|
417
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
418
|
-
}
|
|
419
|
-
DeactivateContract(request) {
|
|
420
|
-
const data = exports.MsgDeactivateContract.encode(request).finish();
|
|
421
|
-
const promise = this.rpc.request("Switcheo.carbon.evmcontract.Msg", "DeactivateContract", data);
|
|
422
|
-
return promise.then((data) => exports.MsgDeactivateContractResponse.decode(new minimal_1.default.Reader(data)));
|
|
423
|
-
}
|
|
424
|
-
ActivateContract(request) {
|
|
425
|
-
const data = exports.MsgActivateContract.encode(request).finish();
|
|
426
|
-
const promise = this.rpc.request("Switcheo.carbon.evmcontract.Msg", "ActivateContract", data);
|
|
427
|
-
return promise.then((data) => exports.MsgActivateContractResponse.decode(new minimal_1.default.Reader(data)));
|
|
428
|
-
}
|
|
429
|
-
SetParams(request) {
|
|
430
|
-
const data = exports.MsgSetParams.encode(request).finish();
|
|
431
|
-
const promise = this.rpc.request("Switcheo.carbon.evmcontract.Msg", "SetParams", data);
|
|
432
|
-
return promise.then((data) => exports.MsgSetParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
433
|
-
}
|
|
434
|
-
UpdateParams(request) {
|
|
435
|
-
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
436
|
-
const promise = this.rpc.request("Switcheo.carbon.evmcontract.Msg", "UpdateParams", data);
|
|
437
|
-
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
438
14
|
}
|
|
439
15
|
}
|
|
440
16
|
exports.MsgClientImpl = MsgClientImpl;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { GenesisState_OutstandingPositionsEntry } from "./genesis";
|
|
2
|
+
export { Params } from "./liquidation";
|
|
2
3
|
export { OutstandingPosition, OutstandingPositions } from "./outstanding_position";
|
|
3
|
-
export { QueryAllLiquidationRequest, QueryAllLiquidationResponse } from "./query";
|
|
4
|
+
export { QueryAllLiquidationRequest, QueryAllLiquidationResponse, QueryParamsRequest, QueryParamsResponse } from "./query";
|
|
4
5
|
export { QuoteChanges } from "./quote_changes";
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuoteChanges = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.OutstandingPositions = exports.OutstandingPosition = exports.GenesisState_OutstandingPositionsEntry = void 0;
|
|
3
|
+
exports.QuoteChanges = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.OutstandingPositions = exports.OutstandingPosition = exports.Params = exports.GenesisState_OutstandingPositionsEntry = void 0;
|
|
4
4
|
var genesis_1 = require("./genesis");
|
|
5
5
|
Object.defineProperty(exports, "GenesisState_OutstandingPositionsEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_OutstandingPositionsEntry; } });
|
|
6
|
+
var liquidation_1 = require("./liquidation");
|
|
7
|
+
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return liquidation_1.Params; } });
|
|
6
8
|
var outstanding_position_1 = require("./outstanding_position");
|
|
7
9
|
Object.defineProperty(exports, "OutstandingPosition", { enumerable: true, get: function () { return outstanding_position_1.OutstandingPosition; } });
|
|
8
10
|
Object.defineProperty(exports, "OutstandingPositions", { enumerable: true, get: function () { return outstanding_position_1.OutstandingPositions; } });
|
|
9
11
|
var query_1 = require("./query");
|
|
10
12
|
Object.defineProperty(exports, "QueryAllLiquidationRequest", { enumerable: true, get: function () { return query_1.QueryAllLiquidationRequest; } });
|
|
11
13
|
Object.defineProperty(exports, "QueryAllLiquidationResponse", { enumerable: true, get: function () { return query_1.QueryAllLiquidationResponse; } });
|
|
14
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
15
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
12
16
|
var quote_changes_1 = require("./quote_changes");
|
|
13
17
|
Object.defineProperty(exports, "QuoteChanges", { enumerable: true, get: function () { return quote_changes_1.QuoteChanges; } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
4
|
+
import { Params } from "./liquidation";
|
|
4
5
|
import { AccountTrade } from "../misc/trade";
|
|
5
6
|
export declare const protobufPackage = "Switcheo.carbon.liquidation";
|
|
6
7
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -18,6 +19,14 @@ export interface QueryAllLiquidationResponse {
|
|
|
18
19
|
trades: AccountTrade[];
|
|
19
20
|
pagination?: PageResponse;
|
|
20
21
|
}
|
|
22
|
+
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
23
|
+
export interface QueryParamsRequest {
|
|
24
|
+
}
|
|
25
|
+
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
26
|
+
export interface QueryParamsResponse {
|
|
27
|
+
/** params holds all the parameters of this module. */
|
|
28
|
+
params?: Params;
|
|
29
|
+
}
|
|
21
30
|
export declare const QueryAllLiquidationRequest: {
|
|
22
31
|
encode(message: QueryAllLiquidationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23
32
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllLiquidationRequest;
|
|
@@ -32,15 +41,31 @@ export declare const QueryAllLiquidationResponse: {
|
|
|
32
41
|
toJSON(message: QueryAllLiquidationResponse): unknown;
|
|
33
42
|
fromPartial(object: DeepPartial<QueryAllLiquidationResponse>): QueryAllLiquidationResponse;
|
|
34
43
|
};
|
|
44
|
+
export declare const QueryParamsRequest: {
|
|
45
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsRequest;
|
|
47
|
+
fromJSON(_: any): QueryParamsRequest;
|
|
48
|
+
toJSON(_: QueryParamsRequest): unknown;
|
|
49
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
50
|
+
};
|
|
51
|
+
export declare const QueryParamsResponse: {
|
|
52
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsResponse;
|
|
54
|
+
fromJSON(object: any): QueryParamsResponse;
|
|
55
|
+
toJSON(message: QueryParamsResponse): unknown;
|
|
56
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
57
|
+
};
|
|
35
58
|
/** Query defines the gRPC querier service. */
|
|
36
59
|
export interface Query {
|
|
37
60
|
/** Get liquidation history */
|
|
38
61
|
LiquidationAll(request: QueryAllLiquidationRequest): Promise<QueryAllLiquidationResponse>;
|
|
62
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
39
63
|
}
|
|
40
64
|
export declare class QueryClientImpl implements Query {
|
|
41
65
|
private readonly rpc;
|
|
42
66
|
constructor(rpc: Rpc);
|
|
43
67
|
LiquidationAll(request: QueryAllLiquidationRequest): Promise<QueryAllLiquidationResponse>;
|
|
68
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
44
69
|
}
|
|
45
70
|
interface Rpc {
|
|
46
71
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,11 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAllLiquidationResponse = exports.QueryAllLiquidationRequest = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
|
|
11
|
+
const liquidation_1 = require("./liquidation");
|
|
11
12
|
const trade_1 = require("../misc/trade");
|
|
12
13
|
exports.protobufPackage = "Switcheo.carbon.liquidation";
|
|
13
14
|
const baseQueryAllLiquidationRequest = {
|
|
@@ -236,16 +237,102 @@ exports.QueryAllLiquidationResponse = {
|
|
|
236
237
|
return message;
|
|
237
238
|
},
|
|
238
239
|
};
|
|
240
|
+
const baseQueryParamsRequest = {};
|
|
241
|
+
exports.QueryParamsRequest = {
|
|
242
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
243
|
+
return writer;
|
|
244
|
+
},
|
|
245
|
+
decode(input, length) {
|
|
246
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
247
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
248
|
+
const message = Object.assign({}, baseQueryParamsRequest);
|
|
249
|
+
while (reader.pos < end) {
|
|
250
|
+
const tag = reader.uint32();
|
|
251
|
+
switch (tag >>> 3) {
|
|
252
|
+
default:
|
|
253
|
+
reader.skipType(tag & 7);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return message;
|
|
258
|
+
},
|
|
259
|
+
fromJSON(_) {
|
|
260
|
+
const message = Object.assign({}, baseQueryParamsRequest);
|
|
261
|
+
return message;
|
|
262
|
+
},
|
|
263
|
+
toJSON(_) {
|
|
264
|
+
const obj = {};
|
|
265
|
+
return obj;
|
|
266
|
+
},
|
|
267
|
+
fromPartial(_) {
|
|
268
|
+
const message = Object.assign({}, baseQueryParamsRequest);
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
const baseQueryParamsResponse = {};
|
|
273
|
+
exports.QueryParamsResponse = {
|
|
274
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
275
|
+
if (message.params !== undefined) {
|
|
276
|
+
liquidation_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
277
|
+
}
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
decode(input, length) {
|
|
281
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
+
const message = Object.assign({}, baseQueryParamsResponse);
|
|
284
|
+
while (reader.pos < end) {
|
|
285
|
+
const tag = reader.uint32();
|
|
286
|
+
switch (tag >>> 3) {
|
|
287
|
+
case 1:
|
|
288
|
+
message.params = liquidation_1.Params.decode(reader, reader.uint32());
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
reader.skipType(tag & 7);
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
fromJSON(object) {
|
|
298
|
+
const message = Object.assign({}, baseQueryParamsResponse);
|
|
299
|
+
message.params =
|
|
300
|
+
object.params !== undefined && object.params !== null
|
|
301
|
+
? liquidation_1.Params.fromJSON(object.params)
|
|
302
|
+
: undefined;
|
|
303
|
+
return message;
|
|
304
|
+
},
|
|
305
|
+
toJSON(message) {
|
|
306
|
+
const obj = {};
|
|
307
|
+
message.params !== undefined &&
|
|
308
|
+
(obj.params = message.params ? liquidation_1.Params.toJSON(message.params) : undefined);
|
|
309
|
+
return obj;
|
|
310
|
+
},
|
|
311
|
+
fromPartial(object) {
|
|
312
|
+
const message = Object.assign({}, baseQueryParamsResponse);
|
|
313
|
+
message.params =
|
|
314
|
+
object.params !== undefined && object.params !== null
|
|
315
|
+
? liquidation_1.Params.fromPartial(object.params)
|
|
316
|
+
: undefined;
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
};
|
|
239
320
|
class QueryClientImpl {
|
|
240
321
|
constructor(rpc) {
|
|
241
322
|
this.rpc = rpc;
|
|
242
323
|
this.LiquidationAll = this.LiquidationAll.bind(this);
|
|
324
|
+
this.Params = this.Params.bind(this);
|
|
243
325
|
}
|
|
244
326
|
LiquidationAll(request) {
|
|
245
327
|
const data = exports.QueryAllLiquidationRequest.encode(request).finish();
|
|
246
328
|
const promise = this.rpc.request("Switcheo.carbon.liquidation.Query", "LiquidationAll", data);
|
|
247
329
|
return promise.then((data) => exports.QueryAllLiquidationResponse.decode(new minimal_1.default.Reader(data)));
|
|
248
330
|
}
|
|
331
|
+
Params(request) {
|
|
332
|
+
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
333
|
+
const promise = this.rpc.request("Switcheo.carbon.liquidation.Query", "Params", data);
|
|
334
|
+
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
335
|
+
}
|
|
249
336
|
}
|
|
250
337
|
exports.QueryClientImpl = QueryClientImpl;
|
|
251
338
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PoolEvent, TotalCommitmentChangeEvent, RewardsWeightChangeEvent, RewardCurveChangeEvent, CommitmentCurveEvent, CommitmentEvent, SwapEvent, DepositToPoolEvent, WithdrawFromPoolEvent, StakePoolTokenEvent, UnstakePoolTokenEvent, RewardsAccumulatedEvent, ClaimEvent } from "./event";
|
|
2
|
-
export { Params, Pool, Pools, PoolRoute, AddLiquidity, AddLiquidities, RemoveLiquidity, RemoveLiquidities, RemovePoolRoutes, PoolReserve
|
|
2
|
+
export { Params, Pool, Pools, PoolRoute, AddLiquidity, AddLiquidities, RemoveLiquidity, RemoveLiquidities, RemovePoolRoutes, PoolReserve } from "./liquiditypool";
|
|
3
3
|
export { LinkPoolProposal, UnlinkPoolProposal, SetRewardCurveProposal, SetCommitmentCurveProposal, SetRewardsWeightsProposal, UpdatePoolProposal, CreatePoolRouteProposal, RemovePoolRouteProposal, UpdatePoolRouteProposal } from "./proposal";
|
|
4
4
|
export { QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllPoolAddressRequest, QueryAllPoolAddressResponse, QueryAllPoolAddressResponse_AddressesEntry, ExtendedPool, QueryCommitmentRequest, QueryCommitmentResponse, QueryAllCommitmentRequest, QueryAllCommitmentResponse, QueryCommitmentCurveRequest, QueryCommitmentCurveResponse, QueryRewardCurveRequest, QueryRewardCurveResponse, QueryTotalCommitmentRequest, QueryTotalCommitmentResponse, QueryAllTotalCommitmentRequest, QueryAllTotalCommitmentResponse, QueryClaimableRewardsRequest, QueryClaimableRewardsResponse, QueryParamsRequest, QueryParamsResponse, QueryAllPoolRouteRequest, QueryAllPoolRouteResponse, QueryAllPoolRouteAddressRequest, QueryAllPoolRouteAddressResponse, QueryAllPoolRouteAddressResponse_AddressesEntry } from "./query";
|
|
5
5
|
export { RewardCurve, CommitmentCurve, RewardWeight, RewardWeights, Commitment, CommitmentRecord, TotalCommitment, TotalCommitmentRecord, CommitmentResponse, RewardHistory, AccumulatedRewards, AccumulatedRewardsRecord, CommitmentExpiry, CommitmentExpiries, CommitmentExpiriesRecord, AllocatedRewards } from "./reward";
|
|
6
|
-
export { MsgCreatePool, MsgCreatePoolResponse, MsgCreatePoolWithLiquidity, MsgCreatePoolWithLiquidityResponse, MsgAddLiquidity, MsgAddLiquidityResponse, MsgRemoveLiquidity, MsgRemoveLiquidityResponse, LinkPoolParams, UnlinkPoolParams, MsgSetRewardsWeights, SetRewardsWeightsParams, MsgSetRewardsWeightsResponse, MsgStakePoolToken, MsgStakePoolTokenResponse, MsgUnstakePoolToken, MsgUnstakePoolTokenResponse, MsgClaimPoolRewards, MsgClaimPoolRewardsResponse, MsgSetRewardCurve, SetRewardCurveParams, MsgSetRewardCurveResponse, MsgSetCommitmentCurve, SetCommitmentCurveParams, MsgSetCommitmentCurveResponse, MsgUpdatePool, UpdatePoolParams, MsgUpdatePoolResponse, MsgCreatePoolRoute, MsgCreatePoolRouteResponse, CreatePoolRouteParams, MsgRemovePoolRoute, MsgRemovePoolRouteResponse, RemovePoolRouteParams, MsgUpdatePoolRoute, MsgUpdatePoolRouteResponse, UpdatePoolRouteParams
|
|
6
|
+
export { MsgCreatePool, MsgCreatePoolResponse, MsgCreatePoolWithLiquidity, MsgCreatePoolWithLiquidityResponse, MsgAddLiquidity, MsgAddLiquidityResponse, MsgRemoveLiquidity, MsgRemoveLiquidityResponse, LinkPoolParams, UnlinkPoolParams, MsgSetRewardsWeights, SetRewardsWeightsParams, MsgSetRewardsWeightsResponse, MsgStakePoolToken, MsgStakePoolTokenResponse, MsgUnstakePoolToken, MsgUnstakePoolTokenResponse, MsgClaimPoolRewards, MsgClaimPoolRewardsResponse, MsgSetRewardCurve, SetRewardCurveParams, MsgSetRewardCurveResponse, MsgSetCommitmentCurve, SetCommitmentCurveParams, MsgSetCommitmentCurveResponse, MsgUpdatePool, UpdatePoolParams, MsgUpdatePoolResponse, MsgCreatePoolRoute, MsgCreatePoolRouteResponse, CreatePoolRouteParams, MsgRemovePoolRoute, MsgRemovePoolRouteResponse, RemovePoolRouteParams, MsgUpdatePoolRoute, MsgUpdatePoolRouteResponse, UpdatePoolRouteParams } from "./tx";
|