@agoric/cosmic-proto 0.4.1-dev-841f246.0 → 0.4.1-dev-203d4d7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +6 -5
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +3 -0
- package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
- package/dist/codegen/cosmos/bundle.d.ts +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +31 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +65 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.d.ts +95 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +242 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +108 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +313 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +150 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +500 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +34 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +82 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.d.ts +47 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +113 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.d.ts +29 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +85 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.d.ts +49 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +118 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.d.ts +66 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +189 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +67 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +177 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +29 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +95 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +282 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js +633 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.d.ts +80 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +146 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.d.ts +86 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +219 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.d.ts +45 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +102 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js.map +1 -0
- package/dist/codegen/ibc/bundle.d.ts +2266 -122
- package/dist/codegen/ibc/bundle.js +124 -4
- package/dist/codegen/ibc/bundle.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.d.ts +73 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js +280 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/query.d.ts +914 -0
- package/dist/codegen/ibc/core/channel/v1/query.js +2343 -0
- package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/tx.d.ts +604 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js +1744 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/genesis.d.ts +104 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js +300 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/query.d.ts +577 -0
- package/dist/codegen/ibc/core/client/v1/query.js +1282 -0
- package/dist/codegen/ibc/core/client/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/tx.d.ts +245 -0
- package/dist/codegen/ibc/core/client/v1/tx.js +586 -0
- package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +128 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +258 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/connection.d.ts +272 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js +677 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.d.ts +32 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js +121 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/query.d.ts +388 -0
- package/dist/codegen/ibc/core/connection/v1/query.js +951 -0
- package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/tx.d.ts +286 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js +842 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +35 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +77 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1519 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1513 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +231 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +624 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -0
- package/dist/codegen/ics23/bundle.d.ts +154 -0
- package/dist/codegen/ics23/bundle.js +6 -0
- package/dist/codegen/ics23/bundle.js.map +1 -0
- package/dist/codegen/index.d.ts +1 -0
- package/dist/codegen/index.js +1 -0
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/proofs.d.ts +569 -0
- package/dist/codegen/proofs.js +1435 -0
- package/dist/codegen/proofs.js.map +1 -0
- package/dist/codegen/tendermint/bundle.d.ts +716 -716
- package/dist/codegen/tendermint/bundle.js +22 -22
- package/dist/codegen/tendermint/bundle.js.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { CommitmentProof, CommitmentProofSDKType } from '../../../../proofs.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
3
|
+
/**
|
|
4
|
+
* MerkleRoot defines a merkle root hash.
|
|
5
|
+
* In the Cosmos SDK, the AppHash of a block header becomes the root.
|
|
6
|
+
*/
|
|
7
|
+
export interface MerkleRoot {
|
|
8
|
+
hash: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
export interface MerkleRootProtoMsg {
|
|
11
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleRoot';
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* MerkleRoot defines a merkle root hash.
|
|
16
|
+
* In the Cosmos SDK, the AppHash of a block header becomes the root.
|
|
17
|
+
*/
|
|
18
|
+
export interface MerkleRootSDKType {
|
|
19
|
+
hash: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* MerklePrefix is merkle path prefixed to the key.
|
|
23
|
+
* The constructed key from the Path and the key will be append(Path.KeyPath,
|
|
24
|
+
* append(Path.KeyPrefix, key...))
|
|
25
|
+
*/
|
|
26
|
+
export interface MerklePrefix {
|
|
27
|
+
keyPrefix: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
export interface MerklePrefixProtoMsg {
|
|
30
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePrefix';
|
|
31
|
+
value: Uint8Array;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* MerklePrefix is merkle path prefixed to the key.
|
|
35
|
+
* The constructed key from the Path and the key will be append(Path.KeyPath,
|
|
36
|
+
* append(Path.KeyPrefix, key...))
|
|
37
|
+
*/
|
|
38
|
+
export interface MerklePrefixSDKType {
|
|
39
|
+
key_prefix: Uint8Array;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* MerklePath is the path used to verify commitment proofs, which can be an
|
|
43
|
+
* arbitrary structured object (defined by a commitment type).
|
|
44
|
+
* MerklePath is represented from root-to-leaf
|
|
45
|
+
*/
|
|
46
|
+
export interface MerklePath {
|
|
47
|
+
keyPath: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface MerklePathProtoMsg {
|
|
50
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePath';
|
|
51
|
+
value: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* MerklePath is the path used to verify commitment proofs, which can be an
|
|
55
|
+
* arbitrary structured object (defined by a commitment type).
|
|
56
|
+
* MerklePath is represented from root-to-leaf
|
|
57
|
+
*/
|
|
58
|
+
export interface MerklePathSDKType {
|
|
59
|
+
key_path: string[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* MerkleProof is a wrapper type over a chain of CommitmentProofs.
|
|
63
|
+
* It demonstrates membership or non-membership for an element or set of
|
|
64
|
+
* elements, verifiable in conjunction with a known commitment root. Proofs
|
|
65
|
+
* should be succinct.
|
|
66
|
+
* MerkleProofs are ordered from leaf-to-root
|
|
67
|
+
*/
|
|
68
|
+
export interface MerkleProof {
|
|
69
|
+
proofs: CommitmentProof[];
|
|
70
|
+
}
|
|
71
|
+
export interface MerkleProofProtoMsg {
|
|
72
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleProof';
|
|
73
|
+
value: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* MerkleProof is a wrapper type over a chain of CommitmentProofs.
|
|
77
|
+
* It demonstrates membership or non-membership for an element or set of
|
|
78
|
+
* elements, verifiable in conjunction with a known commitment root. Proofs
|
|
79
|
+
* should be succinct.
|
|
80
|
+
* MerkleProofs are ordered from leaf-to-root
|
|
81
|
+
*/
|
|
82
|
+
export interface MerkleProofSDKType {
|
|
83
|
+
proofs: CommitmentProofSDKType[];
|
|
84
|
+
}
|
|
85
|
+
export declare const MerkleRoot: {
|
|
86
|
+
typeUrl: string;
|
|
87
|
+
encode(message: MerkleRoot, writer?: BinaryWriter): BinaryWriter;
|
|
88
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MerkleRoot;
|
|
89
|
+
fromJSON(object: any): MerkleRoot;
|
|
90
|
+
toJSON(message: MerkleRoot): unknown;
|
|
91
|
+
fromPartial(object: Partial<MerkleRoot>): MerkleRoot;
|
|
92
|
+
fromProtoMsg(message: MerkleRootProtoMsg): MerkleRoot;
|
|
93
|
+
toProto(message: MerkleRoot): Uint8Array;
|
|
94
|
+
toProtoMsg(message: MerkleRoot): MerkleRootProtoMsg;
|
|
95
|
+
};
|
|
96
|
+
export declare const MerklePrefix: {
|
|
97
|
+
typeUrl: string;
|
|
98
|
+
encode(message: MerklePrefix, writer?: BinaryWriter): BinaryWriter;
|
|
99
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MerklePrefix;
|
|
100
|
+
fromJSON(object: any): MerklePrefix;
|
|
101
|
+
toJSON(message: MerklePrefix): unknown;
|
|
102
|
+
fromPartial(object: Partial<MerklePrefix>): MerklePrefix;
|
|
103
|
+
fromProtoMsg(message: MerklePrefixProtoMsg): MerklePrefix;
|
|
104
|
+
toProto(message: MerklePrefix): Uint8Array;
|
|
105
|
+
toProtoMsg(message: MerklePrefix): MerklePrefixProtoMsg;
|
|
106
|
+
};
|
|
107
|
+
export declare const MerklePath: {
|
|
108
|
+
typeUrl: string;
|
|
109
|
+
encode(message: MerklePath, writer?: BinaryWriter): BinaryWriter;
|
|
110
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MerklePath;
|
|
111
|
+
fromJSON(object: any): MerklePath;
|
|
112
|
+
toJSON(message: MerklePath): unknown;
|
|
113
|
+
fromPartial(object: Partial<MerklePath>): MerklePath;
|
|
114
|
+
fromProtoMsg(message: MerklePathProtoMsg): MerklePath;
|
|
115
|
+
toProto(message: MerklePath): Uint8Array;
|
|
116
|
+
toProtoMsg(message: MerklePath): MerklePathProtoMsg;
|
|
117
|
+
};
|
|
118
|
+
export declare const MerkleProof: {
|
|
119
|
+
typeUrl: string;
|
|
120
|
+
encode(message: MerkleProof, writer?: BinaryWriter): BinaryWriter;
|
|
121
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MerkleProof;
|
|
122
|
+
fromJSON(object: any): MerkleProof;
|
|
123
|
+
toJSON(message: MerkleProof): unknown;
|
|
124
|
+
fromPartial(object: Partial<MerkleProof>): MerkleProof;
|
|
125
|
+
fromProtoMsg(message: MerkleProofProtoMsg): MerkleProof;
|
|
126
|
+
toProto(message: MerkleProof): Uint8Array;
|
|
127
|
+
toProtoMsg(message: MerkleProof): MerkleProofProtoMsg;
|
|
128
|
+
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { CommitmentProof } from '../../../../proofs.js';
|
|
3
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
4
|
+
import { isSet, bytesFromBase64, base64FromBytes, } from '../../../../helpers.js';
|
|
5
|
+
function createBaseMerkleRoot() {
|
|
6
|
+
return {
|
|
7
|
+
hash: new Uint8Array(),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export const MerkleRoot = {
|
|
11
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleRoot',
|
|
12
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
+
if (message.hash.length !== 0) {
|
|
14
|
+
writer.uint32(10).bytes(message.hash);
|
|
15
|
+
}
|
|
16
|
+
return writer;
|
|
17
|
+
},
|
|
18
|
+
decode(input, length) {
|
|
19
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
21
|
+
const message = createBaseMerkleRoot();
|
|
22
|
+
while (reader.pos < end) {
|
|
23
|
+
const tag = reader.uint32();
|
|
24
|
+
switch (tag >>> 3) {
|
|
25
|
+
case 1:
|
|
26
|
+
message.hash = reader.bytes();
|
|
27
|
+
break;
|
|
28
|
+
default:
|
|
29
|
+
reader.skipType(tag & 7);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
fromJSON(object) {
|
|
36
|
+
return {
|
|
37
|
+
hash: isSet(object.hash)
|
|
38
|
+
? bytesFromBase64(object.hash)
|
|
39
|
+
: new Uint8Array(),
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
toJSON(message) {
|
|
43
|
+
const obj = {};
|
|
44
|
+
message.hash !== undefined &&
|
|
45
|
+
(obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
46
|
+
return obj;
|
|
47
|
+
},
|
|
48
|
+
fromPartial(object) {
|
|
49
|
+
const message = createBaseMerkleRoot();
|
|
50
|
+
message.hash = object.hash ?? new Uint8Array();
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
fromProtoMsg(message) {
|
|
54
|
+
return MerkleRoot.decode(message.value);
|
|
55
|
+
},
|
|
56
|
+
toProto(message) {
|
|
57
|
+
return MerkleRoot.encode(message).finish();
|
|
58
|
+
},
|
|
59
|
+
toProtoMsg(message) {
|
|
60
|
+
return {
|
|
61
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleRoot',
|
|
62
|
+
value: MerkleRoot.encode(message).finish(),
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
function createBaseMerklePrefix() {
|
|
67
|
+
return {
|
|
68
|
+
keyPrefix: new Uint8Array(),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export const MerklePrefix = {
|
|
72
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePrefix',
|
|
73
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
74
|
+
if (message.keyPrefix.length !== 0) {
|
|
75
|
+
writer.uint32(10).bytes(message.keyPrefix);
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
decode(input, length) {
|
|
80
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
81
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBaseMerklePrefix();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1:
|
|
87
|
+
message.keyPrefix = reader.bytes();
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
reader.skipType(tag & 7);
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return {
|
|
98
|
+
keyPrefix: isSet(object.keyPrefix)
|
|
99
|
+
? bytesFromBase64(object.keyPrefix)
|
|
100
|
+
: new Uint8Array(),
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
message.keyPrefix !== undefined &&
|
|
106
|
+
(obj.keyPrefix = base64FromBytes(message.keyPrefix !== undefined ? message.keyPrefix : new Uint8Array()));
|
|
107
|
+
return obj;
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaseMerklePrefix();
|
|
111
|
+
message.keyPrefix = object.keyPrefix ?? new Uint8Array();
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
fromProtoMsg(message) {
|
|
115
|
+
return MerklePrefix.decode(message.value);
|
|
116
|
+
},
|
|
117
|
+
toProto(message) {
|
|
118
|
+
return MerklePrefix.encode(message).finish();
|
|
119
|
+
},
|
|
120
|
+
toProtoMsg(message) {
|
|
121
|
+
return {
|
|
122
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePrefix',
|
|
123
|
+
value: MerklePrefix.encode(message).finish(),
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
function createBaseMerklePath() {
|
|
128
|
+
return {
|
|
129
|
+
keyPath: [],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export const MerklePath = {
|
|
133
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePath',
|
|
134
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
135
|
+
for (const v of message.keyPath) {
|
|
136
|
+
writer.uint32(10).string(v);
|
|
137
|
+
}
|
|
138
|
+
return writer;
|
|
139
|
+
},
|
|
140
|
+
decode(input, length) {
|
|
141
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
142
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
143
|
+
const message = createBaseMerklePath();
|
|
144
|
+
while (reader.pos < end) {
|
|
145
|
+
const tag = reader.uint32();
|
|
146
|
+
switch (tag >>> 3) {
|
|
147
|
+
case 1:
|
|
148
|
+
message.keyPath.push(reader.string());
|
|
149
|
+
break;
|
|
150
|
+
default:
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
fromJSON(object) {
|
|
158
|
+
return {
|
|
159
|
+
keyPath: Array.isArray(object?.keyPath)
|
|
160
|
+
? object.keyPath.map((e) => String(e))
|
|
161
|
+
: [],
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
toJSON(message) {
|
|
165
|
+
const obj = {};
|
|
166
|
+
if (message.keyPath) {
|
|
167
|
+
obj.keyPath = message.keyPath.map(e => e);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
obj.keyPath = [];
|
|
171
|
+
}
|
|
172
|
+
return obj;
|
|
173
|
+
},
|
|
174
|
+
fromPartial(object) {
|
|
175
|
+
const message = createBaseMerklePath();
|
|
176
|
+
message.keyPath = object.keyPath?.map(e => e) || [];
|
|
177
|
+
return message;
|
|
178
|
+
},
|
|
179
|
+
fromProtoMsg(message) {
|
|
180
|
+
return MerklePath.decode(message.value);
|
|
181
|
+
},
|
|
182
|
+
toProto(message) {
|
|
183
|
+
return MerklePath.encode(message).finish();
|
|
184
|
+
},
|
|
185
|
+
toProtoMsg(message) {
|
|
186
|
+
return {
|
|
187
|
+
typeUrl: '/ibc.core.commitment.v1.MerklePath',
|
|
188
|
+
value: MerklePath.encode(message).finish(),
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
function createBaseMerkleProof() {
|
|
193
|
+
return {
|
|
194
|
+
proofs: [],
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export const MerkleProof = {
|
|
198
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleProof',
|
|
199
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
200
|
+
for (const v of message.proofs) {
|
|
201
|
+
CommitmentProof.encode(v, writer.uint32(10).fork()).ldelim();
|
|
202
|
+
}
|
|
203
|
+
return writer;
|
|
204
|
+
},
|
|
205
|
+
decode(input, length) {
|
|
206
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
207
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
208
|
+
const message = createBaseMerkleProof();
|
|
209
|
+
while (reader.pos < end) {
|
|
210
|
+
const tag = reader.uint32();
|
|
211
|
+
switch (tag >>> 3) {
|
|
212
|
+
case 1:
|
|
213
|
+
message.proofs.push(CommitmentProof.decode(reader, reader.uint32()));
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
reader.skipType(tag & 7);
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
fromJSON(object) {
|
|
223
|
+
return {
|
|
224
|
+
proofs: Array.isArray(object?.proofs)
|
|
225
|
+
? object.proofs.map((e) => CommitmentProof.fromJSON(e))
|
|
226
|
+
: [],
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
toJSON(message) {
|
|
230
|
+
const obj = {};
|
|
231
|
+
if (message.proofs) {
|
|
232
|
+
obj.proofs = message.proofs.map(e => e ? CommitmentProof.toJSON(e) : undefined);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
obj.proofs = [];
|
|
236
|
+
}
|
|
237
|
+
return obj;
|
|
238
|
+
},
|
|
239
|
+
fromPartial(object) {
|
|
240
|
+
const message = createBaseMerkleProof();
|
|
241
|
+
message.proofs =
|
|
242
|
+
object.proofs?.map(e => CommitmentProof.fromPartial(e)) || [];
|
|
243
|
+
return message;
|
|
244
|
+
},
|
|
245
|
+
fromProtoMsg(message) {
|
|
246
|
+
return MerkleProof.decode(message.value);
|
|
247
|
+
},
|
|
248
|
+
toProto(message) {
|
|
249
|
+
return MerkleProof.encode(message).finish();
|
|
250
|
+
},
|
|
251
|
+
toProtoMsg(message) {
|
|
252
|
+
return {
|
|
253
|
+
typeUrl: '/ibc.core.commitment.v1.MerkleProof',
|
|
254
|
+
value: MerkleProof.encode(message).finish(),
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
//# sourceMappingURL=commitment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitment.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/core/commitment/v1/commitment.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,eAAe,EAA0B,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,KAAK,EACL,eAAe,EACf,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAmFhC,SAAS,oBAAoB;IAC3B,OAAO;QACL,IAAI,EAAE,IAAI,UAAU,EAAE;KACvB,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,oCAAoC;IAC7C,MAAM,CACJ,OAAmB,EACnB,SAAuB,YAAY,CAAC,MAAM,EAAE;QAE5C,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,C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C1B,OAAO,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9C,CAAC;IACD,UAAU,CAAC,OAAoB;QAC7B,OAAO;YACL,OAAO,EAAE,qCAAqC;YAC9C,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAC5C,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { MerklePrefix, MerklePrefixSDKType } from '../../commitment/v1/commitment.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
3
|
+
/**
|
|
4
|
+
* State defines if a connection is in one of the following states:
|
|
5
|
+
* INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum State {
|
|
8
|
+
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
|
9
|
+
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
|
10
|
+
/** STATE_INIT - A connection end has just started the opening handshake. */
|
|
11
|
+
STATE_INIT = 1,
|
|
12
|
+
/**
|
|
13
|
+
* STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty
|
|
14
|
+
* chain.
|
|
15
|
+
*/
|
|
16
|
+
STATE_TRYOPEN = 2,
|
|
17
|
+
/** STATE_OPEN - A connection end has completed the handshake. */
|
|
18
|
+
STATE_OPEN = 3,
|
|
19
|
+
UNRECOGNIZED = -1
|
|
20
|
+
}
|
|
21
|
+
export declare const StateSDKType: typeof State;
|
|
22
|
+
export declare function stateFromJSON(object: any): State;
|
|
23
|
+
export declare function stateToJSON(object: State): string;
|
|
24
|
+
/**
|
|
25
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
26
|
+
* separate one.
|
|
27
|
+
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
28
|
+
* a connection between two chains.
|
|
29
|
+
*/
|
|
30
|
+
export interface ConnectionEnd {
|
|
31
|
+
/** client associated with this connection. */
|
|
32
|
+
clientId: string;
|
|
33
|
+
/**
|
|
34
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
35
|
+
* channels or packets utilising this connection.
|
|
36
|
+
*/
|
|
37
|
+
versions: Version[];
|
|
38
|
+
/** current state of the connection end. */
|
|
39
|
+
state: State;
|
|
40
|
+
/** counterparty chain associated with this connection. */
|
|
41
|
+
counterparty: Counterparty;
|
|
42
|
+
/**
|
|
43
|
+
* delay period that must pass before a consensus state can be used for
|
|
44
|
+
* packet-verification NOTE: delay period logic is only implemented by some
|
|
45
|
+
* clients.
|
|
46
|
+
*/
|
|
47
|
+
delayPeriod: bigint;
|
|
48
|
+
}
|
|
49
|
+
export interface ConnectionEndProtoMsg {
|
|
50
|
+
typeUrl: '/ibc.core.connection.v1.ConnectionEnd';
|
|
51
|
+
value: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
55
|
+
* separate one.
|
|
56
|
+
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
57
|
+
* a connection between two chains.
|
|
58
|
+
*/
|
|
59
|
+
export interface ConnectionEndSDKType {
|
|
60
|
+
client_id: string;
|
|
61
|
+
versions: VersionSDKType[];
|
|
62
|
+
state: State;
|
|
63
|
+
counterparty: CounterpartySDKType;
|
|
64
|
+
delay_period: bigint;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* IdentifiedConnection defines a connection with additional connection
|
|
68
|
+
* identifier field.
|
|
69
|
+
*/
|
|
70
|
+
export interface IdentifiedConnection {
|
|
71
|
+
/** connection identifier. */
|
|
72
|
+
id: string;
|
|
73
|
+
/** client associated with this connection. */
|
|
74
|
+
clientId: string;
|
|
75
|
+
/**
|
|
76
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
77
|
+
* channels or packets utilising this connection
|
|
78
|
+
*/
|
|
79
|
+
versions: Version[];
|
|
80
|
+
/** current state of the connection end. */
|
|
81
|
+
state: State;
|
|
82
|
+
/** counterparty chain associated with this connection. */
|
|
83
|
+
counterparty: Counterparty;
|
|
84
|
+
/** delay period associated with this connection. */
|
|
85
|
+
delayPeriod: bigint;
|
|
86
|
+
}
|
|
87
|
+
export interface IdentifiedConnectionProtoMsg {
|
|
88
|
+
typeUrl: '/ibc.core.connection.v1.IdentifiedConnection';
|
|
89
|
+
value: Uint8Array;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* IdentifiedConnection defines a connection with additional connection
|
|
93
|
+
* identifier field.
|
|
94
|
+
*/
|
|
95
|
+
export interface IdentifiedConnectionSDKType {
|
|
96
|
+
id: string;
|
|
97
|
+
client_id: string;
|
|
98
|
+
versions: VersionSDKType[];
|
|
99
|
+
state: State;
|
|
100
|
+
counterparty: CounterpartySDKType;
|
|
101
|
+
delay_period: bigint;
|
|
102
|
+
}
|
|
103
|
+
/** Counterparty defines the counterparty chain associated with a connection end. */
|
|
104
|
+
export interface Counterparty {
|
|
105
|
+
/**
|
|
106
|
+
* identifies the client on the counterparty chain associated with a given
|
|
107
|
+
* connection.
|
|
108
|
+
*/
|
|
109
|
+
clientId: string;
|
|
110
|
+
/**
|
|
111
|
+
* identifies the connection end on the counterparty chain associated with a
|
|
112
|
+
* given connection.
|
|
113
|
+
*/
|
|
114
|
+
connectionId: string;
|
|
115
|
+
/** commitment merkle prefix of the counterparty chain. */
|
|
116
|
+
prefix: MerklePrefix;
|
|
117
|
+
}
|
|
118
|
+
export interface CounterpartyProtoMsg {
|
|
119
|
+
typeUrl: '/ibc.core.connection.v1.Counterparty';
|
|
120
|
+
value: Uint8Array;
|
|
121
|
+
}
|
|
122
|
+
/** Counterparty defines the counterparty chain associated with a connection end. */
|
|
123
|
+
export interface CounterpartySDKType {
|
|
124
|
+
client_id: string;
|
|
125
|
+
connection_id: string;
|
|
126
|
+
prefix: MerklePrefixSDKType;
|
|
127
|
+
}
|
|
128
|
+
/** ClientPaths define all the connection paths for a client state. */
|
|
129
|
+
export interface ClientPaths {
|
|
130
|
+
/** list of connection paths */
|
|
131
|
+
paths: string[];
|
|
132
|
+
}
|
|
133
|
+
export interface ClientPathsProtoMsg {
|
|
134
|
+
typeUrl: '/ibc.core.connection.v1.ClientPaths';
|
|
135
|
+
value: Uint8Array;
|
|
136
|
+
}
|
|
137
|
+
/** ClientPaths define all the connection paths for a client state. */
|
|
138
|
+
export interface ClientPathsSDKType {
|
|
139
|
+
paths: string[];
|
|
140
|
+
}
|
|
141
|
+
/** ConnectionPaths define all the connection paths for a given client state. */
|
|
142
|
+
export interface ConnectionPaths {
|
|
143
|
+
/** client state unique identifier */
|
|
144
|
+
clientId: string;
|
|
145
|
+
/** list of connection paths */
|
|
146
|
+
paths: string[];
|
|
147
|
+
}
|
|
148
|
+
export interface ConnectionPathsProtoMsg {
|
|
149
|
+
typeUrl: '/ibc.core.connection.v1.ConnectionPaths';
|
|
150
|
+
value: Uint8Array;
|
|
151
|
+
}
|
|
152
|
+
/** ConnectionPaths define all the connection paths for a given client state. */
|
|
153
|
+
export interface ConnectionPathsSDKType {
|
|
154
|
+
client_id: string;
|
|
155
|
+
paths: string[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
159
|
+
* the connection handshake.
|
|
160
|
+
*/
|
|
161
|
+
export interface Version {
|
|
162
|
+
/** unique version identifier */
|
|
163
|
+
identifier: string;
|
|
164
|
+
/** list of features compatible with the specified identifier */
|
|
165
|
+
features: string[];
|
|
166
|
+
}
|
|
167
|
+
export interface VersionProtoMsg {
|
|
168
|
+
typeUrl: '/ibc.core.connection.v1.Version';
|
|
169
|
+
value: Uint8Array;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
173
|
+
* the connection handshake.
|
|
174
|
+
*/
|
|
175
|
+
export interface VersionSDKType {
|
|
176
|
+
identifier: string;
|
|
177
|
+
features: string[];
|
|
178
|
+
}
|
|
179
|
+
/** Params defines the set of Connection parameters. */
|
|
180
|
+
export interface Params {
|
|
181
|
+
/**
|
|
182
|
+
* maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
|
|
183
|
+
* largest amount of time that the chain might reasonably take to produce the next block under normal operating
|
|
184
|
+
* conditions. A safe choice is 3-5x the expected time per block.
|
|
185
|
+
*/
|
|
186
|
+
maxExpectedTimePerBlock: bigint;
|
|
187
|
+
}
|
|
188
|
+
export interface ParamsProtoMsg {
|
|
189
|
+
typeUrl: '/ibc.core.connection.v1.Params';
|
|
190
|
+
value: Uint8Array;
|
|
191
|
+
}
|
|
192
|
+
/** Params defines the set of Connection parameters. */
|
|
193
|
+
export interface ParamsSDKType {
|
|
194
|
+
max_expected_time_per_block: bigint;
|
|
195
|
+
}
|
|
196
|
+
export declare const ConnectionEnd: {
|
|
197
|
+
typeUrl: string;
|
|
198
|
+
encode(message: ConnectionEnd, writer?: BinaryWriter): BinaryWriter;
|
|
199
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionEnd;
|
|
200
|
+
fromJSON(object: any): ConnectionEnd;
|
|
201
|
+
toJSON(message: ConnectionEnd): unknown;
|
|
202
|
+
fromPartial(object: Partial<ConnectionEnd>): ConnectionEnd;
|
|
203
|
+
fromProtoMsg(message: ConnectionEndProtoMsg): ConnectionEnd;
|
|
204
|
+
toProto(message: ConnectionEnd): Uint8Array;
|
|
205
|
+
toProtoMsg(message: ConnectionEnd): ConnectionEndProtoMsg;
|
|
206
|
+
};
|
|
207
|
+
export declare const IdentifiedConnection: {
|
|
208
|
+
typeUrl: string;
|
|
209
|
+
encode(message: IdentifiedConnection, writer?: BinaryWriter): BinaryWriter;
|
|
210
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedConnection;
|
|
211
|
+
fromJSON(object: any): IdentifiedConnection;
|
|
212
|
+
toJSON(message: IdentifiedConnection): unknown;
|
|
213
|
+
fromPartial(object: Partial<IdentifiedConnection>): IdentifiedConnection;
|
|
214
|
+
fromProtoMsg(message: IdentifiedConnectionProtoMsg): IdentifiedConnection;
|
|
215
|
+
toProto(message: IdentifiedConnection): Uint8Array;
|
|
216
|
+
toProtoMsg(message: IdentifiedConnection): IdentifiedConnectionProtoMsg;
|
|
217
|
+
};
|
|
218
|
+
export declare const Counterparty: {
|
|
219
|
+
typeUrl: string;
|
|
220
|
+
encode(message: Counterparty, writer?: BinaryWriter): BinaryWriter;
|
|
221
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Counterparty;
|
|
222
|
+
fromJSON(object: any): Counterparty;
|
|
223
|
+
toJSON(message: Counterparty): unknown;
|
|
224
|
+
fromPartial(object: Partial<Counterparty>): Counterparty;
|
|
225
|
+
fromProtoMsg(message: CounterpartyProtoMsg): Counterparty;
|
|
226
|
+
toProto(message: Counterparty): Uint8Array;
|
|
227
|
+
toProtoMsg(message: Counterparty): CounterpartyProtoMsg;
|
|
228
|
+
};
|
|
229
|
+
export declare const ClientPaths: {
|
|
230
|
+
typeUrl: string;
|
|
231
|
+
encode(message: ClientPaths, writer?: BinaryWriter): BinaryWriter;
|
|
232
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientPaths;
|
|
233
|
+
fromJSON(object: any): ClientPaths;
|
|
234
|
+
toJSON(message: ClientPaths): unknown;
|
|
235
|
+
fromPartial(object: Partial<ClientPaths>): ClientPaths;
|
|
236
|
+
fromProtoMsg(message: ClientPathsProtoMsg): ClientPaths;
|
|
237
|
+
toProto(message: ClientPaths): Uint8Array;
|
|
238
|
+
toProtoMsg(message: ClientPaths): ClientPathsProtoMsg;
|
|
239
|
+
};
|
|
240
|
+
export declare const ConnectionPaths: {
|
|
241
|
+
typeUrl: string;
|
|
242
|
+
encode(message: ConnectionPaths, writer?: BinaryWriter): BinaryWriter;
|
|
243
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionPaths;
|
|
244
|
+
fromJSON(object: any): ConnectionPaths;
|
|
245
|
+
toJSON(message: ConnectionPaths): unknown;
|
|
246
|
+
fromPartial(object: Partial<ConnectionPaths>): ConnectionPaths;
|
|
247
|
+
fromProtoMsg(message: ConnectionPathsProtoMsg): ConnectionPaths;
|
|
248
|
+
toProto(message: ConnectionPaths): Uint8Array;
|
|
249
|
+
toProtoMsg(message: ConnectionPaths): ConnectionPathsProtoMsg;
|
|
250
|
+
};
|
|
251
|
+
export declare const Version: {
|
|
252
|
+
typeUrl: string;
|
|
253
|
+
encode(message: Version, writer?: BinaryWriter): BinaryWriter;
|
|
254
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Version;
|
|
255
|
+
fromJSON(object: any): Version;
|
|
256
|
+
toJSON(message: Version): unknown;
|
|
257
|
+
fromPartial(object: Partial<Version>): Version;
|
|
258
|
+
fromProtoMsg(message: VersionProtoMsg): Version;
|
|
259
|
+
toProto(message: Version): Uint8Array;
|
|
260
|
+
toProtoMsg(message: Version): VersionProtoMsg;
|
|
261
|
+
};
|
|
262
|
+
export declare const Params: {
|
|
263
|
+
typeUrl: string;
|
|
264
|
+
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
|
|
265
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params;
|
|
266
|
+
fromJSON(object: any): Params;
|
|
267
|
+
toJSON(message: Params): unknown;
|
|
268
|
+
fromPartial(object: Partial<Params>): Params;
|
|
269
|
+
fromProtoMsg(message: ParamsProtoMsg): Params;
|
|
270
|
+
toProto(message: Params): Uint8Array;
|
|
271
|
+
toProtoMsg(message: Params): ParamsProtoMsg;
|
|
272
|
+
};
|