carbon-js-sdk 0.2.16-dev.4 → 0.2.17
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/CarbonSDK.d.ts +1 -13
- package/lib/CarbonSDK.js +2 -31
- package/lib/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.d.ts +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/N3Client.js +2 -3
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.d.ts +0 -5
- package/lib/clients/TokenClient.js +10 -38
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.js +16 -16
- package/lib/codec/book/genesis.d.ts +1 -1
- package/lib/codec/book/genesis.js +1 -1
- package/lib/codec/book/query.d.ts +1 -1
- package/lib/codec/book/query.js +1 -1
- package/lib/codec/broker/genesis.d.ts +1 -1
- package/lib/codec/broker/genesis.js +1 -1
- package/lib/codec/broker/query.d.ts +3 -3
- package/lib/codec/broker/query.js +3 -3
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
- package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
- package/lib/codec/btcx/query.d.ts +1 -1
- package/lib/codec/btcx/query.js +1 -1
- package/lib/codec/ccm/genesis.d.ts +1 -1
- package/lib/codec/ccm/genesis.js +1 -1
- package/lib/codec/cdp/event.d.ts +22 -389
- package/lib/codec/cdp/event.js +83 -2494
- package/lib/codec/cdp/genesis.d.ts +4 -97
- package/lib/codec/cdp/genesis.js +23 -648
- package/lib/codec/cdp/query.d.ts +89 -439
- package/lib/codec/cdp/query.js +173 -1991
- package/lib/codec/cdp/tx.d.ts +96 -760
- package/lib/codec/cdp/tx.js +235 -3645
- package/lib/codec/coin/event.d.ts +1 -1
- package/lib/codec/coin/event.js +1 -1
- package/lib/codec/coin/genesis.d.ts +2 -2
- package/lib/codec/coin/genesis.js +2 -2
- package/lib/codec/coin/proposal.d.ts +1 -1
- package/lib/codec/coin/proposal.js +1 -1
- package/lib/codec/coin/query.d.ts +2 -2
- package/lib/codec/coin/query.js +2 -2
- package/lib/codec/coin/tx.d.ts +1 -1
- package/lib/codec/coin/tx.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
- package/lib/codec/fee/genesis.d.ts +1 -1
- package/lib/codec/fee/genesis.js +1 -1
- package/lib/codec/fee/proposal.d.ts +1 -1
- package/lib/codec/fee/proposal.js +1 -1
- package/lib/codec/fee/query.d.ts +1 -1
- package/lib/codec/fee/query.js +1 -1
- package/lib/codec/fee/tx.d.ts +1 -1
- package/lib/codec/fee/tx.js +1 -1
- package/lib/codec/headersync/genesis.d.ts +1 -1
- package/lib/codec/headersync/genesis.js +1 -1
- package/lib/codec/headersync/query.d.ts +1 -1
- package/lib/codec/headersync/query.js +1 -1
- package/lib/codec/index.d.ts +18 -89
- package/lib/codec/index.js +180 -463
- package/lib/codec/inflation/genesis.d.ts +1 -1
- package/lib/codec/inflation/genesis.js +1 -1
- package/lib/codec/inflation/query.d.ts +1 -1
- package/lib/codec/inflation/query.js +1 -1
- package/lib/codec/insurance/genesis.d.ts +1 -1
- package/lib/codec/insurance/genesis.js +1 -1
- package/lib/codec/leverage/genesis.d.ts +1 -1
- package/lib/codec/leverage/genesis.js +1 -1
- package/lib/codec/leverage/query.d.ts +1 -1
- package/lib/codec/leverage/query.js +1 -1
- package/lib/codec/liquidation/genesis.d.ts +1 -1
- package/lib/codec/liquidation/genesis.js +1 -1
- package/lib/codec/liquidation/query.d.ts +1 -1
- package/lib/codec/liquidation/query.js +1 -1
- package/lib/codec/liquidation/quote_changes.d.ts +1 -1
- package/lib/codec/liquidation/quote_changes.js +1 -1
- package/lib/codec/liquiditypool/event.d.ts +2 -2
- package/lib/codec/liquiditypool/event.js +2 -2
- package/lib/codec/liquiditypool/genesis.d.ts +2 -2
- package/lib/codec/liquiditypool/genesis.js +2 -2
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -3
- package/lib/codec/liquiditypool/liquiditypool.js +1 -44
- package/lib/codec/liquiditypool/proposal.d.ts +1 -1
- package/lib/codec/liquiditypool/proposal.js +1 -1
- package/lib/codec/liquiditypool/query.d.ts +2 -39
- package/lib/codec/liquiditypool/query.js +3 -195
- package/lib/codec/liquiditypool/tx.d.ts +1 -3
- package/lib/codec/liquiditypool/tx.js +1 -35
- package/lib/codec/lockproxy/genesis.d.ts +1 -1
- package/lib/codec/lockproxy/genesis.js +1 -1
- package/lib/codec/lockproxy/query.d.ts +1 -1
- package/lib/codec/lockproxy/query.js +1 -1
- package/lib/codec/market/event.d.ts +1 -1
- package/lib/codec/market/event.js +1 -1
- package/lib/codec/market/genesis.d.ts +1 -1
- package/lib/codec/market/genesis.js +1 -1
- package/lib/codec/market/proposal.d.ts +1 -1
- package/lib/codec/market/proposal.js +1 -1
- package/lib/codec/market/query.d.ts +1 -1
- package/lib/codec/market/query.js +1 -1
- package/lib/codec/market/tx.d.ts +1 -1
- package/lib/codec/market/tx.js +1 -1
- package/lib/codec/marketstats/genesis.d.ts +1 -1
- package/lib/codec/marketstats/genesis.js +1 -1
- package/lib/codec/marketstats/query.d.ts +2 -2
- package/lib/codec/marketstats/query.js +2 -2
- package/lib/codec/misc/message.d.ts +1 -1
- package/lib/codec/misc/message.js +1 -1
- package/lib/codec/misc/query.d.ts +3 -3
- package/lib/codec/misc/query.js +3 -3
- package/lib/codec/misc/transaction.d.ts +1 -1
- package/lib/codec/misc/transaction.js +1 -1
- package/lib/codec/oracle/event.d.ts +1 -1
- package/lib/codec/oracle/event.js +1 -1
- package/lib/codec/oracle/genesis.d.ts +1 -4
- package/lib/codec/oracle/genesis.js +3 -34
- package/lib/codec/oracle/proposal.d.ts +1 -1
- package/lib/codec/oracle/proposal.js +1 -1
- package/lib/codec/oracle/query.d.ts +2 -2
- package/lib/codec/oracle/query.js +2 -2
- package/lib/codec/order/event.d.ts +1 -1
- package/lib/codec/order/event.js +1 -1
- package/lib/codec/order/genesis.d.ts +1 -1
- package/lib/codec/order/genesis.js +1 -1
- package/lib/codec/order/query.d.ts +1 -1
- package/lib/codec/order/query.js +1 -1
- package/lib/codec/position/event.d.ts +1 -1
- package/lib/codec/position/event.js +1 -1
- package/lib/codec/position/genesis.d.ts +1 -1
- package/lib/codec/position/genesis.js +1 -1
- package/lib/codec/position/query.d.ts +1 -1
- package/lib/codec/position/query.js +1 -1
- package/lib/codec/pricing/event.d.ts +1 -56
- package/lib/codec/pricing/event.js +2 -298
- package/lib/codec/pricing/genesis.d.ts +1 -2
- package/lib/codec/pricing/genesis.js +5 -20
- package/lib/codec/pricing/pricing.d.ts +0 -14
- package/lib/codec/pricing/pricing.js +1 -103
- package/lib/codec/pricing/query.d.ts +1 -68
- package/lib/codec/pricing/query.js +2 -321
- package/lib/codec/pricing/tx.d.ts +0 -96
- package/lib/codec/pricing/tx.js +1 -399
- package/lib/codec/profile/event.d.ts +1 -1
- package/lib/codec/profile/event.js +1 -1
- package/lib/codec/profile/genesis.d.ts +1 -1
- package/lib/codec/profile/genesis.js +1 -1
- package/lib/codec/profile/query.d.ts +1 -1
- package/lib/codec/profile/query.js +1 -1
- package/lib/codec/subaccount/genesis.d.ts +1 -1
- package/lib/codec/subaccount/genesis.js +1 -1
- package/lib/codec/subaccount/query.d.ts +1 -1
- package/lib/codec/subaccount/query.js +1 -1
- package/lib/codec/tendermint/abci/types.d.ts +4 -4
- package/lib/codec/tendermint/abci/types.js +4 -4
- package/lib/codec/tendermint/types/block.d.ts +2 -2
- package/lib/codec/tendermint/types/block.js +2 -2
- package/lib/codec/tendermint/types/evidence.d.ts +2 -2
- package/lib/codec/tendermint/types/evidence.js +2 -2
- package/lib/codec/tendermint/types/types.d.ts +3 -3
- package/lib/codec/tendermint/types/types.js +3 -3
- package/lib/codec/tendermint/types/validator.d.ts +1 -1
- package/lib/codec/tendermint/types/validator.js +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/token.d.ts +0 -4
- package/lib/constant/token.js +1 -5
- package/lib/modules/admin.d.ts +7 -114
- package/lib/modules/admin.js +53 -275
- package/lib/modules/cdp.d.ts +13 -152
- package/lib/modules/cdp.js +20 -800
- package/lib/modules/gov.js +14 -14
- package/lib/modules/liquiditypool.d.ts +0 -3
- package/lib/modules/liquiditypool.js +1 -3
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/amino/types/admin.js +26 -91
- package/lib/provider/amino/types/bank.js +1 -1
- package/lib/provider/amino/types/broker.js +1 -1
- package/lib/provider/amino/types/cdp.js +24 -135
- package/lib/provider/amino/types/coin.js +2 -2
- package/lib/provider/amino/types/gov.js +4 -4
- package/lib/provider/amino/types/ibc.js +1 -1
- package/lib/provider/amino/types/leverage.js +1 -1
- package/lib/provider/amino/types/liquidityPool.js +7 -9
- package/lib/provider/amino/types/market.js +1 -1
- package/lib/provider/amino/types/oracle.js +1 -1
- package/lib/provider/amino/types/order.js +4 -4
- package/lib/provider/amino/types/position.js +1 -1
- package/lib/provider/amino/types/profile.js +1 -1
- package/lib/provider/amino/types/staking.js +4 -4
- package/lib/provider/amino/types/subaccount.js +3 -3
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/keplr/KeplrStore.js +1 -1
- package/lib/provider/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.js +1 -1
- package/lib/provider/o3/O3Wallet.js +2 -2
- package/lib/util/address.d.ts +0 -1
- package/lib/util/address.js +13 -21
- package/lib/util/api.js +4 -4
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/number.d.ts +0 -1
- package/lib/util/number.js +6 -7
- package/lib/util/tx.d.ts +10 -74
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +7 -6
- package/lib/websocket/channel.js +21 -115
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +0 -156
- package/lib/websocket/types.d.ts +3 -87
- package/lib/websocket/types.js +0 -31
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ exports.MsgClientImpl = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
11
|
-
const reward_1 = require("
|
|
11
|
+
const reward_1 = require("../liquiditypool/reward");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
13
13
|
const baseMsgCreatePool = {
|
|
14
14
|
creator: "",
|
|
@@ -18,7 +18,6 @@ const baseMsgCreatePool = {
|
|
|
18
18
|
tokenBWeight: "",
|
|
19
19
|
swapFee: "",
|
|
20
20
|
numQuotes: long_1.default.ZERO,
|
|
21
|
-
ampBps: long_1.default.UZERO,
|
|
22
21
|
};
|
|
23
22
|
exports.MsgCreatePool = {
|
|
24
23
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -43,9 +42,6 @@ exports.MsgCreatePool = {
|
|
|
43
42
|
if (!message.numQuotes.isZero()) {
|
|
44
43
|
writer.uint32(56).int64(message.numQuotes);
|
|
45
44
|
}
|
|
46
|
-
if (!message.ampBps.isZero()) {
|
|
47
|
-
writer.uint32(64).uint64(message.ampBps);
|
|
48
|
-
}
|
|
49
45
|
return writer;
|
|
50
46
|
},
|
|
51
47
|
decode(input, length) {
|
|
@@ -76,9 +72,6 @@ exports.MsgCreatePool = {
|
|
|
76
72
|
case 7:
|
|
77
73
|
message.numQuotes = reader.int64();
|
|
78
74
|
break;
|
|
79
|
-
case 8:
|
|
80
|
-
message.ampBps = reader.uint64();
|
|
81
|
-
break;
|
|
82
75
|
default:
|
|
83
76
|
reader.skipType(tag & 7);
|
|
84
77
|
break;
|
|
@@ -116,10 +109,6 @@ exports.MsgCreatePool = {
|
|
|
116
109
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
117
110
|
? long_1.default.fromString(object.numQuotes)
|
|
118
111
|
: long_1.default.ZERO;
|
|
119
|
-
message.ampBps =
|
|
120
|
-
object.ampBps !== undefined && object.ampBps !== null
|
|
121
|
-
? long_1.default.fromString(object.ampBps)
|
|
122
|
-
: long_1.default.UZERO;
|
|
123
112
|
return message;
|
|
124
113
|
},
|
|
125
114
|
toJSON(message) {
|
|
@@ -136,8 +125,6 @@ exports.MsgCreatePool = {
|
|
|
136
125
|
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
137
126
|
message.numQuotes !== undefined &&
|
|
138
127
|
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
139
|
-
message.ampBps !== undefined &&
|
|
140
|
-
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
141
128
|
return obj;
|
|
142
129
|
},
|
|
143
130
|
fromPartial(object) {
|
|
@@ -153,10 +140,6 @@ exports.MsgCreatePool = {
|
|
|
153
140
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
154
141
|
? long_1.default.fromValue(object.numQuotes)
|
|
155
142
|
: long_1.default.ZERO;
|
|
156
|
-
message.ampBps =
|
|
157
|
-
object.ampBps !== undefined && object.ampBps !== null
|
|
158
|
-
? long_1.default.fromValue(object.ampBps)
|
|
159
|
-
: long_1.default.UZERO;
|
|
160
143
|
return message;
|
|
161
144
|
},
|
|
162
145
|
};
|
|
@@ -218,7 +201,6 @@ const baseMsgCreatePoolWithLiquidity = {
|
|
|
218
201
|
amountB: "",
|
|
219
202
|
swapFee: "",
|
|
220
203
|
numQuotes: long_1.default.ZERO,
|
|
221
|
-
ampBps: long_1.default.UZERO,
|
|
222
204
|
};
|
|
223
205
|
exports.MsgCreatePoolWithLiquidity = {
|
|
224
206
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -249,9 +231,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
249
231
|
if (!message.numQuotes.isZero()) {
|
|
250
232
|
writer.uint32(72).int64(message.numQuotes);
|
|
251
233
|
}
|
|
252
|
-
if (!message.ampBps.isZero()) {
|
|
253
|
-
writer.uint32(80).uint64(message.ampBps);
|
|
254
|
-
}
|
|
255
234
|
return writer;
|
|
256
235
|
},
|
|
257
236
|
decode(input, length) {
|
|
@@ -288,9 +267,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
288
267
|
case 9:
|
|
289
268
|
message.numQuotes = reader.int64();
|
|
290
269
|
break;
|
|
291
|
-
case 10:
|
|
292
|
-
message.ampBps = reader.uint64();
|
|
293
|
-
break;
|
|
294
270
|
default:
|
|
295
271
|
reader.skipType(tag & 7);
|
|
296
272
|
break;
|
|
@@ -336,10 +312,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
336
312
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
337
313
|
? long_1.default.fromString(object.numQuotes)
|
|
338
314
|
: long_1.default.ZERO;
|
|
339
|
-
message.ampBps =
|
|
340
|
-
object.ampBps !== undefined && object.ampBps !== null
|
|
341
|
-
? long_1.default.fromString(object.ampBps)
|
|
342
|
-
: long_1.default.UZERO;
|
|
343
315
|
return message;
|
|
344
316
|
},
|
|
345
317
|
toJSON(message) {
|
|
@@ -358,8 +330,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
358
330
|
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
359
331
|
message.numQuotes !== undefined &&
|
|
360
332
|
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
361
|
-
message.ampBps !== undefined &&
|
|
362
|
-
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
363
333
|
return obj;
|
|
364
334
|
},
|
|
365
335
|
fromPartial(object) {
|
|
@@ -377,10 +347,6 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
377
347
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
378
348
|
? long_1.default.fromValue(object.numQuotes)
|
|
379
349
|
: long_1.default.ZERO;
|
|
380
|
-
message.ampBps =
|
|
381
|
-
object.ampBps !== undefined && object.ampBps !== null
|
|
382
|
-
? long_1.default.fromValue(object.ampBps)
|
|
383
|
-
: long_1.default.UZERO;
|
|
384
350
|
return message;
|
|
385
351
|
},
|
|
386
352
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { WrapperMapping } from "
|
|
3
|
+
import { WrapperMapping } from "../lockproxy/lockproxy";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.lockproxy";
|
|
5
5
|
/** GenesisState defines the lockproxy module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState_OperatorsEntry = exports.GenesisState_RegistriesEntry = exp
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const lockproxy_1 = require("
|
|
10
|
+
const lockproxy_1 = require("../lockproxy/lockproxy");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.lockproxy";
|
|
12
12
|
const baseGenesisState = { nonce: "" };
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
4
|
-
import { WrapperMapping } from "
|
|
4
|
+
import { WrapperMapping } from "../lockproxy/lockproxy";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.lockproxy";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
7
7
|
export interface QueryGetProxyRequest {
|
|
@@ -8,7 +8,7 @@ exports.QueryClientImpl = exports.QueryListWrapperMappingResponse = exports.Quer
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
11
|
-
const lockproxy_1 = require("
|
|
11
|
+
const lockproxy_1 = require("../lockproxy/lockproxy");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.lockproxy";
|
|
13
13
|
const baseQueryGetProxyRequest = { operatorAddress: "" };
|
|
14
14
|
exports.QueryGetProxyRequest = {
|
|
@@ -7,7 +7,7 @@ exports.MarketEvent = 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 market_1 = require("
|
|
10
|
+
const market_1 = require("../market/market");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.market";
|
|
12
12
|
const baseMarketEvent = { type: "" };
|
|
13
13
|
exports.MarketEvent = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, ControlledParams, Market } from "
|
|
3
|
+
import { Params, ControlledParams, Market } from "../market/market";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.market";
|
|
5
5
|
/** GenesisState defines the market module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const market_1 = require("
|
|
10
|
+
const market_1 = require("../market/market");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.market";
|
|
12
12
|
const baseGenesisState = { marketNameSequence: long_1.default.ZERO };
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Market, MarketParams } from "
|
|
3
|
+
import { Market, MarketParams } from "../market/market";
|
|
4
4
|
import { Duration } from "../google/protobuf/duration";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.market";
|
|
6
6
|
export interface CreateMarketProposal {
|
|
@@ -7,7 +7,7 @@ exports.UpdatePerpetualsFundingIntervalProposal = exports.UpdateMarketProposal =
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const market_1 = require("
|
|
10
|
+
const market_1 = require("../market/market");
|
|
11
11
|
const duration_1 = require("../google/protobuf/duration");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.market";
|
|
13
13
|
const baseCreateMarketProposal = { title: "", description: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Market, Params } from "
|
|
3
|
+
import { Market, Params } from "../market/market";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.market";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const market_1 = require("
|
|
10
|
+
const market_1 = require("../market/market");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.market";
|
|
13
13
|
const baseQueryGetMarketRequest = { name: "" };
|
package/lib/codec/market/tx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MarketParams } from "
|
|
3
|
+
import { MarketParams } from "../market/market";
|
|
4
4
|
import { Duration } from "../google/protobuf/duration";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.market";
|
|
6
6
|
/** this line is used by starport scaffolding # proto/tx/message */
|
package/lib/codec/market/tx.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.MsgUpdatePerpetualsFundingIntervalResponse = exp
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const market_1 = require("
|
|
10
|
+
const market_1 = require("../market/market");
|
|
11
11
|
const duration_1 = require("../google/protobuf/duration");
|
|
12
12
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
13
13
|
exports.protobufPackage = "Switcheo.carbon.market";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "
|
|
3
|
+
import { Params } from "../marketstats/params";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.marketstats";
|
|
5
5
|
/** GenesisState defines the marketstats module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const params_1 = require("
|
|
10
|
+
const params_1 = require("../marketstats/params");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.marketstats";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "
|
|
4
|
-
import { MarketStats } from "
|
|
3
|
+
import { Params } from "../marketstats/params";
|
|
4
|
+
import { MarketStats } from "../marketstats/marketstats";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.marketstats";
|
|
6
6
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
7
7
|
export interface QueryParamsRequest {
|
|
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryMarketStatsResponse = exports.QueryMarket
|
|
|
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("
|
|
11
|
-
const marketstats_1 = require("
|
|
10
|
+
const params_1 = require("../marketstats/params");
|
|
11
|
+
const marketstats_1 = require("../marketstats/marketstats");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.marketstats";
|
|
13
13
|
const baseQueryParamsRequest = {};
|
|
14
14
|
exports.QueryParamsRequest = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { MessageType } from "
|
|
3
|
+
import { MessageType } from "../misc/message_type";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.misc";
|
|
5
5
|
export interface Message {
|
|
6
6
|
hash: string;
|
|
@@ -7,7 +7,7 @@ exports.Message = 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 message_type_1 = require("
|
|
10
|
+
const message_type_1 = require("../misc/message_type");
|
|
11
11
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.misc";
|
|
13
13
|
const baseMessage = { hash: "", message: "" };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../query/pagination";
|
|
4
|
-
import { Transaction } from "
|
|
4
|
+
import { Transaction } from "../misc/transaction";
|
|
5
5
|
import { Order } from "../order/order";
|
|
6
|
-
import { MessageType } from "
|
|
7
|
-
import { Block } from "
|
|
6
|
+
import { MessageType } from "../misc/message_type";
|
|
7
|
+
import { Block } from "../misc/block";
|
|
8
8
|
export declare const protobufPackage = "Switcheo.carbon.misc";
|
|
9
9
|
export interface QuerySearchRequest {
|
|
10
10
|
keyword: string;
|
package/lib/codec/misc/query.js
CHANGED
|
@@ -8,10 +8,10 @@ exports.QueryClientImpl = exports.QueryModuleAddressResponse = exports.QueryModu
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const pagination_1 = require("../query/pagination");
|
|
11
|
-
const transaction_1 = require("
|
|
11
|
+
const transaction_1 = require("../misc/transaction");
|
|
12
12
|
const order_1 = require("../order/order");
|
|
13
|
-
const message_type_1 = require("
|
|
14
|
-
const block_1 = require("
|
|
13
|
+
const message_type_1 = require("../misc/message_type");
|
|
14
|
+
const block_1 = require("../misc/block");
|
|
15
15
|
exports.protobufPackage = "Switcheo.carbon.misc";
|
|
16
16
|
const baseQuerySearchRequest = { keyword: "", limit: long_1.default.UZERO };
|
|
17
17
|
exports.QuerySearchRequest = {
|
|
@@ -8,7 +8,7 @@ exports.APITransaction = exports.Transaction = exports.protobufPackage = void 0;
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
11
|
-
const message_1 = require("
|
|
11
|
+
const message_1 = require("../misc/message");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.misc";
|
|
13
13
|
const baseTransaction = {
|
|
14
14
|
hash: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Vote, Result } from "
|
|
3
|
+
import { Vote, Result } from "../oracle/oracle";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
5
5
|
export interface NewVoteEvent {
|
|
6
6
|
voterAccount: string;
|
|
@@ -7,7 +7,7 @@ exports.OracleSlashEvent = exports.ResultEvent = exports.VoteEvent = exports.Rec
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const oracle_1 = require("
|
|
10
|
+
const oracle_1 = require("../oracle/oracle");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
12
12
|
const baseNewVoteEvent = { voterAccount: "" };
|
|
13
13
|
exports.NewVoteEvent = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, Oracle, Result, Vote } from "
|
|
4
|
-
import { OracleVotesWindow, SlashCounter } from "./slashing";
|
|
3
|
+
import { Params, Oracle, Result, Vote } from "../oracle/oracle";
|
|
5
4
|
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
6
5
|
/** GenesisState defines the oracle module's genesis state. */
|
|
7
6
|
export interface GenesisState {
|
|
@@ -11,8 +10,6 @@ export interface GenesisState {
|
|
|
11
10
|
votes: Vote[];
|
|
12
11
|
/** this line is used by starport scaffolding # ibc/genesis/proto */
|
|
13
12
|
params?: Params;
|
|
14
|
-
allOracleVotesWindow: OracleVotesWindow[];
|
|
15
|
-
slashCounters: SlashCounter[];
|
|
16
13
|
}
|
|
17
14
|
export declare const GenesisState: {
|
|
18
15
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -7,8 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const oracle_1 = require("
|
|
11
|
-
const slashing_1 = require("./slashing");
|
|
10
|
+
const oracle_1 = require("../oracle/oracle");
|
|
12
11
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
13
12
|
const baseGenesisState = {};
|
|
14
13
|
exports.GenesisState = {
|
|
@@ -25,12 +24,6 @@ exports.GenesisState = {
|
|
|
25
24
|
if (message.params !== undefined) {
|
|
26
25
|
oracle_1.Params.encode(message.params, writer.uint32(42).fork()).ldelim();
|
|
27
26
|
}
|
|
28
|
-
for (const v of message.allOracleVotesWindow) {
|
|
29
|
-
slashing_1.OracleVotesWindow.encode(v, writer.uint32(50).fork()).ldelim();
|
|
30
|
-
}
|
|
31
|
-
for (const v of message.slashCounters) {
|
|
32
|
-
slashing_1.SlashCounter.encode(v, writer.uint32(58).fork()).ldelim();
|
|
33
|
-
}
|
|
34
27
|
return writer;
|
|
35
28
|
},
|
|
36
29
|
decode(input, length) {
|
|
@@ -40,8 +33,6 @@ exports.GenesisState = {
|
|
|
40
33
|
message.oracles = [];
|
|
41
34
|
message.results = [];
|
|
42
35
|
message.votes = [];
|
|
43
|
-
message.allOracleVotesWindow = [];
|
|
44
|
-
message.slashCounters = [];
|
|
45
36
|
while (reader.pos < end) {
|
|
46
37
|
const tag = reader.uint32();
|
|
47
38
|
switch (tag >>> 3) {
|
|
@@ -57,12 +48,6 @@ exports.GenesisState = {
|
|
|
57
48
|
case 5:
|
|
58
49
|
message.params = oracle_1.Params.decode(reader, reader.uint32());
|
|
59
50
|
break;
|
|
60
|
-
case 6:
|
|
61
|
-
message.allOracleVotesWindow.push(slashing_1.OracleVotesWindow.decode(reader, reader.uint32()));
|
|
62
|
-
break;
|
|
63
|
-
case 7:
|
|
64
|
-
message.slashCounters.push(slashing_1.SlashCounter.decode(reader, reader.uint32()));
|
|
65
|
-
break;
|
|
66
51
|
default:
|
|
67
52
|
reader.skipType(tag & 7);
|
|
68
53
|
break;
|
|
@@ -71,7 +56,7 @@ exports.GenesisState = {
|
|
|
71
56
|
return message;
|
|
72
57
|
},
|
|
73
58
|
fromJSON(object) {
|
|
74
|
-
var _a, _b, _c
|
|
59
|
+
var _a, _b, _c;
|
|
75
60
|
const message = Object.assign({}, baseGenesisState);
|
|
76
61
|
message.oracles = ((_a = object.oracles) !== null && _a !== void 0 ? _a : []).map((e) => oracle_1.Oracle.fromJSON(e));
|
|
77
62
|
message.results = ((_b = object.results) !== null && _b !== void 0 ? _b : []).map((e) => oracle_1.Result.fromJSON(e));
|
|
@@ -80,8 +65,6 @@ exports.GenesisState = {
|
|
|
80
65
|
object.params !== undefined && object.params !== null
|
|
81
66
|
? oracle_1.Params.fromJSON(object.params)
|
|
82
67
|
: undefined;
|
|
83
|
-
message.allOracleVotesWindow = ((_d = object.allOracleVotesWindow) !== null && _d !== void 0 ? _d : []).map((e) => slashing_1.OracleVotesWindow.fromJSON(e));
|
|
84
|
-
message.slashCounters = ((_e = object.slashCounters) !== null && _e !== void 0 ? _e : []).map((e) => slashing_1.SlashCounter.fromJSON(e));
|
|
85
68
|
return message;
|
|
86
69
|
},
|
|
87
70
|
toJSON(message) {
|
|
@@ -106,22 +89,10 @@ exports.GenesisState = {
|
|
|
106
89
|
}
|
|
107
90
|
message.params !== undefined &&
|
|
108
91
|
(obj.params = message.params ? oracle_1.Params.toJSON(message.params) : undefined);
|
|
109
|
-
if (message.allOracleVotesWindow) {
|
|
110
|
-
obj.allOracleVotesWindow = message.allOracleVotesWindow.map((e) => e ? slashing_1.OracleVotesWindow.toJSON(e) : undefined);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
obj.allOracleVotesWindow = [];
|
|
114
|
-
}
|
|
115
|
-
if (message.slashCounters) {
|
|
116
|
-
obj.slashCounters = message.slashCounters.map((e) => e ? slashing_1.SlashCounter.toJSON(e) : undefined);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
obj.slashCounters = [];
|
|
120
|
-
}
|
|
121
92
|
return obj;
|
|
122
93
|
},
|
|
123
94
|
fromPartial(object) {
|
|
124
|
-
var _a, _b, _c
|
|
95
|
+
var _a, _b, _c;
|
|
125
96
|
const message = Object.assign({}, baseGenesisState);
|
|
126
97
|
message.oracles = ((_a = object.oracles) !== null && _a !== void 0 ? _a : []).map((e) => oracle_1.Oracle.fromPartial(e));
|
|
127
98
|
message.results = ((_b = object.results) !== null && _b !== void 0 ? _b : []).map((e) => oracle_1.Result.fromPartial(e));
|
|
@@ -130,8 +101,6 @@ exports.GenesisState = {
|
|
|
130
101
|
object.params !== undefined && object.params !== null
|
|
131
102
|
? oracle_1.Params.fromPartial(object.params)
|
|
132
103
|
: undefined;
|
|
133
|
-
message.allOracleVotesWindow = ((_d = object.allOracleVotesWindow) !== null && _d !== void 0 ? _d : []).map((e) => slashing_1.OracleVotesWindow.fromPartial(e));
|
|
134
|
-
message.slashCounters = ((_e = object.slashCounters) !== null && _e !== void 0 ? _e : []).map((e) => slashing_1.SlashCounter.fromPartial(e));
|
|
135
104
|
return message;
|
|
136
105
|
},
|
|
137
106
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { CreateOracleParams } from "
|
|
3
|
+
import { CreateOracleParams } from "../oracle/tx";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
5
5
|
export interface CreateOracleProposal {
|
|
6
6
|
title: string;
|
|
@@ -7,7 +7,7 @@ exports.CreateOracleProposal = 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 tx_1 = require("
|
|
10
|
+
const tx_1 = require("../oracle/tx");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
12
12
|
const baseCreateOracleProposal = { title: "", description: "" };
|
|
13
13
|
exports.CreateOracleProposal = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Oracle, Params, Result, Vote } from "
|
|
3
|
+
import { Oracle, Params, Result, Vote } from "../oracle/oracle";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
|
-
import { SlashCounter, OracleVotesWindow } from "
|
|
5
|
+
import { SlashCounter, OracleVotesWindow } from "../oracle/slashing";
|
|
6
6
|
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
7
7
|
/** this line is used by starport scaffolding # 3 */
|
|
8
8
|
export interface QueryOracleRequest {
|
|
@@ -7,9 +7,9 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const oracle_1 = require("
|
|
10
|
+
const oracle_1 = require("../oracle/oracle");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
|
-
const slashing_1 = require("
|
|
12
|
+
const slashing_1 = require("../oracle/slashing");
|
|
13
13
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
14
14
|
const baseQueryOracleRequest = { id: "" };
|
|
15
15
|
exports.QueryOracleRequest = {
|
package/lib/codec/order/event.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.OrderEvent = 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("
|
|
10
|
+
const order_1 = require("../order/order");
|
|
11
11
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
13
13
|
const baseOrderEvent = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, OrderIDs, Order } from "
|
|
3
|
+
import { Params, OrderIDs, Order } from "../order/order";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.order";
|
|
5
5
|
/** GenesisState defines the order module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -7,7 +7,7 @@ exports.GenesisFlag = exports.GenesisAccountSequence = exports.GenesisAccountOrd
|
|
|
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("
|
|
10
|
+
const order_1 = require("../order/order");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Order, Params, DBOrder } from "
|
|
3
|
+
import { Order, Params, DBOrder } from "../order/order";
|
|
4
4
|
import { PageRequest, PageResponse } from "../query/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.order";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
package/lib/codec/order/query.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryOrderAllocatedMarginResponse = exports.Qu
|
|
|
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("
|
|
10
|
+
const order_1 = require("../order/order");
|
|
11
11
|
const pagination_1 = require("../query/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.order";
|
|
13
13
|
const baseQueryGetOrderRequest = { id: "" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Position } from "
|
|
3
|
+
import { Position } from "../position/position";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.position";
|
|
5
5
|
export interface PositionEvent {
|
|
6
6
|
position?: Position;
|
|
@@ -7,7 +7,7 @@ exports.PositionEvent = 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 position_1 = require("
|
|
10
|
+
const position_1 = require("../position/position");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.position";
|
|
12
12
|
const basePositionEvent = {
|
|
13
13
|
id: long_1.default.UZERO,
|