@agoric/cosmic-proto 0.4.1-dev-286302a.0 → 0.4.1-dev-24f7f32.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/icq/bundle.d.ts +119 -0
- package/dist/codegen/icq/bundle.js +17 -0
- package/dist/codegen/icq/bundle.js.map +1 -0
- package/dist/codegen/icq/v1/genesis.d.ts +27 -0
- package/dist/codegen/icq/v1/genesis.js +77 -0
- package/dist/codegen/icq/v1/genesis.js.map +1 -0
- package/dist/codegen/icq/v1/icq.d.ts +28 -0
- package/dist/codegen/icq/v1/icq.js +82 -0
- package/dist/codegen/icq/v1/icq.js.map +1 -0
- package/dist/codegen/icq/v1/packet.d.ts +97 -0
- package/dist/codegen/icq/v1/packet.js +269 -0
- package/dist/codegen/icq/v1/packet.js.map +1 -0
- package/dist/codegen/icq/v1/query.d.ts +47 -0
- package/dist/codegen/icq/v1/query.js +113 -0
- package/dist/codegen/icq/v1/query.js.map +1 -0
- package/dist/codegen/icq/v1/tx.d.ts +72 -0
- package/dist/codegen/icq/v1/tx.js +123 -0
- package/dist/codegen/icq/v1/tx.js.map +1 -0
- package/dist/codegen/ics23/bundle.d.ts +72 -72
- package/dist/codegen/ics23/bundle.js +2 -2
- 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/tendermint/bundle.d.ts +454 -454
- package/dist/codegen/tendermint/bundle.js +22 -22
- package/dist/helpers.d.ts +19 -0
- package/dist/helpers.js +15 -0
- package/dist/helpers.js.map +1 -1
- package/package.json +33 -9
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as _118 from './v1/genesis.js';
|
|
2
|
+
import * as _119 from './v1/icq.js';
|
|
3
|
+
import * as _120 from './v1/packet.js';
|
|
4
|
+
import * as _121 from './v1/query.js';
|
|
5
|
+
import * as _122 from './v1/tx.js';
|
|
6
|
+
export declare namespace icq {
|
|
7
|
+
const v1: {
|
|
8
|
+
MsgUpdateParams: {
|
|
9
|
+
typeUrl: string;
|
|
10
|
+
encode(message: MsgUpdateParams, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
11
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _122.MsgUpdateParams;
|
|
12
|
+
fromJSON(object: any): _122.MsgUpdateParams;
|
|
13
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
14
|
+
fromPartial(object: Partial<MsgUpdateParams>): _122.MsgUpdateParams;
|
|
15
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): _122.MsgUpdateParams;
|
|
16
|
+
toProto(message: MsgUpdateParams): Uint8Array;
|
|
17
|
+
toProtoMsg(message: MsgUpdateParams): _122.MsgUpdateParamsProtoMsg;
|
|
18
|
+
};
|
|
19
|
+
MsgUpdateParamsResponse: {
|
|
20
|
+
typeUrl: string;
|
|
21
|
+
encode(_: MsgUpdateParamsResponse, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
22
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _122.MsgUpdateParamsResponse;
|
|
23
|
+
fromJSON(_: any): _122.MsgUpdateParamsResponse;
|
|
24
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
25
|
+
fromPartial(_: Partial<MsgUpdateParamsResponse>): _122.MsgUpdateParamsResponse;
|
|
26
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): _122.MsgUpdateParamsResponse;
|
|
27
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array;
|
|
28
|
+
toProtoMsg(message: MsgUpdateParamsResponse): _122.MsgUpdateParamsResponseProtoMsg;
|
|
29
|
+
};
|
|
30
|
+
QueryParamsRequest: {
|
|
31
|
+
typeUrl: string;
|
|
32
|
+
encode(_: QueryParamsRequest, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
33
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _121.QueryParamsRequest;
|
|
34
|
+
fromJSON(_: any): _121.QueryParamsRequest;
|
|
35
|
+
toJSON(_: QueryParamsRequest): unknown;
|
|
36
|
+
fromPartial(_: Partial<QueryParamsRequest>): _121.QueryParamsRequest;
|
|
37
|
+
fromProtoMsg(message: QueryParamsRequestProtoMsg): _121.QueryParamsRequest;
|
|
38
|
+
toProto(message: QueryParamsRequest): Uint8Array;
|
|
39
|
+
toProtoMsg(message: QueryParamsRequest): _121.QueryParamsRequestProtoMsg;
|
|
40
|
+
};
|
|
41
|
+
QueryParamsResponse: {
|
|
42
|
+
typeUrl: string;
|
|
43
|
+
encode(message: QueryParamsResponse, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
44
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _121.QueryParamsResponse;
|
|
45
|
+
fromJSON(object: any): _121.QueryParamsResponse;
|
|
46
|
+
toJSON(message: QueryParamsResponse): unknown;
|
|
47
|
+
fromPartial(object: Partial<QueryParamsResponse>): _121.QueryParamsResponse;
|
|
48
|
+
fromProtoMsg(message: QueryParamsResponseProtoMsg): _121.QueryParamsResponse;
|
|
49
|
+
toProto(message: QueryParamsResponse): Uint8Array;
|
|
50
|
+
toProtoMsg(message: QueryParamsResponse): _121.QueryParamsResponseProtoMsg;
|
|
51
|
+
};
|
|
52
|
+
InterchainQueryPacketData: {
|
|
53
|
+
typeUrl: string;
|
|
54
|
+
encode(message: InterchainQueryPacketData, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
55
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _120.InterchainQueryPacketData;
|
|
56
|
+
fromJSON(object: any): _120.InterchainQueryPacketData;
|
|
57
|
+
toJSON(message: InterchainQueryPacketData): unknown;
|
|
58
|
+
fromPartial(object: Partial<InterchainQueryPacketData>): _120.InterchainQueryPacketData;
|
|
59
|
+
fromProtoMsg(message: InterchainQueryPacketDataProtoMsg): _120.InterchainQueryPacketData;
|
|
60
|
+
toProto(message: InterchainQueryPacketData): Uint8Array;
|
|
61
|
+
toProtoMsg(message: InterchainQueryPacketData): _120.InterchainQueryPacketDataProtoMsg;
|
|
62
|
+
};
|
|
63
|
+
InterchainQueryPacketAck: {
|
|
64
|
+
typeUrl: string;
|
|
65
|
+
encode(message: InterchainQueryPacketAck, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
66
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _120.InterchainQueryPacketAck;
|
|
67
|
+
fromJSON(object: any): _120.InterchainQueryPacketAck;
|
|
68
|
+
toJSON(message: InterchainQueryPacketAck): unknown;
|
|
69
|
+
fromPartial(object: Partial<InterchainQueryPacketAck>): _120.InterchainQueryPacketAck;
|
|
70
|
+
fromProtoMsg(message: InterchainQueryPacketAckProtoMsg): _120.InterchainQueryPacketAck;
|
|
71
|
+
toProto(message: InterchainQueryPacketAck): Uint8Array;
|
|
72
|
+
toProtoMsg(message: InterchainQueryPacketAck): _120.InterchainQueryPacketAckProtoMsg;
|
|
73
|
+
};
|
|
74
|
+
CosmosQuery: {
|
|
75
|
+
typeUrl: string;
|
|
76
|
+
encode(message: CosmosQuery, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
77
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _120.CosmosQuery;
|
|
78
|
+
fromJSON(object: any): _120.CosmosQuery;
|
|
79
|
+
toJSON(message: CosmosQuery): unknown;
|
|
80
|
+
fromPartial(object: Partial<CosmosQuery>): _120.CosmosQuery;
|
|
81
|
+
fromProtoMsg(message: CosmosQueryProtoMsg): _120.CosmosQuery;
|
|
82
|
+
toProto(message: CosmosQuery): Uint8Array;
|
|
83
|
+
toProtoMsg(message: CosmosQuery): _120.CosmosQueryProtoMsg;
|
|
84
|
+
};
|
|
85
|
+
CosmosResponse: {
|
|
86
|
+
typeUrl: string;
|
|
87
|
+
encode(message: CosmosResponse, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
88
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _120.CosmosResponse;
|
|
89
|
+
fromJSON(object: any): _120.CosmosResponse;
|
|
90
|
+
toJSON(message: CosmosResponse): unknown;
|
|
91
|
+
fromPartial(object: Partial<CosmosResponse>): _120.CosmosResponse;
|
|
92
|
+
fromProtoMsg(message: CosmosResponseProtoMsg): _120.CosmosResponse;
|
|
93
|
+
toProto(message: CosmosResponse): Uint8Array;
|
|
94
|
+
toProtoMsg(message: CosmosResponse): _120.CosmosResponseProtoMsg;
|
|
95
|
+
};
|
|
96
|
+
Params: {
|
|
97
|
+
typeUrl: string;
|
|
98
|
+
encode(message: Params, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
99
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _119.Params;
|
|
100
|
+
fromJSON(object: any): _119.Params;
|
|
101
|
+
toJSON(message: Params): unknown;
|
|
102
|
+
fromPartial(object: Partial<Params>): _119.Params;
|
|
103
|
+
fromProtoMsg(message: ParamsProtoMsg): _119.Params;
|
|
104
|
+
toProto(message: Params): Uint8Array;
|
|
105
|
+
toProtoMsg(message: Params): _119.ParamsProtoMsg;
|
|
106
|
+
};
|
|
107
|
+
GenesisState: {
|
|
108
|
+
typeUrl: string;
|
|
109
|
+
encode(message: GenesisState, writer?: import("../binary.js").BinaryWriter): import("../binary.js").BinaryWriter;
|
|
110
|
+
decode(input: Uint8Array | import("../binary.js").BinaryReader, length?: number): _118.GenesisState;
|
|
111
|
+
fromJSON(object: any): _118.GenesisState;
|
|
112
|
+
toJSON(message: GenesisState): unknown;
|
|
113
|
+
fromPartial(object: Partial<GenesisState>): _118.GenesisState;
|
|
114
|
+
fromProtoMsg(message: GenesisStateProtoMsg): _118.GenesisState;
|
|
115
|
+
toProto(message: GenesisState): Uint8Array;
|
|
116
|
+
toProtoMsg(message: GenesisState): _118.GenesisStateProtoMsg;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _118 from './v1/genesis.js';
|
|
3
|
+
import * as _119 from './v1/icq.js';
|
|
4
|
+
import * as _120 from './v1/packet.js';
|
|
5
|
+
import * as _121 from './v1/query.js';
|
|
6
|
+
import * as _122 from './v1/tx.js';
|
|
7
|
+
export var icq;
|
|
8
|
+
(function (icq) {
|
|
9
|
+
icq.v1 = {
|
|
10
|
+
..._118,
|
|
11
|
+
..._119,
|
|
12
|
+
..._120,
|
|
13
|
+
..._121,
|
|
14
|
+
..._122,
|
|
15
|
+
};
|
|
16
|
+
})(icq || (icq = {}));
|
|
17
|
+
//# sourceMappingURL=bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../../src/codegen/icq/bundle.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,MAAM,KAAW,GAAG,CAQnB;AARD,WAAiB,GAAG;IACL,MAAE,GAAG;QAChB,GAAG,IAAI;QACP,GAAG,IAAI;QACP,GAAG,IAAI;QACP,GAAG,IAAI;QACP,GAAG,IAAI;KACR,CAAC;AACJ,CAAC,EARgB,GAAG,KAAH,GAAG,QAQnB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Params, ParamsSDKType } from './icq.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
+
/** GenesisState defines the interchain query genesis state */
|
|
4
|
+
export interface GenesisState {
|
|
5
|
+
hostPort: string;
|
|
6
|
+
params: Params;
|
|
7
|
+
}
|
|
8
|
+
export interface GenesisStateProtoMsg {
|
|
9
|
+
typeUrl: '/icq.v1.GenesisState';
|
|
10
|
+
value: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
/** GenesisState defines the interchain query genesis state */
|
|
13
|
+
export interface GenesisStateSDKType {
|
|
14
|
+
host_port: string;
|
|
15
|
+
params: ParamsSDKType;
|
|
16
|
+
}
|
|
17
|
+
export declare const GenesisState: {
|
|
18
|
+
typeUrl: string;
|
|
19
|
+
encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter;
|
|
20
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState;
|
|
21
|
+
fromJSON(object: any): GenesisState;
|
|
22
|
+
toJSON(message: GenesisState): unknown;
|
|
23
|
+
fromPartial(object: Partial<GenesisState>): GenesisState;
|
|
24
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
|
|
25
|
+
toProto(message: GenesisState): Uint8Array;
|
|
26
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
27
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Params } from './icq.js';
|
|
3
|
+
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
4
|
+
import { isSet } from '../../helpers.js';
|
|
5
|
+
function createBaseGenesisState() {
|
|
6
|
+
return {
|
|
7
|
+
hostPort: '',
|
|
8
|
+
params: Params.fromPartial({}),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export const GenesisState = {
|
|
12
|
+
typeUrl: '/icq.v1.GenesisState',
|
|
13
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
+
if (message.hostPort !== '') {
|
|
15
|
+
writer.uint32(10).string(message.hostPort);
|
|
16
|
+
}
|
|
17
|
+
if (message.params !== undefined) {
|
|
18
|
+
Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseGenesisState();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
message.hostPort = reader.string();
|
|
31
|
+
break;
|
|
32
|
+
case 4:
|
|
33
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
reader.skipType(tag & 7);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
fromJSON(object) {
|
|
43
|
+
return {
|
|
44
|
+
hostPort: isSet(object.hostPort) ? String(object.hostPort) : '',
|
|
45
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
toJSON(message) {
|
|
49
|
+
const obj = {};
|
|
50
|
+
message.hostPort !== undefined && (obj.hostPort = message.hostPort);
|
|
51
|
+
message.params !== undefined &&
|
|
52
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
53
|
+
return obj;
|
|
54
|
+
},
|
|
55
|
+
fromPartial(object) {
|
|
56
|
+
const message = createBaseGenesisState();
|
|
57
|
+
message.hostPort = object.hostPort ?? '';
|
|
58
|
+
message.params =
|
|
59
|
+
object.params !== undefined && object.params !== null
|
|
60
|
+
? Params.fromPartial(object.params)
|
|
61
|
+
: undefined;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromProtoMsg(message) {
|
|
65
|
+
return GenesisState.decode(message.value);
|
|
66
|
+
},
|
|
67
|
+
toProto(message) {
|
|
68
|
+
return GenesisState.encode(message).finish();
|
|
69
|
+
},
|
|
70
|
+
toProtoMsg(message) {
|
|
71
|
+
return {
|
|
72
|
+
typeUrl: '/icq.v1.GenesisState',
|
|
73
|
+
value: GenesisState.encode(message).finish(),
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=genesis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genesis.js","sourceRoot":"","sources":["../../../../src/codegen/icq/v1/genesis.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,MAAM,EAAiB,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAezC,SAAS,sBAAsB;IAC7B,OAAO;QACL,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;KAC/B,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,sBAAsB;IAC/B,MAAM,CACJ,OAAqB,EACrB,SAAuB,YAAY,CAAC,MAAM,EAAE;QAE5C,IAAI,OAAO,CAAC,QAAQ,KAAK,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACnE,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,KAAgC,EAAE,MAAe;QACtD,MAAM,MAAM,GACV,KAAK,YAAY,YAAY,C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G,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpE,OAAO,CAAC,MAAM,KAAK,SAAS;YAC1B,CAAC,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAC5E,OAAO,GAAG,CAAC;IACb,CAAC;IACD,WAAW,CAAC,MAA6B;QACvC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;QACzC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QACzC,OAAO,CAAC,MAAM;YACZ,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI;gBACnD,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;gBACnC,CAAC,CAAC,SAAS,CAAC;QAChB,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAA6B;QACxC,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,OAAqB;QAC3B,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/C,CAAC;IACD,UAAU,CAAC,OAAqB;QAC9B,OAAO;YACL,OAAO,EAAE,sBAAsB;YAC/B,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
2
|
+
/** Params defines the set of on-chain interchain query parameters. */
|
|
3
|
+
export interface Params {
|
|
4
|
+
/** host_enabled enables or disables the host submodule. */
|
|
5
|
+
hostEnabled: boolean;
|
|
6
|
+
/** allow_queries defines a list of query paths allowed to be queried on a host chain. */
|
|
7
|
+
allowQueries: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface ParamsProtoMsg {
|
|
10
|
+
typeUrl: '/icq.v1.Params';
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** Params defines the set of on-chain interchain query parameters. */
|
|
14
|
+
export interface ParamsSDKType {
|
|
15
|
+
host_enabled: boolean;
|
|
16
|
+
allow_queries: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const Params: {
|
|
19
|
+
typeUrl: string;
|
|
20
|
+
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
|
|
21
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params;
|
|
22
|
+
fromJSON(object: any): Params;
|
|
23
|
+
toJSON(message: Params): unknown;
|
|
24
|
+
fromPartial(object: Partial<Params>): Params;
|
|
25
|
+
fromProtoMsg(message: ParamsProtoMsg): Params;
|
|
26
|
+
toProto(message: Params): Uint8Array;
|
|
27
|
+
toProtoMsg(message: Params): ParamsProtoMsg;
|
|
28
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
+
import { isSet } from '../../helpers.js';
|
|
4
|
+
function createBaseParams() {
|
|
5
|
+
return {
|
|
6
|
+
hostEnabled: false,
|
|
7
|
+
allowQueries: [],
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export const Params = {
|
|
11
|
+
typeUrl: '/icq.v1.Params',
|
|
12
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
+
if (message.hostEnabled === true) {
|
|
14
|
+
writer.uint32(16).bool(message.hostEnabled);
|
|
15
|
+
}
|
|
16
|
+
for (const v of message.allowQueries) {
|
|
17
|
+
writer.uint32(26).string(v);
|
|
18
|
+
}
|
|
19
|
+
return writer;
|
|
20
|
+
},
|
|
21
|
+
decode(input, length) {
|
|
22
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
|
+
const message = createBaseParams();
|
|
25
|
+
while (reader.pos < end) {
|
|
26
|
+
const tag = reader.uint32();
|
|
27
|
+
switch (tag >>> 3) {
|
|
28
|
+
case 2:
|
|
29
|
+
message.hostEnabled = reader.bool();
|
|
30
|
+
break;
|
|
31
|
+
case 3:
|
|
32
|
+
message.allowQueries.push(reader.string());
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
reader.skipType(tag & 7);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
fromJSON(object) {
|
|
42
|
+
return {
|
|
43
|
+
hostEnabled: isSet(object.hostEnabled)
|
|
44
|
+
? Boolean(object.hostEnabled)
|
|
45
|
+
: false,
|
|
46
|
+
allowQueries: Array.isArray(object?.allowQueries)
|
|
47
|
+
? object.allowQueries.map((e) => String(e))
|
|
48
|
+
: [],
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
toJSON(message) {
|
|
52
|
+
const obj = {};
|
|
53
|
+
message.hostEnabled !== undefined &&
|
|
54
|
+
(obj.hostEnabled = message.hostEnabled);
|
|
55
|
+
if (message.allowQueries) {
|
|
56
|
+
obj.allowQueries = message.allowQueries.map(e => e);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
obj.allowQueries = [];
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
62
|
+
},
|
|
63
|
+
fromPartial(object) {
|
|
64
|
+
const message = createBaseParams();
|
|
65
|
+
message.hostEnabled = object.hostEnabled ?? false;
|
|
66
|
+
message.allowQueries = object.allowQueries?.map(e => e) || [];
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
fromProtoMsg(message) {
|
|
70
|
+
return Params.decode(message.value);
|
|
71
|
+
},
|
|
72
|
+
toProto(message) {
|
|
73
|
+
return Params.encode(message).finish();
|
|
74
|
+
},
|
|
75
|
+
toProtoMsg(message) {
|
|
76
|
+
return {
|
|
77
|
+
typeUrl: '/icq.v1.Params',
|
|
78
|
+
value: Params.encode(message).finish(),
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=icq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icq.js","sourceRoot":"","sources":["../../../../src/codegen/icq/v1/icq.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAiBzC,SAAS,gBAAgB;IACvB,OAAO;QACL,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;KACjB,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,gBAAgB;IACzB,MAAM,CACJ,OAAe,EACf,SAAuB,YAAY,CAAC,MAAM,EAAE;QAE5C,IAAI,OAAO,CAAC,WAAW,KAAK,IAAI,EAAE,CAAC;YACjC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,KAAgC,EAAE,MAAe;QACtD,MAAM,MAAM,GACV,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;QAClE,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC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;YACzB,GAAG,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,YAAY,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,WAAW,CAAC,MAAuB;QACjC,MAAM,OAAO,GAAG,gBAAgB,EAAE,CAAC;QACnC,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAClD,OAAO,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9D,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAAuB;QAClC,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,CAAC,OAAe;QACrB,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,CAAC;IACD,UAAU,CAAC,OAAe;QACxB,OAAO;YACL,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SACvC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { RequestQuery, RequestQuerySDKType, ResponseQuery, ResponseQuerySDKType } from '../../tendermint/abci/types.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
+
/** InterchainQueryPacketData is comprised of raw query. */
|
|
4
|
+
export interface InterchainQueryPacketData {
|
|
5
|
+
data: Uint8Array;
|
|
6
|
+
/** optional memo */
|
|
7
|
+
memo: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InterchainQueryPacketDataProtoMsg {
|
|
10
|
+
typeUrl: '/icq.v1.InterchainQueryPacketData';
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** InterchainQueryPacketData is comprised of raw query. */
|
|
14
|
+
export interface InterchainQueryPacketDataSDKType {
|
|
15
|
+
data: Uint8Array;
|
|
16
|
+
memo: string;
|
|
17
|
+
}
|
|
18
|
+
/** InterchainQueryPacketAck is comprised of an ABCI query response with non-deterministic fields left empty (e.g. Codespace, Log, Info and ...). */
|
|
19
|
+
export interface InterchainQueryPacketAck {
|
|
20
|
+
data: Uint8Array;
|
|
21
|
+
}
|
|
22
|
+
export interface InterchainQueryPacketAckProtoMsg {
|
|
23
|
+
typeUrl: '/icq.v1.InterchainQueryPacketAck';
|
|
24
|
+
value: Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
/** InterchainQueryPacketAck is comprised of an ABCI query response with non-deterministic fields left empty (e.g. Codespace, Log, Info and ...). */
|
|
27
|
+
export interface InterchainQueryPacketAckSDKType {
|
|
28
|
+
data: Uint8Array;
|
|
29
|
+
}
|
|
30
|
+
/** CosmosQuery contains a list of tendermint ABCI query requests. It should be used when sending queries to an SDK host chain. */
|
|
31
|
+
export interface CosmosQuery {
|
|
32
|
+
requests: RequestQuery[];
|
|
33
|
+
}
|
|
34
|
+
export interface CosmosQueryProtoMsg {
|
|
35
|
+
typeUrl: '/icq.v1.CosmosQuery';
|
|
36
|
+
value: Uint8Array;
|
|
37
|
+
}
|
|
38
|
+
/** CosmosQuery contains a list of tendermint ABCI query requests. It should be used when sending queries to an SDK host chain. */
|
|
39
|
+
export interface CosmosQuerySDKType {
|
|
40
|
+
requests: RequestQuerySDKType[];
|
|
41
|
+
}
|
|
42
|
+
/** CosmosResponse contains a list of tendermint ABCI query responses. It should be used when receiving responses from an SDK host chain. */
|
|
43
|
+
export interface CosmosResponse {
|
|
44
|
+
responses: ResponseQuery[];
|
|
45
|
+
}
|
|
46
|
+
export interface CosmosResponseProtoMsg {
|
|
47
|
+
typeUrl: '/icq.v1.CosmosResponse';
|
|
48
|
+
value: Uint8Array;
|
|
49
|
+
}
|
|
50
|
+
/** CosmosResponse contains a list of tendermint ABCI query responses. It should be used when receiving responses from an SDK host chain. */
|
|
51
|
+
export interface CosmosResponseSDKType {
|
|
52
|
+
responses: ResponseQuerySDKType[];
|
|
53
|
+
}
|
|
54
|
+
export declare const InterchainQueryPacketData: {
|
|
55
|
+
typeUrl: string;
|
|
56
|
+
encode(message: InterchainQueryPacketData, writer?: BinaryWriter): BinaryWriter;
|
|
57
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InterchainQueryPacketData;
|
|
58
|
+
fromJSON(object: any): InterchainQueryPacketData;
|
|
59
|
+
toJSON(message: InterchainQueryPacketData): unknown;
|
|
60
|
+
fromPartial(object: Partial<InterchainQueryPacketData>): InterchainQueryPacketData;
|
|
61
|
+
fromProtoMsg(message: InterchainQueryPacketDataProtoMsg): InterchainQueryPacketData;
|
|
62
|
+
toProto(message: InterchainQueryPacketData): Uint8Array;
|
|
63
|
+
toProtoMsg(message: InterchainQueryPacketData): InterchainQueryPacketDataProtoMsg;
|
|
64
|
+
};
|
|
65
|
+
export declare const InterchainQueryPacketAck: {
|
|
66
|
+
typeUrl: string;
|
|
67
|
+
encode(message: InterchainQueryPacketAck, writer?: BinaryWriter): BinaryWriter;
|
|
68
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InterchainQueryPacketAck;
|
|
69
|
+
fromJSON(object: any): InterchainQueryPacketAck;
|
|
70
|
+
toJSON(message: InterchainQueryPacketAck): unknown;
|
|
71
|
+
fromPartial(object: Partial<InterchainQueryPacketAck>): InterchainQueryPacketAck;
|
|
72
|
+
fromProtoMsg(message: InterchainQueryPacketAckProtoMsg): InterchainQueryPacketAck;
|
|
73
|
+
toProto(message: InterchainQueryPacketAck): Uint8Array;
|
|
74
|
+
toProtoMsg(message: InterchainQueryPacketAck): InterchainQueryPacketAckProtoMsg;
|
|
75
|
+
};
|
|
76
|
+
export declare const CosmosQuery: {
|
|
77
|
+
typeUrl: string;
|
|
78
|
+
encode(message: CosmosQuery, writer?: BinaryWriter): BinaryWriter;
|
|
79
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CosmosQuery;
|
|
80
|
+
fromJSON(object: any): CosmosQuery;
|
|
81
|
+
toJSON(message: CosmosQuery): unknown;
|
|
82
|
+
fromPartial(object: Partial<CosmosQuery>): CosmosQuery;
|
|
83
|
+
fromProtoMsg(message: CosmosQueryProtoMsg): CosmosQuery;
|
|
84
|
+
toProto(message: CosmosQuery): Uint8Array;
|
|
85
|
+
toProtoMsg(message: CosmosQuery): CosmosQueryProtoMsg;
|
|
86
|
+
};
|
|
87
|
+
export declare const CosmosResponse: {
|
|
88
|
+
typeUrl: string;
|
|
89
|
+
encode(message: CosmosResponse, writer?: BinaryWriter): BinaryWriter;
|
|
90
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CosmosResponse;
|
|
91
|
+
fromJSON(object: any): CosmosResponse;
|
|
92
|
+
toJSON(message: CosmosResponse): unknown;
|
|
93
|
+
fromPartial(object: Partial<CosmosResponse>): CosmosResponse;
|
|
94
|
+
fromProtoMsg(message: CosmosResponseProtoMsg): CosmosResponse;
|
|
95
|
+
toProto(message: CosmosResponse): Uint8Array;
|
|
96
|
+
toProtoMsg(message: CosmosResponse): CosmosResponseProtoMsg;
|
|
97
|
+
};
|