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,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.
|
|
6
|
+
exports.QueryClientImpl = exports.QueryControlledParamsResponse = exports.QueryControlledParamsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryUserFeeStructuresResponse = exports.QueryUserFeeStructuresRequest = exports.QueryAllFeeStructuresResponse = exports.QueryAllFeeStructuresRequest = exports.QueryAllStakeEquivalenceResponse = exports.QueryAllStakeEquivalenceRequest = exports.QueryGetFeeTiersResponse = exports.QueryGetFeeTiersRequest = exports.QueryGetTradingFeesResponse = exports.QueryGetTradingFeesRequest = exports.QueryAllMarketResponse = exports.QueryAllMarketRequest = exports.QueryGetMarketResponse = exports.QueryGetMarketRequest = 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"));
|
|
@@ -872,225 +872,6 @@ exports.QueryControlledParamsResponse = {
|
|
|
872
872
|
return message;
|
|
873
873
|
},
|
|
874
874
|
};
|
|
875
|
-
const baseQueryEVMMarketRequest = { contractAddress: "", name: "" };
|
|
876
|
-
exports.QueryEVMMarketRequest = {
|
|
877
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
878
|
-
if (message.contractAddress !== "") {
|
|
879
|
-
writer.uint32(10).string(message.contractAddress);
|
|
880
|
-
}
|
|
881
|
-
if (message.name !== "") {
|
|
882
|
-
writer.uint32(18).string(message.name);
|
|
883
|
-
}
|
|
884
|
-
return writer;
|
|
885
|
-
},
|
|
886
|
-
decode(input, length) {
|
|
887
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
888
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
889
|
-
const message = Object.assign({}, baseQueryEVMMarketRequest);
|
|
890
|
-
while (reader.pos < end) {
|
|
891
|
-
const tag = reader.uint32();
|
|
892
|
-
switch (tag >>> 3) {
|
|
893
|
-
case 1:
|
|
894
|
-
message.contractAddress = reader.string();
|
|
895
|
-
break;
|
|
896
|
-
case 2:
|
|
897
|
-
message.name = reader.string();
|
|
898
|
-
break;
|
|
899
|
-
default:
|
|
900
|
-
reader.skipType(tag & 7);
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
return message;
|
|
905
|
-
},
|
|
906
|
-
fromJSON(object) {
|
|
907
|
-
const message = Object.assign({}, baseQueryEVMMarketRequest);
|
|
908
|
-
message.contractAddress =
|
|
909
|
-
object.contractAddress !== undefined && object.contractAddress !== null
|
|
910
|
-
? String(object.contractAddress)
|
|
911
|
-
: "";
|
|
912
|
-
message.name =
|
|
913
|
-
object.name !== undefined && object.name !== null
|
|
914
|
-
? String(object.name)
|
|
915
|
-
: "";
|
|
916
|
-
return message;
|
|
917
|
-
},
|
|
918
|
-
toJSON(message) {
|
|
919
|
-
const obj = {};
|
|
920
|
-
message.contractAddress !== undefined &&
|
|
921
|
-
(obj.contractAddress = message.contractAddress);
|
|
922
|
-
message.name !== undefined && (obj.name = message.name);
|
|
923
|
-
return obj;
|
|
924
|
-
},
|
|
925
|
-
fromPartial(object) {
|
|
926
|
-
var _a, _b;
|
|
927
|
-
const message = Object.assign({}, baseQueryEVMMarketRequest);
|
|
928
|
-
message.contractAddress = (_a = object.contractAddress) !== null && _a !== void 0 ? _a : "";
|
|
929
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
930
|
-
return message;
|
|
931
|
-
},
|
|
932
|
-
};
|
|
933
|
-
const baseQueryEVMMarketResponse = {
|
|
934
|
-
name: "",
|
|
935
|
-
displayName: "",
|
|
936
|
-
marketType: "",
|
|
937
|
-
base: "",
|
|
938
|
-
quote: "",
|
|
939
|
-
basePrecision: long_1.default.ZERO,
|
|
940
|
-
quotePrecision: long_1.default.ZERO,
|
|
941
|
-
minQuantity: "",
|
|
942
|
-
isActive: false,
|
|
943
|
-
};
|
|
944
|
-
exports.QueryEVMMarketResponse = {
|
|
945
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
946
|
-
if (message.name !== "") {
|
|
947
|
-
writer.uint32(10).string(message.name);
|
|
948
|
-
}
|
|
949
|
-
if (message.displayName !== "") {
|
|
950
|
-
writer.uint32(18).string(message.displayName);
|
|
951
|
-
}
|
|
952
|
-
if (message.marketType !== "") {
|
|
953
|
-
writer.uint32(26).string(message.marketType);
|
|
954
|
-
}
|
|
955
|
-
if (message.base !== "") {
|
|
956
|
-
writer.uint32(34).string(message.base);
|
|
957
|
-
}
|
|
958
|
-
if (message.quote !== "") {
|
|
959
|
-
writer.uint32(42).string(message.quote);
|
|
960
|
-
}
|
|
961
|
-
if (!message.basePrecision.isZero()) {
|
|
962
|
-
writer.uint32(48).int64(message.basePrecision);
|
|
963
|
-
}
|
|
964
|
-
if (!message.quotePrecision.isZero()) {
|
|
965
|
-
writer.uint32(56).int64(message.quotePrecision);
|
|
966
|
-
}
|
|
967
|
-
if (message.minQuantity !== "") {
|
|
968
|
-
writer.uint32(66).string(message.minQuantity);
|
|
969
|
-
}
|
|
970
|
-
if (message.isActive === true) {
|
|
971
|
-
writer.uint32(72).bool(message.isActive);
|
|
972
|
-
}
|
|
973
|
-
return writer;
|
|
974
|
-
},
|
|
975
|
-
decode(input, length) {
|
|
976
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
977
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
978
|
-
const message = Object.assign({}, baseQueryEVMMarketResponse);
|
|
979
|
-
while (reader.pos < end) {
|
|
980
|
-
const tag = reader.uint32();
|
|
981
|
-
switch (tag >>> 3) {
|
|
982
|
-
case 1:
|
|
983
|
-
message.name = reader.string();
|
|
984
|
-
break;
|
|
985
|
-
case 2:
|
|
986
|
-
message.displayName = reader.string();
|
|
987
|
-
break;
|
|
988
|
-
case 3:
|
|
989
|
-
message.marketType = reader.string();
|
|
990
|
-
break;
|
|
991
|
-
case 4:
|
|
992
|
-
message.base = reader.string();
|
|
993
|
-
break;
|
|
994
|
-
case 5:
|
|
995
|
-
message.quote = reader.string();
|
|
996
|
-
break;
|
|
997
|
-
case 6:
|
|
998
|
-
message.basePrecision = reader.int64();
|
|
999
|
-
break;
|
|
1000
|
-
case 7:
|
|
1001
|
-
message.quotePrecision = reader.int64();
|
|
1002
|
-
break;
|
|
1003
|
-
case 8:
|
|
1004
|
-
message.minQuantity = reader.string();
|
|
1005
|
-
break;
|
|
1006
|
-
case 9:
|
|
1007
|
-
message.isActive = reader.bool();
|
|
1008
|
-
break;
|
|
1009
|
-
default:
|
|
1010
|
-
reader.skipType(tag & 7);
|
|
1011
|
-
break;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
return message;
|
|
1015
|
-
},
|
|
1016
|
-
fromJSON(object) {
|
|
1017
|
-
const message = Object.assign({}, baseQueryEVMMarketResponse);
|
|
1018
|
-
message.name =
|
|
1019
|
-
object.name !== undefined && object.name !== null
|
|
1020
|
-
? String(object.name)
|
|
1021
|
-
: "";
|
|
1022
|
-
message.displayName =
|
|
1023
|
-
object.displayName !== undefined && object.displayName !== null
|
|
1024
|
-
? String(object.displayName)
|
|
1025
|
-
: "";
|
|
1026
|
-
message.marketType =
|
|
1027
|
-
object.marketType !== undefined && object.marketType !== null
|
|
1028
|
-
? String(object.marketType)
|
|
1029
|
-
: "";
|
|
1030
|
-
message.base =
|
|
1031
|
-
object.base !== undefined && object.base !== null
|
|
1032
|
-
? String(object.base)
|
|
1033
|
-
: "";
|
|
1034
|
-
message.quote =
|
|
1035
|
-
object.quote !== undefined && object.quote !== null
|
|
1036
|
-
? String(object.quote)
|
|
1037
|
-
: "";
|
|
1038
|
-
message.basePrecision =
|
|
1039
|
-
object.basePrecision !== undefined && object.basePrecision !== null
|
|
1040
|
-
? long_1.default.fromString(object.basePrecision)
|
|
1041
|
-
: long_1.default.ZERO;
|
|
1042
|
-
message.quotePrecision =
|
|
1043
|
-
object.quotePrecision !== undefined && object.quotePrecision !== null
|
|
1044
|
-
? long_1.default.fromString(object.quotePrecision)
|
|
1045
|
-
: long_1.default.ZERO;
|
|
1046
|
-
message.minQuantity =
|
|
1047
|
-
object.minQuantity !== undefined && object.minQuantity !== null
|
|
1048
|
-
? String(object.minQuantity)
|
|
1049
|
-
: "";
|
|
1050
|
-
message.isActive =
|
|
1051
|
-
object.isActive !== undefined && object.isActive !== null
|
|
1052
|
-
? Boolean(object.isActive)
|
|
1053
|
-
: false;
|
|
1054
|
-
return message;
|
|
1055
|
-
},
|
|
1056
|
-
toJSON(message) {
|
|
1057
|
-
const obj = {};
|
|
1058
|
-
message.name !== undefined && (obj.name = message.name);
|
|
1059
|
-
message.displayName !== undefined &&
|
|
1060
|
-
(obj.displayName = message.displayName);
|
|
1061
|
-
message.marketType !== undefined && (obj.marketType = message.marketType);
|
|
1062
|
-
message.base !== undefined && (obj.base = message.base);
|
|
1063
|
-
message.quote !== undefined && (obj.quote = message.quote);
|
|
1064
|
-
message.basePrecision !== undefined &&
|
|
1065
|
-
(obj.basePrecision = (message.basePrecision || long_1.default.ZERO).toString());
|
|
1066
|
-
message.quotePrecision !== undefined &&
|
|
1067
|
-
(obj.quotePrecision = (message.quotePrecision || long_1.default.ZERO).toString());
|
|
1068
|
-
message.minQuantity !== undefined &&
|
|
1069
|
-
(obj.minQuantity = message.minQuantity);
|
|
1070
|
-
message.isActive !== undefined && (obj.isActive = message.isActive);
|
|
1071
|
-
return obj;
|
|
1072
|
-
},
|
|
1073
|
-
fromPartial(object) {
|
|
1074
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1075
|
-
const message = Object.assign({}, baseQueryEVMMarketResponse);
|
|
1076
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1077
|
-
message.displayName = (_b = object.displayName) !== null && _b !== void 0 ? _b : "";
|
|
1078
|
-
message.marketType = (_c = object.marketType) !== null && _c !== void 0 ? _c : "";
|
|
1079
|
-
message.base = (_d = object.base) !== null && _d !== void 0 ? _d : "";
|
|
1080
|
-
message.quote = (_e = object.quote) !== null && _e !== void 0 ? _e : "";
|
|
1081
|
-
message.basePrecision =
|
|
1082
|
-
object.basePrecision !== undefined && object.basePrecision !== null
|
|
1083
|
-
? long_1.default.fromValue(object.basePrecision)
|
|
1084
|
-
: long_1.default.ZERO;
|
|
1085
|
-
message.quotePrecision =
|
|
1086
|
-
object.quotePrecision !== undefined && object.quotePrecision !== null
|
|
1087
|
-
? long_1.default.fromValue(object.quotePrecision)
|
|
1088
|
-
: long_1.default.ZERO;
|
|
1089
|
-
message.minQuantity = (_f = object.minQuantity) !== null && _f !== void 0 ? _f : "";
|
|
1090
|
-
message.isActive = (_g = object.isActive) !== null && _g !== void 0 ? _g : false;
|
|
1091
|
-
return message;
|
|
1092
|
-
},
|
|
1093
|
-
};
|
|
1094
875
|
class QueryClientImpl {
|
|
1095
876
|
constructor(rpc) {
|
|
1096
877
|
this.rpc = rpc;
|
|
@@ -1103,7 +884,6 @@ class QueryClientImpl {
|
|
|
1103
884
|
this.UserFeeStructures = this.UserFeeStructures.bind(this);
|
|
1104
885
|
this.Params = this.Params.bind(this);
|
|
1105
886
|
this.ControlledParams = this.ControlledParams.bind(this);
|
|
1106
|
-
this.EVMMarket = this.EVMMarket.bind(this);
|
|
1107
887
|
}
|
|
1108
888
|
Market(request) {
|
|
1109
889
|
const data = exports.QueryGetMarketRequest.encode(request).finish();
|
|
@@ -1150,11 +930,6 @@ class QueryClientImpl {
|
|
|
1150
930
|
const promise = this.rpc.request("Switcheo.carbon.market.Query", "ControlledParams", data);
|
|
1151
931
|
return promise.then((data) => exports.QueryControlledParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1152
932
|
}
|
|
1153
|
-
EVMMarket(request) {
|
|
1154
|
-
const data = exports.QueryEVMMarketRequest.encode(request).finish();
|
|
1155
|
-
const promise = this.rpc.request("Switcheo.carbon.market.Query", "EVMMarket", data);
|
|
1156
|
-
return promise.then((data) => exports.QueryEVMMarketResponse.decode(new minimal_1.default.Reader(data)));
|
|
1157
|
-
}
|
|
1158
933
|
}
|
|
1159
934
|
exports.QueryClientImpl = QueryClientImpl;
|
|
1160
935
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MarketParams
|
|
3
|
+
import { MarketParams } from "./market";
|
|
4
4
|
import { Duration } from "../../../google/protobuf/duration";
|
|
5
5
|
import { FeeCategory, FeeTier, StakeEquivalence } from "./fee";
|
|
6
6
|
export declare const protobufPackage = "Switcheo.carbon.market";
|
|
@@ -81,29 +81,6 @@ export interface UpdateAllPoolTradingFeesParams {
|
|
|
81
81
|
makerFee: string;
|
|
82
82
|
takerFee: string;
|
|
83
83
|
}
|
|
84
|
-
/**
|
|
85
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
86
|
-
*
|
|
87
|
-
* Since: cosmos-sdk 0.47
|
|
88
|
-
*/
|
|
89
|
-
export interface MsgUpdateParams {
|
|
90
|
-
/** authority is the address of the governance account. */
|
|
91
|
-
authority: string;
|
|
92
|
-
/**
|
|
93
|
-
* params defines the parameters to update.
|
|
94
|
-
*
|
|
95
|
-
* NOTE: All parameters must be supplied.
|
|
96
|
-
*/
|
|
97
|
-
params?: Params;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
101
|
-
* MsgUpdateParams message.
|
|
102
|
-
*
|
|
103
|
-
* Since: cosmos-sdk 0.47
|
|
104
|
-
*/
|
|
105
|
-
export interface MsgUpdateParamsResponse {
|
|
106
|
-
}
|
|
107
84
|
export declare const MsgDisableSpotMarket: {
|
|
108
85
|
encode(message: MsgDisableSpotMarket, writer?: _m0.Writer): _m0.Writer;
|
|
109
86
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDisableSpotMarket;
|
|
@@ -237,20 +214,6 @@ export declare const UpdateAllPoolTradingFeesParams: {
|
|
|
237
214
|
toJSON(message: UpdateAllPoolTradingFeesParams): unknown;
|
|
238
215
|
fromPartial(object: DeepPartial<UpdateAllPoolTradingFeesParams>): UpdateAllPoolTradingFeesParams;
|
|
239
216
|
};
|
|
240
|
-
export declare const MsgUpdateParams: {
|
|
241
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
242
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
243
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
244
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
245
|
-
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
246
|
-
};
|
|
247
|
-
export declare const MsgUpdateParamsResponse: {
|
|
248
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
249
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
250
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
251
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
252
|
-
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
253
|
-
};
|
|
254
217
|
/** Msg defines the Msg service. */
|
|
255
218
|
export interface Msg {
|
|
256
219
|
CreateMarket(request: MsgCreateMarket): Promise<MsgCreateMarketResponse>;
|
|
@@ -261,14 +224,8 @@ export interface Msg {
|
|
|
261
224
|
UpdateFeeTier(request: MsgUpdateFeeTier): Promise<MsgUpdateFeeTierResponse>;
|
|
262
225
|
RemoveFeeTier(request: MsgRemoveFeeTier): Promise<MsgRemoveFeeTierResponse>;
|
|
263
226
|
SetStakeEquivalence(request: MsgSetStakeEquivalence): Promise<MsgSetStakeEquivalenceResponse>;
|
|
227
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
264
228
|
HandleUpdateAllPoolTradingFees(request: MsgUpdateAllPoolTradingFees): Promise<MsgUpdateAllPoolTradingFeesResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* UpdateParams defines a governance operation for updating the module
|
|
267
|
-
* parameters. The authority is hard-coded to the x/gov module account.
|
|
268
|
-
*
|
|
269
|
-
* Since: cosmos-sdk 0.47
|
|
270
|
-
*/
|
|
271
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
272
229
|
}
|
|
273
230
|
export declare class MsgClientImpl implements Msg {
|
|
274
231
|
private readonly rpc;
|
|
@@ -282,7 +239,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
282
239
|
RemoveFeeTier(request: MsgRemoveFeeTier): Promise<MsgRemoveFeeTierResponse>;
|
|
283
240
|
SetStakeEquivalence(request: MsgSetStakeEquivalence): Promise<MsgSetStakeEquivalenceResponse>;
|
|
284
241
|
HandleUpdateAllPoolTradingFees(request: MsgUpdateAllPoolTradingFees): Promise<MsgUpdateAllPoolTradingFeesResponse>;
|
|
285
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
286
242
|
}
|
|
287
243
|
interface Rpc {
|
|
288
244
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.
|
|
6
|
+
exports.MsgClientImpl = exports.UpdateAllPoolTradingFeesParams = exports.MsgUpdateAllPoolTradingFeesResponse = exports.MsgUpdateAllPoolTradingFees = exports.MsgSetStakeEquivalenceResponse = exports.MsgSetStakeEquivalence = exports.MsgRemoveFeeTierResponse = exports.MsgRemoveFeeTier = exports.MsgUpdateFeeTierResponse = exports.MsgUpdateFeeTier = exports.MsgAddFeeTierResponse = exports.MsgAddFeeTier = exports.MsgUpdatePerpetualsFundingIntervalResponse = exports.MsgUpdatePerpetualsFundingInterval = exports.MsgUpdateMarketResponse = exports.MsgUpdateMarket = exports.MsgCreateMarketResponse = exports.MsgCreateMarket = exports.MsgDisableSpotMarketResponse = exports.MsgDisableSpotMarket = 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"));
|
|
@@ -1173,99 +1173,6 @@ exports.UpdateAllPoolTradingFeesParams = {
|
|
|
1173
1173
|
return message;
|
|
1174
1174
|
},
|
|
1175
1175
|
};
|
|
1176
|
-
const baseMsgUpdateParams = { authority: "" };
|
|
1177
|
-
exports.MsgUpdateParams = {
|
|
1178
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1179
|
-
if (message.authority !== "") {
|
|
1180
|
-
writer.uint32(10).string(message.authority);
|
|
1181
|
-
}
|
|
1182
|
-
if (message.params !== undefined) {
|
|
1183
|
-
market_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1184
|
-
}
|
|
1185
|
-
return writer;
|
|
1186
|
-
},
|
|
1187
|
-
decode(input, length) {
|
|
1188
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1189
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1190
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1191
|
-
while (reader.pos < end) {
|
|
1192
|
-
const tag = reader.uint32();
|
|
1193
|
-
switch (tag >>> 3) {
|
|
1194
|
-
case 1:
|
|
1195
|
-
message.authority = reader.string();
|
|
1196
|
-
break;
|
|
1197
|
-
case 2:
|
|
1198
|
-
message.params = market_1.Params.decode(reader, reader.uint32());
|
|
1199
|
-
break;
|
|
1200
|
-
default:
|
|
1201
|
-
reader.skipType(tag & 7);
|
|
1202
|
-
break;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
return message;
|
|
1206
|
-
},
|
|
1207
|
-
fromJSON(object) {
|
|
1208
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1209
|
-
message.authority =
|
|
1210
|
-
object.authority !== undefined && object.authority !== null
|
|
1211
|
-
? String(object.authority)
|
|
1212
|
-
: "";
|
|
1213
|
-
message.params =
|
|
1214
|
-
object.params !== undefined && object.params !== null
|
|
1215
|
-
? market_1.Params.fromJSON(object.params)
|
|
1216
|
-
: undefined;
|
|
1217
|
-
return message;
|
|
1218
|
-
},
|
|
1219
|
-
toJSON(message) {
|
|
1220
|
-
const obj = {};
|
|
1221
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
1222
|
-
message.params !== undefined &&
|
|
1223
|
-
(obj.params = message.params ? market_1.Params.toJSON(message.params) : undefined);
|
|
1224
|
-
return obj;
|
|
1225
|
-
},
|
|
1226
|
-
fromPartial(object) {
|
|
1227
|
-
var _a;
|
|
1228
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1229
|
-
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
1230
|
-
message.params =
|
|
1231
|
-
object.params !== undefined && object.params !== null
|
|
1232
|
-
? market_1.Params.fromPartial(object.params)
|
|
1233
|
-
: undefined;
|
|
1234
|
-
return message;
|
|
1235
|
-
},
|
|
1236
|
-
};
|
|
1237
|
-
const baseMsgUpdateParamsResponse = {};
|
|
1238
|
-
exports.MsgUpdateParamsResponse = {
|
|
1239
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1240
|
-
return writer;
|
|
1241
|
-
},
|
|
1242
|
-
decode(input, length) {
|
|
1243
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1244
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1245
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1246
|
-
while (reader.pos < end) {
|
|
1247
|
-
const tag = reader.uint32();
|
|
1248
|
-
switch (tag >>> 3) {
|
|
1249
|
-
default:
|
|
1250
|
-
reader.skipType(tag & 7);
|
|
1251
|
-
break;
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
return message;
|
|
1255
|
-
},
|
|
1256
|
-
fromJSON(_) {
|
|
1257
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1258
|
-
return message;
|
|
1259
|
-
},
|
|
1260
|
-
toJSON(_) {
|
|
1261
|
-
const obj = {};
|
|
1262
|
-
return obj;
|
|
1263
|
-
},
|
|
1264
|
-
fromPartial(_) {
|
|
1265
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1266
|
-
return message;
|
|
1267
|
-
},
|
|
1268
|
-
};
|
|
1269
1176
|
class MsgClientImpl {
|
|
1270
1177
|
constructor(rpc) {
|
|
1271
1178
|
this.rpc = rpc;
|
|
@@ -1280,7 +1187,6 @@ class MsgClientImpl {
|
|
|
1280
1187
|
this.SetStakeEquivalence = this.SetStakeEquivalence.bind(this);
|
|
1281
1188
|
this.HandleUpdateAllPoolTradingFees =
|
|
1282
1189
|
this.HandleUpdateAllPoolTradingFees.bind(this);
|
|
1283
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
1284
1190
|
}
|
|
1285
1191
|
CreateMarket(request) {
|
|
1286
1192
|
const data = exports.MsgCreateMarket.encode(request).finish();
|
|
@@ -1327,11 +1233,6 @@ class MsgClientImpl {
|
|
|
1327
1233
|
const promise = this.rpc.request("Switcheo.carbon.market.Msg", "HandleUpdateAllPoolTradingFees", data);
|
|
1328
1234
|
return promise.then((data) => exports.MsgUpdateAllPoolTradingFeesResponse.decode(new minimal_1.default.Reader(data)));
|
|
1329
1235
|
}
|
|
1330
|
-
UpdateParams(request) {
|
|
1331
|
-
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
1332
|
-
const promise = this.rpc.request("Switcheo.carbon.market.Msg", "UpdateParams", data);
|
|
1333
|
-
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1334
|
-
}
|
|
1335
1236
|
}
|
|
1336
1237
|
exports.MsgClientImpl = MsgClientImpl;
|
|
1337
1238
|
function toTimestamp(date) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { MarketStats } from "./marketstats";
|
|
2
|
-
export {
|
|
2
|
+
export { Params } from "./params";
|
|
3
|
+
export { QueryParamsRequest, QueryParamsResponse, QueryMarketStatsRequest, QueryMarketStatsResponse } from "./query";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryMarketStatsResponse = exports.QueryMarketStatsRequest = exports.MarketStats = void 0;
|
|
3
|
+
exports.QueryMarketStatsResponse = exports.QueryMarketStatsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.Params = exports.MarketStats = void 0;
|
|
4
4
|
var marketstats_1 = require("./marketstats");
|
|
5
5
|
Object.defineProperty(exports, "MarketStats", { enumerable: true, get: function () { return marketstats_1.MarketStats; } });
|
|
6
|
+
var params_1 = require("./params");
|
|
7
|
+
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return params_1.Params; } });
|
|
6
8
|
var query_1 = require("./query");
|
|
9
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
10
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
7
11
|
Object.defineProperty(exports, "QueryMarketStatsRequest", { enumerable: true, get: function () { return query_1.QueryMarketStatsRequest; } });
|
|
8
12
|
Object.defineProperty(exports, "QueryMarketStatsResponse", { enumerable: true, get: function () { return query_1.QueryMarketStatsResponse; } });
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./params";
|
|
3
4
|
export declare const protobufPackage = "Switcheo.carbon.marketstats";
|
|
4
5
|
/** GenesisState defines the marketstats module's genesis state. */
|
|
5
6
|
export interface GenesisState {
|
|
7
|
+
/** this line is used by starport scaffolding # genesis/proto/state */
|
|
8
|
+
params?: Params;
|
|
6
9
|
}
|
|
7
10
|
export declare const GenesisState: {
|
|
8
|
-
encode(
|
|
11
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
9
12
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
10
|
-
fromJSON(
|
|
11
|
-
toJSON(
|
|
12
|
-
fromPartial(
|
|
13
|
+
fromJSON(object: any): GenesisState;
|
|
14
|
+
toJSON(message: GenesisState): unknown;
|
|
15
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
13
16
|
};
|
|
14
17
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15
18
|
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 {} ? {
|
|
@@ -7,10 +7,14 @@ 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 params_1 = require("./params");
|
|
10
11
|
exports.protobufPackage = "Switcheo.carbon.marketstats";
|
|
11
12
|
const baseGenesisState = {};
|
|
12
13
|
exports.GenesisState = {
|
|
13
|
-
encode(
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (message.params !== undefined) {
|
|
16
|
+
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
17
|
+
}
|
|
14
18
|
return writer;
|
|
15
19
|
},
|
|
16
20
|
decode(input, length) {
|
|
@@ -20,6 +24,9 @@ exports.GenesisState = {
|
|
|
20
24
|
while (reader.pos < end) {
|
|
21
25
|
const tag = reader.uint32();
|
|
22
26
|
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
29
|
+
break;
|
|
23
30
|
default:
|
|
24
31
|
reader.skipType(tag & 7);
|
|
25
32
|
break;
|
|
@@ -27,16 +34,26 @@ exports.GenesisState = {
|
|
|
27
34
|
}
|
|
28
35
|
return message;
|
|
29
36
|
},
|
|
30
|
-
fromJSON(
|
|
37
|
+
fromJSON(object) {
|
|
31
38
|
const message = Object.assign({}, baseGenesisState);
|
|
39
|
+
message.params =
|
|
40
|
+
object.params !== undefined && object.params !== null
|
|
41
|
+
? params_1.Params.fromJSON(object.params)
|
|
42
|
+
: undefined;
|
|
32
43
|
return message;
|
|
33
44
|
},
|
|
34
|
-
toJSON(
|
|
45
|
+
toJSON(message) {
|
|
35
46
|
const obj = {};
|
|
47
|
+
message.params !== undefined &&
|
|
48
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
36
49
|
return obj;
|
|
37
50
|
},
|
|
38
|
-
fromPartial(
|
|
51
|
+
fromPartial(object) {
|
|
39
52
|
const message = Object.assign({}, baseGenesisState);
|
|
53
|
+
message.params =
|
|
54
|
+
object.params !== undefined && object.params !== null
|
|
55
|
+
? params_1.Params.fromPartial(object.params)
|
|
56
|
+
: undefined;
|
|
40
57
|
return message;
|
|
41
58
|
},
|
|
42
59
|
};
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./params";
|
|
3
4
|
import { MarketStats } from "./marketstats";
|
|
4
5
|
export declare const protobufPackage = "Switcheo.carbon.marketstats";
|
|
6
|
+
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
7
|
+
export interface QueryParamsRequest {
|
|
8
|
+
}
|
|
9
|
+
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
10
|
+
export interface QueryParamsResponse {
|
|
11
|
+
/** params holds all the parameters of this module. */
|
|
12
|
+
params?: Params;
|
|
13
|
+
}
|
|
5
14
|
export interface QueryMarketStatsRequest {
|
|
6
15
|
}
|
|
7
16
|
export interface QueryMarketStatsResponse {
|
|
8
17
|
marketstats: MarketStats[];
|
|
9
18
|
}
|
|
19
|
+
export declare const QueryParamsRequest: {
|
|
20
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsRequest;
|
|
22
|
+
fromJSON(_: any): QueryParamsRequest;
|
|
23
|
+
toJSON(_: QueryParamsRequest): unknown;
|
|
24
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
25
|
+
};
|
|
26
|
+
export declare const QueryParamsResponse: {
|
|
27
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsResponse;
|
|
29
|
+
fromJSON(object: any): QueryParamsResponse;
|
|
30
|
+
toJSON(message: QueryParamsResponse): unknown;
|
|
31
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
32
|
+
};
|
|
10
33
|
export declare const QueryMarketStatsRequest: {
|
|
11
34
|
encode(_: QueryMarketStatsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
35
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryMarketStatsRequest;
|
|
@@ -23,11 +46,14 @@ export declare const QueryMarketStatsResponse: {
|
|
|
23
46
|
};
|
|
24
47
|
/** Query defines the gRPC querier service. */
|
|
25
48
|
export interface Query {
|
|
49
|
+
/** Parameters queries the parameters of the module. */
|
|
50
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
26
51
|
MarketStats(request: QueryMarketStatsRequest): Promise<QueryMarketStatsResponse>;
|
|
27
52
|
}
|
|
28
53
|
export declare class QueryClientImpl implements Query {
|
|
29
54
|
private readonly rpc;
|
|
30
55
|
constructor(rpc: Rpc);
|
|
56
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
31
57
|
MarketStats(request: QueryMarketStatsRequest): Promise<QueryMarketStatsResponse>;
|
|
32
58
|
}
|
|
33
59
|
interface Rpc {
|