@vocdoni/proto 1.15.3 → 1.15.5
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/build/js/client-store/index.js +51 -71
- package/build/js/client-store/index.mjs +51 -71
- package/build/js/{index-fe26a63a.d.ts → index-cbd70a7b.d.ts} +722 -1788
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +459 -590
- package/build/js/index.mjs +459 -590
- package/build/js/metadata/index.js +133 -80
- package/build/js/metadata/index.mjs +133 -80
- package/build/js/vochain/index.d.ts +1 -1
- package/build/js/vochain/index.js +287 -447
- package/build/js/vochain/index.mjs +287 -443
- package/package.json +5 -3
package/build/js/index.js
CHANGED
|
@@ -1201,7 +1201,11 @@ var require_reader = __commonJS({
|
|
|
1201
1201
|
this.pos += length;
|
|
1202
1202
|
if (Array.isArray(this.buf))
|
|
1203
1203
|
return this.buf.slice(start, end);
|
|
1204
|
-
|
|
1204
|
+
if (start === end) {
|
|
1205
|
+
var nativeBuffer = util.Buffer;
|
|
1206
|
+
return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
|
|
1207
|
+
}
|
|
1208
|
+
return this._slice.call(this.buf, start, end);
|
|
1205
1209
|
};
|
|
1206
1210
|
Reader.prototype.string = function read_string() {
|
|
1207
1211
|
var bytes = this.bytes();
|
|
@@ -1483,7 +1487,9 @@ var EntityMetadataStore = {
|
|
|
1483
1487
|
return message;
|
|
1484
1488
|
},
|
|
1485
1489
|
fromJSON(object) {
|
|
1486
|
-
return {
|
|
1490
|
+
return {
|
|
1491
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : []
|
|
1492
|
+
};
|
|
1487
1493
|
},
|
|
1488
1494
|
toJSON(message) {
|
|
1489
1495
|
const obj = {};
|
|
@@ -1668,8 +1674,8 @@ var EntityMetadata = {
|
|
|
1668
1674
|
},
|
|
1669
1675
|
fromJSON(object) {
|
|
1670
1676
|
return {
|
|
1671
|
-
version: isSet(object.version) ? String(object.version) : "",
|
|
1672
|
-
languages: Array.isArray(object?.languages) ? object.languages.map((e) => String(e)) : [],
|
|
1677
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1678
|
+
languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
|
|
1673
1679
|
name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
|
|
1674
1680
|
acc[key] = String(value);
|
|
1675
1681
|
return acc;
|
|
@@ -1684,11 +1690,11 @@ var EntityMetadata = {
|
|
|
1684
1690
|
return acc;
|
|
1685
1691
|
}, {}) : {},
|
|
1686
1692
|
media: isSet(object.media) ? EntityMetadata_Media.fromJSON(object.media) : void 0,
|
|
1687
|
-
actions: Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
|
|
1688
|
-
bootEntities: Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1689
|
-
fallbackBootNodeEntities: Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1690
|
-
trustedEntities: Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1691
|
-
censusServiceManagedEntities: Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1693
|
+
actions: globalThis.Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
|
|
1694
|
+
bootEntities: globalThis.Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1695
|
+
fallbackBootNodeEntities: globalThis.Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1696
|
+
trustedEntities: globalThis.Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1697
|
+
censusServiceManagedEntities: globalThis.Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1692
1698
|
meta: isObject(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
1693
1699
|
acc[key] = String(value);
|
|
1694
1700
|
return acc;
|
|
@@ -1771,14 +1777,14 @@ var EntityMetadata = {
|
|
|
1771
1777
|
message.languages = object.languages?.map((e) => e) || [];
|
|
1772
1778
|
message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
|
|
1773
1779
|
if (value !== void 0) {
|
|
1774
|
-
acc[key] = String(value);
|
|
1780
|
+
acc[key] = globalThis.String(value);
|
|
1775
1781
|
}
|
|
1776
1782
|
return acc;
|
|
1777
1783
|
}, {});
|
|
1778
1784
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
1779
1785
|
(acc, [key, value]) => {
|
|
1780
1786
|
if (value !== void 0) {
|
|
1781
|
-
acc[key] = String(value);
|
|
1787
|
+
acc[key] = globalThis.String(value);
|
|
1782
1788
|
}
|
|
1783
1789
|
return acc;
|
|
1784
1790
|
},
|
|
@@ -1787,7 +1793,7 @@ var EntityMetadata = {
|
|
|
1787
1793
|
message.votingProcesses = object.votingProcesses !== void 0 && object.votingProcesses !== null ? EntityMetadata_VotingProcesses.fromPartial(object.votingProcesses) : void 0;
|
|
1788
1794
|
message.newsFeed = Object.entries(object.newsFeed ?? {}).reduce((acc, [key, value]) => {
|
|
1789
1795
|
if (value !== void 0) {
|
|
1790
|
-
acc[key] = String(value);
|
|
1796
|
+
acc[key] = globalThis.String(value);
|
|
1791
1797
|
}
|
|
1792
1798
|
return acc;
|
|
1793
1799
|
}, {});
|
|
@@ -1799,7 +1805,7 @@ var EntityMetadata = {
|
|
|
1799
1805
|
message.censusServiceManagedEntities = object.censusServiceManagedEntities?.map((e) => EntityReference.fromPartial(e)) || [];
|
|
1800
1806
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
1801
1807
|
if (value !== void 0) {
|
|
1802
|
-
acc[key] = String(value);
|
|
1808
|
+
acc[key] = globalThis.String(value);
|
|
1803
1809
|
}
|
|
1804
1810
|
return acc;
|
|
1805
1811
|
}, {});
|
|
@@ -1847,7 +1853,10 @@ var EntityMetadata_NameEntry = {
|
|
|
1847
1853
|
return message;
|
|
1848
1854
|
},
|
|
1849
1855
|
fromJSON(object) {
|
|
1850
|
-
return {
|
|
1856
|
+
return {
|
|
1857
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1858
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
1859
|
+
};
|
|
1851
1860
|
},
|
|
1852
1861
|
toJSON(message) {
|
|
1853
1862
|
const obj = {};
|
|
@@ -1910,7 +1919,10 @@ var EntityMetadata_DescriptionEntry = {
|
|
|
1910
1919
|
return message;
|
|
1911
1920
|
},
|
|
1912
1921
|
fromJSON(object) {
|
|
1913
|
-
return {
|
|
1922
|
+
return {
|
|
1923
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1924
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
1925
|
+
};
|
|
1914
1926
|
},
|
|
1915
1927
|
toJSON(message) {
|
|
1916
1928
|
const obj = {};
|
|
@@ -1974,8 +1986,8 @@ var EntityMetadata_VotingProcesses = {
|
|
|
1974
1986
|
},
|
|
1975
1987
|
fromJSON(object) {
|
|
1976
1988
|
return {
|
|
1977
|
-
active: Array.isArray(object?.active) ? object.active.map((e) => String(e)) : [],
|
|
1978
|
-
ended: Array.isArray(object?.ended) ? object.ended.map((e) => String(e)) : []
|
|
1989
|
+
active: globalThis.Array.isArray(object?.active) ? object.active.map((e) => globalThis.String(e)) : [],
|
|
1990
|
+
ended: globalThis.Array.isArray(object?.ended) ? object.ended.map((e) => globalThis.String(e)) : []
|
|
1979
1991
|
};
|
|
1980
1992
|
},
|
|
1981
1993
|
toJSON(message) {
|
|
@@ -2039,7 +2051,10 @@ var EntityMetadata_NewsFeedEntry = {
|
|
|
2039
2051
|
return message;
|
|
2040
2052
|
},
|
|
2041
2053
|
fromJSON(object) {
|
|
2042
|
-
return {
|
|
2054
|
+
return {
|
|
2055
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2056
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2057
|
+
};
|
|
2043
2058
|
},
|
|
2044
2059
|
toJSON(message) {
|
|
2045
2060
|
const obj = {};
|
|
@@ -2103,8 +2118,8 @@ var EntityMetadata_Media = {
|
|
|
2103
2118
|
},
|
|
2104
2119
|
fromJSON(object) {
|
|
2105
2120
|
return {
|
|
2106
|
-
avatar: isSet(object.avatar) ? String(object.avatar) : "",
|
|
2107
|
-
header: isSet(object.header) ? String(object.header) : ""
|
|
2121
|
+
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
2122
|
+
header: isSet(object.header) ? globalThis.String(object.header) : ""
|
|
2108
2123
|
};
|
|
2109
2124
|
},
|
|
2110
2125
|
toJSON(message) {
|
|
@@ -2208,15 +2223,15 @@ var EntityMetadata_Action = {
|
|
|
2208
2223
|
},
|
|
2209
2224
|
fromJSON(object) {
|
|
2210
2225
|
return {
|
|
2211
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
2212
|
-
actionKey: isSet(object.actionKey) ? String(object.actionKey) : "",
|
|
2226
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
2227
|
+
actionKey: isSet(object.actionKey) ? globalThis.String(object.actionKey) : "",
|
|
2213
2228
|
name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
|
|
2214
2229
|
acc[key] = String(value);
|
|
2215
2230
|
return acc;
|
|
2216
2231
|
}, {}) : {},
|
|
2217
|
-
visible: isSet(object.visible) ? String(object.visible) : "",
|
|
2218
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
2219
|
-
imageSources: Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
|
|
2232
|
+
visible: isSet(object.visible) ? globalThis.String(object.visible) : "",
|
|
2233
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
2234
|
+
imageSources: globalThis.Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
|
|
2220
2235
|
};
|
|
2221
2236
|
},
|
|
2222
2237
|
toJSON(message) {
|
|
@@ -2256,7 +2271,7 @@ var EntityMetadata_Action = {
|
|
|
2256
2271
|
message.actionKey = object.actionKey ?? "";
|
|
2257
2272
|
message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
|
|
2258
2273
|
if (value !== void 0) {
|
|
2259
|
-
acc[key] = String(value);
|
|
2274
|
+
acc[key] = globalThis.String(value);
|
|
2260
2275
|
}
|
|
2261
2276
|
return acc;
|
|
2262
2277
|
}, {});
|
|
@@ -2307,7 +2322,10 @@ var EntityMetadata_Action_NameEntry = {
|
|
|
2307
2322
|
return message;
|
|
2308
2323
|
},
|
|
2309
2324
|
fromJSON(object) {
|
|
2310
|
-
return {
|
|
2325
|
+
return {
|
|
2326
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2327
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2328
|
+
};
|
|
2311
2329
|
},
|
|
2312
2330
|
toJSON(message) {
|
|
2313
2331
|
const obj = {};
|
|
@@ -2401,10 +2419,10 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2401
2419
|
},
|
|
2402
2420
|
fromJSON(object) {
|
|
2403
2421
|
return {
|
|
2404
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
2405
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2406
|
-
orientation: isSet(object.orientation) ? String(object.orientation) : "",
|
|
2407
|
-
overlay: isSet(object.overlay) ? String(object.overlay) : "",
|
|
2422
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
2423
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2424
|
+
orientation: isSet(object.orientation) ? globalThis.String(object.orientation) : "",
|
|
2425
|
+
overlay: isSet(object.overlay) ? globalThis.String(object.overlay) : "",
|
|
2408
2426
|
caption: isObject(object.caption) ? Object.entries(object.caption).reduce((acc, [key, value]) => {
|
|
2409
2427
|
acc[key] = String(value);
|
|
2410
2428
|
return acc;
|
|
@@ -2447,7 +2465,7 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2447
2465
|
message.overlay = object.overlay ?? "";
|
|
2448
2466
|
message.caption = Object.entries(object.caption ?? {}).reduce((acc, [key, value]) => {
|
|
2449
2467
|
if (value !== void 0) {
|
|
2450
|
-
acc[key] = String(value);
|
|
2468
|
+
acc[key] = globalThis.String(value);
|
|
2451
2469
|
}
|
|
2452
2470
|
return acc;
|
|
2453
2471
|
}, {});
|
|
@@ -2495,7 +2513,10 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
|
|
|
2495
2513
|
return message;
|
|
2496
2514
|
},
|
|
2497
2515
|
fromJSON(object) {
|
|
2498
|
-
return {
|
|
2516
|
+
return {
|
|
2517
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2518
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2519
|
+
};
|
|
2499
2520
|
},
|
|
2500
2521
|
toJSON(message) {
|
|
2501
2522
|
const obj = {};
|
|
@@ -2558,7 +2579,10 @@ var EntityMetadata_MetaEntry = {
|
|
|
2558
2579
|
return message;
|
|
2559
2580
|
},
|
|
2560
2581
|
fromJSON(object) {
|
|
2561
|
-
return {
|
|
2582
|
+
return {
|
|
2583
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2584
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2585
|
+
};
|
|
2562
2586
|
},
|
|
2563
2587
|
toJSON(message) {
|
|
2564
2588
|
const obj = {};
|
|
@@ -2622,8 +2646,8 @@ var EntityReference = {
|
|
|
2622
2646
|
},
|
|
2623
2647
|
fromJSON(object) {
|
|
2624
2648
|
return {
|
|
2625
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
2626
|
-
entryPoints: Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => String(e)) : []
|
|
2649
|
+
entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
|
|
2650
|
+
entryPoints: globalThis.Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => globalThis.String(e)) : []
|
|
2627
2651
|
};
|
|
2628
2652
|
},
|
|
2629
2653
|
toJSON(message) {
|
|
@@ -2754,8 +2778,8 @@ var Wallet = {
|
|
|
2754
2778
|
fromJSON(object) {
|
|
2755
2779
|
return {
|
|
2756
2780
|
encryptedMnemonic: isSet2(object.encryptedMnemonic) ? bytesFromBase64(object.encryptedMnemonic) : new Uint8Array(0),
|
|
2757
|
-
hdPath: isSet2(object.hdPath) ? String(object.hdPath) : "",
|
|
2758
|
-
locale: isSet2(object.locale) ? String(object.locale) : "",
|
|
2781
|
+
hdPath: isSet2(object.hdPath) ? globalThis.String(object.hdPath) : "",
|
|
2782
|
+
locale: isSet2(object.locale) ? globalThis.String(object.locale) : "",
|
|
2759
2783
|
authMethod: isSet2(object.authMethod) ? wallet_AuthMethodFromJSON(object.authMethod) : 0
|
|
2760
2784
|
};
|
|
2761
2785
|
},
|
|
@@ -2787,26 +2811,11 @@ var Wallet = {
|
|
|
2787
2811
|
return message;
|
|
2788
2812
|
}
|
|
2789
2813
|
};
|
|
2790
|
-
var tsProtoGlobalThis = (() => {
|
|
2791
|
-
if (typeof globalThis !== "undefined") {
|
|
2792
|
-
return globalThis;
|
|
2793
|
-
}
|
|
2794
|
-
if (typeof self !== "undefined") {
|
|
2795
|
-
return self;
|
|
2796
|
-
}
|
|
2797
|
-
if (typeof window !== "undefined") {
|
|
2798
|
-
return window;
|
|
2799
|
-
}
|
|
2800
|
-
if (typeof global !== "undefined") {
|
|
2801
|
-
return global;
|
|
2802
|
-
}
|
|
2803
|
-
throw "Unable to locate global object";
|
|
2804
|
-
})();
|
|
2805
2814
|
function bytesFromBase64(b64) {
|
|
2806
|
-
if (
|
|
2807
|
-
return Uint8Array.from(
|
|
2815
|
+
if (globalThis.Buffer) {
|
|
2816
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2808
2817
|
} else {
|
|
2809
|
-
const bin =
|
|
2818
|
+
const bin = globalThis.atob(b64);
|
|
2810
2819
|
const arr = new Uint8Array(bin.length);
|
|
2811
2820
|
for (let i = 0; i < bin.length; ++i) {
|
|
2812
2821
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -2815,14 +2824,14 @@ function bytesFromBase64(b64) {
|
|
|
2815
2824
|
}
|
|
2816
2825
|
}
|
|
2817
2826
|
function base64FromBytes(arr) {
|
|
2818
|
-
if (
|
|
2819
|
-
return
|
|
2827
|
+
if (globalThis.Buffer) {
|
|
2828
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
2820
2829
|
} else {
|
|
2821
2830
|
const bin = [];
|
|
2822
2831
|
arr.forEach((byte) => {
|
|
2823
|
-
bin.push(String.fromCharCode(byte));
|
|
2832
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
2824
2833
|
});
|
|
2825
|
-
return
|
|
2834
|
+
return globalThis.btoa(bin.join(""));
|
|
2826
2835
|
}
|
|
2827
2836
|
}
|
|
2828
2837
|
function isSet2(value) {
|
|
@@ -2862,7 +2871,7 @@ var AccountsStore = {
|
|
|
2862
2871
|
return message;
|
|
2863
2872
|
},
|
|
2864
2873
|
fromJSON(object) {
|
|
2865
|
-
return { items: Array.isArray(object?.items) ? object.items.map((e) => Account.fromJSON(e)) : [] };
|
|
2874
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Account.fromJSON(e)) : [] };
|
|
2866
2875
|
},
|
|
2867
2876
|
toJSON(message) {
|
|
2868
2877
|
const obj = {};
|
|
@@ -2961,10 +2970,10 @@ var Account = {
|
|
|
2961
2970
|
},
|
|
2962
2971
|
fromJSON(object) {
|
|
2963
2972
|
return {
|
|
2964
|
-
name: isSet3(object.name) ? String(object.name) : "",
|
|
2973
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
2965
2974
|
wallet: isSet3(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
|
|
2966
|
-
address: isSet3(object.address) ? String(object.address) : "",
|
|
2967
|
-
hasBackup: isSet3(object.hasBackup) ? Boolean(object.hasBackup) : false,
|
|
2975
|
+
address: isSet3(object.address) ? globalThis.String(object.address) : "",
|
|
2976
|
+
hasBackup: isSet3(object.hasBackup) ? globalThis.Boolean(object.hasBackup) : false,
|
|
2968
2977
|
extra: isSet3(object.extra) ? Account_Extra.fromJSON(object.extra) : void 0,
|
|
2969
2978
|
meta: isObject2(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
2970
2979
|
acc[key] = String(value);
|
|
@@ -3012,7 +3021,7 @@ var Account = {
|
|
|
3012
3021
|
message.extra = object.extra !== void 0 && object.extra !== null ? Account_Extra.fromPartial(object.extra) : void 0;
|
|
3013
3022
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
3014
3023
|
if (value !== void 0) {
|
|
3015
|
-
acc[key] = String(value);
|
|
3024
|
+
acc[key] = globalThis.String(value);
|
|
3016
3025
|
}
|
|
3017
3026
|
return acc;
|
|
3018
3027
|
}, {});
|
|
@@ -3061,8 +3070,8 @@ var Account_AppVoter = {
|
|
|
3061
3070
|
},
|
|
3062
3071
|
fromJSON(object) {
|
|
3063
3072
|
return {
|
|
3064
|
-
appAnalyticsID: isSet3(object.appAnalyticsID) ? String(object.appAnalyticsID) : "",
|
|
3065
|
-
entities: Array.isArray(object?.entities) ? object.entities.map((e) => EntityReference.fromJSON(e)) : []
|
|
3073
|
+
appAnalyticsID: isSet3(object.appAnalyticsID) ? globalThis.String(object.appAnalyticsID) : "",
|
|
3074
|
+
entities: globalThis.Array.isArray(object?.entities) ? object.entities.map((e) => EntityReference.fromJSON(e)) : []
|
|
3066
3075
|
};
|
|
3067
3076
|
},
|
|
3068
3077
|
toJSON(message) {
|
|
@@ -3117,7 +3126,7 @@ var Account_WebEntity = {
|
|
|
3117
3126
|
return message;
|
|
3118
3127
|
},
|
|
3119
3128
|
fromJSON(object) {
|
|
3120
|
-
return { webAnalyticsID: isSet3(object.webAnalyticsID) ? String(object.webAnalyticsID) : "" };
|
|
3129
|
+
return { webAnalyticsID: isSet3(object.webAnalyticsID) ? globalThis.String(object.webAnalyticsID) : "" };
|
|
3121
3130
|
},
|
|
3122
3131
|
toJSON(message) {
|
|
3123
3132
|
const obj = {};
|
|
@@ -3247,7 +3256,10 @@ var Account_MetaEntry = {
|
|
|
3247
3256
|
return message;
|
|
3248
3257
|
},
|
|
3249
3258
|
fromJSON(object) {
|
|
3250
|
-
return {
|
|
3259
|
+
return {
|
|
3260
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3261
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3262
|
+
};
|
|
3251
3263
|
},
|
|
3252
3264
|
toJSON(message) {
|
|
3253
3265
|
const obj = {};
|
|
@@ -3480,8 +3492,8 @@ var WalletBackup = {
|
|
|
3480
3492
|
},
|
|
3481
3493
|
fromJSON(object) {
|
|
3482
3494
|
return {
|
|
3483
|
-
name: isSet4(object.name) ? String(object.name) : "",
|
|
3484
|
-
timestamp: isSet4(object.timestamp) ? Number(object.timestamp) : 0,
|
|
3495
|
+
name: isSet4(object.name) ? globalThis.String(object.name) : "",
|
|
3496
|
+
timestamp: isSet4(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
3485
3497
|
wallet: isSet4(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
|
|
3486
3498
|
passphraseRecovery: isSet4(object.passphraseRecovery) ? WalletBackup_Recovery.fromJSON(object.passphraseRecovery) : void 0
|
|
3487
3499
|
};
|
|
@@ -3565,7 +3577,7 @@ var WalletBackup_Recovery = {
|
|
|
3565
3577
|
},
|
|
3566
3578
|
fromJSON(object) {
|
|
3567
3579
|
return {
|
|
3568
|
-
questionIds: Array.isArray(object?.questionIds) ? object.questionIds.map((e) => walletBackup_Recovery_QuestionEnumFromJSON(e)) : [],
|
|
3580
|
+
questionIds: globalThis.Array.isArray(object?.questionIds) ? object.questionIds.map((e) => walletBackup_Recovery_QuestionEnumFromJSON(e)) : [],
|
|
3569
3581
|
encryptedPassphrase: isSet4(object.encryptedPassphrase) ? bytesFromBase642(object.encryptedPassphrase) : new Uint8Array(0)
|
|
3570
3582
|
};
|
|
3571
3583
|
},
|
|
@@ -3589,26 +3601,11 @@ var WalletBackup_Recovery = {
|
|
|
3589
3601
|
return message;
|
|
3590
3602
|
}
|
|
3591
3603
|
};
|
|
3592
|
-
var tsProtoGlobalThis2 = (() => {
|
|
3593
|
-
if (typeof globalThis !== "undefined") {
|
|
3594
|
-
return globalThis;
|
|
3595
|
-
}
|
|
3596
|
-
if (typeof self !== "undefined") {
|
|
3597
|
-
return self;
|
|
3598
|
-
}
|
|
3599
|
-
if (typeof window !== "undefined") {
|
|
3600
|
-
return window;
|
|
3601
|
-
}
|
|
3602
|
-
if (typeof global !== "undefined") {
|
|
3603
|
-
return global;
|
|
3604
|
-
}
|
|
3605
|
-
throw "Unable to locate global object";
|
|
3606
|
-
})();
|
|
3607
3604
|
function bytesFromBase642(b64) {
|
|
3608
|
-
if (
|
|
3609
|
-
return Uint8Array.from(
|
|
3605
|
+
if (globalThis.Buffer) {
|
|
3606
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
3610
3607
|
} else {
|
|
3611
|
-
const bin =
|
|
3608
|
+
const bin = globalThis.atob(b64);
|
|
3612
3609
|
const arr = new Uint8Array(bin.length);
|
|
3613
3610
|
for (let i = 0; i < bin.length; ++i) {
|
|
3614
3611
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -3617,19 +3614,19 @@ function bytesFromBase642(b64) {
|
|
|
3617
3614
|
}
|
|
3618
3615
|
}
|
|
3619
3616
|
function base64FromBytes2(arr) {
|
|
3620
|
-
if (
|
|
3621
|
-
return
|
|
3617
|
+
if (globalThis.Buffer) {
|
|
3618
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
3622
3619
|
} else {
|
|
3623
3620
|
const bin = [];
|
|
3624
3621
|
arr.forEach((byte) => {
|
|
3625
|
-
bin.push(String.fromCharCode(byte));
|
|
3622
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
3626
3623
|
});
|
|
3627
|
-
return
|
|
3624
|
+
return globalThis.btoa(bin.join(""));
|
|
3628
3625
|
}
|
|
3629
3626
|
}
|
|
3630
3627
|
function longToNumber(long) {
|
|
3631
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
3632
|
-
throw new
|
|
3628
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3629
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3633
3630
|
}
|
|
3634
3631
|
return long.toNumber();
|
|
3635
3632
|
}
|
|
@@ -3783,7 +3780,7 @@ var BootNodeGateways = {
|
|
|
3783
3780
|
message.rinkeby = object.rinkeby !== void 0 && object.rinkeby !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.rinkeby) : void 0;
|
|
3784
3781
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
3785
3782
|
if (value !== void 0) {
|
|
3786
|
-
acc[key] = String(value);
|
|
3783
|
+
acc[key] = globalThis.String(value);
|
|
3787
3784
|
}
|
|
3788
3785
|
return acc;
|
|
3789
3786
|
}, {});
|
|
@@ -3832,8 +3829,8 @@ var BootNodeGateways_NetworkNodes = {
|
|
|
3832
3829
|
},
|
|
3833
3830
|
fromJSON(object) {
|
|
3834
3831
|
return {
|
|
3835
|
-
dvote: Array.isArray(object?.dvote) ? object.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.fromJSON(e)) : [],
|
|
3836
|
-
web3: Array.isArray(object?.web3) ? object.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.fromJSON(e)) : []
|
|
3832
|
+
dvote: globalThis.Array.isArray(object?.dvote) ? object.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.fromJSON(e)) : [],
|
|
3833
|
+
web3: globalThis.Array.isArray(object?.web3) ? object.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.fromJSON(e)) : []
|
|
3837
3834
|
};
|
|
3838
3835
|
},
|
|
3839
3836
|
toJSON(message) {
|
|
@@ -3907,9 +3904,9 @@ var BootNodeGateways_NetworkNodes_DVote = {
|
|
|
3907
3904
|
},
|
|
3908
3905
|
fromJSON(object) {
|
|
3909
3906
|
return {
|
|
3910
|
-
uri: isSet5(object.uri) ? String(object.uri) : "",
|
|
3911
|
-
apis: Array.isArray(object?.apis) ? object.apis.map((e) => String(e)) : [],
|
|
3912
|
-
pubKey: isSet5(object.pubKey) ? String(object.pubKey) : ""
|
|
3907
|
+
uri: isSet5(object.uri) ? globalThis.String(object.uri) : "",
|
|
3908
|
+
apis: globalThis.Array.isArray(object?.apis) ? object.apis.map((e) => globalThis.String(e)) : [],
|
|
3909
|
+
pubKey: isSet5(object.pubKey) ? globalThis.String(object.pubKey) : ""
|
|
3913
3910
|
};
|
|
3914
3911
|
},
|
|
3915
3912
|
toJSON(message) {
|
|
@@ -3968,7 +3965,7 @@ var BootNodeGateways_NetworkNodes_Web3 = {
|
|
|
3968
3965
|
return message;
|
|
3969
3966
|
},
|
|
3970
3967
|
fromJSON(object) {
|
|
3971
|
-
return { uri: isSet5(object.uri) ? String(object.uri) : "" };
|
|
3968
|
+
return { uri: isSet5(object.uri) ? globalThis.String(object.uri) : "" };
|
|
3972
3969
|
},
|
|
3973
3970
|
toJSON(message) {
|
|
3974
3971
|
const obj = {};
|
|
@@ -4027,7 +4024,10 @@ var BootNodeGateways_MetaEntry = {
|
|
|
4027
4024
|
return message;
|
|
4028
4025
|
},
|
|
4029
4026
|
fromJSON(object) {
|
|
4030
|
-
return {
|
|
4027
|
+
return {
|
|
4028
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
4029
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
4030
|
+
};
|
|
4031
4031
|
},
|
|
4032
4032
|
toJSON(message) {
|
|
4033
4033
|
const obj = {};
|
|
@@ -4125,7 +4125,7 @@ var FeedStore = {
|
|
|
4125
4125
|
return message;
|
|
4126
4126
|
},
|
|
4127
4127
|
fromJSON(object) {
|
|
4128
|
-
return { items: Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
|
|
4128
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
|
|
4129
4129
|
},
|
|
4130
4130
|
toJSON(message) {
|
|
4131
4131
|
const obj = {};
|
|
@@ -4271,15 +4271,15 @@ var Feed = {
|
|
|
4271
4271
|
},
|
|
4272
4272
|
fromJSON(object) {
|
|
4273
4273
|
return {
|
|
4274
|
-
version: isSet6(object.version) ? String(object.version) : "",
|
|
4275
|
-
title: isSet6(object.title) ? String(object.title) : "",
|
|
4276
|
-
homePageUrl: isSet6(object.homePageUrl) ? String(object.homePageUrl) : "",
|
|
4277
|
-
description: isSet6(object.description) ? String(object.description) : "",
|
|
4278
|
-
feedUrl: isSet6(object.feedUrl) ? String(object.feedUrl) : "",
|
|
4279
|
-
icon: isSet6(object.icon) ? String(object.icon) : "",
|
|
4280
|
-
favicon: isSet6(object.favicon) ? String(object.favicon) : "",
|
|
4281
|
-
expired: isSet6(object.expired) ? Boolean(object.expired) : false,
|
|
4282
|
-
items: Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
|
|
4274
|
+
version: isSet6(object.version) ? globalThis.String(object.version) : "",
|
|
4275
|
+
title: isSet6(object.title) ? globalThis.String(object.title) : "",
|
|
4276
|
+
homePageUrl: isSet6(object.homePageUrl) ? globalThis.String(object.homePageUrl) : "",
|
|
4277
|
+
description: isSet6(object.description) ? globalThis.String(object.description) : "",
|
|
4278
|
+
feedUrl: isSet6(object.feedUrl) ? globalThis.String(object.feedUrl) : "",
|
|
4279
|
+
icon: isSet6(object.icon) ? globalThis.String(object.icon) : "",
|
|
4280
|
+
favicon: isSet6(object.favicon) ? globalThis.String(object.favicon) : "",
|
|
4281
|
+
expired: isSet6(object.expired) ? globalThis.Boolean(object.expired) : false,
|
|
4282
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
|
|
4283
4283
|
meta: isObject4(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
4284
4284
|
acc[key] = String(value);
|
|
4285
4285
|
return acc;
|
|
@@ -4342,7 +4342,7 @@ var Feed = {
|
|
|
4342
4342
|
message.items = object.items?.map((e) => FeedPost.fromPartial(e)) || [];
|
|
4343
4343
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
4344
4344
|
if (value !== void 0) {
|
|
4345
|
-
acc[key] = String(value);
|
|
4345
|
+
acc[key] = globalThis.String(value);
|
|
4346
4346
|
}
|
|
4347
4347
|
return acc;
|
|
4348
4348
|
}, {});
|
|
@@ -4390,7 +4390,10 @@ var Feed_MetaEntry = {
|
|
|
4390
4390
|
return message;
|
|
4391
4391
|
},
|
|
4392
4392
|
fromJSON(object) {
|
|
4393
|
-
return {
|
|
4393
|
+
return {
|
|
4394
|
+
key: isSet6(object.key) ? globalThis.String(object.key) : "",
|
|
4395
|
+
value: isSet6(object.value) ? globalThis.String(object.value) : ""
|
|
4396
|
+
};
|
|
4394
4397
|
},
|
|
4395
4398
|
toJSON(message) {
|
|
4396
4399
|
const obj = {};
|
|
@@ -4547,16 +4550,16 @@ var FeedPost = {
|
|
|
4547
4550
|
},
|
|
4548
4551
|
fromJSON(object) {
|
|
4549
4552
|
return {
|
|
4550
|
-
id: isSet6(object.id) ? String(object.id) : "",
|
|
4551
|
-
title: isSet6(object.title) ? String(object.title) : "",
|
|
4552
|
-
summary: isSet6(object.summary) ? String(object.summary) : "",
|
|
4553
|
-
contentText: isSet6(object.contentText) ? String(object.contentText) : "",
|
|
4554
|
-
contentHtml: isSet6(object.contentHtml) ? String(object.contentHtml) : "",
|
|
4555
|
-
url: isSet6(object.url) ? String(object.url) : "",
|
|
4556
|
-
image: isSet6(object.image) ? String(object.image) : "",
|
|
4557
|
-
tags: Array.isArray(object?.tags) ? object.tags.map((e) => String(e)) : [],
|
|
4558
|
-
datePublished: isSet6(object.datePublished) ? String(object.datePublished) : "",
|
|
4559
|
-
dateModified: isSet6(object.dateModified) ? String(object.dateModified) : "",
|
|
4553
|
+
id: isSet6(object.id) ? globalThis.String(object.id) : "",
|
|
4554
|
+
title: isSet6(object.title) ? globalThis.String(object.title) : "",
|
|
4555
|
+
summary: isSet6(object.summary) ? globalThis.String(object.summary) : "",
|
|
4556
|
+
contentText: isSet6(object.contentText) ? globalThis.String(object.contentText) : "",
|
|
4557
|
+
contentHtml: isSet6(object.contentHtml) ? globalThis.String(object.contentHtml) : "",
|
|
4558
|
+
url: isSet6(object.url) ? globalThis.String(object.url) : "",
|
|
4559
|
+
image: isSet6(object.image) ? globalThis.String(object.image) : "",
|
|
4560
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
4561
|
+
datePublished: isSet6(object.datePublished) ? globalThis.String(object.datePublished) : "",
|
|
4562
|
+
dateModified: isSet6(object.dateModified) ? globalThis.String(object.dateModified) : "",
|
|
4560
4563
|
author: isSet6(object.author) ? FeedPost_Author.fromJSON(object.author) : void 0
|
|
4561
4564
|
};
|
|
4562
4565
|
},
|
|
@@ -4657,7 +4660,10 @@ var FeedPost_Author = {
|
|
|
4657
4660
|
return message;
|
|
4658
4661
|
},
|
|
4659
4662
|
fromJSON(object) {
|
|
4660
|
-
return {
|
|
4663
|
+
return {
|
|
4664
|
+
name: isSet6(object.name) ? globalThis.String(object.name) : "",
|
|
4665
|
+
url: isSet6(object.url) ? globalThis.String(object.url) : ""
|
|
4666
|
+
};
|
|
4661
4667
|
},
|
|
4662
4668
|
toJSON(message) {
|
|
4663
4669
|
const obj = {};
|
|
@@ -4720,7 +4726,9 @@ var ProcessMetadataStore = {
|
|
|
4720
4726
|
return message;
|
|
4721
4727
|
},
|
|
4722
4728
|
fromJSON(object) {
|
|
4723
|
-
return {
|
|
4729
|
+
return {
|
|
4730
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : []
|
|
4731
|
+
};
|
|
4724
4732
|
},
|
|
4725
4733
|
toJSON(message) {
|
|
4726
4734
|
const obj = {};
|
|
@@ -4837,7 +4845,7 @@ var ProcessMetadata = {
|
|
|
4837
4845
|
},
|
|
4838
4846
|
fromJSON(object) {
|
|
4839
4847
|
return {
|
|
4840
|
-
version: isSet7(object.version) ? String(object.version) : "",
|
|
4848
|
+
version: isSet7(object.version) ? globalThis.String(object.version) : "",
|
|
4841
4849
|
title: isObject5(object.title) ? Object.entries(object.title).reduce((acc, [key, value]) => {
|
|
4842
4850
|
acc[key] = String(value);
|
|
4843
4851
|
return acc;
|
|
@@ -4850,7 +4858,7 @@ var ProcessMetadata = {
|
|
|
4850
4858
|
acc[key] = String(value);
|
|
4851
4859
|
return acc;
|
|
4852
4860
|
}, {}) : {},
|
|
4853
|
-
questions: Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
|
|
4861
|
+
questions: globalThis.Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
|
|
4854
4862
|
results: isSet7(object.results) ? ProcessMetadata_Results.fromJSON(object.results) : void 0,
|
|
4855
4863
|
meta: isObject5(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
4856
4864
|
acc[key] = String(value);
|
|
@@ -4915,14 +4923,14 @@ var ProcessMetadata = {
|
|
|
4915
4923
|
message.version = object.version ?? "";
|
|
4916
4924
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
4917
4925
|
if (value !== void 0) {
|
|
4918
|
-
acc[key] = String(value);
|
|
4926
|
+
acc[key] = globalThis.String(value);
|
|
4919
4927
|
}
|
|
4920
4928
|
return acc;
|
|
4921
4929
|
}, {});
|
|
4922
4930
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
4923
4931
|
(acc, [key, value]) => {
|
|
4924
4932
|
if (value !== void 0) {
|
|
4925
|
-
acc[key] = String(value);
|
|
4933
|
+
acc[key] = globalThis.String(value);
|
|
4926
4934
|
}
|
|
4927
4935
|
return acc;
|
|
4928
4936
|
},
|
|
@@ -4930,7 +4938,7 @@ var ProcessMetadata = {
|
|
|
4930
4938
|
);
|
|
4931
4939
|
message.media = Object.entries(object.media ?? {}).reduce((acc, [key, value]) => {
|
|
4932
4940
|
if (value !== void 0) {
|
|
4933
|
-
acc[key] = String(value);
|
|
4941
|
+
acc[key] = globalThis.String(value);
|
|
4934
4942
|
}
|
|
4935
4943
|
return acc;
|
|
4936
4944
|
}, {});
|
|
@@ -4938,7 +4946,7 @@ var ProcessMetadata = {
|
|
|
4938
4946
|
message.results = object.results !== void 0 && object.results !== null ? ProcessMetadata_Results.fromPartial(object.results) : void 0;
|
|
4939
4947
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
4940
4948
|
if (value !== void 0) {
|
|
4941
|
-
acc[key] = String(value);
|
|
4949
|
+
acc[key] = globalThis.String(value);
|
|
4942
4950
|
}
|
|
4943
4951
|
return acc;
|
|
4944
4952
|
}, {});
|
|
@@ -4986,7 +4994,10 @@ var ProcessMetadata_TitleEntry = {
|
|
|
4986
4994
|
return message;
|
|
4987
4995
|
},
|
|
4988
4996
|
fromJSON(object) {
|
|
4989
|
-
return {
|
|
4997
|
+
return {
|
|
4998
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
4999
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5000
|
+
};
|
|
4990
5001
|
},
|
|
4991
5002
|
toJSON(message) {
|
|
4992
5003
|
const obj = {};
|
|
@@ -5049,7 +5060,10 @@ var ProcessMetadata_DescriptionEntry = {
|
|
|
5049
5060
|
return message;
|
|
5050
5061
|
},
|
|
5051
5062
|
fromJSON(object) {
|
|
5052
|
-
return {
|
|
5063
|
+
return {
|
|
5064
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5065
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5066
|
+
};
|
|
5053
5067
|
},
|
|
5054
5068
|
toJSON(message) {
|
|
5055
5069
|
const obj = {};
|
|
@@ -5112,7 +5126,10 @@ var ProcessMetadata_MediaEntry = {
|
|
|
5112
5126
|
return message;
|
|
5113
5127
|
},
|
|
5114
5128
|
fromJSON(object) {
|
|
5115
|
-
return {
|
|
5129
|
+
return {
|
|
5130
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5131
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5132
|
+
};
|
|
5116
5133
|
},
|
|
5117
5134
|
toJSON(message) {
|
|
5118
5135
|
const obj = {};
|
|
@@ -5199,7 +5216,7 @@ var ProcessMetadata_Question = {
|
|
|
5199
5216
|
acc[key] = String(value);
|
|
5200
5217
|
return acc;
|
|
5201
5218
|
}, {}) : {},
|
|
5202
|
-
choices: Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
|
|
5219
|
+
choices: globalThis.Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
|
|
5203
5220
|
};
|
|
5204
5221
|
},
|
|
5205
5222
|
toJSON(message) {
|
|
@@ -5234,14 +5251,14 @@ var ProcessMetadata_Question = {
|
|
|
5234
5251
|
const message = createBaseProcessMetadata_Question();
|
|
5235
5252
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
5236
5253
|
if (value !== void 0) {
|
|
5237
|
-
acc[key] = String(value);
|
|
5254
|
+
acc[key] = globalThis.String(value);
|
|
5238
5255
|
}
|
|
5239
5256
|
return acc;
|
|
5240
5257
|
}, {});
|
|
5241
5258
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
5242
5259
|
(acc, [key, value]) => {
|
|
5243
5260
|
if (value !== void 0) {
|
|
5244
|
-
acc[key] = String(value);
|
|
5261
|
+
acc[key] = globalThis.String(value);
|
|
5245
5262
|
}
|
|
5246
5263
|
return acc;
|
|
5247
5264
|
},
|
|
@@ -5292,7 +5309,10 @@ var ProcessMetadata_Question_TitleEntry = {
|
|
|
5292
5309
|
return message;
|
|
5293
5310
|
},
|
|
5294
5311
|
fromJSON(object) {
|
|
5295
|
-
return {
|
|
5312
|
+
return {
|
|
5313
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5314
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5315
|
+
};
|
|
5296
5316
|
},
|
|
5297
5317
|
toJSON(message) {
|
|
5298
5318
|
const obj = {};
|
|
@@ -5355,7 +5375,10 @@ var ProcessMetadata_Question_DescriptionEntry = {
|
|
|
5355
5375
|
return message;
|
|
5356
5376
|
},
|
|
5357
5377
|
fromJSON(object) {
|
|
5358
|
-
return {
|
|
5378
|
+
return {
|
|
5379
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5380
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5381
|
+
};
|
|
5359
5382
|
},
|
|
5360
5383
|
toJSON(message) {
|
|
5361
5384
|
const obj = {};
|
|
@@ -5426,7 +5449,7 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
5426
5449
|
acc[key] = String(value);
|
|
5427
5450
|
return acc;
|
|
5428
5451
|
}, {}) : {},
|
|
5429
|
-
value: isSet7(object.value) ? Number(object.value) : 0
|
|
5452
|
+
value: isSet7(object.value) ? globalThis.Number(object.value) : 0
|
|
5430
5453
|
};
|
|
5431
5454
|
},
|
|
5432
5455
|
toJSON(message) {
|
|
@@ -5452,7 +5475,7 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
5452
5475
|
const message = createBaseProcessMetadata_Question_VoteOption();
|
|
5453
5476
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
5454
5477
|
if (value !== void 0) {
|
|
5455
|
-
acc[key] = String(value);
|
|
5478
|
+
acc[key] = globalThis.String(value);
|
|
5456
5479
|
}
|
|
5457
5480
|
return acc;
|
|
5458
5481
|
}, {});
|
|
@@ -5501,7 +5524,10 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
|
|
|
5501
5524
|
return message;
|
|
5502
5525
|
},
|
|
5503
5526
|
fromJSON(object) {
|
|
5504
|
-
return {
|
|
5527
|
+
return {
|
|
5528
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5529
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5530
|
+
};
|
|
5505
5531
|
},
|
|
5506
5532
|
toJSON(message) {
|
|
5507
5533
|
const obj = {};
|
|
@@ -5565,8 +5591,8 @@ var ProcessMetadata_Results = {
|
|
|
5565
5591
|
},
|
|
5566
5592
|
fromJSON(object) {
|
|
5567
5593
|
return {
|
|
5568
|
-
aggregation: isSet7(object.aggregation) ? String(object.aggregation) : "",
|
|
5569
|
-
display: isSet7(object.display) ? String(object.display) : ""
|
|
5594
|
+
aggregation: isSet7(object.aggregation) ? globalThis.String(object.aggregation) : "",
|
|
5595
|
+
display: isSet7(object.display) ? globalThis.String(object.display) : ""
|
|
5570
5596
|
};
|
|
5571
5597
|
},
|
|
5572
5598
|
toJSON(message) {
|
|
@@ -5630,7 +5656,10 @@ var ProcessMetadata_MetaEntry = {
|
|
|
5630
5656
|
return message;
|
|
5631
5657
|
},
|
|
5632
5658
|
fromJSON(object) {
|
|
5633
|
-
return {
|
|
5659
|
+
return {
|
|
5660
|
+
key: isSet7(object.key) ? globalThis.String(object.key) : "",
|
|
5661
|
+
value: isSet7(object.value) ? globalThis.String(object.value) : ""
|
|
5662
|
+
};
|
|
5634
5663
|
},
|
|
5635
5664
|
toJSON(message) {
|
|
5636
5665
|
const obj = {};
|
|
@@ -5672,7 +5701,6 @@ __export(vochain_exports, {
|
|
|
5672
5701
|
EnvelopeType: () => EnvelopeType,
|
|
5673
5702
|
FaucetPackage: () => FaucetPackage,
|
|
5674
5703
|
FaucetPayload: () => FaucetPayload,
|
|
5675
|
-
MintTokensTx: () => MintTokensTx,
|
|
5676
5704
|
NewProcessTx: () => NewProcessTx,
|
|
5677
5705
|
OracleList: () => OracleList,
|
|
5678
5706
|
Process: () => Process,
|
|
@@ -5689,8 +5717,6 @@ __export(vochain_exports, {
|
|
|
5689
5717
|
ProofCA_Type: () => ProofCA_Type,
|
|
5690
5718
|
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5691
5719
|
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5692
|
-
ProofGraviton: () => ProofGraviton,
|
|
5693
|
-
ProofIden3: () => ProofIden3,
|
|
5694
5720
|
ProofMinime: () => ProofMinime,
|
|
5695
5721
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5696
5722
|
QuestionResult: () => QuestionResult,
|
|
@@ -5706,7 +5732,6 @@ __export(vochain_exports, {
|
|
|
5706
5732
|
SourceNetworkId: () => SourceNetworkId,
|
|
5707
5733
|
StoredKeys: () => StoredKeys,
|
|
5708
5734
|
TendermintHeader: () => TendermintHeader,
|
|
5709
|
-
Treasurer: () => Treasurer,
|
|
5710
5735
|
Tx: () => Tx,
|
|
5711
5736
|
TxType: () => TxType,
|
|
5712
5737
|
Validator: () => Validator,
|
|
@@ -5748,9 +5773,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
|
|
|
5748
5773
|
TxType2[TxType2["VOTE"] = 11] = "VOTE";
|
|
5749
5774
|
TxType2[TxType2["SET_PROCESS_RESULTS"] = 12] = "SET_PROCESS_RESULTS";
|
|
5750
5775
|
TxType2[TxType2["REGISTER_VOTER_KEY"] = 13] = "REGISTER_VOTER_KEY";
|
|
5751
|
-
TxType2[TxType2["MINT_TOKENS"] = 14] = "MINT_TOKENS";
|
|
5752
5776
|
TxType2[TxType2["SEND_TOKENS"] = 15] = "SEND_TOKENS";
|
|
5753
|
-
TxType2[TxType2["SET_TRANSACTION_COSTS"] = 16] = "SET_TRANSACTION_COSTS";
|
|
5754
5777
|
TxType2[TxType2["SET_ACCOUNT_INFO_URI"] = 17] = "SET_ACCOUNT_INFO_URI";
|
|
5755
5778
|
TxType2[TxType2["ADD_DELEGATE_FOR_ACCOUNT"] = 18] = "ADD_DELEGATE_FOR_ACCOUNT";
|
|
5756
5779
|
TxType2[TxType2["DEL_DELEGATE_FOR_ACCOUNT"] = 19] = "DEL_DELEGATE_FOR_ACCOUNT";
|
|
@@ -5761,6 +5784,8 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
|
|
|
5761
5784
|
TxType2[TxType2["SET_ACCOUNT_SIK"] = 24] = "SET_ACCOUNT_SIK";
|
|
5762
5785
|
TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
|
|
5763
5786
|
TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
|
|
5787
|
+
TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
|
|
5788
|
+
TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
|
|
5764
5789
|
TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
5765
5790
|
return TxType2;
|
|
5766
5791
|
})(TxType || {});
|
|
@@ -5808,15 +5833,9 @@ function txTypeFromJSON(object) {
|
|
|
5808
5833
|
case 13:
|
|
5809
5834
|
case "REGISTER_VOTER_KEY":
|
|
5810
5835
|
return 13 /* REGISTER_VOTER_KEY */;
|
|
5811
|
-
case 14:
|
|
5812
|
-
case "MINT_TOKENS":
|
|
5813
|
-
return 14 /* MINT_TOKENS */;
|
|
5814
5836
|
case 15:
|
|
5815
5837
|
case "SEND_TOKENS":
|
|
5816
5838
|
return 15 /* SEND_TOKENS */;
|
|
5817
|
-
case 16:
|
|
5818
|
-
case "SET_TRANSACTION_COSTS":
|
|
5819
|
-
return 16 /* SET_TRANSACTION_COSTS */;
|
|
5820
5839
|
case 17:
|
|
5821
5840
|
case "SET_ACCOUNT_INFO_URI":
|
|
5822
5841
|
return 17 /* SET_ACCOUNT_INFO_URI */;
|
|
@@ -5847,6 +5866,12 @@ function txTypeFromJSON(object) {
|
|
|
5847
5866
|
case 26:
|
|
5848
5867
|
case "REGISTER_SIK":
|
|
5849
5868
|
return 26 /* REGISTER_SIK */;
|
|
5869
|
+
case 27:
|
|
5870
|
+
case "SET_ACCOUNT_VALIDATOR":
|
|
5871
|
+
return 27 /* SET_ACCOUNT_VALIDATOR */;
|
|
5872
|
+
case 28:
|
|
5873
|
+
case "SET_PROCESS_DURATION":
|
|
5874
|
+
return 28 /* SET_PROCESS_DURATION */;
|
|
5850
5875
|
case -1:
|
|
5851
5876
|
case "UNRECOGNIZED":
|
|
5852
5877
|
default:
|
|
@@ -5883,12 +5908,8 @@ function txTypeToJSON(object) {
|
|
|
5883
5908
|
return "SET_PROCESS_RESULTS";
|
|
5884
5909
|
case 13 /* REGISTER_VOTER_KEY */:
|
|
5885
5910
|
return "REGISTER_VOTER_KEY";
|
|
5886
|
-
case 14 /* MINT_TOKENS */:
|
|
5887
|
-
return "MINT_TOKENS";
|
|
5888
5911
|
case 15 /* SEND_TOKENS */:
|
|
5889
5912
|
return "SEND_TOKENS";
|
|
5890
|
-
case 16 /* SET_TRANSACTION_COSTS */:
|
|
5891
|
-
return "SET_TRANSACTION_COSTS";
|
|
5892
5913
|
case 17 /* SET_ACCOUNT_INFO_URI */:
|
|
5893
5914
|
return "SET_ACCOUNT_INFO_URI";
|
|
5894
5915
|
case 18 /* ADD_DELEGATE_FOR_ACCOUNT */:
|
|
@@ -5909,6 +5930,10 @@ function txTypeToJSON(object) {
|
|
|
5909
5930
|
return "DEL_ACCOUNT_SIK";
|
|
5910
5931
|
case 26 /* REGISTER_SIK */:
|
|
5911
5932
|
return "REGISTER_SIK";
|
|
5933
|
+
case 27 /* SET_ACCOUNT_VALIDATOR */:
|
|
5934
|
+
return "SET_ACCOUNT_VALIDATOR";
|
|
5935
|
+
case 28 /* SET_PROCESS_DURATION */:
|
|
5936
|
+
return "SET_PROCESS_DURATION";
|
|
5912
5937
|
case -1 /* UNRECOGNIZED */:
|
|
5913
5938
|
default:
|
|
5914
5939
|
return "UNRECOGNIZED";
|
|
@@ -6158,8 +6183,6 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6158
6183
|
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6159
6184
|
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6160
6185
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6161
|
-
Census_Type2[Census_Type2["GRAVITON"] = 1001] = "GRAVITON";
|
|
6162
|
-
Census_Type2[Census_Type2["IDEN3"] = 1002] = "IDEN3";
|
|
6163
6186
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6164
6187
|
return Census_Type2;
|
|
6165
6188
|
})(Census_Type || {});
|
|
@@ -6183,12 +6206,6 @@ function census_TypeFromJSON(object) {
|
|
|
6183
6206
|
case 5:
|
|
6184
6207
|
case "CA":
|
|
6185
6208
|
return 5 /* CA */;
|
|
6186
|
-
case 1001:
|
|
6187
|
-
case "GRAVITON":
|
|
6188
|
-
return 1001 /* GRAVITON */;
|
|
6189
|
-
case 1002:
|
|
6190
|
-
case "IDEN3":
|
|
6191
|
-
return 1002 /* IDEN3 */;
|
|
6192
6209
|
case -1:
|
|
6193
6210
|
case "UNRECOGNIZED":
|
|
6194
6211
|
default:
|
|
@@ -6209,10 +6226,6 @@ function census_TypeToJSON(object) {
|
|
|
6209
6226
|
return "ETHEREUMACCOUNT";
|
|
6210
6227
|
case 5 /* CA */:
|
|
6211
6228
|
return "CA";
|
|
6212
|
-
case 1001 /* GRAVITON */:
|
|
6213
|
-
return "GRAVITON";
|
|
6214
|
-
case 1002 /* IDEN3 */:
|
|
6215
|
-
return "IDEN3";
|
|
6216
6229
|
case -1 /* UNRECOGNIZED */:
|
|
6217
6230
|
default:
|
|
6218
6231
|
return "UNRECOGNIZED";
|
|
@@ -6428,7 +6441,7 @@ var VoteEnvelope = {
|
|
|
6428
6441
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
6429
6442
|
votePackage: isSet8(object.votePackage) ? bytesFromBase643(object.votePackage) : new Uint8Array(0),
|
|
6430
6443
|
nullifier: isSet8(object.nullifier) ? bytesFromBase643(object.nullifier) : new Uint8Array(0),
|
|
6431
|
-
encryptionKeyIndexes: Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => Number(e)) : []
|
|
6444
|
+
encryptionKeyIndexes: globalThis.Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => globalThis.Number(e)) : []
|
|
6432
6445
|
};
|
|
6433
6446
|
},
|
|
6434
6447
|
toJSON(message) {
|
|
@@ -6510,12 +6523,6 @@ function createBaseProof() {
|
|
|
6510
6523
|
var Proof = {
|
|
6511
6524
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6512
6525
|
switch (message.payload?.$case) {
|
|
6513
|
-
case "graviton":
|
|
6514
|
-
ProofGraviton.encode(message.payload.graviton, writer.uint32(10).fork()).ldelim();
|
|
6515
|
-
break;
|
|
6516
|
-
case "iden3":
|
|
6517
|
-
ProofIden3.encode(message.payload.iden3, writer.uint32(18).fork()).ldelim();
|
|
6518
|
-
break;
|
|
6519
6526
|
case "ethereumStorage":
|
|
6520
6527
|
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
6521
6528
|
break;
|
|
@@ -6544,18 +6551,6 @@ var Proof = {
|
|
|
6544
6551
|
while (reader.pos < end) {
|
|
6545
6552
|
const tag = reader.uint32();
|
|
6546
6553
|
switch (tag >>> 3) {
|
|
6547
|
-
case 1:
|
|
6548
|
-
if (tag !== 10) {
|
|
6549
|
-
break;
|
|
6550
|
-
}
|
|
6551
|
-
message.payload = { $case: "graviton", graviton: ProofGraviton.decode(reader, reader.uint32()) };
|
|
6552
|
-
continue;
|
|
6553
|
-
case 2:
|
|
6554
|
-
if (tag !== 18) {
|
|
6555
|
-
break;
|
|
6556
|
-
}
|
|
6557
|
-
message.payload = { $case: "iden3", iden3: ProofIden3.decode(reader, reader.uint32()) };
|
|
6558
|
-
continue;
|
|
6559
6554
|
case 3:
|
|
6560
6555
|
if (tag !== 26) {
|
|
6561
6556
|
break;
|
|
@@ -6608,17 +6603,11 @@ var Proof = {
|
|
|
6608
6603
|
},
|
|
6609
6604
|
fromJSON(object) {
|
|
6610
6605
|
return {
|
|
6611
|
-
payload: isSet8(object.
|
|
6606
|
+
payload: isSet8(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet8(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet8(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet8(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet8(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet8(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
|
|
6612
6607
|
};
|
|
6613
6608
|
},
|
|
6614
6609
|
toJSON(message) {
|
|
6615
6610
|
const obj = {};
|
|
6616
|
-
if (message.payload?.$case === "graviton") {
|
|
6617
|
-
obj.graviton = ProofGraviton.toJSON(message.payload.graviton);
|
|
6618
|
-
}
|
|
6619
|
-
if (message.payload?.$case === "iden3") {
|
|
6620
|
-
obj.iden3 = ProofIden3.toJSON(message.payload.iden3);
|
|
6621
|
-
}
|
|
6622
6611
|
if (message.payload?.$case === "ethereumStorage") {
|
|
6623
6612
|
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
6624
6613
|
}
|
|
@@ -6644,12 +6633,6 @@ var Proof = {
|
|
|
6644
6633
|
},
|
|
6645
6634
|
fromPartial(object) {
|
|
6646
6635
|
const message = createBaseProof();
|
|
6647
|
-
if (object.payload?.$case === "graviton" && object.payload?.graviton !== void 0 && object.payload?.graviton !== null) {
|
|
6648
|
-
message.payload = { $case: "graviton", graviton: ProofGraviton.fromPartial(object.payload.graviton) };
|
|
6649
|
-
}
|
|
6650
|
-
if (object.payload?.$case === "iden3" && object.payload?.iden3 !== void 0 && object.payload?.iden3 !== null) {
|
|
6651
|
-
message.payload = { $case: "iden3", iden3: ProofIden3.fromPartial(object.payload.iden3) };
|
|
6652
|
-
}
|
|
6653
6636
|
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
6654
6637
|
message.payload = {
|
|
6655
6638
|
$case: "ethereumStorage",
|
|
@@ -6680,106 +6663,6 @@ var Proof = {
|
|
|
6680
6663
|
return message;
|
|
6681
6664
|
}
|
|
6682
6665
|
};
|
|
6683
|
-
function createBaseProofGraviton() {
|
|
6684
|
-
return { siblings: new Uint8Array(0) };
|
|
6685
|
-
}
|
|
6686
|
-
var ProofGraviton = {
|
|
6687
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6688
|
-
if (message.siblings.length !== 0) {
|
|
6689
|
-
writer.uint32(10).bytes(message.siblings);
|
|
6690
|
-
}
|
|
6691
|
-
return writer;
|
|
6692
|
-
},
|
|
6693
|
-
decode(input, length) {
|
|
6694
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6695
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6696
|
-
const message = createBaseProofGraviton();
|
|
6697
|
-
while (reader.pos < end) {
|
|
6698
|
-
const tag = reader.uint32();
|
|
6699
|
-
switch (tag >>> 3) {
|
|
6700
|
-
case 1:
|
|
6701
|
-
if (tag !== 10) {
|
|
6702
|
-
break;
|
|
6703
|
-
}
|
|
6704
|
-
message.siblings = reader.bytes();
|
|
6705
|
-
continue;
|
|
6706
|
-
}
|
|
6707
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6708
|
-
break;
|
|
6709
|
-
}
|
|
6710
|
-
reader.skipType(tag & 7);
|
|
6711
|
-
}
|
|
6712
|
-
return message;
|
|
6713
|
-
},
|
|
6714
|
-
fromJSON(object) {
|
|
6715
|
-
return { siblings: isSet8(object.siblings) ? bytesFromBase643(object.siblings) : new Uint8Array(0) };
|
|
6716
|
-
},
|
|
6717
|
-
toJSON(message) {
|
|
6718
|
-
const obj = {};
|
|
6719
|
-
if (message.siblings.length !== 0) {
|
|
6720
|
-
obj.siblings = base64FromBytes3(message.siblings);
|
|
6721
|
-
}
|
|
6722
|
-
return obj;
|
|
6723
|
-
},
|
|
6724
|
-
create(base) {
|
|
6725
|
-
return ProofGraviton.fromPartial(base ?? {});
|
|
6726
|
-
},
|
|
6727
|
-
fromPartial(object) {
|
|
6728
|
-
const message = createBaseProofGraviton();
|
|
6729
|
-
message.siblings = object.siblings ?? new Uint8Array(0);
|
|
6730
|
-
return message;
|
|
6731
|
-
}
|
|
6732
|
-
};
|
|
6733
|
-
function createBaseProofIden3() {
|
|
6734
|
-
return { siblings: new Uint8Array(0) };
|
|
6735
|
-
}
|
|
6736
|
-
var ProofIden3 = {
|
|
6737
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6738
|
-
if (message.siblings.length !== 0) {
|
|
6739
|
-
writer.uint32(10).bytes(message.siblings);
|
|
6740
|
-
}
|
|
6741
|
-
return writer;
|
|
6742
|
-
},
|
|
6743
|
-
decode(input, length) {
|
|
6744
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6745
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6746
|
-
const message = createBaseProofIden3();
|
|
6747
|
-
while (reader.pos < end) {
|
|
6748
|
-
const tag = reader.uint32();
|
|
6749
|
-
switch (tag >>> 3) {
|
|
6750
|
-
case 1:
|
|
6751
|
-
if (tag !== 10) {
|
|
6752
|
-
break;
|
|
6753
|
-
}
|
|
6754
|
-
message.siblings = reader.bytes();
|
|
6755
|
-
continue;
|
|
6756
|
-
}
|
|
6757
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6758
|
-
break;
|
|
6759
|
-
}
|
|
6760
|
-
reader.skipType(tag & 7);
|
|
6761
|
-
}
|
|
6762
|
-
return message;
|
|
6763
|
-
},
|
|
6764
|
-
fromJSON(object) {
|
|
6765
|
-
return { siblings: isSet8(object.siblings) ? bytesFromBase643(object.siblings) : new Uint8Array(0) };
|
|
6766
|
-
},
|
|
6767
|
-
toJSON(message) {
|
|
6768
|
-
const obj = {};
|
|
6769
|
-
if (message.siblings.length !== 0) {
|
|
6770
|
-
obj.siblings = base64FromBytes3(message.siblings);
|
|
6771
|
-
}
|
|
6772
|
-
return obj;
|
|
6773
|
-
},
|
|
6774
|
-
create(base) {
|
|
6775
|
-
return ProofIden3.fromPartial(base ?? {});
|
|
6776
|
-
},
|
|
6777
|
-
fromPartial(object) {
|
|
6778
|
-
const message = createBaseProofIden3();
|
|
6779
|
-
message.siblings = object.siblings ?? new Uint8Array(0);
|
|
6780
|
-
return message;
|
|
6781
|
-
}
|
|
6782
|
-
};
|
|
6783
6666
|
function createBaseProofEthereumStorage() {
|
|
6784
6667
|
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
6785
6668
|
}
|
|
@@ -6833,7 +6716,7 @@ var ProofEthereumStorage = {
|
|
|
6833
6716
|
return {
|
|
6834
6717
|
key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
|
|
6835
6718
|
value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
|
|
6836
|
-
siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6719
|
+
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6837
6720
|
};
|
|
6838
6721
|
},
|
|
6839
6722
|
toJSON(message) {
|
|
@@ -6939,7 +6822,7 @@ var ProofEthereumAccount = {
|
|
|
6939
6822
|
balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
|
|
6940
6823
|
storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
|
|
6941
6824
|
codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
|
|
6942
|
-
siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6825
|
+
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6943
6826
|
};
|
|
6944
6827
|
},
|
|
6945
6828
|
toJSON(message) {
|
|
@@ -7369,11 +7252,11 @@ var ProofZkSNARK = {
|
|
|
7369
7252
|
},
|
|
7370
7253
|
fromJSON(object) {
|
|
7371
7254
|
return {
|
|
7372
|
-
circuitParametersIndex: isSet8(object.circuitParametersIndex) ? Number(object.circuitParametersIndex) : 0,
|
|
7373
|
-
a: Array.isArray(object?.a) ? object.a.map((e) => String(e)) : [],
|
|
7374
|
-
b: Array.isArray(object?.b) ? object.b.map((e) => String(e)) : [],
|
|
7375
|
-
c: Array.isArray(object?.c) ? object.c.map((e) => String(e)) : [],
|
|
7376
|
-
publicInputs: Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => String(e)) : []
|
|
7255
|
+
circuitParametersIndex: isSet8(object.circuitParametersIndex) ? globalThis.Number(object.circuitParametersIndex) : 0,
|
|
7256
|
+
a: globalThis.Array.isArray(object?.a) ? object.a.map((e) => globalThis.String(e)) : [],
|
|
7257
|
+
b: globalThis.Array.isArray(object?.b) ? object.b.map((e) => globalThis.String(e)) : [],
|
|
7258
|
+
c: globalThis.Array.isArray(object?.c) ? object.c.map((e) => globalThis.String(e)) : [],
|
|
7259
|
+
publicInputs: globalThis.Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => globalThis.String(e)) : []
|
|
7377
7260
|
};
|
|
7378
7261
|
},
|
|
7379
7262
|
toJSON(message) {
|
|
@@ -7477,11 +7360,11 @@ var Account2 = {
|
|
|
7477
7360
|
},
|
|
7478
7361
|
fromJSON(object) {
|
|
7479
7362
|
return {
|
|
7480
|
-
balance: isSet8(object.balance) ? Number(object.balance) : 0,
|
|
7481
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
7482
|
-
infoURI: isSet8(object.infoURI) ? String(object.infoURI) : "",
|
|
7483
|
-
delegateAddrs: Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase643(e)) : [],
|
|
7484
|
-
processIndex: isSet8(object.processIndex) ? Number(object.processIndex) : 0
|
|
7363
|
+
balance: isSet8(object.balance) ? globalThis.Number(object.balance) : 0,
|
|
7364
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
7365
|
+
infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : "",
|
|
7366
|
+
delegateAddrs: globalThis.Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase643(e)) : [],
|
|
7367
|
+
processIndex: isSet8(object.processIndex) ? globalThis.Number(object.processIndex) : 0
|
|
7485
7368
|
};
|
|
7486
7369
|
},
|
|
7487
7370
|
toJSON(message) {
|
|
@@ -7516,72 +7399,6 @@ var Account2 = {
|
|
|
7516
7399
|
return message;
|
|
7517
7400
|
}
|
|
7518
7401
|
};
|
|
7519
|
-
function createBaseTreasurer() {
|
|
7520
|
-
return { address: new Uint8Array(0), nonce: 0 };
|
|
7521
|
-
}
|
|
7522
|
-
var Treasurer = {
|
|
7523
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7524
|
-
if (message.address.length !== 0) {
|
|
7525
|
-
writer.uint32(10).bytes(message.address);
|
|
7526
|
-
}
|
|
7527
|
-
if (message.nonce !== 0) {
|
|
7528
|
-
writer.uint32(16).uint32(message.nonce);
|
|
7529
|
-
}
|
|
7530
|
-
return writer;
|
|
7531
|
-
},
|
|
7532
|
-
decode(input, length) {
|
|
7533
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7534
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7535
|
-
const message = createBaseTreasurer();
|
|
7536
|
-
while (reader.pos < end) {
|
|
7537
|
-
const tag = reader.uint32();
|
|
7538
|
-
switch (tag >>> 3) {
|
|
7539
|
-
case 1:
|
|
7540
|
-
if (tag !== 10) {
|
|
7541
|
-
break;
|
|
7542
|
-
}
|
|
7543
|
-
message.address = reader.bytes();
|
|
7544
|
-
continue;
|
|
7545
|
-
case 2:
|
|
7546
|
-
if (tag !== 16) {
|
|
7547
|
-
break;
|
|
7548
|
-
}
|
|
7549
|
-
message.nonce = reader.uint32();
|
|
7550
|
-
continue;
|
|
7551
|
-
}
|
|
7552
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7553
|
-
break;
|
|
7554
|
-
}
|
|
7555
|
-
reader.skipType(tag & 7);
|
|
7556
|
-
}
|
|
7557
|
-
return message;
|
|
7558
|
-
},
|
|
7559
|
-
fromJSON(object) {
|
|
7560
|
-
return {
|
|
7561
|
-
address: isSet8(object.address) ? bytesFromBase643(object.address) : new Uint8Array(0),
|
|
7562
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
|
|
7563
|
-
};
|
|
7564
|
-
},
|
|
7565
|
-
toJSON(message) {
|
|
7566
|
-
const obj = {};
|
|
7567
|
-
if (message.address.length !== 0) {
|
|
7568
|
-
obj.address = base64FromBytes3(message.address);
|
|
7569
|
-
}
|
|
7570
|
-
if (message.nonce !== 0) {
|
|
7571
|
-
obj.nonce = Math.round(message.nonce);
|
|
7572
|
-
}
|
|
7573
|
-
return obj;
|
|
7574
|
-
},
|
|
7575
|
-
create(base) {
|
|
7576
|
-
return Treasurer.fromPartial(base ?? {});
|
|
7577
|
-
},
|
|
7578
|
-
fromPartial(object) {
|
|
7579
|
-
const message = createBaseTreasurer();
|
|
7580
|
-
message.address = object.address ?? new Uint8Array(0);
|
|
7581
|
-
message.nonce = object.nonce ?? 0;
|
|
7582
|
-
return message;
|
|
7583
|
-
}
|
|
7584
|
-
};
|
|
7585
7402
|
function createBaseTx() {
|
|
7586
7403
|
return { payload: void 0 };
|
|
7587
7404
|
}
|
|
@@ -7603,9 +7420,6 @@ var Tx = {
|
|
|
7603
7420
|
case "registerKey":
|
|
7604
7421
|
RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
|
|
7605
7422
|
break;
|
|
7606
|
-
case "mintTokens":
|
|
7607
|
-
MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
|
|
7608
|
-
break;
|
|
7609
7423
|
case "sendTokens":
|
|
7610
7424
|
SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
|
|
7611
7425
|
break;
|
|
@@ -7670,12 +7484,6 @@ var Tx = {
|
|
|
7670
7484
|
}
|
|
7671
7485
|
message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
|
|
7672
7486
|
continue;
|
|
7673
|
-
case 6:
|
|
7674
|
-
if (tag !== 50) {
|
|
7675
|
-
break;
|
|
7676
|
-
}
|
|
7677
|
-
message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.decode(reader, reader.uint32()) };
|
|
7678
|
-
continue;
|
|
7679
7487
|
case 7:
|
|
7680
7488
|
if (tag !== 58) {
|
|
7681
7489
|
break;
|
|
@@ -7737,7 +7545,7 @@ var Tx = {
|
|
|
7737
7545
|
},
|
|
7738
7546
|
fromJSON(object) {
|
|
7739
7547
|
return {
|
|
7740
|
-
payload: isSet8(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet8(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet8(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet8(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet8(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet8(object.
|
|
7548
|
+
payload: isSet8(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet8(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet8(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet8(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet8(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet8(object.sendTokens) ? { $case: "sendTokens", sendTokens: SendTokensTx.fromJSON(object.sendTokens) } : isSet8(object.setTransactionCosts) ? {
|
|
7741
7549
|
$case: "setTransactionCosts",
|
|
7742
7550
|
setTransactionCosts: SetTransactionCostsTx.fromJSON(object.setTransactionCosts)
|
|
7743
7551
|
} : isSet8(object.setAccount) ? { $case: "setAccount", setAccount: SetAccountTx.fromJSON(object.setAccount) } : isSet8(object.collectFaucet) ? { $case: "collectFaucet", collectFaucet: CollectFaucetTx.fromJSON(object.collectFaucet) } : isSet8(object.setKeykeeper) ? { $case: "setKeykeeper", setKeykeeper: SetKeykeeperTx.fromJSON(object.setKeykeeper) } : isSet8(object.setSIK) ? { $case: "setSIK", setSIK: SIKTx.fromJSON(object.setSIK) } : isSet8(object.delSIK) ? { $case: "delSIK", delSIK: SIKTx.fromJSON(object.delSIK) } : isSet8(object.registerSIK) ? { $case: "registerSIK", registerSIK: RegisterSIKTx.fromJSON(object.registerSIK) } : void 0
|
|
@@ -7760,9 +7568,6 @@ var Tx = {
|
|
|
7760
7568
|
if (message.payload?.$case === "registerKey") {
|
|
7761
7569
|
obj.registerKey = RegisterKeyTx.toJSON(message.payload.registerKey);
|
|
7762
7570
|
}
|
|
7763
|
-
if (message.payload?.$case === "mintTokens") {
|
|
7764
|
-
obj.mintTokens = MintTokensTx.toJSON(message.payload.mintTokens);
|
|
7765
|
-
}
|
|
7766
7571
|
if (message.payload?.$case === "sendTokens") {
|
|
7767
7572
|
obj.sendTokens = SendTokensTx.toJSON(message.payload.sendTokens);
|
|
7768
7573
|
}
|
|
@@ -7809,9 +7614,6 @@ var Tx = {
|
|
|
7809
7614
|
if (object.payload?.$case === "registerKey" && object.payload?.registerKey !== void 0 && object.payload?.registerKey !== null) {
|
|
7810
7615
|
message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.fromPartial(object.payload.registerKey) };
|
|
7811
7616
|
}
|
|
7812
|
-
if (object.payload?.$case === "mintTokens" && object.payload?.mintTokens !== void 0 && object.payload?.mintTokens !== null) {
|
|
7813
|
-
message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.fromPartial(object.payload.mintTokens) };
|
|
7814
|
-
}
|
|
7815
7617
|
if (object.payload?.$case === "sendTokens" && object.payload?.sendTokens !== void 0 && object.payload?.sendTokens !== null) {
|
|
7816
7618
|
message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.fromPartial(object.payload.sendTokens) };
|
|
7817
7619
|
}
|
|
@@ -7966,7 +7768,7 @@ var NewProcessTx = {
|
|
|
7966
7768
|
fromJSON(object) {
|
|
7967
7769
|
return {
|
|
7968
7770
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
7969
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
7771
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
7970
7772
|
process: isSet8(object.process) ? Process.fromJSON(object.process) : void 0
|
|
7971
7773
|
};
|
|
7972
7774
|
},
|
|
@@ -8005,7 +7807,8 @@ function createBaseSetProcessTx() {
|
|
|
8005
7807
|
censusURI: void 0,
|
|
8006
7808
|
proof: void 0,
|
|
8007
7809
|
results: void 0,
|
|
8008
|
-
tempSIKs: void 0
|
|
7810
|
+
tempSIKs: void 0,
|
|
7811
|
+
duration: void 0
|
|
8009
7812
|
};
|
|
8010
7813
|
}
|
|
8011
7814
|
var SetProcessTx = {
|
|
@@ -8040,6 +7843,9 @@ var SetProcessTx = {
|
|
|
8040
7843
|
if (message.tempSIKs !== void 0) {
|
|
8041
7844
|
writer.uint32(80).bool(message.tempSIKs);
|
|
8042
7845
|
}
|
|
7846
|
+
if (message.duration !== void 0) {
|
|
7847
|
+
writer.uint32(88).uint32(message.duration);
|
|
7848
|
+
}
|
|
8043
7849
|
return writer;
|
|
8044
7850
|
},
|
|
8045
7851
|
decode(input, length) {
|
|
@@ -8109,6 +7915,12 @@ var SetProcessTx = {
|
|
|
8109
7915
|
}
|
|
8110
7916
|
message.tempSIKs = reader.bool();
|
|
8111
7917
|
continue;
|
|
7918
|
+
case 11:
|
|
7919
|
+
if (tag !== 88) {
|
|
7920
|
+
break;
|
|
7921
|
+
}
|
|
7922
|
+
message.duration = reader.uint32();
|
|
7923
|
+
continue;
|
|
8112
7924
|
}
|
|
8113
7925
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8114
7926
|
break;
|
|
@@ -8120,15 +7932,16 @@ var SetProcessTx = {
|
|
|
8120
7932
|
fromJSON(object) {
|
|
8121
7933
|
return {
|
|
8122
7934
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8123
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
7935
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
8124
7936
|
processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
|
|
8125
7937
|
status: isSet8(object.status) ? processStatusFromJSON(object.status) : void 0,
|
|
8126
|
-
questionIndex: isSet8(object.questionIndex) ? Number(object.questionIndex) : void 0,
|
|
7938
|
+
questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
|
|
8127
7939
|
censusRoot: isSet8(object.censusRoot) ? bytesFromBase643(object.censusRoot) : void 0,
|
|
8128
|
-
censusURI: isSet8(object.censusURI) ? String(object.censusURI) : void 0,
|
|
7940
|
+
censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
|
|
8129
7941
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
8130
7942
|
results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
8131
|
-
tempSIKs: isSet8(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
|
|
7943
|
+
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
7944
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
|
|
8132
7945
|
};
|
|
8133
7946
|
},
|
|
8134
7947
|
toJSON(message) {
|
|
@@ -8163,6 +7976,9 @@ var SetProcessTx = {
|
|
|
8163
7976
|
if (message.tempSIKs !== void 0) {
|
|
8164
7977
|
obj.tempSIKs = message.tempSIKs;
|
|
8165
7978
|
}
|
|
7979
|
+
if (message.duration !== void 0) {
|
|
7980
|
+
obj.duration = Math.round(message.duration);
|
|
7981
|
+
}
|
|
8166
7982
|
return obj;
|
|
8167
7983
|
},
|
|
8168
7984
|
create(base) {
|
|
@@ -8180,6 +7996,7 @@ var SetProcessTx = {
|
|
|
8180
7996
|
message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
|
|
8181
7997
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
8182
7998
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
7999
|
+
message.duration = object.duration ?? void 0;
|
|
8183
8000
|
return message;
|
|
8184
8001
|
}
|
|
8185
8002
|
};
|
|
@@ -8303,10 +8120,10 @@ var AdminTx = {
|
|
|
8303
8120
|
address: isSet8(object.address) ? bytesFromBase643(object.address) : void 0,
|
|
8304
8121
|
encryptionPrivateKey: isSet8(object.encryptionPrivateKey) ? bytesFromBase643(object.encryptionPrivateKey) : void 0,
|
|
8305
8122
|
encryptionPublicKey: isSet8(object.encryptionPublicKey) ? bytesFromBase643(object.encryptionPublicKey) : void 0,
|
|
8306
|
-
keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : void 0,
|
|
8307
|
-
power: isSet8(object.power) ? Number(object.power) : void 0,
|
|
8123
|
+
keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
|
|
8124
|
+
power: isSet8(object.power) ? globalThis.Number(object.power) : void 0,
|
|
8308
8125
|
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
|
|
8309
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
|
|
8126
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
|
|
8310
8127
|
};
|
|
8311
8128
|
},
|
|
8312
8129
|
toJSON(message) {
|
|
@@ -8426,11 +8243,11 @@ var RegisterKeyTx = {
|
|
|
8426
8243
|
},
|
|
8427
8244
|
fromJSON(object) {
|
|
8428
8245
|
return {
|
|
8429
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
8246
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
8430
8247
|
processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
|
|
8431
8248
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
8432
8249
|
newKey: isSet8(object.newKey) ? bytesFromBase643(object.newKey) : new Uint8Array(0),
|
|
8433
|
-
weight: isSet8(object.weight) ? String(object.weight) : ""
|
|
8250
|
+
weight: isSet8(object.weight) ? globalThis.String(object.weight) : ""
|
|
8434
8251
|
};
|
|
8435
8252
|
},
|
|
8436
8253
|
toJSON(message) {
|
|
@@ -8465,100 +8282,6 @@ var RegisterKeyTx = {
|
|
|
8465
8282
|
return message;
|
|
8466
8283
|
}
|
|
8467
8284
|
};
|
|
8468
|
-
function createBaseMintTokensTx() {
|
|
8469
|
-
return { txtype: 0, nonce: 0, to: new Uint8Array(0), value: 0 };
|
|
8470
|
-
}
|
|
8471
|
-
var MintTokensTx = {
|
|
8472
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
8473
|
-
if (message.txtype !== 0) {
|
|
8474
|
-
writer.uint32(8).int32(message.txtype);
|
|
8475
|
-
}
|
|
8476
|
-
if (message.nonce !== 0) {
|
|
8477
|
-
writer.uint32(16).uint32(message.nonce);
|
|
8478
|
-
}
|
|
8479
|
-
if (message.to.length !== 0) {
|
|
8480
|
-
writer.uint32(26).bytes(message.to);
|
|
8481
|
-
}
|
|
8482
|
-
if (message.value !== 0) {
|
|
8483
|
-
writer.uint32(32).uint64(message.value);
|
|
8484
|
-
}
|
|
8485
|
-
return writer;
|
|
8486
|
-
},
|
|
8487
|
-
decode(input, length) {
|
|
8488
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
8489
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
8490
|
-
const message = createBaseMintTokensTx();
|
|
8491
|
-
while (reader.pos < end) {
|
|
8492
|
-
const tag = reader.uint32();
|
|
8493
|
-
switch (tag >>> 3) {
|
|
8494
|
-
case 1:
|
|
8495
|
-
if (tag !== 8) {
|
|
8496
|
-
break;
|
|
8497
|
-
}
|
|
8498
|
-
message.txtype = reader.int32();
|
|
8499
|
-
continue;
|
|
8500
|
-
case 2:
|
|
8501
|
-
if (tag !== 16) {
|
|
8502
|
-
break;
|
|
8503
|
-
}
|
|
8504
|
-
message.nonce = reader.uint32();
|
|
8505
|
-
continue;
|
|
8506
|
-
case 3:
|
|
8507
|
-
if (tag !== 26) {
|
|
8508
|
-
break;
|
|
8509
|
-
}
|
|
8510
|
-
message.to = reader.bytes();
|
|
8511
|
-
continue;
|
|
8512
|
-
case 4:
|
|
8513
|
-
if (tag !== 32) {
|
|
8514
|
-
break;
|
|
8515
|
-
}
|
|
8516
|
-
message.value = longToNumber2(reader.uint64());
|
|
8517
|
-
continue;
|
|
8518
|
-
}
|
|
8519
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8520
|
-
break;
|
|
8521
|
-
}
|
|
8522
|
-
reader.skipType(tag & 7);
|
|
8523
|
-
}
|
|
8524
|
-
return message;
|
|
8525
|
-
},
|
|
8526
|
-
fromJSON(object) {
|
|
8527
|
-
return {
|
|
8528
|
-
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8529
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
8530
|
-
to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
|
|
8531
|
-
value: isSet8(object.value) ? Number(object.value) : 0
|
|
8532
|
-
};
|
|
8533
|
-
},
|
|
8534
|
-
toJSON(message) {
|
|
8535
|
-
const obj = {};
|
|
8536
|
-
if (message.txtype !== 0) {
|
|
8537
|
-
obj.txtype = txTypeToJSON(message.txtype);
|
|
8538
|
-
}
|
|
8539
|
-
if (message.nonce !== 0) {
|
|
8540
|
-
obj.nonce = Math.round(message.nonce);
|
|
8541
|
-
}
|
|
8542
|
-
if (message.to.length !== 0) {
|
|
8543
|
-
obj.to = base64FromBytes3(message.to);
|
|
8544
|
-
}
|
|
8545
|
-
if (message.value !== 0) {
|
|
8546
|
-
obj.value = Math.round(message.value);
|
|
8547
|
-
}
|
|
8548
|
-
return obj;
|
|
8549
|
-
},
|
|
8550
|
-
create(base) {
|
|
8551
|
-
return MintTokensTx.fromPartial(base ?? {});
|
|
8552
|
-
},
|
|
8553
|
-
fromPartial(object) {
|
|
8554
|
-
const message = createBaseMintTokensTx();
|
|
8555
|
-
message.txtype = object.txtype ?? 0;
|
|
8556
|
-
message.nonce = object.nonce ?? 0;
|
|
8557
|
-
message.to = object.to ?? new Uint8Array(0);
|
|
8558
|
-
message.value = object.value ?? 0;
|
|
8559
|
-
return message;
|
|
8560
|
-
}
|
|
8561
|
-
};
|
|
8562
8285
|
function createBaseSendTokensTx() {
|
|
8563
8286
|
return { txtype: 0, nonce: 0, from: new Uint8Array(0), to: new Uint8Array(0), value: 0 };
|
|
8564
8287
|
}
|
|
@@ -8629,10 +8352,10 @@ var SendTokensTx = {
|
|
|
8629
8352
|
fromJSON(object) {
|
|
8630
8353
|
return {
|
|
8631
8354
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8632
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
8355
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
8633
8356
|
from: isSet8(object.from) ? bytesFromBase643(object.from) : new Uint8Array(0),
|
|
8634
8357
|
to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
|
|
8635
|
-
value: isSet8(object.value) ? Number(object.value) : 0
|
|
8358
|
+
value: isSet8(object.value) ? globalThis.Number(object.value) : 0
|
|
8636
8359
|
};
|
|
8637
8360
|
},
|
|
8638
8361
|
toJSON(message) {
|
|
@@ -8719,8 +8442,8 @@ var SetTransactionCostsTx = {
|
|
|
8719
8442
|
fromJSON(object) {
|
|
8720
8443
|
return {
|
|
8721
8444
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8722
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
8723
|
-
value: isSet8(object.value) ? Number(object.value) : 0
|
|
8445
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
8446
|
+
value: isSet8(object.value) ? globalThis.Number(object.value) : 0
|
|
8724
8447
|
};
|
|
8725
8448
|
},
|
|
8726
8449
|
toJSON(message) {
|
|
@@ -8755,7 +8478,9 @@ function createBaseSetAccountTx() {
|
|
|
8755
8478
|
account: void 0,
|
|
8756
8479
|
faucetPackage: void 0,
|
|
8757
8480
|
delegates: [],
|
|
8758
|
-
SIK: void 0
|
|
8481
|
+
SIK: void 0,
|
|
8482
|
+
publicKey: void 0,
|
|
8483
|
+
name: void 0
|
|
8759
8484
|
};
|
|
8760
8485
|
}
|
|
8761
8486
|
var SetAccountTx = {
|
|
@@ -8781,6 +8506,12 @@ var SetAccountTx = {
|
|
|
8781
8506
|
if (message.SIK !== void 0) {
|
|
8782
8507
|
writer.uint32(58).bytes(message.SIK);
|
|
8783
8508
|
}
|
|
8509
|
+
if (message.publicKey !== void 0) {
|
|
8510
|
+
writer.uint32(66).bytes(message.publicKey);
|
|
8511
|
+
}
|
|
8512
|
+
if (message.name !== void 0) {
|
|
8513
|
+
writer.uint32(74).string(message.name);
|
|
8514
|
+
}
|
|
8784
8515
|
return writer;
|
|
8785
8516
|
},
|
|
8786
8517
|
decode(input, length) {
|
|
@@ -8832,6 +8563,18 @@ var SetAccountTx = {
|
|
|
8832
8563
|
}
|
|
8833
8564
|
message.SIK = reader.bytes();
|
|
8834
8565
|
continue;
|
|
8566
|
+
case 8:
|
|
8567
|
+
if (tag !== 66) {
|
|
8568
|
+
break;
|
|
8569
|
+
}
|
|
8570
|
+
message.publicKey = reader.bytes();
|
|
8571
|
+
continue;
|
|
8572
|
+
case 9:
|
|
8573
|
+
if (tag !== 74) {
|
|
8574
|
+
break;
|
|
8575
|
+
}
|
|
8576
|
+
message.name = reader.string();
|
|
8577
|
+
continue;
|
|
8835
8578
|
}
|
|
8836
8579
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8837
8580
|
break;
|
|
@@ -8843,12 +8586,14 @@ var SetAccountTx = {
|
|
|
8843
8586
|
fromJSON(object) {
|
|
8844
8587
|
return {
|
|
8845
8588
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8846
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : void 0,
|
|
8847
|
-
infoURI: isSet8(object.infoURI) ? String(object.infoURI) : void 0,
|
|
8589
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
|
|
8590
|
+
infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : void 0,
|
|
8848
8591
|
account: isSet8(object.account) ? bytesFromBase643(object.account) : void 0,
|
|
8849
8592
|
faucetPackage: isSet8(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
|
|
8850
|
-
delegates: Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase643(e)) : [],
|
|
8851
|
-
SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0
|
|
8593
|
+
delegates: globalThis.Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase643(e)) : [],
|
|
8594
|
+
SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0,
|
|
8595
|
+
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
|
|
8596
|
+
name: isSet8(object.name) ? globalThis.String(object.name) : void 0
|
|
8852
8597
|
};
|
|
8853
8598
|
},
|
|
8854
8599
|
toJSON(message) {
|
|
@@ -8874,6 +8619,12 @@ var SetAccountTx = {
|
|
|
8874
8619
|
if (message.SIK !== void 0) {
|
|
8875
8620
|
obj.SIK = base64FromBytes3(message.SIK);
|
|
8876
8621
|
}
|
|
8622
|
+
if (message.publicKey !== void 0) {
|
|
8623
|
+
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
8624
|
+
}
|
|
8625
|
+
if (message.name !== void 0) {
|
|
8626
|
+
obj.name = message.name;
|
|
8627
|
+
}
|
|
8877
8628
|
return obj;
|
|
8878
8629
|
},
|
|
8879
8630
|
create(base) {
|
|
@@ -8888,17 +8639,22 @@ var SetAccountTx = {
|
|
|
8888
8639
|
message.faucetPackage = object.faucetPackage !== void 0 && object.faucetPackage !== null ? FaucetPackage.fromPartial(object.faucetPackage) : void 0;
|
|
8889
8640
|
message.delegates = object.delegates?.map((e) => e) || [];
|
|
8890
8641
|
message.SIK = object.SIK ?? void 0;
|
|
8642
|
+
message.publicKey = object.publicKey ?? void 0;
|
|
8643
|
+
message.name = object.name ?? void 0;
|
|
8891
8644
|
return message;
|
|
8892
8645
|
}
|
|
8893
8646
|
};
|
|
8894
8647
|
function createBaseSIKTx() {
|
|
8895
|
-
return { txtype: 0, SIK: void 0 };
|
|
8648
|
+
return { txtype: 0, nonce: void 0, SIK: void 0 };
|
|
8896
8649
|
}
|
|
8897
8650
|
var SIKTx = {
|
|
8898
8651
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
8899
8652
|
if (message.txtype !== 0) {
|
|
8900
8653
|
writer.uint32(8).int32(message.txtype);
|
|
8901
8654
|
}
|
|
8655
|
+
if (message.nonce !== void 0) {
|
|
8656
|
+
writer.uint32(16).uint32(message.nonce);
|
|
8657
|
+
}
|
|
8902
8658
|
if (message.SIK !== void 0) {
|
|
8903
8659
|
writer.uint32(26).bytes(message.SIK);
|
|
8904
8660
|
}
|
|
@@ -8917,6 +8673,12 @@ var SIKTx = {
|
|
|
8917
8673
|
}
|
|
8918
8674
|
message.txtype = reader.int32();
|
|
8919
8675
|
continue;
|
|
8676
|
+
case 2:
|
|
8677
|
+
if (tag !== 16) {
|
|
8678
|
+
break;
|
|
8679
|
+
}
|
|
8680
|
+
message.nonce = reader.uint32();
|
|
8681
|
+
continue;
|
|
8920
8682
|
case 3:
|
|
8921
8683
|
if (tag !== 26) {
|
|
8922
8684
|
break;
|
|
@@ -8934,6 +8696,7 @@ var SIKTx = {
|
|
|
8934
8696
|
fromJSON(object) {
|
|
8935
8697
|
return {
|
|
8936
8698
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
8699
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
|
|
8937
8700
|
SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0
|
|
8938
8701
|
};
|
|
8939
8702
|
},
|
|
@@ -8942,6 +8705,9 @@ var SIKTx = {
|
|
|
8942
8705
|
if (message.txtype !== 0) {
|
|
8943
8706
|
obj.txtype = txTypeToJSON(message.txtype);
|
|
8944
8707
|
}
|
|
8708
|
+
if (message.nonce !== void 0) {
|
|
8709
|
+
obj.nonce = Math.round(message.nonce);
|
|
8710
|
+
}
|
|
8945
8711
|
if (message.SIK !== void 0) {
|
|
8946
8712
|
obj.SIK = base64FromBytes3(message.SIK);
|
|
8947
8713
|
}
|
|
@@ -8953,6 +8719,7 @@ var SIKTx = {
|
|
|
8953
8719
|
fromPartial(object) {
|
|
8954
8720
|
const message = createBaseSIKTx();
|
|
8955
8721
|
message.txtype = object.txtype ?? 0;
|
|
8722
|
+
message.nonce = object.nonce ?? void 0;
|
|
8956
8723
|
message.SIK = object.SIK ?? void 0;
|
|
8957
8724
|
return message;
|
|
8958
8725
|
}
|
|
@@ -9090,7 +8857,7 @@ var CollectFaucetTx = {
|
|
|
9090
8857
|
return {
|
|
9091
8858
|
txType: isSet8(object.txType) ? txTypeFromJSON(object.txType) : 0,
|
|
9092
8859
|
faucetPackage: isSet8(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
|
|
9093
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
|
|
8860
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
|
|
9094
8861
|
};
|
|
9095
8862
|
},
|
|
9096
8863
|
toJSON(message) {
|
|
@@ -9168,9 +8935,9 @@ var FaucetPayload = {
|
|
|
9168
8935
|
},
|
|
9169
8936
|
fromJSON(object) {
|
|
9170
8937
|
return {
|
|
9171
|
-
identifier: isSet8(object.identifier) ? Number(object.identifier) : 0,
|
|
8938
|
+
identifier: isSet8(object.identifier) ? globalThis.Number(object.identifier) : 0,
|
|
9172
8939
|
to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
|
|
9173
|
-
amount: isSet8(object.amount) ? Number(object.amount) : 0
|
|
8940
|
+
amount: isSet8(object.amount) ? globalThis.Number(object.amount) : 0
|
|
9174
8941
|
};
|
|
9175
8942
|
},
|
|
9176
8943
|
toJSON(message) {
|
|
@@ -9315,7 +9082,7 @@ var SetKeykeeperTx = {
|
|
|
9315
9082
|
fromJSON(object) {
|
|
9316
9083
|
return {
|
|
9317
9084
|
txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
|
|
9318
|
-
nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
|
|
9085
|
+
nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
|
|
9319
9086
|
keykeeper: isSet8(object.keykeeper) ? bytesFromBase643(object.keykeeper) : new Uint8Array(0)
|
|
9320
9087
|
};
|
|
9321
9088
|
},
|
|
@@ -9375,7 +9142,9 @@ function createBaseProcess() {
|
|
|
9375
9142
|
nullifiersRoot: void 0,
|
|
9376
9143
|
sourceNetworkContractAddr: void 0,
|
|
9377
9144
|
tokenDecimals: void 0,
|
|
9378
|
-
tempSIKs: void 0
|
|
9145
|
+
tempSIKs: void 0,
|
|
9146
|
+
startTime: 0,
|
|
9147
|
+
duration: 0
|
|
9379
9148
|
};
|
|
9380
9149
|
}
|
|
9381
9150
|
var Process = {
|
|
@@ -9473,6 +9242,12 @@ var Process = {
|
|
|
9473
9242
|
if (message.tempSIKs !== void 0) {
|
|
9474
9243
|
writer.uint32(272).bool(message.tempSIKs);
|
|
9475
9244
|
}
|
|
9245
|
+
if (message.startTime !== 0) {
|
|
9246
|
+
writer.uint32(280).uint32(message.startTime);
|
|
9247
|
+
}
|
|
9248
|
+
if (message.duration !== 0) {
|
|
9249
|
+
writer.uint32(288).uint32(message.duration);
|
|
9250
|
+
}
|
|
9476
9251
|
return writer;
|
|
9477
9252
|
},
|
|
9478
9253
|
decode(input, length) {
|
|
@@ -9668,6 +9443,18 @@ var Process = {
|
|
|
9668
9443
|
}
|
|
9669
9444
|
message.tempSIKs = reader.bool();
|
|
9670
9445
|
continue;
|
|
9446
|
+
case 35:
|
|
9447
|
+
if (tag !== 280) {
|
|
9448
|
+
break;
|
|
9449
|
+
}
|
|
9450
|
+
message.startTime = reader.uint32();
|
|
9451
|
+
continue;
|
|
9452
|
+
case 36:
|
|
9453
|
+
if (tag !== 288) {
|
|
9454
|
+
break;
|
|
9455
|
+
}
|
|
9456
|
+
message.duration = reader.uint32();
|
|
9457
|
+
continue;
|
|
9671
9458
|
}
|
|
9672
9459
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9673
9460
|
break;
|
|
@@ -9680,35 +9467,37 @@ var Process = {
|
|
|
9680
9467
|
return {
|
|
9681
9468
|
processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
|
|
9682
9469
|
entityId: isSet8(object.entityId) ? bytesFromBase643(object.entityId) : new Uint8Array(0),
|
|
9683
|
-
startBlock: isSet8(object.startBlock) ? Number(object.startBlock) : 0,
|
|
9684
|
-
blockCount: isSet8(object.blockCount) ? Number(object.blockCount) : 0,
|
|
9470
|
+
startBlock: isSet8(object.startBlock) ? globalThis.Number(object.startBlock) : 0,
|
|
9471
|
+
blockCount: isSet8(object.blockCount) ? globalThis.Number(object.blockCount) : 0,
|
|
9685
9472
|
censusRoot: isSet8(object.censusRoot) ? bytesFromBase643(object.censusRoot) : new Uint8Array(0),
|
|
9686
|
-
censusURI: isSet8(object.censusURI) ? String(object.censusURI) : void 0,
|
|
9687
|
-
encryptionPrivateKeys: Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => String(e)) : [],
|
|
9688
|
-
encryptionPublicKeys: Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => String(e)) : [],
|
|
9689
|
-
keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : void 0,
|
|
9473
|
+
censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
|
|
9474
|
+
encryptionPrivateKeys: globalThis.Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => globalThis.String(e)) : [],
|
|
9475
|
+
encryptionPublicKeys: globalThis.Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => globalThis.String(e)) : [],
|
|
9476
|
+
keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
|
|
9690
9477
|
status: isSet8(object.status) ? processStatusFromJSON(object.status) : 0,
|
|
9691
9478
|
paramsSignature: isSet8(object.paramsSignature) ? bytesFromBase643(object.paramsSignature) : void 0,
|
|
9692
|
-
namespace: isSet8(object.namespace) ? Number(object.namespace) : 0,
|
|
9479
|
+
namespace: isSet8(object.namespace) ? globalThis.Number(object.namespace) : 0,
|
|
9693
9480
|
envelopeType: isSet8(object.envelopeType) ? EnvelopeType.fromJSON(object.envelopeType) : void 0,
|
|
9694
9481
|
mode: isSet8(object.mode) ? ProcessMode.fromJSON(object.mode) : void 0,
|
|
9695
|
-
questionIndex: isSet8(object.questionIndex) ? Number(object.questionIndex) : void 0,
|
|
9696
|
-
questionCount: isSet8(object.questionCount) ? Number(object.questionCount) : void 0,
|
|
9482
|
+
questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
|
|
9483
|
+
questionCount: isSet8(object.questionCount) ? globalThis.Number(object.questionCount) : void 0,
|
|
9697
9484
|
voteOptions: isSet8(object.voteOptions) ? ProcessVoteOptions.fromJSON(object.voteOptions) : void 0,
|
|
9698
9485
|
censusOrigin: isSet8(object.censusOrigin) ? censusOriginFromJSON(object.censusOrigin) : 0,
|
|
9699
9486
|
results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
9700
|
-
ethIndexSlot: isSet8(object.ethIndexSlot) ? Number(object.ethIndexSlot) : void 0,
|
|
9701
|
-
sourceBlockHeight: isSet8(object.sourceBlockHeight) ? Number(object.sourceBlockHeight) : void 0,
|
|
9487
|
+
ethIndexSlot: isSet8(object.ethIndexSlot) ? globalThis.Number(object.ethIndexSlot) : void 0,
|
|
9488
|
+
sourceBlockHeight: isSet8(object.sourceBlockHeight) ? globalThis.Number(object.sourceBlockHeight) : void 0,
|
|
9702
9489
|
owner: isSet8(object.owner) ? bytesFromBase643(object.owner) : void 0,
|
|
9703
|
-
metadata: isSet8(object.metadata) ? String(object.metadata) : void 0,
|
|
9490
|
+
metadata: isSet8(object.metadata) ? globalThis.String(object.metadata) : void 0,
|
|
9704
9491
|
sourceNetworkId: isSet8(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
|
|
9705
|
-
maxCensusSize: isSet8(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
|
|
9492
|
+
maxCensusSize: isSet8(object.maxCensusSize) ? globalThis.Number(object.maxCensusSize) : 0,
|
|
9706
9493
|
rollingCensusRoot: isSet8(object.rollingCensusRoot) ? bytesFromBase643(object.rollingCensusRoot) : void 0,
|
|
9707
|
-
rollingCensusSize: isSet8(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
|
|
9494
|
+
rollingCensusSize: isSet8(object.rollingCensusSize) ? globalThis.Number(object.rollingCensusSize) : void 0,
|
|
9708
9495
|
nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
|
|
9709
9496
|
sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
|
|
9710
|
-
tokenDecimals: isSet8(object.tokenDecimals) ? Number(object.tokenDecimals) : void 0,
|
|
9711
|
-
tempSIKs: isSet8(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
|
|
9497
|
+
tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
|
|
9498
|
+
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
9499
|
+
startTime: isSet8(object.startTime) ? globalThis.Number(object.startTime) : 0,
|
|
9500
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : 0
|
|
9712
9501
|
};
|
|
9713
9502
|
},
|
|
9714
9503
|
toJSON(message) {
|
|
@@ -9806,6 +9595,12 @@ var Process = {
|
|
|
9806
9595
|
if (message.tempSIKs !== void 0) {
|
|
9807
9596
|
obj.tempSIKs = message.tempSIKs;
|
|
9808
9597
|
}
|
|
9598
|
+
if (message.startTime !== 0) {
|
|
9599
|
+
obj.startTime = Math.round(message.startTime);
|
|
9600
|
+
}
|
|
9601
|
+
if (message.duration !== 0) {
|
|
9602
|
+
obj.duration = Math.round(message.duration);
|
|
9603
|
+
}
|
|
9809
9604
|
return obj;
|
|
9810
9605
|
},
|
|
9811
9606
|
create(base) {
|
|
@@ -9844,6 +9639,8 @@ var Process = {
|
|
|
9844
9639
|
message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
|
|
9845
9640
|
message.tokenDecimals = object.tokenDecimals ?? void 0;
|
|
9846
9641
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
9642
|
+
message.startTime = object.startTime ?? 0;
|
|
9643
|
+
message.duration = object.duration ?? 0;
|
|
9847
9644
|
return message;
|
|
9848
9645
|
}
|
|
9849
9646
|
};
|
|
@@ -9916,11 +9713,11 @@ var EnvelopeType = {
|
|
|
9916
9713
|
},
|
|
9917
9714
|
fromJSON(object) {
|
|
9918
9715
|
return {
|
|
9919
|
-
serial: isSet8(object.serial) ? Boolean(object.serial) : false,
|
|
9920
|
-
anonymous: isSet8(object.anonymous) ? Boolean(object.anonymous) : false,
|
|
9921
|
-
encryptedVotes: isSet8(object.encryptedVotes) ? Boolean(object.encryptedVotes) : false,
|
|
9922
|
-
uniqueValues: isSet8(object.uniqueValues) ? Boolean(object.uniqueValues) : false,
|
|
9923
|
-
costFromWeight: isSet8(object.costFromWeight) ? Boolean(object.costFromWeight) : false
|
|
9716
|
+
serial: isSet8(object.serial) ? globalThis.Boolean(object.serial) : false,
|
|
9717
|
+
anonymous: isSet8(object.anonymous) ? globalThis.Boolean(object.anonymous) : false,
|
|
9718
|
+
encryptedVotes: isSet8(object.encryptedVotes) ? globalThis.Boolean(object.encryptedVotes) : false,
|
|
9719
|
+
uniqueValues: isSet8(object.uniqueValues) ? globalThis.Boolean(object.uniqueValues) : false,
|
|
9720
|
+
costFromWeight: isSet8(object.costFromWeight) ? globalThis.Boolean(object.costFromWeight) : false
|
|
9924
9721
|
};
|
|
9925
9722
|
},
|
|
9926
9723
|
toJSON(message) {
|
|
@@ -10024,11 +9821,11 @@ var ProcessMode = {
|
|
|
10024
9821
|
},
|
|
10025
9822
|
fromJSON(object) {
|
|
10026
9823
|
return {
|
|
10027
|
-
autoStart: isSet8(object.autoStart) ? Boolean(object.autoStart) : false,
|
|
10028
|
-
interruptible: isSet8(object.interruptible) ? Boolean(object.interruptible) : false,
|
|
10029
|
-
dynamicCensus: isSet8(object.dynamicCensus) ? Boolean(object.dynamicCensus) : false,
|
|
10030
|
-
encryptedMetaData: isSet8(object.encryptedMetaData) ? Boolean(object.encryptedMetaData) : false,
|
|
10031
|
-
preRegister: isSet8(object.preRegister) ? Boolean(object.preRegister) : false
|
|
9824
|
+
autoStart: isSet8(object.autoStart) ? globalThis.Boolean(object.autoStart) : false,
|
|
9825
|
+
interruptible: isSet8(object.interruptible) ? globalThis.Boolean(object.interruptible) : false,
|
|
9826
|
+
dynamicCensus: isSet8(object.dynamicCensus) ? globalThis.Boolean(object.dynamicCensus) : false,
|
|
9827
|
+
encryptedMetaData: isSet8(object.encryptedMetaData) ? globalThis.Boolean(object.encryptedMetaData) : false,
|
|
9828
|
+
preRegister: isSet8(object.preRegister) ? globalThis.Boolean(object.preRegister) : false
|
|
10032
9829
|
};
|
|
10033
9830
|
},
|
|
10034
9831
|
toJSON(message) {
|
|
@@ -10132,11 +9929,11 @@ var ProcessVoteOptions = {
|
|
|
10132
9929
|
},
|
|
10133
9930
|
fromJSON(object) {
|
|
10134
9931
|
return {
|
|
10135
|
-
maxCount: isSet8(object.maxCount) ? Number(object.maxCount) : 0,
|
|
10136
|
-
maxValue: isSet8(object.maxValue) ? Number(object.maxValue) : 0,
|
|
10137
|
-
maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? Number(object.maxVoteOverwrites) : 0,
|
|
10138
|
-
maxTotalCost: isSet8(object.maxTotalCost) ? Number(object.maxTotalCost) : 0,
|
|
10139
|
-
costExponent: isSet8(object.costExponent) ? Number(object.costExponent) : 0
|
|
9932
|
+
maxCount: isSet8(object.maxCount) ? globalThis.Number(object.maxCount) : 0,
|
|
9933
|
+
maxValue: isSet8(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
|
|
9934
|
+
maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
|
|
9935
|
+
maxTotalCost: isSet8(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
|
|
9936
|
+
costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0
|
|
10140
9937
|
};
|
|
10141
9938
|
},
|
|
10142
9939
|
toJSON(message) {
|
|
@@ -10203,7 +10000,9 @@ var OracleList = {
|
|
|
10203
10000
|
return message;
|
|
10204
10001
|
},
|
|
10205
10002
|
fromJSON(object) {
|
|
10206
|
-
return {
|
|
10003
|
+
return {
|
|
10004
|
+
oracles: globalThis.Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase643(e)) : []
|
|
10005
|
+
};
|
|
10207
10006
|
},
|
|
10208
10007
|
toJSON(message) {
|
|
10209
10008
|
const obj = {};
|
|
@@ -10254,7 +10053,7 @@ var ValidatorList = {
|
|
|
10254
10053
|
},
|
|
10255
10054
|
fromJSON(object) {
|
|
10256
10055
|
return {
|
|
10257
|
-
validators: Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
|
|
10056
|
+
validators: globalThis.Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
|
|
10258
10057
|
};
|
|
10259
10058
|
},
|
|
10260
10059
|
toJSON(message) {
|
|
@@ -10274,7 +10073,18 @@ var ValidatorList = {
|
|
|
10274
10073
|
}
|
|
10275
10074
|
};
|
|
10276
10075
|
function createBaseValidator() {
|
|
10277
|
-
return {
|
|
10076
|
+
return {
|
|
10077
|
+
address: new Uint8Array(0),
|
|
10078
|
+
pubKey: new Uint8Array(0),
|
|
10079
|
+
power: 0,
|
|
10080
|
+
name: "",
|
|
10081
|
+
keyIndex: 0,
|
|
10082
|
+
height: 0,
|
|
10083
|
+
proposals: 0,
|
|
10084
|
+
votes: 0,
|
|
10085
|
+
validatorAddress: new Uint8Array(0),
|
|
10086
|
+
score: 0
|
|
10087
|
+
};
|
|
10278
10088
|
}
|
|
10279
10089
|
var Validator = {
|
|
10280
10090
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
@@ -10293,6 +10103,21 @@ var Validator = {
|
|
|
10293
10103
|
if (message.keyIndex !== 0) {
|
|
10294
10104
|
writer.uint32(40).uint32(message.keyIndex);
|
|
10295
10105
|
}
|
|
10106
|
+
if (message.height !== 0) {
|
|
10107
|
+
writer.uint32(48).uint64(message.height);
|
|
10108
|
+
}
|
|
10109
|
+
if (message.proposals !== 0) {
|
|
10110
|
+
writer.uint32(56).uint64(message.proposals);
|
|
10111
|
+
}
|
|
10112
|
+
if (message.votes !== 0) {
|
|
10113
|
+
writer.uint32(64).uint64(message.votes);
|
|
10114
|
+
}
|
|
10115
|
+
if (message.validatorAddress.length !== 0) {
|
|
10116
|
+
writer.uint32(74).bytes(message.validatorAddress);
|
|
10117
|
+
}
|
|
10118
|
+
if (message.score !== 0) {
|
|
10119
|
+
writer.uint32(80).uint32(message.score);
|
|
10120
|
+
}
|
|
10296
10121
|
return writer;
|
|
10297
10122
|
},
|
|
10298
10123
|
decode(input, length) {
|
|
@@ -10332,6 +10157,36 @@ var Validator = {
|
|
|
10332
10157
|
}
|
|
10333
10158
|
message.keyIndex = reader.uint32();
|
|
10334
10159
|
continue;
|
|
10160
|
+
case 6:
|
|
10161
|
+
if (tag !== 48) {
|
|
10162
|
+
break;
|
|
10163
|
+
}
|
|
10164
|
+
message.height = longToNumber2(reader.uint64());
|
|
10165
|
+
continue;
|
|
10166
|
+
case 7:
|
|
10167
|
+
if (tag !== 56) {
|
|
10168
|
+
break;
|
|
10169
|
+
}
|
|
10170
|
+
message.proposals = longToNumber2(reader.uint64());
|
|
10171
|
+
continue;
|
|
10172
|
+
case 8:
|
|
10173
|
+
if (tag !== 64) {
|
|
10174
|
+
break;
|
|
10175
|
+
}
|
|
10176
|
+
message.votes = longToNumber2(reader.uint64());
|
|
10177
|
+
continue;
|
|
10178
|
+
case 9:
|
|
10179
|
+
if (tag !== 74) {
|
|
10180
|
+
break;
|
|
10181
|
+
}
|
|
10182
|
+
message.validatorAddress = reader.bytes();
|
|
10183
|
+
continue;
|
|
10184
|
+
case 10:
|
|
10185
|
+
if (tag !== 80) {
|
|
10186
|
+
break;
|
|
10187
|
+
}
|
|
10188
|
+
message.score = reader.uint32();
|
|
10189
|
+
continue;
|
|
10335
10190
|
}
|
|
10336
10191
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10337
10192
|
break;
|
|
@@ -10344,9 +10199,14 @@ var Validator = {
|
|
|
10344
10199
|
return {
|
|
10345
10200
|
address: isSet8(object.address) ? bytesFromBase643(object.address) : new Uint8Array(0),
|
|
10346
10201
|
pubKey: isSet8(object.pubKey) ? bytesFromBase643(object.pubKey) : new Uint8Array(0),
|
|
10347
|
-
power: isSet8(object.power) ? Number(object.power) : 0,
|
|
10348
|
-
name: isSet8(object.name) ? String(object.name) : "",
|
|
10349
|
-
keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : 0
|
|
10202
|
+
power: isSet8(object.power) ? globalThis.Number(object.power) : 0,
|
|
10203
|
+
name: isSet8(object.name) ? globalThis.String(object.name) : "",
|
|
10204
|
+
keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : 0,
|
|
10205
|
+
height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
|
|
10206
|
+
proposals: isSet8(object.proposals) ? globalThis.Number(object.proposals) : 0,
|
|
10207
|
+
votes: isSet8(object.votes) ? globalThis.Number(object.votes) : 0,
|
|
10208
|
+
validatorAddress: isSet8(object.validatorAddress) ? bytesFromBase643(object.validatorAddress) : new Uint8Array(0),
|
|
10209
|
+
score: isSet8(object.score) ? globalThis.Number(object.score) : 0
|
|
10350
10210
|
};
|
|
10351
10211
|
},
|
|
10352
10212
|
toJSON(message) {
|
|
@@ -10366,6 +10226,21 @@ var Validator = {
|
|
|
10366
10226
|
if (message.keyIndex !== 0) {
|
|
10367
10227
|
obj.keyIndex = Math.round(message.keyIndex);
|
|
10368
10228
|
}
|
|
10229
|
+
if (message.height !== 0) {
|
|
10230
|
+
obj.height = Math.round(message.height);
|
|
10231
|
+
}
|
|
10232
|
+
if (message.proposals !== 0) {
|
|
10233
|
+
obj.proposals = Math.round(message.proposals);
|
|
10234
|
+
}
|
|
10235
|
+
if (message.votes !== 0) {
|
|
10236
|
+
obj.votes = Math.round(message.votes);
|
|
10237
|
+
}
|
|
10238
|
+
if (message.validatorAddress.length !== 0) {
|
|
10239
|
+
obj.validatorAddress = base64FromBytes3(message.validatorAddress);
|
|
10240
|
+
}
|
|
10241
|
+
if (message.score !== 0) {
|
|
10242
|
+
obj.score = Math.round(message.score);
|
|
10243
|
+
}
|
|
10369
10244
|
return obj;
|
|
10370
10245
|
},
|
|
10371
10246
|
create(base) {
|
|
@@ -10378,6 +10253,11 @@ var Validator = {
|
|
|
10378
10253
|
message.power = object.power ?? 0;
|
|
10379
10254
|
message.name = object.name ?? "";
|
|
10380
10255
|
message.keyIndex = object.keyIndex ?? 0;
|
|
10256
|
+
message.height = object.height ?? 0;
|
|
10257
|
+
message.proposals = object.proposals ?? 0;
|
|
10258
|
+
message.votes = object.votes ?? 0;
|
|
10259
|
+
message.validatorAddress = object.validatorAddress ?? new Uint8Array(0);
|
|
10260
|
+
message.score = object.score ?? 0;
|
|
10381
10261
|
return message;
|
|
10382
10262
|
}
|
|
10383
10263
|
};
|
|
@@ -10536,9 +10416,9 @@ var TendermintHeader = {
|
|
|
10536
10416
|
},
|
|
10537
10417
|
fromJSON(object) {
|
|
10538
10418
|
return {
|
|
10539
|
-
chainId: isSet8(object.chainId) ? String(object.chainId) : "",
|
|
10540
|
-
height: isSet8(object.height) ? Number(object.height) : 0,
|
|
10541
|
-
timestamp: isSet8(object.timestamp) ? Number(object.timestamp) : 0,
|
|
10419
|
+
chainId: isSet8(object.chainId) ? globalThis.String(object.chainId) : "",
|
|
10420
|
+
height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
|
|
10421
|
+
timestamp: isSet8(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
10542
10422
|
blockID: isSet8(object.blockID) ? bytesFromBase643(object.blockID) : new Uint8Array(0),
|
|
10543
10423
|
lastCommitHash: isSet8(object.lastCommitHash) ? bytesFromBase643(object.lastCommitHash) : new Uint8Array(0),
|
|
10544
10424
|
dataHash: isSet8(object.dataHash) ? bytesFromBase643(object.dataHash) : new Uint8Array(0),
|
|
@@ -10647,7 +10527,9 @@ var ProcessResult = {
|
|
|
10647
10527
|
return message;
|
|
10648
10528
|
},
|
|
10649
10529
|
fromJSON(object) {
|
|
10650
|
-
return {
|
|
10530
|
+
return {
|
|
10531
|
+
votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : []
|
|
10532
|
+
};
|
|
10651
10533
|
},
|
|
10652
10534
|
toJSON(message) {
|
|
10653
10535
|
const obj = {};
|
|
@@ -10697,7 +10579,9 @@ var QuestionResult = {
|
|
|
10697
10579
|
return message;
|
|
10698
10580
|
},
|
|
10699
10581
|
fromJSON(object) {
|
|
10700
|
-
return {
|
|
10582
|
+
return {
|
|
10583
|
+
question: globalThis.Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase643(e)) : []
|
|
10584
|
+
};
|
|
10701
10585
|
},
|
|
10702
10586
|
toJSON(message) {
|
|
10703
10587
|
const obj = {};
|
|
@@ -10748,7 +10632,7 @@ var ProcessEndingList = {
|
|
|
10748
10632
|
},
|
|
10749
10633
|
fromJSON(object) {
|
|
10750
10634
|
return {
|
|
10751
|
-
processList: Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
|
|
10635
|
+
processList: globalThis.Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
|
|
10752
10636
|
};
|
|
10753
10637
|
},
|
|
10754
10638
|
toJSON(message) {
|
|
@@ -10799,7 +10683,7 @@ var StoredKeys = {
|
|
|
10799
10683
|
return message;
|
|
10800
10684
|
},
|
|
10801
10685
|
fromJSON(object) {
|
|
10802
|
-
return { pids: Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
|
|
10686
|
+
return { pids: globalThis.Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
|
|
10803
10687
|
},
|
|
10804
10688
|
toJSON(message) {
|
|
10805
10689
|
const obj = {};
|
|
@@ -10817,26 +10701,11 @@ var StoredKeys = {
|
|
|
10817
10701
|
return message;
|
|
10818
10702
|
}
|
|
10819
10703
|
};
|
|
10820
|
-
var tsProtoGlobalThis3 = (() => {
|
|
10821
|
-
if (typeof globalThis !== "undefined") {
|
|
10822
|
-
return globalThis;
|
|
10823
|
-
}
|
|
10824
|
-
if (typeof self !== "undefined") {
|
|
10825
|
-
return self;
|
|
10826
|
-
}
|
|
10827
|
-
if (typeof window !== "undefined") {
|
|
10828
|
-
return window;
|
|
10829
|
-
}
|
|
10830
|
-
if (typeof global !== "undefined") {
|
|
10831
|
-
return global;
|
|
10832
|
-
}
|
|
10833
|
-
throw "Unable to locate global object";
|
|
10834
|
-
})();
|
|
10835
10704
|
function bytesFromBase643(b64) {
|
|
10836
|
-
if (
|
|
10837
|
-
return Uint8Array.from(
|
|
10705
|
+
if (globalThis.Buffer) {
|
|
10706
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
10838
10707
|
} else {
|
|
10839
|
-
const bin =
|
|
10708
|
+
const bin = globalThis.atob(b64);
|
|
10840
10709
|
const arr = new Uint8Array(bin.length);
|
|
10841
10710
|
for (let i = 0; i < bin.length; ++i) {
|
|
10842
10711
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -10845,19 +10714,19 @@ function bytesFromBase643(b64) {
|
|
|
10845
10714
|
}
|
|
10846
10715
|
}
|
|
10847
10716
|
function base64FromBytes3(arr) {
|
|
10848
|
-
if (
|
|
10849
|
-
return
|
|
10717
|
+
if (globalThis.Buffer) {
|
|
10718
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
10850
10719
|
} else {
|
|
10851
10720
|
const bin = [];
|
|
10852
10721
|
arr.forEach((byte) => {
|
|
10853
|
-
bin.push(String.fromCharCode(byte));
|
|
10722
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
10854
10723
|
});
|
|
10855
|
-
return
|
|
10724
|
+
return globalThis.btoa(bin.join(""));
|
|
10856
10725
|
}
|
|
10857
10726
|
}
|
|
10858
10727
|
function longToNumber2(long) {
|
|
10859
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
10860
|
-
throw new
|
|
10728
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
10729
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
10861
10730
|
}
|
|
10862
10731
|
return long.toNumber();
|
|
10863
10732
|
}
|