carbon-js-sdk 0.8.12-beta.3 → 0.9.0-beta0
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.js +1 -1
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +2 -8
- package/lib/codec/Switcheo/carbon/cdp/params.d.ts +5 -15
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.js +9 -9
- package/lib/codec/Switcheo/carbon/coin/group.d.ts +3 -6
- package/lib/codec/Switcheo/carbon/coin/tx.d.ts +2 -3
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +2 -8
- package/lib/codec/Switcheo/carbon/erc20/params.d.ts +3 -7
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +11 -33
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +4 -16
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +2 -8
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +2 -8
- package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +2 -4
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +0 -22
- package/lib/codec/Switcheo/carbon/liquiditypool/query.js +1 -88
- package/lib/codec/Switcheo/carbon/market/fee.d.ts +5 -11
- package/lib/codec/Switcheo/carbon/market/query.d.ts +2 -8
- package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/oracle/export.js +2 -4
- package/lib/codec/Switcheo/carbon/oracle/query.d.ts +2 -23
- package/lib/codec/Switcheo/carbon/oracle/query.js +3 -120
- package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +6 -19
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +1 -4
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +2 -8
- package/lib/codec/alliance/alliance/export.d.ts +1 -1
- package/lib/codec/alliance/alliance/export.js +5 -6
- package/lib/codec/alliance/alliance/gov.d.ts +0 -2
- package/lib/codec/alliance/alliance/gov.js +0 -20
- package/lib/codec/alliance/alliance/params.d.ts +0 -1
- package/lib/codec/alliance/alliance/params.js +2 -14
- package/lib/codec/alliance/alliance/query.d.ts +73 -61
- package/lib/codec/alliance/alliance/query.js +250 -262
- package/lib/codec/alliance/alliance/tx.d.ts +0 -2
- package/lib/codec/alliance/alliance/tx.js +0 -20
- package/lib/codec/alliance/alliance/unbonding.d.ts +0 -2
- package/lib/codec/alliance/alliance/unbonding.js +2 -18
- package/lib/codec/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/delegations.d.ts +8 -8
- package/lib/codec/alliance/events.d.ts +6 -6
- package/lib/codec/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/query.d.ts +24 -24
- package/lib/codec/alliance/tx.d.ts +10 -10
- package/lib/codec/book/book.d.ts +2 -14
- package/lib/codec/book/book.js +13 -80
- package/lib/codec/book/query.d.ts +1 -48
- package/lib/codec/book/query.js +1 -224
- package/lib/codec/broker/amm.d.ts +7 -35
- package/lib/codec/broker/amm.js +6 -181
- package/lib/codec/broker/event.d.ts +0 -13
- package/lib/codec/broker/event.js +1 -89
- package/lib/codec/broker/genesis.d.ts +2 -3
- package/lib/codec/broker/genesis.js +11 -26
- package/lib/codec/cdp/event.d.ts +7 -14
- package/lib/codec/cdp/event.js +81 -163
- package/lib/codec/cdp/params.d.ts +4 -2
- package/lib/codec/cdp/params.js +30 -20
- package/lib/codec/cdp/query.d.ts +1 -22
- package/lib/codec/cdp/query.js +17 -104
- package/lib/codec/cdp/tx.d.ts +18 -40
- package/lib/codec/cdp/tx.js +31 -115
- package/lib/codec/coin/token.d.ts +0 -1
- package/lib/codec/coin/token.js +0 -19
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +0 -18
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +2 -50
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +17 -17
- package/lib/codec/cosmos/authz/v1beta1/tx.js +36 -36
- package/lib/codec/cosmos/autocli/v1/options.d.ts +4 -2
- package/lib/codec/cosmos/autocli/v1/options.js +19 -4
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +1 -5
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +1 -86
- package/lib/codec/cosmos/bank/v1beta1/query.js +3 -257
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +0 -23
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +1 -137
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +0 -36
- package/lib/codec/cosmos/base/node/v1beta1/query.js +3 -257
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +2 -8
- package/lib/codec/cosmos/consensus/v1/query.d.ts +1 -1
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +3 -5
- package/lib/codec/cosmos/consensus/v1/tx.js +0 -16
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/export.js +1 -3
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +0 -41
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -117
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +0 -37
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +1 -84
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +0 -9
- package/lib/codec/cosmos/gov/v1/genesis.js +2 -18
- package/lib/codec/cosmos/gov/v1/gov.d.ts +6 -72
- package/lib/codec/cosmos/gov/v1/gov.js +6 -127
- package/lib/codec/cosmos/gov/v1/query.d.ts +1 -25
- package/lib/codec/cosmos/gov/v1/query.js +1 -85
- package/lib/codec/cosmos/gov/v1/tx.d.ts +0 -52
- package/lib/codec/cosmos/gov/v1/tx.js +2 -188
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/group/v1/types.d.ts +3 -9
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +2 -2
- package/lib/codec/cosmos/orm/v1/orm.d.ts +2 -5
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +22 -2
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +32 -2
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +8 -9
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +0 -4
- package/lib/codec/cosmos/staking/module/v1/module.js +2 -35
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +0 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.js +0 -7
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +0 -13
- package/lib/codec/cosmos/staking/v1beta1/tx.js +0 -16
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +3 -4
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +3 -4
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +9 -32
- package/lib/codec/cosmos/tx/v1beta1/service.js +7 -26
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +5 -6
- package/lib/codec/google/protobuf/any.d.ts +4 -5
- package/lib/codec/google/protobuf/descriptor.d.ts +11 -266
- package/lib/codec/google/protobuf/descriptor.js +41 -1060
- package/lib/codec/google/protobuf/timestamp.d.ts +1 -1
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +1 -7
- package/lib/codec/ibc/applications/fee/v1/query.js +0 -54
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -3
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +0 -32
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -101
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +1 -4
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +1 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.js +6 -6
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +0 -35
- package/lib/codec/ibc/applications/transfer/v1/tx.js +1 -101
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -18
- package/lib/codec/ibc/core/channel/v1/channel.js +1 -65
- package/lib/codec/ibc/core/channel/v1/export.d.ts +2 -2
- package/lib/codec/ibc/core/channel/v1/export.js +2 -5
- package/lib/codec/ibc/core/channel/v1/query.d.ts +0 -39
- package/lib/codec/ibc/core/channel/v1/query.js +1 -147
- package/lib/codec/ibc/core/client/v1/client.d.ts +42 -50
- package/lib/codec/ibc/core/client/v1/client.js +117 -117
- package/lib/codec/ibc/core/client/v1/export.d.ts +2 -2
- package/lib/codec/ibc/core/client/v1/export.js +3 -9
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +1 -6
- package/lib/codec/ibc/core/client/v1/tx.d.ts +16 -108
- package/lib/codec/ibc/core/client/v1/tx.js +1 -335
- 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/tx.d.ts +1 -35
- package/lib/codec/ibc/core/connection/v1/tx.js +1 -100
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
- package/lib/codec/index.d.ts +4 -30
- package/lib/codec/index.js +838 -1649
- package/lib/codec/inflation/inflation.d.ts +2 -6
- package/lib/codec/inflation/inflation.js +25 -80
- package/lib/codec/liquiditypool/event.d.ts +1 -40
- package/lib/codec/liquiditypool/event.js +1 -294
- package/lib/codec/liquiditypool/genesis.d.ts +5 -4
- package/lib/codec/liquiditypool/genesis.js +49 -34
- package/lib/codec/liquiditypool/query.d.ts +51 -2
- package/lib/codec/liquiditypool/query.js +265 -18
- package/lib/codec/liquiditypool/reward.d.ts +21 -21
- package/lib/codec/liquiditypool/reward.js +111 -97
- package/lib/codec/oracle/query.d.ts +34 -37
- package/lib/codec/oracle/query.js +31 -37
- package/lib/codec/position/position.d.ts +0 -2
- package/lib/codec/position/position.js +0 -34
- package/lib/codec/proofs.d.ts +15 -15
- package/lib/codec/subaccount/genesis.d.ts +1 -5
- package/lib/codec/subaccount/genesis.js +2 -48
- package/lib/codec/subaccount/query.d.ts +21 -135
- package/lib/codec/subaccount/query.js +47 -617
- package/lib/codec/subaccount/subaccount.d.ts +3 -29
- package/lib/codec/subaccount/subaccount.js +31 -234
- package/lib/codec/subaccount/tx.d.ts +1 -7
- package/lib/codec/subaccount/tx.js +16 -101
- package/lib/codec/tendermint/abci/types.d.ts +107 -171
- package/lib/codec/tendermint/abci/types.js +791 -1093
- package/lib/codec/tendermint/types/params.d.ts +0 -23
- package/lib/codec/tendermint/types/params.js +1 -67
- package/lib/codec/tendermint/types/types.d.ts +12 -52
- package/lib/codec/tendermint/types/types.js +49 -250
- package/lib/codec/tendermint/types/validator.d.ts +0 -14
- package/lib/codec/tendermint/types/validator.js +1 -50
- package/lib/constant/network.d.ts +1 -0
- package/lib/constant/network.js +4 -0
- package/lib/constant/node.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -4
- package/lib/insights/node.d.ts +1 -0
- package/lib/modules/cdp.js +3 -3
- package/lib/modules/feemarket.d.ts +1 -1
- package/lib/modules/feemarket.js +2 -2
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/EthLedgerAccount/index.js +5 -1
- package/lib/provider/account/index.d.ts +0 -1
- package/lib/provider/account/index.js +0 -4
- package/lib/provider/index.d.ts +2 -2
- package/lib/provider/index.js +1 -4
- package/lib/provider/keplr/KeplrStore.d.ts +0 -9
- package/lib/provider/keplr/KeplrStore.js +0 -92
- package/lib/provider/keplr/index.d.ts +0 -1
- package/lib/provider/keplr/index.js +1 -3
- package/lib/util/ibc.js +6 -5
- package/lib/util/tx.d.ts +2 -28
- package/lib/wallet/CarbonWallet.js +2 -2
- package/package.json +2 -5
- package/lib/codec/Switcheo/carbon/bridge/bridge.d.ts +0 -108
- package/lib/codec/Switcheo/carbon/bridge/bridge.js +0 -632
- package/lib/codec/Switcheo/carbon/bridge/event.d.ts +0 -187
- package/lib/codec/Switcheo/carbon/bridge/event.js +0 -1172
- package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +0 -20
- package/lib/codec/Switcheo/carbon/bridge/genesis.js +0 -63
- package/lib/codec/Switcheo/carbon/bridge/params.d.ts +0 -28
- package/lib/codec/Switcheo/carbon/bridge/params.js +0 -81
- package/lib/codec/Switcheo/carbon/bridge/query.d.ts +0 -177
- package/lib/codec/Switcheo/carbon/bridge/query.js +0 -639
- package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +0 -528
- package/lib/codec/Switcheo/carbon/bridge/tx.js +0 -2558
- package/lib/codec/broker/incoming_pool_swap.d.ts +0 -23
- package/lib/codec/broker/incoming_pool_swap.js +0 -136
- package/lib/codec/cosmos/circuit/module/v1/module.d.ts +0 -20
- package/lib/codec/cosmos/circuit/module/v1/module.js +0 -59
- package/lib/codec/cosmos/circuit/v1/query.d.ts +0 -97
- package/lib/codec/cosmos/circuit/v1/query.js +0 -333
- package/lib/codec/cosmos/circuit/v1/tx.d.ts +0 -128
- package/lib/codec/cosmos/circuit/v1/tx.js +0 -371
- package/lib/codec/cosmos/circuit/v1/types.d.ts +0 -81
- package/lib/codec/cosmos/circuit/v1/types.js +0 -266
- package/lib/codec/cosmos/msg/textual/v1/textual.d.ts +0 -1
- package/lib/codec/cosmos/msg/textual/v1/textual.js +0 -14
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +0 -31
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.js +0 -154
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +0 -119
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.js +0 -540
- package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +0 -72
- package/lib/codec/cosmos/store/streaming/abci/grpc.js +0 -247
- package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +0 -54
- package/lib/codec/cosmos/store/v1beta1/commit_info.js +0 -273
- package/lib/codec/cosmos/store/v1beta1/listening.d.ts +0 -48
- package/lib/codec/cosmos/store/v1beta1/listening.js +0 -220
- package/lib/codec/crisis/genesis.d.ts +0 -18
- package/lib/codec/crisis/genesis.js +0 -46
- package/lib/codec/crisis/query.d.ts +0 -43
- package/lib/codec/crisis/query.js +0 -103
- package/lib/codec/crisis/tx.d.ts +0 -12
- package/lib/codec/crisis/tx.js +0 -20
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +0 -50
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.js +0 -120
- package/lib/codec/market/legacy.d.ts +0 -62
- package/lib/codec/market/legacy.js +0 -630
- package/lib/codec/query/pagination.d.ts +0 -29
- package/lib/codec/query/pagination.js +0 -126
- package/lib/constant/amino.d.ts +0 -0
- package/lib/constant/amino.js +0 -1
- package/lib/constant/signless.d.ts +0 -2
- package/lib/constant/signless.js +0 -5
- package/lib/modules/signless.d.ts +0 -24
- package/lib/modules/signless.js +0 -108
- package/lib/modules/vault.d.ts +0 -56
- package/lib/modules/vault.js +0 -128
- package/lib/provider/amino/types/signless.d.ts +0 -12
- package/lib/provider/amino/types/signless.js +0 -193
- package/lib/provider/station/StationAccount.d.ts +0 -28
- package/lib/provider/station/StationAccount.js +0 -168
- package/lib/provider/station/index.d.ts +0 -2
- package/lib/provider/station/index.js +0 -10
- package/lib/util/signless.d.ts +0 -11
- package/lib/util/signless.js +0 -92
package/lib/CarbonSDK.js
CHANGED
|
@@ -81,7 +81,7 @@ class CarbonSDK {
|
|
|
81
81
|
let grpcClient;
|
|
82
82
|
if (opts.useTmAbciQuery !== true && this.networkConfig.grpcUrl) {
|
|
83
83
|
const transport = typeof window === "undefined" ? grpc_web_node_http_transport_1.NodeHttpTransport() : undefined;
|
|
84
|
-
grpcClient = (_j = opts.grpcQueryClient) !== null && _j !== void 0 ? _j : new GrpcQueryClient_1.default(this.networkConfig.
|
|
84
|
+
grpcClient = (_j = opts.grpcQueryClient) !== null && _j !== void 0 ? _j : new GrpcQueryClient_1.default(this.networkConfig.grpcWebUrl, {
|
|
85
85
|
transport,
|
|
86
86
|
});
|
|
87
87
|
}
|
|
@@ -22,10 +22,7 @@ export interface PerpsAmm {
|
|
|
22
22
|
markets: PerpsMarketAmm[];
|
|
23
23
|
lastQuotedAt?: Date;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* PerpsMarketAmm exists when it is active or when there's orders or open
|
|
27
|
-
* position
|
|
28
|
-
*/
|
|
25
|
+
/** PerpsMarketAmm exists when it is active or when there's orders or open position */
|
|
29
26
|
export interface PerpsMarketAmm {
|
|
30
27
|
marketId: string;
|
|
31
28
|
/**
|
|
@@ -7,13 +7,13 @@ export interface Params {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Params: {
|
|
9
9
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
11
11
|
fromJSON(object: any): Params;
|
|
12
12
|
toJSON(message: Params): unknown;
|
|
13
13
|
fromPartial(object: DeepPartial<Params>): Params;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
export
|
|
15
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
17
17
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
18
18
|
} : Partial<T>;
|
|
19
19
|
export {};
|
|
@@ -4,19 +4,13 @@ import { Params } from "./params";
|
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.ccm";
|
|
5
5
|
/** GenesisState defines the ccm module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
7
|
-
/**
|
|
8
|
-
* An auto-incrementing count of x-chain txs generated by this chain. Used as
|
|
9
|
-
* a nonce / ID unique to this chain.
|
|
10
|
-
*/
|
|
7
|
+
/** An auto-incrementing count of x-chain txs generated by this chain. Used as a nonce / ID unique to this chain. */
|
|
11
8
|
createdTxCount: string;
|
|
12
9
|
/** Details of cross chain tx generated by this chain. */
|
|
13
10
|
createdTxDetails: {
|
|
14
11
|
[key: string]: Uint8Array;
|
|
15
12
|
};
|
|
16
|
-
/**
|
|
17
|
-
* The cross chain tx IDs (issued by a sending chain) that has been processed
|
|
18
|
-
* by this chain.
|
|
19
|
-
*/
|
|
13
|
+
/** The cross chain tx IDs (issued by a sending chain) that has been processed by this chain. */
|
|
20
14
|
receivedTxIds: {
|
|
21
15
|
[key: string]: Uint8Array;
|
|
22
16
|
};
|
|
@@ -43,25 +43,15 @@ export interface Params {
|
|
|
43
43
|
*/
|
|
44
44
|
smallLiquidationSize: string;
|
|
45
45
|
/**
|
|
46
|
-
* stale_price_grace_period determines the grace period before an oracle price
|
|
47
|
-
*
|
|
48
|
-
* paused
|
|
46
|
+
* stale_price_grace_period determines the grace period before an oracle price is regarded as stale.
|
|
47
|
+
* This would cause certain actions like borrowing to be paused
|
|
49
48
|
*/
|
|
50
49
|
stalePriceGracePeriod?: Duration;
|
|
51
|
-
/**
|
|
52
|
-
* cdp_paused if true, causes all supply, locking, lending, borrowing and
|
|
53
|
-
* liquidations to be paused
|
|
54
|
-
*/
|
|
50
|
+
/** cdp_paused if true, causes all supply, locking, lending, borrowing and liquidations to be paused */
|
|
55
51
|
cdpPaused: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* time interval in between each adjustment of stablecoin interest rate to
|
|
58
|
-
* help stablecoin price stability
|
|
59
|
-
*/
|
|
52
|
+
/** time interval in between each adjustment of stablecoin interest rate to help stablecoin price stability */
|
|
60
53
|
stablecoinInterestRateEpoch?: Duration;
|
|
61
|
-
/**
|
|
62
|
-
* used in formula to calculate stablecoin interest rate to help stablecoin
|
|
63
|
-
* price stability
|
|
64
|
-
*/
|
|
54
|
+
/** used in formula to calculate stablecoin interest rate to help stablecoin price stability */
|
|
65
55
|
stablecoinInterestRateAdjusterCoefficient: string;
|
|
66
56
|
}
|
|
67
57
|
/** ParamsToUpdate allows optional fields for Params. */
|
|
@@ -229,7 +229,7 @@ export interface MsgCreateRewardScheme {
|
|
|
229
229
|
export interface MsgCreateRewardSchemeResponse {
|
|
230
230
|
}
|
|
231
231
|
export interface MsgUpdateRewardScheme {
|
|
232
|
-
|
|
232
|
+
updator: string;
|
|
233
233
|
updateRewardSchemeParams?: UpdateRewardSchemeParams;
|
|
234
234
|
}
|
|
235
235
|
export interface MsgUpdateRewardSchemeResponse {
|
|
@@ -3353,11 +3353,11 @@ exports.MsgCreateRewardSchemeResponse = {
|
|
|
3353
3353
|
return message;
|
|
3354
3354
|
},
|
|
3355
3355
|
};
|
|
3356
|
-
const baseMsgUpdateRewardScheme = {
|
|
3356
|
+
const baseMsgUpdateRewardScheme = { updator: "" };
|
|
3357
3357
|
exports.MsgUpdateRewardScheme = {
|
|
3358
3358
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3359
|
-
if (message.
|
|
3360
|
-
writer.uint32(10).string(message.
|
|
3359
|
+
if (message.updator !== "") {
|
|
3360
|
+
writer.uint32(10).string(message.updator);
|
|
3361
3361
|
}
|
|
3362
3362
|
if (message.updateRewardSchemeParams !== undefined) {
|
|
3363
3363
|
reward_scheme_1.UpdateRewardSchemeParams.encode(message.updateRewardSchemeParams, writer.uint32(18).fork()).ldelim();
|
|
@@ -3372,7 +3372,7 @@ exports.MsgUpdateRewardScheme = {
|
|
|
3372
3372
|
const tag = reader.uint32();
|
|
3373
3373
|
switch (tag >>> 3) {
|
|
3374
3374
|
case 1:
|
|
3375
|
-
message.
|
|
3375
|
+
message.updator = reader.string();
|
|
3376
3376
|
break;
|
|
3377
3377
|
case 2:
|
|
3378
3378
|
message.updateRewardSchemeParams = reward_scheme_1.UpdateRewardSchemeParams.decode(reader, reader.uint32());
|
|
@@ -3386,9 +3386,9 @@ exports.MsgUpdateRewardScheme = {
|
|
|
3386
3386
|
},
|
|
3387
3387
|
fromJSON(object) {
|
|
3388
3388
|
const message = Object.assign({}, baseMsgUpdateRewardScheme);
|
|
3389
|
-
message.
|
|
3390
|
-
object.
|
|
3391
|
-
? String(object.
|
|
3389
|
+
message.updator =
|
|
3390
|
+
object.updator !== undefined && object.updator !== null
|
|
3391
|
+
? String(object.updator)
|
|
3392
3392
|
: "";
|
|
3393
3393
|
message.updateRewardSchemeParams =
|
|
3394
3394
|
object.updateRewardSchemeParams !== undefined &&
|
|
@@ -3399,7 +3399,7 @@ exports.MsgUpdateRewardScheme = {
|
|
|
3399
3399
|
},
|
|
3400
3400
|
toJSON(message) {
|
|
3401
3401
|
const obj = {};
|
|
3402
|
-
message.
|
|
3402
|
+
message.updator !== undefined && (obj.updator = message.updator);
|
|
3403
3403
|
message.updateRewardSchemeParams !== undefined &&
|
|
3404
3404
|
(obj.updateRewardSchemeParams = message.updateRewardSchemeParams
|
|
3405
3405
|
? reward_scheme_1.UpdateRewardSchemeParams.toJSON(message.updateRewardSchemeParams)
|
|
@@ -3409,7 +3409,7 @@ exports.MsgUpdateRewardScheme = {
|
|
|
3409
3409
|
fromPartial(object) {
|
|
3410
3410
|
var _a;
|
|
3411
3411
|
const message = Object.assign({}, baseMsgUpdateRewardScheme);
|
|
3412
|
-
message.
|
|
3412
|
+
message.updator = (_a = object.updator) !== null && _a !== void 0 ? _a : "";
|
|
3413
3413
|
message.updateRewardSchemeParams =
|
|
3414
3414
|
object.updateRewardSchemeParams !== undefined &&
|
|
3415
3415
|
object.updateRewardSchemeParams !== null
|
|
@@ -7,15 +7,12 @@ export interface TokenGroup {
|
|
|
7
7
|
id: Long;
|
|
8
8
|
/** admin/govt determined name */
|
|
9
9
|
name: string;
|
|
10
|
-
/** denom for the cheque token that represents a token that can be swap */
|
|
10
|
+
/** denom for the cheque token that represents a token that can be swap 1-to-1 with any underlying tokens in the vault */
|
|
11
11
|
chequeDenom: string;
|
|
12
|
-
/**
|
|
12
|
+
/** address of the vault that stores the tokens */
|
|
13
13
|
vaultAddress: string;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* TokenGroupDetails used for for querying. same as TokenGroup but appended with
|
|
17
|
-
* registered_denoms
|
|
18
|
-
*/
|
|
15
|
+
/** TokenGroupDetails used for for querying. same as TokenGroup but appended with registered_denoms */
|
|
19
16
|
export interface TokenGroupDetails {
|
|
20
17
|
tokenGroup?: TokenGroup;
|
|
21
18
|
registeredTokens: GroupedTokenConfig[];
|
|
@@ -110,7 +110,6 @@ export interface MsgUpdateToken {
|
|
|
110
110
|
}
|
|
111
111
|
export interface UpdateTokenParams {
|
|
112
112
|
isActive?: boolean;
|
|
113
|
-
/** struct */
|
|
114
113
|
name?: string;
|
|
115
114
|
symbol?: string;
|
|
116
115
|
decimals?: Long;
|
|
@@ -141,9 +140,9 @@ export interface MsgCreateGroup {
|
|
|
141
140
|
creator: string;
|
|
142
141
|
/** name of group */
|
|
143
142
|
name: string;
|
|
144
|
-
/** symbol of the cheque token that represents */
|
|
143
|
+
/** symbol of the cheque token that represents any tokens in the group 1-to-1 */
|
|
145
144
|
chequeTokenSymbol: string;
|
|
146
|
-
/**
|
|
145
|
+
/** oracle_id that helps to get the reference price for this group */
|
|
147
146
|
oracleId: string;
|
|
148
147
|
}
|
|
149
148
|
export interface MsgCreateGroupResponse {
|
|
@@ -24,10 +24,7 @@ export interface TokenPair {
|
|
|
24
24
|
denom: string;
|
|
25
25
|
/** enabled defines the token mapping enable status */
|
|
26
26
|
enabled: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* contract_owner is the an ENUM specifying the type of ERC20 owner (0
|
|
29
|
-
* invalid, 1 ModuleAccount, 2 external address)
|
|
30
|
-
*/
|
|
27
|
+
/** contract_owner is the an ENUM specifying the type of ERC20 owner (0 invalid, 1 ModuleAccount, 2 external address) */
|
|
31
28
|
contractOwner: Owner;
|
|
32
29
|
}
|
|
33
30
|
export declare const TokenPair: {
|
|
@@ -8,10 +8,7 @@ export interface EventRegisterPair {
|
|
|
8
8
|
/** erc20_address is the ERC20 contract address. */
|
|
9
9
|
erc20Address: string;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* EventToggleTokenConversion is an event emitted when a coin's token conversion
|
|
13
|
-
* is toggled.
|
|
14
|
-
*/
|
|
11
|
+
/** EventToggleTokenConversion is an event emitted when a coin's token conversion is toggled. */
|
|
15
12
|
export interface EventToggleTokenConversion {
|
|
16
13
|
/** denom is the coin's denomination. */
|
|
17
14
|
denom: string;
|
|
@@ -41,10 +38,7 @@ export interface EventConvertERC20 {
|
|
|
41
38
|
amount: string;
|
|
42
39
|
/** denom is the coin's denomination. */
|
|
43
40
|
denom: string;
|
|
44
|
-
/**
|
|
45
|
-
* contract_address of an ERC20 token contract, that is registered in a token
|
|
46
|
-
* pair
|
|
47
|
-
*/
|
|
41
|
+
/** contract_address of an ERC20 token contract, that is registered in a token pair */
|
|
48
42
|
contractAddress: string;
|
|
49
43
|
}
|
|
50
44
|
export declare const EventRegisterPair: {
|
|
@@ -3,15 +3,11 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.erc20";
|
|
4
4
|
/** Params defines the erc20 module params */
|
|
5
5
|
export interface Params {
|
|
6
|
-
/**
|
|
7
|
-
* enable_erc20 is the parameter to enable the conversion of Cosmos coins <-->
|
|
8
|
-
* ERC20 tokens.
|
|
9
|
-
*/
|
|
6
|
+
/** enable_erc20 is the parameter to enable the conversion of Cosmos coins <--> ERC20 tokens. */
|
|
10
7
|
enableErc20: boolean;
|
|
11
8
|
/**
|
|
12
|
-
* enable_evm_hook is the parameter to enable the EVM hook that converts an
|
|
13
|
-
*
|
|
14
|
-
* MsgEthereumTx to the ModuleAddress Ethereum address.
|
|
9
|
+
* enable_evm_hook is the parameter to enable the EVM hook that converts an ERC20 token to a Cosmos
|
|
10
|
+
* Coin by transferring the Tokens through a MsgEthereumTx to the ModuleAddress Ethereum address.
|
|
15
11
|
*/
|
|
16
12
|
enableEvmHook: boolean;
|
|
17
13
|
}
|
|
@@ -35,10 +35,7 @@ export interface QueryTokenPairRequest {
|
|
|
35
35
|
* method.
|
|
36
36
|
*/
|
|
37
37
|
export interface QueryTokenPairResponse {
|
|
38
|
-
/**
|
|
39
|
-
* token_pairs returns the info about a registered token pair for the erc20
|
|
40
|
-
* module
|
|
41
|
-
*/
|
|
38
|
+
/** token_pairs returns the info about a registered token pair for the erc20 module */
|
|
42
39
|
tokenPair?: TokenPair;
|
|
43
40
|
}
|
|
44
41
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
@@ -6,16 +6,13 @@ export declare const protobufPackage = "Switcheo.carbon.erc20";
|
|
|
6
6
|
/** MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token */
|
|
7
7
|
export interface MsgConvertCoin {
|
|
8
8
|
/**
|
|
9
|
-
* coin is a Cosmos coin whose denomination is registered in a token pair. The
|
|
10
|
-
*
|
|
9
|
+
* coin is a Cosmos coin whose denomination is registered in a token pair. The coin
|
|
10
|
+
* amount defines the amount of coins to convert.
|
|
11
11
|
*/
|
|
12
12
|
coin?: Coin;
|
|
13
13
|
/** receiver is the hex address to receive ERC20 token */
|
|
14
14
|
receiver: string;
|
|
15
|
-
/**
|
|
16
|
-
* sender is the cosmos bech32 address from the owner of the given Cosmos
|
|
17
|
-
* coins
|
|
18
|
-
*/
|
|
15
|
+
/** sender is the cosmos bech32 address from the owner of the given Cosmos coins */
|
|
19
16
|
sender: string;
|
|
20
17
|
}
|
|
21
18
|
/** MsgConvertCoinResponse returns no fields */
|
|
@@ -26,19 +23,13 @@ export interface MsgConvertCoinResponse {
|
|
|
26
23
|
* coin.
|
|
27
24
|
*/
|
|
28
25
|
export interface MsgConvertERC20 {
|
|
29
|
-
/**
|
|
30
|
-
* contract_address of an ERC20 token contract, that is registered in a token
|
|
31
|
-
* pair
|
|
32
|
-
*/
|
|
26
|
+
/** contract_address of an ERC20 token contract, that is registered in a token pair */
|
|
33
27
|
contractAddress: string;
|
|
34
28
|
/** amount of ERC20 tokens to convert */
|
|
35
29
|
amount: string;
|
|
36
30
|
/** receiver is the bech32 address to receive native Cosmos coins */
|
|
37
31
|
receiver: string;
|
|
38
|
-
/**
|
|
39
|
-
* sender is the merged address (in bech32) of the erc20 account that contains
|
|
40
|
-
* the tokens to convert
|
|
41
|
-
*/
|
|
32
|
+
/** sender is the merged address (in bech32) of the erc20 account that contains the tokens to convert */
|
|
42
33
|
sender: string;
|
|
43
34
|
}
|
|
44
35
|
/** MsgConvertERC20Response returns no fields */
|
|
@@ -61,10 +52,7 @@ export interface MsgUpdateParams {
|
|
|
61
52
|
*/
|
|
62
53
|
export interface MsgUpdateParamsResponse {
|
|
63
54
|
}
|
|
64
|
-
/**
|
|
65
|
-
* MsgRegisterToken defines a Msg to register an existing token on the token
|
|
66
|
-
* mapping and deploys a new ERC20 contract for it
|
|
67
|
-
*/
|
|
55
|
+
/** MsgRegisterToken defines a Msg to register an existing token on the token mapping and deploys a new ERC20 contract for it */
|
|
68
56
|
export interface MsgRegisterToken {
|
|
69
57
|
creator: string;
|
|
70
58
|
denom: string;
|
|
@@ -73,10 +61,7 @@ export interface MsgRegisterTokenResponse {
|
|
|
73
61
|
/** deployed contract */
|
|
74
62
|
contractAddress: string;
|
|
75
63
|
}
|
|
76
|
-
/**
|
|
77
|
-
* MsgRegisterERC20 defines a Msg to register an existing erc20 contract on the
|
|
78
|
-
* token mapping and creates a new cosmos token for it
|
|
79
|
-
*/
|
|
64
|
+
/** MsgRegisterERC20 defines a Msg to register an existing erc20 contract on the token mapping and creates a new cosmos token for it */
|
|
80
65
|
export interface MsgRegisterERC20 {
|
|
81
66
|
creator: string;
|
|
82
67
|
contractAddress: string;
|
|
@@ -199,15 +184,9 @@ export declare const MsgUpdateEVMHookEnabledResponse: {
|
|
|
199
184
|
};
|
|
200
185
|
/** Msg defines the erc20 Msg service. */
|
|
201
186
|
export interface Msg {
|
|
202
|
-
/**
|
|
203
|
-
* RegisterToken registers an existing token on the token mapping and deploys
|
|
204
|
-
* a new ERC20 contract for it
|
|
205
|
-
*/
|
|
187
|
+
/** RegisterToken registers an existing token on the token mapping and deploys a new ERC20 contract for it */
|
|
206
188
|
RegisterToken(request: MsgRegisterToken): Promise<MsgRegisterTokenResponse>;
|
|
207
|
-
/**
|
|
208
|
-
* RegisterERC20 registers an existing erc20 contract on the token mapping and
|
|
209
|
-
* creates a new cosmos token for it
|
|
210
|
-
*/
|
|
189
|
+
/** RegisterERC20 registers an existing erc20 contract on the token mapping and creates a new cosmos token for it */
|
|
211
190
|
RegisterERC20(request: MsgRegisterERC20): Promise<MsgRegisterERC20Response>;
|
|
212
191
|
/**
|
|
213
192
|
* ConvertCoin mints a ERC20 representation of the native Cosmos coin denom
|
|
@@ -224,9 +203,8 @@ export interface Msg {
|
|
|
224
203
|
/** UpdateEVMHookEnabled updates whether erc20 module functions are enabled */
|
|
225
204
|
UpdateEVMHookEnabled(request: MsgUpdateEVMHookEnabled): Promise<MsgUpdateEVMHookEnabledResponse>;
|
|
226
205
|
/**
|
|
227
|
-
* UpdateParams defined a governance operation for updating the x/erc20 module
|
|
228
|
-
*
|
|
229
|
-
* account
|
|
206
|
+
* UpdateParams defined a governance operation for updating the x/erc20 module parameters.
|
|
207
|
+
* The authority is hard-coded to the Cosmos SDK x/gov module account
|
|
230
208
|
*/
|
|
231
209
|
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
232
210
|
}
|
|
@@ -5,10 +5,7 @@ export declare const protobufPackage = "Switcheo.carbon.evmmerge";
|
|
|
5
5
|
export interface MsgSignData {
|
|
6
6
|
/** signer is the sdk.AccAddress of the message signer */
|
|
7
7
|
signer: Uint8Array;
|
|
8
|
-
/**
|
|
9
|
-
* data represents the raw bytes of the content that is signed (text, json,
|
|
10
|
-
* etc)
|
|
11
|
-
*/
|
|
8
|
+
/** data represents the raw bytes of the content that is signed (text, json, etc) */
|
|
12
9
|
data: Uint8Array;
|
|
13
10
|
}
|
|
14
11
|
export declare const MsgSignData: {
|
|
@@ -3,17 +3,11 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
4
4
|
import { EthCosmosAddressWrapper } from "./address";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.evmmerge";
|
|
6
|
-
/**
|
|
7
|
-
* QueryMappedAddressRequest is the request type for the Query/MappedAddress RPC
|
|
8
|
-
* method.
|
|
9
|
-
*/
|
|
6
|
+
/** QueryMappedAddressRequest is the request type for the Query/MappedAddress RPC method. */
|
|
10
7
|
export interface QueryMappedAddressRequest {
|
|
11
8
|
address: string;
|
|
12
9
|
}
|
|
13
|
-
/**
|
|
14
|
-
* QueryMappedAddressResponse is the response type for the Query/MappedAddress
|
|
15
|
-
* RPC method.
|
|
16
|
-
*/
|
|
10
|
+
/** QueryMappedAddressResponse is the response type for the Query/MappedAddress RPC method. */
|
|
17
11
|
export interface QueryMappedAddressResponse {
|
|
18
12
|
mappedAddress: string;
|
|
19
13
|
}
|
|
@@ -58,15 +52,9 @@ export interface Query {
|
|
|
58
52
|
MappedAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
|
|
59
53
|
/** MappedAddressAll queries all address mappings. */
|
|
60
54
|
MappedAddressAll(request: QueryAllMappedAddressRequest): Promise<QueryAllMappedAddressResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* MappedEvmAddress queries mapped evm address mappings for a given cosmos
|
|
63
|
-
* address.
|
|
64
|
-
*/
|
|
55
|
+
/** MappedEvmAddress queries mapped evm address mappings for a given cosmos address. */
|
|
65
56
|
MappedEvmAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* MappedCosmosAddress queries mapped cosmos address mappings for a given eth
|
|
68
|
-
* address.
|
|
69
|
-
*/
|
|
57
|
+
/** MappedCosmosAddress queries mapped cosmos address mappings for a given eth address. */
|
|
70
58
|
MappedCosmosAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
|
|
71
59
|
}
|
|
72
60
|
export declare class QueryClientImpl implements Query {
|
|
@@ -2,15 +2,9 @@ import Long from "long";
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.evmmerge";
|
|
4
4
|
export interface MsgMergeAccount {
|
|
5
|
-
/**
|
|
6
|
-
* bech32 ETH address if coming from EIP-712, bech32 cosmos address if coming
|
|
7
|
-
* from typical cosmos tx
|
|
8
|
-
*/
|
|
5
|
+
/** bech32 ETH address if coming from EIP-712, bech32 cosmos address if coming from typical cosmos tx */
|
|
9
6
|
creator: string;
|
|
10
|
-
/**
|
|
11
|
-
* Compressed Public key in hex eg
|
|
12
|
-
* 034a1e1f95ebb49bc59b3c2d60afbb4c2fb2b77cd1f1e2322123fdacaa3d12f7a9
|
|
13
|
-
*/
|
|
7
|
+
/** Compressed Public key in hex eg 034a1e1f95ebb49bc59b3c2d60afbb4c2fb2b77cd1f1e2322123fdacaa3d12f7a9 */
|
|
14
8
|
pubKey: string;
|
|
15
9
|
/** hex representation of the pub key signature */
|
|
16
10
|
pubKeySig?: string;
|
|
@@ -8,10 +8,7 @@ export interface GenesisState {
|
|
|
8
8
|
consensusPeers: {
|
|
9
9
|
[key: string]: ConsensusPeers;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Header hash for blocks where consensus public keys is updated for PoS chain
|
|
13
|
-
* by chain ID.
|
|
14
|
-
*/
|
|
11
|
+
/** Header hash for blocks where consensus public keys is updated for PoS chain by chain ID. */
|
|
15
12
|
checkpointHashes: {
|
|
16
13
|
[key: string]: Uint8Array;
|
|
17
14
|
};
|
|
@@ -19,10 +16,7 @@ export interface GenesisState {
|
|
|
19
16
|
zionConsensusPeers: {
|
|
20
17
|
[key: string]: ZionConsensusPeers;
|
|
21
18
|
};
|
|
22
|
-
/**
|
|
23
|
-
* Header Hash for Zion blocks where consensus public keys is updated for PoS
|
|
24
|
-
* chain by chain ID.
|
|
25
|
-
*/
|
|
19
|
+
/** Header Hash for Zion blocks where consensus public keys is updated for PoS chain by chain ID. */
|
|
26
20
|
zionCheckpointHashes: {
|
|
27
21
|
[key: string]: Uint8Array;
|
|
28
22
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.inflation";
|
|
4
|
-
/**
|
|
5
|
-
* MintData represents the parameters by the inflation module.
|
|
6
|
-
* TODO: CLEAN UP IN SEPARATE PR
|
|
7
|
-
*/
|
|
4
|
+
/** MintData represents the parameters by the inflation module. */
|
|
8
5
|
export interface MintData {
|
|
9
6
|
/** TODO: deprecated, set to reserved after migration */
|
|
10
7
|
legacyFirstBlockTime: Long;
|
|
@@ -2,7 +2,7 @@ import Long from "long";
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.insurance";
|
|
4
4
|
/**
|
|
5
|
-
* TODO:
|
|
5
|
+
* TODO: ADD CORRECT THINGS
|
|
6
6
|
* BlockHeight int64 `json:"block_height"`
|
|
7
7
|
* BlockCreatedAt time.Time `json:"block_created_at"`
|
|
8
8
|
* Amount sdkmath.Int `json:"amount"`
|
|
@@ -5,13 +5,13 @@ export interface Params {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const Params: {
|
|
7
7
|
encode(_: Params, writer?: _m0.Writer): _m0.Writer;
|
|
8
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
8
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
|
|
9
9
|
fromJSON(_: any): Params;
|
|
10
10
|
toJSON(_: Params): unknown;
|
|
11
11
|
fromPartial(_: DeepPartial<Params>): Params;
|
|
12
12
|
};
|
|
13
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
14
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
13
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
14
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
15
15
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
16
16
|
} : Partial<T>;
|
|
17
17
|
export {};
|
|
@@ -2,6 +2,6 @@ export { PoolEvent, TotalCommitmentChangeEvent, RewardsWeightChangeEvent, Reward
|
|
|
2
2
|
export { Pool, Pools, PoolRoute, AddLiquidity, AddLiquidities, RemoveLiquidity, RemoveLiquidities, RemovePoolRoutes, PoolReserve, ReserveData } from "./liquiditypool";
|
|
3
3
|
export { Params, ParamsToUpdate } from "./params";
|
|
4
4
|
export { LinkPoolProposal, UnlinkPoolProposal, SetRewardCurveProposal, SetCommitmentCurveProposal, SetRewardsWeightsProposal, UpdatePoolProposal, CreatePoolRouteProposal, RemovePoolRouteProposal, UpdatePoolRouteProposal } from "./proposal";
|
|
5
|
-
export { QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllPoolAddressRequest, QueryAllPoolAddressResponse, QueryAllPoolAddressResponse_AddressesEntry, ExtendedPool, QueryCommitmentRequest, QueryCommitmentResponse, QueryAllCommitmentRequest, QueryAllCommitmentResponse, QueryCommitmentCurveRequest, QueryCommitmentCurveResponse, QueryRewardCurveRequest, QueryRewardCurveResponse, QueryTotalCommitmentRequest, QueryTotalCommitmentResponse, QueryAllTotalCommitmentRequest, QueryAllTotalCommitmentResponse, QueryClaimableRewardsRequest, QueryClaimableRewardsResponse,
|
|
5
|
+
export { QueryGetPoolRequest, QueryGetPoolResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllPoolAddressRequest, QueryAllPoolAddressResponse, QueryAllPoolAddressResponse_AddressesEntry, ExtendedPool, QueryCommitmentRequest, QueryCommitmentResponse, QueryAllCommitmentRequest, QueryAllCommitmentResponse, QueryCommitmentCurveRequest, QueryCommitmentCurveResponse, QueryRewardCurveRequest, QueryRewardCurveResponse, QueryTotalCommitmentRequest, QueryTotalCommitmentResponse, QueryAllTotalCommitmentRequest, QueryAllTotalCommitmentResponse, QueryClaimableRewardsRequest, QueryClaimableRewardsResponse, QueryParamsRequest, QueryParamsResponse, QueryAllPoolRouteRequest, QueryAllPoolRouteResponse, QueryAllPoolRouteAddressRequest, QueryAllPoolRouteAddressResponse, QueryAllPoolRouteAddressResponse_AddressesEntry } from "./query";
|
|
6
6
|
export { RewardCurve, CommitmentCurve, RewardWeight, RewardWeights, Commitment, CommitmentRecord, TotalCommitment, TotalCommitmentRecord, CommitmentResponse, RewardHistory, AccumulatedRewards, AccumulatedRewardsRecord, CommitmentExpiry, CommitmentExpiries, CommitmentExpiriesRecord, AllocatedRewards } from "./reward";
|
|
7
7
|
export { MsgCreatePool, MsgCreatePoolResponse, MsgCreatePoolWithLiquidity, MsgCreatePoolWithLiquidityResponse, MsgAddLiquidity, MsgAddLiquidityResponse, MsgRemoveLiquidity, MsgRemoveLiquidityResponse, LinkPoolParams, UnlinkPoolParams, MsgSetRewardsWeights, SetRewardsWeightsParams, MsgSetRewardsWeightsResponse, MsgStakePoolToken, MsgStakePoolTokenResponse, MsgUnstakePoolToken, MsgUnstakePoolTokenResponse, MsgClaimPoolRewards, MsgClaimPoolRewardsResponse, MsgSetRewardCurve, SetRewardCurveParams, MsgSetRewardCurveResponse, MsgSetCommitmentCurve, SetCommitmentCurveParams, MsgSetCommitmentCurveResponse, MsgUpdatePool, UpdatePoolParams, MsgUpdatePoolResponse, MsgCreatePoolRoute, MsgCreatePoolRouteResponse, CreatePoolRouteParams, MsgRemovePoolRoute, MsgRemovePoolRouteResponse, RemovePoolRouteParams, MsgUpdatePoolRoute, MsgUpdatePoolRouteResponse, UpdatePoolRouteParams, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QueryRewardCurveResponse = exports.QueryRewardCurveRequest = exports.QueryCommitmentCurveResponse = exports.QueryCommitmentCurveRequest = exports.QueryAllCommitmentResponse = exports.QueryAllCommitmentRequest = exports.QueryCommitmentResponse = exports.QueryCommitmentRequest = exports.ExtendedPool = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.UpdatePoolRouteProposal = exports.RemovePoolRouteProposal = exports.CreatePoolRouteProposal = exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetCommitmentCurveProposal = exports.SetRewardCurveProposal = exports.UnlinkPoolProposal = exports.LinkPoolProposal = exports.ParamsToUpdate = exports.Params = exports.ReserveData = exports.PoolReserve = exports.RemovePoolRoutes = exports.RemoveLiquidities = exports.RemoveLiquidity = exports.AddLiquidities = exports.AddLiquidity = exports.PoolRoute = exports.Pools = exports.Pool = exports.ClaimEvent = exports.RewardsAccumulatedEvent = exports.UnstakePoolTokenEvent = exports.StakePoolTokenEvent = exports.WithdrawFromPoolEvent = exports.DepositToPoolEvent = exports.SwapEvent = exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardCurveChangeEvent = exports.RewardsWeightChangeEvent = exports.TotalCommitmentChangeEvent = exports.PoolEvent = void 0;
|
|
4
|
-
exports.MsgClaimPoolRewardsResponse = exports.MsgClaimPoolRewards = exports.MsgUnstakePoolTokenResponse = exports.MsgUnstakePoolToken = exports.MsgStakePoolTokenResponse = exports.MsgStakePoolToken = exports.MsgSetRewardsWeightsResponse = exports.SetRewardsWeightsParams = exports.MsgSetRewardsWeights = exports.UnlinkPoolParams = exports.LinkPoolParams = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreatePoolWithLiquidityResponse = exports.MsgCreatePoolWithLiquidity = exports.MsgCreatePoolResponse = exports.MsgCreatePool = exports.AllocatedRewards = exports.CommitmentExpiriesRecord = exports.CommitmentExpiries = exports.CommitmentExpiry = exports.AccumulatedRewardsRecord = exports.AccumulatedRewards = exports.RewardHistory = exports.CommitmentResponse = exports.TotalCommitmentRecord = exports.TotalCommitment = exports.CommitmentRecord = exports.Commitment = exports.RewardWeights = exports.RewardWeight = exports.CommitmentCurve = exports.RewardCurve = exports.QueryAllPoolRouteAddressResponse_AddressesEntry = exports.QueryAllPoolRouteAddressResponse = exports.QueryAllPoolRouteAddressRequest = exports.QueryAllPoolRouteResponse = exports.QueryAllPoolRouteRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.
|
|
5
|
-
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.UpdatePoolRouteParams = exports.MsgUpdatePoolRouteResponse = exports.MsgUpdatePoolRoute = exports.RemovePoolRouteParams = exports.MsgRemovePoolRouteResponse = exports.MsgRemovePoolRoute = exports.CreatePoolRouteParams = exports.MsgCreatePoolRouteResponse = exports.MsgCreatePoolRoute = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams = exports.MsgUpdatePool = exports.MsgSetCommitmentCurveResponse = exports.SetCommitmentCurveParams = exports.MsgSetCommitmentCurve = exports.MsgSetRewardCurveResponse =
|
|
4
|
+
exports.SetRewardCurveParams = exports.MsgSetRewardCurve = exports.MsgClaimPoolRewardsResponse = exports.MsgClaimPoolRewards = exports.MsgUnstakePoolTokenResponse = exports.MsgUnstakePoolToken = exports.MsgStakePoolTokenResponse = exports.MsgStakePoolToken = exports.MsgSetRewardsWeightsResponse = exports.SetRewardsWeightsParams = exports.MsgSetRewardsWeights = exports.UnlinkPoolParams = exports.LinkPoolParams = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreatePoolWithLiquidityResponse = exports.MsgCreatePoolWithLiquidity = exports.MsgCreatePoolResponse = exports.MsgCreatePool = exports.AllocatedRewards = exports.CommitmentExpiriesRecord = exports.CommitmentExpiries = exports.CommitmentExpiry = exports.AccumulatedRewardsRecord = exports.AccumulatedRewards = exports.RewardHistory = exports.CommitmentResponse = exports.TotalCommitmentRecord = exports.TotalCommitment = exports.CommitmentRecord = exports.Commitment = exports.RewardWeights = exports.RewardWeight = exports.CommitmentCurve = exports.RewardCurve = exports.QueryAllPoolRouteAddressResponse_AddressesEntry = exports.QueryAllPoolRouteAddressResponse = exports.QueryAllPoolRouteAddressRequest = exports.QueryAllPoolRouteResponse = exports.QueryAllPoolRouteRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryClaimableRewardsResponse = exports.QueryClaimableRewardsRequest = exports.QueryAllTotalCommitmentResponse = exports.QueryAllTotalCommitmentRequest = exports.QueryTotalCommitmentResponse = exports.QueryTotalCommitmentRequest = void 0;
|
|
5
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.UpdatePoolRouteParams = exports.MsgUpdatePoolRouteResponse = exports.MsgUpdatePoolRoute = exports.RemovePoolRouteParams = exports.MsgRemovePoolRouteResponse = exports.MsgRemovePoolRoute = exports.CreatePoolRouteParams = exports.MsgCreatePoolRouteResponse = exports.MsgCreatePoolRoute = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams = exports.MsgUpdatePool = exports.MsgSetCommitmentCurveResponse = exports.SetCommitmentCurveParams = exports.MsgSetCommitmentCurve = exports.MsgSetRewardCurveResponse = void 0;
|
|
6
6
|
var event_1 = require("./event");
|
|
7
7
|
Object.defineProperty(exports, "PoolEvent", { enumerable: true, get: function () { return event_1.PoolEvent; } });
|
|
8
8
|
Object.defineProperty(exports, "TotalCommitmentChangeEvent", { enumerable: true, get: function () { return event_1.TotalCommitmentChangeEvent; } });
|
|
@@ -64,8 +64,6 @@ Object.defineProperty(exports, "QueryAllTotalCommitmentRequest", { enumerable: t
|
|
|
64
64
|
Object.defineProperty(exports, "QueryAllTotalCommitmentResponse", { enumerable: true, get: function () { return query_1.QueryAllTotalCommitmentResponse; } });
|
|
65
65
|
Object.defineProperty(exports, "QueryClaimableRewardsRequest", { enumerable: true, get: function () { return query_1.QueryClaimableRewardsRequest; } });
|
|
66
66
|
Object.defineProperty(exports, "QueryClaimableRewardsResponse", { enumerable: true, get: function () { return query_1.QueryClaimableRewardsResponse; } });
|
|
67
|
-
Object.defineProperty(exports, "QueryAllocatedRewardsRequest", { enumerable: true, get: function () { return query_1.QueryAllocatedRewardsRequest; } });
|
|
68
|
-
Object.defineProperty(exports, "QueryAllocatedRewardsResponse", { enumerable: true, get: function () { return query_1.QueryAllocatedRewardsResponse; } });
|
|
69
67
|
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
70
68
|
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
71
69
|
Object.defineProperty(exports, "QueryAllPoolRouteRequest", { enumerable: true, get: function () { return query_1.QueryAllPoolRouteRequest; } });
|
|
@@ -85,11 +85,6 @@ export interface QueryClaimableRewardsRequest {
|
|
|
85
85
|
export interface QueryClaimableRewardsResponse {
|
|
86
86
|
rewards: DecCoin[];
|
|
87
87
|
}
|
|
88
|
-
export interface QueryAllocatedRewardsRequest {
|
|
89
|
-
}
|
|
90
|
-
export interface QueryAllocatedRewardsResponse {
|
|
91
|
-
rewards: DecCoin[];
|
|
92
|
-
}
|
|
93
88
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
94
89
|
export interface QueryParamsRequest {
|
|
95
90
|
}
|
|
@@ -272,20 +267,6 @@ export declare const QueryClaimableRewardsResponse: {
|
|
|
272
267
|
toJSON(message: QueryClaimableRewardsResponse): unknown;
|
|
273
268
|
fromPartial(object: DeepPartial<QueryClaimableRewardsResponse>): QueryClaimableRewardsResponse;
|
|
274
269
|
};
|
|
275
|
-
export declare const QueryAllocatedRewardsRequest: {
|
|
276
|
-
encode(_: QueryAllocatedRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
277
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllocatedRewardsRequest;
|
|
278
|
-
fromJSON(_: any): QueryAllocatedRewardsRequest;
|
|
279
|
-
toJSON(_: QueryAllocatedRewardsRequest): unknown;
|
|
280
|
-
fromPartial(_: DeepPartial<QueryAllocatedRewardsRequest>): QueryAllocatedRewardsRequest;
|
|
281
|
-
};
|
|
282
|
-
export declare const QueryAllocatedRewardsResponse: {
|
|
283
|
-
encode(message: QueryAllocatedRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
284
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllocatedRewardsResponse;
|
|
285
|
-
fromJSON(object: any): QueryAllocatedRewardsResponse;
|
|
286
|
-
toJSON(message: QueryAllocatedRewardsResponse): unknown;
|
|
287
|
-
fromPartial(object: DeepPartial<QueryAllocatedRewardsResponse>): QueryAllocatedRewardsResponse;
|
|
288
|
-
};
|
|
289
270
|
export declare const QueryParamsRequest: {
|
|
290
271
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
291
272
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsRequest;
|
|
@@ -357,8 +338,6 @@ export interface Query {
|
|
|
357
338
|
TotalCommitmentAll(request: QueryAllTotalCommitmentRequest): Promise<QueryAllTotalCommitmentResponse>;
|
|
358
339
|
/** Get currently claimable rewards for a pool for the given address */
|
|
359
340
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
360
|
-
/** Get allocated rewards */
|
|
361
|
-
AllocatedRewards(request: QueryAllocatedRewardsRequest): Promise<QueryAllocatedRewardsResponse>;
|
|
362
341
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
363
342
|
/** Get liquidity pool addresses for all pools */
|
|
364
343
|
PoolRouteAll(request: QueryAllPoolRouteRequest): Promise<QueryAllPoolRouteResponse>;
|
|
@@ -378,7 +357,6 @@ export declare class QueryClientImpl implements Query {
|
|
|
378
357
|
TotalCommitment(request: QueryTotalCommitmentRequest): Promise<QueryTotalCommitmentResponse>;
|
|
379
358
|
TotalCommitmentAll(request: QueryAllTotalCommitmentRequest): Promise<QueryAllTotalCommitmentResponse>;
|
|
380
359
|
ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
|
|
381
|
-
AllocatedRewards(request: QueryAllocatedRewardsRequest): Promise<QueryAllocatedRewardsResponse>;
|
|
382
360
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
383
361
|
PoolRouteAll(request: QueryAllPoolRouteRequest): Promise<QueryAllPoolRouteResponse>;
|
|
384
362
|
PoolRouteAddressAll(request: QueryAllPoolRouteAddressRequest): Promise<QueryAllPoolRouteAddressResponse>;
|