juno-network 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +25545 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +8939 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +21744 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +723 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +19673 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
import { Rpc } from "../../../../helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
|
4
|
+
/** Query provides defines the gRPC querier service */
|
5
|
+
export interface Query {
|
6
|
+
/** ClientState queries an IBC light client. */
|
7
|
+
clientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
|
8
|
+
/** ClientStates queries all the IBC light clients of a chain. */
|
9
|
+
clientStates(request?: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
|
10
|
+
/**
|
11
|
+
* ConsensusState queries a consensus state associated with a client state at
|
12
|
+
* a given height.
|
13
|
+
*/
|
14
|
+
consensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
|
15
|
+
/**
|
16
|
+
* ConsensusStates queries all the consensus state associated with a given
|
17
|
+
* client.
|
18
|
+
*/
|
19
|
+
consensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
20
|
+
/** Status queries the status of an IBC client. */
|
21
|
+
clientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
22
|
+
/** ClientParams queries all parameters of the ibc client. */
|
23
|
+
clientParams(request?: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
24
|
+
/** UpgradedClientState queries an Upgraded IBC light client. */
|
25
|
+
upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
26
|
+
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
|
27
|
+
upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
|
28
|
+
}
|
29
|
+
export declare class QueryClientImpl implements Query {
|
30
|
+
private readonly rpc;
|
31
|
+
constructor(rpc: Rpc);
|
32
|
+
clientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
|
33
|
+
clientStates(request?: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
|
34
|
+
consensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
|
35
|
+
consensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
36
|
+
clientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
37
|
+
clientParams(request?: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
38
|
+
upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
39
|
+
upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
|
40
|
+
}
|
41
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
42
|
+
clientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
|
43
|
+
clientStates(request?: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
|
44
|
+
consensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
|
45
|
+
consensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
46
|
+
clientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
47
|
+
clientParams(request?: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
48
|
+
upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
49
|
+
upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
|
50
|
+
};
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx";
|
3
|
+
export interface AminoMsgCreateClient extends AminoMsg {
|
4
|
+
type: "cosmos-sdk/MsgCreateClient";
|
5
|
+
value: {
|
6
|
+
client_state: {
|
7
|
+
type_url: string;
|
8
|
+
value: Uint8Array;
|
9
|
+
};
|
10
|
+
consensus_state: {
|
11
|
+
type_url: string;
|
12
|
+
value: Uint8Array;
|
13
|
+
};
|
14
|
+
signer: string;
|
15
|
+
};
|
16
|
+
}
|
17
|
+
export interface AminoMsgUpdateClient extends AminoMsg {
|
18
|
+
type: "cosmos-sdk/MsgUpdateClient";
|
19
|
+
value: {
|
20
|
+
client_id: string;
|
21
|
+
header: {
|
22
|
+
type_url: string;
|
23
|
+
value: Uint8Array;
|
24
|
+
};
|
25
|
+
signer: string;
|
26
|
+
};
|
27
|
+
}
|
28
|
+
export interface AminoMsgUpgradeClient extends AminoMsg {
|
29
|
+
type: "cosmos-sdk/MsgUpgradeClient";
|
30
|
+
value: {
|
31
|
+
client_id: string;
|
32
|
+
client_state: {
|
33
|
+
type_url: string;
|
34
|
+
value: Uint8Array;
|
35
|
+
};
|
36
|
+
consensus_state: {
|
37
|
+
type_url: string;
|
38
|
+
value: Uint8Array;
|
39
|
+
};
|
40
|
+
proof_upgrade_client: Uint8Array;
|
41
|
+
proof_upgrade_consensus_state: Uint8Array;
|
42
|
+
signer: string;
|
43
|
+
};
|
44
|
+
}
|
45
|
+
export interface AminoMsgSubmitMisbehaviour extends AminoMsg {
|
46
|
+
type: "cosmos-sdk/MsgSubmitMisbehaviour";
|
47
|
+
value: {
|
48
|
+
client_id: string;
|
49
|
+
misbehaviour: {
|
50
|
+
type_url: string;
|
51
|
+
value: Uint8Array;
|
52
|
+
};
|
53
|
+
signer: string;
|
54
|
+
};
|
55
|
+
}
|
56
|
+
export declare const AminoConverter: {
|
57
|
+
"/ibc.core.client.v1.MsgCreateClient": {
|
58
|
+
aminoType: string;
|
59
|
+
toAmino: ({ clientState, consensusState, signer }: MsgCreateClient) => AminoMsgCreateClient["value"];
|
60
|
+
fromAmino: ({ client_state, consensus_state, signer }: AminoMsgCreateClient["value"]) => MsgCreateClient;
|
61
|
+
};
|
62
|
+
"/ibc.core.client.v1.MsgUpdateClient": {
|
63
|
+
aminoType: string;
|
64
|
+
toAmino: ({ clientId, header, signer }: MsgUpdateClient) => AminoMsgUpdateClient["value"];
|
65
|
+
fromAmino: ({ client_id, header, signer }: AminoMsgUpdateClient["value"]) => MsgUpdateClient;
|
66
|
+
};
|
67
|
+
"/ibc.core.client.v1.MsgUpgradeClient": {
|
68
|
+
aminoType: string;
|
69
|
+
toAmino: ({ clientId, clientState, consensusState, proofUpgradeClient, proofUpgradeConsensusState, signer }: MsgUpgradeClient) => AminoMsgUpgradeClient["value"];
|
70
|
+
fromAmino: ({ client_id, client_state, consensus_state, proof_upgrade_client, proof_upgrade_consensus_state, signer }: AminoMsgUpgradeClient["value"]) => MsgUpgradeClient;
|
71
|
+
};
|
72
|
+
"/ibc.core.client.v1.MsgSubmitMisbehaviour": {
|
73
|
+
aminoType: string;
|
74
|
+
toAmino: ({ clientId, misbehaviour, signer }: MsgSubmitMisbehaviour) => AminoMsgSubmitMisbehaviour["value"];
|
75
|
+
fromAmino: ({ client_id, misbehaviour, signer }: AminoMsgSubmitMisbehaviour["value"]) => MsgSubmitMisbehaviour;
|
76
|
+
};
|
77
|
+
};
|
@@ -0,0 +1,187 @@
|
|
1
|
+
import { Any, AnySDKType } from "../../../../google/protobuf/any";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "../../../../helpers";
|
4
|
+
/** MsgCreateClient defines a message to create an IBC client */
|
5
|
+
export interface MsgCreateClient {
|
6
|
+
/** light client state */
|
7
|
+
clientState?: Any;
|
8
|
+
/**
|
9
|
+
* consensus state associated with the client that corresponds to a given
|
10
|
+
* height.
|
11
|
+
*/
|
12
|
+
consensusState?: Any;
|
13
|
+
/** signer address */
|
14
|
+
signer: string;
|
15
|
+
}
|
16
|
+
/** MsgCreateClient defines a message to create an IBC client */
|
17
|
+
export interface MsgCreateClientSDKType {
|
18
|
+
/** light client state */
|
19
|
+
client_state?: AnySDKType;
|
20
|
+
/**
|
21
|
+
* consensus state associated with the client that corresponds to a given
|
22
|
+
* height.
|
23
|
+
*/
|
24
|
+
consensus_state?: AnySDKType;
|
25
|
+
/** signer address */
|
26
|
+
signer: string;
|
27
|
+
}
|
28
|
+
/** MsgCreateClientResponse defines the Msg/CreateClient response type. */
|
29
|
+
export interface MsgCreateClientResponse {
|
30
|
+
}
|
31
|
+
/** MsgCreateClientResponse defines the Msg/CreateClient response type. */
|
32
|
+
export interface MsgCreateClientResponseSDKType {
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* MsgUpdateClient defines an sdk.Msg to update a IBC client state using
|
36
|
+
* the given header.
|
37
|
+
*/
|
38
|
+
export interface MsgUpdateClient {
|
39
|
+
/** client unique identifier */
|
40
|
+
clientId: string;
|
41
|
+
/** header to update the light client */
|
42
|
+
header?: Any;
|
43
|
+
/** signer address */
|
44
|
+
signer: string;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* MsgUpdateClient defines an sdk.Msg to update a IBC client state using
|
48
|
+
* the given header.
|
49
|
+
*/
|
50
|
+
export interface MsgUpdateClientSDKType {
|
51
|
+
/** client unique identifier */
|
52
|
+
client_id: string;
|
53
|
+
/** header to update the light client */
|
54
|
+
header?: AnySDKType;
|
55
|
+
/** signer address */
|
56
|
+
signer: string;
|
57
|
+
}
|
58
|
+
/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */
|
59
|
+
export interface MsgUpdateClientResponse {
|
60
|
+
}
|
61
|
+
/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */
|
62
|
+
export interface MsgUpdateClientResponseSDKType {
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
* MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client
|
66
|
+
* state
|
67
|
+
*/
|
68
|
+
export interface MsgUpgradeClient {
|
69
|
+
/** client unique identifier */
|
70
|
+
clientId: string;
|
71
|
+
/** upgraded client state */
|
72
|
+
clientState?: Any;
|
73
|
+
/**
|
74
|
+
* upgraded consensus state, only contains enough information to serve as a
|
75
|
+
* basis of trust in update logic
|
76
|
+
*/
|
77
|
+
consensusState?: Any;
|
78
|
+
/** proof that old chain committed to new client */
|
79
|
+
proofUpgradeClient: Uint8Array;
|
80
|
+
/** proof that old chain committed to new consensus state */
|
81
|
+
proofUpgradeConsensusState: Uint8Array;
|
82
|
+
/** signer address */
|
83
|
+
signer: string;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client
|
87
|
+
* state
|
88
|
+
*/
|
89
|
+
export interface MsgUpgradeClientSDKType {
|
90
|
+
/** client unique identifier */
|
91
|
+
client_id: string;
|
92
|
+
/** upgraded client state */
|
93
|
+
client_state?: AnySDKType;
|
94
|
+
/**
|
95
|
+
* upgraded consensus state, only contains enough information to serve as a
|
96
|
+
* basis of trust in update logic
|
97
|
+
*/
|
98
|
+
consensus_state?: AnySDKType;
|
99
|
+
/** proof that old chain committed to new client */
|
100
|
+
proof_upgrade_client: Uint8Array;
|
101
|
+
/** proof that old chain committed to new consensus state */
|
102
|
+
proof_upgrade_consensus_state: Uint8Array;
|
103
|
+
/** signer address */
|
104
|
+
signer: string;
|
105
|
+
}
|
106
|
+
/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */
|
107
|
+
export interface MsgUpgradeClientResponse {
|
108
|
+
}
|
109
|
+
/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */
|
110
|
+
export interface MsgUpgradeClientResponseSDKType {
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
|
114
|
+
* light client misbehaviour.
|
115
|
+
*/
|
116
|
+
export interface MsgSubmitMisbehaviour {
|
117
|
+
/** client unique identifier */
|
118
|
+
clientId: string;
|
119
|
+
/** misbehaviour used for freezing the light client */
|
120
|
+
misbehaviour?: Any;
|
121
|
+
/** signer address */
|
122
|
+
signer: string;
|
123
|
+
}
|
124
|
+
/**
|
125
|
+
* MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
|
126
|
+
* light client misbehaviour.
|
127
|
+
*/
|
128
|
+
export interface MsgSubmitMisbehaviourSDKType {
|
129
|
+
/** client unique identifier */
|
130
|
+
client_id: string;
|
131
|
+
/** misbehaviour used for freezing the light client */
|
132
|
+
misbehaviour?: AnySDKType;
|
133
|
+
/** signer address */
|
134
|
+
signer: string;
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response
|
138
|
+
* type.
|
139
|
+
*/
|
140
|
+
export interface MsgSubmitMisbehaviourResponse {
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response
|
144
|
+
* type.
|
145
|
+
*/
|
146
|
+
export interface MsgSubmitMisbehaviourResponseSDKType {
|
147
|
+
}
|
148
|
+
export declare const MsgCreateClient: {
|
149
|
+
encode(message: MsgCreateClient, writer?: _m0.Writer): _m0.Writer;
|
150
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClient;
|
151
|
+
fromPartial(object: DeepPartial<MsgCreateClient>): MsgCreateClient;
|
152
|
+
};
|
153
|
+
export declare const MsgCreateClientResponse: {
|
154
|
+
encode(_: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClientResponse;
|
156
|
+
fromPartial(_: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
|
157
|
+
};
|
158
|
+
export declare const MsgUpdateClient: {
|
159
|
+
encode(message: MsgUpdateClient, writer?: _m0.Writer): _m0.Writer;
|
160
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClient;
|
161
|
+
fromPartial(object: DeepPartial<MsgUpdateClient>): MsgUpdateClient;
|
162
|
+
};
|
163
|
+
export declare const MsgUpdateClientResponse: {
|
164
|
+
encode(_: MsgUpdateClientResponse, writer?: _m0.Writer): _m0.Writer;
|
165
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClientResponse;
|
166
|
+
fromPartial(_: DeepPartial<MsgUpdateClientResponse>): MsgUpdateClientResponse;
|
167
|
+
};
|
168
|
+
export declare const MsgUpgradeClient: {
|
169
|
+
encode(message: MsgUpgradeClient, writer?: _m0.Writer): _m0.Writer;
|
170
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClient;
|
171
|
+
fromPartial(object: DeepPartial<MsgUpgradeClient>): MsgUpgradeClient;
|
172
|
+
};
|
173
|
+
export declare const MsgUpgradeClientResponse: {
|
174
|
+
encode(_: MsgUpgradeClientResponse, writer?: _m0.Writer): _m0.Writer;
|
175
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClientResponse;
|
176
|
+
fromPartial(_: DeepPartial<MsgUpgradeClientResponse>): MsgUpgradeClientResponse;
|
177
|
+
};
|
178
|
+
export declare const MsgSubmitMisbehaviour: {
|
179
|
+
encode(message: MsgSubmitMisbehaviour, writer?: _m0.Writer): _m0.Writer;
|
180
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviour;
|
181
|
+
fromPartial(object: DeepPartial<MsgSubmitMisbehaviour>): MsgSubmitMisbehaviour;
|
182
|
+
};
|
183
|
+
export declare const MsgSubmitMisbehaviourResponse: {
|
184
|
+
encode(_: MsgSubmitMisbehaviourResponse, writer?: _m0.Writer): _m0.Writer;
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse;
|
186
|
+
fromPartial(_: DeepPartial<MsgSubmitMisbehaviourResponse>): MsgSubmitMisbehaviourResponse;
|
187
|
+
};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { GeneratedType, Registry } from "@cosmjs/proto-signing";
|
2
|
+
import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx";
|
3
|
+
export declare const registry: ReadonlyArray<[string, GeneratedType]>;
|
4
|
+
export declare const load: (protoRegistry: Registry) => void;
|
5
|
+
export declare const MessageComposer: {
|
6
|
+
encoded: {
|
7
|
+
createClient(value: MsgCreateClient): {
|
8
|
+
typeUrl: string;
|
9
|
+
value: Uint8Array;
|
10
|
+
};
|
11
|
+
updateClient(value: MsgUpdateClient): {
|
12
|
+
typeUrl: string;
|
13
|
+
value: Uint8Array;
|
14
|
+
};
|
15
|
+
upgradeClient(value: MsgUpgradeClient): {
|
16
|
+
typeUrl: string;
|
17
|
+
value: Uint8Array;
|
18
|
+
};
|
19
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
20
|
+
typeUrl: string;
|
21
|
+
value: Uint8Array;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
withTypeUrl: {
|
25
|
+
createClient(value: MsgCreateClient): {
|
26
|
+
typeUrl: string;
|
27
|
+
value: MsgCreateClient;
|
28
|
+
};
|
29
|
+
updateClient(value: MsgUpdateClient): {
|
30
|
+
typeUrl: string;
|
31
|
+
value: MsgUpdateClient;
|
32
|
+
};
|
33
|
+
upgradeClient(value: MsgUpgradeClient): {
|
34
|
+
typeUrl: string;
|
35
|
+
value: MsgUpgradeClient;
|
36
|
+
};
|
37
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
38
|
+
typeUrl: string;
|
39
|
+
value: MsgSubmitMisbehaviour;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
fromPartial: {
|
43
|
+
createClient(value: MsgCreateClient): {
|
44
|
+
typeUrl: string;
|
45
|
+
value: MsgCreateClient;
|
46
|
+
};
|
47
|
+
updateClient(value: MsgUpdateClient): {
|
48
|
+
typeUrl: string;
|
49
|
+
value: MsgUpdateClient;
|
50
|
+
};
|
51
|
+
upgradeClient(value: MsgUpgradeClient): {
|
52
|
+
typeUrl: string;
|
53
|
+
value: MsgUpgradeClient;
|
54
|
+
};
|
55
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
56
|
+
typeUrl: string;
|
57
|
+
value: MsgSubmitMisbehaviour;
|
58
|
+
};
|
59
|
+
};
|
60
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Rpc } from "../../../../helpers";
|
2
|
+
import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
|
3
|
+
/** Msg defines the ibc/client Msg service. */
|
4
|
+
export interface Msg {
|
5
|
+
/** CreateClient defines a rpc handler method for MsgCreateClient. */
|
6
|
+
createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
|
7
|
+
/** UpdateClient defines a rpc handler method for MsgUpdateClient. */
|
8
|
+
updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
|
9
|
+
/** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
|
10
|
+
upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
|
11
|
+
/** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
|
12
|
+
submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
|
13
|
+
}
|
14
|
+
export declare class MsgClientImpl implements Msg {
|
15
|
+
private readonly rpc;
|
16
|
+
constructor(rpc: Rpc);
|
17
|
+
createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
|
18
|
+
updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
|
19
|
+
upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
|
20
|
+
submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
|
21
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { CommitmentProof, CommitmentProofSDKType } from "../../../../confio/proofs";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "../../../../helpers";
|
4
|
+
/**
|
5
|
+
* MerkleRoot defines a merkle root hash.
|
6
|
+
* In the Cosmos SDK, the AppHash of a block header becomes the root.
|
7
|
+
*/
|
8
|
+
export interface MerkleRoot {
|
9
|
+
hash: Uint8Array;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* MerkleRoot defines a merkle root hash.
|
13
|
+
* In the Cosmos SDK, the AppHash of a block header becomes the root.
|
14
|
+
*/
|
15
|
+
export interface MerkleRootSDKType {
|
16
|
+
hash: Uint8Array;
|
17
|
+
}
|
18
|
+
/**
|
19
|
+
* MerklePrefix is merkle path prefixed to the key.
|
20
|
+
* The constructed key from the Path and the key will be append(Path.KeyPath,
|
21
|
+
* append(Path.KeyPrefix, key...))
|
22
|
+
*/
|
23
|
+
export interface MerklePrefix {
|
24
|
+
keyPrefix: Uint8Array;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* MerklePrefix is merkle path prefixed to the key.
|
28
|
+
* The constructed key from the Path and the key will be append(Path.KeyPath,
|
29
|
+
* append(Path.KeyPrefix, key...))
|
30
|
+
*/
|
31
|
+
export interface MerklePrefixSDKType {
|
32
|
+
key_prefix: Uint8Array;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* MerklePath is the path used to verify commitment proofs, which can be an
|
36
|
+
* arbitrary structured object (defined by a commitment type).
|
37
|
+
* MerklePath is represented from root-to-leaf
|
38
|
+
*/
|
39
|
+
export interface MerklePath {
|
40
|
+
keyPath: string[];
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* MerklePath is the path used to verify commitment proofs, which can be an
|
44
|
+
* arbitrary structured object (defined by a commitment type).
|
45
|
+
* MerklePath is represented from root-to-leaf
|
46
|
+
*/
|
47
|
+
export interface MerklePathSDKType {
|
48
|
+
key_path: string[];
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* MerkleProof is a wrapper type over a chain of CommitmentProofs.
|
52
|
+
* It demonstrates membership or non-membership for an element or set of
|
53
|
+
* elements, verifiable in conjunction with a known commitment root. Proofs
|
54
|
+
* should be succinct.
|
55
|
+
* MerkleProofs are ordered from leaf-to-root
|
56
|
+
*/
|
57
|
+
export interface MerkleProof {
|
58
|
+
proofs: CommitmentProof[];
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* MerkleProof is a wrapper type over a chain of CommitmentProofs.
|
62
|
+
* It demonstrates membership or non-membership for an element or set of
|
63
|
+
* elements, verifiable in conjunction with a known commitment root. Proofs
|
64
|
+
* should be succinct.
|
65
|
+
* MerkleProofs are ordered from leaf-to-root
|
66
|
+
*/
|
67
|
+
export interface MerkleProofSDKType {
|
68
|
+
proofs: CommitmentProofSDKType[];
|
69
|
+
}
|
70
|
+
export declare const MerkleRoot: {
|
71
|
+
encode(message: MerkleRoot, writer?: _m0.Writer): _m0.Writer;
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MerkleRoot;
|
73
|
+
fromPartial(object: DeepPartial<MerkleRoot>): MerkleRoot;
|
74
|
+
};
|
75
|
+
export declare const MerklePrefix: {
|
76
|
+
encode(message: MerklePrefix, writer?: _m0.Writer): _m0.Writer;
|
77
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePrefix;
|
78
|
+
fromPartial(object: DeepPartial<MerklePrefix>): MerklePrefix;
|
79
|
+
};
|
80
|
+
export declare const MerklePath: {
|
81
|
+
encode(message: MerklePath, writer?: _m0.Writer): _m0.Writer;
|
82
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePath;
|
83
|
+
fromPartial(object: DeepPartial<MerklePath>): MerklePath;
|
84
|
+
};
|
85
|
+
export declare const MerkleProof: {
|
86
|
+
encode(message: MerkleProof, writer?: _m0.Writer): _m0.Writer;
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MerkleProof;
|
88
|
+
fromPartial(object: DeepPartial<MerkleProof>): MerkleProof;
|
89
|
+
};
|