@vocdoni/proto 1.15.4 → 1.15.6
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/{index-5d7943a4.d.ts → index-51ead84f.d.ts} +2008 -403
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +170 -5
- package/build/js/index.mjs +170 -5
- package/build/js/vochain/index.d.ts +1 -1
- package/build/js/vochain/index.js +171 -5
- package/build/js/vochain/index.mjs +170 -5
- package/package.json +2 -2
|
@@ -1447,6 +1447,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
|
|
|
1447
1447
|
TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
|
|
1448
1448
|
TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
|
|
1449
1449
|
TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
|
|
1450
|
+
TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
|
|
1450
1451
|
TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1451
1452
|
return TxType2;
|
|
1452
1453
|
})(TxType || {});
|
|
@@ -1530,6 +1531,9 @@ function txTypeFromJSON(object) {
|
|
|
1530
1531
|
case 27:
|
|
1531
1532
|
case "SET_ACCOUNT_VALIDATOR":
|
|
1532
1533
|
return 27 /* SET_ACCOUNT_VALIDATOR */;
|
|
1534
|
+
case 28:
|
|
1535
|
+
case "SET_PROCESS_DURATION":
|
|
1536
|
+
return 28 /* SET_PROCESS_DURATION */;
|
|
1533
1537
|
case -1:
|
|
1534
1538
|
case "UNRECOGNIZED":
|
|
1535
1539
|
default:
|
|
@@ -1590,6 +1594,8 @@ function txTypeToJSON(object) {
|
|
|
1590
1594
|
return "REGISTER_SIK";
|
|
1591
1595
|
case 27 /* SET_ACCOUNT_VALIDATOR */:
|
|
1592
1596
|
return "SET_ACCOUNT_VALIDATOR";
|
|
1597
|
+
case 28 /* SET_PROCESS_DURATION */:
|
|
1598
|
+
return "SET_PROCESS_DURATION";
|
|
1593
1599
|
case -1 /* UNRECOGNIZED */:
|
|
1594
1600
|
default:
|
|
1595
1601
|
return "UNRECOGNIZED";
|
|
@@ -1769,6 +1775,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
1769
1775
|
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
1770
1776
|
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
1771
1777
|
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
1778
|
+
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
1772
1779
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1773
1780
|
return CensusOrigin2;
|
|
1774
1781
|
})(CensusOrigin || {});
|
|
@@ -1801,6 +1808,9 @@ function censusOriginFromJSON(object) {
|
|
|
1801
1808
|
case 15:
|
|
1802
1809
|
case "MINI_ME":
|
|
1803
1810
|
return 15 /* MINI_ME */;
|
|
1811
|
+
case 16:
|
|
1812
|
+
case "FARCASTER_FRAME":
|
|
1813
|
+
return 16 /* FARCASTER_FRAME */;
|
|
1804
1814
|
case -1:
|
|
1805
1815
|
case "UNRECOGNIZED":
|
|
1806
1816
|
default:
|
|
@@ -1827,6 +1837,8 @@ function censusOriginToJSON(object) {
|
|
|
1827
1837
|
return "ERC777";
|
|
1828
1838
|
case 15 /* MINI_ME */:
|
|
1829
1839
|
return "MINI_ME";
|
|
1840
|
+
case 16 /* FARCASTER_FRAME */:
|
|
1841
|
+
return "FARCASTER_FRAME";
|
|
1830
1842
|
case -1 /* UNRECOGNIZED */:
|
|
1831
1843
|
default:
|
|
1832
1844
|
return "UNRECOGNIZED";
|
|
@@ -1839,6 +1851,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
1839
1851
|
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
1840
1852
|
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
1841
1853
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
1854
|
+
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
1842
1855
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1843
1856
|
return Census_Type2;
|
|
1844
1857
|
})(Census_Type || {});
|
|
@@ -1862,6 +1875,9 @@ function census_TypeFromJSON(object) {
|
|
|
1862
1875
|
case 5:
|
|
1863
1876
|
case "CA":
|
|
1864
1877
|
return 5 /* CA */;
|
|
1878
|
+
case 6:
|
|
1879
|
+
case "FARCASTER_FRAME":
|
|
1880
|
+
return 6 /* FARCASTER_FRAME */;
|
|
1865
1881
|
case -1:
|
|
1866
1882
|
case "UNRECOGNIZED":
|
|
1867
1883
|
default:
|
|
@@ -1882,6 +1898,8 @@ function census_TypeToJSON(object) {
|
|
|
1882
1898
|
return "ETHEREUMACCOUNT";
|
|
1883
1899
|
case 5 /* CA */:
|
|
1884
1900
|
return "CA";
|
|
1901
|
+
case 6 /* FARCASTER_FRAME */:
|
|
1902
|
+
return "FARCASTER_FRAME";
|
|
1885
1903
|
case -1 /* UNRECOGNIZED */:
|
|
1886
1904
|
default:
|
|
1887
1905
|
return "UNRECOGNIZED";
|
|
@@ -2197,6 +2215,9 @@ var Proof = {
|
|
|
2197
2215
|
case "minimeStorage":
|
|
2198
2216
|
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2199
2217
|
break;
|
|
2218
|
+
case "farcasterFrame":
|
|
2219
|
+
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
2220
|
+
break;
|
|
2200
2221
|
}
|
|
2201
2222
|
return writer;
|
|
2202
2223
|
},
|
|
@@ -2249,6 +2270,15 @@ var Proof = {
|
|
|
2249
2270
|
}
|
|
2250
2271
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2251
2272
|
continue;
|
|
2273
|
+
case 9:
|
|
2274
|
+
if (tag !== 74) {
|
|
2275
|
+
break;
|
|
2276
|
+
}
|
|
2277
|
+
message.payload = {
|
|
2278
|
+
$case: "farcasterFrame",
|
|
2279
|
+
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
2280
|
+
};
|
|
2281
|
+
continue;
|
|
2252
2282
|
}
|
|
2253
2283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2254
2284
|
break;
|
|
@@ -2259,7 +2289,7 @@ var Proof = {
|
|
|
2259
2289
|
},
|
|
2260
2290
|
fromJSON(object) {
|
|
2261
2291
|
return {
|
|
2262
|
-
payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
|
|
2292
|
+
payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : isSet(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
|
|
2263
2293
|
};
|
|
2264
2294
|
},
|
|
2265
2295
|
toJSON(message) {
|
|
@@ -2282,6 +2312,9 @@ var Proof = {
|
|
|
2282
2312
|
if (message.payload?.$case === "minimeStorage") {
|
|
2283
2313
|
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
2284
2314
|
}
|
|
2315
|
+
if (message.payload?.$case === "farcasterFrame") {
|
|
2316
|
+
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
2317
|
+
}
|
|
2285
2318
|
return obj;
|
|
2286
2319
|
},
|
|
2287
2320
|
create(base) {
|
|
@@ -2316,6 +2349,12 @@ var Proof = {
|
|
|
2316
2349
|
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
2317
2350
|
};
|
|
2318
2351
|
}
|
|
2352
|
+
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
2353
|
+
message.payload = {
|
|
2354
|
+
$case: "farcasterFrame",
|
|
2355
|
+
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
2356
|
+
};
|
|
2357
|
+
}
|
|
2319
2358
|
return message;
|
|
2320
2359
|
}
|
|
2321
2360
|
};
|
|
@@ -2947,6 +2986,86 @@ var ProofZkSNARK = {
|
|
|
2947
2986
|
return message;
|
|
2948
2987
|
}
|
|
2949
2988
|
};
|
|
2989
|
+
function createBaseProofFarcasterFrame() {
|
|
2990
|
+
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
2991
|
+
}
|
|
2992
|
+
var ProofFarcasterFrame = {
|
|
2993
|
+
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2994
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
2995
|
+
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
2996
|
+
}
|
|
2997
|
+
if (message.censusProof !== void 0) {
|
|
2998
|
+
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
2999
|
+
}
|
|
3000
|
+
if (message.publicKey.length !== 0) {
|
|
3001
|
+
writer.uint32(26).bytes(message.publicKey);
|
|
3002
|
+
}
|
|
3003
|
+
return writer;
|
|
3004
|
+
},
|
|
3005
|
+
decode(input, length) {
|
|
3006
|
+
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3007
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3008
|
+
const message = createBaseProofFarcasterFrame();
|
|
3009
|
+
while (reader.pos < end) {
|
|
3010
|
+
const tag = reader.uint32();
|
|
3011
|
+
switch (tag >>> 3) {
|
|
3012
|
+
case 1:
|
|
3013
|
+
if (tag !== 10) {
|
|
3014
|
+
break;
|
|
3015
|
+
}
|
|
3016
|
+
message.signedFrameMessageBody = reader.bytes();
|
|
3017
|
+
continue;
|
|
3018
|
+
case 2:
|
|
3019
|
+
if (tag !== 18) {
|
|
3020
|
+
break;
|
|
3021
|
+
}
|
|
3022
|
+
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
3023
|
+
continue;
|
|
3024
|
+
case 3:
|
|
3025
|
+
if (tag !== 26) {
|
|
3026
|
+
break;
|
|
3027
|
+
}
|
|
3028
|
+
message.publicKey = reader.bytes();
|
|
3029
|
+
continue;
|
|
3030
|
+
}
|
|
3031
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3032
|
+
break;
|
|
3033
|
+
}
|
|
3034
|
+
reader.skipType(tag & 7);
|
|
3035
|
+
}
|
|
3036
|
+
return message;
|
|
3037
|
+
},
|
|
3038
|
+
fromJSON(object) {
|
|
3039
|
+
return {
|
|
3040
|
+
signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
3041
|
+
censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
3042
|
+
publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
|
|
3043
|
+
};
|
|
3044
|
+
},
|
|
3045
|
+
toJSON(message) {
|
|
3046
|
+
const obj = {};
|
|
3047
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
3048
|
+
obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
|
|
3049
|
+
}
|
|
3050
|
+
if (message.censusProof !== void 0) {
|
|
3051
|
+
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
3052
|
+
}
|
|
3053
|
+
if (message.publicKey.length !== 0) {
|
|
3054
|
+
obj.publicKey = base64FromBytes(message.publicKey);
|
|
3055
|
+
}
|
|
3056
|
+
return obj;
|
|
3057
|
+
},
|
|
3058
|
+
create(base) {
|
|
3059
|
+
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
3060
|
+
},
|
|
3061
|
+
fromPartial(object) {
|
|
3062
|
+
const message = createBaseProofFarcasterFrame();
|
|
3063
|
+
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
3064
|
+
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
3065
|
+
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
3066
|
+
return message;
|
|
3067
|
+
}
|
|
3068
|
+
};
|
|
2950
3069
|
function createBaseAccount() {
|
|
2951
3070
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
2952
3071
|
}
|
|
@@ -3463,7 +3582,8 @@ function createBaseSetProcessTx() {
|
|
|
3463
3582
|
censusURI: void 0,
|
|
3464
3583
|
proof: void 0,
|
|
3465
3584
|
results: void 0,
|
|
3466
|
-
tempSIKs: void 0
|
|
3585
|
+
tempSIKs: void 0,
|
|
3586
|
+
duration: void 0
|
|
3467
3587
|
};
|
|
3468
3588
|
}
|
|
3469
3589
|
var SetProcessTx = {
|
|
@@ -3498,6 +3618,9 @@ var SetProcessTx = {
|
|
|
3498
3618
|
if (message.tempSIKs !== void 0) {
|
|
3499
3619
|
writer.uint32(80).bool(message.tempSIKs);
|
|
3500
3620
|
}
|
|
3621
|
+
if (message.duration !== void 0) {
|
|
3622
|
+
writer.uint32(88).uint32(message.duration);
|
|
3623
|
+
}
|
|
3501
3624
|
return writer;
|
|
3502
3625
|
},
|
|
3503
3626
|
decode(input, length) {
|
|
@@ -3567,6 +3690,12 @@ var SetProcessTx = {
|
|
|
3567
3690
|
}
|
|
3568
3691
|
message.tempSIKs = reader.bool();
|
|
3569
3692
|
continue;
|
|
3693
|
+
case 11:
|
|
3694
|
+
if (tag !== 88) {
|
|
3695
|
+
break;
|
|
3696
|
+
}
|
|
3697
|
+
message.duration = reader.uint32();
|
|
3698
|
+
continue;
|
|
3570
3699
|
}
|
|
3571
3700
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3572
3701
|
break;
|
|
@@ -3586,7 +3715,8 @@ var SetProcessTx = {
|
|
|
3586
3715
|
censusURI: isSet(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
|
|
3587
3716
|
proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
3588
3717
|
results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
3589
|
-
tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
|
|
3718
|
+
tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
3719
|
+
duration: isSet(object.duration) ? globalThis.Number(object.duration) : void 0
|
|
3590
3720
|
};
|
|
3591
3721
|
},
|
|
3592
3722
|
toJSON(message) {
|
|
@@ -3621,6 +3751,9 @@ var SetProcessTx = {
|
|
|
3621
3751
|
if (message.tempSIKs !== void 0) {
|
|
3622
3752
|
obj.tempSIKs = message.tempSIKs;
|
|
3623
3753
|
}
|
|
3754
|
+
if (message.duration !== void 0) {
|
|
3755
|
+
obj.duration = Math.round(message.duration);
|
|
3756
|
+
}
|
|
3624
3757
|
return obj;
|
|
3625
3758
|
},
|
|
3626
3759
|
create(base) {
|
|
@@ -3638,6 +3771,7 @@ var SetProcessTx = {
|
|
|
3638
3771
|
message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
|
|
3639
3772
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
3640
3773
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
3774
|
+
message.duration = object.duration ?? void 0;
|
|
3641
3775
|
return message;
|
|
3642
3776
|
}
|
|
3643
3777
|
};
|
|
@@ -4783,7 +4917,9 @@ function createBaseProcess() {
|
|
|
4783
4917
|
nullifiersRoot: void 0,
|
|
4784
4918
|
sourceNetworkContractAddr: void 0,
|
|
4785
4919
|
tokenDecimals: void 0,
|
|
4786
|
-
tempSIKs: void 0
|
|
4920
|
+
tempSIKs: void 0,
|
|
4921
|
+
startTime: 0,
|
|
4922
|
+
duration: 0
|
|
4787
4923
|
};
|
|
4788
4924
|
}
|
|
4789
4925
|
var Process = {
|
|
@@ -4881,6 +5017,12 @@ var Process = {
|
|
|
4881
5017
|
if (message.tempSIKs !== void 0) {
|
|
4882
5018
|
writer.uint32(272).bool(message.tempSIKs);
|
|
4883
5019
|
}
|
|
5020
|
+
if (message.startTime !== 0) {
|
|
5021
|
+
writer.uint32(280).uint32(message.startTime);
|
|
5022
|
+
}
|
|
5023
|
+
if (message.duration !== 0) {
|
|
5024
|
+
writer.uint32(288).uint32(message.duration);
|
|
5025
|
+
}
|
|
4884
5026
|
return writer;
|
|
4885
5027
|
},
|
|
4886
5028
|
decode(input, length) {
|
|
@@ -5076,6 +5218,18 @@ var Process = {
|
|
|
5076
5218
|
}
|
|
5077
5219
|
message.tempSIKs = reader.bool();
|
|
5078
5220
|
continue;
|
|
5221
|
+
case 35:
|
|
5222
|
+
if (tag !== 280) {
|
|
5223
|
+
break;
|
|
5224
|
+
}
|
|
5225
|
+
message.startTime = reader.uint32();
|
|
5226
|
+
continue;
|
|
5227
|
+
case 36:
|
|
5228
|
+
if (tag !== 288) {
|
|
5229
|
+
break;
|
|
5230
|
+
}
|
|
5231
|
+
message.duration = reader.uint32();
|
|
5232
|
+
continue;
|
|
5079
5233
|
}
|
|
5080
5234
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5081
5235
|
break;
|
|
@@ -5116,7 +5270,9 @@ var Process = {
|
|
|
5116
5270
|
nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
|
|
5117
5271
|
sourceNetworkContractAddr: isSet(object.sourceNetworkContractAddr) ? bytesFromBase64(object.sourceNetworkContractAddr) : void 0,
|
|
5118
5272
|
tokenDecimals: isSet(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
|
|
5119
|
-
tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
|
|
5273
|
+
tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
5274
|
+
startTime: isSet(object.startTime) ? globalThis.Number(object.startTime) : 0,
|
|
5275
|
+
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0
|
|
5120
5276
|
};
|
|
5121
5277
|
},
|
|
5122
5278
|
toJSON(message) {
|
|
@@ -5214,6 +5370,12 @@ var Process = {
|
|
|
5214
5370
|
if (message.tempSIKs !== void 0) {
|
|
5215
5371
|
obj.tempSIKs = message.tempSIKs;
|
|
5216
5372
|
}
|
|
5373
|
+
if (message.startTime !== 0) {
|
|
5374
|
+
obj.startTime = Math.round(message.startTime);
|
|
5375
|
+
}
|
|
5376
|
+
if (message.duration !== 0) {
|
|
5377
|
+
obj.duration = Math.round(message.duration);
|
|
5378
|
+
}
|
|
5217
5379
|
return obj;
|
|
5218
5380
|
},
|
|
5219
5381
|
create(base) {
|
|
@@ -5252,6 +5414,8 @@ var Process = {
|
|
|
5252
5414
|
message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
|
|
5253
5415
|
message.tokenDecimals = object.tokenDecimals ?? void 0;
|
|
5254
5416
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
5417
|
+
message.startTime = object.startTime ?? 0;
|
|
5418
|
+
message.duration = object.duration ?? 0;
|
|
5255
5419
|
return message;
|
|
5256
5420
|
}
|
|
5257
5421
|
};
|
|
@@ -6375,6 +6539,7 @@ export {
|
|
|
6375
6539
|
ProofCA_Type,
|
|
6376
6540
|
ProofEthereumAccount,
|
|
6377
6541
|
ProofEthereumStorage,
|
|
6542
|
+
ProofFarcasterFrame,
|
|
6378
6543
|
ProofMinime,
|
|
6379
6544
|
ProofZkSNARK,
|
|
6380
6545
|
QuestionResult,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocdoni/proto",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.6",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"ts-node": "^9.1.1",
|
|
7
|
-
"ts-proto": "^1.
|
|
7
|
+
"ts-proto": "^1.167.3",
|
|
8
8
|
"tsup": "^6.5.0",
|
|
9
9
|
"typescript": "^4.2.4"
|
|
10
10
|
},
|