@vocdoni/proto 1.14.0 → 1.14.3
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/.github/workflows/post-merge.yml +3 -4
- package/Makefile +3 -2
- package/README.md +12 -0
- package/dist/client-store/index.js +307 -122
- package/dist/client-store/index.mjs +307 -122
- package/dist/{index-85137ec5.d.ts → index-8a98085c.d.ts} +187 -87
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1896 -754
- package/dist/index.mjs +1896 -754
- package/dist/metadata/index.js +605 -233
- package/dist/metadata/index.mjs +605 -233
- package/dist/vochain/index.d.ts +1 -1
- package/dist/vochain/index.js +1122 -434
- package/dist/vochain/index.mjs +1122 -434
- package/package.json +2 -2
- package/src/vocdoni-node/statedb.proto +2 -0
- package/src/vochain/vochain.proto +5 -3
package/dist/vochain/index.js
CHANGED
|
@@ -21,6 +21,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
23
|
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
28
|
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
25
29
|
mod2
|
|
26
30
|
));
|
|
@@ -257,7 +261,13 @@ var require_float = __commonJS({
|
|
|
257
261
|
if (sign)
|
|
258
262
|
val = -val;
|
|
259
263
|
if (val === 0)
|
|
260
|
-
writeUint(1 / val > 0 ?
|
|
264
|
+
writeUint(1 / val > 0 ? (
|
|
265
|
+
/* positive */
|
|
266
|
+
0
|
|
267
|
+
) : (
|
|
268
|
+
/* negative 0 */
|
|
269
|
+
2147483648
|
|
270
|
+
), buf, pos);
|
|
261
271
|
else if (isNaN(val))
|
|
262
272
|
writeUint(2143289344, buf, pos);
|
|
263
273
|
else if (val > 34028234663852886e22)
|
|
@@ -338,7 +348,13 @@ var require_float = __commonJS({
|
|
|
338
348
|
val = -val;
|
|
339
349
|
if (val === 0) {
|
|
340
350
|
writeUint(0, buf, pos + off0);
|
|
341
|
-
writeUint(1 / val > 0 ?
|
|
351
|
+
writeUint(1 / val > 0 ? (
|
|
352
|
+
/* positive */
|
|
353
|
+
0
|
|
354
|
+
) : (
|
|
355
|
+
/* negative 0 */
|
|
356
|
+
2147483648
|
|
357
|
+
), buf, pos + off1);
|
|
342
358
|
} else if (isNaN(val)) {
|
|
343
359
|
writeUint(0, buf, pos + off0);
|
|
344
360
|
writeUint(2146959360, buf, pos + off1);
|
|
@@ -631,9 +647,16 @@ var require_minimal = __commonJS({
|
|
|
631
647
|
util.LongBits = require_longbits();
|
|
632
648
|
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
633
649
|
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
634
|
-
util.emptyArray = Object.freeze ? Object.freeze([]) :
|
|
635
|
-
|
|
636
|
-
|
|
650
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
651
|
+
/* istanbul ignore next */
|
|
652
|
+
[]
|
|
653
|
+
);
|
|
654
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
655
|
+
/* istanbul ignore next */
|
|
656
|
+
{}
|
|
657
|
+
);
|
|
658
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
659
|
+
function isInteger(value) {
|
|
637
660
|
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
638
661
|
};
|
|
639
662
|
util.isString = function isString(value) {
|
|
@@ -642,7 +665,13 @@ var require_minimal = __commonJS({
|
|
|
642
665
|
util.isObject = function isObject(value) {
|
|
643
666
|
return value && typeof value === "object";
|
|
644
667
|
};
|
|
645
|
-
util.isset =
|
|
668
|
+
util.isset = /**
|
|
669
|
+
* Checks if a property on a message is considered to be present.
|
|
670
|
+
* @param {Object} obj Plain object or message instance
|
|
671
|
+
* @param {string} prop Property name
|
|
672
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
673
|
+
*/
|
|
674
|
+
util.isSet = function isSet2(obj, prop) {
|
|
646
675
|
var value = obj[prop];
|
|
647
676
|
if (value != null && obj.hasOwnProperty(prop))
|
|
648
677
|
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
@@ -651,7 +680,10 @@ var require_minimal = __commonJS({
|
|
|
651
680
|
util.Buffer = function() {
|
|
652
681
|
try {
|
|
653
682
|
var Buffer2 = util.inquire("buffer").Buffer;
|
|
654
|
-
return Buffer2.prototype.utf8Write ? Buffer2 :
|
|
683
|
+
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
684
|
+
/* istanbul ignore next */
|
|
685
|
+
null
|
|
686
|
+
);
|
|
655
687
|
} catch (e) {
|
|
656
688
|
return null;
|
|
657
689
|
}
|
|
@@ -662,7 +694,10 @@ var require_minimal = __commonJS({
|
|
|
662
694
|
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
663
695
|
};
|
|
664
696
|
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
665
|
-
util.Long =
|
|
697
|
+
util.Long = /* istanbul ignore next */
|
|
698
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
699
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
700
|
+
util.global.Long || util.inquire("long");
|
|
666
701
|
util.key2Re = /^true|false|0|1$/;
|
|
667
702
|
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
668
703
|
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
@@ -707,15 +742,19 @@ var require_minimal = __commonJS({
|
|
|
707
742
|
configurable: true
|
|
708
743
|
},
|
|
709
744
|
name: {
|
|
710
|
-
get() {
|
|
745
|
+
get: function get() {
|
|
711
746
|
return name;
|
|
712
747
|
},
|
|
713
748
|
set: void 0,
|
|
714
749
|
enumerable: false,
|
|
750
|
+
// configurable: false would accurately preserve the behavior of
|
|
751
|
+
// the original, but I'm guessing that was not intentional.
|
|
752
|
+
// For an actual error subclass, this property would
|
|
753
|
+
// be configurable.
|
|
715
754
|
configurable: true
|
|
716
755
|
},
|
|
717
756
|
toString: {
|
|
718
|
-
value() {
|
|
757
|
+
value: function value() {
|
|
719
758
|
return this.name + ": " + this.message;
|
|
720
759
|
},
|
|
721
760
|
writable: true,
|
|
@@ -756,10 +795,12 @@ var require_minimal = __commonJS({
|
|
|
756
795
|
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
757
796
|
return;
|
|
758
797
|
}
|
|
759
|
-
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from ||
|
|
798
|
+
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
799
|
+
function Buffer_from(value, encoding) {
|
|
760
800
|
return new Buffer2(value, encoding);
|
|
761
801
|
};
|
|
762
|
-
util._Buffer_allocUnsafe = Buffer2.allocUnsafe ||
|
|
802
|
+
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
803
|
+
function Buffer_allocUnsafe(size) {
|
|
763
804
|
return new Buffer2(size);
|
|
764
805
|
};
|
|
765
806
|
};
|
|
@@ -1042,7 +1083,8 @@ var require_reader = __commonJS({
|
|
|
1042
1083
|
} : create_array;
|
|
1043
1084
|
};
|
|
1044
1085
|
Reader.create = create();
|
|
1045
|
-
Reader.prototype._slice = util.Array.prototype.subarray ||
|
|
1086
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1087
|
+
util.Array.prototype.slice;
|
|
1046
1088
|
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1047
1089
|
var value = 4294967295;
|
|
1048
1090
|
return function read_uint32() {
|
|
@@ -1206,7 +1248,10 @@ var require_reader = __commonJS({
|
|
|
1206
1248
|
BufferReader = BufferReader_;
|
|
1207
1249
|
Reader.create = create();
|
|
1208
1250
|
BufferReader._configure();
|
|
1209
|
-
var fn = util.Long ? "toLong" :
|
|
1251
|
+
var fn = util.Long ? "toLong" : (
|
|
1252
|
+
/* istanbul ignore next */
|
|
1253
|
+
"toNumber"
|
|
1254
|
+
);
|
|
1210
1255
|
util.merge(Reader.prototype, {
|
|
1211
1256
|
int64: function read_int64() {
|
|
1212
1257
|
return readLongVarint.call(this)[fn](false);
|
|
@@ -1288,7 +1333,10 @@ var require_service = __commonJS({
|
|
|
1288
1333
|
return callback(err);
|
|
1289
1334
|
}
|
|
1290
1335
|
if (response === null) {
|
|
1291
|
-
self2.end(
|
|
1336
|
+
self2.end(
|
|
1337
|
+
/* endedByRPC */
|
|
1338
|
+
true
|
|
1339
|
+
);
|
|
1292
1340
|
return void 0;
|
|
1293
1341
|
}
|
|
1294
1342
|
if (!(response instanceof responseCtor)) {
|
|
@@ -2057,41 +2105,60 @@ var VoteEnvelope = {
|
|
|
2057
2105
|
return writer;
|
|
2058
2106
|
},
|
|
2059
2107
|
decode(input, length) {
|
|
2060
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2108
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2061
2109
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2062
2110
|
const message = createBaseVoteEnvelope();
|
|
2063
2111
|
while (reader.pos < end) {
|
|
2064
2112
|
const tag = reader.uint32();
|
|
2065
2113
|
switch (tag >>> 3) {
|
|
2066
2114
|
case 1:
|
|
2115
|
+
if (tag != 10) {
|
|
2116
|
+
break;
|
|
2117
|
+
}
|
|
2067
2118
|
message.nonce = reader.bytes();
|
|
2068
|
-
|
|
2119
|
+
continue;
|
|
2069
2120
|
case 2:
|
|
2121
|
+
if (tag != 18) {
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2070
2124
|
message.processId = reader.bytes();
|
|
2071
|
-
|
|
2125
|
+
continue;
|
|
2072
2126
|
case 3:
|
|
2127
|
+
if (tag != 26) {
|
|
2128
|
+
break;
|
|
2129
|
+
}
|
|
2073
2130
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
2074
|
-
|
|
2131
|
+
continue;
|
|
2075
2132
|
case 4:
|
|
2133
|
+
if (tag != 34) {
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2076
2136
|
message.votePackage = reader.bytes();
|
|
2077
|
-
|
|
2137
|
+
continue;
|
|
2078
2138
|
case 5:
|
|
2139
|
+
if (tag != 42) {
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2079
2142
|
message.nullifier = reader.bytes();
|
|
2080
|
-
|
|
2143
|
+
continue;
|
|
2081
2144
|
case 6:
|
|
2082
|
-
if (
|
|
2145
|
+
if (tag == 48) {
|
|
2146
|
+
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2147
|
+
continue;
|
|
2148
|
+
}
|
|
2149
|
+
if (tag == 50) {
|
|
2083
2150
|
const end2 = reader.uint32() + reader.pos;
|
|
2084
2151
|
while (reader.pos < end2) {
|
|
2085
2152
|
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2086
2153
|
}
|
|
2087
|
-
|
|
2088
|
-
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2154
|
+
continue;
|
|
2089
2155
|
}
|
|
2090
2156
|
break;
|
|
2091
|
-
default:
|
|
2092
|
-
reader.skipType(tag & 7);
|
|
2093
|
-
break;
|
|
2094
2157
|
}
|
|
2158
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
reader.skipType(tag & 7);
|
|
2095
2162
|
}
|
|
2096
2163
|
return message;
|
|
2097
2164
|
},
|
|
@@ -2141,16 +2208,17 @@ var Census = {
|
|
|
2141
2208
|
return writer;
|
|
2142
2209
|
},
|
|
2143
2210
|
decode(input, length) {
|
|
2144
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2211
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2145
2212
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2146
2213
|
const message = createBaseCensus();
|
|
2147
2214
|
while (reader.pos < end) {
|
|
2148
2215
|
const tag = reader.uint32();
|
|
2149
2216
|
switch (tag >>> 3) {
|
|
2150
|
-
default:
|
|
2151
|
-
reader.skipType(tag & 7);
|
|
2152
|
-
break;
|
|
2153
2217
|
}
|
|
2218
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2219
|
+
break;
|
|
2220
|
+
}
|
|
2221
|
+
reader.skipType(tag & 7);
|
|
2154
2222
|
}
|
|
2155
2223
|
return message;
|
|
2156
2224
|
},
|
|
@@ -2174,73 +2242,100 @@ function createBaseProof() {
|
|
|
2174
2242
|
}
|
|
2175
2243
|
var Proof = {
|
|
2176
2244
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2245
|
+
switch (message.payload?.$case) {
|
|
2246
|
+
case "graviton":
|
|
2247
|
+
ProofGraviton.encode(message.payload.graviton, writer.uint32(10).fork()).ldelim();
|
|
2248
|
+
break;
|
|
2249
|
+
case "iden3":
|
|
2250
|
+
ProofIden3.encode(message.payload.iden3, writer.uint32(18).fork()).ldelim();
|
|
2251
|
+
break;
|
|
2252
|
+
case "ethereumStorage":
|
|
2253
|
+
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
2254
|
+
break;
|
|
2255
|
+
case "ethereumAccount":
|
|
2256
|
+
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
2257
|
+
break;
|
|
2258
|
+
case "ca":
|
|
2259
|
+
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
2260
|
+
break;
|
|
2261
|
+
case "arbo":
|
|
2262
|
+
ProofArbo.encode(message.payload.arbo, writer.uint32(50).fork()).ldelim();
|
|
2263
|
+
break;
|
|
2264
|
+
case "zkSnark":
|
|
2265
|
+
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
2266
|
+
break;
|
|
2267
|
+
case "minimeStorage":
|
|
2268
|
+
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2269
|
+
break;
|
|
2200
2270
|
}
|
|
2201
2271
|
return writer;
|
|
2202
2272
|
},
|
|
2203
2273
|
decode(input, length) {
|
|
2204
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2274
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2205
2275
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2206
2276
|
const message = createBaseProof();
|
|
2207
2277
|
while (reader.pos < end) {
|
|
2208
2278
|
const tag = reader.uint32();
|
|
2209
2279
|
switch (tag >>> 3) {
|
|
2210
2280
|
case 1:
|
|
2281
|
+
if (tag != 10) {
|
|
2282
|
+
break;
|
|
2283
|
+
}
|
|
2211
2284
|
message.payload = { $case: "graviton", graviton: ProofGraviton.decode(reader, reader.uint32()) };
|
|
2212
|
-
|
|
2285
|
+
continue;
|
|
2213
2286
|
case 2:
|
|
2287
|
+
if (tag != 18) {
|
|
2288
|
+
break;
|
|
2289
|
+
}
|
|
2214
2290
|
message.payload = { $case: "iden3", iden3: ProofIden3.decode(reader, reader.uint32()) };
|
|
2215
|
-
|
|
2291
|
+
continue;
|
|
2216
2292
|
case 3:
|
|
2293
|
+
if (tag != 26) {
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2217
2296
|
message.payload = {
|
|
2218
2297
|
$case: "ethereumStorage",
|
|
2219
2298
|
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
2220
2299
|
};
|
|
2221
|
-
|
|
2300
|
+
continue;
|
|
2222
2301
|
case 4:
|
|
2302
|
+
if (tag != 34) {
|
|
2303
|
+
break;
|
|
2304
|
+
}
|
|
2223
2305
|
message.payload = {
|
|
2224
2306
|
$case: "ethereumAccount",
|
|
2225
2307
|
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
2226
2308
|
};
|
|
2227
|
-
|
|
2309
|
+
continue;
|
|
2228
2310
|
case 5:
|
|
2311
|
+
if (tag != 42) {
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2229
2314
|
message.payload = { $case: "ca", ca: ProofCA.decode(reader, reader.uint32()) };
|
|
2230
|
-
|
|
2315
|
+
continue;
|
|
2231
2316
|
case 6:
|
|
2317
|
+
if (tag != 50) {
|
|
2318
|
+
break;
|
|
2319
|
+
}
|
|
2232
2320
|
message.payload = { $case: "arbo", arbo: ProofArbo.decode(reader, reader.uint32()) };
|
|
2233
|
-
|
|
2321
|
+
continue;
|
|
2234
2322
|
case 7:
|
|
2323
|
+
if (tag != 58) {
|
|
2324
|
+
break;
|
|
2325
|
+
}
|
|
2235
2326
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
2236
|
-
|
|
2327
|
+
continue;
|
|
2237
2328
|
case 8:
|
|
2329
|
+
if (tag != 66) {
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2238
2332
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2333
|
+
continue;
|
|
2334
|
+
}
|
|
2335
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2336
|
+
break;
|
|
2243
2337
|
}
|
|
2338
|
+
reader.skipType(tag & 7);
|
|
2244
2339
|
}
|
|
2245
2340
|
return message;
|
|
2246
2341
|
},
|
|
@@ -2313,19 +2408,23 @@ var ProofGraviton = {
|
|
|
2313
2408
|
return writer;
|
|
2314
2409
|
},
|
|
2315
2410
|
decode(input, length) {
|
|
2316
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2411
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2317
2412
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2318
2413
|
const message = createBaseProofGraviton();
|
|
2319
2414
|
while (reader.pos < end) {
|
|
2320
2415
|
const tag = reader.uint32();
|
|
2321
2416
|
switch (tag >>> 3) {
|
|
2322
2417
|
case 1:
|
|
2418
|
+
if (tag != 10) {
|
|
2419
|
+
break;
|
|
2420
|
+
}
|
|
2323
2421
|
message.siblings = reader.bytes();
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2422
|
+
continue;
|
|
2423
|
+
}
|
|
2424
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2425
|
+
break;
|
|
2328
2426
|
}
|
|
2427
|
+
reader.skipType(tag & 7);
|
|
2329
2428
|
}
|
|
2330
2429
|
return message;
|
|
2331
2430
|
},
|
|
@@ -2357,19 +2456,23 @@ var ProofIden3 = {
|
|
|
2357
2456
|
return writer;
|
|
2358
2457
|
},
|
|
2359
2458
|
decode(input, length) {
|
|
2360
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2459
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2361
2460
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2362
2461
|
const message = createBaseProofIden3();
|
|
2363
2462
|
while (reader.pos < end) {
|
|
2364
2463
|
const tag = reader.uint32();
|
|
2365
2464
|
switch (tag >>> 3) {
|
|
2366
2465
|
case 1:
|
|
2466
|
+
if (tag != 10) {
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2367
2469
|
message.siblings = reader.bytes();
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2470
|
+
continue;
|
|
2471
|
+
}
|
|
2472
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2473
|
+
break;
|
|
2372
2474
|
}
|
|
2475
|
+
reader.skipType(tag & 7);
|
|
2373
2476
|
}
|
|
2374
2477
|
return message;
|
|
2375
2478
|
},
|
|
@@ -2407,25 +2510,35 @@ var ProofEthereumStorage = {
|
|
|
2407
2510
|
return writer;
|
|
2408
2511
|
},
|
|
2409
2512
|
decode(input, length) {
|
|
2410
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2513
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2411
2514
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2412
2515
|
const message = createBaseProofEthereumStorage();
|
|
2413
2516
|
while (reader.pos < end) {
|
|
2414
2517
|
const tag = reader.uint32();
|
|
2415
2518
|
switch (tag >>> 3) {
|
|
2416
2519
|
case 1:
|
|
2520
|
+
if (tag != 10) {
|
|
2521
|
+
break;
|
|
2522
|
+
}
|
|
2417
2523
|
message.key = reader.bytes();
|
|
2418
|
-
|
|
2524
|
+
continue;
|
|
2419
2525
|
case 2:
|
|
2526
|
+
if (tag != 18) {
|
|
2527
|
+
break;
|
|
2528
|
+
}
|
|
2420
2529
|
message.value = reader.bytes();
|
|
2421
|
-
|
|
2530
|
+
continue;
|
|
2422
2531
|
case 3:
|
|
2532
|
+
if (tag != 26) {
|
|
2533
|
+
break;
|
|
2534
|
+
}
|
|
2423
2535
|
message.siblings.push(reader.bytes());
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2536
|
+
continue;
|
|
2537
|
+
}
|
|
2538
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2539
|
+
break;
|
|
2428
2540
|
}
|
|
2541
|
+
reader.skipType(tag & 7);
|
|
2429
2542
|
}
|
|
2430
2543
|
return message;
|
|
2431
2544
|
},
|
|
@@ -2487,31 +2600,47 @@ var ProofEthereumAccount = {
|
|
|
2487
2600
|
return writer;
|
|
2488
2601
|
},
|
|
2489
2602
|
decode(input, length) {
|
|
2490
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2603
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2491
2604
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2492
2605
|
const message = createBaseProofEthereumAccount();
|
|
2493
2606
|
while (reader.pos < end) {
|
|
2494
2607
|
const tag = reader.uint32();
|
|
2495
2608
|
switch (tag >>> 3) {
|
|
2496
2609
|
case 1:
|
|
2610
|
+
if (tag != 10) {
|
|
2611
|
+
break;
|
|
2612
|
+
}
|
|
2497
2613
|
message.nonce = reader.bytes();
|
|
2498
|
-
|
|
2614
|
+
continue;
|
|
2499
2615
|
case 2:
|
|
2616
|
+
if (tag != 18) {
|
|
2617
|
+
break;
|
|
2618
|
+
}
|
|
2500
2619
|
message.balance = reader.bytes();
|
|
2501
|
-
|
|
2620
|
+
continue;
|
|
2502
2621
|
case 3:
|
|
2622
|
+
if (tag != 26) {
|
|
2623
|
+
break;
|
|
2624
|
+
}
|
|
2503
2625
|
message.storageHash = reader.bytes();
|
|
2504
|
-
|
|
2626
|
+
continue;
|
|
2505
2627
|
case 4:
|
|
2628
|
+
if (tag != 34) {
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2506
2631
|
message.codeHash = reader.bytes();
|
|
2507
|
-
|
|
2632
|
+
continue;
|
|
2508
2633
|
case 5:
|
|
2634
|
+
if (tag != 42) {
|
|
2635
|
+
break;
|
|
2636
|
+
}
|
|
2509
2637
|
message.siblings.push(reader.bytes());
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2638
|
+
continue;
|
|
2639
|
+
}
|
|
2640
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2641
|
+
break;
|
|
2514
2642
|
}
|
|
2643
|
+
reader.skipType(tag & 7);
|
|
2515
2644
|
}
|
|
2516
2645
|
return message;
|
|
2517
2646
|
},
|
|
@@ -2564,22 +2693,29 @@ var ProofMinime = {
|
|
|
2564
2693
|
return writer;
|
|
2565
2694
|
},
|
|
2566
2695
|
decode(input, length) {
|
|
2567
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2696
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2568
2697
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2569
2698
|
const message = createBaseProofMinime();
|
|
2570
2699
|
while (reader.pos < end) {
|
|
2571
2700
|
const tag = reader.uint32();
|
|
2572
2701
|
switch (tag >>> 3) {
|
|
2573
2702
|
case 1:
|
|
2703
|
+
if (tag != 10) {
|
|
2704
|
+
break;
|
|
2705
|
+
}
|
|
2574
2706
|
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2575
|
-
|
|
2707
|
+
continue;
|
|
2576
2708
|
case 2:
|
|
2709
|
+
if (tag != 18) {
|
|
2710
|
+
break;
|
|
2711
|
+
}
|
|
2577
2712
|
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2578
|
-
|
|
2579
|
-
default:
|
|
2580
|
-
reader.skipType(tag & 7);
|
|
2581
|
-
break;
|
|
2713
|
+
continue;
|
|
2582
2714
|
}
|
|
2715
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2716
|
+
break;
|
|
2717
|
+
}
|
|
2718
|
+
reader.skipType(tag & 7);
|
|
2583
2719
|
}
|
|
2584
2720
|
return message;
|
|
2585
2721
|
},
|
|
@@ -2622,25 +2758,35 @@ var ProofCA = {
|
|
|
2622
2758
|
return writer;
|
|
2623
2759
|
},
|
|
2624
2760
|
decode(input, length) {
|
|
2625
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2761
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2626
2762
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2627
2763
|
const message = createBaseProofCA();
|
|
2628
2764
|
while (reader.pos < end) {
|
|
2629
2765
|
const tag = reader.uint32();
|
|
2630
2766
|
switch (tag >>> 3) {
|
|
2631
2767
|
case 1:
|
|
2768
|
+
if (tag != 8) {
|
|
2769
|
+
break;
|
|
2770
|
+
}
|
|
2632
2771
|
message.type = reader.int32();
|
|
2633
|
-
|
|
2772
|
+
continue;
|
|
2634
2773
|
case 2:
|
|
2774
|
+
if (tag != 18) {
|
|
2775
|
+
break;
|
|
2776
|
+
}
|
|
2635
2777
|
message.bundle = CAbundle.decode(reader, reader.uint32());
|
|
2636
|
-
|
|
2778
|
+
continue;
|
|
2637
2779
|
case 3:
|
|
2780
|
+
if (tag != 26) {
|
|
2781
|
+
break;
|
|
2782
|
+
}
|
|
2638
2783
|
message.signature = reader.bytes();
|
|
2639
|
-
|
|
2640
|
-
default:
|
|
2641
|
-
reader.skipType(tag & 7);
|
|
2642
|
-
break;
|
|
2784
|
+
continue;
|
|
2643
2785
|
}
|
|
2786
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2787
|
+
break;
|
|
2788
|
+
}
|
|
2789
|
+
reader.skipType(tag & 7);
|
|
2644
2790
|
}
|
|
2645
2791
|
return message;
|
|
2646
2792
|
},
|
|
@@ -2683,22 +2829,29 @@ var CAbundle = {
|
|
|
2683
2829
|
return writer;
|
|
2684
2830
|
},
|
|
2685
2831
|
decode(input, length) {
|
|
2686
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2832
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2687
2833
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2688
2834
|
const message = createBaseCAbundle();
|
|
2689
2835
|
while (reader.pos < end) {
|
|
2690
2836
|
const tag = reader.uint32();
|
|
2691
2837
|
switch (tag >>> 3) {
|
|
2692
2838
|
case 1:
|
|
2839
|
+
if (tag != 10) {
|
|
2840
|
+
break;
|
|
2841
|
+
}
|
|
2693
2842
|
message.processId = reader.bytes();
|
|
2694
|
-
|
|
2843
|
+
continue;
|
|
2695
2844
|
case 2:
|
|
2845
|
+
if (tag != 18) {
|
|
2846
|
+
break;
|
|
2847
|
+
}
|
|
2696
2848
|
message.address = reader.bytes();
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2849
|
+
continue;
|
|
2850
|
+
}
|
|
2851
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2852
|
+
break;
|
|
2701
2853
|
}
|
|
2854
|
+
reader.skipType(tag & 7);
|
|
2702
2855
|
}
|
|
2703
2856
|
return message;
|
|
2704
2857
|
},
|
|
@@ -2725,7 +2878,13 @@ var CAbundle = {
|
|
|
2725
2878
|
}
|
|
2726
2879
|
};
|
|
2727
2880
|
function createBaseProofArbo() {
|
|
2728
|
-
return {
|
|
2881
|
+
return {
|
|
2882
|
+
type: 0,
|
|
2883
|
+
siblings: new Uint8Array(),
|
|
2884
|
+
leafWeight: new Uint8Array(),
|
|
2885
|
+
keyType: 0,
|
|
2886
|
+
votingWeight: new Uint8Array()
|
|
2887
|
+
};
|
|
2729
2888
|
}
|
|
2730
2889
|
var ProofArbo = {
|
|
2731
2890
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
@@ -2735,37 +2894,59 @@ var ProofArbo = {
|
|
|
2735
2894
|
if (message.siblings.length !== 0) {
|
|
2736
2895
|
writer.uint32(18).bytes(message.siblings);
|
|
2737
2896
|
}
|
|
2738
|
-
if (message.
|
|
2739
|
-
writer.uint32(26).bytes(message.
|
|
2897
|
+
if (message.leafWeight.length !== 0) {
|
|
2898
|
+
writer.uint32(26).bytes(message.leafWeight);
|
|
2740
2899
|
}
|
|
2741
2900
|
if (message.keyType !== 0) {
|
|
2742
2901
|
writer.uint32(32).int32(message.keyType);
|
|
2743
2902
|
}
|
|
2903
|
+
if (message.votingWeight.length !== 0) {
|
|
2904
|
+
writer.uint32(42).bytes(message.votingWeight);
|
|
2905
|
+
}
|
|
2744
2906
|
return writer;
|
|
2745
2907
|
},
|
|
2746
2908
|
decode(input, length) {
|
|
2747
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2909
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2748
2910
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2749
2911
|
const message = createBaseProofArbo();
|
|
2750
2912
|
while (reader.pos < end) {
|
|
2751
2913
|
const tag = reader.uint32();
|
|
2752
2914
|
switch (tag >>> 3) {
|
|
2753
2915
|
case 1:
|
|
2916
|
+
if (tag != 8) {
|
|
2917
|
+
break;
|
|
2918
|
+
}
|
|
2754
2919
|
message.type = reader.int32();
|
|
2755
|
-
|
|
2920
|
+
continue;
|
|
2756
2921
|
case 2:
|
|
2922
|
+
if (tag != 18) {
|
|
2923
|
+
break;
|
|
2924
|
+
}
|
|
2757
2925
|
message.siblings = reader.bytes();
|
|
2758
|
-
|
|
2926
|
+
continue;
|
|
2759
2927
|
case 3:
|
|
2760
|
-
|
|
2761
|
-
|
|
2928
|
+
if (tag != 26) {
|
|
2929
|
+
break;
|
|
2930
|
+
}
|
|
2931
|
+
message.leafWeight = reader.bytes();
|
|
2932
|
+
continue;
|
|
2762
2933
|
case 4:
|
|
2934
|
+
if (tag != 32) {
|
|
2935
|
+
break;
|
|
2936
|
+
}
|
|
2763
2937
|
message.keyType = reader.int32();
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2938
|
+
continue;
|
|
2939
|
+
case 5:
|
|
2940
|
+
if (tag != 42) {
|
|
2941
|
+
break;
|
|
2942
|
+
}
|
|
2943
|
+
message.votingWeight = reader.bytes();
|
|
2944
|
+
continue;
|
|
2768
2945
|
}
|
|
2946
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2947
|
+
break;
|
|
2948
|
+
}
|
|
2949
|
+
reader.skipType(tag & 7);
|
|
2769
2950
|
}
|
|
2770
2951
|
return message;
|
|
2771
2952
|
},
|
|
@@ -2773,16 +2954,20 @@ var ProofArbo = {
|
|
|
2773
2954
|
return {
|
|
2774
2955
|
type: isSet(object.type) ? proofArbo_TypeFromJSON(object.type) : 0,
|
|
2775
2956
|
siblings: isSet(object.siblings) ? bytesFromBase64(object.siblings) : new Uint8Array(),
|
|
2776
|
-
|
|
2777
|
-
keyType: isSet(object.keyType) ? proofArbo_KeyTypeFromJSON(object.keyType) : 0
|
|
2957
|
+
leafWeight: isSet(object.leafWeight) ? bytesFromBase64(object.leafWeight) : new Uint8Array(),
|
|
2958
|
+
keyType: isSet(object.keyType) ? proofArbo_KeyTypeFromJSON(object.keyType) : 0,
|
|
2959
|
+
votingWeight: isSet(object.votingWeight) ? bytesFromBase64(object.votingWeight) : new Uint8Array()
|
|
2778
2960
|
};
|
|
2779
2961
|
},
|
|
2780
2962
|
toJSON(message) {
|
|
2781
2963
|
const obj = {};
|
|
2782
2964
|
message.type !== void 0 && (obj.type = proofArbo_TypeToJSON(message.type));
|
|
2783
2965
|
message.siblings !== void 0 && (obj.siblings = base64FromBytes(message.siblings !== void 0 ? message.siblings : new Uint8Array()));
|
|
2784
|
-
message.
|
|
2966
|
+
message.leafWeight !== void 0 && (obj.leafWeight = base64FromBytes(message.leafWeight !== void 0 ? message.leafWeight : new Uint8Array()));
|
|
2785
2967
|
message.keyType !== void 0 && (obj.keyType = proofArbo_KeyTypeToJSON(message.keyType));
|
|
2968
|
+
message.votingWeight !== void 0 && (obj.votingWeight = base64FromBytes(
|
|
2969
|
+
message.votingWeight !== void 0 ? message.votingWeight : new Uint8Array()
|
|
2970
|
+
));
|
|
2786
2971
|
return obj;
|
|
2787
2972
|
},
|
|
2788
2973
|
create(base) {
|
|
@@ -2792,8 +2977,9 @@ var ProofArbo = {
|
|
|
2792
2977
|
const message = createBaseProofArbo();
|
|
2793
2978
|
message.type = object.type ?? 0;
|
|
2794
2979
|
message.siblings = object.siblings ?? new Uint8Array();
|
|
2795
|
-
message.
|
|
2980
|
+
message.leafWeight = object.leafWeight ?? new Uint8Array();
|
|
2796
2981
|
message.keyType = object.keyType ?? 0;
|
|
2982
|
+
message.votingWeight = object.votingWeight ?? new Uint8Array();
|
|
2797
2983
|
return message;
|
|
2798
2984
|
}
|
|
2799
2985
|
};
|
|
@@ -2820,31 +3006,47 @@ var ProofZkSNARK = {
|
|
|
2820
3006
|
return writer;
|
|
2821
3007
|
},
|
|
2822
3008
|
decode(input, length) {
|
|
2823
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3009
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2824
3010
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2825
3011
|
const message = createBaseProofZkSNARK();
|
|
2826
3012
|
while (reader.pos < end) {
|
|
2827
3013
|
const tag = reader.uint32();
|
|
2828
3014
|
switch (tag >>> 3) {
|
|
2829
3015
|
case 1:
|
|
3016
|
+
if (tag != 8) {
|
|
3017
|
+
break;
|
|
3018
|
+
}
|
|
2830
3019
|
message.circuitParametersIndex = reader.int32();
|
|
2831
|
-
|
|
3020
|
+
continue;
|
|
2832
3021
|
case 2:
|
|
3022
|
+
if (tag != 18) {
|
|
3023
|
+
break;
|
|
3024
|
+
}
|
|
2833
3025
|
message.a.push(reader.string());
|
|
2834
|
-
|
|
3026
|
+
continue;
|
|
2835
3027
|
case 3:
|
|
3028
|
+
if (tag != 26) {
|
|
3029
|
+
break;
|
|
3030
|
+
}
|
|
2836
3031
|
message.b.push(reader.string());
|
|
2837
|
-
|
|
3032
|
+
continue;
|
|
2838
3033
|
case 4:
|
|
3034
|
+
if (tag != 34) {
|
|
3035
|
+
break;
|
|
3036
|
+
}
|
|
2839
3037
|
message.c.push(reader.string());
|
|
2840
|
-
|
|
3038
|
+
continue;
|
|
2841
3039
|
case 5:
|
|
3040
|
+
if (tag != 42) {
|
|
3041
|
+
break;
|
|
3042
|
+
}
|
|
2842
3043
|
message.publicInputs.push(reader.string());
|
|
2843
|
-
|
|
2844
|
-
default:
|
|
2845
|
-
reader.skipType(tag & 7);
|
|
2846
|
-
break;
|
|
3044
|
+
continue;
|
|
2847
3045
|
}
|
|
3046
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3047
|
+
break;
|
|
3048
|
+
}
|
|
3049
|
+
reader.skipType(tag & 7);
|
|
2848
3050
|
}
|
|
2849
3051
|
return message;
|
|
2850
3052
|
},
|
|
@@ -2918,31 +3120,47 @@ var Account = {
|
|
|
2918
3120
|
return writer;
|
|
2919
3121
|
},
|
|
2920
3122
|
decode(input, length) {
|
|
2921
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3123
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2922
3124
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2923
3125
|
const message = createBaseAccount();
|
|
2924
3126
|
while (reader.pos < end) {
|
|
2925
3127
|
const tag = reader.uint32();
|
|
2926
3128
|
switch (tag >>> 3) {
|
|
2927
3129
|
case 1:
|
|
3130
|
+
if (tag != 8) {
|
|
3131
|
+
break;
|
|
3132
|
+
}
|
|
2928
3133
|
message.balance = longToNumber(reader.uint64());
|
|
2929
|
-
|
|
3134
|
+
continue;
|
|
2930
3135
|
case 2:
|
|
3136
|
+
if (tag != 16) {
|
|
3137
|
+
break;
|
|
3138
|
+
}
|
|
2931
3139
|
message.nonce = reader.uint32();
|
|
2932
|
-
|
|
3140
|
+
continue;
|
|
2933
3141
|
case 3:
|
|
3142
|
+
if (tag != 26) {
|
|
3143
|
+
break;
|
|
3144
|
+
}
|
|
2934
3145
|
message.infoURI = reader.string();
|
|
2935
|
-
|
|
3146
|
+
continue;
|
|
2936
3147
|
case 4:
|
|
3148
|
+
if (tag != 34) {
|
|
3149
|
+
break;
|
|
3150
|
+
}
|
|
2937
3151
|
message.delegateAddrs.push(reader.bytes());
|
|
2938
|
-
|
|
3152
|
+
continue;
|
|
2939
3153
|
case 5:
|
|
3154
|
+
if (tag != 40) {
|
|
3155
|
+
break;
|
|
3156
|
+
}
|
|
2940
3157
|
message.processIndex = reader.uint32();
|
|
2941
|
-
|
|
2942
|
-
default:
|
|
2943
|
-
reader.skipType(tag & 7);
|
|
2944
|
-
break;
|
|
3158
|
+
continue;
|
|
2945
3159
|
}
|
|
3160
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3161
|
+
break;
|
|
3162
|
+
}
|
|
3163
|
+
reader.skipType(tag & 7);
|
|
2946
3164
|
}
|
|
2947
3165
|
return message;
|
|
2948
3166
|
},
|
|
@@ -2995,22 +3213,29 @@ var Treasurer = {
|
|
|
2995
3213
|
return writer;
|
|
2996
3214
|
},
|
|
2997
3215
|
decode(input, length) {
|
|
2998
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3216
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2999
3217
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3000
3218
|
const message = createBaseTreasurer();
|
|
3001
3219
|
while (reader.pos < end) {
|
|
3002
3220
|
const tag = reader.uint32();
|
|
3003
3221
|
switch (tag >>> 3) {
|
|
3004
3222
|
case 1:
|
|
3223
|
+
if (tag != 10) {
|
|
3224
|
+
break;
|
|
3225
|
+
}
|
|
3005
3226
|
message.address = reader.bytes();
|
|
3006
|
-
|
|
3227
|
+
continue;
|
|
3007
3228
|
case 2:
|
|
3229
|
+
if (tag != 16) {
|
|
3230
|
+
break;
|
|
3231
|
+
}
|
|
3008
3232
|
message.nonce = reader.uint32();
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3233
|
+
continue;
|
|
3234
|
+
}
|
|
3235
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3236
|
+
break;
|
|
3013
3237
|
}
|
|
3238
|
+
reader.skipType(tag & 7);
|
|
3014
3239
|
}
|
|
3015
3240
|
return message;
|
|
3016
3241
|
},
|
|
@@ -3041,88 +3266,124 @@ function createBaseTx() {
|
|
|
3041
3266
|
}
|
|
3042
3267
|
var Tx = {
|
|
3043
3268
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3269
|
+
switch (message.payload?.$case) {
|
|
3270
|
+
case "vote":
|
|
3271
|
+
VoteEnvelope.encode(message.payload.vote, writer.uint32(10).fork()).ldelim();
|
|
3272
|
+
break;
|
|
3273
|
+
case "newProcess":
|
|
3274
|
+
NewProcessTx.encode(message.payload.newProcess, writer.uint32(18).fork()).ldelim();
|
|
3275
|
+
break;
|
|
3276
|
+
case "admin":
|
|
3277
|
+
AdminTx.encode(message.payload.admin, writer.uint32(26).fork()).ldelim();
|
|
3278
|
+
break;
|
|
3279
|
+
case "setProcess":
|
|
3280
|
+
SetProcessTx.encode(message.payload.setProcess, writer.uint32(34).fork()).ldelim();
|
|
3281
|
+
break;
|
|
3282
|
+
case "registerKey":
|
|
3283
|
+
RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
|
|
3284
|
+
break;
|
|
3285
|
+
case "mintTokens":
|
|
3286
|
+
MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
|
|
3287
|
+
break;
|
|
3288
|
+
case "sendTokens":
|
|
3289
|
+
SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
|
|
3290
|
+
break;
|
|
3291
|
+
case "setTransactionCosts":
|
|
3292
|
+
SetTransactionCostsTx.encode(message.payload.setTransactionCosts, writer.uint32(66).fork()).ldelim();
|
|
3293
|
+
break;
|
|
3294
|
+
case "setAccount":
|
|
3295
|
+
SetAccountTx.encode(message.payload.setAccount, writer.uint32(74).fork()).ldelim();
|
|
3296
|
+
break;
|
|
3297
|
+
case "collectFaucet":
|
|
3298
|
+
CollectFaucetTx.encode(message.payload.collectFaucet, writer.uint32(82).fork()).ldelim();
|
|
3299
|
+
break;
|
|
3300
|
+
case "setKeykeeper":
|
|
3301
|
+
SetKeykeeperTx.encode(message.payload.setKeykeeper, writer.uint32(90).fork()).ldelim();
|
|
3302
|
+
break;
|
|
3076
3303
|
}
|
|
3077
3304
|
return writer;
|
|
3078
3305
|
},
|
|
3079
3306
|
decode(input, length) {
|
|
3080
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3307
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3081
3308
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3082
3309
|
const message = createBaseTx();
|
|
3083
3310
|
while (reader.pos < end) {
|
|
3084
3311
|
const tag = reader.uint32();
|
|
3085
3312
|
switch (tag >>> 3) {
|
|
3086
3313
|
case 1:
|
|
3314
|
+
if (tag != 10) {
|
|
3315
|
+
break;
|
|
3316
|
+
}
|
|
3087
3317
|
message.payload = { $case: "vote", vote: VoteEnvelope.decode(reader, reader.uint32()) };
|
|
3088
|
-
|
|
3318
|
+
continue;
|
|
3089
3319
|
case 2:
|
|
3320
|
+
if (tag != 18) {
|
|
3321
|
+
break;
|
|
3322
|
+
}
|
|
3090
3323
|
message.payload = { $case: "newProcess", newProcess: NewProcessTx.decode(reader, reader.uint32()) };
|
|
3091
|
-
|
|
3324
|
+
continue;
|
|
3092
3325
|
case 3:
|
|
3326
|
+
if (tag != 26) {
|
|
3327
|
+
break;
|
|
3328
|
+
}
|
|
3093
3329
|
message.payload = { $case: "admin", admin: AdminTx.decode(reader, reader.uint32()) };
|
|
3094
|
-
|
|
3330
|
+
continue;
|
|
3095
3331
|
case 4:
|
|
3332
|
+
if (tag != 34) {
|
|
3333
|
+
break;
|
|
3334
|
+
}
|
|
3096
3335
|
message.payload = { $case: "setProcess", setProcess: SetProcessTx.decode(reader, reader.uint32()) };
|
|
3097
|
-
|
|
3336
|
+
continue;
|
|
3098
3337
|
case 5:
|
|
3338
|
+
if (tag != 42) {
|
|
3339
|
+
break;
|
|
3340
|
+
}
|
|
3099
3341
|
message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
|
|
3100
|
-
|
|
3342
|
+
continue;
|
|
3101
3343
|
case 6:
|
|
3344
|
+
if (tag != 50) {
|
|
3345
|
+
break;
|
|
3346
|
+
}
|
|
3102
3347
|
message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.decode(reader, reader.uint32()) };
|
|
3103
|
-
|
|
3348
|
+
continue;
|
|
3104
3349
|
case 7:
|
|
3350
|
+
if (tag != 58) {
|
|
3351
|
+
break;
|
|
3352
|
+
}
|
|
3105
3353
|
message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.decode(reader, reader.uint32()) };
|
|
3106
|
-
|
|
3354
|
+
continue;
|
|
3107
3355
|
case 8:
|
|
3356
|
+
if (tag != 66) {
|
|
3357
|
+
break;
|
|
3358
|
+
}
|
|
3108
3359
|
message.payload = {
|
|
3109
3360
|
$case: "setTransactionCosts",
|
|
3110
3361
|
setTransactionCosts: SetTransactionCostsTx.decode(reader, reader.uint32())
|
|
3111
3362
|
};
|
|
3112
|
-
|
|
3363
|
+
continue;
|
|
3113
3364
|
case 9:
|
|
3365
|
+
if (tag != 74) {
|
|
3366
|
+
break;
|
|
3367
|
+
}
|
|
3114
3368
|
message.payload = { $case: "setAccount", setAccount: SetAccountTx.decode(reader, reader.uint32()) };
|
|
3115
|
-
|
|
3369
|
+
continue;
|
|
3116
3370
|
case 10:
|
|
3371
|
+
if (tag != 82) {
|
|
3372
|
+
break;
|
|
3373
|
+
}
|
|
3117
3374
|
message.payload = { $case: "collectFaucet", collectFaucet: CollectFaucetTx.decode(reader, reader.uint32()) };
|
|
3118
|
-
|
|
3375
|
+
continue;
|
|
3119
3376
|
case 11:
|
|
3377
|
+
if (tag != 90) {
|
|
3378
|
+
break;
|
|
3379
|
+
}
|
|
3120
3380
|
message.payload = { $case: "setKeykeeper", setKeykeeper: SetKeykeeperTx.decode(reader, reader.uint32()) };
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3381
|
+
continue;
|
|
3382
|
+
}
|
|
3383
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3384
|
+
break;
|
|
3125
3385
|
}
|
|
3386
|
+
reader.skipType(tag & 7);
|
|
3126
3387
|
}
|
|
3127
3388
|
return message;
|
|
3128
3389
|
},
|
|
@@ -3213,22 +3474,29 @@ var SignedTx = {
|
|
|
3213
3474
|
return writer;
|
|
3214
3475
|
},
|
|
3215
3476
|
decode(input, length) {
|
|
3216
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3477
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3217
3478
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3218
3479
|
const message = createBaseSignedTx();
|
|
3219
3480
|
while (reader.pos < end) {
|
|
3220
3481
|
const tag = reader.uint32();
|
|
3221
3482
|
switch (tag >>> 3) {
|
|
3222
3483
|
case 1:
|
|
3484
|
+
if (tag != 10) {
|
|
3485
|
+
break;
|
|
3486
|
+
}
|
|
3223
3487
|
message.tx = reader.bytes();
|
|
3224
|
-
|
|
3488
|
+
continue;
|
|
3225
3489
|
case 2:
|
|
3490
|
+
if (tag != 18) {
|
|
3491
|
+
break;
|
|
3492
|
+
}
|
|
3226
3493
|
message.signature = reader.bytes();
|
|
3227
|
-
|
|
3228
|
-
default:
|
|
3229
|
-
reader.skipType(tag & 7);
|
|
3230
|
-
break;
|
|
3494
|
+
continue;
|
|
3231
3495
|
}
|
|
3496
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3497
|
+
break;
|
|
3498
|
+
}
|
|
3499
|
+
reader.skipType(tag & 7);
|
|
3232
3500
|
}
|
|
3233
3501
|
return message;
|
|
3234
3502
|
},
|
|
@@ -3271,25 +3539,35 @@ var NewProcessTx = {
|
|
|
3271
3539
|
return writer;
|
|
3272
3540
|
},
|
|
3273
3541
|
decode(input, length) {
|
|
3274
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3542
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3275
3543
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3276
3544
|
const message = createBaseNewProcessTx();
|
|
3277
3545
|
while (reader.pos < end) {
|
|
3278
3546
|
const tag = reader.uint32();
|
|
3279
3547
|
switch (tag >>> 3) {
|
|
3280
3548
|
case 1:
|
|
3549
|
+
if (tag != 8) {
|
|
3550
|
+
break;
|
|
3551
|
+
}
|
|
3281
3552
|
message.txtype = reader.int32();
|
|
3282
|
-
|
|
3553
|
+
continue;
|
|
3283
3554
|
case 2:
|
|
3555
|
+
if (tag != 16) {
|
|
3556
|
+
break;
|
|
3557
|
+
}
|
|
3284
3558
|
message.nonce = reader.uint32();
|
|
3285
|
-
|
|
3559
|
+
continue;
|
|
3286
3560
|
case 3:
|
|
3561
|
+
if (tag != 26) {
|
|
3562
|
+
break;
|
|
3563
|
+
}
|
|
3287
3564
|
message.process = Process.decode(reader, reader.uint32());
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3565
|
+
continue;
|
|
3566
|
+
}
|
|
3567
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3568
|
+
break;
|
|
3292
3569
|
}
|
|
3570
|
+
reader.skipType(tag & 7);
|
|
3293
3571
|
}
|
|
3294
3572
|
return message;
|
|
3295
3573
|
},
|
|
@@ -3363,43 +3641,71 @@ var SetProcessTx = {
|
|
|
3363
3641
|
return writer;
|
|
3364
3642
|
},
|
|
3365
3643
|
decode(input, length) {
|
|
3366
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3644
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3367
3645
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3368
3646
|
const message = createBaseSetProcessTx();
|
|
3369
3647
|
while (reader.pos < end) {
|
|
3370
3648
|
const tag = reader.uint32();
|
|
3371
3649
|
switch (tag >>> 3) {
|
|
3372
3650
|
case 1:
|
|
3651
|
+
if (tag != 8) {
|
|
3652
|
+
break;
|
|
3653
|
+
}
|
|
3373
3654
|
message.txtype = reader.int32();
|
|
3374
|
-
|
|
3655
|
+
continue;
|
|
3375
3656
|
case 2:
|
|
3657
|
+
if (tag != 16) {
|
|
3658
|
+
break;
|
|
3659
|
+
}
|
|
3376
3660
|
message.nonce = reader.uint32();
|
|
3377
|
-
|
|
3661
|
+
continue;
|
|
3378
3662
|
case 3:
|
|
3663
|
+
if (tag != 26) {
|
|
3664
|
+
break;
|
|
3665
|
+
}
|
|
3379
3666
|
message.processId = reader.bytes();
|
|
3380
|
-
|
|
3667
|
+
continue;
|
|
3381
3668
|
case 4:
|
|
3669
|
+
if (tag != 32) {
|
|
3670
|
+
break;
|
|
3671
|
+
}
|
|
3382
3672
|
message.status = reader.int32();
|
|
3383
|
-
|
|
3673
|
+
continue;
|
|
3384
3674
|
case 5:
|
|
3675
|
+
if (tag != 40) {
|
|
3676
|
+
break;
|
|
3677
|
+
}
|
|
3385
3678
|
message.questionIndex = reader.uint32();
|
|
3386
|
-
|
|
3679
|
+
continue;
|
|
3387
3680
|
case 6:
|
|
3681
|
+
if (tag != 50) {
|
|
3682
|
+
break;
|
|
3683
|
+
}
|
|
3388
3684
|
message.censusRoot = reader.bytes();
|
|
3389
|
-
|
|
3685
|
+
continue;
|
|
3390
3686
|
case 7:
|
|
3687
|
+
if (tag != 58) {
|
|
3688
|
+
break;
|
|
3689
|
+
}
|
|
3391
3690
|
message.censusURI = reader.string();
|
|
3392
|
-
|
|
3691
|
+
continue;
|
|
3393
3692
|
case 8:
|
|
3693
|
+
if (tag != 66) {
|
|
3694
|
+
break;
|
|
3695
|
+
}
|
|
3394
3696
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
3395
|
-
|
|
3697
|
+
continue;
|
|
3396
3698
|
case 9:
|
|
3699
|
+
if (tag != 74) {
|
|
3700
|
+
break;
|
|
3701
|
+
}
|
|
3397
3702
|
message.results = ProcessResult.decode(reader, reader.uint32());
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3703
|
+
continue;
|
|
3704
|
+
}
|
|
3705
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3706
|
+
break;
|
|
3402
3707
|
}
|
|
3708
|
+
reader.skipType(tag & 7);
|
|
3403
3709
|
}
|
|
3404
3710
|
return message;
|
|
3405
3711
|
},
|
|
@@ -3491,43 +3797,71 @@ var AdminTx = {
|
|
|
3491
3797
|
return writer;
|
|
3492
3798
|
},
|
|
3493
3799
|
decode(input, length) {
|
|
3494
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3800
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3495
3801
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3496
3802
|
const message = createBaseAdminTx();
|
|
3497
3803
|
while (reader.pos < end) {
|
|
3498
3804
|
const tag = reader.uint32();
|
|
3499
3805
|
switch (tag >>> 3) {
|
|
3500
3806
|
case 1:
|
|
3807
|
+
if (tag != 8) {
|
|
3808
|
+
break;
|
|
3809
|
+
}
|
|
3501
3810
|
message.txtype = reader.int32();
|
|
3502
|
-
|
|
3811
|
+
continue;
|
|
3503
3812
|
case 2:
|
|
3813
|
+
if (tag != 18) {
|
|
3814
|
+
break;
|
|
3815
|
+
}
|
|
3504
3816
|
message.processId = reader.bytes();
|
|
3505
|
-
|
|
3817
|
+
continue;
|
|
3506
3818
|
case 3:
|
|
3819
|
+
if (tag != 26) {
|
|
3820
|
+
break;
|
|
3821
|
+
}
|
|
3507
3822
|
message.address = reader.bytes();
|
|
3508
|
-
|
|
3823
|
+
continue;
|
|
3509
3824
|
case 5:
|
|
3825
|
+
if (tag != 42) {
|
|
3826
|
+
break;
|
|
3827
|
+
}
|
|
3510
3828
|
message.encryptionPrivateKey = reader.bytes();
|
|
3511
|
-
|
|
3829
|
+
continue;
|
|
3512
3830
|
case 6:
|
|
3831
|
+
if (tag != 50) {
|
|
3832
|
+
break;
|
|
3833
|
+
}
|
|
3513
3834
|
message.encryptionPublicKey = reader.bytes();
|
|
3514
|
-
|
|
3835
|
+
continue;
|
|
3515
3836
|
case 7:
|
|
3837
|
+
if (tag != 56) {
|
|
3838
|
+
break;
|
|
3839
|
+
}
|
|
3516
3840
|
message.keyIndex = reader.uint32();
|
|
3517
|
-
|
|
3841
|
+
continue;
|
|
3518
3842
|
case 8:
|
|
3843
|
+
if (tag != 64) {
|
|
3844
|
+
break;
|
|
3845
|
+
}
|
|
3519
3846
|
message.power = longToNumber(reader.uint64());
|
|
3520
|
-
|
|
3847
|
+
continue;
|
|
3521
3848
|
case 9:
|
|
3849
|
+
if (tag != 74) {
|
|
3850
|
+
break;
|
|
3851
|
+
}
|
|
3522
3852
|
message.publicKey = reader.bytes();
|
|
3523
|
-
|
|
3853
|
+
continue;
|
|
3524
3854
|
case 11:
|
|
3855
|
+
if (tag != 88) {
|
|
3856
|
+
break;
|
|
3857
|
+
}
|
|
3525
3858
|
message.nonce = reader.uint32();
|
|
3526
|
-
|
|
3527
|
-
default:
|
|
3528
|
-
reader.skipType(tag & 7);
|
|
3529
|
-
break;
|
|
3859
|
+
continue;
|
|
3530
3860
|
}
|
|
3861
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3862
|
+
break;
|
|
3863
|
+
}
|
|
3864
|
+
reader.skipType(tag & 7);
|
|
3531
3865
|
}
|
|
3532
3866
|
return message;
|
|
3533
3867
|
},
|
|
@@ -3597,31 +3931,47 @@ var RegisterKeyTx = {
|
|
|
3597
3931
|
return writer;
|
|
3598
3932
|
},
|
|
3599
3933
|
decode(input, length) {
|
|
3600
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3934
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3601
3935
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3602
3936
|
const message = createBaseRegisterKeyTx();
|
|
3603
3937
|
while (reader.pos < end) {
|
|
3604
3938
|
const tag = reader.uint32();
|
|
3605
3939
|
switch (tag >>> 3) {
|
|
3606
3940
|
case 1:
|
|
3941
|
+
if (tag != 8) {
|
|
3942
|
+
break;
|
|
3943
|
+
}
|
|
3607
3944
|
message.nonce = reader.uint32();
|
|
3608
|
-
|
|
3945
|
+
continue;
|
|
3609
3946
|
case 2:
|
|
3947
|
+
if (tag != 18) {
|
|
3948
|
+
break;
|
|
3949
|
+
}
|
|
3610
3950
|
message.processId = reader.bytes();
|
|
3611
|
-
|
|
3951
|
+
continue;
|
|
3612
3952
|
case 3:
|
|
3953
|
+
if (tag != 26) {
|
|
3954
|
+
break;
|
|
3955
|
+
}
|
|
3613
3956
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
3614
|
-
|
|
3957
|
+
continue;
|
|
3615
3958
|
case 4:
|
|
3959
|
+
if (tag != 34) {
|
|
3960
|
+
break;
|
|
3961
|
+
}
|
|
3616
3962
|
message.newKey = reader.bytes();
|
|
3617
|
-
|
|
3963
|
+
continue;
|
|
3618
3964
|
case 5:
|
|
3965
|
+
if (tag != 42) {
|
|
3966
|
+
break;
|
|
3967
|
+
}
|
|
3619
3968
|
message.weight = reader.string();
|
|
3620
|
-
|
|
3621
|
-
default:
|
|
3622
|
-
reader.skipType(tag & 7);
|
|
3623
|
-
break;
|
|
3969
|
+
continue;
|
|
3624
3970
|
}
|
|
3971
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3972
|
+
break;
|
|
3973
|
+
}
|
|
3974
|
+
reader.skipType(tag & 7);
|
|
3625
3975
|
}
|
|
3626
3976
|
return message;
|
|
3627
3977
|
},
|
|
@@ -3676,28 +4026,41 @@ var MintTokensTx = {
|
|
|
3676
4026
|
return writer;
|
|
3677
4027
|
},
|
|
3678
4028
|
decode(input, length) {
|
|
3679
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4029
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3680
4030
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3681
4031
|
const message = createBaseMintTokensTx();
|
|
3682
4032
|
while (reader.pos < end) {
|
|
3683
4033
|
const tag = reader.uint32();
|
|
3684
4034
|
switch (tag >>> 3) {
|
|
3685
4035
|
case 1:
|
|
4036
|
+
if (tag != 8) {
|
|
4037
|
+
break;
|
|
4038
|
+
}
|
|
3686
4039
|
message.txtype = reader.int32();
|
|
3687
|
-
|
|
4040
|
+
continue;
|
|
3688
4041
|
case 2:
|
|
4042
|
+
if (tag != 16) {
|
|
4043
|
+
break;
|
|
4044
|
+
}
|
|
3689
4045
|
message.nonce = reader.uint32();
|
|
3690
|
-
|
|
4046
|
+
continue;
|
|
3691
4047
|
case 3:
|
|
4048
|
+
if (tag != 26) {
|
|
4049
|
+
break;
|
|
4050
|
+
}
|
|
3692
4051
|
message.to = reader.bytes();
|
|
3693
|
-
|
|
4052
|
+
continue;
|
|
3694
4053
|
case 4:
|
|
4054
|
+
if (tag != 32) {
|
|
4055
|
+
break;
|
|
4056
|
+
}
|
|
3695
4057
|
message.value = longToNumber(reader.uint64());
|
|
3696
|
-
|
|
3697
|
-
default:
|
|
3698
|
-
reader.skipType(tag & 7);
|
|
3699
|
-
break;
|
|
4058
|
+
continue;
|
|
3700
4059
|
}
|
|
4060
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4061
|
+
break;
|
|
4062
|
+
}
|
|
4063
|
+
reader.skipType(tag & 7);
|
|
3701
4064
|
}
|
|
3702
4065
|
return message;
|
|
3703
4066
|
},
|
|
@@ -3752,31 +4115,47 @@ var SendTokensTx = {
|
|
|
3752
4115
|
return writer;
|
|
3753
4116
|
},
|
|
3754
4117
|
decode(input, length) {
|
|
3755
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4118
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3756
4119
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3757
4120
|
const message = createBaseSendTokensTx();
|
|
3758
4121
|
while (reader.pos < end) {
|
|
3759
4122
|
const tag = reader.uint32();
|
|
3760
4123
|
switch (tag >>> 3) {
|
|
3761
4124
|
case 1:
|
|
4125
|
+
if (tag != 8) {
|
|
4126
|
+
break;
|
|
4127
|
+
}
|
|
3762
4128
|
message.txtype = reader.int32();
|
|
3763
|
-
|
|
4129
|
+
continue;
|
|
3764
4130
|
case 2:
|
|
4131
|
+
if (tag != 16) {
|
|
4132
|
+
break;
|
|
4133
|
+
}
|
|
3765
4134
|
message.nonce = reader.uint32();
|
|
3766
|
-
|
|
4135
|
+
continue;
|
|
3767
4136
|
case 3:
|
|
4137
|
+
if (tag != 26) {
|
|
4138
|
+
break;
|
|
4139
|
+
}
|
|
3768
4140
|
message.from = reader.bytes();
|
|
3769
|
-
|
|
4141
|
+
continue;
|
|
3770
4142
|
case 4:
|
|
4143
|
+
if (tag != 34) {
|
|
4144
|
+
break;
|
|
4145
|
+
}
|
|
3771
4146
|
message.to = reader.bytes();
|
|
3772
|
-
|
|
4147
|
+
continue;
|
|
3773
4148
|
case 5:
|
|
4149
|
+
if (tag != 40) {
|
|
4150
|
+
break;
|
|
4151
|
+
}
|
|
3774
4152
|
message.value = longToNumber(reader.uint64());
|
|
3775
|
-
|
|
3776
|
-
default:
|
|
3777
|
-
reader.skipType(tag & 7);
|
|
3778
|
-
break;
|
|
4153
|
+
continue;
|
|
3779
4154
|
}
|
|
4155
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4156
|
+
break;
|
|
4157
|
+
}
|
|
4158
|
+
reader.skipType(tag & 7);
|
|
3780
4159
|
}
|
|
3781
4160
|
return message;
|
|
3782
4161
|
},
|
|
@@ -3828,25 +4207,35 @@ var SetTransactionCostsTx = {
|
|
|
3828
4207
|
return writer;
|
|
3829
4208
|
},
|
|
3830
4209
|
decode(input, length) {
|
|
3831
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4210
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3832
4211
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3833
4212
|
const message = createBaseSetTransactionCostsTx();
|
|
3834
4213
|
while (reader.pos < end) {
|
|
3835
4214
|
const tag = reader.uint32();
|
|
3836
4215
|
switch (tag >>> 3) {
|
|
3837
4216
|
case 1:
|
|
4217
|
+
if (tag != 8) {
|
|
4218
|
+
break;
|
|
4219
|
+
}
|
|
3838
4220
|
message.txtype = reader.int32();
|
|
3839
|
-
|
|
4221
|
+
continue;
|
|
3840
4222
|
case 2:
|
|
4223
|
+
if (tag != 16) {
|
|
4224
|
+
break;
|
|
4225
|
+
}
|
|
3841
4226
|
message.nonce = reader.uint32();
|
|
3842
|
-
|
|
4227
|
+
continue;
|
|
3843
4228
|
case 3:
|
|
4229
|
+
if (tag != 24) {
|
|
4230
|
+
break;
|
|
4231
|
+
}
|
|
3844
4232
|
message.value = longToNumber(reader.uint64());
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
4233
|
+
continue;
|
|
4234
|
+
}
|
|
4235
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4236
|
+
break;
|
|
3849
4237
|
}
|
|
4238
|
+
reader.skipType(tag & 7);
|
|
3850
4239
|
}
|
|
3851
4240
|
return message;
|
|
3852
4241
|
},
|
|
@@ -3908,34 +4297,53 @@ var SetAccountTx = {
|
|
|
3908
4297
|
return writer;
|
|
3909
4298
|
},
|
|
3910
4299
|
decode(input, length) {
|
|
3911
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4300
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3912
4301
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3913
4302
|
const message = createBaseSetAccountTx();
|
|
3914
4303
|
while (reader.pos < end) {
|
|
3915
4304
|
const tag = reader.uint32();
|
|
3916
4305
|
switch (tag >>> 3) {
|
|
3917
4306
|
case 1:
|
|
4307
|
+
if (tag != 8) {
|
|
4308
|
+
break;
|
|
4309
|
+
}
|
|
3918
4310
|
message.txtype = reader.int32();
|
|
3919
|
-
|
|
4311
|
+
continue;
|
|
3920
4312
|
case 2:
|
|
4313
|
+
if (tag != 16) {
|
|
4314
|
+
break;
|
|
4315
|
+
}
|
|
3921
4316
|
message.nonce = reader.uint32();
|
|
3922
|
-
|
|
4317
|
+
continue;
|
|
3923
4318
|
case 3:
|
|
4319
|
+
if (tag != 26) {
|
|
4320
|
+
break;
|
|
4321
|
+
}
|
|
3924
4322
|
message.infoURI = reader.string();
|
|
3925
|
-
|
|
4323
|
+
continue;
|
|
3926
4324
|
case 4:
|
|
4325
|
+
if (tag != 34) {
|
|
4326
|
+
break;
|
|
4327
|
+
}
|
|
3927
4328
|
message.account = reader.bytes();
|
|
3928
|
-
|
|
4329
|
+
continue;
|
|
3929
4330
|
case 5:
|
|
4331
|
+
if (tag != 42) {
|
|
4332
|
+
break;
|
|
4333
|
+
}
|
|
3930
4334
|
message.faucetPackage = FaucetPackage.decode(reader, reader.uint32());
|
|
3931
|
-
|
|
4335
|
+
continue;
|
|
3932
4336
|
case 6:
|
|
4337
|
+
if (tag != 50) {
|
|
4338
|
+
break;
|
|
4339
|
+
}
|
|
3933
4340
|
message.delegates.push(reader.bytes());
|
|
3934
|
-
|
|
3935
|
-
default:
|
|
3936
|
-
reader.skipType(tag & 7);
|
|
3937
|
-
break;
|
|
4341
|
+
continue;
|
|
3938
4342
|
}
|
|
4343
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4344
|
+
break;
|
|
4345
|
+
}
|
|
4346
|
+
reader.skipType(tag & 7);
|
|
3939
4347
|
}
|
|
3940
4348
|
return message;
|
|
3941
4349
|
},
|
|
@@ -3994,25 +4402,35 @@ var CollectFaucetTx = {
|
|
|
3994
4402
|
return writer;
|
|
3995
4403
|
},
|
|
3996
4404
|
decode(input, length) {
|
|
3997
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4405
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3998
4406
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3999
4407
|
const message = createBaseCollectFaucetTx();
|
|
4000
4408
|
while (reader.pos < end) {
|
|
4001
4409
|
const tag = reader.uint32();
|
|
4002
4410
|
switch (tag >>> 3) {
|
|
4003
4411
|
case 1:
|
|
4412
|
+
if (tag != 8) {
|
|
4413
|
+
break;
|
|
4414
|
+
}
|
|
4004
4415
|
message.txType = reader.int32();
|
|
4005
|
-
|
|
4416
|
+
continue;
|
|
4006
4417
|
case 2:
|
|
4418
|
+
if (tag != 18) {
|
|
4419
|
+
break;
|
|
4420
|
+
}
|
|
4007
4421
|
message.faucetPackage = FaucetPackage.decode(reader, reader.uint32());
|
|
4008
|
-
|
|
4422
|
+
continue;
|
|
4009
4423
|
case 3:
|
|
4424
|
+
if (tag != 24) {
|
|
4425
|
+
break;
|
|
4426
|
+
}
|
|
4010
4427
|
message.nonce = reader.uint32();
|
|
4011
|
-
|
|
4012
|
-
default:
|
|
4013
|
-
reader.skipType(tag & 7);
|
|
4014
|
-
break;
|
|
4428
|
+
continue;
|
|
4015
4429
|
}
|
|
4430
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4431
|
+
break;
|
|
4432
|
+
}
|
|
4433
|
+
reader.skipType(tag & 7);
|
|
4016
4434
|
}
|
|
4017
4435
|
return message;
|
|
4018
4436
|
},
|
|
@@ -4058,25 +4476,35 @@ var FaucetPayload = {
|
|
|
4058
4476
|
return writer;
|
|
4059
4477
|
},
|
|
4060
4478
|
decode(input, length) {
|
|
4061
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4479
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4062
4480
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4063
4481
|
const message = createBaseFaucetPayload();
|
|
4064
4482
|
while (reader.pos < end) {
|
|
4065
4483
|
const tag = reader.uint32();
|
|
4066
4484
|
switch (tag >>> 3) {
|
|
4067
4485
|
case 1:
|
|
4486
|
+
if (tag != 8) {
|
|
4487
|
+
break;
|
|
4488
|
+
}
|
|
4068
4489
|
message.identifier = longToNumber(reader.uint64());
|
|
4069
|
-
|
|
4490
|
+
continue;
|
|
4070
4491
|
case 2:
|
|
4492
|
+
if (tag != 18) {
|
|
4493
|
+
break;
|
|
4494
|
+
}
|
|
4071
4495
|
message.to = reader.bytes();
|
|
4072
|
-
|
|
4496
|
+
continue;
|
|
4073
4497
|
case 3:
|
|
4498
|
+
if (tag != 24) {
|
|
4499
|
+
break;
|
|
4500
|
+
}
|
|
4074
4501
|
message.amount = longToNumber(reader.uint64());
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4502
|
+
continue;
|
|
4503
|
+
}
|
|
4504
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4505
|
+
break;
|
|
4079
4506
|
}
|
|
4507
|
+
reader.skipType(tag & 7);
|
|
4080
4508
|
}
|
|
4081
4509
|
return message;
|
|
4082
4510
|
},
|
|
@@ -4119,22 +4547,29 @@ var FaucetPackage = {
|
|
|
4119
4547
|
return writer;
|
|
4120
4548
|
},
|
|
4121
4549
|
decode(input, length) {
|
|
4122
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4550
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4123
4551
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4124
4552
|
const message = createBaseFaucetPackage();
|
|
4125
4553
|
while (reader.pos < end) {
|
|
4126
4554
|
const tag = reader.uint32();
|
|
4127
4555
|
switch (tag >>> 3) {
|
|
4128
4556
|
case 1:
|
|
4557
|
+
if (tag != 10) {
|
|
4558
|
+
break;
|
|
4559
|
+
}
|
|
4129
4560
|
message.payload = reader.bytes();
|
|
4130
|
-
|
|
4561
|
+
continue;
|
|
4131
4562
|
case 2:
|
|
4563
|
+
if (tag != 18) {
|
|
4564
|
+
break;
|
|
4565
|
+
}
|
|
4132
4566
|
message.signature = reader.bytes();
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4567
|
+
continue;
|
|
4568
|
+
}
|
|
4569
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4570
|
+
break;
|
|
4137
4571
|
}
|
|
4572
|
+
reader.skipType(tag & 7);
|
|
4138
4573
|
}
|
|
4139
4574
|
return message;
|
|
4140
4575
|
},
|
|
@@ -4177,25 +4612,35 @@ var SetKeykeeperTx = {
|
|
|
4177
4612
|
return writer;
|
|
4178
4613
|
},
|
|
4179
4614
|
decode(input, length) {
|
|
4180
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4615
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4181
4616
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4182
4617
|
const message = createBaseSetKeykeeperTx();
|
|
4183
4618
|
while (reader.pos < end) {
|
|
4184
4619
|
const tag = reader.uint32();
|
|
4185
4620
|
switch (tag >>> 3) {
|
|
4186
4621
|
case 1:
|
|
4622
|
+
if (tag != 8) {
|
|
4623
|
+
break;
|
|
4624
|
+
}
|
|
4187
4625
|
message.txtype = reader.int32();
|
|
4188
|
-
|
|
4626
|
+
continue;
|
|
4189
4627
|
case 2:
|
|
4628
|
+
if (tag != 16) {
|
|
4629
|
+
break;
|
|
4630
|
+
}
|
|
4190
4631
|
message.nonce = reader.uint32();
|
|
4191
|
-
|
|
4632
|
+
continue;
|
|
4192
4633
|
case 3:
|
|
4634
|
+
if (tag != 26) {
|
|
4635
|
+
break;
|
|
4636
|
+
}
|
|
4193
4637
|
message.keykeeper = reader.bytes();
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4638
|
+
continue;
|
|
4639
|
+
}
|
|
4640
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4641
|
+
break;
|
|
4198
4642
|
}
|
|
4643
|
+
reader.skipType(tag & 7);
|
|
4199
4644
|
}
|
|
4200
4645
|
return message;
|
|
4201
4646
|
},
|
|
@@ -4251,7 +4696,7 @@ function createBaseProcess() {
|
|
|
4251
4696
|
owner: void 0,
|
|
4252
4697
|
metadata: void 0,
|
|
4253
4698
|
sourceNetworkId: 0,
|
|
4254
|
-
maxCensusSize:
|
|
4699
|
+
maxCensusSize: 0,
|
|
4255
4700
|
rollingCensusRoot: void 0,
|
|
4256
4701
|
rollingCensusSize: void 0,
|
|
4257
4702
|
nullifiersRoot: void 0,
|
|
@@ -4336,7 +4781,7 @@ var Process = {
|
|
|
4336
4781
|
if (message.sourceNetworkId !== 0) {
|
|
4337
4782
|
writer.uint32(216).int32(message.sourceNetworkId);
|
|
4338
4783
|
}
|
|
4339
|
-
if (message.maxCensusSize !==
|
|
4784
|
+
if (message.maxCensusSize !== 0) {
|
|
4340
4785
|
writer.uint32(224).uint64(message.maxCensusSize);
|
|
4341
4786
|
}
|
|
4342
4787
|
if (message.rollingCensusRoot !== void 0) {
|
|
@@ -4357,109 +4802,203 @@ var Process = {
|
|
|
4357
4802
|
return writer;
|
|
4358
4803
|
},
|
|
4359
4804
|
decode(input, length) {
|
|
4360
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4805
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4361
4806
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4362
4807
|
const message = createBaseProcess();
|
|
4363
4808
|
while (reader.pos < end) {
|
|
4364
4809
|
const tag = reader.uint32();
|
|
4365
4810
|
switch (tag >>> 3) {
|
|
4366
4811
|
case 1:
|
|
4812
|
+
if (tag != 10) {
|
|
4813
|
+
break;
|
|
4814
|
+
}
|
|
4367
4815
|
message.processId = reader.bytes();
|
|
4368
|
-
|
|
4816
|
+
continue;
|
|
4369
4817
|
case 2:
|
|
4818
|
+
if (tag != 18) {
|
|
4819
|
+
break;
|
|
4820
|
+
}
|
|
4370
4821
|
message.entityId = reader.bytes();
|
|
4371
|
-
|
|
4822
|
+
continue;
|
|
4372
4823
|
case 3:
|
|
4824
|
+
if (tag != 24) {
|
|
4825
|
+
break;
|
|
4826
|
+
}
|
|
4373
4827
|
message.startBlock = reader.uint32();
|
|
4374
|
-
|
|
4828
|
+
continue;
|
|
4375
4829
|
case 4:
|
|
4830
|
+
if (tag != 32) {
|
|
4831
|
+
break;
|
|
4832
|
+
}
|
|
4376
4833
|
message.blockCount = reader.uint32();
|
|
4377
|
-
|
|
4834
|
+
continue;
|
|
4378
4835
|
case 5:
|
|
4836
|
+
if (tag != 42) {
|
|
4837
|
+
break;
|
|
4838
|
+
}
|
|
4379
4839
|
message.censusRoot = reader.bytes();
|
|
4380
|
-
|
|
4840
|
+
continue;
|
|
4381
4841
|
case 6:
|
|
4842
|
+
if (tag != 50) {
|
|
4843
|
+
break;
|
|
4844
|
+
}
|
|
4382
4845
|
message.censusURI = reader.string();
|
|
4383
|
-
|
|
4846
|
+
continue;
|
|
4384
4847
|
case 8:
|
|
4848
|
+
if (tag != 66) {
|
|
4849
|
+
break;
|
|
4850
|
+
}
|
|
4385
4851
|
message.encryptionPrivateKeys.push(reader.string());
|
|
4386
|
-
|
|
4852
|
+
continue;
|
|
4387
4853
|
case 9:
|
|
4854
|
+
if (tag != 74) {
|
|
4855
|
+
break;
|
|
4856
|
+
}
|
|
4388
4857
|
message.encryptionPublicKeys.push(reader.string());
|
|
4389
|
-
|
|
4858
|
+
continue;
|
|
4390
4859
|
case 11:
|
|
4860
|
+
if (tag != 88) {
|
|
4861
|
+
break;
|
|
4862
|
+
}
|
|
4391
4863
|
message.keyIndex = reader.uint32();
|
|
4392
|
-
|
|
4864
|
+
continue;
|
|
4393
4865
|
case 12:
|
|
4866
|
+
if (tag != 96) {
|
|
4867
|
+
break;
|
|
4868
|
+
}
|
|
4394
4869
|
message.status = reader.int32();
|
|
4395
|
-
|
|
4870
|
+
continue;
|
|
4396
4871
|
case 13:
|
|
4872
|
+
if (tag != 106) {
|
|
4873
|
+
break;
|
|
4874
|
+
}
|
|
4397
4875
|
message.paramsSignature = reader.bytes();
|
|
4398
|
-
|
|
4876
|
+
continue;
|
|
4399
4877
|
case 14:
|
|
4878
|
+
if (tag != 112) {
|
|
4879
|
+
break;
|
|
4880
|
+
}
|
|
4400
4881
|
message.namespace = reader.uint32();
|
|
4401
|
-
|
|
4882
|
+
continue;
|
|
4402
4883
|
case 15:
|
|
4884
|
+
if (tag != 122) {
|
|
4885
|
+
break;
|
|
4886
|
+
}
|
|
4403
4887
|
message.envelopeType = EnvelopeType.decode(reader, reader.uint32());
|
|
4404
|
-
|
|
4888
|
+
continue;
|
|
4405
4889
|
case 16:
|
|
4890
|
+
if (tag != 130) {
|
|
4891
|
+
break;
|
|
4892
|
+
}
|
|
4406
4893
|
message.mode = ProcessMode.decode(reader, reader.uint32());
|
|
4407
|
-
|
|
4894
|
+
continue;
|
|
4408
4895
|
case 17:
|
|
4896
|
+
if (tag != 136) {
|
|
4897
|
+
break;
|
|
4898
|
+
}
|
|
4409
4899
|
message.questionIndex = reader.uint32();
|
|
4410
|
-
|
|
4900
|
+
continue;
|
|
4411
4901
|
case 18:
|
|
4902
|
+
if (tag != 144) {
|
|
4903
|
+
break;
|
|
4904
|
+
}
|
|
4412
4905
|
message.questionCount = reader.uint32();
|
|
4413
|
-
|
|
4906
|
+
continue;
|
|
4414
4907
|
case 19:
|
|
4908
|
+
if (tag != 154) {
|
|
4909
|
+
break;
|
|
4910
|
+
}
|
|
4415
4911
|
message.voteOptions = ProcessVoteOptions.decode(reader, reader.uint32());
|
|
4416
|
-
|
|
4912
|
+
continue;
|
|
4417
4913
|
case 20:
|
|
4914
|
+
if (tag != 160) {
|
|
4915
|
+
break;
|
|
4916
|
+
}
|
|
4418
4917
|
message.censusOrigin = reader.int32();
|
|
4419
|
-
|
|
4918
|
+
continue;
|
|
4420
4919
|
case 21:
|
|
4920
|
+
if (tag != 170) {
|
|
4921
|
+
break;
|
|
4922
|
+
}
|
|
4421
4923
|
message.results.push(ProcessResult.decode(reader, reader.uint32()));
|
|
4422
|
-
|
|
4924
|
+
continue;
|
|
4423
4925
|
case 22:
|
|
4926
|
+
if (tag != 178) {
|
|
4927
|
+
break;
|
|
4928
|
+
}
|
|
4424
4929
|
message.resultsSignatures.push(reader.bytes());
|
|
4425
|
-
|
|
4930
|
+
continue;
|
|
4426
4931
|
case 23:
|
|
4932
|
+
if (tag != 184) {
|
|
4933
|
+
break;
|
|
4934
|
+
}
|
|
4427
4935
|
message.ethIndexSlot = reader.uint32();
|
|
4428
|
-
|
|
4936
|
+
continue;
|
|
4429
4937
|
case 24:
|
|
4938
|
+
if (tag != 192) {
|
|
4939
|
+
break;
|
|
4940
|
+
}
|
|
4430
4941
|
message.sourceBlockHeight = longToNumber(reader.uint64());
|
|
4431
|
-
|
|
4942
|
+
continue;
|
|
4432
4943
|
case 25:
|
|
4944
|
+
if (tag != 202) {
|
|
4945
|
+
break;
|
|
4946
|
+
}
|
|
4433
4947
|
message.owner = reader.bytes();
|
|
4434
|
-
|
|
4948
|
+
continue;
|
|
4435
4949
|
case 26:
|
|
4950
|
+
if (tag != 210) {
|
|
4951
|
+
break;
|
|
4952
|
+
}
|
|
4436
4953
|
message.metadata = reader.string();
|
|
4437
|
-
|
|
4954
|
+
continue;
|
|
4438
4955
|
case 27:
|
|
4956
|
+
if (tag != 216) {
|
|
4957
|
+
break;
|
|
4958
|
+
}
|
|
4439
4959
|
message.sourceNetworkId = reader.int32();
|
|
4440
|
-
|
|
4960
|
+
continue;
|
|
4441
4961
|
case 28:
|
|
4962
|
+
if (tag != 224) {
|
|
4963
|
+
break;
|
|
4964
|
+
}
|
|
4442
4965
|
message.maxCensusSize = longToNumber(reader.uint64());
|
|
4443
|
-
|
|
4966
|
+
continue;
|
|
4444
4967
|
case 29:
|
|
4968
|
+
if (tag != 234) {
|
|
4969
|
+
break;
|
|
4970
|
+
}
|
|
4445
4971
|
message.rollingCensusRoot = reader.bytes();
|
|
4446
|
-
|
|
4972
|
+
continue;
|
|
4447
4973
|
case 30:
|
|
4974
|
+
if (tag != 240) {
|
|
4975
|
+
break;
|
|
4976
|
+
}
|
|
4448
4977
|
message.rollingCensusSize = longToNumber(reader.uint64());
|
|
4449
|
-
|
|
4978
|
+
continue;
|
|
4450
4979
|
case 31:
|
|
4980
|
+
if (tag != 250) {
|
|
4981
|
+
break;
|
|
4982
|
+
}
|
|
4451
4983
|
message.nullifiersRoot = reader.bytes();
|
|
4452
|
-
|
|
4984
|
+
continue;
|
|
4453
4985
|
case 32:
|
|
4986
|
+
if (tag != 258) {
|
|
4987
|
+
break;
|
|
4988
|
+
}
|
|
4454
4989
|
message.sourceNetworkContractAddr = reader.bytes();
|
|
4455
|
-
|
|
4990
|
+
continue;
|
|
4456
4991
|
case 33:
|
|
4992
|
+
if (tag != 264) {
|
|
4993
|
+
break;
|
|
4994
|
+
}
|
|
4457
4995
|
message.tokenDecimals = reader.uint32();
|
|
4458
|
-
|
|
4459
|
-
default:
|
|
4460
|
-
reader.skipType(tag & 7);
|
|
4461
|
-
break;
|
|
4996
|
+
continue;
|
|
4462
4997
|
}
|
|
4998
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4999
|
+
break;
|
|
5000
|
+
}
|
|
5001
|
+
reader.skipType(tag & 7);
|
|
4463
5002
|
}
|
|
4464
5003
|
return message;
|
|
4465
5004
|
},
|
|
@@ -4490,7 +5029,7 @@ var Process = {
|
|
|
4490
5029
|
owner: isSet(object.owner) ? bytesFromBase64(object.owner) : void 0,
|
|
4491
5030
|
metadata: isSet(object.metadata) ? String(object.metadata) : void 0,
|
|
4492
5031
|
sourceNetworkId: isSet(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
|
|
4493
|
-
maxCensusSize: isSet(object.maxCensusSize) ? Number(object.maxCensusSize) :
|
|
5032
|
+
maxCensusSize: isSet(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
|
|
4494
5033
|
rollingCensusRoot: isSet(object.rollingCensusRoot) ? bytesFromBase64(object.rollingCensusRoot) : void 0,
|
|
4495
5034
|
rollingCensusSize: isSet(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
|
|
4496
5035
|
nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
|
|
@@ -4581,7 +5120,7 @@ var Process = {
|
|
|
4581
5120
|
message.owner = object.owner ?? void 0;
|
|
4582
5121
|
message.metadata = object.metadata ?? void 0;
|
|
4583
5122
|
message.sourceNetworkId = object.sourceNetworkId ?? 0;
|
|
4584
|
-
message.maxCensusSize = object.maxCensusSize ??
|
|
5123
|
+
message.maxCensusSize = object.maxCensusSize ?? 0;
|
|
4585
5124
|
message.rollingCensusRoot = object.rollingCensusRoot ?? void 0;
|
|
4586
5125
|
message.rollingCensusSize = object.rollingCensusSize ?? void 0;
|
|
4587
5126
|
message.nullifiersRoot = object.nullifiersRoot ?? void 0;
|
|
@@ -4613,31 +5152,47 @@ var EnvelopeType = {
|
|
|
4613
5152
|
return writer;
|
|
4614
5153
|
},
|
|
4615
5154
|
decode(input, length) {
|
|
4616
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5155
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4617
5156
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4618
5157
|
const message = createBaseEnvelopeType();
|
|
4619
5158
|
while (reader.pos < end) {
|
|
4620
5159
|
const tag = reader.uint32();
|
|
4621
5160
|
switch (tag >>> 3) {
|
|
4622
5161
|
case 1:
|
|
5162
|
+
if (tag != 8) {
|
|
5163
|
+
break;
|
|
5164
|
+
}
|
|
4623
5165
|
message.serial = reader.bool();
|
|
4624
|
-
|
|
5166
|
+
continue;
|
|
4625
5167
|
case 2:
|
|
5168
|
+
if (tag != 16) {
|
|
5169
|
+
break;
|
|
5170
|
+
}
|
|
4626
5171
|
message.anonymous = reader.bool();
|
|
4627
|
-
|
|
5172
|
+
continue;
|
|
4628
5173
|
case 3:
|
|
5174
|
+
if (tag != 24) {
|
|
5175
|
+
break;
|
|
5176
|
+
}
|
|
4629
5177
|
message.encryptedVotes = reader.bool();
|
|
4630
|
-
|
|
5178
|
+
continue;
|
|
4631
5179
|
case 4:
|
|
5180
|
+
if (tag != 32) {
|
|
5181
|
+
break;
|
|
5182
|
+
}
|
|
4632
5183
|
message.uniqueValues = reader.bool();
|
|
4633
|
-
|
|
5184
|
+
continue;
|
|
4634
5185
|
case 5:
|
|
5186
|
+
if (tag != 40) {
|
|
5187
|
+
break;
|
|
5188
|
+
}
|
|
4635
5189
|
message.costFromWeight = reader.bool();
|
|
4636
|
-
|
|
4637
|
-
default:
|
|
4638
|
-
reader.skipType(tag & 7);
|
|
4639
|
-
break;
|
|
5190
|
+
continue;
|
|
4640
5191
|
}
|
|
5192
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5193
|
+
break;
|
|
5194
|
+
}
|
|
5195
|
+
reader.skipType(tag & 7);
|
|
4641
5196
|
}
|
|
4642
5197
|
return message;
|
|
4643
5198
|
},
|
|
@@ -4695,31 +5250,47 @@ var ProcessMode = {
|
|
|
4695
5250
|
return writer;
|
|
4696
5251
|
},
|
|
4697
5252
|
decode(input, length) {
|
|
4698
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5253
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4699
5254
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4700
5255
|
const message = createBaseProcessMode();
|
|
4701
5256
|
while (reader.pos < end) {
|
|
4702
5257
|
const tag = reader.uint32();
|
|
4703
5258
|
switch (tag >>> 3) {
|
|
4704
5259
|
case 1:
|
|
5260
|
+
if (tag != 8) {
|
|
5261
|
+
break;
|
|
5262
|
+
}
|
|
4705
5263
|
message.autoStart = reader.bool();
|
|
4706
|
-
|
|
5264
|
+
continue;
|
|
4707
5265
|
case 2:
|
|
5266
|
+
if (tag != 16) {
|
|
5267
|
+
break;
|
|
5268
|
+
}
|
|
4708
5269
|
message.interruptible = reader.bool();
|
|
4709
|
-
|
|
5270
|
+
continue;
|
|
4710
5271
|
case 3:
|
|
5272
|
+
if (tag != 24) {
|
|
5273
|
+
break;
|
|
5274
|
+
}
|
|
4711
5275
|
message.dynamicCensus = reader.bool();
|
|
4712
|
-
|
|
5276
|
+
continue;
|
|
4713
5277
|
case 4:
|
|
5278
|
+
if (tag != 32) {
|
|
5279
|
+
break;
|
|
5280
|
+
}
|
|
4714
5281
|
message.encryptedMetaData = reader.bool();
|
|
4715
|
-
|
|
5282
|
+
continue;
|
|
4716
5283
|
case 5:
|
|
5284
|
+
if (tag != 40) {
|
|
5285
|
+
break;
|
|
5286
|
+
}
|
|
4717
5287
|
message.preRegister = reader.bool();
|
|
4718
|
-
|
|
4719
|
-
default:
|
|
4720
|
-
reader.skipType(tag & 7);
|
|
4721
|
-
break;
|
|
5288
|
+
continue;
|
|
4722
5289
|
}
|
|
5290
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5291
|
+
break;
|
|
5292
|
+
}
|
|
5293
|
+
reader.skipType(tag & 7);
|
|
4723
5294
|
}
|
|
4724
5295
|
return message;
|
|
4725
5296
|
},
|
|
@@ -4777,31 +5348,47 @@ var ProcessVoteOptions = {
|
|
|
4777
5348
|
return writer;
|
|
4778
5349
|
},
|
|
4779
5350
|
decode(input, length) {
|
|
4780
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5351
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4781
5352
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4782
5353
|
const message = createBaseProcessVoteOptions();
|
|
4783
5354
|
while (reader.pos < end) {
|
|
4784
5355
|
const tag = reader.uint32();
|
|
4785
5356
|
switch (tag >>> 3) {
|
|
4786
5357
|
case 1:
|
|
5358
|
+
if (tag != 8) {
|
|
5359
|
+
break;
|
|
5360
|
+
}
|
|
4787
5361
|
message.maxCount = reader.uint32();
|
|
4788
|
-
|
|
5362
|
+
continue;
|
|
4789
5363
|
case 2:
|
|
5364
|
+
if (tag != 16) {
|
|
5365
|
+
break;
|
|
5366
|
+
}
|
|
4790
5367
|
message.maxValue = reader.uint32();
|
|
4791
|
-
|
|
5368
|
+
continue;
|
|
4792
5369
|
case 3:
|
|
5370
|
+
if (tag != 24) {
|
|
5371
|
+
break;
|
|
5372
|
+
}
|
|
4793
5373
|
message.maxVoteOverwrites = reader.uint32();
|
|
4794
|
-
|
|
5374
|
+
continue;
|
|
4795
5375
|
case 4:
|
|
5376
|
+
if (tag != 32) {
|
|
5377
|
+
break;
|
|
5378
|
+
}
|
|
4796
5379
|
message.maxTotalCost = reader.uint32();
|
|
4797
|
-
|
|
5380
|
+
continue;
|
|
4798
5381
|
case 5:
|
|
5382
|
+
if (tag != 40) {
|
|
5383
|
+
break;
|
|
5384
|
+
}
|
|
4799
5385
|
message.costExponent = reader.uint32();
|
|
4800
|
-
|
|
4801
|
-
default:
|
|
4802
|
-
reader.skipType(tag & 7);
|
|
4803
|
-
break;
|
|
5386
|
+
continue;
|
|
4804
5387
|
}
|
|
5388
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5389
|
+
break;
|
|
5390
|
+
}
|
|
5391
|
+
reader.skipType(tag & 7);
|
|
4805
5392
|
}
|
|
4806
5393
|
return message;
|
|
4807
5394
|
},
|
|
@@ -4847,19 +5434,23 @@ var OracleList = {
|
|
|
4847
5434
|
return writer;
|
|
4848
5435
|
},
|
|
4849
5436
|
decode(input, length) {
|
|
4850
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5437
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4851
5438
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4852
5439
|
const message = createBaseOracleList();
|
|
4853
5440
|
while (reader.pos < end) {
|
|
4854
5441
|
const tag = reader.uint32();
|
|
4855
5442
|
switch (tag >>> 3) {
|
|
4856
5443
|
case 1:
|
|
5444
|
+
if (tag != 10) {
|
|
5445
|
+
break;
|
|
5446
|
+
}
|
|
4857
5447
|
message.oracles.push(reader.bytes());
|
|
4858
|
-
|
|
4859
|
-
default:
|
|
4860
|
-
reader.skipType(tag & 7);
|
|
4861
|
-
break;
|
|
5448
|
+
continue;
|
|
4862
5449
|
}
|
|
5450
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5451
|
+
break;
|
|
5452
|
+
}
|
|
5453
|
+
reader.skipType(tag & 7);
|
|
4863
5454
|
}
|
|
4864
5455
|
return message;
|
|
4865
5456
|
},
|
|
@@ -4895,19 +5486,23 @@ var ValidatorList = {
|
|
|
4895
5486
|
return writer;
|
|
4896
5487
|
},
|
|
4897
5488
|
decode(input, length) {
|
|
4898
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5489
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4899
5490
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4900
5491
|
const message = createBaseValidatorList();
|
|
4901
5492
|
while (reader.pos < end) {
|
|
4902
5493
|
const tag = reader.uint32();
|
|
4903
5494
|
switch (tag >>> 3) {
|
|
4904
5495
|
case 1:
|
|
5496
|
+
if (tag != 10) {
|
|
5497
|
+
break;
|
|
5498
|
+
}
|
|
4905
5499
|
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
5500
|
+
continue;
|
|
5501
|
+
}
|
|
5502
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5503
|
+
break;
|
|
4910
5504
|
}
|
|
5505
|
+
reader.skipType(tag & 7);
|
|
4911
5506
|
}
|
|
4912
5507
|
return message;
|
|
4913
5508
|
},
|
|
@@ -4935,7 +5530,7 @@ var ValidatorList = {
|
|
|
4935
5530
|
}
|
|
4936
5531
|
};
|
|
4937
5532
|
function createBaseValidator() {
|
|
4938
|
-
return { address: new Uint8Array(), pubKey: new Uint8Array(), power: 0, name: "" };
|
|
5533
|
+
return { address: new Uint8Array(), pubKey: new Uint8Array(), power: 0, name: "", keyIndex: 0 };
|
|
4939
5534
|
}
|
|
4940
5535
|
var Validator = {
|
|
4941
5536
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
@@ -4951,31 +5546,53 @@ var Validator = {
|
|
|
4951
5546
|
if (message.name !== "") {
|
|
4952
5547
|
writer.uint32(34).string(message.name);
|
|
4953
5548
|
}
|
|
5549
|
+
if (message.keyIndex !== 0) {
|
|
5550
|
+
writer.uint32(40).uint32(message.keyIndex);
|
|
5551
|
+
}
|
|
4954
5552
|
return writer;
|
|
4955
5553
|
},
|
|
4956
5554
|
decode(input, length) {
|
|
4957
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5555
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4958
5556
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4959
5557
|
const message = createBaseValidator();
|
|
4960
5558
|
while (reader.pos < end) {
|
|
4961
5559
|
const tag = reader.uint32();
|
|
4962
5560
|
switch (tag >>> 3) {
|
|
4963
5561
|
case 1:
|
|
5562
|
+
if (tag != 10) {
|
|
5563
|
+
break;
|
|
5564
|
+
}
|
|
4964
5565
|
message.address = reader.bytes();
|
|
4965
|
-
|
|
5566
|
+
continue;
|
|
4966
5567
|
case 2:
|
|
5568
|
+
if (tag != 18) {
|
|
5569
|
+
break;
|
|
5570
|
+
}
|
|
4967
5571
|
message.pubKey = reader.bytes();
|
|
4968
|
-
|
|
5572
|
+
continue;
|
|
4969
5573
|
case 3:
|
|
5574
|
+
if (tag != 24) {
|
|
5575
|
+
break;
|
|
5576
|
+
}
|
|
4970
5577
|
message.power = longToNumber(reader.uint64());
|
|
4971
|
-
|
|
5578
|
+
continue;
|
|
4972
5579
|
case 4:
|
|
5580
|
+
if (tag != 34) {
|
|
5581
|
+
break;
|
|
5582
|
+
}
|
|
4973
5583
|
message.name = reader.string();
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
5584
|
+
continue;
|
|
5585
|
+
case 5:
|
|
5586
|
+
if (tag != 40) {
|
|
5587
|
+
break;
|
|
5588
|
+
}
|
|
5589
|
+
message.keyIndex = reader.uint32();
|
|
5590
|
+
continue;
|
|
5591
|
+
}
|
|
5592
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5593
|
+
break;
|
|
4978
5594
|
}
|
|
5595
|
+
reader.skipType(tag & 7);
|
|
4979
5596
|
}
|
|
4980
5597
|
return message;
|
|
4981
5598
|
},
|
|
@@ -4984,7 +5601,8 @@ var Validator = {
|
|
|
4984
5601
|
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(),
|
|
4985
5602
|
pubKey: isSet(object.pubKey) ? bytesFromBase64(object.pubKey) : new Uint8Array(),
|
|
4986
5603
|
power: isSet(object.power) ? Number(object.power) : 0,
|
|
4987
|
-
name: isSet(object.name) ? String(object.name) : ""
|
|
5604
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
5605
|
+
keyIndex: isSet(object.keyIndex) ? Number(object.keyIndex) : 0
|
|
4988
5606
|
};
|
|
4989
5607
|
},
|
|
4990
5608
|
toJSON(message) {
|
|
@@ -4993,6 +5611,7 @@ var Validator = {
|
|
|
4993
5611
|
message.pubKey !== void 0 && (obj.pubKey = base64FromBytes(message.pubKey !== void 0 ? message.pubKey : new Uint8Array()));
|
|
4994
5612
|
message.power !== void 0 && (obj.power = Math.round(message.power));
|
|
4995
5613
|
message.name !== void 0 && (obj.name = message.name);
|
|
5614
|
+
message.keyIndex !== void 0 && (obj.keyIndex = Math.round(message.keyIndex));
|
|
4996
5615
|
return obj;
|
|
4997
5616
|
},
|
|
4998
5617
|
create(base) {
|
|
@@ -5004,6 +5623,7 @@ var Validator = {
|
|
|
5004
5623
|
message.pubKey = object.pubKey ?? new Uint8Array();
|
|
5005
5624
|
message.power = object.power ?? 0;
|
|
5006
5625
|
message.name = object.name ?? "";
|
|
5626
|
+
message.keyIndex = object.keyIndex ?? 0;
|
|
5007
5627
|
return message;
|
|
5008
5628
|
}
|
|
5009
5629
|
};
|
|
@@ -5068,55 +5688,95 @@ var TendermintHeader = {
|
|
|
5068
5688
|
return writer;
|
|
5069
5689
|
},
|
|
5070
5690
|
decode(input, length) {
|
|
5071
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5691
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5072
5692
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5073
5693
|
const message = createBaseTendermintHeader();
|
|
5074
5694
|
while (reader.pos < end) {
|
|
5075
5695
|
const tag = reader.uint32();
|
|
5076
5696
|
switch (tag >>> 3) {
|
|
5077
5697
|
case 2:
|
|
5698
|
+
if (tag != 18) {
|
|
5699
|
+
break;
|
|
5700
|
+
}
|
|
5078
5701
|
message.chainId = reader.string();
|
|
5079
|
-
|
|
5702
|
+
continue;
|
|
5080
5703
|
case 3:
|
|
5704
|
+
if (tag != 24) {
|
|
5705
|
+
break;
|
|
5706
|
+
}
|
|
5081
5707
|
message.height = longToNumber(reader.int64());
|
|
5082
|
-
|
|
5708
|
+
continue;
|
|
5083
5709
|
case 4:
|
|
5710
|
+
if (tag != 32) {
|
|
5711
|
+
break;
|
|
5712
|
+
}
|
|
5084
5713
|
message.timestamp = longToNumber(reader.int64());
|
|
5085
|
-
|
|
5714
|
+
continue;
|
|
5086
5715
|
case 5:
|
|
5716
|
+
if (tag != 42) {
|
|
5717
|
+
break;
|
|
5718
|
+
}
|
|
5087
5719
|
message.blockID = reader.bytes();
|
|
5088
|
-
|
|
5720
|
+
continue;
|
|
5089
5721
|
case 6:
|
|
5722
|
+
if (tag != 50) {
|
|
5723
|
+
break;
|
|
5724
|
+
}
|
|
5090
5725
|
message.lastCommitHash = reader.bytes();
|
|
5091
|
-
|
|
5726
|
+
continue;
|
|
5092
5727
|
case 7:
|
|
5728
|
+
if (tag != 58) {
|
|
5729
|
+
break;
|
|
5730
|
+
}
|
|
5093
5731
|
message.dataHash = reader.bytes();
|
|
5094
|
-
|
|
5732
|
+
continue;
|
|
5095
5733
|
case 8:
|
|
5734
|
+
if (tag != 66) {
|
|
5735
|
+
break;
|
|
5736
|
+
}
|
|
5096
5737
|
message.validatorsHash = reader.bytes();
|
|
5097
|
-
|
|
5738
|
+
continue;
|
|
5098
5739
|
case 9:
|
|
5740
|
+
if (tag != 74) {
|
|
5741
|
+
break;
|
|
5742
|
+
}
|
|
5099
5743
|
message.nextValidatorsHash = reader.bytes();
|
|
5100
|
-
|
|
5744
|
+
continue;
|
|
5101
5745
|
case 10:
|
|
5746
|
+
if (tag != 82) {
|
|
5747
|
+
break;
|
|
5748
|
+
}
|
|
5102
5749
|
message.consensusHash = reader.bytes();
|
|
5103
|
-
|
|
5750
|
+
continue;
|
|
5104
5751
|
case 11:
|
|
5752
|
+
if (tag != 90) {
|
|
5753
|
+
break;
|
|
5754
|
+
}
|
|
5105
5755
|
message.appHash = reader.bytes();
|
|
5106
|
-
|
|
5756
|
+
continue;
|
|
5107
5757
|
case 12:
|
|
5758
|
+
if (tag != 98) {
|
|
5759
|
+
break;
|
|
5760
|
+
}
|
|
5108
5761
|
message.lastResultsHash = reader.bytes();
|
|
5109
|
-
|
|
5762
|
+
continue;
|
|
5110
5763
|
case 13:
|
|
5764
|
+
if (tag != 106) {
|
|
5765
|
+
break;
|
|
5766
|
+
}
|
|
5111
5767
|
message.evidenceHash = reader.bytes();
|
|
5112
|
-
|
|
5768
|
+
continue;
|
|
5113
5769
|
case 14:
|
|
5770
|
+
if (tag != 114) {
|
|
5771
|
+
break;
|
|
5772
|
+
}
|
|
5114
5773
|
message.proposerAddress = reader.bytes();
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5774
|
+
continue;
|
|
5775
|
+
}
|
|
5776
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5777
|
+
break;
|
|
5119
5778
|
}
|
|
5779
|
+
reader.skipType(tag & 7);
|
|
5120
5780
|
}
|
|
5121
5781
|
return message;
|
|
5122
5782
|
},
|
|
@@ -5212,31 +5872,47 @@ var ProcessResult = {
|
|
|
5212
5872
|
return writer;
|
|
5213
5873
|
},
|
|
5214
5874
|
decode(input, length) {
|
|
5215
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5875
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5216
5876
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5217
5877
|
const message = createBaseProcessResult();
|
|
5218
5878
|
while (reader.pos < end) {
|
|
5219
5879
|
const tag = reader.uint32();
|
|
5220
5880
|
switch (tag >>> 3) {
|
|
5221
5881
|
case 1:
|
|
5882
|
+
if (tag != 10) {
|
|
5883
|
+
break;
|
|
5884
|
+
}
|
|
5222
5885
|
message.votes.push(QuestionResult.decode(reader, reader.uint32()));
|
|
5223
|
-
|
|
5886
|
+
continue;
|
|
5224
5887
|
case 2:
|
|
5888
|
+
if (tag != 18) {
|
|
5889
|
+
break;
|
|
5890
|
+
}
|
|
5225
5891
|
message.processId = reader.bytes();
|
|
5226
|
-
|
|
5892
|
+
continue;
|
|
5227
5893
|
case 3:
|
|
5894
|
+
if (tag != 26) {
|
|
5895
|
+
break;
|
|
5896
|
+
}
|
|
5228
5897
|
message.entityId = reader.bytes();
|
|
5229
|
-
|
|
5898
|
+
continue;
|
|
5230
5899
|
case 4:
|
|
5900
|
+
if (tag != 34) {
|
|
5901
|
+
break;
|
|
5902
|
+
}
|
|
5231
5903
|
message.oracleAddress = reader.bytes();
|
|
5232
|
-
|
|
5904
|
+
continue;
|
|
5233
5905
|
case 5:
|
|
5906
|
+
if (tag != 42) {
|
|
5907
|
+
break;
|
|
5908
|
+
}
|
|
5234
5909
|
message.signature = reader.bytes();
|
|
5235
|
-
|
|
5236
|
-
default:
|
|
5237
|
-
reader.skipType(tag & 7);
|
|
5238
|
-
break;
|
|
5910
|
+
continue;
|
|
5239
5911
|
}
|
|
5912
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5913
|
+
break;
|
|
5914
|
+
}
|
|
5915
|
+
reader.skipType(tag & 7);
|
|
5240
5916
|
}
|
|
5241
5917
|
return message;
|
|
5242
5918
|
},
|
|
@@ -5286,19 +5962,23 @@ var QuestionResult = {
|
|
|
5286
5962
|
return writer;
|
|
5287
5963
|
},
|
|
5288
5964
|
decode(input, length) {
|
|
5289
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5965
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5290
5966
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5291
5967
|
const message = createBaseQuestionResult();
|
|
5292
5968
|
while (reader.pos < end) {
|
|
5293
5969
|
const tag = reader.uint32();
|
|
5294
5970
|
switch (tag >>> 3) {
|
|
5295
5971
|
case 1:
|
|
5972
|
+
if (tag != 10) {
|
|
5973
|
+
break;
|
|
5974
|
+
}
|
|
5296
5975
|
message.question.push(reader.bytes());
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5976
|
+
continue;
|
|
5977
|
+
}
|
|
5978
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5979
|
+
break;
|
|
5301
5980
|
}
|
|
5981
|
+
reader.skipType(tag & 7);
|
|
5302
5982
|
}
|
|
5303
5983
|
return message;
|
|
5304
5984
|
},
|
|
@@ -5334,19 +6014,23 @@ var ProcessEndingList = {
|
|
|
5334
6014
|
return writer;
|
|
5335
6015
|
},
|
|
5336
6016
|
decode(input, length) {
|
|
5337
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
6017
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5338
6018
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5339
6019
|
const message = createBaseProcessEndingList();
|
|
5340
6020
|
while (reader.pos < end) {
|
|
5341
6021
|
const tag = reader.uint32();
|
|
5342
6022
|
switch (tag >>> 3) {
|
|
5343
6023
|
case 1:
|
|
6024
|
+
if (tag != 10) {
|
|
6025
|
+
break;
|
|
6026
|
+
}
|
|
5344
6027
|
message.processList.push(reader.bytes());
|
|
5345
|
-
|
|
5346
|
-
default:
|
|
5347
|
-
reader.skipType(tag & 7);
|
|
5348
|
-
break;
|
|
6028
|
+
continue;
|
|
5349
6029
|
}
|
|
6030
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
6031
|
+
break;
|
|
6032
|
+
}
|
|
6033
|
+
reader.skipType(tag & 7);
|
|
5350
6034
|
}
|
|
5351
6035
|
return message;
|
|
5352
6036
|
},
|
|
@@ -5384,19 +6068,23 @@ var StoredKeys = {
|
|
|
5384
6068
|
return writer;
|
|
5385
6069
|
},
|
|
5386
6070
|
decode(input, length) {
|
|
5387
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
6071
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5388
6072
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5389
6073
|
const message = createBaseStoredKeys();
|
|
5390
6074
|
while (reader.pos < end) {
|
|
5391
6075
|
const tag = reader.uint32();
|
|
5392
6076
|
switch (tag >>> 3) {
|
|
5393
6077
|
case 1:
|
|
6078
|
+
if (tag != 10) {
|
|
6079
|
+
break;
|
|
6080
|
+
}
|
|
5394
6081
|
message.pids.push(reader.bytes());
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
6082
|
+
continue;
|
|
6083
|
+
}
|
|
6084
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
6085
|
+
break;
|
|
5399
6086
|
}
|
|
6087
|
+
reader.skipType(tag & 7);
|
|
5400
6088
|
}
|
|
5401
6089
|
return message;
|
|
5402
6090
|
},
|