@vocdoni/proto 1.15.3 → 1.15.4
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-5d7943a4.d.ts} +664 -1788
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +406 -588
- package/build/js/index.mjs +406 -588
- 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 +234 -445
- package/build/js/vochain/index.mjs +234 -441
- package/package.json +5 -3
|
@@ -1195,7 +1195,11 @@ var require_reader = __commonJS({
|
|
|
1195
1195
|
this.pos += length;
|
|
1196
1196
|
if (Array.isArray(this.buf))
|
|
1197
1197
|
return this.buf.slice(start, end);
|
|
1198
|
-
|
|
1198
|
+
if (start === end) {
|
|
1199
|
+
var nativeBuffer = util.Buffer;
|
|
1200
|
+
return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
|
|
1201
|
+
}
|
|
1202
|
+
return this._slice.call(this.buf, start, end);
|
|
1199
1203
|
};
|
|
1200
1204
|
Reader.prototype.string = function read_string() {
|
|
1201
1205
|
var bytes = this.bytes();
|
|
@@ -1447,7 +1451,9 @@ var EntityMetadataStore = {
|
|
|
1447
1451
|
return message;
|
|
1448
1452
|
},
|
|
1449
1453
|
fromJSON(object) {
|
|
1450
|
-
return {
|
|
1454
|
+
return {
|
|
1455
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : []
|
|
1456
|
+
};
|
|
1451
1457
|
},
|
|
1452
1458
|
toJSON(message) {
|
|
1453
1459
|
const obj = {};
|
|
@@ -1632,8 +1638,8 @@ var EntityMetadata = {
|
|
|
1632
1638
|
},
|
|
1633
1639
|
fromJSON(object) {
|
|
1634
1640
|
return {
|
|
1635
|
-
version: isSet(object.version) ? String(object.version) : "",
|
|
1636
|
-
languages: Array.isArray(object?.languages) ? object.languages.map((e) => String(e)) : [],
|
|
1641
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1642
|
+
languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
|
|
1637
1643
|
name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
|
|
1638
1644
|
acc[key] = String(value);
|
|
1639
1645
|
return acc;
|
|
@@ -1648,11 +1654,11 @@ var EntityMetadata = {
|
|
|
1648
1654
|
return acc;
|
|
1649
1655
|
}, {}) : {},
|
|
1650
1656
|
media: isSet(object.media) ? EntityMetadata_Media.fromJSON(object.media) : void 0,
|
|
1651
|
-
actions: Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
|
|
1652
|
-
bootEntities: Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1653
|
-
fallbackBootNodeEntities: Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1654
|
-
trustedEntities: Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1655
|
-
censusServiceManagedEntities: Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1657
|
+
actions: globalThis.Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
|
|
1658
|
+
bootEntities: globalThis.Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1659
|
+
fallbackBootNodeEntities: globalThis.Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1660
|
+
trustedEntities: globalThis.Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1661
|
+
censusServiceManagedEntities: globalThis.Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
|
|
1656
1662
|
meta: isObject(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
1657
1663
|
acc[key] = String(value);
|
|
1658
1664
|
return acc;
|
|
@@ -1735,14 +1741,14 @@ var EntityMetadata = {
|
|
|
1735
1741
|
message.languages = object.languages?.map((e) => e) || [];
|
|
1736
1742
|
message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
|
|
1737
1743
|
if (value !== void 0) {
|
|
1738
|
-
acc[key] = String(value);
|
|
1744
|
+
acc[key] = globalThis.String(value);
|
|
1739
1745
|
}
|
|
1740
1746
|
return acc;
|
|
1741
1747
|
}, {});
|
|
1742
1748
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
1743
1749
|
(acc, [key, value]) => {
|
|
1744
1750
|
if (value !== void 0) {
|
|
1745
|
-
acc[key] = String(value);
|
|
1751
|
+
acc[key] = globalThis.String(value);
|
|
1746
1752
|
}
|
|
1747
1753
|
return acc;
|
|
1748
1754
|
},
|
|
@@ -1751,7 +1757,7 @@ var EntityMetadata = {
|
|
|
1751
1757
|
message.votingProcesses = object.votingProcesses !== void 0 && object.votingProcesses !== null ? EntityMetadata_VotingProcesses.fromPartial(object.votingProcesses) : void 0;
|
|
1752
1758
|
message.newsFeed = Object.entries(object.newsFeed ?? {}).reduce((acc, [key, value]) => {
|
|
1753
1759
|
if (value !== void 0) {
|
|
1754
|
-
acc[key] = String(value);
|
|
1760
|
+
acc[key] = globalThis.String(value);
|
|
1755
1761
|
}
|
|
1756
1762
|
return acc;
|
|
1757
1763
|
}, {});
|
|
@@ -1763,7 +1769,7 @@ var EntityMetadata = {
|
|
|
1763
1769
|
message.censusServiceManagedEntities = object.censusServiceManagedEntities?.map((e) => EntityReference.fromPartial(e)) || [];
|
|
1764
1770
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
1765
1771
|
if (value !== void 0) {
|
|
1766
|
-
acc[key] = String(value);
|
|
1772
|
+
acc[key] = globalThis.String(value);
|
|
1767
1773
|
}
|
|
1768
1774
|
return acc;
|
|
1769
1775
|
}, {});
|
|
@@ -1811,7 +1817,10 @@ var EntityMetadata_NameEntry = {
|
|
|
1811
1817
|
return message;
|
|
1812
1818
|
},
|
|
1813
1819
|
fromJSON(object) {
|
|
1814
|
-
return {
|
|
1820
|
+
return {
|
|
1821
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1822
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
1823
|
+
};
|
|
1815
1824
|
},
|
|
1816
1825
|
toJSON(message) {
|
|
1817
1826
|
const obj = {};
|
|
@@ -1874,7 +1883,10 @@ var EntityMetadata_DescriptionEntry = {
|
|
|
1874
1883
|
return message;
|
|
1875
1884
|
},
|
|
1876
1885
|
fromJSON(object) {
|
|
1877
|
-
return {
|
|
1886
|
+
return {
|
|
1887
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1888
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
1889
|
+
};
|
|
1878
1890
|
},
|
|
1879
1891
|
toJSON(message) {
|
|
1880
1892
|
const obj = {};
|
|
@@ -1938,8 +1950,8 @@ var EntityMetadata_VotingProcesses = {
|
|
|
1938
1950
|
},
|
|
1939
1951
|
fromJSON(object) {
|
|
1940
1952
|
return {
|
|
1941
|
-
active: Array.isArray(object?.active) ? object.active.map((e) => String(e)) : [],
|
|
1942
|
-
ended: Array.isArray(object?.ended) ? object.ended.map((e) => String(e)) : []
|
|
1953
|
+
active: globalThis.Array.isArray(object?.active) ? object.active.map((e) => globalThis.String(e)) : [],
|
|
1954
|
+
ended: globalThis.Array.isArray(object?.ended) ? object.ended.map((e) => globalThis.String(e)) : []
|
|
1943
1955
|
};
|
|
1944
1956
|
},
|
|
1945
1957
|
toJSON(message) {
|
|
@@ -2003,7 +2015,10 @@ var EntityMetadata_NewsFeedEntry = {
|
|
|
2003
2015
|
return message;
|
|
2004
2016
|
},
|
|
2005
2017
|
fromJSON(object) {
|
|
2006
|
-
return {
|
|
2018
|
+
return {
|
|
2019
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2020
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2021
|
+
};
|
|
2007
2022
|
},
|
|
2008
2023
|
toJSON(message) {
|
|
2009
2024
|
const obj = {};
|
|
@@ -2067,8 +2082,8 @@ var EntityMetadata_Media = {
|
|
|
2067
2082
|
},
|
|
2068
2083
|
fromJSON(object) {
|
|
2069
2084
|
return {
|
|
2070
|
-
avatar: isSet(object.avatar) ? String(object.avatar) : "",
|
|
2071
|
-
header: isSet(object.header) ? String(object.header) : ""
|
|
2085
|
+
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
2086
|
+
header: isSet(object.header) ? globalThis.String(object.header) : ""
|
|
2072
2087
|
};
|
|
2073
2088
|
},
|
|
2074
2089
|
toJSON(message) {
|
|
@@ -2172,15 +2187,15 @@ var EntityMetadata_Action = {
|
|
|
2172
2187
|
},
|
|
2173
2188
|
fromJSON(object) {
|
|
2174
2189
|
return {
|
|
2175
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
2176
|
-
actionKey: isSet(object.actionKey) ? String(object.actionKey) : "",
|
|
2190
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
2191
|
+
actionKey: isSet(object.actionKey) ? globalThis.String(object.actionKey) : "",
|
|
2177
2192
|
name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
|
|
2178
2193
|
acc[key] = String(value);
|
|
2179
2194
|
return acc;
|
|
2180
2195
|
}, {}) : {},
|
|
2181
|
-
visible: isSet(object.visible) ? String(object.visible) : "",
|
|
2182
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
2183
|
-
imageSources: Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
|
|
2196
|
+
visible: isSet(object.visible) ? globalThis.String(object.visible) : "",
|
|
2197
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
2198
|
+
imageSources: globalThis.Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
|
|
2184
2199
|
};
|
|
2185
2200
|
},
|
|
2186
2201
|
toJSON(message) {
|
|
@@ -2220,7 +2235,7 @@ var EntityMetadata_Action = {
|
|
|
2220
2235
|
message.actionKey = object.actionKey ?? "";
|
|
2221
2236
|
message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
|
|
2222
2237
|
if (value !== void 0) {
|
|
2223
|
-
acc[key] = String(value);
|
|
2238
|
+
acc[key] = globalThis.String(value);
|
|
2224
2239
|
}
|
|
2225
2240
|
return acc;
|
|
2226
2241
|
}, {});
|
|
@@ -2271,7 +2286,10 @@ var EntityMetadata_Action_NameEntry = {
|
|
|
2271
2286
|
return message;
|
|
2272
2287
|
},
|
|
2273
2288
|
fromJSON(object) {
|
|
2274
|
-
return {
|
|
2289
|
+
return {
|
|
2290
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2291
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2292
|
+
};
|
|
2275
2293
|
},
|
|
2276
2294
|
toJSON(message) {
|
|
2277
2295
|
const obj = {};
|
|
@@ -2365,10 +2383,10 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2365
2383
|
},
|
|
2366
2384
|
fromJSON(object) {
|
|
2367
2385
|
return {
|
|
2368
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
2369
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2370
|
-
orientation: isSet(object.orientation) ? String(object.orientation) : "",
|
|
2371
|
-
overlay: isSet(object.overlay) ? String(object.overlay) : "",
|
|
2386
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
2387
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2388
|
+
orientation: isSet(object.orientation) ? globalThis.String(object.orientation) : "",
|
|
2389
|
+
overlay: isSet(object.overlay) ? globalThis.String(object.overlay) : "",
|
|
2372
2390
|
caption: isObject(object.caption) ? Object.entries(object.caption).reduce((acc, [key, value]) => {
|
|
2373
2391
|
acc[key] = String(value);
|
|
2374
2392
|
return acc;
|
|
@@ -2411,7 +2429,7 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2411
2429
|
message.overlay = object.overlay ?? "";
|
|
2412
2430
|
message.caption = Object.entries(object.caption ?? {}).reduce((acc, [key, value]) => {
|
|
2413
2431
|
if (value !== void 0) {
|
|
2414
|
-
acc[key] = String(value);
|
|
2432
|
+
acc[key] = globalThis.String(value);
|
|
2415
2433
|
}
|
|
2416
2434
|
return acc;
|
|
2417
2435
|
}, {});
|
|
@@ -2459,7 +2477,10 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
|
|
|
2459
2477
|
return message;
|
|
2460
2478
|
},
|
|
2461
2479
|
fromJSON(object) {
|
|
2462
|
-
return {
|
|
2480
|
+
return {
|
|
2481
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2482
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2483
|
+
};
|
|
2463
2484
|
},
|
|
2464
2485
|
toJSON(message) {
|
|
2465
2486
|
const obj = {};
|
|
@@ -2522,7 +2543,10 @@ var EntityMetadata_MetaEntry = {
|
|
|
2522
2543
|
return message;
|
|
2523
2544
|
},
|
|
2524
2545
|
fromJSON(object) {
|
|
2525
|
-
return {
|
|
2546
|
+
return {
|
|
2547
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2548
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
2549
|
+
};
|
|
2526
2550
|
},
|
|
2527
2551
|
toJSON(message) {
|
|
2528
2552
|
const obj = {};
|
|
@@ -2586,8 +2610,8 @@ var EntityReference = {
|
|
|
2586
2610
|
},
|
|
2587
2611
|
fromJSON(object) {
|
|
2588
2612
|
return {
|
|
2589
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
2590
|
-
entryPoints: Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => String(e)) : []
|
|
2613
|
+
entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
|
|
2614
|
+
entryPoints: globalThis.Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => globalThis.String(e)) : []
|
|
2591
2615
|
};
|
|
2592
2616
|
},
|
|
2593
2617
|
toJSON(message) {
|
|
@@ -2651,7 +2675,7 @@ var FeedStore = {
|
|
|
2651
2675
|
return message;
|
|
2652
2676
|
},
|
|
2653
2677
|
fromJSON(object) {
|
|
2654
|
-
return { items: Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
|
|
2678
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
|
|
2655
2679
|
},
|
|
2656
2680
|
toJSON(message) {
|
|
2657
2681
|
const obj = {};
|
|
@@ -2797,15 +2821,15 @@ var Feed = {
|
|
|
2797
2821
|
},
|
|
2798
2822
|
fromJSON(object) {
|
|
2799
2823
|
return {
|
|
2800
|
-
version: isSet2(object.version) ? String(object.version) : "",
|
|
2801
|
-
title: isSet2(object.title) ? String(object.title) : "",
|
|
2802
|
-
homePageUrl: isSet2(object.homePageUrl) ? String(object.homePageUrl) : "",
|
|
2803
|
-
description: isSet2(object.description) ? String(object.description) : "",
|
|
2804
|
-
feedUrl: isSet2(object.feedUrl) ? String(object.feedUrl) : "",
|
|
2805
|
-
icon: isSet2(object.icon) ? String(object.icon) : "",
|
|
2806
|
-
favicon: isSet2(object.favicon) ? String(object.favicon) : "",
|
|
2807
|
-
expired: isSet2(object.expired) ? Boolean(object.expired) : false,
|
|
2808
|
-
items: Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
|
|
2824
|
+
version: isSet2(object.version) ? globalThis.String(object.version) : "",
|
|
2825
|
+
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
2826
|
+
homePageUrl: isSet2(object.homePageUrl) ? globalThis.String(object.homePageUrl) : "",
|
|
2827
|
+
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
2828
|
+
feedUrl: isSet2(object.feedUrl) ? globalThis.String(object.feedUrl) : "",
|
|
2829
|
+
icon: isSet2(object.icon) ? globalThis.String(object.icon) : "",
|
|
2830
|
+
favicon: isSet2(object.favicon) ? globalThis.String(object.favicon) : "",
|
|
2831
|
+
expired: isSet2(object.expired) ? globalThis.Boolean(object.expired) : false,
|
|
2832
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
|
|
2809
2833
|
meta: isObject2(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
2810
2834
|
acc[key] = String(value);
|
|
2811
2835
|
return acc;
|
|
@@ -2868,7 +2892,7 @@ var Feed = {
|
|
|
2868
2892
|
message.items = object.items?.map((e) => FeedPost.fromPartial(e)) || [];
|
|
2869
2893
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
2870
2894
|
if (value !== void 0) {
|
|
2871
|
-
acc[key] = String(value);
|
|
2895
|
+
acc[key] = globalThis.String(value);
|
|
2872
2896
|
}
|
|
2873
2897
|
return acc;
|
|
2874
2898
|
}, {});
|
|
@@ -2916,7 +2940,10 @@ var Feed_MetaEntry = {
|
|
|
2916
2940
|
return message;
|
|
2917
2941
|
},
|
|
2918
2942
|
fromJSON(object) {
|
|
2919
|
-
return {
|
|
2943
|
+
return {
|
|
2944
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
2945
|
+
value: isSet2(object.value) ? globalThis.String(object.value) : ""
|
|
2946
|
+
};
|
|
2920
2947
|
},
|
|
2921
2948
|
toJSON(message) {
|
|
2922
2949
|
const obj = {};
|
|
@@ -3073,16 +3100,16 @@ var FeedPost = {
|
|
|
3073
3100
|
},
|
|
3074
3101
|
fromJSON(object) {
|
|
3075
3102
|
return {
|
|
3076
|
-
id: isSet2(object.id) ? String(object.id) : "",
|
|
3077
|
-
title: isSet2(object.title) ? String(object.title) : "",
|
|
3078
|
-
summary: isSet2(object.summary) ? String(object.summary) : "",
|
|
3079
|
-
contentText: isSet2(object.contentText) ? String(object.contentText) : "",
|
|
3080
|
-
contentHtml: isSet2(object.contentHtml) ? String(object.contentHtml) : "",
|
|
3081
|
-
url: isSet2(object.url) ? String(object.url) : "",
|
|
3082
|
-
image: isSet2(object.image) ? String(object.image) : "",
|
|
3083
|
-
tags: Array.isArray(object?.tags) ? object.tags.map((e) => String(e)) : [],
|
|
3084
|
-
datePublished: isSet2(object.datePublished) ? String(object.datePublished) : "",
|
|
3085
|
-
dateModified: isSet2(object.dateModified) ? String(object.dateModified) : "",
|
|
3103
|
+
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
3104
|
+
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
3105
|
+
summary: isSet2(object.summary) ? globalThis.String(object.summary) : "",
|
|
3106
|
+
contentText: isSet2(object.contentText) ? globalThis.String(object.contentText) : "",
|
|
3107
|
+
contentHtml: isSet2(object.contentHtml) ? globalThis.String(object.contentHtml) : "",
|
|
3108
|
+
url: isSet2(object.url) ? globalThis.String(object.url) : "",
|
|
3109
|
+
image: isSet2(object.image) ? globalThis.String(object.image) : "",
|
|
3110
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
3111
|
+
datePublished: isSet2(object.datePublished) ? globalThis.String(object.datePublished) : "",
|
|
3112
|
+
dateModified: isSet2(object.dateModified) ? globalThis.String(object.dateModified) : "",
|
|
3086
3113
|
author: isSet2(object.author) ? FeedPost_Author.fromJSON(object.author) : void 0
|
|
3087
3114
|
};
|
|
3088
3115
|
},
|
|
@@ -3183,7 +3210,10 @@ var FeedPost_Author = {
|
|
|
3183
3210
|
return message;
|
|
3184
3211
|
},
|
|
3185
3212
|
fromJSON(object) {
|
|
3186
|
-
return {
|
|
3213
|
+
return {
|
|
3214
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
3215
|
+
url: isSet2(object.url) ? globalThis.String(object.url) : ""
|
|
3216
|
+
};
|
|
3187
3217
|
},
|
|
3188
3218
|
toJSON(message) {
|
|
3189
3219
|
const obj = {};
|
|
@@ -3246,7 +3276,9 @@ var ProcessMetadataStore = {
|
|
|
3246
3276
|
return message;
|
|
3247
3277
|
},
|
|
3248
3278
|
fromJSON(object) {
|
|
3249
|
-
return {
|
|
3279
|
+
return {
|
|
3280
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : []
|
|
3281
|
+
};
|
|
3250
3282
|
},
|
|
3251
3283
|
toJSON(message) {
|
|
3252
3284
|
const obj = {};
|
|
@@ -3363,7 +3395,7 @@ var ProcessMetadata = {
|
|
|
3363
3395
|
},
|
|
3364
3396
|
fromJSON(object) {
|
|
3365
3397
|
return {
|
|
3366
|
-
version: isSet3(object.version) ? String(object.version) : "",
|
|
3398
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
3367
3399
|
title: isObject3(object.title) ? Object.entries(object.title).reduce((acc, [key, value]) => {
|
|
3368
3400
|
acc[key] = String(value);
|
|
3369
3401
|
return acc;
|
|
@@ -3376,7 +3408,7 @@ var ProcessMetadata = {
|
|
|
3376
3408
|
acc[key] = String(value);
|
|
3377
3409
|
return acc;
|
|
3378
3410
|
}, {}) : {},
|
|
3379
|
-
questions: Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
|
|
3411
|
+
questions: globalThis.Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
|
|
3380
3412
|
results: isSet3(object.results) ? ProcessMetadata_Results.fromJSON(object.results) : void 0,
|
|
3381
3413
|
meta: isObject3(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
3382
3414
|
acc[key] = String(value);
|
|
@@ -3441,14 +3473,14 @@ var ProcessMetadata = {
|
|
|
3441
3473
|
message.version = object.version ?? "";
|
|
3442
3474
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
3443
3475
|
if (value !== void 0) {
|
|
3444
|
-
acc[key] = String(value);
|
|
3476
|
+
acc[key] = globalThis.String(value);
|
|
3445
3477
|
}
|
|
3446
3478
|
return acc;
|
|
3447
3479
|
}, {});
|
|
3448
3480
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
3449
3481
|
(acc, [key, value]) => {
|
|
3450
3482
|
if (value !== void 0) {
|
|
3451
|
-
acc[key] = String(value);
|
|
3483
|
+
acc[key] = globalThis.String(value);
|
|
3452
3484
|
}
|
|
3453
3485
|
return acc;
|
|
3454
3486
|
},
|
|
@@ -3456,7 +3488,7 @@ var ProcessMetadata = {
|
|
|
3456
3488
|
);
|
|
3457
3489
|
message.media = Object.entries(object.media ?? {}).reduce((acc, [key, value]) => {
|
|
3458
3490
|
if (value !== void 0) {
|
|
3459
|
-
acc[key] = String(value);
|
|
3491
|
+
acc[key] = globalThis.String(value);
|
|
3460
3492
|
}
|
|
3461
3493
|
return acc;
|
|
3462
3494
|
}, {});
|
|
@@ -3464,7 +3496,7 @@ var ProcessMetadata = {
|
|
|
3464
3496
|
message.results = object.results !== void 0 && object.results !== null ? ProcessMetadata_Results.fromPartial(object.results) : void 0;
|
|
3465
3497
|
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
3466
3498
|
if (value !== void 0) {
|
|
3467
|
-
acc[key] = String(value);
|
|
3499
|
+
acc[key] = globalThis.String(value);
|
|
3468
3500
|
}
|
|
3469
3501
|
return acc;
|
|
3470
3502
|
}, {});
|
|
@@ -3512,7 +3544,10 @@ var ProcessMetadata_TitleEntry = {
|
|
|
3512
3544
|
return message;
|
|
3513
3545
|
},
|
|
3514
3546
|
fromJSON(object) {
|
|
3515
|
-
return {
|
|
3547
|
+
return {
|
|
3548
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3549
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3550
|
+
};
|
|
3516
3551
|
},
|
|
3517
3552
|
toJSON(message) {
|
|
3518
3553
|
const obj = {};
|
|
@@ -3575,7 +3610,10 @@ var ProcessMetadata_DescriptionEntry = {
|
|
|
3575
3610
|
return message;
|
|
3576
3611
|
},
|
|
3577
3612
|
fromJSON(object) {
|
|
3578
|
-
return {
|
|
3613
|
+
return {
|
|
3614
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3615
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3616
|
+
};
|
|
3579
3617
|
},
|
|
3580
3618
|
toJSON(message) {
|
|
3581
3619
|
const obj = {};
|
|
@@ -3638,7 +3676,10 @@ var ProcessMetadata_MediaEntry = {
|
|
|
3638
3676
|
return message;
|
|
3639
3677
|
},
|
|
3640
3678
|
fromJSON(object) {
|
|
3641
|
-
return {
|
|
3679
|
+
return {
|
|
3680
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3681
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3682
|
+
};
|
|
3642
3683
|
},
|
|
3643
3684
|
toJSON(message) {
|
|
3644
3685
|
const obj = {};
|
|
@@ -3725,7 +3766,7 @@ var ProcessMetadata_Question = {
|
|
|
3725
3766
|
acc[key] = String(value);
|
|
3726
3767
|
return acc;
|
|
3727
3768
|
}, {}) : {},
|
|
3728
|
-
choices: Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
|
|
3769
|
+
choices: globalThis.Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
|
|
3729
3770
|
};
|
|
3730
3771
|
},
|
|
3731
3772
|
toJSON(message) {
|
|
@@ -3760,14 +3801,14 @@ var ProcessMetadata_Question = {
|
|
|
3760
3801
|
const message = createBaseProcessMetadata_Question();
|
|
3761
3802
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
3762
3803
|
if (value !== void 0) {
|
|
3763
|
-
acc[key] = String(value);
|
|
3804
|
+
acc[key] = globalThis.String(value);
|
|
3764
3805
|
}
|
|
3765
3806
|
return acc;
|
|
3766
3807
|
}, {});
|
|
3767
3808
|
message.description = Object.entries(object.description ?? {}).reduce(
|
|
3768
3809
|
(acc, [key, value]) => {
|
|
3769
3810
|
if (value !== void 0) {
|
|
3770
|
-
acc[key] = String(value);
|
|
3811
|
+
acc[key] = globalThis.String(value);
|
|
3771
3812
|
}
|
|
3772
3813
|
return acc;
|
|
3773
3814
|
},
|
|
@@ -3818,7 +3859,10 @@ var ProcessMetadata_Question_TitleEntry = {
|
|
|
3818
3859
|
return message;
|
|
3819
3860
|
},
|
|
3820
3861
|
fromJSON(object) {
|
|
3821
|
-
return {
|
|
3862
|
+
return {
|
|
3863
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3864
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3865
|
+
};
|
|
3822
3866
|
},
|
|
3823
3867
|
toJSON(message) {
|
|
3824
3868
|
const obj = {};
|
|
@@ -3881,7 +3925,10 @@ var ProcessMetadata_Question_DescriptionEntry = {
|
|
|
3881
3925
|
return message;
|
|
3882
3926
|
},
|
|
3883
3927
|
fromJSON(object) {
|
|
3884
|
-
return {
|
|
3928
|
+
return {
|
|
3929
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
3930
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
3931
|
+
};
|
|
3885
3932
|
},
|
|
3886
3933
|
toJSON(message) {
|
|
3887
3934
|
const obj = {};
|
|
@@ -3952,7 +3999,7 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
3952
3999
|
acc[key] = String(value);
|
|
3953
4000
|
return acc;
|
|
3954
4001
|
}, {}) : {},
|
|
3955
|
-
value: isSet3(object.value) ? Number(object.value) : 0
|
|
4002
|
+
value: isSet3(object.value) ? globalThis.Number(object.value) : 0
|
|
3956
4003
|
};
|
|
3957
4004
|
},
|
|
3958
4005
|
toJSON(message) {
|
|
@@ -3978,7 +4025,7 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
3978
4025
|
const message = createBaseProcessMetadata_Question_VoteOption();
|
|
3979
4026
|
message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
|
|
3980
4027
|
if (value !== void 0) {
|
|
3981
|
-
acc[key] = String(value);
|
|
4028
|
+
acc[key] = globalThis.String(value);
|
|
3982
4029
|
}
|
|
3983
4030
|
return acc;
|
|
3984
4031
|
}, {});
|
|
@@ -4027,7 +4074,10 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
|
|
|
4027
4074
|
return message;
|
|
4028
4075
|
},
|
|
4029
4076
|
fromJSON(object) {
|
|
4030
|
-
return {
|
|
4077
|
+
return {
|
|
4078
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
4079
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
4080
|
+
};
|
|
4031
4081
|
},
|
|
4032
4082
|
toJSON(message) {
|
|
4033
4083
|
const obj = {};
|
|
@@ -4091,8 +4141,8 @@ var ProcessMetadata_Results = {
|
|
|
4091
4141
|
},
|
|
4092
4142
|
fromJSON(object) {
|
|
4093
4143
|
return {
|
|
4094
|
-
aggregation: isSet3(object.aggregation) ? String(object.aggregation) : "",
|
|
4095
|
-
display: isSet3(object.display) ? String(object.display) : ""
|
|
4144
|
+
aggregation: isSet3(object.aggregation) ? globalThis.String(object.aggregation) : "",
|
|
4145
|
+
display: isSet3(object.display) ? globalThis.String(object.display) : ""
|
|
4096
4146
|
};
|
|
4097
4147
|
},
|
|
4098
4148
|
toJSON(message) {
|
|
@@ -4156,7 +4206,10 @@ var ProcessMetadata_MetaEntry = {
|
|
|
4156
4206
|
return message;
|
|
4157
4207
|
},
|
|
4158
4208
|
fromJSON(object) {
|
|
4159
|
-
return {
|
|
4209
|
+
return {
|
|
4210
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
4211
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
4212
|
+
};
|
|
4160
4213
|
},
|
|
4161
4214
|
toJSON(message) {
|
|
4162
4215
|
const obj = {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as Account, J as AdminTx, v as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, U as CollectFaucetTx, _ as EnvelopeType, X as FaucetPackage, W as FaucetPayload, N as NewProcessTx, a1 as OracleList, Z as Process, a7 as ProcessEndingList, $ as ProcessMode, a5 as ProcessResult, P as ProcessStatus, a0 as ProcessVoteOptions, k as Proof, w as ProofArbo, A as ProofArbo_KeyType, x as ProofArbo_Type, o as ProofCA, q as ProofCA_Type, m as ProofEthereumAccount, l as ProofEthereumStorage, n as ProofMinime, E as ProofZkSNARK, a6 as QuestionResult, R as RegisterKeyTx, Q as RegisterSIKTx, O as SIKTx, K as SendTokensTx, M as SetAccountTx, Y as SetKeykeeperTx, I as SetProcessTx, L as SetTransactionCostsTx, H as SignedTx, S as SourceNetworkId, a8 as StoredKeys, a4 as TendermintHeader, G as Tx, T as TxType, a3 as Validator, a2 as ValidatorList, V as VoteEnvelope, d as censusOriginFromJSON, e as censusOriginToJSON, h as census_TypeFromJSON, j as census_TypeToJSON, p as processStatusFromJSON, b as processStatusToJSON, B as proofArbo_KeyTypeFromJSON, D as proofArbo_KeyTypeToJSON, y as proofArbo_TypeFromJSON, z as proofArbo_TypeToJSON, r as proofCA_TypeFromJSON, u as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-5d7943a4.js';
|
|
2
2
|
import 'protobufjs/minimal';
|