carbon-js-sdk 0.2.16 → 0.2.18-dev.0
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 +13 -1
- package/lib/CarbonSDK.js +31 -2
- 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/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.d.ts +5 -0
- package/lib/clients/TokenClient.js +38 -10
- 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/asset_params.d.ts +1 -1
- package/lib/codec/cdp/asset_params.js +11 -10
- package/lib/codec/cdp/event.d.ts +389 -22
- package/lib/codec/cdp/event.js +2494 -83
- package/lib/codec/cdp/genesis.d.ts +97 -4
- package/lib/codec/cdp/genesis.js +648 -23
- package/lib/codec/cdp/params.d.ts +8 -0
- package/lib/codec/cdp/params.js +52 -9
- package/lib/codec/cdp/query.d.ts +439 -89
- package/lib/codec/cdp/query.js +1995 -177
- package/lib/codec/cdp/reward_scheme.d.ts +1 -13
- package/lib/codec/cdp/reward_scheme.js +15 -92
- package/lib/codec/cdp/tx.d.ts +760 -96
- package/lib/codec/cdp/tx.js +3645 -235
- 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 +89 -18
- package/lib/codec/index.js +463 -180
- 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 +3 -0
- package/lib/codec/liquiditypool/liquiditypool.js +44 -1
- package/lib/codec/liquiditypool/proposal.d.ts +1 -1
- package/lib/codec/liquiditypool/proposal.js +1 -1
- package/lib/codec/liquiditypool/query.d.ts +39 -2
- package/lib/codec/liquiditypool/query.js +195 -3
- package/lib/codec/liquiditypool/tx.d.ts +3 -1
- package/lib/codec/liquiditypool/tx.js +35 -1
- package/lib/codec/lockproxy/genesis.d.ts +1 -1
- package/lib/codec/lockproxy/genesis.js +1 -1
- package/lib/codec/lockproxy/query.d.ts +1 -1
- package/lib/codec/lockproxy/query.js +1 -1
- package/lib/codec/market/event.d.ts +1 -1
- package/lib/codec/market/event.js +1 -1
- package/lib/codec/market/genesis.d.ts +1 -1
- package/lib/codec/market/genesis.js +1 -1
- package/lib/codec/market/proposal.d.ts +1 -1
- package/lib/codec/market/proposal.js +1 -1
- package/lib/codec/market/query.d.ts +1 -1
- package/lib/codec/market/query.js +1 -1
- package/lib/codec/market/tx.d.ts +1 -1
- package/lib/codec/market/tx.js +1 -1
- package/lib/codec/marketstats/genesis.d.ts +1 -1
- package/lib/codec/marketstats/genesis.js +1 -1
- package/lib/codec/marketstats/query.d.ts +2 -2
- package/lib/codec/marketstats/query.js +2 -2
- package/lib/codec/misc/message.d.ts +1 -1
- package/lib/codec/misc/message.js +1 -1
- package/lib/codec/misc/query.d.ts +3 -3
- package/lib/codec/misc/query.js +3 -3
- package/lib/codec/misc/transaction.d.ts +1 -1
- package/lib/codec/misc/transaction.js +1 -1
- package/lib/codec/oracle/event.d.ts +1 -1
- package/lib/codec/oracle/event.js +1 -1
- package/lib/codec/oracle/genesis.d.ts +4 -1
- package/lib/codec/oracle/genesis.js +34 -3
- 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 +56 -1
- package/lib/codec/pricing/event.js +298 -2
- package/lib/codec/pricing/genesis.d.ts +2 -1
- package/lib/codec/pricing/genesis.js +20 -5
- package/lib/codec/pricing/legacy.d.ts +22 -0
- package/lib/codec/pricing/legacy.js +93 -0
- package/lib/codec/pricing/pricing.d.ts +14 -0
- package/lib/codec/pricing/pricing.js +103 -1
- package/lib/codec/pricing/query.d.ts +68 -1
- package/lib/codec/pricing/query.js +321 -2
- package/lib/codec/pricing/tx.d.ts +96 -0
- package/lib/codec/pricing/tx.js +399 -1
- package/lib/codec/profile/event.d.ts +1 -1
- package/lib/codec/profile/event.js +1 -1
- package/lib/codec/profile/genesis.d.ts +1 -1
- package/lib/codec/profile/genesis.js +1 -1
- package/lib/codec/profile/query.d.ts +1 -1
- package/lib/codec/profile/query.js +1 -1
- package/lib/codec/subaccount/genesis.d.ts +1 -1
- package/lib/codec/subaccount/genesis.js +1 -1
- package/lib/codec/subaccount/query.d.ts +1 -1
- package/lib/codec/subaccount/query.js +1 -1
- package/lib/codec/tendermint/abci/types.d.ts +4 -4
- package/lib/codec/tendermint/abci/types.js +4 -4
- package/lib/codec/tendermint/types/block.d.ts +2 -2
- package/lib/codec/tendermint/types/block.js +2 -2
- package/lib/codec/tendermint/types/evidence.d.ts +2 -2
- package/lib/codec/tendermint/types/evidence.js +2 -2
- package/lib/codec/tendermint/types/types.d.ts +3 -3
- package/lib/codec/tendermint/types/types.js +3 -3
- package/lib/codec/tendermint/types/validator.d.ts +1 -1
- package/lib/codec/tendermint/types/validator.js +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/token.d.ts +4 -0
- package/lib/constant/token.js +5 -1
- package/lib/modules/admin.d.ts +114 -7
- package/lib/modules/admin.js +275 -53
- package/lib/modules/cdp.d.ts +152 -13
- package/lib/modules/cdp.js +800 -20
- package/lib/modules/gov.js +14 -14
- package/lib/modules/liquiditypool.d.ts +3 -0
- package/lib/modules/liquiditypool.js +3 -1
- 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 +91 -26
- 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 +135 -24
- 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 +9 -7
- 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/KeplrAccount.js +5 -0
- 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 +1 -0
- package/lib/util/address.js +21 -13
- 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 +1 -0
- package/lib/util/number.js +7 -6
- package/lib/util/tx.d.ts +75 -10
- package/lib/wallet/CarbonSigner.d.ts +5 -2
- package/lib/wallet/CarbonSigner.js +15 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -7
- package/lib/websocket/channel.js +115 -21
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +156 -0
- package/lib/websocket/types.d.ts +87 -3
- package/lib/websocket/types.js +31 -0
- 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("./reward");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
13
13
|
const baseMsgCreatePool = {
|
|
14
14
|
creator: "",
|
|
@@ -18,6 +18,7 @@ const baseMsgCreatePool = {
|
|
|
18
18
|
tokenBWeight: "",
|
|
19
19
|
swapFee: "",
|
|
20
20
|
numQuotes: long_1.default.ZERO,
|
|
21
|
+
ampBps: long_1.default.UZERO,
|
|
21
22
|
};
|
|
22
23
|
exports.MsgCreatePool = {
|
|
23
24
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -42,6 +43,9 @@ exports.MsgCreatePool = {
|
|
|
42
43
|
if (!message.numQuotes.isZero()) {
|
|
43
44
|
writer.uint32(56).int64(message.numQuotes);
|
|
44
45
|
}
|
|
46
|
+
if (!message.ampBps.isZero()) {
|
|
47
|
+
writer.uint32(64).uint64(message.ampBps);
|
|
48
|
+
}
|
|
45
49
|
return writer;
|
|
46
50
|
},
|
|
47
51
|
decode(input, length) {
|
|
@@ -72,6 +76,9 @@ exports.MsgCreatePool = {
|
|
|
72
76
|
case 7:
|
|
73
77
|
message.numQuotes = reader.int64();
|
|
74
78
|
break;
|
|
79
|
+
case 8:
|
|
80
|
+
message.ampBps = reader.uint64();
|
|
81
|
+
break;
|
|
75
82
|
default:
|
|
76
83
|
reader.skipType(tag & 7);
|
|
77
84
|
break;
|
|
@@ -109,6 +116,10 @@ exports.MsgCreatePool = {
|
|
|
109
116
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
110
117
|
? long_1.default.fromString(object.numQuotes)
|
|
111
118
|
: 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;
|
|
112
123
|
return message;
|
|
113
124
|
},
|
|
114
125
|
toJSON(message) {
|
|
@@ -125,6 +136,8 @@ exports.MsgCreatePool = {
|
|
|
125
136
|
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
126
137
|
message.numQuotes !== undefined &&
|
|
127
138
|
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
139
|
+
message.ampBps !== undefined &&
|
|
140
|
+
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
128
141
|
return obj;
|
|
129
142
|
},
|
|
130
143
|
fromPartial(object) {
|
|
@@ -140,6 +153,10 @@ exports.MsgCreatePool = {
|
|
|
140
153
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
141
154
|
? long_1.default.fromValue(object.numQuotes)
|
|
142
155
|
: 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;
|
|
143
160
|
return message;
|
|
144
161
|
},
|
|
145
162
|
};
|
|
@@ -201,6 +218,7 @@ const baseMsgCreatePoolWithLiquidity = {
|
|
|
201
218
|
amountB: "",
|
|
202
219
|
swapFee: "",
|
|
203
220
|
numQuotes: long_1.default.ZERO,
|
|
221
|
+
ampBps: long_1.default.UZERO,
|
|
204
222
|
};
|
|
205
223
|
exports.MsgCreatePoolWithLiquidity = {
|
|
206
224
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -231,6 +249,9 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
231
249
|
if (!message.numQuotes.isZero()) {
|
|
232
250
|
writer.uint32(72).int64(message.numQuotes);
|
|
233
251
|
}
|
|
252
|
+
if (!message.ampBps.isZero()) {
|
|
253
|
+
writer.uint32(80).uint64(message.ampBps);
|
|
254
|
+
}
|
|
234
255
|
return writer;
|
|
235
256
|
},
|
|
236
257
|
decode(input, length) {
|
|
@@ -267,6 +288,9 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
267
288
|
case 9:
|
|
268
289
|
message.numQuotes = reader.int64();
|
|
269
290
|
break;
|
|
291
|
+
case 10:
|
|
292
|
+
message.ampBps = reader.uint64();
|
|
293
|
+
break;
|
|
270
294
|
default:
|
|
271
295
|
reader.skipType(tag & 7);
|
|
272
296
|
break;
|
|
@@ -312,6 +336,10 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
312
336
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
313
337
|
? long_1.default.fromString(object.numQuotes)
|
|
314
338
|
: 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;
|
|
315
343
|
return message;
|
|
316
344
|
},
|
|
317
345
|
toJSON(message) {
|
|
@@ -330,6 +358,8 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
330
358
|
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
331
359
|
message.numQuotes !== undefined &&
|
|
332
360
|
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
361
|
+
message.ampBps !== undefined &&
|
|
362
|
+
(obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
|
|
333
363
|
return obj;
|
|
334
364
|
},
|
|
335
365
|
fromPartial(object) {
|
|
@@ -347,6 +377,10 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
347
377
|
object.numQuotes !== undefined && object.numQuotes !== null
|
|
348
378
|
? long_1.default.fromValue(object.numQuotes)
|
|
349
379
|
: 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;
|
|
350
384
|
return message;
|
|
351
385
|
},
|
|
352
386
|
};
|
|
@@ -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";
|
|
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");
|
|
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";
|
|
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");
|
|
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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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 "./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("./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 "./params";
|
|
4
|
+
import { MarketStats } from "./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("./params");
|
|
11
|
+
const marketstats_1 = require("./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 "./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("./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 "./transaction";
|
|
5
5
|
import { Order } from "../order/order";
|
|
6
|
-
import { MessageType } from "
|
|
7
|
-
import { Block } from "
|
|
6
|
+
import { MessageType } from "./message_type";
|
|
7
|
+
import { Block } from "./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("./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("./message_type");
|
|
14
|
+
const block_1 = require("./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("./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";
|
|
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");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
12
12
|
const baseNewVoteEvent = { voterAccount: "" };
|
|
13
13
|
exports.NewVoteEvent = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params, Oracle, Result, Vote } from "
|
|
3
|
+
import { Params, Oracle, Result, Vote } from "./oracle";
|
|
4
|
+
import { OracleVotesWindow, SlashCounter } from "./slashing";
|
|
4
5
|
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
5
6
|
/** GenesisState defines the oracle module's genesis state. */
|
|
6
7
|
export interface GenesisState {
|
|
@@ -10,6 +11,8 @@ export interface GenesisState {
|
|
|
10
11
|
votes: Vote[];
|
|
11
12
|
/** this line is used by starport scaffolding # ibc/genesis/proto */
|
|
12
13
|
params?: Params;
|
|
14
|
+
allOracleVotesWindow: OracleVotesWindow[];
|
|
15
|
+
slashCounters: SlashCounter[];
|
|
13
16
|
}
|
|
14
17
|
export declare const GenesisState: {
|
|
15
18
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -7,7 +7,8 @@ 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("
|
|
10
|
+
const oracle_1 = require("./oracle");
|
|
11
|
+
const slashing_1 = require("./slashing");
|
|
11
12
|
exports.protobufPackage = "Switcheo.carbon.oracle";
|
|
12
13
|
const baseGenesisState = {};
|
|
13
14
|
exports.GenesisState = {
|
|
@@ -24,6 +25,12 @@ exports.GenesisState = {
|
|
|
24
25
|
if (message.params !== undefined) {
|
|
25
26
|
oracle_1.Params.encode(message.params, writer.uint32(42).fork()).ldelim();
|
|
26
27
|
}
|
|
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
|
+
}
|
|
27
34
|
return writer;
|
|
28
35
|
},
|
|
29
36
|
decode(input, length) {
|
|
@@ -33,6 +40,8 @@ exports.GenesisState = {
|
|
|
33
40
|
message.oracles = [];
|
|
34
41
|
message.results = [];
|
|
35
42
|
message.votes = [];
|
|
43
|
+
message.allOracleVotesWindow = [];
|
|
44
|
+
message.slashCounters = [];
|
|
36
45
|
while (reader.pos < end) {
|
|
37
46
|
const tag = reader.uint32();
|
|
38
47
|
switch (tag >>> 3) {
|
|
@@ -48,6 +57,12 @@ exports.GenesisState = {
|
|
|
48
57
|
case 5:
|
|
49
58
|
message.params = oracle_1.Params.decode(reader, reader.uint32());
|
|
50
59
|
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;
|
|
51
66
|
default:
|
|
52
67
|
reader.skipType(tag & 7);
|
|
53
68
|
break;
|
|
@@ -56,7 +71,7 @@ exports.GenesisState = {
|
|
|
56
71
|
return message;
|
|
57
72
|
},
|
|
58
73
|
fromJSON(object) {
|
|
59
|
-
var _a, _b, _c;
|
|
74
|
+
var _a, _b, _c, _d, _e;
|
|
60
75
|
const message = Object.assign({}, baseGenesisState);
|
|
61
76
|
message.oracles = ((_a = object.oracles) !== null && _a !== void 0 ? _a : []).map((e) => oracle_1.Oracle.fromJSON(e));
|
|
62
77
|
message.results = ((_b = object.results) !== null && _b !== void 0 ? _b : []).map((e) => oracle_1.Result.fromJSON(e));
|
|
@@ -65,6 +80,8 @@ exports.GenesisState = {
|
|
|
65
80
|
object.params !== undefined && object.params !== null
|
|
66
81
|
? oracle_1.Params.fromJSON(object.params)
|
|
67
82
|
: 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));
|
|
68
85
|
return message;
|
|
69
86
|
},
|
|
70
87
|
toJSON(message) {
|
|
@@ -89,10 +106,22 @@ exports.GenesisState = {
|
|
|
89
106
|
}
|
|
90
107
|
message.params !== undefined &&
|
|
91
108
|
(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
|
+
}
|
|
92
121
|
return obj;
|
|
93
122
|
},
|
|
94
123
|
fromPartial(object) {
|
|
95
|
-
var _a, _b, _c;
|
|
124
|
+
var _a, _b, _c, _d, _e;
|
|
96
125
|
const message = Object.assign({}, baseGenesisState);
|
|
97
126
|
message.oracles = ((_a = object.oracles) !== null && _a !== void 0 ? _a : []).map((e) => oracle_1.Oracle.fromPartial(e));
|
|
98
127
|
message.results = ((_b = object.results) !== null && _b !== void 0 ? _b : []).map((e) => oracle_1.Result.fromPartial(e));
|
|
@@ -101,6 +130,8 @@ exports.GenesisState = {
|
|
|
101
130
|
object.params !== undefined && object.params !== null
|
|
102
131
|
? oracle_1.Params.fromPartial(object.params)
|
|
103
132
|
: 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));
|
|
104
135
|
return message;
|
|
105
136
|
},
|
|
106
137
|
};
|
|
@@ -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 "./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("./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";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
|
-
import { SlashCounter, OracleVotesWindow } from "
|
|
5
|
+
import { SlashCounter, OracleVotesWindow } from "./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");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
|
-
const slashing_1 = require("
|
|
12
|
+
const slashing_1 = require("./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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
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";
|
|
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");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.position";
|
|
12
12
|
const basePositionEvent = {
|
|
13
13
|
id: long_1.default.UZERO,
|