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,17 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { DeepPartial } from "../../helpers";
|
3
|
+
/** PublicKey defines the keys available for use with Tendermint Validators */
|
4
|
+
export interface PublicKey {
|
5
|
+
ed25519?: Uint8Array;
|
6
|
+
secp256k1?: Uint8Array;
|
7
|
+
}
|
8
|
+
/** PublicKey defines the keys available for use with Tendermint Validators */
|
9
|
+
export interface PublicKeySDKType {
|
10
|
+
ed25519?: Uint8Array;
|
11
|
+
secp256k1?: Uint8Array;
|
12
|
+
}
|
13
|
+
export declare const PublicKey: {
|
14
|
+
encode(message: PublicKey, writer?: _m0.Writer): _m0.Writer;
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PublicKey;
|
16
|
+
fromPartial(object: DeepPartial<PublicKey>): PublicKey;
|
17
|
+
};
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { Long, DeepPartial } from "../../helpers";
|
3
|
+
export interface Proof {
|
4
|
+
total: Long;
|
5
|
+
index: Long;
|
6
|
+
leafHash: Uint8Array;
|
7
|
+
aunts: Uint8Array[];
|
8
|
+
}
|
9
|
+
export interface ProofSDKType {
|
10
|
+
total: Long;
|
11
|
+
index: Long;
|
12
|
+
leaf_hash: Uint8Array;
|
13
|
+
aunts: Uint8Array[];
|
14
|
+
}
|
15
|
+
export interface ValueOp {
|
16
|
+
/** Encoded in ProofOp.Key. */
|
17
|
+
key: Uint8Array;
|
18
|
+
/** To encode in ProofOp.Data */
|
19
|
+
proof?: Proof;
|
20
|
+
}
|
21
|
+
export interface ValueOpSDKType {
|
22
|
+
/** Encoded in ProofOp.Key. */
|
23
|
+
key: Uint8Array;
|
24
|
+
/** To encode in ProofOp.Data */
|
25
|
+
proof?: ProofSDKType;
|
26
|
+
}
|
27
|
+
export interface DominoOp {
|
28
|
+
key: string;
|
29
|
+
input: string;
|
30
|
+
output: string;
|
31
|
+
}
|
32
|
+
export interface DominoOpSDKType {
|
33
|
+
key: string;
|
34
|
+
input: string;
|
35
|
+
output: string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* ProofOp defines an operation used for calculating Merkle root
|
39
|
+
* The data could be arbitrary format, providing nessecary data
|
40
|
+
* for example neighbouring node hash
|
41
|
+
*/
|
42
|
+
export interface ProofOp {
|
43
|
+
type: string;
|
44
|
+
key: Uint8Array;
|
45
|
+
data: Uint8Array;
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* ProofOp defines an operation used for calculating Merkle root
|
49
|
+
* The data could be arbitrary format, providing nessecary data
|
50
|
+
* for example neighbouring node hash
|
51
|
+
*/
|
52
|
+
export interface ProofOpSDKType {
|
53
|
+
type: string;
|
54
|
+
key: Uint8Array;
|
55
|
+
data: Uint8Array;
|
56
|
+
}
|
57
|
+
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
58
|
+
export interface ProofOps {
|
59
|
+
ops: ProofOp[];
|
60
|
+
}
|
61
|
+
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
62
|
+
export interface ProofOpsSDKType {
|
63
|
+
ops: ProofOpSDKType[];
|
64
|
+
}
|
65
|
+
export declare const Proof: {
|
66
|
+
encode(message: Proof, writer?: _m0.Writer): _m0.Writer;
|
67
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Proof;
|
68
|
+
fromPartial(object: DeepPartial<Proof>): Proof;
|
69
|
+
};
|
70
|
+
export declare const ValueOp: {
|
71
|
+
encode(message: ValueOp, writer?: _m0.Writer): _m0.Writer;
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValueOp;
|
73
|
+
fromPartial(object: DeepPartial<ValueOp>): ValueOp;
|
74
|
+
};
|
75
|
+
export declare const DominoOp: {
|
76
|
+
encode(message: DominoOp, writer?: _m0.Writer): _m0.Writer;
|
77
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DominoOp;
|
78
|
+
fromPartial(object: DeepPartial<DominoOp>): DominoOp;
|
79
|
+
};
|
80
|
+
export declare const ProofOp: {
|
81
|
+
encode(message: ProofOp, writer?: _m0.Writer): _m0.Writer;
|
82
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOp;
|
83
|
+
fromPartial(object: DeepPartial<ProofOp>): ProofOp;
|
84
|
+
};
|
85
|
+
export declare const ProofOps: {
|
86
|
+
encode(message: ProofOps, writer?: _m0.Writer): _m0.Writer;
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOps;
|
88
|
+
fromPartial(object: DeepPartial<ProofOps>): ProofOps;
|
89
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { Long, DeepPartial } from "../../../helpers";
|
3
|
+
export interface BitArray {
|
4
|
+
bits: Long;
|
5
|
+
elems: Long[];
|
6
|
+
}
|
7
|
+
export interface BitArraySDKType {
|
8
|
+
bits: Long;
|
9
|
+
elems: Long[];
|
10
|
+
}
|
11
|
+
export declare const BitArray: {
|
12
|
+
encode(message: BitArray, writer?: _m0.Writer): _m0.Writer;
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BitArray;
|
14
|
+
fromPartial(object: DeepPartial<BitArray>): BitArray;
|
15
|
+
};
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { Long, DeepPartial } from "../../helpers";
|
3
|
+
export interface ProtocolVersion {
|
4
|
+
p2p: Long;
|
5
|
+
block: Long;
|
6
|
+
app: Long;
|
7
|
+
}
|
8
|
+
export interface ProtocolVersionSDKType {
|
9
|
+
p2p: Long;
|
10
|
+
block: Long;
|
11
|
+
app: Long;
|
12
|
+
}
|
13
|
+
export interface NodeInfo {
|
14
|
+
protocolVersion?: ProtocolVersion;
|
15
|
+
nodeId: string;
|
16
|
+
listenAddr: string;
|
17
|
+
network: string;
|
18
|
+
version: string;
|
19
|
+
channels: Uint8Array;
|
20
|
+
moniker: string;
|
21
|
+
other?: NodeInfoOther;
|
22
|
+
}
|
23
|
+
export interface NodeInfoSDKType {
|
24
|
+
protocol_version?: ProtocolVersionSDKType;
|
25
|
+
node_id: string;
|
26
|
+
listen_addr: string;
|
27
|
+
network: string;
|
28
|
+
version: string;
|
29
|
+
channels: Uint8Array;
|
30
|
+
moniker: string;
|
31
|
+
other?: NodeInfoOtherSDKType;
|
32
|
+
}
|
33
|
+
export interface NodeInfoOther {
|
34
|
+
txIndex: string;
|
35
|
+
rpcAddress: string;
|
36
|
+
}
|
37
|
+
export interface NodeInfoOtherSDKType {
|
38
|
+
tx_index: string;
|
39
|
+
rpc_address: string;
|
40
|
+
}
|
41
|
+
export interface PeerInfo {
|
42
|
+
id: string;
|
43
|
+
addressInfo: PeerAddressInfo[];
|
44
|
+
lastConnected?: Date;
|
45
|
+
}
|
46
|
+
export interface PeerInfoSDKType {
|
47
|
+
id: string;
|
48
|
+
address_info: PeerAddressInfoSDKType[];
|
49
|
+
last_connected?: Date;
|
50
|
+
}
|
51
|
+
export interface PeerAddressInfo {
|
52
|
+
address: string;
|
53
|
+
lastDialSuccess?: Date;
|
54
|
+
lastDialFailure?: Date;
|
55
|
+
dialFailures: number;
|
56
|
+
}
|
57
|
+
export interface PeerAddressInfoSDKType {
|
58
|
+
address: string;
|
59
|
+
last_dial_success?: Date;
|
60
|
+
last_dial_failure?: Date;
|
61
|
+
dial_failures: number;
|
62
|
+
}
|
63
|
+
export declare const ProtocolVersion: {
|
64
|
+
encode(message: ProtocolVersion, writer?: _m0.Writer): _m0.Writer;
|
65
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProtocolVersion;
|
66
|
+
fromPartial(object: DeepPartial<ProtocolVersion>): ProtocolVersion;
|
67
|
+
};
|
68
|
+
export declare const NodeInfo: {
|
69
|
+
encode(message: NodeInfo, writer?: _m0.Writer): _m0.Writer;
|
70
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NodeInfo;
|
71
|
+
fromPartial(object: DeepPartial<NodeInfo>): NodeInfo;
|
72
|
+
};
|
73
|
+
export declare const NodeInfoOther: {
|
74
|
+
encode(message: NodeInfoOther, writer?: _m0.Writer): _m0.Writer;
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NodeInfoOther;
|
76
|
+
fromPartial(object: DeepPartial<NodeInfoOther>): NodeInfoOther;
|
77
|
+
};
|
78
|
+
export declare const PeerInfo: {
|
79
|
+
encode(message: PeerInfo, writer?: _m0.Writer): _m0.Writer;
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PeerInfo;
|
81
|
+
fromPartial(object: DeepPartial<PeerInfo>): PeerInfo;
|
82
|
+
};
|
83
|
+
export declare const PeerAddressInfo: {
|
84
|
+
encode(message: PeerAddressInfo, writer?: _m0.Writer): _m0.Writer;
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PeerAddressInfo;
|
86
|
+
fromPartial(object: DeepPartial<PeerAddressInfo>): PeerAddressInfo;
|
87
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Header, HeaderSDKType, Data, DataSDKType, Commit, CommitSDKType } from "./types";
|
2
|
+
import { EvidenceList, EvidenceListSDKType } from "./evidence";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { DeepPartial } from "../../helpers";
|
5
|
+
export interface Block {
|
6
|
+
header?: Header;
|
7
|
+
data?: Data;
|
8
|
+
evidence?: EvidenceList;
|
9
|
+
lastCommit?: Commit;
|
10
|
+
}
|
11
|
+
export interface BlockSDKType {
|
12
|
+
header?: HeaderSDKType;
|
13
|
+
data?: DataSDKType;
|
14
|
+
evidence?: EvidenceListSDKType;
|
15
|
+
last_commit?: CommitSDKType;
|
16
|
+
}
|
17
|
+
export declare const Block: {
|
18
|
+
encode(message: Block, writer?: _m0.Writer): _m0.Writer;
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Block;
|
20
|
+
fromPartial(object: DeepPartial<Block>): Block;
|
21
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { Vote, VoteSDKType, LightBlock, LightBlockSDKType } from "./types";
|
2
|
+
import { Validator, ValidatorSDKType } from "./validator";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { DeepPartial, Long } from "../../helpers";
|
5
|
+
export interface Evidence {
|
6
|
+
duplicateVoteEvidence?: DuplicateVoteEvidence;
|
7
|
+
lightClientAttackEvidence?: LightClientAttackEvidence;
|
8
|
+
}
|
9
|
+
export interface EvidenceSDKType {
|
10
|
+
duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType;
|
11
|
+
light_client_attack_evidence?: LightClientAttackEvidenceSDKType;
|
12
|
+
}
|
13
|
+
/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */
|
14
|
+
export interface DuplicateVoteEvidence {
|
15
|
+
voteA?: Vote;
|
16
|
+
voteB?: Vote;
|
17
|
+
totalVotingPower: Long;
|
18
|
+
validatorPower: Long;
|
19
|
+
timestamp?: Date;
|
20
|
+
}
|
21
|
+
/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */
|
22
|
+
export interface DuplicateVoteEvidenceSDKType {
|
23
|
+
vote_a?: VoteSDKType;
|
24
|
+
vote_b?: VoteSDKType;
|
25
|
+
total_voting_power: Long;
|
26
|
+
validator_power: Long;
|
27
|
+
timestamp?: Date;
|
28
|
+
}
|
29
|
+
/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */
|
30
|
+
export interface LightClientAttackEvidence {
|
31
|
+
conflictingBlock?: LightBlock;
|
32
|
+
commonHeight: Long;
|
33
|
+
byzantineValidators: Validator[];
|
34
|
+
totalVotingPower: Long;
|
35
|
+
timestamp?: Date;
|
36
|
+
}
|
37
|
+
/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */
|
38
|
+
export interface LightClientAttackEvidenceSDKType {
|
39
|
+
conflicting_block?: LightBlockSDKType;
|
40
|
+
common_height: Long;
|
41
|
+
byzantine_validators: ValidatorSDKType[];
|
42
|
+
total_voting_power: Long;
|
43
|
+
timestamp?: Date;
|
44
|
+
}
|
45
|
+
export interface EvidenceList {
|
46
|
+
evidence: Evidence[];
|
47
|
+
}
|
48
|
+
export interface EvidenceListSDKType {
|
49
|
+
evidence: EvidenceSDKType[];
|
50
|
+
}
|
51
|
+
export declare const Evidence: {
|
52
|
+
encode(message: Evidence, writer?: _m0.Writer): _m0.Writer;
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Evidence;
|
54
|
+
fromPartial(object: DeepPartial<Evidence>): Evidence;
|
55
|
+
};
|
56
|
+
export declare const DuplicateVoteEvidence: {
|
57
|
+
encode(message: DuplicateVoteEvidence, writer?: _m0.Writer): _m0.Writer;
|
58
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DuplicateVoteEvidence;
|
59
|
+
fromPartial(object: DeepPartial<DuplicateVoteEvidence>): DuplicateVoteEvidence;
|
60
|
+
};
|
61
|
+
export declare const LightClientAttackEvidence: {
|
62
|
+
encode(message: LightClientAttackEvidence, writer?: _m0.Writer): _m0.Writer;
|
63
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LightClientAttackEvidence;
|
64
|
+
fromPartial(object: DeepPartial<LightClientAttackEvidence>): LightClientAttackEvidence;
|
65
|
+
};
|
66
|
+
export declare const EvidenceList: {
|
67
|
+
encode(message: EvidenceList, writer?: _m0.Writer): _m0.Writer;
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceList;
|
69
|
+
fromPartial(object: DeepPartial<EvidenceList>): EvidenceList;
|
70
|
+
};
|
@@ -0,0 +1,181 @@
|
|
1
|
+
import { Duration, DurationSDKType } from "../../google/protobuf/duration";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial, Long } from "../../helpers";
|
4
|
+
/**
|
5
|
+
* ConsensusParams contains consensus critical parameters that determine the
|
6
|
+
* validity of blocks.
|
7
|
+
*/
|
8
|
+
export interface ConsensusParams {
|
9
|
+
block?: BlockParams;
|
10
|
+
evidence?: EvidenceParams;
|
11
|
+
validator?: ValidatorParams;
|
12
|
+
version?: VersionParams;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* ConsensusParams contains consensus critical parameters that determine the
|
16
|
+
* validity of blocks.
|
17
|
+
*/
|
18
|
+
export interface ConsensusParamsSDKType {
|
19
|
+
block?: BlockParamsSDKType;
|
20
|
+
evidence?: EvidenceParamsSDKType;
|
21
|
+
validator?: ValidatorParamsSDKType;
|
22
|
+
version?: VersionParamsSDKType;
|
23
|
+
}
|
24
|
+
/** BlockParams contains limits on the block size. */
|
25
|
+
export interface BlockParams {
|
26
|
+
/**
|
27
|
+
* Max block size, in bytes.
|
28
|
+
* Note: must be greater than 0
|
29
|
+
*/
|
30
|
+
maxBytes: Long;
|
31
|
+
/**
|
32
|
+
* Max gas per block.
|
33
|
+
* Note: must be greater or equal to -1
|
34
|
+
*/
|
35
|
+
maxGas: Long;
|
36
|
+
/**
|
37
|
+
* Minimum time increment between consecutive blocks (in milliseconds) If the
|
38
|
+
* block header timestamp is ahead of the system clock, decrease this value.
|
39
|
+
*
|
40
|
+
* Not exposed to the application.
|
41
|
+
*/
|
42
|
+
timeIotaMs: Long;
|
43
|
+
}
|
44
|
+
/** BlockParams contains limits on the block size. */
|
45
|
+
export interface BlockParamsSDKType {
|
46
|
+
/**
|
47
|
+
* Max block size, in bytes.
|
48
|
+
* Note: must be greater than 0
|
49
|
+
*/
|
50
|
+
max_bytes: Long;
|
51
|
+
/**
|
52
|
+
* Max gas per block.
|
53
|
+
* Note: must be greater or equal to -1
|
54
|
+
*/
|
55
|
+
max_gas: Long;
|
56
|
+
/**
|
57
|
+
* Minimum time increment between consecutive blocks (in milliseconds) If the
|
58
|
+
* block header timestamp is ahead of the system clock, decrease this value.
|
59
|
+
*
|
60
|
+
* Not exposed to the application.
|
61
|
+
*/
|
62
|
+
time_iota_ms: Long;
|
63
|
+
}
|
64
|
+
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
65
|
+
export interface EvidenceParams {
|
66
|
+
/**
|
67
|
+
* Max age of evidence, in blocks.
|
68
|
+
*
|
69
|
+
* The basic formula for calculating this is: MaxAgeDuration / {average block
|
70
|
+
* time}.
|
71
|
+
*/
|
72
|
+
maxAgeNumBlocks: Long;
|
73
|
+
/**
|
74
|
+
* Max age of evidence, in time.
|
75
|
+
*
|
76
|
+
* It should correspond with an app's "unbonding period" or other similar
|
77
|
+
* mechanism for handling [Nothing-At-Stake
|
78
|
+
* attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
79
|
+
*/
|
80
|
+
maxAgeDuration?: Duration;
|
81
|
+
/**
|
82
|
+
* This sets the maximum size of total evidence in bytes that can be committed in a single block.
|
83
|
+
* and should fall comfortably under the max block bytes.
|
84
|
+
* Default is 1048576 or 1MB
|
85
|
+
*/
|
86
|
+
maxBytes: Long;
|
87
|
+
}
|
88
|
+
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
89
|
+
export interface EvidenceParamsSDKType {
|
90
|
+
/**
|
91
|
+
* Max age of evidence, in blocks.
|
92
|
+
*
|
93
|
+
* The basic formula for calculating this is: MaxAgeDuration / {average block
|
94
|
+
* time}.
|
95
|
+
*/
|
96
|
+
max_age_num_blocks: Long;
|
97
|
+
/**
|
98
|
+
* Max age of evidence, in time.
|
99
|
+
*
|
100
|
+
* It should correspond with an app's "unbonding period" or other similar
|
101
|
+
* mechanism for handling [Nothing-At-Stake
|
102
|
+
* attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
103
|
+
*/
|
104
|
+
max_age_duration?: DurationSDKType;
|
105
|
+
/**
|
106
|
+
* This sets the maximum size of total evidence in bytes that can be committed in a single block.
|
107
|
+
* and should fall comfortably under the max block bytes.
|
108
|
+
* Default is 1048576 or 1MB
|
109
|
+
*/
|
110
|
+
max_bytes: Long;
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* ValidatorParams restrict the public key types validators can use.
|
114
|
+
* NOTE: uses ABCI pubkey naming, not Amino names.
|
115
|
+
*/
|
116
|
+
export interface ValidatorParams {
|
117
|
+
pubKeyTypes: string[];
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* ValidatorParams restrict the public key types validators can use.
|
121
|
+
* NOTE: uses ABCI pubkey naming, not Amino names.
|
122
|
+
*/
|
123
|
+
export interface ValidatorParamsSDKType {
|
124
|
+
pub_key_types: string[];
|
125
|
+
}
|
126
|
+
/** VersionParams contains the ABCI application version. */
|
127
|
+
export interface VersionParams {
|
128
|
+
appVersion: Long;
|
129
|
+
}
|
130
|
+
/** VersionParams contains the ABCI application version. */
|
131
|
+
export interface VersionParamsSDKType {
|
132
|
+
app_version: Long;
|
133
|
+
}
|
134
|
+
/**
|
135
|
+
* HashedParams is a subset of ConsensusParams.
|
136
|
+
*
|
137
|
+
* It is hashed into the Header.ConsensusHash.
|
138
|
+
*/
|
139
|
+
export interface HashedParams {
|
140
|
+
blockMaxBytes: Long;
|
141
|
+
blockMaxGas: Long;
|
142
|
+
}
|
143
|
+
/**
|
144
|
+
* HashedParams is a subset of ConsensusParams.
|
145
|
+
*
|
146
|
+
* It is hashed into the Header.ConsensusHash.
|
147
|
+
*/
|
148
|
+
export interface HashedParamsSDKType {
|
149
|
+
block_max_bytes: Long;
|
150
|
+
block_max_gas: Long;
|
151
|
+
}
|
152
|
+
export declare const ConsensusParams: {
|
153
|
+
encode(message: ConsensusParams, writer?: _m0.Writer): _m0.Writer;
|
154
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams;
|
155
|
+
fromPartial(object: DeepPartial<ConsensusParams>): ConsensusParams;
|
156
|
+
};
|
157
|
+
export declare const BlockParams: {
|
158
|
+
encode(message: BlockParams, writer?: _m0.Writer): _m0.Writer;
|
159
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams;
|
160
|
+
fromPartial(object: DeepPartial<BlockParams>): BlockParams;
|
161
|
+
};
|
162
|
+
export declare const EvidenceParams: {
|
163
|
+
encode(message: EvidenceParams, writer?: _m0.Writer): _m0.Writer;
|
164
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceParams;
|
165
|
+
fromPartial(object: DeepPartial<EvidenceParams>): EvidenceParams;
|
166
|
+
};
|
167
|
+
export declare const ValidatorParams: {
|
168
|
+
encode(message: ValidatorParams, writer?: _m0.Writer): _m0.Writer;
|
169
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorParams;
|
170
|
+
fromPartial(object: DeepPartial<ValidatorParams>): ValidatorParams;
|
171
|
+
};
|
172
|
+
export declare const VersionParams: {
|
173
|
+
encode(message: VersionParams, writer?: _m0.Writer): _m0.Writer;
|
174
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): VersionParams;
|
175
|
+
fromPartial(object: DeepPartial<VersionParams>): VersionParams;
|
176
|
+
};
|
177
|
+
export declare const HashedParams: {
|
178
|
+
encode(message: HashedParams, writer?: _m0.Writer): _m0.Writer;
|
179
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HashedParams;
|
180
|
+
fromPartial(object: DeepPartial<HashedParams>): HashedParams;
|
181
|
+
};
|