@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.mjs
CHANGED
|
@@ -16,6 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
19
23
|
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
20
24
|
mod2
|
|
21
25
|
));
|
|
@@ -251,7 +255,13 @@ var require_float = __commonJS({
|
|
|
251
255
|
if (sign)
|
|
252
256
|
val = -val;
|
|
253
257
|
if (val === 0)
|
|
254
|
-
writeUint(1 / val > 0 ?
|
|
258
|
+
writeUint(1 / val > 0 ? (
|
|
259
|
+
/* positive */
|
|
260
|
+
0
|
|
261
|
+
) : (
|
|
262
|
+
/* negative 0 */
|
|
263
|
+
2147483648
|
|
264
|
+
), buf, pos);
|
|
255
265
|
else if (isNaN(val))
|
|
256
266
|
writeUint(2143289344, buf, pos);
|
|
257
267
|
else if (val > 34028234663852886e22)
|
|
@@ -332,7 +342,13 @@ var require_float = __commonJS({
|
|
|
332
342
|
val = -val;
|
|
333
343
|
if (val === 0) {
|
|
334
344
|
writeUint(0, buf, pos + off0);
|
|
335
|
-
writeUint(1 / val > 0 ?
|
|
345
|
+
writeUint(1 / val > 0 ? (
|
|
346
|
+
/* positive */
|
|
347
|
+
0
|
|
348
|
+
) : (
|
|
349
|
+
/* negative 0 */
|
|
350
|
+
2147483648
|
|
351
|
+
), buf, pos + off1);
|
|
336
352
|
} else if (isNaN(val)) {
|
|
337
353
|
writeUint(0, buf, pos + off0);
|
|
338
354
|
writeUint(2146959360, buf, pos + off1);
|
|
@@ -625,9 +641,16 @@ var require_minimal = __commonJS({
|
|
|
625
641
|
util.LongBits = require_longbits();
|
|
626
642
|
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
627
643
|
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
628
|
-
util.emptyArray = Object.freeze ? Object.freeze([]) :
|
|
629
|
-
|
|
630
|
-
|
|
644
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
645
|
+
/* istanbul ignore next */
|
|
646
|
+
[]
|
|
647
|
+
);
|
|
648
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
649
|
+
/* istanbul ignore next */
|
|
650
|
+
{}
|
|
651
|
+
);
|
|
652
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
653
|
+
function isInteger(value) {
|
|
631
654
|
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
632
655
|
};
|
|
633
656
|
util.isString = function isString(value) {
|
|
@@ -636,7 +659,13 @@ var require_minimal = __commonJS({
|
|
|
636
659
|
util.isObject = function isObject(value) {
|
|
637
660
|
return value && typeof value === "object";
|
|
638
661
|
};
|
|
639
|
-
util.isset =
|
|
662
|
+
util.isset = /**
|
|
663
|
+
* Checks if a property on a message is considered to be present.
|
|
664
|
+
* @param {Object} obj Plain object or message instance
|
|
665
|
+
* @param {string} prop Property name
|
|
666
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
667
|
+
*/
|
|
668
|
+
util.isSet = function isSet2(obj, prop) {
|
|
640
669
|
var value = obj[prop];
|
|
641
670
|
if (value != null && obj.hasOwnProperty(prop))
|
|
642
671
|
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
@@ -645,7 +674,10 @@ var require_minimal = __commonJS({
|
|
|
645
674
|
util.Buffer = function() {
|
|
646
675
|
try {
|
|
647
676
|
var Buffer2 = util.inquire("buffer").Buffer;
|
|
648
|
-
return Buffer2.prototype.utf8Write ? Buffer2 :
|
|
677
|
+
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
678
|
+
/* istanbul ignore next */
|
|
679
|
+
null
|
|
680
|
+
);
|
|
649
681
|
} catch (e) {
|
|
650
682
|
return null;
|
|
651
683
|
}
|
|
@@ -656,7 +688,10 @@ var require_minimal = __commonJS({
|
|
|
656
688
|
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);
|
|
657
689
|
};
|
|
658
690
|
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
659
|
-
util.Long =
|
|
691
|
+
util.Long = /* istanbul ignore next */
|
|
692
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
693
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
694
|
+
util.global.Long || util.inquire("long");
|
|
660
695
|
util.key2Re = /^true|false|0|1$/;
|
|
661
696
|
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
662
697
|
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
@@ -701,15 +736,19 @@ var require_minimal = __commonJS({
|
|
|
701
736
|
configurable: true
|
|
702
737
|
},
|
|
703
738
|
name: {
|
|
704
|
-
get() {
|
|
739
|
+
get: function get() {
|
|
705
740
|
return name;
|
|
706
741
|
},
|
|
707
742
|
set: void 0,
|
|
708
743
|
enumerable: false,
|
|
744
|
+
// configurable: false would accurately preserve the behavior of
|
|
745
|
+
// the original, but I'm guessing that was not intentional.
|
|
746
|
+
// For an actual error subclass, this property would
|
|
747
|
+
// be configurable.
|
|
709
748
|
configurable: true
|
|
710
749
|
},
|
|
711
750
|
toString: {
|
|
712
|
-
value() {
|
|
751
|
+
value: function value() {
|
|
713
752
|
return this.name + ": " + this.message;
|
|
714
753
|
},
|
|
715
754
|
writable: true,
|
|
@@ -750,10 +789,12 @@ var require_minimal = __commonJS({
|
|
|
750
789
|
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
751
790
|
return;
|
|
752
791
|
}
|
|
753
|
-
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from ||
|
|
792
|
+
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
793
|
+
function Buffer_from(value, encoding) {
|
|
754
794
|
return new Buffer2(value, encoding);
|
|
755
795
|
};
|
|
756
|
-
util._Buffer_allocUnsafe = Buffer2.allocUnsafe ||
|
|
796
|
+
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
797
|
+
function Buffer_allocUnsafe(size) {
|
|
757
798
|
return new Buffer2(size);
|
|
758
799
|
};
|
|
759
800
|
};
|
|
@@ -1036,7 +1077,8 @@ var require_reader = __commonJS({
|
|
|
1036
1077
|
} : create_array;
|
|
1037
1078
|
};
|
|
1038
1079
|
Reader.create = create();
|
|
1039
|
-
Reader.prototype._slice = util.Array.prototype.subarray ||
|
|
1080
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1081
|
+
util.Array.prototype.slice;
|
|
1040
1082
|
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1041
1083
|
var value = 4294967295;
|
|
1042
1084
|
return function read_uint32() {
|
|
@@ -1200,7 +1242,10 @@ var require_reader = __commonJS({
|
|
|
1200
1242
|
BufferReader = BufferReader_;
|
|
1201
1243
|
Reader.create = create();
|
|
1202
1244
|
BufferReader._configure();
|
|
1203
|
-
var fn = util.Long ? "toLong" :
|
|
1245
|
+
var fn = util.Long ? "toLong" : (
|
|
1246
|
+
/* istanbul ignore next */
|
|
1247
|
+
"toNumber"
|
|
1248
|
+
);
|
|
1204
1249
|
util.merge(Reader.prototype, {
|
|
1205
1250
|
int64: function read_int64() {
|
|
1206
1251
|
return readLongVarint.call(this)[fn](false);
|
|
@@ -1282,7 +1327,10 @@ var require_service = __commonJS({
|
|
|
1282
1327
|
return callback(err);
|
|
1283
1328
|
}
|
|
1284
1329
|
if (response === null) {
|
|
1285
|
-
self2.end(
|
|
1330
|
+
self2.end(
|
|
1331
|
+
/* endedByRPC */
|
|
1332
|
+
true
|
|
1333
|
+
);
|
|
1286
1334
|
return void 0;
|
|
1287
1335
|
}
|
|
1288
1336
|
if (!(response instanceof responseCtor)) {
|
|
@@ -1981,41 +2029,60 @@ var VoteEnvelope = {
|
|
|
1981
2029
|
return writer;
|
|
1982
2030
|
},
|
|
1983
2031
|
decode(input, length) {
|
|
1984
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2032
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
1985
2033
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1986
2034
|
const message = createBaseVoteEnvelope();
|
|
1987
2035
|
while (reader.pos < end) {
|
|
1988
2036
|
const tag = reader.uint32();
|
|
1989
2037
|
switch (tag >>> 3) {
|
|
1990
2038
|
case 1:
|
|
2039
|
+
if (tag != 10) {
|
|
2040
|
+
break;
|
|
2041
|
+
}
|
|
1991
2042
|
message.nonce = reader.bytes();
|
|
1992
|
-
|
|
2043
|
+
continue;
|
|
1993
2044
|
case 2:
|
|
2045
|
+
if (tag != 18) {
|
|
2046
|
+
break;
|
|
2047
|
+
}
|
|
1994
2048
|
message.processId = reader.bytes();
|
|
1995
|
-
|
|
2049
|
+
continue;
|
|
1996
2050
|
case 3:
|
|
2051
|
+
if (tag != 26) {
|
|
2052
|
+
break;
|
|
2053
|
+
}
|
|
1997
2054
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
1998
|
-
|
|
2055
|
+
continue;
|
|
1999
2056
|
case 4:
|
|
2057
|
+
if (tag != 34) {
|
|
2058
|
+
break;
|
|
2059
|
+
}
|
|
2000
2060
|
message.votePackage = reader.bytes();
|
|
2001
|
-
|
|
2061
|
+
continue;
|
|
2002
2062
|
case 5:
|
|
2063
|
+
if (tag != 42) {
|
|
2064
|
+
break;
|
|
2065
|
+
}
|
|
2003
2066
|
message.nullifier = reader.bytes();
|
|
2004
|
-
|
|
2067
|
+
continue;
|
|
2005
2068
|
case 6:
|
|
2006
|
-
if (
|
|
2069
|
+
if (tag == 48) {
|
|
2070
|
+
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2071
|
+
continue;
|
|
2072
|
+
}
|
|
2073
|
+
if (tag == 50) {
|
|
2007
2074
|
const end2 = reader.uint32() + reader.pos;
|
|
2008
2075
|
while (reader.pos < end2) {
|
|
2009
2076
|
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2010
2077
|
}
|
|
2011
|
-
|
|
2012
|
-
message.encryptionKeyIndexes.push(reader.uint32());
|
|
2078
|
+
continue;
|
|
2013
2079
|
}
|
|
2014
2080
|
break;
|
|
2015
|
-
default:
|
|
2016
|
-
reader.skipType(tag & 7);
|
|
2017
|
-
break;
|
|
2018
2081
|
}
|
|
2082
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
reader.skipType(tag & 7);
|
|
2019
2086
|
}
|
|
2020
2087
|
return message;
|
|
2021
2088
|
},
|
|
@@ -2065,16 +2132,17 @@ var Census = {
|
|
|
2065
2132
|
return writer;
|
|
2066
2133
|
},
|
|
2067
2134
|
decode(input, length) {
|
|
2068
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2135
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2069
2136
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2070
2137
|
const message = createBaseCensus();
|
|
2071
2138
|
while (reader.pos < end) {
|
|
2072
2139
|
const tag = reader.uint32();
|
|
2073
2140
|
switch (tag >>> 3) {
|
|
2074
|
-
default:
|
|
2075
|
-
reader.skipType(tag & 7);
|
|
2076
|
-
break;
|
|
2077
2141
|
}
|
|
2142
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2143
|
+
break;
|
|
2144
|
+
}
|
|
2145
|
+
reader.skipType(tag & 7);
|
|
2078
2146
|
}
|
|
2079
2147
|
return message;
|
|
2080
2148
|
},
|
|
@@ -2098,73 +2166,100 @@ function createBaseProof() {
|
|
|
2098
2166
|
}
|
|
2099
2167
|
var Proof = {
|
|
2100
2168
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2169
|
+
switch (message.payload?.$case) {
|
|
2170
|
+
case "graviton":
|
|
2171
|
+
ProofGraviton.encode(message.payload.graviton, writer.uint32(10).fork()).ldelim();
|
|
2172
|
+
break;
|
|
2173
|
+
case "iden3":
|
|
2174
|
+
ProofIden3.encode(message.payload.iden3, writer.uint32(18).fork()).ldelim();
|
|
2175
|
+
break;
|
|
2176
|
+
case "ethereumStorage":
|
|
2177
|
+
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
2178
|
+
break;
|
|
2179
|
+
case "ethereumAccount":
|
|
2180
|
+
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
2181
|
+
break;
|
|
2182
|
+
case "ca":
|
|
2183
|
+
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
2184
|
+
break;
|
|
2185
|
+
case "arbo":
|
|
2186
|
+
ProofArbo.encode(message.payload.arbo, writer.uint32(50).fork()).ldelim();
|
|
2187
|
+
break;
|
|
2188
|
+
case "zkSnark":
|
|
2189
|
+
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
2190
|
+
break;
|
|
2191
|
+
case "minimeStorage":
|
|
2192
|
+
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2193
|
+
break;
|
|
2124
2194
|
}
|
|
2125
2195
|
return writer;
|
|
2126
2196
|
},
|
|
2127
2197
|
decode(input, length) {
|
|
2128
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2198
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2129
2199
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2130
2200
|
const message = createBaseProof();
|
|
2131
2201
|
while (reader.pos < end) {
|
|
2132
2202
|
const tag = reader.uint32();
|
|
2133
2203
|
switch (tag >>> 3) {
|
|
2134
2204
|
case 1:
|
|
2205
|
+
if (tag != 10) {
|
|
2206
|
+
break;
|
|
2207
|
+
}
|
|
2135
2208
|
message.payload = { $case: "graviton", graviton: ProofGraviton.decode(reader, reader.uint32()) };
|
|
2136
|
-
|
|
2209
|
+
continue;
|
|
2137
2210
|
case 2:
|
|
2211
|
+
if (tag != 18) {
|
|
2212
|
+
break;
|
|
2213
|
+
}
|
|
2138
2214
|
message.payload = { $case: "iden3", iden3: ProofIden3.decode(reader, reader.uint32()) };
|
|
2139
|
-
|
|
2215
|
+
continue;
|
|
2140
2216
|
case 3:
|
|
2217
|
+
if (tag != 26) {
|
|
2218
|
+
break;
|
|
2219
|
+
}
|
|
2141
2220
|
message.payload = {
|
|
2142
2221
|
$case: "ethereumStorage",
|
|
2143
2222
|
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
2144
2223
|
};
|
|
2145
|
-
|
|
2224
|
+
continue;
|
|
2146
2225
|
case 4:
|
|
2226
|
+
if (tag != 34) {
|
|
2227
|
+
break;
|
|
2228
|
+
}
|
|
2147
2229
|
message.payload = {
|
|
2148
2230
|
$case: "ethereumAccount",
|
|
2149
2231
|
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
2150
2232
|
};
|
|
2151
|
-
|
|
2233
|
+
continue;
|
|
2152
2234
|
case 5:
|
|
2235
|
+
if (tag != 42) {
|
|
2236
|
+
break;
|
|
2237
|
+
}
|
|
2153
2238
|
message.payload = { $case: "ca", ca: ProofCA.decode(reader, reader.uint32()) };
|
|
2154
|
-
|
|
2239
|
+
continue;
|
|
2155
2240
|
case 6:
|
|
2241
|
+
if (tag != 50) {
|
|
2242
|
+
break;
|
|
2243
|
+
}
|
|
2156
2244
|
message.payload = { $case: "arbo", arbo: ProofArbo.decode(reader, reader.uint32()) };
|
|
2157
|
-
|
|
2245
|
+
continue;
|
|
2158
2246
|
case 7:
|
|
2247
|
+
if (tag != 58) {
|
|
2248
|
+
break;
|
|
2249
|
+
}
|
|
2159
2250
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
2160
|
-
|
|
2251
|
+
continue;
|
|
2161
2252
|
case 8:
|
|
2253
|
+
if (tag != 66) {
|
|
2254
|
+
break;
|
|
2255
|
+
}
|
|
2162
2256
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2257
|
+
continue;
|
|
2258
|
+
}
|
|
2259
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2260
|
+
break;
|
|
2167
2261
|
}
|
|
2262
|
+
reader.skipType(tag & 7);
|
|
2168
2263
|
}
|
|
2169
2264
|
return message;
|
|
2170
2265
|
},
|
|
@@ -2237,19 +2332,23 @@ var ProofGraviton = {
|
|
|
2237
2332
|
return writer;
|
|
2238
2333
|
},
|
|
2239
2334
|
decode(input, length) {
|
|
2240
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2335
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2241
2336
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2242
2337
|
const message = createBaseProofGraviton();
|
|
2243
2338
|
while (reader.pos < end) {
|
|
2244
2339
|
const tag = reader.uint32();
|
|
2245
2340
|
switch (tag >>> 3) {
|
|
2246
2341
|
case 1:
|
|
2342
|
+
if (tag != 10) {
|
|
2343
|
+
break;
|
|
2344
|
+
}
|
|
2247
2345
|
message.siblings = reader.bytes();
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2346
|
+
continue;
|
|
2347
|
+
}
|
|
2348
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2349
|
+
break;
|
|
2252
2350
|
}
|
|
2351
|
+
reader.skipType(tag & 7);
|
|
2253
2352
|
}
|
|
2254
2353
|
return message;
|
|
2255
2354
|
},
|
|
@@ -2281,19 +2380,23 @@ var ProofIden3 = {
|
|
|
2281
2380
|
return writer;
|
|
2282
2381
|
},
|
|
2283
2382
|
decode(input, length) {
|
|
2284
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2383
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2285
2384
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2286
2385
|
const message = createBaseProofIden3();
|
|
2287
2386
|
while (reader.pos < end) {
|
|
2288
2387
|
const tag = reader.uint32();
|
|
2289
2388
|
switch (tag >>> 3) {
|
|
2290
2389
|
case 1:
|
|
2390
|
+
if (tag != 10) {
|
|
2391
|
+
break;
|
|
2392
|
+
}
|
|
2291
2393
|
message.siblings = reader.bytes();
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2394
|
+
continue;
|
|
2395
|
+
}
|
|
2396
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2397
|
+
break;
|
|
2296
2398
|
}
|
|
2399
|
+
reader.skipType(tag & 7);
|
|
2297
2400
|
}
|
|
2298
2401
|
return message;
|
|
2299
2402
|
},
|
|
@@ -2331,25 +2434,35 @@ var ProofEthereumStorage = {
|
|
|
2331
2434
|
return writer;
|
|
2332
2435
|
},
|
|
2333
2436
|
decode(input, length) {
|
|
2334
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2437
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2335
2438
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2336
2439
|
const message = createBaseProofEthereumStorage();
|
|
2337
2440
|
while (reader.pos < end) {
|
|
2338
2441
|
const tag = reader.uint32();
|
|
2339
2442
|
switch (tag >>> 3) {
|
|
2340
2443
|
case 1:
|
|
2444
|
+
if (tag != 10) {
|
|
2445
|
+
break;
|
|
2446
|
+
}
|
|
2341
2447
|
message.key = reader.bytes();
|
|
2342
|
-
|
|
2448
|
+
continue;
|
|
2343
2449
|
case 2:
|
|
2450
|
+
if (tag != 18) {
|
|
2451
|
+
break;
|
|
2452
|
+
}
|
|
2344
2453
|
message.value = reader.bytes();
|
|
2345
|
-
|
|
2454
|
+
continue;
|
|
2346
2455
|
case 3:
|
|
2456
|
+
if (tag != 26) {
|
|
2457
|
+
break;
|
|
2458
|
+
}
|
|
2347
2459
|
message.siblings.push(reader.bytes());
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2460
|
+
continue;
|
|
2461
|
+
}
|
|
2462
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2463
|
+
break;
|
|
2352
2464
|
}
|
|
2465
|
+
reader.skipType(tag & 7);
|
|
2353
2466
|
}
|
|
2354
2467
|
return message;
|
|
2355
2468
|
},
|
|
@@ -2411,31 +2524,47 @@ var ProofEthereumAccount = {
|
|
|
2411
2524
|
return writer;
|
|
2412
2525
|
},
|
|
2413
2526
|
decode(input, length) {
|
|
2414
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2527
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2415
2528
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2416
2529
|
const message = createBaseProofEthereumAccount();
|
|
2417
2530
|
while (reader.pos < end) {
|
|
2418
2531
|
const tag = reader.uint32();
|
|
2419
2532
|
switch (tag >>> 3) {
|
|
2420
2533
|
case 1:
|
|
2534
|
+
if (tag != 10) {
|
|
2535
|
+
break;
|
|
2536
|
+
}
|
|
2421
2537
|
message.nonce = reader.bytes();
|
|
2422
|
-
|
|
2538
|
+
continue;
|
|
2423
2539
|
case 2:
|
|
2540
|
+
if (tag != 18) {
|
|
2541
|
+
break;
|
|
2542
|
+
}
|
|
2424
2543
|
message.balance = reader.bytes();
|
|
2425
|
-
|
|
2544
|
+
continue;
|
|
2426
2545
|
case 3:
|
|
2546
|
+
if (tag != 26) {
|
|
2547
|
+
break;
|
|
2548
|
+
}
|
|
2427
2549
|
message.storageHash = reader.bytes();
|
|
2428
|
-
|
|
2550
|
+
continue;
|
|
2429
2551
|
case 4:
|
|
2552
|
+
if (tag != 34) {
|
|
2553
|
+
break;
|
|
2554
|
+
}
|
|
2430
2555
|
message.codeHash = reader.bytes();
|
|
2431
|
-
|
|
2556
|
+
continue;
|
|
2432
2557
|
case 5:
|
|
2558
|
+
if (tag != 42) {
|
|
2559
|
+
break;
|
|
2560
|
+
}
|
|
2433
2561
|
message.siblings.push(reader.bytes());
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2562
|
+
continue;
|
|
2563
|
+
}
|
|
2564
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2565
|
+
break;
|
|
2438
2566
|
}
|
|
2567
|
+
reader.skipType(tag & 7);
|
|
2439
2568
|
}
|
|
2440
2569
|
return message;
|
|
2441
2570
|
},
|
|
@@ -2488,22 +2617,29 @@ var ProofMinime = {
|
|
|
2488
2617
|
return writer;
|
|
2489
2618
|
},
|
|
2490
2619
|
decode(input, length) {
|
|
2491
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2620
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2492
2621
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2493
2622
|
const message = createBaseProofMinime();
|
|
2494
2623
|
while (reader.pos < end) {
|
|
2495
2624
|
const tag = reader.uint32();
|
|
2496
2625
|
switch (tag >>> 3) {
|
|
2497
2626
|
case 1:
|
|
2627
|
+
if (tag != 10) {
|
|
2628
|
+
break;
|
|
2629
|
+
}
|
|
2498
2630
|
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2499
|
-
|
|
2631
|
+
continue;
|
|
2500
2632
|
case 2:
|
|
2633
|
+
if (tag != 18) {
|
|
2634
|
+
break;
|
|
2635
|
+
}
|
|
2501
2636
|
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2502
|
-
|
|
2503
|
-
default:
|
|
2504
|
-
reader.skipType(tag & 7);
|
|
2505
|
-
break;
|
|
2637
|
+
continue;
|
|
2506
2638
|
}
|
|
2639
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2640
|
+
break;
|
|
2641
|
+
}
|
|
2642
|
+
reader.skipType(tag & 7);
|
|
2507
2643
|
}
|
|
2508
2644
|
return message;
|
|
2509
2645
|
},
|
|
@@ -2546,25 +2682,35 @@ var ProofCA = {
|
|
|
2546
2682
|
return writer;
|
|
2547
2683
|
},
|
|
2548
2684
|
decode(input, length) {
|
|
2549
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2685
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2550
2686
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2551
2687
|
const message = createBaseProofCA();
|
|
2552
2688
|
while (reader.pos < end) {
|
|
2553
2689
|
const tag = reader.uint32();
|
|
2554
2690
|
switch (tag >>> 3) {
|
|
2555
2691
|
case 1:
|
|
2692
|
+
if (tag != 8) {
|
|
2693
|
+
break;
|
|
2694
|
+
}
|
|
2556
2695
|
message.type = reader.int32();
|
|
2557
|
-
|
|
2696
|
+
continue;
|
|
2558
2697
|
case 2:
|
|
2698
|
+
if (tag != 18) {
|
|
2699
|
+
break;
|
|
2700
|
+
}
|
|
2559
2701
|
message.bundle = CAbundle.decode(reader, reader.uint32());
|
|
2560
|
-
|
|
2702
|
+
continue;
|
|
2561
2703
|
case 3:
|
|
2704
|
+
if (tag != 26) {
|
|
2705
|
+
break;
|
|
2706
|
+
}
|
|
2562
2707
|
message.signature = reader.bytes();
|
|
2563
|
-
|
|
2564
|
-
default:
|
|
2565
|
-
reader.skipType(tag & 7);
|
|
2566
|
-
break;
|
|
2708
|
+
continue;
|
|
2567
2709
|
}
|
|
2710
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2711
|
+
break;
|
|
2712
|
+
}
|
|
2713
|
+
reader.skipType(tag & 7);
|
|
2568
2714
|
}
|
|
2569
2715
|
return message;
|
|
2570
2716
|
},
|
|
@@ -2607,22 +2753,29 @@ var CAbundle = {
|
|
|
2607
2753
|
return writer;
|
|
2608
2754
|
},
|
|
2609
2755
|
decode(input, length) {
|
|
2610
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2756
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2611
2757
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2612
2758
|
const message = createBaseCAbundle();
|
|
2613
2759
|
while (reader.pos < end) {
|
|
2614
2760
|
const tag = reader.uint32();
|
|
2615
2761
|
switch (tag >>> 3) {
|
|
2616
2762
|
case 1:
|
|
2763
|
+
if (tag != 10) {
|
|
2764
|
+
break;
|
|
2765
|
+
}
|
|
2617
2766
|
message.processId = reader.bytes();
|
|
2618
|
-
|
|
2767
|
+
continue;
|
|
2619
2768
|
case 2:
|
|
2769
|
+
if (tag != 18) {
|
|
2770
|
+
break;
|
|
2771
|
+
}
|
|
2620
2772
|
message.address = reader.bytes();
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2773
|
+
continue;
|
|
2774
|
+
}
|
|
2775
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2776
|
+
break;
|
|
2625
2777
|
}
|
|
2778
|
+
reader.skipType(tag & 7);
|
|
2626
2779
|
}
|
|
2627
2780
|
return message;
|
|
2628
2781
|
},
|
|
@@ -2649,7 +2802,13 @@ var CAbundle = {
|
|
|
2649
2802
|
}
|
|
2650
2803
|
};
|
|
2651
2804
|
function createBaseProofArbo() {
|
|
2652
|
-
return {
|
|
2805
|
+
return {
|
|
2806
|
+
type: 0,
|
|
2807
|
+
siblings: new Uint8Array(),
|
|
2808
|
+
leafWeight: new Uint8Array(),
|
|
2809
|
+
keyType: 0,
|
|
2810
|
+
votingWeight: new Uint8Array()
|
|
2811
|
+
};
|
|
2653
2812
|
}
|
|
2654
2813
|
var ProofArbo = {
|
|
2655
2814
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
@@ -2659,37 +2818,59 @@ var ProofArbo = {
|
|
|
2659
2818
|
if (message.siblings.length !== 0) {
|
|
2660
2819
|
writer.uint32(18).bytes(message.siblings);
|
|
2661
2820
|
}
|
|
2662
|
-
if (message.
|
|
2663
|
-
writer.uint32(26).bytes(message.
|
|
2821
|
+
if (message.leafWeight.length !== 0) {
|
|
2822
|
+
writer.uint32(26).bytes(message.leafWeight);
|
|
2664
2823
|
}
|
|
2665
2824
|
if (message.keyType !== 0) {
|
|
2666
2825
|
writer.uint32(32).int32(message.keyType);
|
|
2667
2826
|
}
|
|
2827
|
+
if (message.votingWeight.length !== 0) {
|
|
2828
|
+
writer.uint32(42).bytes(message.votingWeight);
|
|
2829
|
+
}
|
|
2668
2830
|
return writer;
|
|
2669
2831
|
},
|
|
2670
2832
|
decode(input, length) {
|
|
2671
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2833
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2672
2834
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2673
2835
|
const message = createBaseProofArbo();
|
|
2674
2836
|
while (reader.pos < end) {
|
|
2675
2837
|
const tag = reader.uint32();
|
|
2676
2838
|
switch (tag >>> 3) {
|
|
2677
2839
|
case 1:
|
|
2840
|
+
if (tag != 8) {
|
|
2841
|
+
break;
|
|
2842
|
+
}
|
|
2678
2843
|
message.type = reader.int32();
|
|
2679
|
-
|
|
2844
|
+
continue;
|
|
2680
2845
|
case 2:
|
|
2846
|
+
if (tag != 18) {
|
|
2847
|
+
break;
|
|
2848
|
+
}
|
|
2681
2849
|
message.siblings = reader.bytes();
|
|
2682
|
-
|
|
2850
|
+
continue;
|
|
2683
2851
|
case 3:
|
|
2684
|
-
|
|
2685
|
-
|
|
2852
|
+
if (tag != 26) {
|
|
2853
|
+
break;
|
|
2854
|
+
}
|
|
2855
|
+
message.leafWeight = reader.bytes();
|
|
2856
|
+
continue;
|
|
2686
2857
|
case 4:
|
|
2858
|
+
if (tag != 32) {
|
|
2859
|
+
break;
|
|
2860
|
+
}
|
|
2687
2861
|
message.keyType = reader.int32();
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2862
|
+
continue;
|
|
2863
|
+
case 5:
|
|
2864
|
+
if (tag != 42) {
|
|
2865
|
+
break;
|
|
2866
|
+
}
|
|
2867
|
+
message.votingWeight = reader.bytes();
|
|
2868
|
+
continue;
|
|
2692
2869
|
}
|
|
2870
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2871
|
+
break;
|
|
2872
|
+
}
|
|
2873
|
+
reader.skipType(tag & 7);
|
|
2693
2874
|
}
|
|
2694
2875
|
return message;
|
|
2695
2876
|
},
|
|
@@ -2697,16 +2878,20 @@ var ProofArbo = {
|
|
|
2697
2878
|
return {
|
|
2698
2879
|
type: isSet(object.type) ? proofArbo_TypeFromJSON(object.type) : 0,
|
|
2699
2880
|
siblings: isSet(object.siblings) ? bytesFromBase64(object.siblings) : new Uint8Array(),
|
|
2700
|
-
|
|
2701
|
-
keyType: isSet(object.keyType) ? proofArbo_KeyTypeFromJSON(object.keyType) : 0
|
|
2881
|
+
leafWeight: isSet(object.leafWeight) ? bytesFromBase64(object.leafWeight) : new Uint8Array(),
|
|
2882
|
+
keyType: isSet(object.keyType) ? proofArbo_KeyTypeFromJSON(object.keyType) : 0,
|
|
2883
|
+
votingWeight: isSet(object.votingWeight) ? bytesFromBase64(object.votingWeight) : new Uint8Array()
|
|
2702
2884
|
};
|
|
2703
2885
|
},
|
|
2704
2886
|
toJSON(message) {
|
|
2705
2887
|
const obj = {};
|
|
2706
2888
|
message.type !== void 0 && (obj.type = proofArbo_TypeToJSON(message.type));
|
|
2707
2889
|
message.siblings !== void 0 && (obj.siblings = base64FromBytes(message.siblings !== void 0 ? message.siblings : new Uint8Array()));
|
|
2708
|
-
message.
|
|
2890
|
+
message.leafWeight !== void 0 && (obj.leafWeight = base64FromBytes(message.leafWeight !== void 0 ? message.leafWeight : new Uint8Array()));
|
|
2709
2891
|
message.keyType !== void 0 && (obj.keyType = proofArbo_KeyTypeToJSON(message.keyType));
|
|
2892
|
+
message.votingWeight !== void 0 && (obj.votingWeight = base64FromBytes(
|
|
2893
|
+
message.votingWeight !== void 0 ? message.votingWeight : new Uint8Array()
|
|
2894
|
+
));
|
|
2710
2895
|
return obj;
|
|
2711
2896
|
},
|
|
2712
2897
|
create(base) {
|
|
@@ -2716,8 +2901,9 @@ var ProofArbo = {
|
|
|
2716
2901
|
const message = createBaseProofArbo();
|
|
2717
2902
|
message.type = object.type ?? 0;
|
|
2718
2903
|
message.siblings = object.siblings ?? new Uint8Array();
|
|
2719
|
-
message.
|
|
2904
|
+
message.leafWeight = object.leafWeight ?? new Uint8Array();
|
|
2720
2905
|
message.keyType = object.keyType ?? 0;
|
|
2906
|
+
message.votingWeight = object.votingWeight ?? new Uint8Array();
|
|
2721
2907
|
return message;
|
|
2722
2908
|
}
|
|
2723
2909
|
};
|
|
@@ -2744,31 +2930,47 @@ var ProofZkSNARK = {
|
|
|
2744
2930
|
return writer;
|
|
2745
2931
|
},
|
|
2746
2932
|
decode(input, length) {
|
|
2747
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
2933
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2748
2934
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2749
2935
|
const message = createBaseProofZkSNARK();
|
|
2750
2936
|
while (reader.pos < end) {
|
|
2751
2937
|
const tag = reader.uint32();
|
|
2752
2938
|
switch (tag >>> 3) {
|
|
2753
2939
|
case 1:
|
|
2940
|
+
if (tag != 8) {
|
|
2941
|
+
break;
|
|
2942
|
+
}
|
|
2754
2943
|
message.circuitParametersIndex = reader.int32();
|
|
2755
|
-
|
|
2944
|
+
continue;
|
|
2756
2945
|
case 2:
|
|
2946
|
+
if (tag != 18) {
|
|
2947
|
+
break;
|
|
2948
|
+
}
|
|
2757
2949
|
message.a.push(reader.string());
|
|
2758
|
-
|
|
2950
|
+
continue;
|
|
2759
2951
|
case 3:
|
|
2952
|
+
if (tag != 26) {
|
|
2953
|
+
break;
|
|
2954
|
+
}
|
|
2760
2955
|
message.b.push(reader.string());
|
|
2761
|
-
|
|
2956
|
+
continue;
|
|
2762
2957
|
case 4:
|
|
2958
|
+
if (tag != 34) {
|
|
2959
|
+
break;
|
|
2960
|
+
}
|
|
2763
2961
|
message.c.push(reader.string());
|
|
2764
|
-
|
|
2962
|
+
continue;
|
|
2765
2963
|
case 5:
|
|
2964
|
+
if (tag != 42) {
|
|
2965
|
+
break;
|
|
2966
|
+
}
|
|
2766
2967
|
message.publicInputs.push(reader.string());
|
|
2767
|
-
|
|
2768
|
-
default:
|
|
2769
|
-
reader.skipType(tag & 7);
|
|
2770
|
-
break;
|
|
2968
|
+
continue;
|
|
2771
2969
|
}
|
|
2970
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
2971
|
+
break;
|
|
2972
|
+
}
|
|
2973
|
+
reader.skipType(tag & 7);
|
|
2772
2974
|
}
|
|
2773
2975
|
return message;
|
|
2774
2976
|
},
|
|
@@ -2842,31 +3044,47 @@ var Account = {
|
|
|
2842
3044
|
return writer;
|
|
2843
3045
|
},
|
|
2844
3046
|
decode(input, length) {
|
|
2845
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3047
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2846
3048
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2847
3049
|
const message = createBaseAccount();
|
|
2848
3050
|
while (reader.pos < end) {
|
|
2849
3051
|
const tag = reader.uint32();
|
|
2850
3052
|
switch (tag >>> 3) {
|
|
2851
3053
|
case 1:
|
|
3054
|
+
if (tag != 8) {
|
|
3055
|
+
break;
|
|
3056
|
+
}
|
|
2852
3057
|
message.balance = longToNumber(reader.uint64());
|
|
2853
|
-
|
|
3058
|
+
continue;
|
|
2854
3059
|
case 2:
|
|
3060
|
+
if (tag != 16) {
|
|
3061
|
+
break;
|
|
3062
|
+
}
|
|
2855
3063
|
message.nonce = reader.uint32();
|
|
2856
|
-
|
|
3064
|
+
continue;
|
|
2857
3065
|
case 3:
|
|
3066
|
+
if (tag != 26) {
|
|
3067
|
+
break;
|
|
3068
|
+
}
|
|
2858
3069
|
message.infoURI = reader.string();
|
|
2859
|
-
|
|
3070
|
+
continue;
|
|
2860
3071
|
case 4:
|
|
3072
|
+
if (tag != 34) {
|
|
3073
|
+
break;
|
|
3074
|
+
}
|
|
2861
3075
|
message.delegateAddrs.push(reader.bytes());
|
|
2862
|
-
|
|
3076
|
+
continue;
|
|
2863
3077
|
case 5:
|
|
3078
|
+
if (tag != 40) {
|
|
3079
|
+
break;
|
|
3080
|
+
}
|
|
2864
3081
|
message.processIndex = reader.uint32();
|
|
2865
|
-
|
|
2866
|
-
default:
|
|
2867
|
-
reader.skipType(tag & 7);
|
|
2868
|
-
break;
|
|
3082
|
+
continue;
|
|
2869
3083
|
}
|
|
3084
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3085
|
+
break;
|
|
3086
|
+
}
|
|
3087
|
+
reader.skipType(tag & 7);
|
|
2870
3088
|
}
|
|
2871
3089
|
return message;
|
|
2872
3090
|
},
|
|
@@ -2919,22 +3137,29 @@ var Treasurer = {
|
|
|
2919
3137
|
return writer;
|
|
2920
3138
|
},
|
|
2921
3139
|
decode(input, length) {
|
|
2922
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3140
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2923
3141
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2924
3142
|
const message = createBaseTreasurer();
|
|
2925
3143
|
while (reader.pos < end) {
|
|
2926
3144
|
const tag = reader.uint32();
|
|
2927
3145
|
switch (tag >>> 3) {
|
|
2928
3146
|
case 1:
|
|
3147
|
+
if (tag != 10) {
|
|
3148
|
+
break;
|
|
3149
|
+
}
|
|
2929
3150
|
message.address = reader.bytes();
|
|
2930
|
-
|
|
3151
|
+
continue;
|
|
2931
3152
|
case 2:
|
|
3153
|
+
if (tag != 16) {
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
2932
3156
|
message.nonce = reader.uint32();
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
3157
|
+
continue;
|
|
3158
|
+
}
|
|
3159
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3160
|
+
break;
|
|
2937
3161
|
}
|
|
3162
|
+
reader.skipType(tag & 7);
|
|
2938
3163
|
}
|
|
2939
3164
|
return message;
|
|
2940
3165
|
},
|
|
@@ -2965,88 +3190,124 @@ function createBaseTx() {
|
|
|
2965
3190
|
}
|
|
2966
3191
|
var Tx = {
|
|
2967
3192
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3193
|
+
switch (message.payload?.$case) {
|
|
3194
|
+
case "vote":
|
|
3195
|
+
VoteEnvelope.encode(message.payload.vote, writer.uint32(10).fork()).ldelim();
|
|
3196
|
+
break;
|
|
3197
|
+
case "newProcess":
|
|
3198
|
+
NewProcessTx.encode(message.payload.newProcess, writer.uint32(18).fork()).ldelim();
|
|
3199
|
+
break;
|
|
3200
|
+
case "admin":
|
|
3201
|
+
AdminTx.encode(message.payload.admin, writer.uint32(26).fork()).ldelim();
|
|
3202
|
+
break;
|
|
3203
|
+
case "setProcess":
|
|
3204
|
+
SetProcessTx.encode(message.payload.setProcess, writer.uint32(34).fork()).ldelim();
|
|
3205
|
+
break;
|
|
3206
|
+
case "registerKey":
|
|
3207
|
+
RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
|
|
3208
|
+
break;
|
|
3209
|
+
case "mintTokens":
|
|
3210
|
+
MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
|
|
3211
|
+
break;
|
|
3212
|
+
case "sendTokens":
|
|
3213
|
+
SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
|
|
3214
|
+
break;
|
|
3215
|
+
case "setTransactionCosts":
|
|
3216
|
+
SetTransactionCostsTx.encode(message.payload.setTransactionCosts, writer.uint32(66).fork()).ldelim();
|
|
3217
|
+
break;
|
|
3218
|
+
case "setAccount":
|
|
3219
|
+
SetAccountTx.encode(message.payload.setAccount, writer.uint32(74).fork()).ldelim();
|
|
3220
|
+
break;
|
|
3221
|
+
case "collectFaucet":
|
|
3222
|
+
CollectFaucetTx.encode(message.payload.collectFaucet, writer.uint32(82).fork()).ldelim();
|
|
3223
|
+
break;
|
|
3224
|
+
case "setKeykeeper":
|
|
3225
|
+
SetKeykeeperTx.encode(message.payload.setKeykeeper, writer.uint32(90).fork()).ldelim();
|
|
3226
|
+
break;
|
|
3000
3227
|
}
|
|
3001
3228
|
return writer;
|
|
3002
3229
|
},
|
|
3003
3230
|
decode(input, length) {
|
|
3004
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3231
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3005
3232
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3006
3233
|
const message = createBaseTx();
|
|
3007
3234
|
while (reader.pos < end) {
|
|
3008
3235
|
const tag = reader.uint32();
|
|
3009
3236
|
switch (tag >>> 3) {
|
|
3010
3237
|
case 1:
|
|
3238
|
+
if (tag != 10) {
|
|
3239
|
+
break;
|
|
3240
|
+
}
|
|
3011
3241
|
message.payload = { $case: "vote", vote: VoteEnvelope.decode(reader, reader.uint32()) };
|
|
3012
|
-
|
|
3242
|
+
continue;
|
|
3013
3243
|
case 2:
|
|
3244
|
+
if (tag != 18) {
|
|
3245
|
+
break;
|
|
3246
|
+
}
|
|
3014
3247
|
message.payload = { $case: "newProcess", newProcess: NewProcessTx.decode(reader, reader.uint32()) };
|
|
3015
|
-
|
|
3248
|
+
continue;
|
|
3016
3249
|
case 3:
|
|
3250
|
+
if (tag != 26) {
|
|
3251
|
+
break;
|
|
3252
|
+
}
|
|
3017
3253
|
message.payload = { $case: "admin", admin: AdminTx.decode(reader, reader.uint32()) };
|
|
3018
|
-
|
|
3254
|
+
continue;
|
|
3019
3255
|
case 4:
|
|
3256
|
+
if (tag != 34) {
|
|
3257
|
+
break;
|
|
3258
|
+
}
|
|
3020
3259
|
message.payload = { $case: "setProcess", setProcess: SetProcessTx.decode(reader, reader.uint32()) };
|
|
3021
|
-
|
|
3260
|
+
continue;
|
|
3022
3261
|
case 5:
|
|
3262
|
+
if (tag != 42) {
|
|
3263
|
+
break;
|
|
3264
|
+
}
|
|
3023
3265
|
message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
|
|
3024
|
-
|
|
3266
|
+
continue;
|
|
3025
3267
|
case 6:
|
|
3268
|
+
if (tag != 50) {
|
|
3269
|
+
break;
|
|
3270
|
+
}
|
|
3026
3271
|
message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.decode(reader, reader.uint32()) };
|
|
3027
|
-
|
|
3272
|
+
continue;
|
|
3028
3273
|
case 7:
|
|
3274
|
+
if (tag != 58) {
|
|
3275
|
+
break;
|
|
3276
|
+
}
|
|
3029
3277
|
message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.decode(reader, reader.uint32()) };
|
|
3030
|
-
|
|
3278
|
+
continue;
|
|
3031
3279
|
case 8:
|
|
3280
|
+
if (tag != 66) {
|
|
3281
|
+
break;
|
|
3282
|
+
}
|
|
3032
3283
|
message.payload = {
|
|
3033
3284
|
$case: "setTransactionCosts",
|
|
3034
3285
|
setTransactionCosts: SetTransactionCostsTx.decode(reader, reader.uint32())
|
|
3035
3286
|
};
|
|
3036
|
-
|
|
3287
|
+
continue;
|
|
3037
3288
|
case 9:
|
|
3289
|
+
if (tag != 74) {
|
|
3290
|
+
break;
|
|
3291
|
+
}
|
|
3038
3292
|
message.payload = { $case: "setAccount", setAccount: SetAccountTx.decode(reader, reader.uint32()) };
|
|
3039
|
-
|
|
3293
|
+
continue;
|
|
3040
3294
|
case 10:
|
|
3295
|
+
if (tag != 82) {
|
|
3296
|
+
break;
|
|
3297
|
+
}
|
|
3041
3298
|
message.payload = { $case: "collectFaucet", collectFaucet: CollectFaucetTx.decode(reader, reader.uint32()) };
|
|
3042
|
-
|
|
3299
|
+
continue;
|
|
3043
3300
|
case 11:
|
|
3301
|
+
if (tag != 90) {
|
|
3302
|
+
break;
|
|
3303
|
+
}
|
|
3044
3304
|
message.payload = { $case: "setKeykeeper", setKeykeeper: SetKeykeeperTx.decode(reader, reader.uint32()) };
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3305
|
+
continue;
|
|
3306
|
+
}
|
|
3307
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3308
|
+
break;
|
|
3049
3309
|
}
|
|
3310
|
+
reader.skipType(tag & 7);
|
|
3050
3311
|
}
|
|
3051
3312
|
return message;
|
|
3052
3313
|
},
|
|
@@ -3137,22 +3398,29 @@ var SignedTx = {
|
|
|
3137
3398
|
return writer;
|
|
3138
3399
|
},
|
|
3139
3400
|
decode(input, length) {
|
|
3140
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3401
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3141
3402
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3142
3403
|
const message = createBaseSignedTx();
|
|
3143
3404
|
while (reader.pos < end) {
|
|
3144
3405
|
const tag = reader.uint32();
|
|
3145
3406
|
switch (tag >>> 3) {
|
|
3146
3407
|
case 1:
|
|
3408
|
+
if (tag != 10) {
|
|
3409
|
+
break;
|
|
3410
|
+
}
|
|
3147
3411
|
message.tx = reader.bytes();
|
|
3148
|
-
|
|
3412
|
+
continue;
|
|
3149
3413
|
case 2:
|
|
3414
|
+
if (tag != 18) {
|
|
3415
|
+
break;
|
|
3416
|
+
}
|
|
3150
3417
|
message.signature = reader.bytes();
|
|
3151
|
-
|
|
3152
|
-
default:
|
|
3153
|
-
reader.skipType(tag & 7);
|
|
3154
|
-
break;
|
|
3418
|
+
continue;
|
|
3155
3419
|
}
|
|
3420
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3421
|
+
break;
|
|
3422
|
+
}
|
|
3423
|
+
reader.skipType(tag & 7);
|
|
3156
3424
|
}
|
|
3157
3425
|
return message;
|
|
3158
3426
|
},
|
|
@@ -3195,25 +3463,35 @@ var NewProcessTx = {
|
|
|
3195
3463
|
return writer;
|
|
3196
3464
|
},
|
|
3197
3465
|
decode(input, length) {
|
|
3198
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3466
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3199
3467
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3200
3468
|
const message = createBaseNewProcessTx();
|
|
3201
3469
|
while (reader.pos < end) {
|
|
3202
3470
|
const tag = reader.uint32();
|
|
3203
3471
|
switch (tag >>> 3) {
|
|
3204
3472
|
case 1:
|
|
3473
|
+
if (tag != 8) {
|
|
3474
|
+
break;
|
|
3475
|
+
}
|
|
3205
3476
|
message.txtype = reader.int32();
|
|
3206
|
-
|
|
3477
|
+
continue;
|
|
3207
3478
|
case 2:
|
|
3479
|
+
if (tag != 16) {
|
|
3480
|
+
break;
|
|
3481
|
+
}
|
|
3208
3482
|
message.nonce = reader.uint32();
|
|
3209
|
-
|
|
3483
|
+
continue;
|
|
3210
3484
|
case 3:
|
|
3485
|
+
if (tag != 26) {
|
|
3486
|
+
break;
|
|
3487
|
+
}
|
|
3211
3488
|
message.process = Process.decode(reader, reader.uint32());
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3489
|
+
continue;
|
|
3490
|
+
}
|
|
3491
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3492
|
+
break;
|
|
3216
3493
|
}
|
|
3494
|
+
reader.skipType(tag & 7);
|
|
3217
3495
|
}
|
|
3218
3496
|
return message;
|
|
3219
3497
|
},
|
|
@@ -3287,43 +3565,71 @@ var SetProcessTx = {
|
|
|
3287
3565
|
return writer;
|
|
3288
3566
|
},
|
|
3289
3567
|
decode(input, length) {
|
|
3290
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3568
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3291
3569
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3292
3570
|
const message = createBaseSetProcessTx();
|
|
3293
3571
|
while (reader.pos < end) {
|
|
3294
3572
|
const tag = reader.uint32();
|
|
3295
3573
|
switch (tag >>> 3) {
|
|
3296
3574
|
case 1:
|
|
3575
|
+
if (tag != 8) {
|
|
3576
|
+
break;
|
|
3577
|
+
}
|
|
3297
3578
|
message.txtype = reader.int32();
|
|
3298
|
-
|
|
3579
|
+
continue;
|
|
3299
3580
|
case 2:
|
|
3581
|
+
if (tag != 16) {
|
|
3582
|
+
break;
|
|
3583
|
+
}
|
|
3300
3584
|
message.nonce = reader.uint32();
|
|
3301
|
-
|
|
3585
|
+
continue;
|
|
3302
3586
|
case 3:
|
|
3587
|
+
if (tag != 26) {
|
|
3588
|
+
break;
|
|
3589
|
+
}
|
|
3303
3590
|
message.processId = reader.bytes();
|
|
3304
|
-
|
|
3591
|
+
continue;
|
|
3305
3592
|
case 4:
|
|
3593
|
+
if (tag != 32) {
|
|
3594
|
+
break;
|
|
3595
|
+
}
|
|
3306
3596
|
message.status = reader.int32();
|
|
3307
|
-
|
|
3597
|
+
continue;
|
|
3308
3598
|
case 5:
|
|
3599
|
+
if (tag != 40) {
|
|
3600
|
+
break;
|
|
3601
|
+
}
|
|
3309
3602
|
message.questionIndex = reader.uint32();
|
|
3310
|
-
|
|
3603
|
+
continue;
|
|
3311
3604
|
case 6:
|
|
3605
|
+
if (tag != 50) {
|
|
3606
|
+
break;
|
|
3607
|
+
}
|
|
3312
3608
|
message.censusRoot = reader.bytes();
|
|
3313
|
-
|
|
3609
|
+
continue;
|
|
3314
3610
|
case 7:
|
|
3611
|
+
if (tag != 58) {
|
|
3612
|
+
break;
|
|
3613
|
+
}
|
|
3315
3614
|
message.censusURI = reader.string();
|
|
3316
|
-
|
|
3615
|
+
continue;
|
|
3317
3616
|
case 8:
|
|
3617
|
+
if (tag != 66) {
|
|
3618
|
+
break;
|
|
3619
|
+
}
|
|
3318
3620
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
3319
|
-
|
|
3621
|
+
continue;
|
|
3320
3622
|
case 9:
|
|
3623
|
+
if (tag != 74) {
|
|
3624
|
+
break;
|
|
3625
|
+
}
|
|
3321
3626
|
message.results = ProcessResult.decode(reader, reader.uint32());
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3627
|
+
continue;
|
|
3628
|
+
}
|
|
3629
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3630
|
+
break;
|
|
3326
3631
|
}
|
|
3632
|
+
reader.skipType(tag & 7);
|
|
3327
3633
|
}
|
|
3328
3634
|
return message;
|
|
3329
3635
|
},
|
|
@@ -3415,43 +3721,71 @@ var AdminTx = {
|
|
|
3415
3721
|
return writer;
|
|
3416
3722
|
},
|
|
3417
3723
|
decode(input, length) {
|
|
3418
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3724
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3419
3725
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3420
3726
|
const message = createBaseAdminTx();
|
|
3421
3727
|
while (reader.pos < end) {
|
|
3422
3728
|
const tag = reader.uint32();
|
|
3423
3729
|
switch (tag >>> 3) {
|
|
3424
3730
|
case 1:
|
|
3731
|
+
if (tag != 8) {
|
|
3732
|
+
break;
|
|
3733
|
+
}
|
|
3425
3734
|
message.txtype = reader.int32();
|
|
3426
|
-
|
|
3735
|
+
continue;
|
|
3427
3736
|
case 2:
|
|
3737
|
+
if (tag != 18) {
|
|
3738
|
+
break;
|
|
3739
|
+
}
|
|
3428
3740
|
message.processId = reader.bytes();
|
|
3429
|
-
|
|
3741
|
+
continue;
|
|
3430
3742
|
case 3:
|
|
3743
|
+
if (tag != 26) {
|
|
3744
|
+
break;
|
|
3745
|
+
}
|
|
3431
3746
|
message.address = reader.bytes();
|
|
3432
|
-
|
|
3747
|
+
continue;
|
|
3433
3748
|
case 5:
|
|
3749
|
+
if (tag != 42) {
|
|
3750
|
+
break;
|
|
3751
|
+
}
|
|
3434
3752
|
message.encryptionPrivateKey = reader.bytes();
|
|
3435
|
-
|
|
3753
|
+
continue;
|
|
3436
3754
|
case 6:
|
|
3755
|
+
if (tag != 50) {
|
|
3756
|
+
break;
|
|
3757
|
+
}
|
|
3437
3758
|
message.encryptionPublicKey = reader.bytes();
|
|
3438
|
-
|
|
3759
|
+
continue;
|
|
3439
3760
|
case 7:
|
|
3761
|
+
if (tag != 56) {
|
|
3762
|
+
break;
|
|
3763
|
+
}
|
|
3440
3764
|
message.keyIndex = reader.uint32();
|
|
3441
|
-
|
|
3765
|
+
continue;
|
|
3442
3766
|
case 8:
|
|
3767
|
+
if (tag != 64) {
|
|
3768
|
+
break;
|
|
3769
|
+
}
|
|
3443
3770
|
message.power = longToNumber(reader.uint64());
|
|
3444
|
-
|
|
3771
|
+
continue;
|
|
3445
3772
|
case 9:
|
|
3773
|
+
if (tag != 74) {
|
|
3774
|
+
break;
|
|
3775
|
+
}
|
|
3446
3776
|
message.publicKey = reader.bytes();
|
|
3447
|
-
|
|
3777
|
+
continue;
|
|
3448
3778
|
case 11:
|
|
3779
|
+
if (tag != 88) {
|
|
3780
|
+
break;
|
|
3781
|
+
}
|
|
3449
3782
|
message.nonce = reader.uint32();
|
|
3450
|
-
|
|
3451
|
-
default:
|
|
3452
|
-
reader.skipType(tag & 7);
|
|
3453
|
-
break;
|
|
3783
|
+
continue;
|
|
3454
3784
|
}
|
|
3785
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3786
|
+
break;
|
|
3787
|
+
}
|
|
3788
|
+
reader.skipType(tag & 7);
|
|
3455
3789
|
}
|
|
3456
3790
|
return message;
|
|
3457
3791
|
},
|
|
@@ -3521,31 +3855,47 @@ var RegisterKeyTx = {
|
|
|
3521
3855
|
return writer;
|
|
3522
3856
|
},
|
|
3523
3857
|
decode(input, length) {
|
|
3524
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3858
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3525
3859
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3526
3860
|
const message = createBaseRegisterKeyTx();
|
|
3527
3861
|
while (reader.pos < end) {
|
|
3528
3862
|
const tag = reader.uint32();
|
|
3529
3863
|
switch (tag >>> 3) {
|
|
3530
3864
|
case 1:
|
|
3865
|
+
if (tag != 8) {
|
|
3866
|
+
break;
|
|
3867
|
+
}
|
|
3531
3868
|
message.nonce = reader.uint32();
|
|
3532
|
-
|
|
3869
|
+
continue;
|
|
3533
3870
|
case 2:
|
|
3871
|
+
if (tag != 18) {
|
|
3872
|
+
break;
|
|
3873
|
+
}
|
|
3534
3874
|
message.processId = reader.bytes();
|
|
3535
|
-
|
|
3875
|
+
continue;
|
|
3536
3876
|
case 3:
|
|
3877
|
+
if (tag != 26) {
|
|
3878
|
+
break;
|
|
3879
|
+
}
|
|
3537
3880
|
message.proof = Proof.decode(reader, reader.uint32());
|
|
3538
|
-
|
|
3881
|
+
continue;
|
|
3539
3882
|
case 4:
|
|
3883
|
+
if (tag != 34) {
|
|
3884
|
+
break;
|
|
3885
|
+
}
|
|
3540
3886
|
message.newKey = reader.bytes();
|
|
3541
|
-
|
|
3887
|
+
continue;
|
|
3542
3888
|
case 5:
|
|
3889
|
+
if (tag != 42) {
|
|
3890
|
+
break;
|
|
3891
|
+
}
|
|
3543
3892
|
message.weight = reader.string();
|
|
3544
|
-
|
|
3545
|
-
default:
|
|
3546
|
-
reader.skipType(tag & 7);
|
|
3547
|
-
break;
|
|
3893
|
+
continue;
|
|
3548
3894
|
}
|
|
3895
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3896
|
+
break;
|
|
3897
|
+
}
|
|
3898
|
+
reader.skipType(tag & 7);
|
|
3549
3899
|
}
|
|
3550
3900
|
return message;
|
|
3551
3901
|
},
|
|
@@ -3600,28 +3950,41 @@ var MintTokensTx = {
|
|
|
3600
3950
|
return writer;
|
|
3601
3951
|
},
|
|
3602
3952
|
decode(input, length) {
|
|
3603
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
3953
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3604
3954
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3605
3955
|
const message = createBaseMintTokensTx();
|
|
3606
3956
|
while (reader.pos < end) {
|
|
3607
3957
|
const tag = reader.uint32();
|
|
3608
3958
|
switch (tag >>> 3) {
|
|
3609
3959
|
case 1:
|
|
3960
|
+
if (tag != 8) {
|
|
3961
|
+
break;
|
|
3962
|
+
}
|
|
3610
3963
|
message.txtype = reader.int32();
|
|
3611
|
-
|
|
3964
|
+
continue;
|
|
3612
3965
|
case 2:
|
|
3966
|
+
if (tag != 16) {
|
|
3967
|
+
break;
|
|
3968
|
+
}
|
|
3613
3969
|
message.nonce = reader.uint32();
|
|
3614
|
-
|
|
3970
|
+
continue;
|
|
3615
3971
|
case 3:
|
|
3972
|
+
if (tag != 26) {
|
|
3973
|
+
break;
|
|
3974
|
+
}
|
|
3616
3975
|
message.to = reader.bytes();
|
|
3617
|
-
|
|
3976
|
+
continue;
|
|
3618
3977
|
case 4:
|
|
3978
|
+
if (tag != 32) {
|
|
3979
|
+
break;
|
|
3980
|
+
}
|
|
3619
3981
|
message.value = longToNumber(reader.uint64());
|
|
3620
|
-
|
|
3621
|
-
default:
|
|
3622
|
-
reader.skipType(tag & 7);
|
|
3623
|
-
break;
|
|
3982
|
+
continue;
|
|
3624
3983
|
}
|
|
3984
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
3985
|
+
break;
|
|
3986
|
+
}
|
|
3987
|
+
reader.skipType(tag & 7);
|
|
3625
3988
|
}
|
|
3626
3989
|
return message;
|
|
3627
3990
|
},
|
|
@@ -3676,31 +4039,47 @@ var SendTokensTx = {
|
|
|
3676
4039
|
return writer;
|
|
3677
4040
|
},
|
|
3678
4041
|
decode(input, length) {
|
|
3679
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4042
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3680
4043
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3681
4044
|
const message = createBaseSendTokensTx();
|
|
3682
4045
|
while (reader.pos < end) {
|
|
3683
4046
|
const tag = reader.uint32();
|
|
3684
4047
|
switch (tag >>> 3) {
|
|
3685
4048
|
case 1:
|
|
4049
|
+
if (tag != 8) {
|
|
4050
|
+
break;
|
|
4051
|
+
}
|
|
3686
4052
|
message.txtype = reader.int32();
|
|
3687
|
-
|
|
4053
|
+
continue;
|
|
3688
4054
|
case 2:
|
|
4055
|
+
if (tag != 16) {
|
|
4056
|
+
break;
|
|
4057
|
+
}
|
|
3689
4058
|
message.nonce = reader.uint32();
|
|
3690
|
-
|
|
4059
|
+
continue;
|
|
3691
4060
|
case 3:
|
|
4061
|
+
if (tag != 26) {
|
|
4062
|
+
break;
|
|
4063
|
+
}
|
|
3692
4064
|
message.from = reader.bytes();
|
|
3693
|
-
|
|
4065
|
+
continue;
|
|
3694
4066
|
case 4:
|
|
4067
|
+
if (tag != 34) {
|
|
4068
|
+
break;
|
|
4069
|
+
}
|
|
3695
4070
|
message.to = reader.bytes();
|
|
3696
|
-
|
|
4071
|
+
continue;
|
|
3697
4072
|
case 5:
|
|
4073
|
+
if (tag != 40) {
|
|
4074
|
+
break;
|
|
4075
|
+
}
|
|
3698
4076
|
message.value = longToNumber(reader.uint64());
|
|
3699
|
-
|
|
3700
|
-
default:
|
|
3701
|
-
reader.skipType(tag & 7);
|
|
3702
|
-
break;
|
|
4077
|
+
continue;
|
|
3703
4078
|
}
|
|
4079
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4080
|
+
break;
|
|
4081
|
+
}
|
|
4082
|
+
reader.skipType(tag & 7);
|
|
3704
4083
|
}
|
|
3705
4084
|
return message;
|
|
3706
4085
|
},
|
|
@@ -3752,25 +4131,35 @@ var SetTransactionCostsTx = {
|
|
|
3752
4131
|
return writer;
|
|
3753
4132
|
},
|
|
3754
4133
|
decode(input, length) {
|
|
3755
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4134
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3756
4135
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3757
4136
|
const message = createBaseSetTransactionCostsTx();
|
|
3758
4137
|
while (reader.pos < end) {
|
|
3759
4138
|
const tag = reader.uint32();
|
|
3760
4139
|
switch (tag >>> 3) {
|
|
3761
4140
|
case 1:
|
|
4141
|
+
if (tag != 8) {
|
|
4142
|
+
break;
|
|
4143
|
+
}
|
|
3762
4144
|
message.txtype = reader.int32();
|
|
3763
|
-
|
|
4145
|
+
continue;
|
|
3764
4146
|
case 2:
|
|
4147
|
+
if (tag != 16) {
|
|
4148
|
+
break;
|
|
4149
|
+
}
|
|
3765
4150
|
message.nonce = reader.uint32();
|
|
3766
|
-
|
|
4151
|
+
continue;
|
|
3767
4152
|
case 3:
|
|
4153
|
+
if (tag != 24) {
|
|
4154
|
+
break;
|
|
4155
|
+
}
|
|
3768
4156
|
message.value = longToNumber(reader.uint64());
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
4157
|
+
continue;
|
|
4158
|
+
}
|
|
4159
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4160
|
+
break;
|
|
3773
4161
|
}
|
|
4162
|
+
reader.skipType(tag & 7);
|
|
3774
4163
|
}
|
|
3775
4164
|
return message;
|
|
3776
4165
|
},
|
|
@@ -3832,34 +4221,53 @@ var SetAccountTx = {
|
|
|
3832
4221
|
return writer;
|
|
3833
4222
|
},
|
|
3834
4223
|
decode(input, length) {
|
|
3835
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4224
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3836
4225
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3837
4226
|
const message = createBaseSetAccountTx();
|
|
3838
4227
|
while (reader.pos < end) {
|
|
3839
4228
|
const tag = reader.uint32();
|
|
3840
4229
|
switch (tag >>> 3) {
|
|
3841
4230
|
case 1:
|
|
4231
|
+
if (tag != 8) {
|
|
4232
|
+
break;
|
|
4233
|
+
}
|
|
3842
4234
|
message.txtype = reader.int32();
|
|
3843
|
-
|
|
4235
|
+
continue;
|
|
3844
4236
|
case 2:
|
|
4237
|
+
if (tag != 16) {
|
|
4238
|
+
break;
|
|
4239
|
+
}
|
|
3845
4240
|
message.nonce = reader.uint32();
|
|
3846
|
-
|
|
4241
|
+
continue;
|
|
3847
4242
|
case 3:
|
|
4243
|
+
if (tag != 26) {
|
|
4244
|
+
break;
|
|
4245
|
+
}
|
|
3848
4246
|
message.infoURI = reader.string();
|
|
3849
|
-
|
|
4247
|
+
continue;
|
|
3850
4248
|
case 4:
|
|
4249
|
+
if (tag != 34) {
|
|
4250
|
+
break;
|
|
4251
|
+
}
|
|
3851
4252
|
message.account = reader.bytes();
|
|
3852
|
-
|
|
4253
|
+
continue;
|
|
3853
4254
|
case 5:
|
|
4255
|
+
if (tag != 42) {
|
|
4256
|
+
break;
|
|
4257
|
+
}
|
|
3854
4258
|
message.faucetPackage = FaucetPackage.decode(reader, reader.uint32());
|
|
3855
|
-
|
|
4259
|
+
continue;
|
|
3856
4260
|
case 6:
|
|
4261
|
+
if (tag != 50) {
|
|
4262
|
+
break;
|
|
4263
|
+
}
|
|
3857
4264
|
message.delegates.push(reader.bytes());
|
|
3858
|
-
|
|
3859
|
-
default:
|
|
3860
|
-
reader.skipType(tag & 7);
|
|
3861
|
-
break;
|
|
4265
|
+
continue;
|
|
3862
4266
|
}
|
|
4267
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4268
|
+
break;
|
|
4269
|
+
}
|
|
4270
|
+
reader.skipType(tag & 7);
|
|
3863
4271
|
}
|
|
3864
4272
|
return message;
|
|
3865
4273
|
},
|
|
@@ -3918,25 +4326,35 @@ var CollectFaucetTx = {
|
|
|
3918
4326
|
return writer;
|
|
3919
4327
|
},
|
|
3920
4328
|
decode(input, length) {
|
|
3921
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4329
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3922
4330
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3923
4331
|
const message = createBaseCollectFaucetTx();
|
|
3924
4332
|
while (reader.pos < end) {
|
|
3925
4333
|
const tag = reader.uint32();
|
|
3926
4334
|
switch (tag >>> 3) {
|
|
3927
4335
|
case 1:
|
|
4336
|
+
if (tag != 8) {
|
|
4337
|
+
break;
|
|
4338
|
+
}
|
|
3928
4339
|
message.txType = reader.int32();
|
|
3929
|
-
|
|
4340
|
+
continue;
|
|
3930
4341
|
case 2:
|
|
4342
|
+
if (tag != 18) {
|
|
4343
|
+
break;
|
|
4344
|
+
}
|
|
3931
4345
|
message.faucetPackage = FaucetPackage.decode(reader, reader.uint32());
|
|
3932
|
-
|
|
4346
|
+
continue;
|
|
3933
4347
|
case 3:
|
|
4348
|
+
if (tag != 24) {
|
|
4349
|
+
break;
|
|
4350
|
+
}
|
|
3934
4351
|
message.nonce = reader.uint32();
|
|
3935
|
-
|
|
3936
|
-
default:
|
|
3937
|
-
reader.skipType(tag & 7);
|
|
3938
|
-
break;
|
|
4352
|
+
continue;
|
|
3939
4353
|
}
|
|
4354
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4355
|
+
break;
|
|
4356
|
+
}
|
|
4357
|
+
reader.skipType(tag & 7);
|
|
3940
4358
|
}
|
|
3941
4359
|
return message;
|
|
3942
4360
|
},
|
|
@@ -3982,25 +4400,35 @@ var FaucetPayload = {
|
|
|
3982
4400
|
return writer;
|
|
3983
4401
|
},
|
|
3984
4402
|
decode(input, length) {
|
|
3985
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4403
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3986
4404
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3987
4405
|
const message = createBaseFaucetPayload();
|
|
3988
4406
|
while (reader.pos < end) {
|
|
3989
4407
|
const tag = reader.uint32();
|
|
3990
4408
|
switch (tag >>> 3) {
|
|
3991
4409
|
case 1:
|
|
4410
|
+
if (tag != 8) {
|
|
4411
|
+
break;
|
|
4412
|
+
}
|
|
3992
4413
|
message.identifier = longToNumber(reader.uint64());
|
|
3993
|
-
|
|
4414
|
+
continue;
|
|
3994
4415
|
case 2:
|
|
4416
|
+
if (tag != 18) {
|
|
4417
|
+
break;
|
|
4418
|
+
}
|
|
3995
4419
|
message.to = reader.bytes();
|
|
3996
|
-
|
|
4420
|
+
continue;
|
|
3997
4421
|
case 3:
|
|
4422
|
+
if (tag != 24) {
|
|
4423
|
+
break;
|
|
4424
|
+
}
|
|
3998
4425
|
message.amount = longToNumber(reader.uint64());
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4426
|
+
continue;
|
|
4427
|
+
}
|
|
4428
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4429
|
+
break;
|
|
4003
4430
|
}
|
|
4431
|
+
reader.skipType(tag & 7);
|
|
4004
4432
|
}
|
|
4005
4433
|
return message;
|
|
4006
4434
|
},
|
|
@@ -4043,22 +4471,29 @@ var FaucetPackage = {
|
|
|
4043
4471
|
return writer;
|
|
4044
4472
|
},
|
|
4045
4473
|
decode(input, length) {
|
|
4046
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4474
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4047
4475
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4048
4476
|
const message = createBaseFaucetPackage();
|
|
4049
4477
|
while (reader.pos < end) {
|
|
4050
4478
|
const tag = reader.uint32();
|
|
4051
4479
|
switch (tag >>> 3) {
|
|
4052
4480
|
case 1:
|
|
4481
|
+
if (tag != 10) {
|
|
4482
|
+
break;
|
|
4483
|
+
}
|
|
4053
4484
|
message.payload = reader.bytes();
|
|
4054
|
-
|
|
4485
|
+
continue;
|
|
4055
4486
|
case 2:
|
|
4487
|
+
if (tag != 18) {
|
|
4488
|
+
break;
|
|
4489
|
+
}
|
|
4056
4490
|
message.signature = reader.bytes();
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4491
|
+
continue;
|
|
4492
|
+
}
|
|
4493
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4494
|
+
break;
|
|
4061
4495
|
}
|
|
4496
|
+
reader.skipType(tag & 7);
|
|
4062
4497
|
}
|
|
4063
4498
|
return message;
|
|
4064
4499
|
},
|
|
@@ -4101,25 +4536,35 @@ var SetKeykeeperTx = {
|
|
|
4101
4536
|
return writer;
|
|
4102
4537
|
},
|
|
4103
4538
|
decode(input, length) {
|
|
4104
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4539
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4105
4540
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4106
4541
|
const message = createBaseSetKeykeeperTx();
|
|
4107
4542
|
while (reader.pos < end) {
|
|
4108
4543
|
const tag = reader.uint32();
|
|
4109
4544
|
switch (tag >>> 3) {
|
|
4110
4545
|
case 1:
|
|
4546
|
+
if (tag != 8) {
|
|
4547
|
+
break;
|
|
4548
|
+
}
|
|
4111
4549
|
message.txtype = reader.int32();
|
|
4112
|
-
|
|
4550
|
+
continue;
|
|
4113
4551
|
case 2:
|
|
4552
|
+
if (tag != 16) {
|
|
4553
|
+
break;
|
|
4554
|
+
}
|
|
4114
4555
|
message.nonce = reader.uint32();
|
|
4115
|
-
|
|
4556
|
+
continue;
|
|
4116
4557
|
case 3:
|
|
4558
|
+
if (tag != 26) {
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4117
4561
|
message.keykeeper = reader.bytes();
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4562
|
+
continue;
|
|
4563
|
+
}
|
|
4564
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4565
|
+
break;
|
|
4122
4566
|
}
|
|
4567
|
+
reader.skipType(tag & 7);
|
|
4123
4568
|
}
|
|
4124
4569
|
return message;
|
|
4125
4570
|
},
|
|
@@ -4175,7 +4620,7 @@ function createBaseProcess() {
|
|
|
4175
4620
|
owner: void 0,
|
|
4176
4621
|
metadata: void 0,
|
|
4177
4622
|
sourceNetworkId: 0,
|
|
4178
|
-
maxCensusSize:
|
|
4623
|
+
maxCensusSize: 0,
|
|
4179
4624
|
rollingCensusRoot: void 0,
|
|
4180
4625
|
rollingCensusSize: void 0,
|
|
4181
4626
|
nullifiersRoot: void 0,
|
|
@@ -4260,7 +4705,7 @@ var Process = {
|
|
|
4260
4705
|
if (message.sourceNetworkId !== 0) {
|
|
4261
4706
|
writer.uint32(216).int32(message.sourceNetworkId);
|
|
4262
4707
|
}
|
|
4263
|
-
if (message.maxCensusSize !==
|
|
4708
|
+
if (message.maxCensusSize !== 0) {
|
|
4264
4709
|
writer.uint32(224).uint64(message.maxCensusSize);
|
|
4265
4710
|
}
|
|
4266
4711
|
if (message.rollingCensusRoot !== void 0) {
|
|
@@ -4281,109 +4726,203 @@ var Process = {
|
|
|
4281
4726
|
return writer;
|
|
4282
4727
|
},
|
|
4283
4728
|
decode(input, length) {
|
|
4284
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
4729
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4285
4730
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4286
4731
|
const message = createBaseProcess();
|
|
4287
4732
|
while (reader.pos < end) {
|
|
4288
4733
|
const tag = reader.uint32();
|
|
4289
4734
|
switch (tag >>> 3) {
|
|
4290
4735
|
case 1:
|
|
4736
|
+
if (tag != 10) {
|
|
4737
|
+
break;
|
|
4738
|
+
}
|
|
4291
4739
|
message.processId = reader.bytes();
|
|
4292
|
-
|
|
4740
|
+
continue;
|
|
4293
4741
|
case 2:
|
|
4742
|
+
if (tag != 18) {
|
|
4743
|
+
break;
|
|
4744
|
+
}
|
|
4294
4745
|
message.entityId = reader.bytes();
|
|
4295
|
-
|
|
4746
|
+
continue;
|
|
4296
4747
|
case 3:
|
|
4748
|
+
if (tag != 24) {
|
|
4749
|
+
break;
|
|
4750
|
+
}
|
|
4297
4751
|
message.startBlock = reader.uint32();
|
|
4298
|
-
|
|
4752
|
+
continue;
|
|
4299
4753
|
case 4:
|
|
4754
|
+
if (tag != 32) {
|
|
4755
|
+
break;
|
|
4756
|
+
}
|
|
4300
4757
|
message.blockCount = reader.uint32();
|
|
4301
|
-
|
|
4758
|
+
continue;
|
|
4302
4759
|
case 5:
|
|
4760
|
+
if (tag != 42) {
|
|
4761
|
+
break;
|
|
4762
|
+
}
|
|
4303
4763
|
message.censusRoot = reader.bytes();
|
|
4304
|
-
|
|
4764
|
+
continue;
|
|
4305
4765
|
case 6:
|
|
4766
|
+
if (tag != 50) {
|
|
4767
|
+
break;
|
|
4768
|
+
}
|
|
4306
4769
|
message.censusURI = reader.string();
|
|
4307
|
-
|
|
4770
|
+
continue;
|
|
4308
4771
|
case 8:
|
|
4772
|
+
if (tag != 66) {
|
|
4773
|
+
break;
|
|
4774
|
+
}
|
|
4309
4775
|
message.encryptionPrivateKeys.push(reader.string());
|
|
4310
|
-
|
|
4776
|
+
continue;
|
|
4311
4777
|
case 9:
|
|
4778
|
+
if (tag != 74) {
|
|
4779
|
+
break;
|
|
4780
|
+
}
|
|
4312
4781
|
message.encryptionPublicKeys.push(reader.string());
|
|
4313
|
-
|
|
4782
|
+
continue;
|
|
4314
4783
|
case 11:
|
|
4784
|
+
if (tag != 88) {
|
|
4785
|
+
break;
|
|
4786
|
+
}
|
|
4315
4787
|
message.keyIndex = reader.uint32();
|
|
4316
|
-
|
|
4788
|
+
continue;
|
|
4317
4789
|
case 12:
|
|
4790
|
+
if (tag != 96) {
|
|
4791
|
+
break;
|
|
4792
|
+
}
|
|
4318
4793
|
message.status = reader.int32();
|
|
4319
|
-
|
|
4794
|
+
continue;
|
|
4320
4795
|
case 13:
|
|
4796
|
+
if (tag != 106) {
|
|
4797
|
+
break;
|
|
4798
|
+
}
|
|
4321
4799
|
message.paramsSignature = reader.bytes();
|
|
4322
|
-
|
|
4800
|
+
continue;
|
|
4323
4801
|
case 14:
|
|
4802
|
+
if (tag != 112) {
|
|
4803
|
+
break;
|
|
4804
|
+
}
|
|
4324
4805
|
message.namespace = reader.uint32();
|
|
4325
|
-
|
|
4806
|
+
continue;
|
|
4326
4807
|
case 15:
|
|
4808
|
+
if (tag != 122) {
|
|
4809
|
+
break;
|
|
4810
|
+
}
|
|
4327
4811
|
message.envelopeType = EnvelopeType.decode(reader, reader.uint32());
|
|
4328
|
-
|
|
4812
|
+
continue;
|
|
4329
4813
|
case 16:
|
|
4814
|
+
if (tag != 130) {
|
|
4815
|
+
break;
|
|
4816
|
+
}
|
|
4330
4817
|
message.mode = ProcessMode.decode(reader, reader.uint32());
|
|
4331
|
-
|
|
4818
|
+
continue;
|
|
4332
4819
|
case 17:
|
|
4820
|
+
if (tag != 136) {
|
|
4821
|
+
break;
|
|
4822
|
+
}
|
|
4333
4823
|
message.questionIndex = reader.uint32();
|
|
4334
|
-
|
|
4824
|
+
continue;
|
|
4335
4825
|
case 18:
|
|
4826
|
+
if (tag != 144) {
|
|
4827
|
+
break;
|
|
4828
|
+
}
|
|
4336
4829
|
message.questionCount = reader.uint32();
|
|
4337
|
-
|
|
4830
|
+
continue;
|
|
4338
4831
|
case 19:
|
|
4832
|
+
if (tag != 154) {
|
|
4833
|
+
break;
|
|
4834
|
+
}
|
|
4339
4835
|
message.voteOptions = ProcessVoteOptions.decode(reader, reader.uint32());
|
|
4340
|
-
|
|
4836
|
+
continue;
|
|
4341
4837
|
case 20:
|
|
4838
|
+
if (tag != 160) {
|
|
4839
|
+
break;
|
|
4840
|
+
}
|
|
4342
4841
|
message.censusOrigin = reader.int32();
|
|
4343
|
-
|
|
4842
|
+
continue;
|
|
4344
4843
|
case 21:
|
|
4844
|
+
if (tag != 170) {
|
|
4845
|
+
break;
|
|
4846
|
+
}
|
|
4345
4847
|
message.results.push(ProcessResult.decode(reader, reader.uint32()));
|
|
4346
|
-
|
|
4848
|
+
continue;
|
|
4347
4849
|
case 22:
|
|
4850
|
+
if (tag != 178) {
|
|
4851
|
+
break;
|
|
4852
|
+
}
|
|
4348
4853
|
message.resultsSignatures.push(reader.bytes());
|
|
4349
|
-
|
|
4854
|
+
continue;
|
|
4350
4855
|
case 23:
|
|
4856
|
+
if (tag != 184) {
|
|
4857
|
+
break;
|
|
4858
|
+
}
|
|
4351
4859
|
message.ethIndexSlot = reader.uint32();
|
|
4352
|
-
|
|
4860
|
+
continue;
|
|
4353
4861
|
case 24:
|
|
4862
|
+
if (tag != 192) {
|
|
4863
|
+
break;
|
|
4864
|
+
}
|
|
4354
4865
|
message.sourceBlockHeight = longToNumber(reader.uint64());
|
|
4355
|
-
|
|
4866
|
+
continue;
|
|
4356
4867
|
case 25:
|
|
4868
|
+
if (tag != 202) {
|
|
4869
|
+
break;
|
|
4870
|
+
}
|
|
4357
4871
|
message.owner = reader.bytes();
|
|
4358
|
-
|
|
4872
|
+
continue;
|
|
4359
4873
|
case 26:
|
|
4874
|
+
if (tag != 210) {
|
|
4875
|
+
break;
|
|
4876
|
+
}
|
|
4360
4877
|
message.metadata = reader.string();
|
|
4361
|
-
|
|
4878
|
+
continue;
|
|
4362
4879
|
case 27:
|
|
4880
|
+
if (tag != 216) {
|
|
4881
|
+
break;
|
|
4882
|
+
}
|
|
4363
4883
|
message.sourceNetworkId = reader.int32();
|
|
4364
|
-
|
|
4884
|
+
continue;
|
|
4365
4885
|
case 28:
|
|
4886
|
+
if (tag != 224) {
|
|
4887
|
+
break;
|
|
4888
|
+
}
|
|
4366
4889
|
message.maxCensusSize = longToNumber(reader.uint64());
|
|
4367
|
-
|
|
4890
|
+
continue;
|
|
4368
4891
|
case 29:
|
|
4892
|
+
if (tag != 234) {
|
|
4893
|
+
break;
|
|
4894
|
+
}
|
|
4369
4895
|
message.rollingCensusRoot = reader.bytes();
|
|
4370
|
-
|
|
4896
|
+
continue;
|
|
4371
4897
|
case 30:
|
|
4898
|
+
if (tag != 240) {
|
|
4899
|
+
break;
|
|
4900
|
+
}
|
|
4372
4901
|
message.rollingCensusSize = longToNumber(reader.uint64());
|
|
4373
|
-
|
|
4902
|
+
continue;
|
|
4374
4903
|
case 31:
|
|
4904
|
+
if (tag != 250) {
|
|
4905
|
+
break;
|
|
4906
|
+
}
|
|
4375
4907
|
message.nullifiersRoot = reader.bytes();
|
|
4376
|
-
|
|
4908
|
+
continue;
|
|
4377
4909
|
case 32:
|
|
4910
|
+
if (tag != 258) {
|
|
4911
|
+
break;
|
|
4912
|
+
}
|
|
4378
4913
|
message.sourceNetworkContractAddr = reader.bytes();
|
|
4379
|
-
|
|
4914
|
+
continue;
|
|
4380
4915
|
case 33:
|
|
4916
|
+
if (tag != 264) {
|
|
4917
|
+
break;
|
|
4918
|
+
}
|
|
4381
4919
|
message.tokenDecimals = reader.uint32();
|
|
4382
|
-
|
|
4383
|
-
default:
|
|
4384
|
-
reader.skipType(tag & 7);
|
|
4385
|
-
break;
|
|
4920
|
+
continue;
|
|
4386
4921
|
}
|
|
4922
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
4923
|
+
break;
|
|
4924
|
+
}
|
|
4925
|
+
reader.skipType(tag & 7);
|
|
4387
4926
|
}
|
|
4388
4927
|
return message;
|
|
4389
4928
|
},
|
|
@@ -4414,7 +4953,7 @@ var Process = {
|
|
|
4414
4953
|
owner: isSet(object.owner) ? bytesFromBase64(object.owner) : void 0,
|
|
4415
4954
|
metadata: isSet(object.metadata) ? String(object.metadata) : void 0,
|
|
4416
4955
|
sourceNetworkId: isSet(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
|
|
4417
|
-
maxCensusSize: isSet(object.maxCensusSize) ? Number(object.maxCensusSize) :
|
|
4956
|
+
maxCensusSize: isSet(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
|
|
4418
4957
|
rollingCensusRoot: isSet(object.rollingCensusRoot) ? bytesFromBase64(object.rollingCensusRoot) : void 0,
|
|
4419
4958
|
rollingCensusSize: isSet(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
|
|
4420
4959
|
nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
|
|
@@ -4505,7 +5044,7 @@ var Process = {
|
|
|
4505
5044
|
message.owner = object.owner ?? void 0;
|
|
4506
5045
|
message.metadata = object.metadata ?? void 0;
|
|
4507
5046
|
message.sourceNetworkId = object.sourceNetworkId ?? 0;
|
|
4508
|
-
message.maxCensusSize = object.maxCensusSize ??
|
|
5047
|
+
message.maxCensusSize = object.maxCensusSize ?? 0;
|
|
4509
5048
|
message.rollingCensusRoot = object.rollingCensusRoot ?? void 0;
|
|
4510
5049
|
message.rollingCensusSize = object.rollingCensusSize ?? void 0;
|
|
4511
5050
|
message.nullifiersRoot = object.nullifiersRoot ?? void 0;
|
|
@@ -4537,31 +5076,47 @@ var EnvelopeType = {
|
|
|
4537
5076
|
return writer;
|
|
4538
5077
|
},
|
|
4539
5078
|
decode(input, length) {
|
|
4540
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5079
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4541
5080
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4542
5081
|
const message = createBaseEnvelopeType();
|
|
4543
5082
|
while (reader.pos < end) {
|
|
4544
5083
|
const tag = reader.uint32();
|
|
4545
5084
|
switch (tag >>> 3) {
|
|
4546
5085
|
case 1:
|
|
5086
|
+
if (tag != 8) {
|
|
5087
|
+
break;
|
|
5088
|
+
}
|
|
4547
5089
|
message.serial = reader.bool();
|
|
4548
|
-
|
|
5090
|
+
continue;
|
|
4549
5091
|
case 2:
|
|
5092
|
+
if (tag != 16) {
|
|
5093
|
+
break;
|
|
5094
|
+
}
|
|
4550
5095
|
message.anonymous = reader.bool();
|
|
4551
|
-
|
|
5096
|
+
continue;
|
|
4552
5097
|
case 3:
|
|
5098
|
+
if (tag != 24) {
|
|
5099
|
+
break;
|
|
5100
|
+
}
|
|
4553
5101
|
message.encryptedVotes = reader.bool();
|
|
4554
|
-
|
|
5102
|
+
continue;
|
|
4555
5103
|
case 4:
|
|
5104
|
+
if (tag != 32) {
|
|
5105
|
+
break;
|
|
5106
|
+
}
|
|
4556
5107
|
message.uniqueValues = reader.bool();
|
|
4557
|
-
|
|
5108
|
+
continue;
|
|
4558
5109
|
case 5:
|
|
5110
|
+
if (tag != 40) {
|
|
5111
|
+
break;
|
|
5112
|
+
}
|
|
4559
5113
|
message.costFromWeight = reader.bool();
|
|
4560
|
-
|
|
4561
|
-
default:
|
|
4562
|
-
reader.skipType(tag & 7);
|
|
4563
|
-
break;
|
|
5114
|
+
continue;
|
|
4564
5115
|
}
|
|
5116
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5117
|
+
break;
|
|
5118
|
+
}
|
|
5119
|
+
reader.skipType(tag & 7);
|
|
4565
5120
|
}
|
|
4566
5121
|
return message;
|
|
4567
5122
|
},
|
|
@@ -4619,31 +5174,47 @@ var ProcessMode = {
|
|
|
4619
5174
|
return writer;
|
|
4620
5175
|
},
|
|
4621
5176
|
decode(input, length) {
|
|
4622
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5177
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4623
5178
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4624
5179
|
const message = createBaseProcessMode();
|
|
4625
5180
|
while (reader.pos < end) {
|
|
4626
5181
|
const tag = reader.uint32();
|
|
4627
5182
|
switch (tag >>> 3) {
|
|
4628
5183
|
case 1:
|
|
5184
|
+
if (tag != 8) {
|
|
5185
|
+
break;
|
|
5186
|
+
}
|
|
4629
5187
|
message.autoStart = reader.bool();
|
|
4630
|
-
|
|
5188
|
+
continue;
|
|
4631
5189
|
case 2:
|
|
5190
|
+
if (tag != 16) {
|
|
5191
|
+
break;
|
|
5192
|
+
}
|
|
4632
5193
|
message.interruptible = reader.bool();
|
|
4633
|
-
|
|
5194
|
+
continue;
|
|
4634
5195
|
case 3:
|
|
5196
|
+
if (tag != 24) {
|
|
5197
|
+
break;
|
|
5198
|
+
}
|
|
4635
5199
|
message.dynamicCensus = reader.bool();
|
|
4636
|
-
|
|
5200
|
+
continue;
|
|
4637
5201
|
case 4:
|
|
5202
|
+
if (tag != 32) {
|
|
5203
|
+
break;
|
|
5204
|
+
}
|
|
4638
5205
|
message.encryptedMetaData = reader.bool();
|
|
4639
|
-
|
|
5206
|
+
continue;
|
|
4640
5207
|
case 5:
|
|
5208
|
+
if (tag != 40) {
|
|
5209
|
+
break;
|
|
5210
|
+
}
|
|
4641
5211
|
message.preRegister = reader.bool();
|
|
4642
|
-
|
|
4643
|
-
default:
|
|
4644
|
-
reader.skipType(tag & 7);
|
|
4645
|
-
break;
|
|
5212
|
+
continue;
|
|
4646
5213
|
}
|
|
5214
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5215
|
+
break;
|
|
5216
|
+
}
|
|
5217
|
+
reader.skipType(tag & 7);
|
|
4647
5218
|
}
|
|
4648
5219
|
return message;
|
|
4649
5220
|
},
|
|
@@ -4701,31 +5272,47 @@ var ProcessVoteOptions = {
|
|
|
4701
5272
|
return writer;
|
|
4702
5273
|
},
|
|
4703
5274
|
decode(input, length) {
|
|
4704
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5275
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4705
5276
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4706
5277
|
const message = createBaseProcessVoteOptions();
|
|
4707
5278
|
while (reader.pos < end) {
|
|
4708
5279
|
const tag = reader.uint32();
|
|
4709
5280
|
switch (tag >>> 3) {
|
|
4710
5281
|
case 1:
|
|
5282
|
+
if (tag != 8) {
|
|
5283
|
+
break;
|
|
5284
|
+
}
|
|
4711
5285
|
message.maxCount = reader.uint32();
|
|
4712
|
-
|
|
5286
|
+
continue;
|
|
4713
5287
|
case 2:
|
|
5288
|
+
if (tag != 16) {
|
|
5289
|
+
break;
|
|
5290
|
+
}
|
|
4714
5291
|
message.maxValue = reader.uint32();
|
|
4715
|
-
|
|
5292
|
+
continue;
|
|
4716
5293
|
case 3:
|
|
5294
|
+
if (tag != 24) {
|
|
5295
|
+
break;
|
|
5296
|
+
}
|
|
4717
5297
|
message.maxVoteOverwrites = reader.uint32();
|
|
4718
|
-
|
|
5298
|
+
continue;
|
|
4719
5299
|
case 4:
|
|
5300
|
+
if (tag != 32) {
|
|
5301
|
+
break;
|
|
5302
|
+
}
|
|
4720
5303
|
message.maxTotalCost = reader.uint32();
|
|
4721
|
-
|
|
5304
|
+
continue;
|
|
4722
5305
|
case 5:
|
|
5306
|
+
if (tag != 40) {
|
|
5307
|
+
break;
|
|
5308
|
+
}
|
|
4723
5309
|
message.costExponent = reader.uint32();
|
|
4724
|
-
|
|
4725
|
-
default:
|
|
4726
|
-
reader.skipType(tag & 7);
|
|
4727
|
-
break;
|
|
5310
|
+
continue;
|
|
4728
5311
|
}
|
|
5312
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5313
|
+
break;
|
|
5314
|
+
}
|
|
5315
|
+
reader.skipType(tag & 7);
|
|
4729
5316
|
}
|
|
4730
5317
|
return message;
|
|
4731
5318
|
},
|
|
@@ -4771,19 +5358,23 @@ var OracleList = {
|
|
|
4771
5358
|
return writer;
|
|
4772
5359
|
},
|
|
4773
5360
|
decode(input, length) {
|
|
4774
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5361
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4775
5362
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4776
5363
|
const message = createBaseOracleList();
|
|
4777
5364
|
while (reader.pos < end) {
|
|
4778
5365
|
const tag = reader.uint32();
|
|
4779
5366
|
switch (tag >>> 3) {
|
|
4780
5367
|
case 1:
|
|
5368
|
+
if (tag != 10) {
|
|
5369
|
+
break;
|
|
5370
|
+
}
|
|
4781
5371
|
message.oracles.push(reader.bytes());
|
|
4782
|
-
|
|
4783
|
-
default:
|
|
4784
|
-
reader.skipType(tag & 7);
|
|
4785
|
-
break;
|
|
5372
|
+
continue;
|
|
4786
5373
|
}
|
|
5374
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5375
|
+
break;
|
|
5376
|
+
}
|
|
5377
|
+
reader.skipType(tag & 7);
|
|
4787
5378
|
}
|
|
4788
5379
|
return message;
|
|
4789
5380
|
},
|
|
@@ -4819,19 +5410,23 @@ var ValidatorList = {
|
|
|
4819
5410
|
return writer;
|
|
4820
5411
|
},
|
|
4821
5412
|
decode(input, length) {
|
|
4822
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5413
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4823
5414
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4824
5415
|
const message = createBaseValidatorList();
|
|
4825
5416
|
while (reader.pos < end) {
|
|
4826
5417
|
const tag = reader.uint32();
|
|
4827
5418
|
switch (tag >>> 3) {
|
|
4828
5419
|
case 1:
|
|
5420
|
+
if (tag != 10) {
|
|
5421
|
+
break;
|
|
5422
|
+
}
|
|
4829
5423
|
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
5424
|
+
continue;
|
|
5425
|
+
}
|
|
5426
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5427
|
+
break;
|
|
4834
5428
|
}
|
|
5429
|
+
reader.skipType(tag & 7);
|
|
4835
5430
|
}
|
|
4836
5431
|
return message;
|
|
4837
5432
|
},
|
|
@@ -4859,7 +5454,7 @@ var ValidatorList = {
|
|
|
4859
5454
|
}
|
|
4860
5455
|
};
|
|
4861
5456
|
function createBaseValidator() {
|
|
4862
|
-
return { address: new Uint8Array(), pubKey: new Uint8Array(), power: 0, name: "" };
|
|
5457
|
+
return { address: new Uint8Array(), pubKey: new Uint8Array(), power: 0, name: "", keyIndex: 0 };
|
|
4863
5458
|
}
|
|
4864
5459
|
var Validator = {
|
|
4865
5460
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
@@ -4875,31 +5470,53 @@ var Validator = {
|
|
|
4875
5470
|
if (message.name !== "") {
|
|
4876
5471
|
writer.uint32(34).string(message.name);
|
|
4877
5472
|
}
|
|
5473
|
+
if (message.keyIndex !== 0) {
|
|
5474
|
+
writer.uint32(40).uint32(message.keyIndex);
|
|
5475
|
+
}
|
|
4878
5476
|
return writer;
|
|
4879
5477
|
},
|
|
4880
5478
|
decode(input, length) {
|
|
4881
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5479
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4882
5480
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4883
5481
|
const message = createBaseValidator();
|
|
4884
5482
|
while (reader.pos < end) {
|
|
4885
5483
|
const tag = reader.uint32();
|
|
4886
5484
|
switch (tag >>> 3) {
|
|
4887
5485
|
case 1:
|
|
5486
|
+
if (tag != 10) {
|
|
5487
|
+
break;
|
|
5488
|
+
}
|
|
4888
5489
|
message.address = reader.bytes();
|
|
4889
|
-
|
|
5490
|
+
continue;
|
|
4890
5491
|
case 2:
|
|
5492
|
+
if (tag != 18) {
|
|
5493
|
+
break;
|
|
5494
|
+
}
|
|
4891
5495
|
message.pubKey = reader.bytes();
|
|
4892
|
-
|
|
5496
|
+
continue;
|
|
4893
5497
|
case 3:
|
|
5498
|
+
if (tag != 24) {
|
|
5499
|
+
break;
|
|
5500
|
+
}
|
|
4894
5501
|
message.power = longToNumber(reader.uint64());
|
|
4895
|
-
|
|
5502
|
+
continue;
|
|
4896
5503
|
case 4:
|
|
5504
|
+
if (tag != 34) {
|
|
5505
|
+
break;
|
|
5506
|
+
}
|
|
4897
5507
|
message.name = reader.string();
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
5508
|
+
continue;
|
|
5509
|
+
case 5:
|
|
5510
|
+
if (tag != 40) {
|
|
5511
|
+
break;
|
|
5512
|
+
}
|
|
5513
|
+
message.keyIndex = reader.uint32();
|
|
5514
|
+
continue;
|
|
5515
|
+
}
|
|
5516
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5517
|
+
break;
|
|
4902
5518
|
}
|
|
5519
|
+
reader.skipType(tag & 7);
|
|
4903
5520
|
}
|
|
4904
5521
|
return message;
|
|
4905
5522
|
},
|
|
@@ -4908,7 +5525,8 @@ var Validator = {
|
|
|
4908
5525
|
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(),
|
|
4909
5526
|
pubKey: isSet(object.pubKey) ? bytesFromBase64(object.pubKey) : new Uint8Array(),
|
|
4910
5527
|
power: isSet(object.power) ? Number(object.power) : 0,
|
|
4911
|
-
name: isSet(object.name) ? String(object.name) : ""
|
|
5528
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
5529
|
+
keyIndex: isSet(object.keyIndex) ? Number(object.keyIndex) : 0
|
|
4912
5530
|
};
|
|
4913
5531
|
},
|
|
4914
5532
|
toJSON(message) {
|
|
@@ -4917,6 +5535,7 @@ var Validator = {
|
|
|
4917
5535
|
message.pubKey !== void 0 && (obj.pubKey = base64FromBytes(message.pubKey !== void 0 ? message.pubKey : new Uint8Array()));
|
|
4918
5536
|
message.power !== void 0 && (obj.power = Math.round(message.power));
|
|
4919
5537
|
message.name !== void 0 && (obj.name = message.name);
|
|
5538
|
+
message.keyIndex !== void 0 && (obj.keyIndex = Math.round(message.keyIndex));
|
|
4920
5539
|
return obj;
|
|
4921
5540
|
},
|
|
4922
5541
|
create(base) {
|
|
@@ -4928,6 +5547,7 @@ var Validator = {
|
|
|
4928
5547
|
message.pubKey = object.pubKey ?? new Uint8Array();
|
|
4929
5548
|
message.power = object.power ?? 0;
|
|
4930
5549
|
message.name = object.name ?? "";
|
|
5550
|
+
message.keyIndex = object.keyIndex ?? 0;
|
|
4931
5551
|
return message;
|
|
4932
5552
|
}
|
|
4933
5553
|
};
|
|
@@ -4992,55 +5612,95 @@ var TendermintHeader = {
|
|
|
4992
5612
|
return writer;
|
|
4993
5613
|
},
|
|
4994
5614
|
decode(input, length) {
|
|
4995
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5615
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
4996
5616
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4997
5617
|
const message = createBaseTendermintHeader();
|
|
4998
5618
|
while (reader.pos < end) {
|
|
4999
5619
|
const tag = reader.uint32();
|
|
5000
5620
|
switch (tag >>> 3) {
|
|
5001
5621
|
case 2:
|
|
5622
|
+
if (tag != 18) {
|
|
5623
|
+
break;
|
|
5624
|
+
}
|
|
5002
5625
|
message.chainId = reader.string();
|
|
5003
|
-
|
|
5626
|
+
continue;
|
|
5004
5627
|
case 3:
|
|
5628
|
+
if (tag != 24) {
|
|
5629
|
+
break;
|
|
5630
|
+
}
|
|
5005
5631
|
message.height = longToNumber(reader.int64());
|
|
5006
|
-
|
|
5632
|
+
continue;
|
|
5007
5633
|
case 4:
|
|
5634
|
+
if (tag != 32) {
|
|
5635
|
+
break;
|
|
5636
|
+
}
|
|
5008
5637
|
message.timestamp = longToNumber(reader.int64());
|
|
5009
|
-
|
|
5638
|
+
continue;
|
|
5010
5639
|
case 5:
|
|
5640
|
+
if (tag != 42) {
|
|
5641
|
+
break;
|
|
5642
|
+
}
|
|
5011
5643
|
message.blockID = reader.bytes();
|
|
5012
|
-
|
|
5644
|
+
continue;
|
|
5013
5645
|
case 6:
|
|
5646
|
+
if (tag != 50) {
|
|
5647
|
+
break;
|
|
5648
|
+
}
|
|
5014
5649
|
message.lastCommitHash = reader.bytes();
|
|
5015
|
-
|
|
5650
|
+
continue;
|
|
5016
5651
|
case 7:
|
|
5652
|
+
if (tag != 58) {
|
|
5653
|
+
break;
|
|
5654
|
+
}
|
|
5017
5655
|
message.dataHash = reader.bytes();
|
|
5018
|
-
|
|
5656
|
+
continue;
|
|
5019
5657
|
case 8:
|
|
5658
|
+
if (tag != 66) {
|
|
5659
|
+
break;
|
|
5660
|
+
}
|
|
5020
5661
|
message.validatorsHash = reader.bytes();
|
|
5021
|
-
|
|
5662
|
+
continue;
|
|
5022
5663
|
case 9:
|
|
5664
|
+
if (tag != 74) {
|
|
5665
|
+
break;
|
|
5666
|
+
}
|
|
5023
5667
|
message.nextValidatorsHash = reader.bytes();
|
|
5024
|
-
|
|
5668
|
+
continue;
|
|
5025
5669
|
case 10:
|
|
5670
|
+
if (tag != 82) {
|
|
5671
|
+
break;
|
|
5672
|
+
}
|
|
5026
5673
|
message.consensusHash = reader.bytes();
|
|
5027
|
-
|
|
5674
|
+
continue;
|
|
5028
5675
|
case 11:
|
|
5676
|
+
if (tag != 90) {
|
|
5677
|
+
break;
|
|
5678
|
+
}
|
|
5029
5679
|
message.appHash = reader.bytes();
|
|
5030
|
-
|
|
5680
|
+
continue;
|
|
5031
5681
|
case 12:
|
|
5682
|
+
if (tag != 98) {
|
|
5683
|
+
break;
|
|
5684
|
+
}
|
|
5032
5685
|
message.lastResultsHash = reader.bytes();
|
|
5033
|
-
|
|
5686
|
+
continue;
|
|
5034
5687
|
case 13:
|
|
5688
|
+
if (tag != 106) {
|
|
5689
|
+
break;
|
|
5690
|
+
}
|
|
5035
5691
|
message.evidenceHash = reader.bytes();
|
|
5036
|
-
|
|
5692
|
+
continue;
|
|
5037
5693
|
case 14:
|
|
5694
|
+
if (tag != 114) {
|
|
5695
|
+
break;
|
|
5696
|
+
}
|
|
5038
5697
|
message.proposerAddress = reader.bytes();
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5698
|
+
continue;
|
|
5699
|
+
}
|
|
5700
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5701
|
+
break;
|
|
5043
5702
|
}
|
|
5703
|
+
reader.skipType(tag & 7);
|
|
5044
5704
|
}
|
|
5045
5705
|
return message;
|
|
5046
5706
|
},
|
|
@@ -5136,31 +5796,47 @@ var ProcessResult = {
|
|
|
5136
5796
|
return writer;
|
|
5137
5797
|
},
|
|
5138
5798
|
decode(input, length) {
|
|
5139
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5799
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5140
5800
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5141
5801
|
const message = createBaseProcessResult();
|
|
5142
5802
|
while (reader.pos < end) {
|
|
5143
5803
|
const tag = reader.uint32();
|
|
5144
5804
|
switch (tag >>> 3) {
|
|
5145
5805
|
case 1:
|
|
5806
|
+
if (tag != 10) {
|
|
5807
|
+
break;
|
|
5808
|
+
}
|
|
5146
5809
|
message.votes.push(QuestionResult.decode(reader, reader.uint32()));
|
|
5147
|
-
|
|
5810
|
+
continue;
|
|
5148
5811
|
case 2:
|
|
5812
|
+
if (tag != 18) {
|
|
5813
|
+
break;
|
|
5814
|
+
}
|
|
5149
5815
|
message.processId = reader.bytes();
|
|
5150
|
-
|
|
5816
|
+
continue;
|
|
5151
5817
|
case 3:
|
|
5818
|
+
if (tag != 26) {
|
|
5819
|
+
break;
|
|
5820
|
+
}
|
|
5152
5821
|
message.entityId = reader.bytes();
|
|
5153
|
-
|
|
5822
|
+
continue;
|
|
5154
5823
|
case 4:
|
|
5824
|
+
if (tag != 34) {
|
|
5825
|
+
break;
|
|
5826
|
+
}
|
|
5155
5827
|
message.oracleAddress = reader.bytes();
|
|
5156
|
-
|
|
5828
|
+
continue;
|
|
5157
5829
|
case 5:
|
|
5830
|
+
if (tag != 42) {
|
|
5831
|
+
break;
|
|
5832
|
+
}
|
|
5158
5833
|
message.signature = reader.bytes();
|
|
5159
|
-
|
|
5160
|
-
default:
|
|
5161
|
-
reader.skipType(tag & 7);
|
|
5162
|
-
break;
|
|
5834
|
+
continue;
|
|
5163
5835
|
}
|
|
5836
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5837
|
+
break;
|
|
5838
|
+
}
|
|
5839
|
+
reader.skipType(tag & 7);
|
|
5164
5840
|
}
|
|
5165
5841
|
return message;
|
|
5166
5842
|
},
|
|
@@ -5210,19 +5886,23 @@ var QuestionResult = {
|
|
|
5210
5886
|
return writer;
|
|
5211
5887
|
},
|
|
5212
5888
|
decode(input, length) {
|
|
5213
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5889
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5214
5890
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5215
5891
|
const message = createBaseQuestionResult();
|
|
5216
5892
|
while (reader.pos < end) {
|
|
5217
5893
|
const tag = reader.uint32();
|
|
5218
5894
|
switch (tag >>> 3) {
|
|
5219
5895
|
case 1:
|
|
5896
|
+
if (tag != 10) {
|
|
5897
|
+
break;
|
|
5898
|
+
}
|
|
5220
5899
|
message.question.push(reader.bytes());
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5900
|
+
continue;
|
|
5901
|
+
}
|
|
5902
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5903
|
+
break;
|
|
5225
5904
|
}
|
|
5905
|
+
reader.skipType(tag & 7);
|
|
5226
5906
|
}
|
|
5227
5907
|
return message;
|
|
5228
5908
|
},
|
|
@@ -5258,19 +5938,23 @@ var ProcessEndingList = {
|
|
|
5258
5938
|
return writer;
|
|
5259
5939
|
},
|
|
5260
5940
|
decode(input, length) {
|
|
5261
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5941
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5262
5942
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5263
5943
|
const message = createBaseProcessEndingList();
|
|
5264
5944
|
while (reader.pos < end) {
|
|
5265
5945
|
const tag = reader.uint32();
|
|
5266
5946
|
switch (tag >>> 3) {
|
|
5267
5947
|
case 1:
|
|
5948
|
+
if (tag != 10) {
|
|
5949
|
+
break;
|
|
5950
|
+
}
|
|
5268
5951
|
message.processList.push(reader.bytes());
|
|
5269
|
-
|
|
5270
|
-
default:
|
|
5271
|
-
reader.skipType(tag & 7);
|
|
5272
|
-
break;
|
|
5952
|
+
continue;
|
|
5273
5953
|
}
|
|
5954
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
5955
|
+
break;
|
|
5956
|
+
}
|
|
5957
|
+
reader.skipType(tag & 7);
|
|
5274
5958
|
}
|
|
5275
5959
|
return message;
|
|
5276
5960
|
},
|
|
@@ -5308,19 +5992,23 @@ var StoredKeys = {
|
|
|
5308
5992
|
return writer;
|
|
5309
5993
|
},
|
|
5310
5994
|
decode(input, length) {
|
|
5311
|
-
const reader = input instanceof import_minimal.default.Reader ? input :
|
|
5995
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
5312
5996
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5313
5997
|
const message = createBaseStoredKeys();
|
|
5314
5998
|
while (reader.pos < end) {
|
|
5315
5999
|
const tag = reader.uint32();
|
|
5316
6000
|
switch (tag >>> 3) {
|
|
5317
6001
|
case 1:
|
|
6002
|
+
if (tag != 10) {
|
|
6003
|
+
break;
|
|
6004
|
+
}
|
|
5318
6005
|
message.pids.push(reader.bytes());
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
6006
|
+
continue;
|
|
6007
|
+
}
|
|
6008
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
6009
|
+
break;
|
|
5323
6010
|
}
|
|
6011
|
+
reader.skipType(tag & 7);
|
|
5324
6012
|
}
|
|
5325
6013
|
return message;
|
|
5326
6014
|
},
|