carbon-js-sdk 0.7.12 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clients/CarbonQueryClient.d.ts +1 -1
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/codec/Switcheo/carbon/book/event.d.ts +1 -20
- package/lib/codec/Switcheo/carbon/book/event.js +19 -101
- package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/export.js +1 -3
- package/lib/codec/Switcheo/carbon/book/query.d.ts +6 -12
- package/lib/codec/Switcheo/carbon/book/query.js +6 -18
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +0 -8
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/ccm/export.js +1 -3
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/ccm/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/export.js +1 -3
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1 -46
- package/lib/codec/Switcheo/carbon/cdp/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +4 -10
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +4 -54
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +0 -98
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +1 -374
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +0 -103
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +1 -425
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/liquidation/export.js +5 -1
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +25 -0
- package/lib/codec/Switcheo/carbon/liquidation/query.js +88 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +3 -6
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +0 -20
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +1 -191
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/market/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/market/export.js +2 -6
- package/lib/codec/Switcheo/carbon/market/query.d.ts +0 -31
- package/lib/codec/Switcheo/carbon/market/query.js +1 -226
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +2 -46
- package/lib/codec/Switcheo/carbon/market/tx.js +1 -100
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/marketstats/export.js +5 -1
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +7 -4
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +21 -4
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/marketstats/query.js +88 -1
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/oracle/export.js +1 -4
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/oracle/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/order/export.d.ts +3 -4
- package/lib/codec/Switcheo/carbon/order/export.js +4 -11
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/order/genesis.js +16 -16
- package/lib/codec/Switcheo/carbon/order/order.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/order/order.js +11 -11
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/order/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.js +1 -3
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +1 -46
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/position/export.d.ts +0 -1
- package/lib/codec/Switcheo/carbon/position/export.js +1 -4
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/pricing/export.js +1 -3
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/pricing/tx.js +1 -101
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.js +1 -3
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +0 -46
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +1 -101
- package/lib/codec/carbon-models.d.ts +1 -2
- package/lib/codec/carbon-models.js +2 -3
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +0 -26
- package/lib/codec/cosmos/app/v1alpha1/config.js +4 -94
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +0 -21
- package/lib/codec/cosmos/auth/v1beta1/auth.js +1 -92
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +2 -3
- package/lib/codec/cosmos/auth/v1beta1/export.js +1 -7
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -54
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -120
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +0 -7
- package/lib/codec/cosmos/bank/v1beta1/authz.js +3 -18
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +0 -9
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.js +1 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +3 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -17
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +5 -125
- package/lib/codec/cosmos/bank/v1beta1/query.js +1 -257
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +1 -102
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -215
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +0 -8
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +1 -2
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +1 -39
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +46 -16
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +1 -46
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +1 -103
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -20
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/export.js +1 -8
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +1 -32
- package/lib/codec/cosmos/distribution/v1beta1/query.js +1 -134
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +3 -103
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -212
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +0 -4
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -12
- package/lib/codec/cosmos/evidence/v1beta1/query.js +2 -14
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +0 -2
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +4 -25
- package/lib/codec/cosmos/gov/v1/genesis.js +0 -16
- package/lib/codec/cosmos/gov/v1/gov.d.ts +2 -83
- package/lib/codec/cosmos/gov/v1/gov.js +3 -231
- package/lib/codec/cosmos/gov/v1/query.d.ts +6 -30
- package/lib/codec/cosmos/gov/v1/query.js +0 -16
- package/lib/codec/cosmos/gov/v1/tx.d.ts +2 -74
- package/lib/codec/cosmos/gov/v1/tx.js +3 -131
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +5 -30
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -4
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +0 -13
- package/lib/codec/cosmos/group/v1/events.d.ts +1 -17
- package/lib/codec/cosmos/group/v1/events.js +1 -81
- package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/group/v1/tx.d.ts +13 -25
- package/lib/codec/cosmos/group/v1/tx.js +34 -60
- package/lib/codec/cosmos/group/v1/types.d.ts +6 -26
- package/lib/codec/cosmos/group/v1/types.js +1 -27
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/export.js +1 -4
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +0 -10
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +0 -20
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +1 -3
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +0 -46
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +1 -101
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js +2 -8
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +5 -36
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -40
- package/lib/codec/cosmos/staking/v1beta1/staking.js +2 -212
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +1 -45
- package/lib/codec/cosmos/staking/v1beta1/tx.js +1 -100
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +1 -9
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +2 -164
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -407
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +4 -6
- package/lib/codec/ethermint/evm/v1/export.d.ts +1 -2
- package/lib/codec/ethermint/evm/v1/export.js +1 -8
- package/lib/codec/ethermint/evm/v1/tx.d.ts +1 -37
- package/lib/codec/ethermint/evm/v1/tx.js +1 -100
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -2
- package/lib/codec/ethermint/feemarket/v1/export.js +1 -7
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +0 -10
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +1 -28
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -2
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -8
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -26
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +1 -113
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +1 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +6 -1
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -2
- package/lib/codec/ibc/applications/transfer/v1/export.js +1 -8
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +0 -6
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +2 -18
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +1 -56
- package/lib/codec/ibc/applications/transfer/v1/query.js +1 -210
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -8
- package/lib/codec/ibc/applications/transfer/v1/tx.js +6 -35
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -2
- package/lib/codec/ibc/applications/transfer/v2/packet.js +1 -14
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -20
- package/lib/codec/ibc/core/channel/v1/channel.js +1 -78
- package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/channel/v1/export.js +2 -3
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +12 -16
- package/lib/codec/ibc/core/channel/v1/tx.js +25 -62
- package/lib/codec/ibc/core/client/v1/client.d.ts +1 -5
- package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/client/v1/export.js +1 -3
- package/lib/codec/ibc/core/client/v1/query.d.ts +1 -38
- package/lib/codec/ibc/core/client/v1/query.js +1 -137
- package/lib/codec/ibc/core/client/v1/tx.d.ts +6 -19
- package/lib/codec/ibc/core/client/v1/tx.js +11 -13
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +1 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +1 -26
- package/lib/codec/ibc/core/connection/v1/query.js +1 -87
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +2 -7
- package/lib/codec/ibc/core/connection/v1/tx.js +2 -38
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +5 -12
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/lib/codec/ibc-models.d.ts +2 -3
- package/lib/codec/ibc-models.js +3 -4
- package/lib/codec/index.d.ts +20 -99
- package/lib/codec/index.js +890 -3371
- package/lib/codec/proofs.d.ts +0 -1
- package/lib/codec/proofs.js +0 -6
- package/lib/codec/tendermint/abci/types.d.ts +84 -131
- package/lib/codec/tendermint/abci/types.js +351 -707
- package/lib/codec/tendermint/types/params.d.ts +8 -1
- package/lib/codec/tendermint/types/params.js +33 -13
- package/lib/modules/evm.js +1 -1
- package/lib/provider/amino/types/evm.js +1 -1
- package/lib/util/tx.d.ts +7 -89
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ import { AssetParams, UpdateAssetParams } from "./asset_params";
|
|
|
5
5
|
import { CreateRewardSchemeParams, UpdateRewardSchemeParams } from "./reward_scheme";
|
|
6
6
|
import { Duration } from "../../../google/protobuf/duration";
|
|
7
7
|
import { EModeCategory } from "./e_mode_category";
|
|
8
|
-
import { Params } from "./params";
|
|
9
8
|
export declare const protobufPackage = "Switcheo.carbon.cdp";
|
|
10
9
|
export interface MsgAddRateStrategy {
|
|
11
10
|
creator: string;
|
|
@@ -330,29 +329,6 @@ export interface MsgRemoveAccountEMode {
|
|
|
330
329
|
}
|
|
331
330
|
export interface MsgRemoveAccountEModeResponse {
|
|
332
331
|
}
|
|
333
|
-
/**
|
|
334
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
335
|
-
*
|
|
336
|
-
* Since: cosmos-sdk 0.47
|
|
337
|
-
*/
|
|
338
|
-
export interface MsgUpdateParams {
|
|
339
|
-
/** authority is the address of the governance account. */
|
|
340
|
-
authority: string;
|
|
341
|
-
/**
|
|
342
|
-
* params defines the parameters to update.
|
|
343
|
-
*
|
|
344
|
-
* NOTE: All parameters must be supplied.
|
|
345
|
-
*/
|
|
346
|
-
params?: Params;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
350
|
-
* MsgUpdateParams message.
|
|
351
|
-
*
|
|
352
|
-
* Since: cosmos-sdk 0.47
|
|
353
|
-
*/
|
|
354
|
-
export interface MsgUpdateParamsResponse {
|
|
355
|
-
}
|
|
356
332
|
export declare const MsgAddRateStrategy: {
|
|
357
333
|
encode(message: MsgAddRateStrategy, writer?: _m0.Writer): _m0.Writer;
|
|
358
334
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAddRateStrategy;
|
|
@@ -948,20 +924,6 @@ export declare const MsgRemoveAccountEModeResponse: {
|
|
|
948
924
|
toJSON(_: MsgRemoveAccountEModeResponse): unknown;
|
|
949
925
|
fromPartial(_: DeepPartial<MsgRemoveAccountEModeResponse>): MsgRemoveAccountEModeResponse;
|
|
950
926
|
};
|
|
951
|
-
export declare const MsgUpdateParams: {
|
|
952
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
953
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
954
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
955
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
956
|
-
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
957
|
-
};
|
|
958
|
-
export declare const MsgUpdateParamsResponse: {
|
|
959
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
960
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
961
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
962
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
963
|
-
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
964
|
-
};
|
|
965
927
|
/** Msg defines the Msg service. */
|
|
966
928
|
export interface Msg {
|
|
967
929
|
AddRateStrategy(request: MsgAddRateStrategy): Promise<MsgAddRateStrategyResponse>;
|
|
@@ -1005,14 +967,8 @@ export interface Msg {
|
|
|
1005
967
|
AddEModeCategory(request: MsgAddEModeCategory): Promise<MsgAddEModeCategoryResponse>;
|
|
1006
968
|
UpdateEModeCategory(request: MsgUpdateEModeCategory): Promise<MsgUpdateEModeCategoryResponse>;
|
|
1007
969
|
SetAccountEMode(request: MsgSetAccountEMode): Promise<MsgSetAccountEModeResponse>;
|
|
970
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
1008
971
|
RemoveAccountEMode(request: MsgRemoveAccountEMode): Promise<MsgRemoveAccountEModeResponse>;
|
|
1009
|
-
/**
|
|
1010
|
-
* UpdateParams defines a governance operation for updating the module
|
|
1011
|
-
* parameters. The authority is hard-coded to the x/gov module account.
|
|
1012
|
-
*
|
|
1013
|
-
* Since: cosmos-sdk 0.47
|
|
1014
|
-
*/
|
|
1015
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
1016
972
|
}
|
|
1017
973
|
export declare class MsgClientImpl implements Msg {
|
|
1018
974
|
private readonly rpc;
|
|
@@ -1059,7 +1015,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
1059
1015
|
UpdateEModeCategory(request: MsgUpdateEModeCategory): Promise<MsgUpdateEModeCategoryResponse>;
|
|
1060
1016
|
SetAccountEMode(request: MsgSetAccountEMode): Promise<MsgSetAccountEModeResponse>;
|
|
1061
1017
|
RemoveAccountEMode(request: MsgRemoveAccountEMode): Promise<MsgRemoveAccountEModeResponse>;
|
|
1062
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
1063
1018
|
}
|
|
1064
1019
|
interface Rpc {
|
|
1065
1020
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MsgSetSmallLiquidationSize = exports.MsgSetMinimumCloseFactorResponse = exports.MsgSetMinimumCloseFactor = exports.MsgSetCompleteLiquidationThresholdResponse = exports.MsgSetCompleteLiquidationThreshold = exports.MsgReturnStablecoinResponse = exports.MsgReturnStablecoin = exports.MsgMintStablecoinResponse = exports.MsgMintStablecoin = exports.MsgSetStablecoinInterestRateResponse = exports.MsgSetStablecoinInterestRate = exports.MsgSetStablecoinMintCapResponse = exports.MsgSetStablecoinMintCap = exports.MsgRepayAssetWithCollateralResponse = exports.MsgRepayAssetWithCollateral = exports.MsgRepayAssetWithCdpTokensResponse = exports.MsgRepayAssetWithCdpTokens = exports.MsgSetInterestFeeResponse = exports.MsgSetInterestFee = exports.MsgSetLiquidationFeeResponse = exports.MsgSetLiquidationFee = exports.MsgLiquidateCollateralResponse = exports.MsgLiquidateCollateral = exports.MsgUnlockCollateralAndWithdrawAssetResponse = exports.MsgUnlockCollateralAndWithdrawAsset = exports.MsgSupplyAssetAndLockCollateralResponse = exports.MsgSupplyAssetAndLockCollateral = exports.MsgRepayAssetResponse = exports.MsgRepayAsset = exports.MsgBorrowAssetResponse = exports.MsgBorrowAsset = exports.MsgUnlockCollateralResponse = exports.MsgUnlockCollateral = exports.MsgLockCollateralResponse = exports.MsgLockCollateral = exports.MsgWithdrawAssetResponse = exports.MsgWithdrawAsset = exports.MsgSupplyAssetResponse = exports.MsgSupplyAsset = exports.MsgUpdateAssetResponse = exports.MsgUpdateAsset = exports.MsgAddAssetResponse = exports.MsgAddAsset = exports.MsgRemoveRateStrategyResponse = exports.MsgRemoveRateStrategy = exports.MsgUpdateRateStrategyResponse = exports.MsgUpdateRateStrategy = exports.MsgAddRateStrategyResponse = exports.MsgAddRateStrategy = exports.protobufPackage = void 0;
|
|
7
|
-
exports.MsgClientImpl = exports.
|
|
7
|
+
exports.MsgClientImpl = exports.MsgRemoveAccountEModeResponse = exports.MsgRemoveAccountEMode = exports.MsgSetAccountEModeResponse = exports.MsgSetAccountEMode = exports.MsgUpdateEModeCategoryResponse = exports.UpdateEModeCategoryParams = exports.MsgUpdateEModeCategory = exports.MsgAddEModeCategoryResponse = exports.MsgAddEModeCategory = exports.MsgConvertTokenInCdpToGroupTokensResponse = exports.MsgConvertTokenInCdpToGroupTokens = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCollateralResponse = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCollateral = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokensResponse = exports.MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokens = exports.MsgReturnStablecoinWithInterestInCdpTokensResponse = exports.MsgReturnStablecoinWithInterestInCdpTokens = exports.MsgReturnStablecoinWithInterestInCollateralResponse = exports.MsgReturnStablecoinWithInterestInCollateral = exports.MsgSetCdpPausedResponse = exports.MsgSetCdpPaused = exports.MsgSetStalePriceGracePeriodResponse = exports.MsgSetStalePriceGracePeriod = exports.MsgClaimRewardsResponse = exports.MsgClaimRewards = exports.MsgUpdateRewardSchemeResponse = exports.MsgUpdateRewardScheme = exports.MsgCreateRewardSchemeResponse = exports.MsgCreateRewardScheme = exports.MsgLiquidateCollateralWithStablecoinResponse = exports.MsgLiquidateCollateralWithStablecoin = exports.MsgLiquidateCollateralWithCollateralResponse = exports.MsgLiquidateCollateralWithCollateral = exports.MsgLiquidateCollateralWithCdpTokensResponse = exports.MsgLiquidateCollateralWithCdpTokens = exports.MsgSetSmallLiquidationSizeResponse = void 0;
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
const long_1 = __importDefault(require("long"));
|
|
10
10
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -13,7 +13,6 @@ const asset_params_1 = require("./asset_params");
|
|
|
13
13
|
const reward_scheme_1 = require("./reward_scheme");
|
|
14
14
|
const duration_1 = require("../../../google/protobuf/duration");
|
|
15
15
|
const e_mode_category_1 = require("./e_mode_category");
|
|
16
|
-
const params_1 = require("./params");
|
|
17
16
|
const wrappers_1 = require("../../../google/protobuf/wrappers");
|
|
18
17
|
exports.protobufPackage = "Switcheo.carbon.cdp";
|
|
19
18
|
const baseMsgAddRateStrategy = { creator: "" };
|
|
@@ -4917,99 +4916,6 @@ exports.MsgRemoveAccountEModeResponse = {
|
|
|
4917
4916
|
return message;
|
|
4918
4917
|
},
|
|
4919
4918
|
};
|
|
4920
|
-
const baseMsgUpdateParams = { authority: "" };
|
|
4921
|
-
exports.MsgUpdateParams = {
|
|
4922
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
4923
|
-
if (message.authority !== "") {
|
|
4924
|
-
writer.uint32(10).string(message.authority);
|
|
4925
|
-
}
|
|
4926
|
-
if (message.params !== undefined) {
|
|
4927
|
-
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
4928
|
-
}
|
|
4929
|
-
return writer;
|
|
4930
|
-
},
|
|
4931
|
-
decode(input, length) {
|
|
4932
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
4933
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4934
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
4935
|
-
while (reader.pos < end) {
|
|
4936
|
-
const tag = reader.uint32();
|
|
4937
|
-
switch (tag >>> 3) {
|
|
4938
|
-
case 1:
|
|
4939
|
-
message.authority = reader.string();
|
|
4940
|
-
break;
|
|
4941
|
-
case 2:
|
|
4942
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
4943
|
-
break;
|
|
4944
|
-
default:
|
|
4945
|
-
reader.skipType(tag & 7);
|
|
4946
|
-
break;
|
|
4947
|
-
}
|
|
4948
|
-
}
|
|
4949
|
-
return message;
|
|
4950
|
-
},
|
|
4951
|
-
fromJSON(object) {
|
|
4952
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
4953
|
-
message.authority =
|
|
4954
|
-
object.authority !== undefined && object.authority !== null
|
|
4955
|
-
? String(object.authority)
|
|
4956
|
-
: "";
|
|
4957
|
-
message.params =
|
|
4958
|
-
object.params !== undefined && object.params !== null
|
|
4959
|
-
? params_1.Params.fromJSON(object.params)
|
|
4960
|
-
: undefined;
|
|
4961
|
-
return message;
|
|
4962
|
-
},
|
|
4963
|
-
toJSON(message) {
|
|
4964
|
-
const obj = {};
|
|
4965
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
4966
|
-
message.params !== undefined &&
|
|
4967
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
4968
|
-
return obj;
|
|
4969
|
-
},
|
|
4970
|
-
fromPartial(object) {
|
|
4971
|
-
var _a;
|
|
4972
|
-
const message = Object.assign({}, baseMsgUpdateParams);
|
|
4973
|
-
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
4974
|
-
message.params =
|
|
4975
|
-
object.params !== undefined && object.params !== null
|
|
4976
|
-
? params_1.Params.fromPartial(object.params)
|
|
4977
|
-
: undefined;
|
|
4978
|
-
return message;
|
|
4979
|
-
},
|
|
4980
|
-
};
|
|
4981
|
-
const baseMsgUpdateParamsResponse = {};
|
|
4982
|
-
exports.MsgUpdateParamsResponse = {
|
|
4983
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
4984
|
-
return writer;
|
|
4985
|
-
},
|
|
4986
|
-
decode(input, length) {
|
|
4987
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
4988
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4989
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
4990
|
-
while (reader.pos < end) {
|
|
4991
|
-
const tag = reader.uint32();
|
|
4992
|
-
switch (tag >>> 3) {
|
|
4993
|
-
default:
|
|
4994
|
-
reader.skipType(tag & 7);
|
|
4995
|
-
break;
|
|
4996
|
-
}
|
|
4997
|
-
}
|
|
4998
|
-
return message;
|
|
4999
|
-
},
|
|
5000
|
-
fromJSON(_) {
|
|
5001
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
5002
|
-
return message;
|
|
5003
|
-
},
|
|
5004
|
-
toJSON(_) {
|
|
5005
|
-
const obj = {};
|
|
5006
|
-
return obj;
|
|
5007
|
-
},
|
|
5008
|
-
fromPartial(_) {
|
|
5009
|
-
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
5010
|
-
return message;
|
|
5011
|
-
},
|
|
5012
|
-
};
|
|
5013
4919
|
class MsgClientImpl {
|
|
5014
4920
|
constructor(rpc) {
|
|
5015
4921
|
this.rpc = rpc;
|
|
@@ -5066,7 +4972,6 @@ class MsgClientImpl {
|
|
|
5066
4972
|
this.UpdateEModeCategory = this.UpdateEModeCategory.bind(this);
|
|
5067
4973
|
this.SetAccountEMode = this.SetAccountEMode.bind(this);
|
|
5068
4974
|
this.RemoveAccountEMode = this.RemoveAccountEMode.bind(this);
|
|
5069
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
5070
4975
|
}
|
|
5071
4976
|
AddRateStrategy(request) {
|
|
5072
4977
|
const data = exports.MsgAddRateStrategy.encode(request).finish();
|
|
@@ -5278,11 +5183,6 @@ class MsgClientImpl {
|
|
|
5278
5183
|
const promise = this.rpc.request("Switcheo.carbon.cdp.Msg", "RemoveAccountEMode", data);
|
|
5279
5184
|
return promise.then((data) => exports.MsgRemoveAccountEModeResponse.decode(new minimal_1.default.Reader(data)));
|
|
5280
5185
|
}
|
|
5281
|
-
UpdateParams(request) {
|
|
5282
|
-
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
5283
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Msg", "UpdateParams", data);
|
|
5284
|
-
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
5285
|
-
}
|
|
5286
5186
|
}
|
|
5287
5187
|
exports.MsgClientImpl = MsgClientImpl;
|
|
5288
5188
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "./params";
|
|
4
|
-
import { ModuleEVMAddress, ModuleContracts } from "./evm_hooks";
|
|
5
3
|
export declare const protobufPackage = "Switcheo.carbon.evmcontract";
|
|
6
4
|
/** GenesisState defines the evm module's genesis state. */
|
|
7
5
|
export interface GenesisState {
|
|
8
|
-
/** this line is used by starport scaffolding # genesis/proto/state */
|
|
9
|
-
params?: Params;
|
|
10
|
-
moduleAddressMap: ModuleEVMAddress[];
|
|
11
|
-
moduleContracts: ModuleContracts[];
|
|
12
6
|
}
|
|
13
7
|
export declare const GenesisState: {
|
|
14
|
-
encode(
|
|
8
|
+
encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
15
9
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
16
|
-
fromJSON(
|
|
17
|
-
toJSON(
|
|
18
|
-
fromPartial(
|
|
10
|
+
fromJSON(_: any): GenesisState;
|
|
11
|
+
toJSON(_: GenesisState): unknown;
|
|
12
|
+
fromPartial(_: DeepPartial<GenesisState>): GenesisState;
|
|
19
13
|
};
|
|
20
14
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
21
15
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -7,41 +7,19 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const params_1 = require("./params");
|
|
11
|
-
const evm_hooks_1 = require("./evm_hooks");
|
|
12
10
|
exports.protobufPackage = "Switcheo.carbon.evmcontract";
|
|
13
11
|
const baseGenesisState = {};
|
|
14
12
|
exports.GenesisState = {
|
|
15
|
-
encode(
|
|
16
|
-
if (message.params !== undefined) {
|
|
17
|
-
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
18
|
-
}
|
|
19
|
-
for (const v of message.moduleAddressMap) {
|
|
20
|
-
evm_hooks_1.ModuleEVMAddress.encode(v, writer.uint32(18).fork()).ldelim();
|
|
21
|
-
}
|
|
22
|
-
for (const v of message.moduleContracts) {
|
|
23
|
-
evm_hooks_1.ModuleContracts.encode(v, writer.uint32(26).fork()).ldelim();
|
|
24
|
-
}
|
|
13
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
25
14
|
return writer;
|
|
26
15
|
},
|
|
27
16
|
decode(input, length) {
|
|
28
17
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
29
18
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
19
|
const message = Object.assign({}, baseGenesisState);
|
|
31
|
-
message.moduleAddressMap = [];
|
|
32
|
-
message.moduleContracts = [];
|
|
33
20
|
while (reader.pos < end) {
|
|
34
21
|
const tag = reader.uint32();
|
|
35
22
|
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
38
|
-
break;
|
|
39
|
-
case 2:
|
|
40
|
-
message.moduleAddressMap.push(evm_hooks_1.ModuleEVMAddress.decode(reader, reader.uint32()));
|
|
41
|
-
break;
|
|
42
|
-
case 3:
|
|
43
|
-
message.moduleContracts.push(evm_hooks_1.ModuleContracts.decode(reader, reader.uint32()));
|
|
44
|
-
break;
|
|
45
23
|
default:
|
|
46
24
|
reader.skipType(tag & 7);
|
|
47
25
|
break;
|
|
@@ -49,44 +27,16 @@ exports.GenesisState = {
|
|
|
49
27
|
}
|
|
50
28
|
return message;
|
|
51
29
|
},
|
|
52
|
-
fromJSON(
|
|
53
|
-
var _a, _b;
|
|
30
|
+
fromJSON(_) {
|
|
54
31
|
const message = Object.assign({}, baseGenesisState);
|
|
55
|
-
message.params =
|
|
56
|
-
object.params !== undefined && object.params !== null
|
|
57
|
-
? params_1.Params.fromJSON(object.params)
|
|
58
|
-
: undefined;
|
|
59
|
-
message.moduleAddressMap = ((_a = object.moduleAddressMap) !== null && _a !== void 0 ? _a : []).map((e) => evm_hooks_1.ModuleEVMAddress.fromJSON(e));
|
|
60
|
-
message.moduleContracts = ((_b = object.moduleContracts) !== null && _b !== void 0 ? _b : []).map((e) => evm_hooks_1.ModuleContracts.fromJSON(e));
|
|
61
32
|
return message;
|
|
62
33
|
},
|
|
63
|
-
toJSON(
|
|
34
|
+
toJSON(_) {
|
|
64
35
|
const obj = {};
|
|
65
|
-
message.params !== undefined &&
|
|
66
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
67
|
-
if (message.moduleAddressMap) {
|
|
68
|
-
obj.moduleAddressMap = message.moduleAddressMap.map((e) => e ? evm_hooks_1.ModuleEVMAddress.toJSON(e) : undefined);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
obj.moduleAddressMap = [];
|
|
72
|
-
}
|
|
73
|
-
if (message.moduleContracts) {
|
|
74
|
-
obj.moduleContracts = message.moduleContracts.map((e) => e ? evm_hooks_1.ModuleContracts.toJSON(e) : undefined);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
obj.moduleContracts = [];
|
|
78
|
-
}
|
|
79
36
|
return obj;
|
|
80
37
|
},
|
|
81
|
-
fromPartial(
|
|
82
|
-
var _a, _b;
|
|
38
|
+
fromPartial(_) {
|
|
83
39
|
const message = Object.assign({}, baseGenesisState);
|
|
84
|
-
message.params =
|
|
85
|
-
object.params !== undefined && object.params !== null
|
|
86
|
-
? params_1.Params.fromPartial(object.params)
|
|
87
|
-
: undefined;
|
|
88
|
-
message.moduleAddressMap = ((_a = object.moduleAddressMap) !== null && _a !== void 0 ? _a : []).map((e) => evm_hooks_1.ModuleEVMAddress.fromPartial(e));
|
|
89
|
-
message.moduleContracts = ((_b = object.moduleContracts) !== null && _b !== void 0 ? _b : []).map((e) => evm_hooks_1.ModuleContracts.fromPartial(e));
|
|
90
40
|
return message;
|
|
91
41
|
},
|
|
92
42
|
};
|
|
@@ -1,110 +1,12 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { EVMContract, ModuleEVMAddress } from "./evm_hooks";
|
|
4
1
|
export declare const protobufPackage = "Switcheo.carbon.evmcontract";
|
|
5
|
-
/** this line is used by starport scaffolding # 3 */
|
|
6
|
-
export interface QueryContractRequest {
|
|
7
|
-
contractAddress: string;
|
|
8
|
-
}
|
|
9
|
-
export interface QueryContractResponse {
|
|
10
|
-
contract?: EVMContract;
|
|
11
|
-
}
|
|
12
|
-
export interface QueryContractAllRequest {
|
|
13
|
-
}
|
|
14
|
-
export interface QueryContractAllResponse {
|
|
15
|
-
contracts: EVMContract[];
|
|
16
|
-
}
|
|
17
|
-
export interface QueryAllAddressEVMRequest {
|
|
18
|
-
}
|
|
19
|
-
export interface QueryAllAddressEVMResponse {
|
|
20
|
-
modules: ModuleEVMAddress[];
|
|
21
|
-
}
|
|
22
|
-
export interface QueryAddressEVMRequest {
|
|
23
|
-
name: string;
|
|
24
|
-
}
|
|
25
|
-
export interface QueryAddressEVMResponse {
|
|
26
|
-
address: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const QueryContractRequest: {
|
|
29
|
-
encode(message: QueryContractRequest, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryContractRequest;
|
|
31
|
-
fromJSON(object: any): QueryContractRequest;
|
|
32
|
-
toJSON(message: QueryContractRequest): unknown;
|
|
33
|
-
fromPartial(object: DeepPartial<QueryContractRequest>): QueryContractRequest;
|
|
34
|
-
};
|
|
35
|
-
export declare const QueryContractResponse: {
|
|
36
|
-
encode(message: QueryContractResponse, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryContractResponse;
|
|
38
|
-
fromJSON(object: any): QueryContractResponse;
|
|
39
|
-
toJSON(message: QueryContractResponse): unknown;
|
|
40
|
-
fromPartial(object: DeepPartial<QueryContractResponse>): QueryContractResponse;
|
|
41
|
-
};
|
|
42
|
-
export declare const QueryContractAllRequest: {
|
|
43
|
-
encode(_: QueryContractAllRequest, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryContractAllRequest;
|
|
45
|
-
fromJSON(_: any): QueryContractAllRequest;
|
|
46
|
-
toJSON(_: QueryContractAllRequest): unknown;
|
|
47
|
-
fromPartial(_: DeepPartial<QueryContractAllRequest>): QueryContractAllRequest;
|
|
48
|
-
};
|
|
49
|
-
export declare const QueryContractAllResponse: {
|
|
50
|
-
encode(message: QueryContractAllResponse, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryContractAllResponse;
|
|
52
|
-
fromJSON(object: any): QueryContractAllResponse;
|
|
53
|
-
toJSON(message: QueryContractAllResponse): unknown;
|
|
54
|
-
fromPartial(object: DeepPartial<QueryContractAllResponse>): QueryContractAllResponse;
|
|
55
|
-
};
|
|
56
|
-
export declare const QueryAllAddressEVMRequest: {
|
|
57
|
-
encode(_: QueryAllAddressEVMRequest, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllAddressEVMRequest;
|
|
59
|
-
fromJSON(_: any): QueryAllAddressEVMRequest;
|
|
60
|
-
toJSON(_: QueryAllAddressEVMRequest): unknown;
|
|
61
|
-
fromPartial(_: DeepPartial<QueryAllAddressEVMRequest>): QueryAllAddressEVMRequest;
|
|
62
|
-
};
|
|
63
|
-
export declare const QueryAllAddressEVMResponse: {
|
|
64
|
-
encode(message: QueryAllAddressEVMResponse, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllAddressEVMResponse;
|
|
66
|
-
fromJSON(object: any): QueryAllAddressEVMResponse;
|
|
67
|
-
toJSON(message: QueryAllAddressEVMResponse): unknown;
|
|
68
|
-
fromPartial(object: DeepPartial<QueryAllAddressEVMResponse>): QueryAllAddressEVMResponse;
|
|
69
|
-
};
|
|
70
|
-
export declare const QueryAddressEVMRequest: {
|
|
71
|
-
encode(message: QueryAddressEVMRequest, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAddressEVMRequest;
|
|
73
|
-
fromJSON(object: any): QueryAddressEVMRequest;
|
|
74
|
-
toJSON(message: QueryAddressEVMRequest): unknown;
|
|
75
|
-
fromPartial(object: DeepPartial<QueryAddressEVMRequest>): QueryAddressEVMRequest;
|
|
76
|
-
};
|
|
77
|
-
export declare const QueryAddressEVMResponse: {
|
|
78
|
-
encode(message: QueryAddressEVMResponse, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAddressEVMResponse;
|
|
80
|
-
fromJSON(object: any): QueryAddressEVMResponse;
|
|
81
|
-
toJSON(message: QueryAddressEVMResponse): unknown;
|
|
82
|
-
fromPartial(object: DeepPartial<QueryAddressEVMResponse>): QueryAddressEVMResponse;
|
|
83
|
-
};
|
|
84
2
|
/** Query defines the gRPC querier service. */
|
|
85
3
|
export interface Query {
|
|
86
|
-
/** Get contract version and isActive from contract address */
|
|
87
|
-
Contract(request: QueryContractRequest): Promise<QueryContractResponse>;
|
|
88
|
-
/** Get version and isActive from all deployed contracts */
|
|
89
|
-
ContractAll(request: QueryContractAllRequest): Promise<QueryContractAllResponse>;
|
|
90
|
-
/** Get the module's evm address */
|
|
91
|
-
ModuleEVMAddress(request: QueryAddressEVMRequest): Promise<QueryAddressEVMResponse>;
|
|
92
|
-
/** Get evm addresses of all modules with EVM */
|
|
93
|
-
AllModuleEVMAddress(request: QueryAllAddressEVMRequest): Promise<QueryAllAddressEVMResponse>;
|
|
94
4
|
}
|
|
95
5
|
export declare class QueryClientImpl implements Query {
|
|
96
6
|
private readonly rpc;
|
|
97
7
|
constructor(rpc: Rpc);
|
|
98
|
-
Contract(request: QueryContractRequest): Promise<QueryContractResponse>;
|
|
99
|
-
ContractAll(request: QueryContractAllRequest): Promise<QueryContractAllResponse>;
|
|
100
|
-
ModuleEVMAddress(request: QueryAddressEVMRequest): Promise<QueryAddressEVMResponse>;
|
|
101
|
-
AllModuleEVMAddress(request: QueryAllAddressEVMRequest): Promise<QueryAllAddressEVMResponse>;
|
|
102
8
|
}
|
|
103
9
|
interface Rpc {
|
|
104
10
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
105
11
|
}
|
|
106
|
-
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
107
|
-
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 {} ? {
|
|
108
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
109
|
-
} : Partial<T>;
|
|
110
12
|
export {};
|