@ocap/proto 1.13.53 → 1.13.54
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/lib/gen/spec.json +42 -0
- package/lib/gen/state_pb.js +233 -0
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -1113,6 +1113,26 @@
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
},
|
|
1116
|
+
"RequestGetEvidenceState": {
|
|
1117
|
+
"fields": {
|
|
1118
|
+
"hash": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"id": 1
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
"ResponseGetEvidenceState": {
|
|
1125
|
+
"fields": {
|
|
1126
|
+
"code": {
|
|
1127
|
+
"type": "StatusCode",
|
|
1128
|
+
"id": 1
|
|
1129
|
+
},
|
|
1130
|
+
"state": {
|
|
1131
|
+
"type": "EvidenceState",
|
|
1132
|
+
"id": 2
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1116
1136
|
"BigUint": {
|
|
1117
1137
|
"fields": {
|
|
1118
1138
|
"value": {
|
|
@@ -3316,6 +3336,22 @@
|
|
|
3316
3336
|
}
|
|
3317
3337
|
}
|
|
3318
3338
|
},
|
|
3339
|
+
"EvidenceState": {
|
|
3340
|
+
"fields": {
|
|
3341
|
+
"hash": {
|
|
3342
|
+
"type": "string",
|
|
3343
|
+
"id": 1
|
|
3344
|
+
},
|
|
3345
|
+
"data": {
|
|
3346
|
+
"type": "string",
|
|
3347
|
+
"id": 2
|
|
3348
|
+
},
|
|
3349
|
+
"context": {
|
|
3350
|
+
"type": "StateContext",
|
|
3351
|
+
"id": 30
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3319
3355
|
"AccountMigrateTx": {
|
|
3320
3356
|
"fields": {
|
|
3321
3357
|
"pk": {
|
|
@@ -5565,6 +5601,12 @@
|
|
|
5565
5601
|
"responseType": "ResponseGetTokenState",
|
|
5566
5602
|
"responseStream": true
|
|
5567
5603
|
},
|
|
5604
|
+
"getEvidenceState": {
|
|
5605
|
+
"requestType": "RequestGetEvidenceState",
|
|
5606
|
+
"requestStream": true,
|
|
5607
|
+
"responseType": "ResponseGetEvidenceState",
|
|
5608
|
+
"responseStream": true
|
|
5609
|
+
},
|
|
5568
5610
|
"getAccountTokens": {
|
|
5569
5611
|
"requestType": "RequestGetAccountTokens",
|
|
5570
5612
|
"requestStream": true,
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -29,6 +29,7 @@ goog.exportSymbol('proto.ocap.AssetState', null, global);
|
|
|
29
29
|
goog.exportSymbol('proto.ocap.CoreProtocol', null, global);
|
|
30
30
|
goog.exportSymbol('proto.ocap.DelegateOpState', null, global);
|
|
31
31
|
goog.exportSymbol('proto.ocap.DelegateState', null, global);
|
|
32
|
+
goog.exportSymbol('proto.ocap.EvidenceState', null, global);
|
|
32
33
|
goog.exportSymbol('proto.ocap.ForgeState', null, global);
|
|
33
34
|
goog.exportSymbol('proto.ocap.RollupBlock', null, global);
|
|
34
35
|
goog.exportSymbol('proto.ocap.RollupState', null, global);
|
|
@@ -353,6 +354,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
353
354
|
*/
|
|
354
355
|
proto.ocap.RollupBlock.displayName = 'proto.ocap.RollupBlock';
|
|
355
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Generated by JsPbCodeGenerator.
|
|
359
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
360
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
361
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
362
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
363
|
+
* valid.
|
|
364
|
+
* @extends {jspb.Message}
|
|
365
|
+
* @constructor
|
|
366
|
+
*/
|
|
367
|
+
proto.ocap.EvidenceState = function(opt_data) {
|
|
368
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
369
|
+
};
|
|
370
|
+
goog.inherits(proto.ocap.EvidenceState, jspb.Message);
|
|
371
|
+
if (goog.DEBUG && !COMPILED) {
|
|
372
|
+
/**
|
|
373
|
+
* @public
|
|
374
|
+
* @override
|
|
375
|
+
*/
|
|
376
|
+
proto.ocap.EvidenceState.displayName = 'proto.ocap.EvidenceState';
|
|
377
|
+
}
|
|
356
378
|
|
|
357
379
|
/**
|
|
358
380
|
* List of repeated fields within this message type.
|
|
@@ -8770,4 +8792,215 @@ proto.ocap.RollupBlock.prototype.hasData = function() {
|
|
|
8770
8792
|
};
|
|
8771
8793
|
|
|
8772
8794
|
|
|
8795
|
+
|
|
8796
|
+
|
|
8797
|
+
|
|
8798
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8799
|
+
/**
|
|
8800
|
+
* Creates an object representation of this proto.
|
|
8801
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8802
|
+
* Optional fields that are not set will be set to undefined.
|
|
8803
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8804
|
+
* For the list of reserved names please see:
|
|
8805
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8806
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8807
|
+
* JSPB instance for transitional soy proto support:
|
|
8808
|
+
* http://goto/soy-param-migration
|
|
8809
|
+
* @return {!Object}
|
|
8810
|
+
*/
|
|
8811
|
+
proto.ocap.EvidenceState.prototype.toObject = function(opt_includeInstance) {
|
|
8812
|
+
return proto.ocap.EvidenceState.toObject(opt_includeInstance, this);
|
|
8813
|
+
};
|
|
8814
|
+
|
|
8815
|
+
|
|
8816
|
+
/**
|
|
8817
|
+
* Static version of the {@see toObject} method.
|
|
8818
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8819
|
+
* the JSPB instance for transitional soy proto support:
|
|
8820
|
+
* http://goto/soy-param-migration
|
|
8821
|
+
* @param {!proto.ocap.EvidenceState} msg The msg instance to transform.
|
|
8822
|
+
* @return {!Object}
|
|
8823
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8824
|
+
*/
|
|
8825
|
+
proto.ocap.EvidenceState.toObject = function(includeInstance, msg) {
|
|
8826
|
+
var f, obj = {
|
|
8827
|
+
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8828
|
+
data: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8829
|
+
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f)
|
|
8830
|
+
};
|
|
8831
|
+
|
|
8832
|
+
if (includeInstance) {
|
|
8833
|
+
obj.$jspbMessageInstance = msg;
|
|
8834
|
+
}
|
|
8835
|
+
return obj;
|
|
8836
|
+
};
|
|
8837
|
+
}
|
|
8838
|
+
|
|
8839
|
+
|
|
8840
|
+
/**
|
|
8841
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8842
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8843
|
+
* @return {!proto.ocap.EvidenceState}
|
|
8844
|
+
*/
|
|
8845
|
+
proto.ocap.EvidenceState.deserializeBinary = function(bytes) {
|
|
8846
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8847
|
+
var msg = new proto.ocap.EvidenceState;
|
|
8848
|
+
return proto.ocap.EvidenceState.deserializeBinaryFromReader(msg, reader);
|
|
8849
|
+
};
|
|
8850
|
+
|
|
8851
|
+
|
|
8852
|
+
/**
|
|
8853
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8854
|
+
* given reader into the given message object.
|
|
8855
|
+
* @param {!proto.ocap.EvidenceState} msg The message object to deserialize into.
|
|
8856
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8857
|
+
* @return {!proto.ocap.EvidenceState}
|
|
8858
|
+
*/
|
|
8859
|
+
proto.ocap.EvidenceState.deserializeBinaryFromReader = function(msg, reader) {
|
|
8860
|
+
while (reader.nextField()) {
|
|
8861
|
+
if (reader.isEndGroup()) {
|
|
8862
|
+
break;
|
|
8863
|
+
}
|
|
8864
|
+
var field = reader.getFieldNumber();
|
|
8865
|
+
switch (field) {
|
|
8866
|
+
case 1:
|
|
8867
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8868
|
+
msg.setHash(value);
|
|
8869
|
+
break;
|
|
8870
|
+
case 2:
|
|
8871
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8872
|
+
msg.setData(value);
|
|
8873
|
+
break;
|
|
8874
|
+
case 30:
|
|
8875
|
+
var value = new type_pb.StateContext;
|
|
8876
|
+
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
8877
|
+
msg.setContext(value);
|
|
8878
|
+
break;
|
|
8879
|
+
default:
|
|
8880
|
+
reader.skipField();
|
|
8881
|
+
break;
|
|
8882
|
+
}
|
|
8883
|
+
}
|
|
8884
|
+
return msg;
|
|
8885
|
+
};
|
|
8886
|
+
|
|
8887
|
+
|
|
8888
|
+
/**
|
|
8889
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8890
|
+
* @return {!Uint8Array}
|
|
8891
|
+
*/
|
|
8892
|
+
proto.ocap.EvidenceState.prototype.serializeBinary = function() {
|
|
8893
|
+
var writer = new jspb.BinaryWriter();
|
|
8894
|
+
proto.ocap.EvidenceState.serializeBinaryToWriter(this, writer);
|
|
8895
|
+
return writer.getResultBuffer();
|
|
8896
|
+
};
|
|
8897
|
+
|
|
8898
|
+
|
|
8899
|
+
/**
|
|
8900
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8901
|
+
* format), writing to the given BinaryWriter.
|
|
8902
|
+
* @param {!proto.ocap.EvidenceState} message
|
|
8903
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8904
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8905
|
+
*/
|
|
8906
|
+
proto.ocap.EvidenceState.serializeBinaryToWriter = function(message, writer) {
|
|
8907
|
+
var f = undefined;
|
|
8908
|
+
f = message.getHash();
|
|
8909
|
+
if (f.length > 0) {
|
|
8910
|
+
writer.writeString(
|
|
8911
|
+
1,
|
|
8912
|
+
f
|
|
8913
|
+
);
|
|
8914
|
+
}
|
|
8915
|
+
f = message.getData();
|
|
8916
|
+
if (f.length > 0) {
|
|
8917
|
+
writer.writeString(
|
|
8918
|
+
2,
|
|
8919
|
+
f
|
|
8920
|
+
);
|
|
8921
|
+
}
|
|
8922
|
+
f = message.getContext();
|
|
8923
|
+
if (f != null) {
|
|
8924
|
+
writer.writeMessage(
|
|
8925
|
+
30,
|
|
8926
|
+
f,
|
|
8927
|
+
type_pb.StateContext.serializeBinaryToWriter
|
|
8928
|
+
);
|
|
8929
|
+
}
|
|
8930
|
+
};
|
|
8931
|
+
|
|
8932
|
+
|
|
8933
|
+
/**
|
|
8934
|
+
* optional string hash = 1;
|
|
8935
|
+
* @return {string}
|
|
8936
|
+
*/
|
|
8937
|
+
proto.ocap.EvidenceState.prototype.getHash = function() {
|
|
8938
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8939
|
+
};
|
|
8940
|
+
|
|
8941
|
+
|
|
8942
|
+
/**
|
|
8943
|
+
* @param {string} value
|
|
8944
|
+
* @return {!proto.ocap.EvidenceState} returns this
|
|
8945
|
+
*/
|
|
8946
|
+
proto.ocap.EvidenceState.prototype.setHash = function(value) {
|
|
8947
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8948
|
+
};
|
|
8949
|
+
|
|
8950
|
+
|
|
8951
|
+
/**
|
|
8952
|
+
* optional string data = 2;
|
|
8953
|
+
* @return {string}
|
|
8954
|
+
*/
|
|
8955
|
+
proto.ocap.EvidenceState.prototype.getData = function() {
|
|
8956
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8957
|
+
};
|
|
8958
|
+
|
|
8959
|
+
|
|
8960
|
+
/**
|
|
8961
|
+
* @param {string} value
|
|
8962
|
+
* @return {!proto.ocap.EvidenceState} returns this
|
|
8963
|
+
*/
|
|
8964
|
+
proto.ocap.EvidenceState.prototype.setData = function(value) {
|
|
8965
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8966
|
+
};
|
|
8967
|
+
|
|
8968
|
+
|
|
8969
|
+
/**
|
|
8970
|
+
* optional StateContext context = 30;
|
|
8971
|
+
* @return {?proto.ocap.StateContext}
|
|
8972
|
+
*/
|
|
8973
|
+
proto.ocap.EvidenceState.prototype.getContext = function() {
|
|
8974
|
+
return /** @type{?proto.ocap.StateContext} */ (
|
|
8975
|
+
jspb.Message.getWrapperField(this, type_pb.StateContext, 30));
|
|
8976
|
+
};
|
|
8977
|
+
|
|
8978
|
+
|
|
8979
|
+
/**
|
|
8980
|
+
* @param {?proto.ocap.StateContext|undefined} value
|
|
8981
|
+
* @return {!proto.ocap.EvidenceState} returns this
|
|
8982
|
+
*/
|
|
8983
|
+
proto.ocap.EvidenceState.prototype.setContext = function(value) {
|
|
8984
|
+
return jspb.Message.setWrapperField(this, 30, value);
|
|
8985
|
+
};
|
|
8986
|
+
|
|
8987
|
+
|
|
8988
|
+
/**
|
|
8989
|
+
* Clears the message field making it undefined.
|
|
8990
|
+
* @return {!proto.ocap.EvidenceState} returns this
|
|
8991
|
+
*/
|
|
8992
|
+
proto.ocap.EvidenceState.prototype.clearContext = function() {
|
|
8993
|
+
return this.setContext(undefined);
|
|
8994
|
+
};
|
|
8995
|
+
|
|
8996
|
+
|
|
8997
|
+
/**
|
|
8998
|
+
* Returns whether this field is set.
|
|
8999
|
+
* @return {boolean}
|
|
9000
|
+
*/
|
|
9001
|
+
proto.ocap.EvidenceState.prototype.hasContext = function() {
|
|
9002
|
+
return jspb.Message.getField(this, 30) != null;
|
|
9003
|
+
};
|
|
9004
|
+
|
|
9005
|
+
|
|
8773
9006
|
goog.object.extend(exports, proto.ocap);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/proto",
|
|
3
3
|
"description": "Static modules generated from forge-sdk protobuf files",
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.54",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"debug": "^4.3.2",
|
|
48
48
|
"lodash": "^4.17.21"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c750431bf0eabf263f65a69c05b6fdc3343eba33"
|
|
51
51
|
}
|