@verana-labs/verana-types 0.9.5 → 0.10.1-dev.10
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 +1 -2
- package/dist/amino-converter/cs.d.ts +7 -88
- package/dist/amino-converter/cs.js +141 -70
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +53 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/perm.d.ts +12 -153
- package/dist/amino-converter/perm.js +299 -203
- package/dist/amino-converter/td.d.ts +2 -19
- package/dist/amino-converter/td.js +32 -35
- package/dist/amino-converter/tr.d.ts +6 -67
- package/dist/amino-converter/tr.js +89 -83
- package/dist/amino-converter/util/helpers.d.ts +16 -22
- package/dist/amino-converter/util/helpers.js +28 -33
- package/dist/amino-converter/xr.d.ts +4 -0
- package/dist/amino-converter/xr.js +74 -0
- package/dist/codec/cosmos/app/v1alpha1/module.d.ts +2 -3
- package/dist/codec/cosmos/app/v1alpha1/module.js +40 -15
- package/dist/codec/cosmos/base/query/v1beta1/pagination.d.ts +5 -6
- package/dist/codec/cosmos/base/query/v1beta1/pagination.js +75 -38
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +79 -0
- package/dist/codec/cosmos/base/v1beta1/coin.js +283 -0
- package/dist/codec/cosmos_proto/cosmos.d.ts +2 -3
- package/dist/codec/cosmos_proto/cosmos.js +38 -13
- package/dist/codec/google/api/http.d.ts +2 -3
- package/dist/codec/google/api/http.js +40 -15
- package/dist/codec/google/protobuf/descriptor.d.ts +11 -5
- package/dist/codec/google/protobuf/descriptor.js +156 -100
- package/dist/codec/google/protobuf/duration.d.ts +98 -0
- package/dist/codec/google/protobuf/duration.js +128 -0
- package/dist/codec/google/protobuf/timestamp.d.ts +12 -12
- package/dist/codec/google/protobuf/timestamp.js +58 -21
- package/dist/codec/verana/cs/module/module.d.ts +2 -3
- package/dist/codec/verana/cs/module/module.js +36 -11
- package/dist/codec/verana/cs/v1/genesis.d.ts +4 -5
- package/dist/codec/verana/cs/v1/genesis.js +57 -20
- package/dist/codec/verana/cs/v1/params.d.ts +3 -5
- package/dist/codec/verana/cs/v1/params.js +63 -47
- package/dist/codec/verana/cs/v1/query.d.ts +13 -10
- package/dist/codec/verana/cs/v1/query.js +164 -56
- package/dist/codec/verana/cs/v1/tx.d.ts +132 -24
- package/dist/codec/verana/cs/v1/tx.js +750 -137
- package/dist/codec/verana/cs/v1/types.d.ts +93 -23
- package/dist/codec/verana/cs/v1/types.js +560 -109
- package/dist/codec/verana/{dd/module → de/module/v1}/module.d.ts +7 -5
- package/dist/codec/verana/{dd/module → de/module/v1}/module.js +38 -13
- package/dist/codec/verana/de/v1/genesis.d.ts +36 -0
- package/dist/codec/verana/de/v1/genesis.js +178 -0
- package/dist/codec/verana/de/v1/params.d.ts +24 -0
- package/dist/codec/verana/de/v1/params.js +81 -0
- package/dist/codec/verana/de/v1/query.d.ts +132 -0
- package/dist/codec/verana/de/v1/query.js +440 -0
- package/dist/codec/verana/de/v1/tx.d.ts +192 -0
- package/dist/codec/verana/de/v1/tx.js +581 -0
- package/dist/codec/verana/de/v1/types.d.ts +133 -0
- package/dist/codec/verana/de/v1/types.js +554 -0
- package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/di/module/v1/module.js +98 -0
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +8 -8
- package/dist/codec/verana/di/v1/genesis.js +119 -0
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/di/v1/query.js +349 -0
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/perm/module/module.d.ts +2 -3
- package/dist/codec/verana/perm/module/module.js +36 -11
- package/dist/codec/verana/perm/v1/genesis.d.ts +4 -5
- package/dist/codec/verana/perm/v1/genesis.js +57 -20
- package/dist/codec/verana/perm/v1/params.d.ts +3 -4
- package/dist/codec/verana/perm/v1/params.js +58 -21
- package/dist/codec/verana/perm/v1/query.d.ts +12 -14
- package/dist/codec/verana/perm/v1/query.js +112 -94
- package/dist/codec/verana/perm/v1/tx.d.ts +149 -98
- package/dist/codec/verana/perm/v1/tx.js +940 -544
- package/dist/codec/verana/perm/v1/types.d.ts +60 -61
- package/dist/codec/verana/perm/v1/types.js +402 -366
- package/dist/codec/verana/td/module/module.d.ts +2 -3
- package/dist/codec/verana/td/module/module.js +36 -11
- package/dist/codec/verana/td/v1/genesis.d.ts +8 -7
- package/dist/codec/verana/td/v1/genesis.js +89 -40
- package/dist/codec/verana/td/v1/params.d.ts +4 -3
- package/dist/codec/verana/td/v1/params.js +54 -12
- package/dist/codec/verana/td/v1/query.d.ts +5 -6
- package/dist/codec/verana/td/v1/query.js +52 -27
- package/dist/codec/verana/td/v1/tx.d.ts +30 -45
- package/dist/codec/verana/td/v1/tx.js +154 -233
- package/dist/codec/verana/td/v1/types.d.ts +13 -16
- package/dist/codec/verana/td/v1/types.js +114 -103
- package/dist/codec/verana/tr/module/module.d.ts +2 -3
- package/dist/codec/verana/tr/module/module.js +36 -11
- package/dist/codec/verana/tr/v1/genesis.d.ts +4 -5
- package/dist/codec/verana/tr/v1/genesis.js +59 -20
- package/dist/codec/verana/tr/v1/params.d.ts +3 -5
- package/dist/codec/verana/tr/v1/params.js +57 -40
- package/dist/codec/verana/tr/v1/query.d.ts +7 -9
- package/dist/codec/verana/tr/v1/query.js +81 -45
- package/dist/codec/verana/tr/v1/tx.d.ts +66 -22
- package/dist/codec/verana/tr/v1/tx.js +271 -162
- package/dist/codec/verana/tr/v1/types.d.ts +23 -27
- package/dist/codec/verana/tr/v1/types.js +158 -156
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +32 -0
- package/dist/codec/verana/xr/v1/genesis.js +149 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +6 -6
- package/dist/codec/verana/xr/v1/params.js +104 -0
- package/dist/codec/verana/xr/v1/query.d.ts +162 -0
- package/dist/codec/verana/xr/v1/query.js +775 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +195 -0
- package/dist/codec/verana/xr/v1/tx.js +939 -0
- package/dist/helpers/aminoConverters.d.ts +8 -0
- package/dist/helpers/aminoConverters.js +24 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/signing.d.ts +38 -7
- package/dist/signing.js +45 -36
- package/package.json +4 -2
- package/dist/amino-converter/dd.d.ts +0 -17
- package/dist/amino-converter/dd.js +0 -65
- package/dist/codec/verana/dd/v1/genesis.js +0 -96
- package/dist/codec/verana/dd/v1/params.js +0 -98
- package/dist/codec/verana/dd/v1/query.d.ts +0 -109
- package/dist/codec/verana/dd/v1/query.js +0 -428
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -174
- package/dist/codec/verana/dd/v1/tx.js +0 -611
- package/dist/codec/verana/dd/v1/types.d.ts +0 -31
- package/dist/codec/verana/dd/v1/types.js +0 -172
|
@@ -4,27 +4,57 @@
|
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: verana/tr/v1/query.proto
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
10
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
41
|
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListTrustRegistriesResponse = exports.QueryListTrustRegistriesRequest = exports.QueryGetTrustRegistryResponse = exports.QueryGetTrustRegistryRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
12
42
|
/* eslint-disable */
|
|
13
|
-
const
|
|
14
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
43
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
15
44
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
16
45
|
const params_1 = require("./params");
|
|
17
46
|
const types_1 = require("./types");
|
|
47
|
+
const Long = require("long");
|
|
18
48
|
exports.protobufPackage = "verana.tr.v1";
|
|
19
49
|
function createBaseQueryParamsRequest() {
|
|
20
50
|
return {};
|
|
21
51
|
}
|
|
22
52
|
exports.QueryParamsRequest = {
|
|
23
|
-
encode(_, writer =
|
|
53
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
24
54
|
return writer;
|
|
25
55
|
},
|
|
26
56
|
decode(input, length) {
|
|
27
|
-
const reader = input instanceof
|
|
57
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
28
58
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
59
|
const message = createBaseQueryParamsRequest();
|
|
30
60
|
while (reader.pos < end) {
|
|
@@ -57,14 +87,14 @@ function createBaseQueryParamsResponse() {
|
|
|
57
87
|
return { params: undefined };
|
|
58
88
|
}
|
|
59
89
|
exports.QueryParamsResponse = {
|
|
60
|
-
encode(message, writer =
|
|
90
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
61
91
|
if (message.params !== undefined) {
|
|
62
92
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
63
93
|
}
|
|
64
94
|
return writer;
|
|
65
95
|
},
|
|
66
96
|
decode(input, length) {
|
|
67
|
-
const reader = input instanceof
|
|
97
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
68
98
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
69
99
|
const message = createBaseQueryParamsResponse();
|
|
70
100
|
while (reader.pos < end) {
|
|
@@ -106,11 +136,11 @@ exports.QueryParamsResponse = {
|
|
|
106
136
|
},
|
|
107
137
|
};
|
|
108
138
|
function createBaseQueryGetTrustRegistryRequest() {
|
|
109
|
-
return { trId:
|
|
139
|
+
return { trId: 0, activeGfOnly: false, preferredLanguage: "" };
|
|
110
140
|
}
|
|
111
141
|
exports.QueryGetTrustRegistryRequest = {
|
|
112
|
-
encode(message, writer =
|
|
113
|
-
if (
|
|
142
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
143
|
+
if (message.trId !== 0) {
|
|
114
144
|
writer.uint32(8).uint64(message.trId);
|
|
115
145
|
}
|
|
116
146
|
if (message.activeGfOnly !== false) {
|
|
@@ -122,7 +152,7 @@ exports.QueryGetTrustRegistryRequest = {
|
|
|
122
152
|
return writer;
|
|
123
153
|
},
|
|
124
154
|
decode(input, length) {
|
|
125
|
-
const reader = input instanceof
|
|
155
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
126
156
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
157
|
const message = createBaseQueryGetTrustRegistryRequest();
|
|
128
158
|
while (reader.pos < end) {
|
|
@@ -132,7 +162,7 @@ exports.QueryGetTrustRegistryRequest = {
|
|
|
132
162
|
if (tag !== 8) {
|
|
133
163
|
break;
|
|
134
164
|
}
|
|
135
|
-
message.trId = reader.uint64();
|
|
165
|
+
message.trId = longToNumber(reader.uint64());
|
|
136
166
|
continue;
|
|
137
167
|
case 2:
|
|
138
168
|
if (tag !== 16) {
|
|
@@ -156,15 +186,15 @@ exports.QueryGetTrustRegistryRequest = {
|
|
|
156
186
|
},
|
|
157
187
|
fromJSON(object) {
|
|
158
188
|
return {
|
|
159
|
-
trId: isSet(object.trId) ?
|
|
189
|
+
trId: isSet(object.trId) ? globalThis.Number(object.trId) : 0,
|
|
160
190
|
activeGfOnly: isSet(object.activeGfOnly) ? globalThis.Boolean(object.activeGfOnly) : false,
|
|
161
191
|
preferredLanguage: isSet(object.preferredLanguage) ? globalThis.String(object.preferredLanguage) : "",
|
|
162
192
|
};
|
|
163
193
|
},
|
|
164
194
|
toJSON(message) {
|
|
165
195
|
const obj = {};
|
|
166
|
-
if (
|
|
167
|
-
obj.trId = (message.trId
|
|
196
|
+
if (message.trId !== 0) {
|
|
197
|
+
obj.trId = Math.round(message.trId);
|
|
168
198
|
}
|
|
169
199
|
if (message.activeGfOnly !== false) {
|
|
170
200
|
obj.activeGfOnly = message.activeGfOnly;
|
|
@@ -178,11 +208,11 @@ exports.QueryGetTrustRegistryRequest = {
|
|
|
178
208
|
return exports.QueryGetTrustRegistryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
179
209
|
},
|
|
180
210
|
fromPartial(object) {
|
|
181
|
-
var _a, _b;
|
|
211
|
+
var _a, _b, _c;
|
|
182
212
|
const message = createBaseQueryGetTrustRegistryRequest();
|
|
183
|
-
message.trId = (object.trId !==
|
|
184
|
-
message.activeGfOnly = (
|
|
185
|
-
message.preferredLanguage = (
|
|
213
|
+
message.trId = (_a = object.trId) !== null && _a !== void 0 ? _a : 0;
|
|
214
|
+
message.activeGfOnly = (_b = object.activeGfOnly) !== null && _b !== void 0 ? _b : false;
|
|
215
|
+
message.preferredLanguage = (_c = object.preferredLanguage) !== null && _c !== void 0 ? _c : "";
|
|
186
216
|
return message;
|
|
187
217
|
},
|
|
188
218
|
};
|
|
@@ -190,14 +220,14 @@ function createBaseQueryGetTrustRegistryResponse() {
|
|
|
190
220
|
return { trustRegistry: undefined };
|
|
191
221
|
}
|
|
192
222
|
exports.QueryGetTrustRegistryResponse = {
|
|
193
|
-
encode(message, writer =
|
|
223
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
194
224
|
if (message.trustRegistry !== undefined) {
|
|
195
225
|
types_1.TrustRegistryWithVersions.encode(message.trustRegistry, writer.uint32(10).fork()).ldelim();
|
|
196
226
|
}
|
|
197
227
|
return writer;
|
|
198
228
|
},
|
|
199
229
|
decode(input, length) {
|
|
200
|
-
const reader = input instanceof
|
|
230
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
201
231
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
202
232
|
const message = createBaseQueryGetTrustRegistryResponse();
|
|
203
233
|
while (reader.pos < end) {
|
|
@@ -241,12 +271,12 @@ exports.QueryGetTrustRegistryResponse = {
|
|
|
241
271
|
},
|
|
242
272
|
};
|
|
243
273
|
function createBaseQueryListTrustRegistriesRequest() {
|
|
244
|
-
return {
|
|
274
|
+
return { corporation: "", modifiedAfter: undefined, activeGfOnly: false, preferredLanguage: "", responseMaxSize: 0 };
|
|
245
275
|
}
|
|
246
276
|
exports.QueryListTrustRegistriesRequest = {
|
|
247
|
-
encode(message, writer =
|
|
248
|
-
if (message.
|
|
249
|
-
writer.uint32(10).string(message.
|
|
277
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
278
|
+
if (message.corporation !== "") {
|
|
279
|
+
writer.uint32(10).string(message.corporation);
|
|
250
280
|
}
|
|
251
281
|
if (message.modifiedAfter !== undefined) {
|
|
252
282
|
timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(18).fork()).ldelim();
|
|
@@ -263,7 +293,7 @@ exports.QueryListTrustRegistriesRequest = {
|
|
|
263
293
|
return writer;
|
|
264
294
|
},
|
|
265
295
|
decode(input, length) {
|
|
266
|
-
const reader = input instanceof
|
|
296
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
267
297
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
268
298
|
const message = createBaseQueryListTrustRegistriesRequest();
|
|
269
299
|
while (reader.pos < end) {
|
|
@@ -273,7 +303,7 @@ exports.QueryListTrustRegistriesRequest = {
|
|
|
273
303
|
if (tag !== 10) {
|
|
274
304
|
break;
|
|
275
305
|
}
|
|
276
|
-
message.
|
|
306
|
+
message.corporation = reader.string();
|
|
277
307
|
continue;
|
|
278
308
|
case 2:
|
|
279
309
|
if (tag !== 18) {
|
|
@@ -309,7 +339,7 @@ exports.QueryListTrustRegistriesRequest = {
|
|
|
309
339
|
},
|
|
310
340
|
fromJSON(object) {
|
|
311
341
|
return {
|
|
312
|
-
|
|
342
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
313
343
|
modifiedAfter: isSet(object.modifiedAfter) ? fromJsonTimestamp(object.modifiedAfter) : undefined,
|
|
314
344
|
activeGfOnly: isSet(object.activeGfOnly) ? globalThis.Boolean(object.activeGfOnly) : false,
|
|
315
345
|
preferredLanguage: isSet(object.preferredLanguage) ? globalThis.String(object.preferredLanguage) : "",
|
|
@@ -318,8 +348,8 @@ exports.QueryListTrustRegistriesRequest = {
|
|
|
318
348
|
},
|
|
319
349
|
toJSON(message) {
|
|
320
350
|
const obj = {};
|
|
321
|
-
if (message.
|
|
322
|
-
obj.
|
|
351
|
+
if (message.corporation !== "") {
|
|
352
|
+
obj.corporation = message.corporation;
|
|
323
353
|
}
|
|
324
354
|
if (message.modifiedAfter !== undefined) {
|
|
325
355
|
obj.modifiedAfter = message.modifiedAfter.toISOString();
|
|
@@ -341,7 +371,7 @@ exports.QueryListTrustRegistriesRequest = {
|
|
|
341
371
|
fromPartial(object) {
|
|
342
372
|
var _a, _b, _c, _d, _e;
|
|
343
373
|
const message = createBaseQueryListTrustRegistriesRequest();
|
|
344
|
-
message.
|
|
374
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
345
375
|
message.modifiedAfter = (_b = object.modifiedAfter) !== null && _b !== void 0 ? _b : undefined;
|
|
346
376
|
message.activeGfOnly = (_c = object.activeGfOnly) !== null && _c !== void 0 ? _c : false;
|
|
347
377
|
message.preferredLanguage = (_d = object.preferredLanguage) !== null && _d !== void 0 ? _d : "";
|
|
@@ -353,14 +383,14 @@ function createBaseQueryListTrustRegistriesResponse() {
|
|
|
353
383
|
return { trustRegistries: [] };
|
|
354
384
|
}
|
|
355
385
|
exports.QueryListTrustRegistriesResponse = {
|
|
356
|
-
encode(message, writer =
|
|
386
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
357
387
|
for (const v of message.trustRegistries) {
|
|
358
388
|
types_1.TrustRegistryWithVersions.encode(v, writer.uint32(10).fork()).ldelim();
|
|
359
389
|
}
|
|
360
390
|
return writer;
|
|
361
391
|
},
|
|
362
392
|
decode(input, length) {
|
|
363
|
-
const reader = input instanceof
|
|
393
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
364
394
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
365
395
|
const message = createBaseQueryListTrustRegistriesResponse();
|
|
366
396
|
while (reader.pos < end) {
|
|
@@ -417,27 +447,27 @@ class QueryClientImpl {
|
|
|
417
447
|
Params(request) {
|
|
418
448
|
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
419
449
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
420
|
-
return promise.then((data) => exports.QueryParamsResponse.decode(
|
|
450
|
+
return promise.then((data) => exports.QueryParamsResponse.decode(_m0.Reader.create(data)));
|
|
421
451
|
}
|
|
422
452
|
GetTrustRegistry(request) {
|
|
423
453
|
const data = exports.QueryGetTrustRegistryRequest.encode(request).finish();
|
|
424
454
|
const promise = this.rpc.request(this.service, "GetTrustRegistry", data);
|
|
425
|
-
return promise.then((data) => exports.QueryGetTrustRegistryResponse.decode(
|
|
455
|
+
return promise.then((data) => exports.QueryGetTrustRegistryResponse.decode(_m0.Reader.create(data)));
|
|
426
456
|
}
|
|
427
457
|
ListTrustRegistries(request) {
|
|
428
458
|
const data = exports.QueryListTrustRegistriesRequest.encode(request).finish();
|
|
429
459
|
const promise = this.rpc.request(this.service, "ListTrustRegistries", data);
|
|
430
|
-
return promise.then((data) => exports.QueryListTrustRegistriesResponse.decode(
|
|
460
|
+
return promise.then((data) => exports.QueryListTrustRegistriesResponse.decode(_m0.Reader.create(data)));
|
|
431
461
|
}
|
|
432
462
|
}
|
|
433
463
|
exports.QueryClientImpl = QueryClientImpl;
|
|
434
464
|
function toTimestamp(date) {
|
|
435
|
-
const seconds =
|
|
465
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
436
466
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
437
467
|
return { seconds, nanos };
|
|
438
468
|
}
|
|
439
469
|
function fromTimestamp(t) {
|
|
440
|
-
let millis = (t.seconds
|
|
470
|
+
let millis = (t.seconds || 0) * 1000;
|
|
441
471
|
millis += (t.nanos || 0) / 1000000;
|
|
442
472
|
return new globalThis.Date(millis);
|
|
443
473
|
}
|
|
@@ -452,12 +482,18 @@ function fromJsonTimestamp(o) {
|
|
|
452
482
|
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
453
483
|
}
|
|
454
484
|
}
|
|
455
|
-
function
|
|
456
|
-
|
|
485
|
+
function longToNumber(long) {
|
|
486
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
487
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
488
|
+
}
|
|
489
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
490
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
491
|
+
}
|
|
492
|
+
return long.toNumber();
|
|
457
493
|
}
|
|
458
|
-
if (
|
|
459
|
-
|
|
460
|
-
|
|
494
|
+
if (_m0.util.Long !== Long) {
|
|
495
|
+
_m0.util.Long = Long;
|
|
496
|
+
_m0.configure();
|
|
461
497
|
}
|
|
462
498
|
function isSet(value) {
|
|
463
499
|
return value !== null && value !== undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
2
|
import { Params } from "./params";
|
|
4
3
|
export declare const protobufPackage = "verana.tr.v1";
|
|
5
4
|
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
@@ -11,7 +10,7 @@ export interface MsgUpdateParams {
|
|
|
11
10
|
*
|
|
12
11
|
* NOTE: All parameters must be supplied.
|
|
13
12
|
*/
|
|
14
|
-
params
|
|
13
|
+
params: Params | undefined;
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
17
16
|
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
@@ -19,53 +18,98 @@ export interface MsgUpdateParams {
|
|
|
19
18
|
*/
|
|
20
19
|
export interface MsgUpdateParamsResponse {
|
|
21
20
|
}
|
|
22
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* MsgCreateTrustRegistry defines the Msg/CreateTrustRegistry request type.
|
|
23
|
+
* [MOD-TR-MSG-1] Create New Trust Registry
|
|
24
|
+
*/
|
|
23
25
|
export interface MsgCreateTrustRegistry {
|
|
24
|
-
|
|
26
|
+
/** corporation is the group account on whose behalf this message is executed */
|
|
27
|
+
corporation: string;
|
|
28
|
+
/** operator is the account authorized by the corporation to run this Msg */
|
|
29
|
+
operator: string;
|
|
30
|
+
/** did is the DID of the ecosystem creating this trust registry (mandatory) */
|
|
25
31
|
did: string;
|
|
32
|
+
/** aka is an optional additional URI of this trust registry */
|
|
26
33
|
aka: string;
|
|
34
|
+
/** language is the primary language tag (RFC1766) of this trust registry (mandatory) */
|
|
27
35
|
language: string;
|
|
36
|
+
/** doc_url is the URL where the initial governance framework document is published (mandatory) */
|
|
28
37
|
docUrl: string;
|
|
38
|
+
/** doc_digest_sri is the digest SRI of the initial governance framework document (mandatory) */
|
|
29
39
|
docDigestSri: string;
|
|
30
40
|
}
|
|
31
41
|
/** MsgCreateTrustRegistryResponse defines the Msg/CreateTrustRegistry response type. */
|
|
32
42
|
export interface MsgCreateTrustRegistryResponse {
|
|
33
43
|
}
|
|
34
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* MsgAddGovernanceFrameworkDocument defines the Msg/AddGovernanceFrameworkDocument request type.
|
|
46
|
+
* [MOD-TR-MSG-2] Add Governance Framework Document
|
|
47
|
+
*/
|
|
35
48
|
export interface MsgAddGovernanceFrameworkDocument {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
/** corporation is the group account on whose behalf this message is executed */
|
|
50
|
+
corporation: string;
|
|
51
|
+
/** operator is the account authorized by the corporation to run this Msg */
|
|
52
|
+
operator: string;
|
|
53
|
+
/** tr_id is the trust registry id (mandatory) */
|
|
54
|
+
trId: number;
|
|
55
|
+
/** language is the language tag (RFC1766) of the document (mandatory) */
|
|
56
|
+
language: string;
|
|
57
|
+
/** url is the URL where the document is published (mandatory) */
|
|
58
|
+
url: string;
|
|
59
|
+
/** digest_sri is the digest SRI of the document (mandatory) */
|
|
60
|
+
digestSri: string;
|
|
61
|
+
/** version is the targeted version (mandatory) */
|
|
41
62
|
version: number;
|
|
42
63
|
}
|
|
43
64
|
/** MsgAddGovernanceFrameworkDocumentResponse defines the Msg/AddGovernanceFrameworkDocument response type. */
|
|
44
65
|
export interface MsgAddGovernanceFrameworkDocumentResponse {
|
|
45
66
|
}
|
|
46
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion request type.
|
|
69
|
+
* [MOD-TR-MSG-3] Increase Active Governance Framework Version
|
|
70
|
+
*/
|
|
47
71
|
export interface MsgIncreaseActiveGovernanceFrameworkVersion {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
72
|
+
/** corporation is the group account on whose behalf this message is executed */
|
|
73
|
+
corporation: string;
|
|
74
|
+
/** operator is the account authorized by the corporation to run this Msg */
|
|
75
|
+
operator: string;
|
|
76
|
+
/** tr_id is the trust registry id (mandatory) */
|
|
77
|
+
trId: number;
|
|
51
78
|
}
|
|
52
79
|
/** MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion response type. */
|
|
53
80
|
export interface MsgIncreaseActiveGovernanceFrameworkVersionResponse {
|
|
54
81
|
}
|
|
55
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* MsgUpdateTrustRegistry defines the Msg/UpdateTrustRegistry request type.
|
|
84
|
+
* [MOD-TR-MSG-4] Update Trust Registry
|
|
85
|
+
*/
|
|
56
86
|
export interface MsgUpdateTrustRegistry {
|
|
57
|
-
|
|
58
|
-
|
|
87
|
+
/** corporation is the group account on whose behalf this message is executed */
|
|
88
|
+
corporation: string;
|
|
89
|
+
/** operator is the account authorized by the corporation to run this Msg */
|
|
90
|
+
operator: string;
|
|
91
|
+
/** tr_id is the trust registry id (mandatory) */
|
|
92
|
+
trId: number;
|
|
93
|
+
/** did is the DID of the ecosystem (mandatory) — spec draft 13 [MOD-TR-MSG-4-1] */
|
|
59
94
|
did: string;
|
|
95
|
+
/** aka is an optional additional URI of this trust registry */
|
|
60
96
|
aka: string;
|
|
61
97
|
}
|
|
62
98
|
/** MsgUpdateTrustRegistryResponse defines the Msg/UpdateTrustRegistry response type. */
|
|
63
99
|
export interface MsgUpdateTrustRegistryResponse {
|
|
64
100
|
}
|
|
65
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* MsgArchiveTrustRegistry defines the Msg/ArchiveTrustRegistry request type.
|
|
103
|
+
* [MOD-TR-MSG-5] Archive Trust Registry
|
|
104
|
+
*/
|
|
66
105
|
export interface MsgArchiveTrustRegistry {
|
|
67
|
-
|
|
68
|
-
|
|
106
|
+
/** corporation is the group account on whose behalf this message is executed */
|
|
107
|
+
corporation: string;
|
|
108
|
+
/** operator is the account authorized by the corporation to run this Msg */
|
|
109
|
+
operator: string;
|
|
110
|
+
/** tr_id is the trust registry id (mandatory) */
|
|
111
|
+
trId: number;
|
|
112
|
+
/** archive is true to archive, false to unarchive (mandatory) */
|
|
69
113
|
archive: boolean;
|
|
70
114
|
}
|
|
71
115
|
/** MsgArchiveTrustRegistryResponse defines the Msg/ArchiveTrustRegistry response type. */
|
|
@@ -199,7 +243,7 @@ interface Rpc {
|
|
|
199
243
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
200
244
|
}
|
|
201
245
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
202
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
246
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
203
247
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
204
248
|
} : Partial<T>;
|
|
205
249
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|