@hyperlane-xyz/cosmos-types 11.0.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/README.md +37 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/types/cosmos/app/v1alpha1/module.d.ts +204 -0
- package/dist/types/cosmos/app/v1alpha1/module.d.ts.map +1 -0
- package/dist/types/cosmos/app/v1alpha1/module.js +218 -0
- package/dist/types/cosmos/app/v1alpha1/module.js.map +1 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +129 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts.map +1 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +231 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js.map +1 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +74 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts.map +1 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +144 -0
- package/dist/types/cosmos/base/v1beta1/coin.js.map +1 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +2 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts.map +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +8 -0
- package/dist/types/cosmos/msg/v1/msg.js.map +1 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +116 -0
- package/dist/types/cosmos_proto/cosmos.d.ts.map +1 -0
- package/dist/types/cosmos_proto/cosmos.js +223 -0
- package/dist/types/cosmos_proto/cosmos.js.map +1 -0
- package/dist/types/gogoproto/gogo.d.ts +2 -0
- package/dist/types/gogoproto/gogo.d.ts.map +1 -0
- package/dist/types/gogoproto/gogo.js +8 -0
- package/dist/types/gogoproto/gogo.js.map +1 -0
- package/dist/types/google/api/annotations.d.ts +2 -0
- package/dist/types/google/api/annotations.d.ts.map +1 -0
- package/dist/types/google/api/annotations.js +8 -0
- package/dist/types/google/api/annotations.js.map +1 -0
- package/dist/types/google/api/http.d.ts +3023 -0
- package/dist/types/google/api/http.d.ts.map +1 -0
- package/dist/types/google/api/http.js +353 -0
- package/dist/types/google/api/http.js.map +1 -0
- package/dist/types/google/protobuf/any.d.ts +155 -0
- package/dist/types/google/protobuf/any.d.ts.map +1 -0
- package/dist/types/google/protobuf/any.js +107 -0
- package/dist/types/google/protobuf/any.js.map +1 -0
- package/dist/types/google/protobuf/descriptor.d.ts +112572 -0
- package/dist/types/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/types/google/protobuf/descriptor.js +4418 -0
- package/dist/types/google/protobuf/descriptor.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.d.ts +159 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.js +197 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.d.ts +321 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.js +529 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.d.ts +249 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.js +576 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.d.ts +125 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.js +274 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.js.map +1 -0
- package/dist/types/hyperlane/core/module/v1/module.d.ts +41 -0
- package/dist/types/hyperlane/core/module/v1/module.d.ts.map +1 -0
- package/dist/types/hyperlane/core/module/v1/module.js +66 -0
- package/dist/types/hyperlane/core/module/v1/module.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.d.ts +151 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.js +364 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.d.ts +407 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.js +240 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.d.ts +1200 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.js +1280 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.d.ts +439 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.js +921 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.d.ts +274 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.js +527 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.js.map +1 -0
- package/dist/types/hyperlane/core/v1/events.d.ts +110 -0
- package/dist/types/hyperlane/core/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/events.js +267 -0
- package/dist/types/hyperlane/core/v1/events.js.map +1 -0
- package/dist/types/hyperlane/core/v1/genesis.d.ts +712 -0
- package/dist/types/hyperlane/core/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/genesis.js +260 -0
- package/dist/types/hyperlane/core/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/v1/query.d.ts +471 -0
- package/dist/types/hyperlane/core/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/query.js +655 -0
- package/dist/types/hyperlane/core/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/v1/tx.d.ts +213 -0
- package/dist/types/hyperlane/core/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/tx.js +522 -0
- package/dist/types/hyperlane/core/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/v1/types.d.ts +76 -0
- package/dist/types/hyperlane/core/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/types.js +183 -0
- package/dist/types/hyperlane/core/v1/types.js.map +1 -0
- package/dist/types/hyperlane/warp/module/v1/module.d.ts +46 -0
- package/dist/types/hyperlane/warp/module/v1/module.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/module/v1/module.js +91 -0
- package/dist/types/hyperlane/warp/module/v1/module.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/events.d.ts +39 -0
- package/dist/types/hyperlane/warp/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/events.js +82 -0
- package/dist/types/hyperlane/warp/v1/events.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/genesis.d.ts +252 -0
- package/dist/types/hyperlane/warp/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/genesis.js +182 -0
- package/dist/types/hyperlane/warp/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/query.d.ts +623 -0
- package/dist/types/hyperlane/warp/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/query.js +803 -0
- package/dist/types/hyperlane/warp/v1/query.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/tx.d.ts +399 -0
- package/dist/types/hyperlane/warp/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/tx.js +936 -0
- package/dist/types/hyperlane/warp/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/types.d.ts +118 -0
- package/dist/types/hyperlane/warp/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/types.js +340 -0
- package/dist/types/hyperlane/warp/v1/types.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: hyperlane/warp/v1/query.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
8
|
+
import { PageRequest, PageResponse, } from '../../../cosmos/base/query/v1beta1/pagination.js';
|
|
9
|
+
import { Coin } from '../../../cosmos/base/v1beta1/coin.js';
|
|
10
|
+
import { HypTokenType, RemoteRouter, hypTokenTypeFromJSON, hypTokenTypeToJSON, hypTokenTypeToNumber, } from './types.js';
|
|
11
|
+
export const protobufPackage = 'hyperlane.warp.v1';
|
|
12
|
+
function createBaseQueryTokensRequest() {
|
|
13
|
+
return { pagination: undefined };
|
|
14
|
+
}
|
|
15
|
+
export const QueryTokensRequest = {
|
|
16
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
17
|
+
if (message.pagination !== undefined) {
|
|
18
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseQueryTokensRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
if (tag !== 10) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
reader.skipType(tag & 7);
|
|
40
|
+
}
|
|
41
|
+
return message;
|
|
42
|
+
},
|
|
43
|
+
fromJSON(object) {
|
|
44
|
+
return {
|
|
45
|
+
pagination: isSet(object.pagination)
|
|
46
|
+
? PageRequest.fromJSON(object.pagination)
|
|
47
|
+
: undefined,
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
toJSON(message) {
|
|
51
|
+
const obj = {};
|
|
52
|
+
if (message.pagination !== undefined) {
|
|
53
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
54
|
+
}
|
|
55
|
+
return obj;
|
|
56
|
+
},
|
|
57
|
+
create(base) {
|
|
58
|
+
return QueryTokensRequest.fromPartial(base ?? {});
|
|
59
|
+
},
|
|
60
|
+
fromPartial(object) {
|
|
61
|
+
const message = createBaseQueryTokensRequest();
|
|
62
|
+
message.pagination =
|
|
63
|
+
object.pagination !== undefined && object.pagination !== null
|
|
64
|
+
? PageRequest.fromPartial(object.pagination)
|
|
65
|
+
: undefined;
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
function createBaseQueryTokensResponse() {
|
|
70
|
+
return { tokens: [], pagination: undefined };
|
|
71
|
+
}
|
|
72
|
+
export const QueryTokensResponse = {
|
|
73
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
74
|
+
for (const v of message.tokens) {
|
|
75
|
+
WrappedHypToken.encode(v, writer.uint32(10).fork()).ldelim();
|
|
76
|
+
}
|
|
77
|
+
if (message.pagination !== undefined) {
|
|
78
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
79
|
+
}
|
|
80
|
+
return writer;
|
|
81
|
+
},
|
|
82
|
+
decode(input, length) {
|
|
83
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
84
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
+
const message = createBaseQueryTokensResponse();
|
|
86
|
+
while (reader.pos < end) {
|
|
87
|
+
const tag = reader.uint32();
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1:
|
|
90
|
+
if (tag !== 10) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.tokens.push(WrappedHypToken.decode(reader, reader.uint32()));
|
|
94
|
+
continue;
|
|
95
|
+
case 2:
|
|
96
|
+
if (tag !== 18) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
reader.skipType(tag & 7);
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromJSON(object) {
|
|
110
|
+
return {
|
|
111
|
+
tokens: globalThis.Array.isArray(object?.tokens)
|
|
112
|
+
? object.tokens.map((e) => WrappedHypToken.fromJSON(e))
|
|
113
|
+
: [],
|
|
114
|
+
pagination: isSet(object.pagination)
|
|
115
|
+
? PageResponse.fromJSON(object.pagination)
|
|
116
|
+
: undefined,
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
toJSON(message) {
|
|
120
|
+
const obj = {};
|
|
121
|
+
if (message.tokens?.length) {
|
|
122
|
+
obj.tokens = message.tokens.map((e) => WrappedHypToken.toJSON(e));
|
|
123
|
+
}
|
|
124
|
+
if (message.pagination !== undefined) {
|
|
125
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
126
|
+
}
|
|
127
|
+
return obj;
|
|
128
|
+
},
|
|
129
|
+
create(base) {
|
|
130
|
+
return QueryTokensResponse.fromPartial(base ?? {});
|
|
131
|
+
},
|
|
132
|
+
fromPartial(object) {
|
|
133
|
+
const message = createBaseQueryTokensResponse();
|
|
134
|
+
message.tokens =
|
|
135
|
+
object.tokens?.map((e) => WrappedHypToken.fromPartial(e)) || [];
|
|
136
|
+
message.pagination =
|
|
137
|
+
object.pagination !== undefined && object.pagination !== null
|
|
138
|
+
? PageResponse.fromPartial(object.pagination)
|
|
139
|
+
: undefined;
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
function createBaseQueryTokenRequest() {
|
|
144
|
+
return { id: '' };
|
|
145
|
+
}
|
|
146
|
+
export const QueryTokenRequest = {
|
|
147
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
148
|
+
if (message.id !== '') {
|
|
149
|
+
writer.uint32(10).string(message.id);
|
|
150
|
+
}
|
|
151
|
+
return writer;
|
|
152
|
+
},
|
|
153
|
+
decode(input, length) {
|
|
154
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
155
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
156
|
+
const message = createBaseQueryTokenRequest();
|
|
157
|
+
while (reader.pos < end) {
|
|
158
|
+
const tag = reader.uint32();
|
|
159
|
+
switch (tag >>> 3) {
|
|
160
|
+
case 1:
|
|
161
|
+
if (tag !== 10) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.id = reader.string();
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
reader.skipType(tag & 7);
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromJSON(object) {
|
|
175
|
+
return { id: isSet(object.id) ? globalThis.String(object.id) : '' };
|
|
176
|
+
},
|
|
177
|
+
toJSON(message) {
|
|
178
|
+
const obj = {};
|
|
179
|
+
if (message.id !== '') {
|
|
180
|
+
obj.id = message.id;
|
|
181
|
+
}
|
|
182
|
+
return obj;
|
|
183
|
+
},
|
|
184
|
+
create(base) {
|
|
185
|
+
return QueryTokenRequest.fromPartial(base ?? {});
|
|
186
|
+
},
|
|
187
|
+
fromPartial(object) {
|
|
188
|
+
const message = createBaseQueryTokenRequest();
|
|
189
|
+
message.id = object.id ?? '';
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
function createBaseQueryTokenResponse() {
|
|
194
|
+
return { token: undefined };
|
|
195
|
+
}
|
|
196
|
+
export const QueryTokenResponse = {
|
|
197
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
198
|
+
if (message.token !== undefined) {
|
|
199
|
+
WrappedHypToken.encode(message.token, writer.uint32(10).fork()).ldelim();
|
|
200
|
+
}
|
|
201
|
+
return writer;
|
|
202
|
+
},
|
|
203
|
+
decode(input, length) {
|
|
204
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
205
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
+
const message = createBaseQueryTokenResponse();
|
|
207
|
+
while (reader.pos < end) {
|
|
208
|
+
const tag = reader.uint32();
|
|
209
|
+
switch (tag >>> 3) {
|
|
210
|
+
case 1:
|
|
211
|
+
if (tag !== 10) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
message.token = WrappedHypToken.decode(reader, reader.uint32());
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
reader.skipType(tag & 7);
|
|
221
|
+
}
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
fromJSON(object) {
|
|
225
|
+
return {
|
|
226
|
+
token: isSet(object.token)
|
|
227
|
+
? WrappedHypToken.fromJSON(object.token)
|
|
228
|
+
: undefined,
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
toJSON(message) {
|
|
232
|
+
const obj = {};
|
|
233
|
+
if (message.token !== undefined) {
|
|
234
|
+
obj.token = WrappedHypToken.toJSON(message.token);
|
|
235
|
+
}
|
|
236
|
+
return obj;
|
|
237
|
+
},
|
|
238
|
+
create(base) {
|
|
239
|
+
return QueryTokenResponse.fromPartial(base ?? {});
|
|
240
|
+
},
|
|
241
|
+
fromPartial(object) {
|
|
242
|
+
const message = createBaseQueryTokenResponse();
|
|
243
|
+
message.token =
|
|
244
|
+
object.token !== undefined && object.token !== null
|
|
245
|
+
? WrappedHypToken.fromPartial(object.token)
|
|
246
|
+
: undefined;
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
function createBaseWrappedHypToken() {
|
|
251
|
+
return {
|
|
252
|
+
id: '',
|
|
253
|
+
owner: '',
|
|
254
|
+
token_type: HypTokenType.HYP_TOKEN_TYPE_UNSPECIFIED,
|
|
255
|
+
origin_mailbox: '',
|
|
256
|
+
origin_denom: '',
|
|
257
|
+
ism_id: '',
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
export const WrappedHypToken = {
|
|
261
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
262
|
+
if (message.id !== '') {
|
|
263
|
+
writer.uint32(10).string(message.id);
|
|
264
|
+
}
|
|
265
|
+
if (message.owner !== '') {
|
|
266
|
+
writer.uint32(18).string(message.owner);
|
|
267
|
+
}
|
|
268
|
+
if (message.token_type !== HypTokenType.HYP_TOKEN_TYPE_UNSPECIFIED) {
|
|
269
|
+
writer.uint32(24).int32(hypTokenTypeToNumber(message.token_type));
|
|
270
|
+
}
|
|
271
|
+
if (message.origin_mailbox !== '') {
|
|
272
|
+
writer.uint32(34).string(message.origin_mailbox);
|
|
273
|
+
}
|
|
274
|
+
if (message.origin_denom !== '') {
|
|
275
|
+
writer.uint32(42).string(message.origin_denom);
|
|
276
|
+
}
|
|
277
|
+
if (message.ism_id !== '') {
|
|
278
|
+
writer.uint32(58).string(message.ism_id);
|
|
279
|
+
}
|
|
280
|
+
return writer;
|
|
281
|
+
},
|
|
282
|
+
decode(input, length) {
|
|
283
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
284
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
285
|
+
const message = createBaseWrappedHypToken();
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
const tag = reader.uint32();
|
|
288
|
+
switch (tag >>> 3) {
|
|
289
|
+
case 1:
|
|
290
|
+
if (tag !== 10) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
message.id = reader.string();
|
|
294
|
+
continue;
|
|
295
|
+
case 2:
|
|
296
|
+
if (tag !== 18) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
message.owner = reader.string();
|
|
300
|
+
continue;
|
|
301
|
+
case 3:
|
|
302
|
+
if (tag !== 24) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
message.token_type = hypTokenTypeFromJSON(reader.int32());
|
|
306
|
+
continue;
|
|
307
|
+
case 4:
|
|
308
|
+
if (tag !== 34) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.origin_mailbox = reader.string();
|
|
312
|
+
continue;
|
|
313
|
+
case 5:
|
|
314
|
+
if (tag !== 42) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
message.origin_denom = reader.string();
|
|
318
|
+
continue;
|
|
319
|
+
case 7:
|
|
320
|
+
if (tag !== 58) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.ism_id = reader.string();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
reader.skipType(tag & 7);
|
|
330
|
+
}
|
|
331
|
+
return message;
|
|
332
|
+
},
|
|
333
|
+
fromJSON(object) {
|
|
334
|
+
return {
|
|
335
|
+
id: isSet(object.id) ? globalThis.String(object.id) : '',
|
|
336
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : '',
|
|
337
|
+
token_type: isSet(object.token_type)
|
|
338
|
+
? hypTokenTypeFromJSON(object.token_type)
|
|
339
|
+
: HypTokenType.HYP_TOKEN_TYPE_UNSPECIFIED,
|
|
340
|
+
origin_mailbox: isSet(object.origin_mailbox)
|
|
341
|
+
? globalThis.String(object.origin_mailbox)
|
|
342
|
+
: '',
|
|
343
|
+
origin_denom: isSet(object.origin_denom)
|
|
344
|
+
? globalThis.String(object.origin_denom)
|
|
345
|
+
: '',
|
|
346
|
+
ism_id: isSet(object.ism_id) ? globalThis.String(object.ism_id) : '',
|
|
347
|
+
};
|
|
348
|
+
},
|
|
349
|
+
toJSON(message) {
|
|
350
|
+
const obj = {};
|
|
351
|
+
if (message.id !== '') {
|
|
352
|
+
obj.id = message.id;
|
|
353
|
+
}
|
|
354
|
+
if (message.owner !== '') {
|
|
355
|
+
obj.owner = message.owner;
|
|
356
|
+
}
|
|
357
|
+
if (message.token_type !== HypTokenType.HYP_TOKEN_TYPE_UNSPECIFIED) {
|
|
358
|
+
obj.token_type = hypTokenTypeToJSON(message.token_type);
|
|
359
|
+
}
|
|
360
|
+
if (message.origin_mailbox !== '') {
|
|
361
|
+
obj.origin_mailbox = message.origin_mailbox;
|
|
362
|
+
}
|
|
363
|
+
if (message.origin_denom !== '') {
|
|
364
|
+
obj.origin_denom = message.origin_denom;
|
|
365
|
+
}
|
|
366
|
+
if (message.ism_id !== '') {
|
|
367
|
+
obj.ism_id = message.ism_id;
|
|
368
|
+
}
|
|
369
|
+
return obj;
|
|
370
|
+
},
|
|
371
|
+
create(base) {
|
|
372
|
+
return WrappedHypToken.fromPartial(base ?? {});
|
|
373
|
+
},
|
|
374
|
+
fromPartial(object) {
|
|
375
|
+
const message = createBaseWrappedHypToken();
|
|
376
|
+
message.id = object.id ?? '';
|
|
377
|
+
message.owner = object.owner ?? '';
|
|
378
|
+
message.token_type =
|
|
379
|
+
object.token_type ?? HypTokenType.HYP_TOKEN_TYPE_UNSPECIFIED;
|
|
380
|
+
message.origin_mailbox = object.origin_mailbox ?? '';
|
|
381
|
+
message.origin_denom = object.origin_denom ?? '';
|
|
382
|
+
message.ism_id = object.ism_id ?? '';
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
function createBaseQueryBridgedSupplyRequest() {
|
|
387
|
+
return { id: '' };
|
|
388
|
+
}
|
|
389
|
+
export const QueryBridgedSupplyRequest = {
|
|
390
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
391
|
+
if (message.id !== '') {
|
|
392
|
+
writer.uint32(10).string(message.id);
|
|
393
|
+
}
|
|
394
|
+
return writer;
|
|
395
|
+
},
|
|
396
|
+
decode(input, length) {
|
|
397
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
398
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
399
|
+
const message = createBaseQueryBridgedSupplyRequest();
|
|
400
|
+
while (reader.pos < end) {
|
|
401
|
+
const tag = reader.uint32();
|
|
402
|
+
switch (tag >>> 3) {
|
|
403
|
+
case 1:
|
|
404
|
+
if (tag !== 10) {
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
message.id = reader.string();
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
reader.skipType(tag & 7);
|
|
414
|
+
}
|
|
415
|
+
return message;
|
|
416
|
+
},
|
|
417
|
+
fromJSON(object) {
|
|
418
|
+
return { id: isSet(object.id) ? globalThis.String(object.id) : '' };
|
|
419
|
+
},
|
|
420
|
+
toJSON(message) {
|
|
421
|
+
const obj = {};
|
|
422
|
+
if (message.id !== '') {
|
|
423
|
+
obj.id = message.id;
|
|
424
|
+
}
|
|
425
|
+
return obj;
|
|
426
|
+
},
|
|
427
|
+
create(base) {
|
|
428
|
+
return QueryBridgedSupplyRequest.fromPartial(base ?? {});
|
|
429
|
+
},
|
|
430
|
+
fromPartial(object) {
|
|
431
|
+
const message = createBaseQueryBridgedSupplyRequest();
|
|
432
|
+
message.id = object.id ?? '';
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
function createBaseQueryBridgedSupplyResponse() {
|
|
437
|
+
return { bridged_supply: undefined };
|
|
438
|
+
}
|
|
439
|
+
export const QueryBridgedSupplyResponse = {
|
|
440
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
441
|
+
if (message.bridged_supply !== undefined) {
|
|
442
|
+
Coin.encode(message.bridged_supply, writer.uint32(10).fork()).ldelim();
|
|
443
|
+
}
|
|
444
|
+
return writer;
|
|
445
|
+
},
|
|
446
|
+
decode(input, length) {
|
|
447
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
448
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
449
|
+
const message = createBaseQueryBridgedSupplyResponse();
|
|
450
|
+
while (reader.pos < end) {
|
|
451
|
+
const tag = reader.uint32();
|
|
452
|
+
switch (tag >>> 3) {
|
|
453
|
+
case 1:
|
|
454
|
+
if (tag !== 10) {
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
message.bridged_supply = Coin.decode(reader, reader.uint32());
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
reader.skipType(tag & 7);
|
|
464
|
+
}
|
|
465
|
+
return message;
|
|
466
|
+
},
|
|
467
|
+
fromJSON(object) {
|
|
468
|
+
return {
|
|
469
|
+
bridged_supply: isSet(object.bridged_supply)
|
|
470
|
+
? Coin.fromJSON(object.bridged_supply)
|
|
471
|
+
: undefined,
|
|
472
|
+
};
|
|
473
|
+
},
|
|
474
|
+
toJSON(message) {
|
|
475
|
+
const obj = {};
|
|
476
|
+
if (message.bridged_supply !== undefined) {
|
|
477
|
+
obj.bridged_supply = Coin.toJSON(message.bridged_supply);
|
|
478
|
+
}
|
|
479
|
+
return obj;
|
|
480
|
+
},
|
|
481
|
+
create(base) {
|
|
482
|
+
return QueryBridgedSupplyResponse.fromPartial(base ?? {});
|
|
483
|
+
},
|
|
484
|
+
fromPartial(object) {
|
|
485
|
+
const message = createBaseQueryBridgedSupplyResponse();
|
|
486
|
+
message.bridged_supply =
|
|
487
|
+
object.bridged_supply !== undefined && object.bridged_supply !== null
|
|
488
|
+
? Coin.fromPartial(object.bridged_supply)
|
|
489
|
+
: undefined;
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
};
|
|
493
|
+
function createBaseQueryRemoteRoutersRequest() {
|
|
494
|
+
return { id: '', pagination: undefined };
|
|
495
|
+
}
|
|
496
|
+
export const QueryRemoteRoutersRequest = {
|
|
497
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
498
|
+
if (message.id !== '') {
|
|
499
|
+
writer.uint32(10).string(message.id);
|
|
500
|
+
}
|
|
501
|
+
if (message.pagination !== undefined) {
|
|
502
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
503
|
+
}
|
|
504
|
+
return writer;
|
|
505
|
+
},
|
|
506
|
+
decode(input, length) {
|
|
507
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
508
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
509
|
+
const message = createBaseQueryRemoteRoutersRequest();
|
|
510
|
+
while (reader.pos < end) {
|
|
511
|
+
const tag = reader.uint32();
|
|
512
|
+
switch (tag >>> 3) {
|
|
513
|
+
case 1:
|
|
514
|
+
if (tag !== 10) {
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
message.id = reader.string();
|
|
518
|
+
continue;
|
|
519
|
+
case 2:
|
|
520
|
+
if (tag !== 18) {
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
reader.skipType(tag & 7);
|
|
530
|
+
}
|
|
531
|
+
return message;
|
|
532
|
+
},
|
|
533
|
+
fromJSON(object) {
|
|
534
|
+
return {
|
|
535
|
+
id: isSet(object.id) ? globalThis.String(object.id) : '',
|
|
536
|
+
pagination: isSet(object.pagination)
|
|
537
|
+
? PageRequest.fromJSON(object.pagination)
|
|
538
|
+
: undefined,
|
|
539
|
+
};
|
|
540
|
+
},
|
|
541
|
+
toJSON(message) {
|
|
542
|
+
const obj = {};
|
|
543
|
+
if (message.id !== '') {
|
|
544
|
+
obj.id = message.id;
|
|
545
|
+
}
|
|
546
|
+
if (message.pagination !== undefined) {
|
|
547
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
548
|
+
}
|
|
549
|
+
return obj;
|
|
550
|
+
},
|
|
551
|
+
create(base) {
|
|
552
|
+
return QueryRemoteRoutersRequest.fromPartial(base ?? {});
|
|
553
|
+
},
|
|
554
|
+
fromPartial(object) {
|
|
555
|
+
const message = createBaseQueryRemoteRoutersRequest();
|
|
556
|
+
message.id = object.id ?? '';
|
|
557
|
+
message.pagination =
|
|
558
|
+
object.pagination !== undefined && object.pagination !== null
|
|
559
|
+
? PageRequest.fromPartial(object.pagination)
|
|
560
|
+
: undefined;
|
|
561
|
+
return message;
|
|
562
|
+
},
|
|
563
|
+
};
|
|
564
|
+
function createBaseQueryRemoteRoutersResponse() {
|
|
565
|
+
return { remote_routers: [], pagination: undefined };
|
|
566
|
+
}
|
|
567
|
+
export const QueryRemoteRoutersResponse = {
|
|
568
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
569
|
+
for (const v of message.remote_routers) {
|
|
570
|
+
RemoteRouter.encode(v, writer.uint32(10).fork()).ldelim();
|
|
571
|
+
}
|
|
572
|
+
if (message.pagination !== undefined) {
|
|
573
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
574
|
+
}
|
|
575
|
+
return writer;
|
|
576
|
+
},
|
|
577
|
+
decode(input, length) {
|
|
578
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
579
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
580
|
+
const message = createBaseQueryRemoteRoutersResponse();
|
|
581
|
+
while (reader.pos < end) {
|
|
582
|
+
const tag = reader.uint32();
|
|
583
|
+
switch (tag >>> 3) {
|
|
584
|
+
case 1:
|
|
585
|
+
if (tag !== 10) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
message.remote_routers.push(RemoteRouter.decode(reader, reader.uint32()));
|
|
589
|
+
continue;
|
|
590
|
+
case 2:
|
|
591
|
+
if (tag !== 18) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
reader.skipType(tag & 7);
|
|
601
|
+
}
|
|
602
|
+
return message;
|
|
603
|
+
},
|
|
604
|
+
fromJSON(object) {
|
|
605
|
+
return {
|
|
606
|
+
remote_routers: globalThis.Array.isArray(object?.remote_routers)
|
|
607
|
+
? object.remote_routers.map((e) => RemoteRouter.fromJSON(e))
|
|
608
|
+
: [],
|
|
609
|
+
pagination: isSet(object.pagination)
|
|
610
|
+
? PageResponse.fromJSON(object.pagination)
|
|
611
|
+
: undefined,
|
|
612
|
+
};
|
|
613
|
+
},
|
|
614
|
+
toJSON(message) {
|
|
615
|
+
const obj = {};
|
|
616
|
+
if (message.remote_routers?.length) {
|
|
617
|
+
obj.remote_routers = message.remote_routers.map((e) => RemoteRouter.toJSON(e));
|
|
618
|
+
}
|
|
619
|
+
if (message.pagination !== undefined) {
|
|
620
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
621
|
+
}
|
|
622
|
+
return obj;
|
|
623
|
+
},
|
|
624
|
+
create(base) {
|
|
625
|
+
return QueryRemoteRoutersResponse.fromPartial(base ?? {});
|
|
626
|
+
},
|
|
627
|
+
fromPartial(object) {
|
|
628
|
+
const message = createBaseQueryRemoteRoutersResponse();
|
|
629
|
+
message.remote_routers =
|
|
630
|
+
object.remote_routers?.map((e) => RemoteRouter.fromPartial(e)) || [];
|
|
631
|
+
message.pagination =
|
|
632
|
+
object.pagination !== undefined && object.pagination !== null
|
|
633
|
+
? PageResponse.fromPartial(object.pagination)
|
|
634
|
+
: undefined;
|
|
635
|
+
return message;
|
|
636
|
+
},
|
|
637
|
+
};
|
|
638
|
+
function createBaseQueryQuoteRemoteTransferRequest() {
|
|
639
|
+
return { id: '', destination_domain: '' };
|
|
640
|
+
}
|
|
641
|
+
export const QueryQuoteRemoteTransferRequest = {
|
|
642
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
643
|
+
if (message.id !== '') {
|
|
644
|
+
writer.uint32(10).string(message.id);
|
|
645
|
+
}
|
|
646
|
+
if (message.destination_domain !== '') {
|
|
647
|
+
writer.uint32(18).string(message.destination_domain);
|
|
648
|
+
}
|
|
649
|
+
return writer;
|
|
650
|
+
},
|
|
651
|
+
decode(input, length) {
|
|
652
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
653
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
654
|
+
const message = createBaseQueryQuoteRemoteTransferRequest();
|
|
655
|
+
while (reader.pos < end) {
|
|
656
|
+
const tag = reader.uint32();
|
|
657
|
+
switch (tag >>> 3) {
|
|
658
|
+
case 1:
|
|
659
|
+
if (tag !== 10) {
|
|
660
|
+
break;
|
|
661
|
+
}
|
|
662
|
+
message.id = reader.string();
|
|
663
|
+
continue;
|
|
664
|
+
case 2:
|
|
665
|
+
if (tag !== 18) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
message.destination_domain = reader.string();
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
reader.skipType(tag & 7);
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
fromJSON(object) {
|
|
679
|
+
return {
|
|
680
|
+
id: isSet(object.id) ? globalThis.String(object.id) : '',
|
|
681
|
+
destination_domain: isSet(object.destination_domain)
|
|
682
|
+
? globalThis.String(object.destination_domain)
|
|
683
|
+
: '',
|
|
684
|
+
};
|
|
685
|
+
},
|
|
686
|
+
toJSON(message) {
|
|
687
|
+
const obj = {};
|
|
688
|
+
if (message.id !== '') {
|
|
689
|
+
obj.id = message.id;
|
|
690
|
+
}
|
|
691
|
+
if (message.destination_domain !== '') {
|
|
692
|
+
obj.destination_domain = message.destination_domain;
|
|
693
|
+
}
|
|
694
|
+
return obj;
|
|
695
|
+
},
|
|
696
|
+
create(base) {
|
|
697
|
+
return QueryQuoteRemoteTransferRequest.fromPartial(base ?? {});
|
|
698
|
+
},
|
|
699
|
+
fromPartial(object) {
|
|
700
|
+
const message = createBaseQueryQuoteRemoteTransferRequest();
|
|
701
|
+
message.id = object.id ?? '';
|
|
702
|
+
message.destination_domain = object.destination_domain ?? '';
|
|
703
|
+
return message;
|
|
704
|
+
},
|
|
705
|
+
};
|
|
706
|
+
function createBaseQueryQuoteRemoteTransferResponse() {
|
|
707
|
+
return { gas_payment: [] };
|
|
708
|
+
}
|
|
709
|
+
export const QueryQuoteRemoteTransferResponse = {
|
|
710
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
711
|
+
for (const v of message.gas_payment) {
|
|
712
|
+
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
713
|
+
}
|
|
714
|
+
return writer;
|
|
715
|
+
},
|
|
716
|
+
decode(input, length) {
|
|
717
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
718
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
719
|
+
const message = createBaseQueryQuoteRemoteTransferResponse();
|
|
720
|
+
while (reader.pos < end) {
|
|
721
|
+
const tag = reader.uint32();
|
|
722
|
+
switch (tag >>> 3) {
|
|
723
|
+
case 1:
|
|
724
|
+
if (tag !== 10) {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
message.gas_payment.push(Coin.decode(reader, reader.uint32()));
|
|
728
|
+
continue;
|
|
729
|
+
}
|
|
730
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
reader.skipType(tag & 7);
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromJSON(object) {
|
|
738
|
+
return {
|
|
739
|
+
gas_payment: globalThis.Array.isArray(object?.gas_payment)
|
|
740
|
+
? object.gas_payment.map((e) => Coin.fromJSON(e))
|
|
741
|
+
: [],
|
|
742
|
+
};
|
|
743
|
+
},
|
|
744
|
+
toJSON(message) {
|
|
745
|
+
const obj = {};
|
|
746
|
+
if (message.gas_payment?.length) {
|
|
747
|
+
obj.gas_payment = message.gas_payment.map((e) => Coin.toJSON(e));
|
|
748
|
+
}
|
|
749
|
+
return obj;
|
|
750
|
+
},
|
|
751
|
+
create(base) {
|
|
752
|
+
return QueryQuoteRemoteTransferResponse.fromPartial(base ?? {});
|
|
753
|
+
},
|
|
754
|
+
fromPartial(object) {
|
|
755
|
+
const message = createBaseQueryQuoteRemoteTransferResponse();
|
|
756
|
+
message.gas_payment =
|
|
757
|
+
object.gas_payment?.map((e) => Coin.fromPartial(e)) || [];
|
|
758
|
+
return message;
|
|
759
|
+
},
|
|
760
|
+
};
|
|
761
|
+
export const QueryServiceName = 'hyperlane.warp.v1.Query';
|
|
762
|
+
export class QueryClientImpl {
|
|
763
|
+
rpc;
|
|
764
|
+
service;
|
|
765
|
+
constructor(rpc, opts) {
|
|
766
|
+
this.service = opts?.service || QueryServiceName;
|
|
767
|
+
this.rpc = rpc;
|
|
768
|
+
this.Tokens = this.Tokens.bind(this);
|
|
769
|
+
this.Token = this.Token.bind(this);
|
|
770
|
+
this.BridgedSupply = this.BridgedSupply.bind(this);
|
|
771
|
+
this.RemoteRouters = this.RemoteRouters.bind(this);
|
|
772
|
+
this.QuoteRemoteTransfer = this.QuoteRemoteTransfer.bind(this);
|
|
773
|
+
}
|
|
774
|
+
Tokens(request) {
|
|
775
|
+
const data = QueryTokensRequest.encode(request).finish();
|
|
776
|
+
const promise = this.rpc.request(this.service, 'Tokens', data);
|
|
777
|
+
return promise.then((data) => QueryTokensResponse.decode(_m0.Reader.create(data)));
|
|
778
|
+
}
|
|
779
|
+
Token(request) {
|
|
780
|
+
const data = QueryTokenRequest.encode(request).finish();
|
|
781
|
+
const promise = this.rpc.request(this.service, 'Token', data);
|
|
782
|
+
return promise.then((data) => QueryTokenResponse.decode(_m0.Reader.create(data)));
|
|
783
|
+
}
|
|
784
|
+
BridgedSupply(request) {
|
|
785
|
+
const data = QueryBridgedSupplyRequest.encode(request).finish();
|
|
786
|
+
const promise = this.rpc.request(this.service, 'BridgedSupply', data);
|
|
787
|
+
return promise.then((data) => QueryBridgedSupplyResponse.decode(_m0.Reader.create(data)));
|
|
788
|
+
}
|
|
789
|
+
RemoteRouters(request) {
|
|
790
|
+
const data = QueryRemoteRoutersRequest.encode(request).finish();
|
|
791
|
+
const promise = this.rpc.request(this.service, 'RemoteRouters', data);
|
|
792
|
+
return promise.then((data) => QueryRemoteRoutersResponse.decode(_m0.Reader.create(data)));
|
|
793
|
+
}
|
|
794
|
+
QuoteRemoteTransfer(request) {
|
|
795
|
+
const data = QueryQuoteRemoteTransferRequest.encode(request).finish();
|
|
796
|
+
const promise = this.rpc.request(this.service, 'QuoteRemoteTransfer', data);
|
|
797
|
+
return promise.then((data) => QueryQuoteRemoteTransferResponse.decode(_m0.Reader.create(data)));
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
function isSet(value) {
|
|
801
|
+
return value !== null && value !== undefined;
|
|
802
|
+
}
|
|
803
|
+
//# sourceMappingURL=query.js.map
|