@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
package/build/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { i as ClientStore } from './index-d457aeb5.js';
|
|
2
2
|
export { i as Metadata } from './index-05df597a.js';
|
|
3
|
-
export { i as Vochain } from './index-
|
|
3
|
+
export { i as Vochain } from './index-51ead84f.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
5
5
|
import './entity-e8dfcd83.js';
|
package/build/js/index.js
CHANGED
|
@@ -5717,6 +5717,7 @@ __export(vochain_exports, {
|
|
|
5717
5717
|
ProofCA_Type: () => ProofCA_Type,
|
|
5718
5718
|
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5719
5719
|
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5720
|
+
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5720
5721
|
ProofMinime: () => ProofMinime,
|
|
5721
5722
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5722
5723
|
QuestionResult: () => QuestionResult,
|
|
@@ -5785,6 +5786,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
|
|
|
5785
5786
|
TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
|
|
5786
5787
|
TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
|
|
5787
5788
|
TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
|
|
5789
|
+
TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
|
|
5788
5790
|
TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
5789
5791
|
return TxType2;
|
|
5790
5792
|
})(TxType || {});
|
|
@@ -5868,6 +5870,9 @@ function txTypeFromJSON(object) {
|
|
|
5868
5870
|
case 27:
|
|
5869
5871
|
case "SET_ACCOUNT_VALIDATOR":
|
|
5870
5872
|
return 27 /* SET_ACCOUNT_VALIDATOR */;
|
|
5873
|
+
case 28:
|
|
5874
|
+
case "SET_PROCESS_DURATION":
|
|
5875
|
+
return 28 /* SET_PROCESS_DURATION */;
|
|
5871
5876
|
case -1:
|
|
5872
5877
|
case "UNRECOGNIZED":
|
|
5873
5878
|
default:
|
|
@@ -5928,6 +5933,8 @@ function txTypeToJSON(object) {
|
|
|
5928
5933
|
return "REGISTER_SIK";
|
|
5929
5934
|
case 27 /* SET_ACCOUNT_VALIDATOR */:
|
|
5930
5935
|
return "SET_ACCOUNT_VALIDATOR";
|
|
5936
|
+
case 28 /* SET_PROCESS_DURATION */:
|
|
5937
|
+
return "SET_PROCESS_DURATION";
|
|
5931
5938
|
case -1 /* UNRECOGNIZED */:
|
|
5932
5939
|
default:
|
|
5933
5940
|
return "UNRECOGNIZED";
|
|
@@ -6107,6 +6114,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6107
6114
|
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6108
6115
|
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6109
6116
|
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6117
|
+
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6110
6118
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6111
6119
|
return CensusOrigin2;
|
|
6112
6120
|
})(CensusOrigin || {});
|
|
@@ -6139,6 +6147,9 @@ function censusOriginFromJSON(object) {
|
|
|
6139
6147
|
case 15:
|
|
6140
6148
|
case "MINI_ME":
|
|
6141
6149
|
return 15 /* MINI_ME */;
|
|
6150
|
+
case 16:
|
|
6151
|
+
case "FARCASTER_FRAME":
|
|
6152
|
+
return 16 /* FARCASTER_FRAME */;
|
|
6142
6153
|
case -1:
|
|
6143
6154
|
case "UNRECOGNIZED":
|
|
6144
6155
|
default:
|
|
@@ -6165,6 +6176,8 @@ function censusOriginToJSON(object) {
|
|
|
6165
6176
|
return "ERC777";
|
|
6166
6177
|
case 15 /* MINI_ME */:
|
|
6167
6178
|
return "MINI_ME";
|
|
6179
|
+
case 16 /* FARCASTER_FRAME */:
|
|
6180
|
+
return "FARCASTER_FRAME";
|
|
6168
6181
|
case -1 /* UNRECOGNIZED */:
|
|
6169
6182
|
default:
|
|
6170
6183
|
return "UNRECOGNIZED";
|
|
@@ -6177,6 +6190,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6177
6190
|
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6178
6191
|
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6179
6192
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6193
|
+
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6180
6194
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6181
6195
|
return Census_Type2;
|
|
6182
6196
|
})(Census_Type || {});
|
|
@@ -6200,6 +6214,9 @@ function census_TypeFromJSON(object) {
|
|
|
6200
6214
|
case 5:
|
|
6201
6215
|
case "CA":
|
|
6202
6216
|
return 5 /* CA */;
|
|
6217
|
+
case 6:
|
|
6218
|
+
case "FARCASTER_FRAME":
|
|
6219
|
+
return 6 /* FARCASTER_FRAME */;
|
|
6203
6220
|
case -1:
|
|
6204
6221
|
case "UNRECOGNIZED":
|
|
6205
6222
|
default:
|
|
@@ -6220,6 +6237,8 @@ function census_TypeToJSON(object) {
|
|
|
6220
6237
|
return "ETHEREUMACCOUNT";
|
|
6221
6238
|
case 5 /* CA */:
|
|
6222
6239
|
return "CA";
|
|
6240
|
+
case 6 /* FARCASTER_FRAME */:
|
|
6241
|
+
return "FARCASTER_FRAME";
|
|
6223
6242
|
case -1 /* UNRECOGNIZED */:
|
|
6224
6243
|
default:
|
|
6225
6244
|
return "UNRECOGNIZED";
|
|
@@ -6535,6 +6554,9 @@ var Proof = {
|
|
|
6535
6554
|
case "minimeStorage":
|
|
6536
6555
|
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6537
6556
|
break;
|
|
6557
|
+
case "farcasterFrame":
|
|
6558
|
+
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6559
|
+
break;
|
|
6538
6560
|
}
|
|
6539
6561
|
return writer;
|
|
6540
6562
|
},
|
|
@@ -6587,6 +6609,15 @@ var Proof = {
|
|
|
6587
6609
|
}
|
|
6588
6610
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6589
6611
|
continue;
|
|
6612
|
+
case 9:
|
|
6613
|
+
if (tag !== 74) {
|
|
6614
|
+
break;
|
|
6615
|
+
}
|
|
6616
|
+
message.payload = {
|
|
6617
|
+
$case: "farcasterFrame",
|
|
6618
|
+
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6619
|
+
};
|
|
6620
|
+
continue;
|
|
6590
6621
|
}
|
|
6591
6622
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6592
6623
|
break;
|
|
@@ -6597,7 +6628,7 @@ var Proof = {
|
|
|
6597
6628
|
},
|
|
6598
6629
|
fromJSON(object) {
|
|
6599
6630
|
return {
|
|
6600
|
-
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
|
|
6631
|
+
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) } : isSet8(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
|
|
6601
6632
|
};
|
|
6602
6633
|
},
|
|
6603
6634
|
toJSON(message) {
|
|
@@ -6620,6 +6651,9 @@ var Proof = {
|
|
|
6620
6651
|
if (message.payload?.$case === "minimeStorage") {
|
|
6621
6652
|
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6622
6653
|
}
|
|
6654
|
+
if (message.payload?.$case === "farcasterFrame") {
|
|
6655
|
+
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6656
|
+
}
|
|
6623
6657
|
return obj;
|
|
6624
6658
|
},
|
|
6625
6659
|
create(base) {
|
|
@@ -6654,6 +6688,12 @@ var Proof = {
|
|
|
6654
6688
|
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6655
6689
|
};
|
|
6656
6690
|
}
|
|
6691
|
+
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6692
|
+
message.payload = {
|
|
6693
|
+
$case: "farcasterFrame",
|
|
6694
|
+
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6695
|
+
};
|
|
6696
|
+
}
|
|
6657
6697
|
return message;
|
|
6658
6698
|
}
|
|
6659
6699
|
};
|
|
@@ -7285,6 +7325,86 @@ var ProofZkSNARK = {
|
|
|
7285
7325
|
return message;
|
|
7286
7326
|
}
|
|
7287
7327
|
};
|
|
7328
|
+
function createBaseProofFarcasterFrame() {
|
|
7329
|
+
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7330
|
+
}
|
|
7331
|
+
var ProofFarcasterFrame = {
|
|
7332
|
+
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7333
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7334
|
+
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7335
|
+
}
|
|
7336
|
+
if (message.censusProof !== void 0) {
|
|
7337
|
+
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7338
|
+
}
|
|
7339
|
+
if (message.publicKey.length !== 0) {
|
|
7340
|
+
writer.uint32(26).bytes(message.publicKey);
|
|
7341
|
+
}
|
|
7342
|
+
return writer;
|
|
7343
|
+
},
|
|
7344
|
+
decode(input, length) {
|
|
7345
|
+
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7346
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7347
|
+
const message = createBaseProofFarcasterFrame();
|
|
7348
|
+
while (reader.pos < end) {
|
|
7349
|
+
const tag = reader.uint32();
|
|
7350
|
+
switch (tag >>> 3) {
|
|
7351
|
+
case 1:
|
|
7352
|
+
if (tag !== 10) {
|
|
7353
|
+
break;
|
|
7354
|
+
}
|
|
7355
|
+
message.signedFrameMessageBody = reader.bytes();
|
|
7356
|
+
continue;
|
|
7357
|
+
case 2:
|
|
7358
|
+
if (tag !== 18) {
|
|
7359
|
+
break;
|
|
7360
|
+
}
|
|
7361
|
+
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7362
|
+
continue;
|
|
7363
|
+
case 3:
|
|
7364
|
+
if (tag !== 26) {
|
|
7365
|
+
break;
|
|
7366
|
+
}
|
|
7367
|
+
message.publicKey = reader.bytes();
|
|
7368
|
+
continue;
|
|
7369
|
+
}
|
|
7370
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7371
|
+
break;
|
|
7372
|
+
}
|
|
7373
|
+
reader.skipType(tag & 7);
|
|
7374
|
+
}
|
|
7375
|
+
return message;
|
|
7376
|
+
},
|
|
7377
|
+
fromJSON(object) {
|
|
7378
|
+
return {
|
|
7379
|
+
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7380
|
+
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7381
|
+
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7382
|
+
};
|
|
7383
|
+
},
|
|
7384
|
+
toJSON(message) {
|
|
7385
|
+
const obj = {};
|
|
7386
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7387
|
+
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7388
|
+
}
|
|
7389
|
+
if (message.censusProof !== void 0) {
|
|
7390
|
+
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7391
|
+
}
|
|
7392
|
+
if (message.publicKey.length !== 0) {
|
|
7393
|
+
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7394
|
+
}
|
|
7395
|
+
return obj;
|
|
7396
|
+
},
|
|
7397
|
+
create(base) {
|
|
7398
|
+
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7399
|
+
},
|
|
7400
|
+
fromPartial(object) {
|
|
7401
|
+
const message = createBaseProofFarcasterFrame();
|
|
7402
|
+
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7403
|
+
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7404
|
+
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7405
|
+
return message;
|
|
7406
|
+
}
|
|
7407
|
+
};
|
|
7288
7408
|
function createBaseAccount2() {
|
|
7289
7409
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7290
7410
|
}
|
|
@@ -7801,7 +7921,8 @@ function createBaseSetProcessTx() {
|
|
|
7801
7921
|
censusURI: void 0,
|
|
7802
7922
|
proof: void 0,
|
|
7803
7923
|
results: void 0,
|
|
7804
|
-
tempSIKs: void 0
|
|
7924
|
+
tempSIKs: void 0,
|
|
7925
|
+
duration: void 0
|
|
7805
7926
|
};
|
|
7806
7927
|
}
|
|
7807
7928
|
var SetProcessTx = {
|
|
@@ -7836,6 +7957,9 @@ var SetProcessTx = {
|
|
|
7836
7957
|
if (message.tempSIKs !== void 0) {
|
|
7837
7958
|
writer.uint32(80).bool(message.tempSIKs);
|
|
7838
7959
|
}
|
|
7960
|
+
if (message.duration !== void 0) {
|
|
7961
|
+
writer.uint32(88).uint32(message.duration);
|
|
7962
|
+
}
|
|
7839
7963
|
return writer;
|
|
7840
7964
|
},
|
|
7841
7965
|
decode(input, length) {
|
|
@@ -7905,6 +8029,12 @@ var SetProcessTx = {
|
|
|
7905
8029
|
}
|
|
7906
8030
|
message.tempSIKs = reader.bool();
|
|
7907
8031
|
continue;
|
|
8032
|
+
case 11:
|
|
8033
|
+
if (tag !== 88) {
|
|
8034
|
+
break;
|
|
8035
|
+
}
|
|
8036
|
+
message.duration = reader.uint32();
|
|
8037
|
+
continue;
|
|
7908
8038
|
}
|
|
7909
8039
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7910
8040
|
break;
|
|
@@ -7924,7 +8054,8 @@ var SetProcessTx = {
|
|
|
7924
8054
|
censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
|
|
7925
8055
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
7926
8056
|
results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
7927
|
-
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
|
|
8057
|
+
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
8058
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
|
|
7928
8059
|
};
|
|
7929
8060
|
},
|
|
7930
8061
|
toJSON(message) {
|
|
@@ -7959,6 +8090,9 @@ var SetProcessTx = {
|
|
|
7959
8090
|
if (message.tempSIKs !== void 0) {
|
|
7960
8091
|
obj.tempSIKs = message.tempSIKs;
|
|
7961
8092
|
}
|
|
8093
|
+
if (message.duration !== void 0) {
|
|
8094
|
+
obj.duration = Math.round(message.duration);
|
|
8095
|
+
}
|
|
7962
8096
|
return obj;
|
|
7963
8097
|
},
|
|
7964
8098
|
create(base) {
|
|
@@ -7976,6 +8110,7 @@ var SetProcessTx = {
|
|
|
7976
8110
|
message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
|
|
7977
8111
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
7978
8112
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
8113
|
+
message.duration = object.duration ?? void 0;
|
|
7979
8114
|
return message;
|
|
7980
8115
|
}
|
|
7981
8116
|
};
|
|
@@ -9121,7 +9256,9 @@ function createBaseProcess() {
|
|
|
9121
9256
|
nullifiersRoot: void 0,
|
|
9122
9257
|
sourceNetworkContractAddr: void 0,
|
|
9123
9258
|
tokenDecimals: void 0,
|
|
9124
|
-
tempSIKs: void 0
|
|
9259
|
+
tempSIKs: void 0,
|
|
9260
|
+
startTime: 0,
|
|
9261
|
+
duration: 0
|
|
9125
9262
|
};
|
|
9126
9263
|
}
|
|
9127
9264
|
var Process = {
|
|
@@ -9219,6 +9356,12 @@ var Process = {
|
|
|
9219
9356
|
if (message.tempSIKs !== void 0) {
|
|
9220
9357
|
writer.uint32(272).bool(message.tempSIKs);
|
|
9221
9358
|
}
|
|
9359
|
+
if (message.startTime !== 0) {
|
|
9360
|
+
writer.uint32(280).uint32(message.startTime);
|
|
9361
|
+
}
|
|
9362
|
+
if (message.duration !== 0) {
|
|
9363
|
+
writer.uint32(288).uint32(message.duration);
|
|
9364
|
+
}
|
|
9222
9365
|
return writer;
|
|
9223
9366
|
},
|
|
9224
9367
|
decode(input, length) {
|
|
@@ -9414,6 +9557,18 @@ var Process = {
|
|
|
9414
9557
|
}
|
|
9415
9558
|
message.tempSIKs = reader.bool();
|
|
9416
9559
|
continue;
|
|
9560
|
+
case 35:
|
|
9561
|
+
if (tag !== 280) {
|
|
9562
|
+
break;
|
|
9563
|
+
}
|
|
9564
|
+
message.startTime = reader.uint32();
|
|
9565
|
+
continue;
|
|
9566
|
+
case 36:
|
|
9567
|
+
if (tag !== 288) {
|
|
9568
|
+
break;
|
|
9569
|
+
}
|
|
9570
|
+
message.duration = reader.uint32();
|
|
9571
|
+
continue;
|
|
9417
9572
|
}
|
|
9418
9573
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9419
9574
|
break;
|
|
@@ -9454,7 +9609,9 @@ var Process = {
|
|
|
9454
9609
|
nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
|
|
9455
9610
|
sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
|
|
9456
9611
|
tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
|
|
9457
|
-
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
|
|
9612
|
+
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
9613
|
+
startTime: isSet8(object.startTime) ? globalThis.Number(object.startTime) : 0,
|
|
9614
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : 0
|
|
9458
9615
|
};
|
|
9459
9616
|
},
|
|
9460
9617
|
toJSON(message) {
|
|
@@ -9552,6 +9709,12 @@ var Process = {
|
|
|
9552
9709
|
if (message.tempSIKs !== void 0) {
|
|
9553
9710
|
obj.tempSIKs = message.tempSIKs;
|
|
9554
9711
|
}
|
|
9712
|
+
if (message.startTime !== 0) {
|
|
9713
|
+
obj.startTime = Math.round(message.startTime);
|
|
9714
|
+
}
|
|
9715
|
+
if (message.duration !== 0) {
|
|
9716
|
+
obj.duration = Math.round(message.duration);
|
|
9717
|
+
}
|
|
9555
9718
|
return obj;
|
|
9556
9719
|
},
|
|
9557
9720
|
create(base) {
|
|
@@ -9590,6 +9753,8 @@ var Process = {
|
|
|
9590
9753
|
message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
|
|
9591
9754
|
message.tokenDecimals = object.tokenDecimals ?? void 0;
|
|
9592
9755
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
9756
|
+
message.startTime = object.startTime ?? 0;
|
|
9757
|
+
message.duration = object.duration ?? 0;
|
|
9593
9758
|
return message;
|
|
9594
9759
|
}
|
|
9595
9760
|
};
|