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.Orders = exports.
|
|
6
|
+
exports.Orders = exports.OrderIDs = exports.OrderIDsForMarket = exports.OrdersForMarket = exports.DBOrder = exports.Order = exports.Params = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -656,8 +656,8 @@ exports.OrdersForMarket = {
|
|
|
656
656
|
return message;
|
|
657
657
|
},
|
|
658
658
|
};
|
|
659
|
-
const
|
|
660
|
-
exports.
|
|
659
|
+
const baseOrderIDsForMarket = { marketId: "", orderIds: "" };
|
|
660
|
+
exports.OrderIDsForMarket = {
|
|
661
661
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
662
662
|
if (message.marketId !== "") {
|
|
663
663
|
writer.uint32(10).string(message.marketId);
|
|
@@ -670,7 +670,7 @@ exports.OrderIdsForMarket = {
|
|
|
670
670
|
decode(input, length) {
|
|
671
671
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
672
672
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
673
|
-
const message = Object.assign({},
|
|
673
|
+
const message = Object.assign({}, baseOrderIDsForMarket);
|
|
674
674
|
message.orderIds = [];
|
|
675
675
|
while (reader.pos < end) {
|
|
676
676
|
const tag = reader.uint32();
|
|
@@ -690,7 +690,7 @@ exports.OrderIdsForMarket = {
|
|
|
690
690
|
},
|
|
691
691
|
fromJSON(object) {
|
|
692
692
|
var _a;
|
|
693
|
-
const message = Object.assign({},
|
|
693
|
+
const message = Object.assign({}, baseOrderIDsForMarket);
|
|
694
694
|
message.marketId =
|
|
695
695
|
object.marketId !== undefined && object.marketId !== null
|
|
696
696
|
? String(object.marketId)
|
|
@@ -711,14 +711,14 @@ exports.OrderIdsForMarket = {
|
|
|
711
711
|
},
|
|
712
712
|
fromPartial(object) {
|
|
713
713
|
var _a, _b;
|
|
714
|
-
const message = Object.assign({},
|
|
714
|
+
const message = Object.assign({}, baseOrderIDsForMarket);
|
|
715
715
|
message.marketId = (_a = object.marketId) !== null && _a !== void 0 ? _a : "";
|
|
716
716
|
message.orderIds = ((_b = object.orderIds) !== null && _b !== void 0 ? _b : []).map((e) => e);
|
|
717
717
|
return message;
|
|
718
718
|
},
|
|
719
719
|
};
|
|
720
|
-
const
|
|
721
|
-
exports.
|
|
720
|
+
const baseOrderIDs = { ids: "" };
|
|
721
|
+
exports.OrderIDs = {
|
|
722
722
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
723
723
|
for (const v of message.ids) {
|
|
724
724
|
writer.uint32(10).string(v);
|
|
@@ -728,7 +728,7 @@ exports.OrderIds = {
|
|
|
728
728
|
decode(input, length) {
|
|
729
729
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
730
730
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
731
|
-
const message = Object.assign({},
|
|
731
|
+
const message = Object.assign({}, baseOrderIDs);
|
|
732
732
|
message.ids = [];
|
|
733
733
|
while (reader.pos < end) {
|
|
734
734
|
const tag = reader.uint32();
|
|
@@ -745,7 +745,7 @@ exports.OrderIds = {
|
|
|
745
745
|
},
|
|
746
746
|
fromJSON(object) {
|
|
747
747
|
var _a;
|
|
748
|
-
const message = Object.assign({},
|
|
748
|
+
const message = Object.assign({}, baseOrderIDs);
|
|
749
749
|
message.ids = ((_a = object.ids) !== null && _a !== void 0 ? _a : []).map((e) => String(e));
|
|
750
750
|
return message;
|
|
751
751
|
},
|
|
@@ -761,7 +761,7 @@ exports.OrderIds = {
|
|
|
761
761
|
},
|
|
762
762
|
fromPartial(object) {
|
|
763
763
|
var _a;
|
|
764
|
-
const message = Object.assign({},
|
|
764
|
+
const message = Object.assign({}, baseOrderIDs);
|
|
765
765
|
message.ids = ((_a = object.ids) !== null && _a !== void 0 ? _a : []).map((e) => e);
|
|
766
766
|
return message;
|
|
767
767
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "./order";
|
|
4
3
|
export declare const protobufPackage = "Switcheo.carbon.order";
|
|
5
4
|
/** this line is used by starport scaffolding # proto/tx/message */
|
|
6
5
|
export interface MsgSetTradingFlag {
|
|
@@ -49,29 +48,6 @@ export interface MsgCancelAll {
|
|
|
49
48
|
}
|
|
50
49
|
export interface MsgCancelAllResponse {
|
|
51
50
|
}
|
|
52
|
-
/**
|
|
53
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
54
|
-
*
|
|
55
|
-
* Since: cosmos-sdk 0.47
|
|
56
|
-
*/
|
|
57
|
-
export interface MsgUpdateParams {
|
|
58
|
-
/** authority is the address of the governance account. */
|
|
59
|
-
authority: string;
|
|
60
|
-
/**
|
|
61
|
-
* params defines the parameters to update.
|
|
62
|
-
*
|
|
63
|
-
* NOTE: All parameters must be supplied.
|
|
64
|
-
*/
|
|
65
|
-
params?: Params;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
69
|
-
* MsgUpdateParams message.
|
|
70
|
-
*
|
|
71
|
-
* Since: cosmos-sdk 0.47
|
|
72
|
-
*/
|
|
73
|
-
export interface MsgUpdateParamsResponse {
|
|
74
|
-
}
|
|
75
51
|
export declare const MsgSetTradingFlag: {
|
|
76
52
|
encode(message: MsgSetTradingFlag, writer?: _m0.Writer): _m0.Writer;
|
|
77
53
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSetTradingFlag;
|
|
@@ -142,20 +118,6 @@ export declare const MsgCancelAllResponse: {
|
|
|
142
118
|
toJSON(_: MsgCancelAllResponse): unknown;
|
|
143
119
|
fromPartial(_: DeepPartial<MsgCancelAllResponse>): MsgCancelAllResponse;
|
|
144
120
|
};
|
|
145
|
-
export declare const MsgUpdateParams: {
|
|
146
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
147
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
148
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
149
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
150
|
-
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
151
|
-
};
|
|
152
|
-
export declare const MsgUpdateParamsResponse: {
|
|
153
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
154
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
155
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
156
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
157
|
-
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
158
|
-
};
|
|
159
121
|
/** Msg defines the Msg service. */
|
|
160
122
|
export interface Msg {
|
|
161
123
|
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
@@ -164,13 +126,6 @@ export interface Msg {
|
|
|
164
126
|
EditOrder(request: MsgEditOrder): Promise<MsgEditOrderResponse>;
|
|
165
127
|
CancelOrder(request: MsgCancelOrder): Promise<MsgCancelOrderResponse>;
|
|
166
128
|
CancelAll(request: MsgCancelAll): Promise<MsgCancelAllResponse>;
|
|
167
|
-
/**
|
|
168
|
-
* UpdateParams defines a governance operation for updating the module
|
|
169
|
-
* parameters. The authority is hard-coded to the x/gov module account.
|
|
170
|
-
*
|
|
171
|
-
* Since: cosmos-sdk 0.47
|
|
172
|
-
*/
|
|
173
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
174
129
|
}
|
|
175
130
|
export declare class MsgClientImpl implements Msg {
|
|
176
131
|
private readonly rpc;
|
|
@@ -180,7 +135,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
180
135
|
EditOrder(request: MsgEditOrder): Promise<MsgEditOrderResponse>;
|
|
181
136
|
CancelOrder(request: MsgCancelOrder): Promise<MsgCancelOrderResponse>;
|
|
182
137
|
CancelAll(request: MsgCancelAll): Promise<MsgCancelAllResponse>;
|
|
183
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
184
138
|
}
|
|
185
139
|
interface Rpc {
|
|
186
140
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,11 +3,10 @@ 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.MsgCancelAllResponse = exports.MsgCancelAll = exports.MsgCancelOrderResponse = exports.MsgCancelOrder = exports.MsgEditOrderResponse = exports.MsgEditOrder = exports.MsgCreateOrderResponse = exports.MsgCreateOrder = exports.MsgSetTradingFlagResponse = exports.MsgSetTradingFlag = 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 order_1 = require("./order");
|
|
11
10
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
12
11
|
const baseMsgSetTradingFlag = {
|
|
13
12
|
creator: "",
|
|
@@ -674,99 +673,6 @@ exports.MsgCancelAllResponse = {
|
|
|
674
673
|
return message;
|
|
675
674
|
},
|
|
676
675
|
};
|
|
677
|
-
const baseMsgUpdateParams = { authority: "" };
|
|
678
|
-
exports.MsgUpdateParams = {
|
|
679
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
680
|
-
if (message.authority !== "") {
|
|
681
|
-
writer.uint32(10).string(message.authority);
|
|
682
|
-
}
|
|
683
|
-
if (message.params !== undefined) {
|
|
684
|
-
order_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
685
|
-
}
|
|
686
|
-
return writer;
|
|
687
|
-
},
|
|
688
|
-
decode(input, length) {
|
|
689
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
690
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
691
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
692
|
-
while (reader.pos < end) {
|
|
693
|
-
const tag = reader.uint32();
|
|
694
|
-
switch (tag >>> 3) {
|
|
695
|
-
case 1:
|
|
696
|
-
message.authority = reader.string();
|
|
697
|
-
break;
|
|
698
|
-
case 2:
|
|
699
|
-
message.params = order_1.Params.decode(reader, reader.uint32());
|
|
700
|
-
break;
|
|
701
|
-
default:
|
|
702
|
-
reader.skipType(tag & 7);
|
|
703
|
-
break;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
return message;
|
|
707
|
-
},
|
|
708
|
-
fromJSON(object) {
|
|
709
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
710
|
-
message.authority =
|
|
711
|
-
object.authority !== undefined && object.authority !== null
|
|
712
|
-
? String(object.authority)
|
|
713
|
-
: "";
|
|
714
|
-
message.params =
|
|
715
|
-
object.params !== undefined && object.params !== null
|
|
716
|
-
? order_1.Params.fromJSON(object.params)
|
|
717
|
-
: undefined;
|
|
718
|
-
return message;
|
|
719
|
-
},
|
|
720
|
-
toJSON(message) {
|
|
721
|
-
const obj = {};
|
|
722
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
723
|
-
message.params !== undefined &&
|
|
724
|
-
(obj.params = message.params ? order_1.Params.toJSON(message.params) : undefined);
|
|
725
|
-
return obj;
|
|
726
|
-
},
|
|
727
|
-
fromPartial(object) {
|
|
728
|
-
var _a;
|
|
729
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
730
|
-
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
731
|
-
message.params =
|
|
732
|
-
object.params !== undefined && object.params !== null
|
|
733
|
-
? order_1.Params.fromPartial(object.params)
|
|
734
|
-
: undefined;
|
|
735
|
-
return message;
|
|
736
|
-
},
|
|
737
|
-
};
|
|
738
|
-
const baseMsgUpdateParamsResponse = {};
|
|
739
|
-
exports.MsgUpdateParamsResponse = {
|
|
740
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
741
|
-
return writer;
|
|
742
|
-
},
|
|
743
|
-
decode(input, length) {
|
|
744
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
745
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
746
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
747
|
-
while (reader.pos < end) {
|
|
748
|
-
const tag = reader.uint32();
|
|
749
|
-
switch (tag >>> 3) {
|
|
750
|
-
default:
|
|
751
|
-
reader.skipType(tag & 7);
|
|
752
|
-
break;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
return message;
|
|
756
|
-
},
|
|
757
|
-
fromJSON(_) {
|
|
758
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
759
|
-
return message;
|
|
760
|
-
},
|
|
761
|
-
toJSON(_) {
|
|
762
|
-
const obj = {};
|
|
763
|
-
return obj;
|
|
764
|
-
},
|
|
765
|
-
fromPartial(_) {
|
|
766
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
767
|
-
return message;
|
|
768
|
-
},
|
|
769
|
-
};
|
|
770
676
|
class MsgClientImpl {
|
|
771
677
|
constructor(rpc) {
|
|
772
678
|
this.rpc = rpc;
|
|
@@ -775,7 +681,6 @@ class MsgClientImpl {
|
|
|
775
681
|
this.EditOrder = this.EditOrder.bind(this);
|
|
776
682
|
this.CancelOrder = this.CancelOrder.bind(this);
|
|
777
683
|
this.CancelAll = this.CancelAll.bind(this);
|
|
778
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
779
684
|
}
|
|
780
685
|
SetTradingFlag(request) {
|
|
781
686
|
const data = exports.MsgSetTradingFlag.encode(request).finish();
|
|
@@ -802,11 +707,6 @@ class MsgClientImpl {
|
|
|
802
707
|
const promise = this.rpc.request("Switcheo.carbon.order.Msg", "CancelAll", data);
|
|
803
708
|
return promise.then((data) => exports.MsgCancelAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
804
709
|
}
|
|
805
|
-
UpdateParams(request) {
|
|
806
|
-
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
807
|
-
const promise = this.rpc.request("Switcheo.carbon.order.Msg", "UpdateParams", data);
|
|
808
|
-
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
809
|
-
}
|
|
810
710
|
}
|
|
811
711
|
exports.MsgClientImpl = MsgClientImpl;
|
|
812
712
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -4,4 +4,4 @@ export { Quote, MarketConfig, UpdateMarketConfigParams, MarketUtilizationRateSna
|
|
|
4
4
|
export { Params } from "./params";
|
|
5
5
|
export { Pool, UpdatePoolParams, PoolDetails, DepositToPoolParams, WithdrawFromPoolParams, NavPerShareLastRecorded } from "./pool";
|
|
6
6
|
export { QueryAllPoolMarketLiquidityUsageMultiplierRequest, QueryAllPoolMarketLiquidityUsageMultiplierResponse, QueryParamsRequest, QueryParamsResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolsRequest, QueryAllPoolsResponse, QueryPoolMappingsRequest, QueryPoolMappingsResponse, QueryPoolMappingsResponse_PoolMappingsEntry, QueryAllPoolAddressRequest, QueryAllPoolAddressResponse, QueryAllPoolAddressResponse_AddressesEntry, QueryPoolInfoRequest, QueryPoolInfoResponse, QueryAllPoolInfoRequest, QueryAllPoolInfoResponse } from "./query";
|
|
7
|
-
export { MsgCreatePool, MsgCreatePoolResponse, MsgUpdatePool, MsgUpdatePoolResponse, MsgRegisterToPool, MsgRegisterToPoolResponse, MsgDeregisterFromPool, MsgDeregisterFromPoolResponse, MsgDepositToPool, MsgDepositToPoolResponse, MsgWithdrawFromPool, MsgWithdrawFromPoolResponse, MsgUpdateMarketConfig, MsgUpdateMarketConfigResponse, MsgSetParams, MsgSetParamsResponse
|
|
7
|
+
export { MsgCreatePool, MsgCreatePoolResponse, MsgUpdatePool, MsgUpdatePoolResponse, MsgRegisterToPool, MsgRegisterToPoolResponse, MsgDeregisterFromPool, MsgDeregisterFromPoolResponse, MsgDepositToPool, MsgDepositToPoolResponse, MsgWithdrawFromPool, MsgWithdrawFromPoolResponse, MsgUpdateMarketConfig, MsgUpdateMarketConfigResponse, MsgSetParams, MsgSetParamsResponse } from "./tx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MsgDepositToPool = exports.MsgDeregisterFromPoolResponse = exports.MsgDeregisterFromPool = exports.MsgRegisterToPoolResponse = exports.MsgRegisterToPool = exports.MsgUpdatePoolResponse = exports.MsgUpdatePool = exports.MsgCreatePoolResponse = exports.MsgCreatePool = exports.QueryAllPoolInfoResponse = exports.QueryAllPoolInfoRequest = exports.QueryPoolInfoResponse = exports.QueryPoolInfoRequest = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryPoolMappingsResponse_PoolMappingsEntry = exports.QueryPoolMappingsResponse = exports.QueryPoolMappingsRequest = exports.QueryAllPoolsResponse = exports.QueryAllPoolsRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAllPoolMarketLiquidityUsageMultiplierResponse = exports.QueryAllPoolMarketLiquidityUsageMultiplierRequest = exports.NavPerShareLastRecorded = exports.WithdrawFromPoolParams = exports.DepositToPoolParams = exports.PoolDetails = exports.UpdatePoolParams = exports.Pool = exports.Params = exports.MarketLiquidityUsageMultiplier = exports.TWAMarketUtilizationRate = exports.MarketUtilizationRateSnapshot = exports.UpdateMarketConfigParams = exports.MarketConfig = exports.Quote = exports.NavPerShareLastRecordedWithPoolId = exports.NavPerShareRecord = exports.MarketConfigRecord = exports.UpdateMarketLiquidityUsageMultiplierEvent = exports.WithdrawFromPoolEvent = exports.DepositToPoolEvent = exports.SetMarketConfigEvent = exports.DeregisterFromPoolEvent = exports.RegisterToPoolEvent = exports.PoolEvent = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.MsgSetParamsResponse = exports.MsgSetParams = exports.MsgUpdateMarketConfigResponse = exports.MsgUpdateMarketConfig = exports.MsgWithdrawFromPoolResponse = exports.MsgWithdrawFromPool = exports.MsgDepositToPoolResponse = void 0;
|
|
5
5
|
var event_1 = require("./event");
|
|
6
6
|
Object.defineProperty(exports, "PoolEvent", { enumerable: true, get: function () { return event_1.PoolEvent; } });
|
|
7
7
|
Object.defineProperty(exports, "RegisterToPoolEvent", { enumerable: true, get: function () { return event_1.RegisterToPoolEvent; } });
|
|
@@ -66,5 +66,3 @@ Object.defineProperty(exports, "MsgUpdateMarketConfig", { enumerable: true, get:
|
|
|
66
66
|
Object.defineProperty(exports, "MsgUpdateMarketConfigResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateMarketConfigResponse; } });
|
|
67
67
|
Object.defineProperty(exports, "MsgSetParams", { enumerable: true, get: function () { return tx_1.MsgSetParams; } });
|
|
68
68
|
Object.defineProperty(exports, "MsgSetParamsResponse", { enumerable: true, get: function () { return tx_1.MsgSetParamsResponse; } });
|
|
69
|
-
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
70
|
-
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -3,7 +3,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { Pool, UpdatePoolParams } from "./pool";
|
|
4
4
|
import { UpdateMarketConfigParams, MarketConfig } from "./market";
|
|
5
5
|
import { Duration } from "../../../google/protobuf/duration";
|
|
6
|
-
import { Params } from "./params";
|
|
7
6
|
export declare const protobufPackage = "Switcheo.carbon.perpspool";
|
|
8
7
|
export interface MsgCreatePool {
|
|
9
8
|
creator: string;
|
|
@@ -84,29 +83,6 @@ export interface MsgSetParams {
|
|
|
84
83
|
}
|
|
85
84
|
export interface MsgSetParamsResponse {
|
|
86
85
|
}
|
|
87
|
-
/**
|
|
88
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
89
|
-
*
|
|
90
|
-
* Since: cosmos-sdk 0.47
|
|
91
|
-
*/
|
|
92
|
-
export interface MsgUpdateParams {
|
|
93
|
-
/** authority is the address of the governance account. */
|
|
94
|
-
authority: string;
|
|
95
|
-
/**
|
|
96
|
-
* params defines the parameters to update.
|
|
97
|
-
*
|
|
98
|
-
* NOTE: All parameters must be supplied.
|
|
99
|
-
*/
|
|
100
|
-
params?: Params;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
104
|
-
* MsgUpdateParams message.
|
|
105
|
-
*
|
|
106
|
-
* Since: cosmos-sdk 0.47
|
|
107
|
-
*/
|
|
108
|
-
export interface MsgUpdateParamsResponse {
|
|
109
|
-
}
|
|
110
86
|
export declare const MsgCreatePool: {
|
|
111
87
|
encode(message: MsgCreatePool, writer?: _m0.Writer): _m0.Writer;
|
|
112
88
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCreatePool;
|
|
@@ -219,20 +195,6 @@ export declare const MsgSetParamsResponse: {
|
|
|
219
195
|
toJSON(_: MsgSetParamsResponse): unknown;
|
|
220
196
|
fromPartial(_: DeepPartial<MsgSetParamsResponse>): MsgSetParamsResponse;
|
|
221
197
|
};
|
|
222
|
-
export declare const MsgUpdateParams: {
|
|
223
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
224
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
225
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
226
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
227
|
-
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
228
|
-
};
|
|
229
|
-
export declare const MsgUpdateParamsResponse: {
|
|
230
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
231
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
232
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
233
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
234
|
-
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
235
|
-
};
|
|
236
198
|
/** Msg defines the Msg service. */
|
|
237
199
|
export interface Msg {
|
|
238
200
|
CreatePool(request: MsgCreatePool): Promise<MsgCreatePoolResponse>;
|
|
@@ -242,14 +204,8 @@ export interface Msg {
|
|
|
242
204
|
DepositToPool(request: MsgDepositToPool): Promise<MsgDepositToPoolResponse>;
|
|
243
205
|
WithdrawFromPool(request: MsgWithdrawFromPool): Promise<MsgWithdrawFromPoolResponse>;
|
|
244
206
|
UpdateMarketConfig(request: MsgUpdateMarketConfig): Promise<MsgUpdateMarketConfigResponse>;
|
|
207
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
245
208
|
SetParams(request: MsgSetParams): Promise<MsgSetParamsResponse>;
|
|
246
|
-
/**
|
|
247
|
-
* UpdateParams defines a governance operation for updating the module
|
|
248
|
-
* parameters. The authority is hard-coded to the x/gov module account.
|
|
249
|
-
*
|
|
250
|
-
* Since: cosmos-sdk 0.47
|
|
251
|
-
*/
|
|
252
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
253
209
|
}
|
|
254
210
|
export declare class MsgClientImpl implements Msg {
|
|
255
211
|
private readonly rpc;
|
|
@@ -262,7 +218,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
262
218
|
WithdrawFromPool(request: MsgWithdrawFromPool): Promise<MsgWithdrawFromPoolResponse>;
|
|
263
219
|
UpdateMarketConfig(request: MsgUpdateMarketConfig): Promise<MsgUpdateMarketConfigResponse>;
|
|
264
220
|
SetParams(request: MsgSetParams): Promise<MsgSetParamsResponse>;
|
|
265
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
266
221
|
}
|
|
267
222
|
interface Rpc {
|
|
268
223
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,14 +3,13 @@ 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.MsgSetParamsResponse = exports.MsgSetParams = exports.MsgUpdateMarketConfigResponse = exports.MsgUpdateMarketConfig = exports.MsgWithdrawFromPoolResponse = exports.MsgWithdrawFromPool = exports.MsgDepositToPoolResponse = exports.MsgDepositToPool = exports.MsgDeregisterFromPoolResponse = exports.MsgDeregisterFromPool = exports.MsgRegisterToPoolResponse = exports.MsgRegisterToPool = exports.MsgUpdatePoolResponse = exports.MsgUpdatePool = exports.MsgCreatePoolResponse = exports.MsgCreatePool = 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 pool_1 = require("./pool");
|
|
11
11
|
const market_1 = require("./market");
|
|
12
12
|
const duration_1 = require("../../../google/protobuf/duration");
|
|
13
|
-
const params_1 = require("./params");
|
|
14
13
|
exports.protobufPackage = "Switcheo.carbon.perpspool";
|
|
15
14
|
const baseMsgCreatePool = {
|
|
16
15
|
creator: "",
|
|
@@ -1085,99 +1084,6 @@ exports.MsgSetParamsResponse = {
|
|
|
1085
1084
|
return message;
|
|
1086
1085
|
},
|
|
1087
1086
|
};
|
|
1088
|
-
const baseMsgUpdateParams = { authority: "" };
|
|
1089
|
-
exports.MsgUpdateParams = {
|
|
1090
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1091
|
-
if (message.authority !== "") {
|
|
1092
|
-
writer.uint32(10).string(message.authority);
|
|
1093
|
-
}
|
|
1094
|
-
if (message.params !== undefined) {
|
|
1095
|
-
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1096
|
-
}
|
|
1097
|
-
return writer;
|
|
1098
|
-
},
|
|
1099
|
-
decode(input, length) {
|
|
1100
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1101
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1102
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1103
|
-
while (reader.pos < end) {
|
|
1104
|
-
const tag = reader.uint32();
|
|
1105
|
-
switch (tag >>> 3) {
|
|
1106
|
-
case 1:
|
|
1107
|
-
message.authority = reader.string();
|
|
1108
|
-
break;
|
|
1109
|
-
case 2:
|
|
1110
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
1111
|
-
break;
|
|
1112
|
-
default:
|
|
1113
|
-
reader.skipType(tag & 7);
|
|
1114
|
-
break;
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
return message;
|
|
1118
|
-
},
|
|
1119
|
-
fromJSON(object) {
|
|
1120
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1121
|
-
message.authority =
|
|
1122
|
-
object.authority !== undefined && object.authority !== null
|
|
1123
|
-
? String(object.authority)
|
|
1124
|
-
: "";
|
|
1125
|
-
message.params =
|
|
1126
|
-
object.params !== undefined && object.params !== null
|
|
1127
|
-
? params_1.Params.fromJSON(object.params)
|
|
1128
|
-
: undefined;
|
|
1129
|
-
return message;
|
|
1130
|
-
},
|
|
1131
|
-
toJSON(message) {
|
|
1132
|
-
const obj = {};
|
|
1133
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
1134
|
-
message.params !== undefined &&
|
|
1135
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
1136
|
-
return obj;
|
|
1137
|
-
},
|
|
1138
|
-
fromPartial(object) {
|
|
1139
|
-
var _a;
|
|
1140
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
1141
|
-
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
1142
|
-
message.params =
|
|
1143
|
-
object.params !== undefined && object.params !== null
|
|
1144
|
-
? params_1.Params.fromPartial(object.params)
|
|
1145
|
-
: undefined;
|
|
1146
|
-
return message;
|
|
1147
|
-
},
|
|
1148
|
-
};
|
|
1149
|
-
const baseMsgUpdateParamsResponse = {};
|
|
1150
|
-
exports.MsgUpdateParamsResponse = {
|
|
1151
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1152
|
-
return writer;
|
|
1153
|
-
},
|
|
1154
|
-
decode(input, length) {
|
|
1155
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1156
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1157
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1158
|
-
while (reader.pos < end) {
|
|
1159
|
-
const tag = reader.uint32();
|
|
1160
|
-
switch (tag >>> 3) {
|
|
1161
|
-
default:
|
|
1162
|
-
reader.skipType(tag & 7);
|
|
1163
|
-
break;
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
return message;
|
|
1167
|
-
},
|
|
1168
|
-
fromJSON(_) {
|
|
1169
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1170
|
-
return message;
|
|
1171
|
-
},
|
|
1172
|
-
toJSON(_) {
|
|
1173
|
-
const obj = {};
|
|
1174
|
-
return obj;
|
|
1175
|
-
},
|
|
1176
|
-
fromPartial(_) {
|
|
1177
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
1178
|
-
return message;
|
|
1179
|
-
},
|
|
1180
|
-
};
|
|
1181
1087
|
class MsgClientImpl {
|
|
1182
1088
|
constructor(rpc) {
|
|
1183
1089
|
this.rpc = rpc;
|
|
@@ -1189,7 +1095,6 @@ class MsgClientImpl {
|
|
|
1189
1095
|
this.WithdrawFromPool = this.WithdrawFromPool.bind(this);
|
|
1190
1096
|
this.UpdateMarketConfig = this.UpdateMarketConfig.bind(this);
|
|
1191
1097
|
this.SetParams = this.SetParams.bind(this);
|
|
1192
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
1193
1098
|
}
|
|
1194
1099
|
CreatePool(request) {
|
|
1195
1100
|
const data = exports.MsgCreatePool.encode(request).finish();
|
|
@@ -1231,11 +1136,6 @@ class MsgClientImpl {
|
|
|
1231
1136
|
const promise = this.rpc.request("Switcheo.carbon.perpspool.Msg", "SetParams", data);
|
|
1232
1137
|
return promise.then((data) => exports.MsgSetParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1233
1138
|
}
|
|
1234
|
-
UpdateParams(request) {
|
|
1235
|
-
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
1236
|
-
const promise = this.rpc.request("Switcheo.carbon.perpspool.Msg", "UpdateParams", data);
|
|
1237
|
-
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1238
|
-
}
|
|
1239
1139
|
}
|
|
1240
1140
|
exports.MsgClientImpl = MsgClientImpl;
|
|
1241
1141
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { PositionEvent } from "./event";
|
|
2
|
-
export { QueryEVMPositionRequest, QueryEVMPositionQueue } from "./evm_hooks";
|
|
3
2
|
export { Position, Positions, APIPosition, PositionAllocatedMargin } from "./position";
|
|
4
3
|
export { QueryGetPositionRequest, QueryGetPositionResponse, QueryAllPositionRequest, QueryAllPositionResponse, QueryPositionAllocatedMarginRequest, QueryPositionAllocatedMarginResponse } from "./query";
|
|
5
4
|
export { MsgSetMargin, MsgSetMarginResponse } from "./tx";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgSetMarginResponse = exports.MsgSetMargin = exports.QueryPositionAllocatedMarginResponse = exports.QueryPositionAllocatedMarginRequest = exports.QueryAllPositionResponse = exports.QueryAllPositionRequest = exports.QueryGetPositionResponse = exports.QueryGetPositionRequest = exports.PositionAllocatedMargin = exports.APIPosition = exports.Positions = exports.Position = exports.
|
|
3
|
+
exports.MsgSetMarginResponse = exports.MsgSetMargin = exports.QueryPositionAllocatedMarginResponse = exports.QueryPositionAllocatedMarginRequest = exports.QueryAllPositionResponse = exports.QueryAllPositionRequest = exports.QueryGetPositionResponse = exports.QueryGetPositionRequest = exports.PositionAllocatedMargin = exports.APIPosition = exports.Positions = exports.Position = exports.PositionEvent = void 0;
|
|
4
4
|
var event_1 = require("./event");
|
|
5
5
|
Object.defineProperty(exports, "PositionEvent", { enumerable: true, get: function () { return event_1.PositionEvent; } });
|
|
6
|
-
var evm_hooks_1 = require("./evm_hooks");
|
|
7
|
-
Object.defineProperty(exports, "QueryEVMPositionRequest", { enumerable: true, get: function () { return evm_hooks_1.QueryEVMPositionRequest; } });
|
|
8
|
-
Object.defineProperty(exports, "QueryEVMPositionQueue", { enumerable: true, get: function () { return evm_hooks_1.QueryEVMPositionQueue; } });
|
|
9
6
|
var position_1 = require("./position");
|
|
10
7
|
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return position_1.Position; } });
|
|
11
8
|
Object.defineProperty(exports, "Positions", { enumerable: true, get: function () { return position_1.Positions; } });
|
|
@@ -3,4 +3,4 @@ export { ParamsV2130 } from "./legacy";
|
|
|
3
3
|
export { Params, PriceSet, TokenPrice } from "./pricing";
|
|
4
4
|
export { SettlementPriceProposal, SettlementPriceParams } from "./proposal";
|
|
5
5
|
export { QueryPriceTokenRequest, QueryPriceTokenResponse, QueryPriceSetRequest, QueryPriceSetResponse, QueryAllPriceSetRequest, QueryAllPriceSetResponse, QueryRateRequest, QueryRateResponse, QueryParamsRequest, QueryParamsResponse, QueryTokenPriceRequest, QueryTokenPriceResponse, QueryTokenPriceAllRequest, QueryTokenPriceAllResponse } from "./query";
|
|
6
|
-
export { MsgSetBackfillTimeInterval, MsgSetBackfillTimeIntervalResponse, MsgSetSmoothenBand, MsgSetSmoothenBandResponse, MsgSetImpactBand, MsgSetImpactBandResponse, MsgSetStaleIndexAllowance, MsgSetStaleIndexAllowanceResponse, MsgUpdateTokenPriceOracle, MsgUpdateTokenPriceOracleResponse
|
|
6
|
+
export { MsgSetBackfillTimeInterval, MsgSetBackfillTimeIntervalResponse, MsgSetSmoothenBand, MsgSetSmoothenBandResponse, MsgSetImpactBand, MsgSetImpactBandResponse, MsgSetStaleIndexAllowance, MsgSetStaleIndexAllowanceResponse, MsgUpdateTokenPriceOracle, MsgUpdateTokenPriceOracleResponse } from "./tx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MsgUpdateTokenPriceOracleResponse = exports.MsgUpdateTokenPriceOracle = exports.MsgSetStaleIndexAllowanceResponse = exports.MsgSetStaleIndexAllowance = exports.MsgSetImpactBandResponse = exports.MsgSetImpactBand = exports.MsgSetSmoothenBandResponse = exports.MsgSetSmoothenBand = exports.MsgSetBackfillTimeIntervalResponse = exports.MsgSetBackfillTimeInterval = exports.QueryTokenPriceAllResponse = exports.QueryTokenPriceAllRequest = exports.QueryTokenPriceResponse = exports.QueryTokenPriceRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRateResponse = exports.QueryRateRequest = exports.QueryAllPriceSetResponse = exports.QueryAllPriceSetRequest = exports.QueryPriceSetResponse = exports.QueryPriceSetRequest = exports.QueryPriceTokenResponse = exports.QueryPriceTokenRequest = exports.SettlementPriceParams = exports.SettlementPriceProposal = exports.TokenPrice = exports.PriceSet = exports.Params = exports.ParamsV2130 = exports.SetBackfillTimeIntervalEvent = exports.SetStaleIndexAllowanceEvent = exports.SetSmoothenBandEvent = exports.SetImpactBandEvent = exports.TokenPriceUpdateEvent = exports.PriceUpdateEvent = void 0;
|
|
4
4
|
var event_1 = require("./event");
|
|
5
5
|
Object.defineProperty(exports, "PriceUpdateEvent", { enumerable: true, get: function () { return event_1.PriceUpdateEvent; } });
|
|
6
6
|
Object.defineProperty(exports, "TokenPriceUpdateEvent", { enumerable: true, get: function () { return event_1.TokenPriceUpdateEvent; } });
|
|
@@ -43,5 +43,3 @@ Object.defineProperty(exports, "MsgSetStaleIndexAllowance", { enumerable: true,
|
|
|
43
43
|
Object.defineProperty(exports, "MsgSetStaleIndexAllowanceResponse", { enumerable: true, get: function () { return tx_1.MsgSetStaleIndexAllowanceResponse; } });
|
|
44
44
|
Object.defineProperty(exports, "MsgUpdateTokenPriceOracle", { enumerable: true, get: function () { return tx_1.MsgUpdateTokenPriceOracle; } });
|
|
45
45
|
Object.defineProperty(exports, "MsgUpdateTokenPriceOracleResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateTokenPriceOracleResponse; } });
|
|
46
|
-
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
47
|
-
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|