@ocap/proto 1.24.9 → 1.25.0
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 +71 -7
- package/lib/gen/state_pb.js +81 -0
- package/lib/gen/trace-type_pb.js +175 -94
- package/lib/gen/tx_pb.js +60 -9
- package/lib/gen/type_pb.js +590 -34
- package/package.json +1 -1
package/lib/gen/spec.json
CHANGED
|
@@ -1302,6 +1302,26 @@
|
|
|
1302
1302
|
}
|
|
1303
1303
|
},
|
|
1304
1304
|
"TokenSymbol": {
|
|
1305
|
+
"fields": {
|
|
1306
|
+
"address": {
|
|
1307
|
+
"type": "string",
|
|
1308
|
+
"id": 1
|
|
1309
|
+
},
|
|
1310
|
+
"symbol": {
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"id": 2
|
|
1313
|
+
},
|
|
1314
|
+
"decimal": {
|
|
1315
|
+
"type": "int32",
|
|
1316
|
+
"id": 3
|
|
1317
|
+
},
|
|
1318
|
+
"unit": {
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"id": 4
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"TokenInfo": {
|
|
1305
1325
|
"fields": {
|
|
1306
1326
|
"address": {
|
|
1307
1327
|
"type": "string",
|
|
@@ -1334,6 +1354,14 @@
|
|
|
1334
1354
|
"maxTotalSupply": {
|
|
1335
1355
|
"type": "string",
|
|
1336
1356
|
"id": 8
|
|
1357
|
+
},
|
|
1358
|
+
"metadata": {
|
|
1359
|
+
"type": "google.protobuf.Any",
|
|
1360
|
+
"id": 9
|
|
1361
|
+
},
|
|
1362
|
+
"website": {
|
|
1363
|
+
"type": "string",
|
|
1364
|
+
"id": 10
|
|
1337
1365
|
}
|
|
1338
1366
|
}
|
|
1339
1367
|
},
|
|
@@ -1878,6 +1906,18 @@
|
|
|
1878
1906
|
}
|
|
1879
1907
|
}
|
|
1880
1908
|
},
|
|
1909
|
+
"TxStakeConfig": {
|
|
1910
|
+
"fields": {
|
|
1911
|
+
"createToken": {
|
|
1912
|
+
"type": "uint64",
|
|
1913
|
+
"id": 1
|
|
1914
|
+
},
|
|
1915
|
+
"createTokenLockPeriod": {
|
|
1916
|
+
"type": "uint64",
|
|
1917
|
+
"id": 2
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1881
1921
|
"TransactionConfig": {
|
|
1882
1922
|
"fields": {
|
|
1883
1923
|
"maxAssetSize": {
|
|
@@ -1904,6 +1944,10 @@
|
|
|
1904
1944
|
"txGas": {
|
|
1905
1945
|
"type": "TxGasConfig",
|
|
1906
1946
|
"id": 6
|
|
1947
|
+
},
|
|
1948
|
+
"txStake": {
|
|
1949
|
+
"type": "TxStakeConfig",
|
|
1950
|
+
"id": 7
|
|
1907
1951
|
}
|
|
1908
1952
|
}
|
|
1909
1953
|
},
|
|
@@ -3070,10 +3114,18 @@
|
|
|
3070
3114
|
"type": "string",
|
|
3071
3115
|
"id": 13
|
|
3072
3116
|
},
|
|
3117
|
+
"metadata": {
|
|
3118
|
+
"type": "google.protobuf.Any",
|
|
3119
|
+
"id": 14
|
|
3120
|
+
},
|
|
3073
3121
|
"context": {
|
|
3074
3122
|
"type": "StateContext",
|
|
3075
3123
|
"id": 15
|
|
3076
3124
|
},
|
|
3125
|
+
"website": {
|
|
3126
|
+
"type": "string",
|
|
3127
|
+
"id": 16
|
|
3128
|
+
},
|
|
3077
3129
|
"data": {
|
|
3078
3130
|
"type": "google.protobuf.Any",
|
|
3079
3131
|
"id": 20
|
|
@@ -4722,7 +4774,7 @@
|
|
|
4722
4774
|
"id": 2
|
|
4723
4775
|
},
|
|
4724
4776
|
"token": {
|
|
4725
|
-
"type": "
|
|
4777
|
+
"type": "TokenInfo",
|
|
4726
4778
|
"id": 3
|
|
4727
4779
|
},
|
|
4728
4780
|
"reserveAddress": {
|
|
@@ -4749,6 +4801,10 @@
|
|
|
4749
4801
|
"type": "uint32",
|
|
4750
4802
|
"id": 2
|
|
4751
4803
|
},
|
|
4804
|
+
"token": {
|
|
4805
|
+
"type": "TokenInfo",
|
|
4806
|
+
"id": 3
|
|
4807
|
+
},
|
|
4752
4808
|
"data": {
|
|
4753
4809
|
"type": "google.protobuf.Any",
|
|
4754
4810
|
"id": 50
|
|
@@ -5193,7 +5249,7 @@
|
|
|
5193
5249
|
}
|
|
5194
5250
|
}
|
|
5195
5251
|
},
|
|
5196
|
-
"
|
|
5252
|
+
"TokenMeta": {
|
|
5197
5253
|
"fields": {
|
|
5198
5254
|
"address": {
|
|
5199
5255
|
"type": "string",
|
|
@@ -5320,7 +5376,7 @@
|
|
|
5320
5376
|
},
|
|
5321
5377
|
"tokenSymbols": {
|
|
5322
5378
|
"rule": "repeated",
|
|
5323
|
-
"type": "
|
|
5379
|
+
"type": "TokenMeta",
|
|
5324
5380
|
"id": 22
|
|
5325
5381
|
},
|
|
5326
5382
|
"receipts": {
|
|
@@ -5391,7 +5447,7 @@
|
|
|
5391
5447
|
},
|
|
5392
5448
|
"tokens": {
|
|
5393
5449
|
"rule": "repeated",
|
|
5394
|
-
"type": "
|
|
5450
|
+
"type": "TokenMeta",
|
|
5395
5451
|
"id": 15
|
|
5396
5452
|
}
|
|
5397
5453
|
}
|
|
@@ -5547,6 +5603,14 @@
|
|
|
5547
5603
|
"type": "string",
|
|
5548
5604
|
"id": 16
|
|
5549
5605
|
},
|
|
5606
|
+
"metadata": {
|
|
5607
|
+
"type": "google.protobuf.Any",
|
|
5608
|
+
"id": 17
|
|
5609
|
+
},
|
|
5610
|
+
"website": {
|
|
5611
|
+
"type": "string",
|
|
5612
|
+
"id": 18
|
|
5613
|
+
},
|
|
5550
5614
|
"data": {
|
|
5551
5615
|
"type": "google.protobuf.Any",
|
|
5552
5616
|
"id": 50
|
|
@@ -5667,7 +5731,7 @@
|
|
|
5667
5731
|
},
|
|
5668
5732
|
"tokens": {
|
|
5669
5733
|
"rule": "repeated",
|
|
5670
|
-
"type": "
|
|
5734
|
+
"type": "TokenMeta",
|
|
5671
5735
|
"id": 14
|
|
5672
5736
|
},
|
|
5673
5737
|
"numMinted": {
|
|
@@ -5708,7 +5772,7 @@
|
|
|
5708
5772
|
},
|
|
5709
5773
|
"tokens": {
|
|
5710
5774
|
"rule": "repeated",
|
|
5711
|
-
"type": "
|
|
5775
|
+
"type": "TokenMeta",
|
|
5712
5776
|
"id": 4
|
|
5713
5777
|
},
|
|
5714
5778
|
"assets": {
|
|
@@ -5738,7 +5802,7 @@
|
|
|
5738
5802
|
},
|
|
5739
5803
|
"revokedTokens": {
|
|
5740
5804
|
"rule": "repeated",
|
|
5741
|
-
"type": "
|
|
5805
|
+
"type": "TokenMeta",
|
|
5742
5806
|
"id": 11
|
|
5743
5807
|
},
|
|
5744
5808
|
"revokedAssets": {
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -3489,7 +3489,9 @@ proto.ocap.TokenState.toObject = function(includeInstance, msg) {
|
|
|
3489
3489
|
tokenFactoryAddress: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3490
3490
|
initialSupply: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
3491
3491
|
maxTotalSupply: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
3492
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
|
|
3492
3493
|
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
|
|
3494
|
+
website: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
3493
3495
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
3494
3496
|
};
|
|
3495
3497
|
|
|
@@ -3580,11 +3582,20 @@ proto.ocap.TokenState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3580
3582
|
var value = /** @type {string} */ (reader.readString());
|
|
3581
3583
|
msg.setMaxTotalSupply(value);
|
|
3582
3584
|
break;
|
|
3585
|
+
case 14:
|
|
3586
|
+
var value = new google_protobuf_any_pb.Any;
|
|
3587
|
+
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
3588
|
+
msg.setMetadata(value);
|
|
3589
|
+
break;
|
|
3583
3590
|
case 15:
|
|
3584
3591
|
var value = new type_pb.StateContext;
|
|
3585
3592
|
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
3586
3593
|
msg.setContext(value);
|
|
3587
3594
|
break;
|
|
3595
|
+
case 16:
|
|
3596
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3597
|
+
msg.setWebsite(value);
|
|
3598
|
+
break;
|
|
3588
3599
|
case 20:
|
|
3589
3600
|
var value = new google_protobuf_any_pb.Any;
|
|
3590
3601
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -3711,6 +3722,14 @@ proto.ocap.TokenState.serializeBinaryToWriter = function(message, writer) {
|
|
|
3711
3722
|
f
|
|
3712
3723
|
);
|
|
3713
3724
|
}
|
|
3725
|
+
f = message.getMetadata();
|
|
3726
|
+
if (f != null) {
|
|
3727
|
+
writer.writeMessage(
|
|
3728
|
+
14,
|
|
3729
|
+
f,
|
|
3730
|
+
google_protobuf_any_pb.Any.serializeBinaryToWriter
|
|
3731
|
+
);
|
|
3732
|
+
}
|
|
3714
3733
|
f = message.getContext();
|
|
3715
3734
|
if (f != null) {
|
|
3716
3735
|
writer.writeMessage(
|
|
@@ -3719,6 +3738,13 @@ proto.ocap.TokenState.serializeBinaryToWriter = function(message, writer) {
|
|
|
3719
3738
|
type_pb.StateContext.serializeBinaryToWriter
|
|
3720
3739
|
);
|
|
3721
3740
|
}
|
|
3741
|
+
f = message.getWebsite();
|
|
3742
|
+
if (f.length > 0) {
|
|
3743
|
+
writer.writeString(
|
|
3744
|
+
16,
|
|
3745
|
+
f
|
|
3746
|
+
);
|
|
3747
|
+
}
|
|
3722
3748
|
f = message.getData();
|
|
3723
3749
|
if (f != null) {
|
|
3724
3750
|
writer.writeMessage(
|
|
@@ -3983,6 +4009,43 @@ proto.ocap.TokenState.prototype.setMaxTotalSupply = function(value) {
|
|
|
3983
4009
|
};
|
|
3984
4010
|
|
|
3985
4011
|
|
|
4012
|
+
/**
|
|
4013
|
+
* optional google.protobuf.Any metadata = 14;
|
|
4014
|
+
* @return {?proto.google.protobuf.Any}
|
|
4015
|
+
*/
|
|
4016
|
+
proto.ocap.TokenState.prototype.getMetadata = function() {
|
|
4017
|
+
return /** @type{?proto.google.protobuf.Any} */ (
|
|
4018
|
+
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 14));
|
|
4019
|
+
};
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* @param {?proto.google.protobuf.Any|undefined} value
|
|
4024
|
+
* @return {!proto.ocap.TokenState} returns this
|
|
4025
|
+
*/
|
|
4026
|
+
proto.ocap.TokenState.prototype.setMetadata = function(value) {
|
|
4027
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
* Clears the message field making it undefined.
|
|
4033
|
+
* @return {!proto.ocap.TokenState} returns this
|
|
4034
|
+
*/
|
|
4035
|
+
proto.ocap.TokenState.prototype.clearMetadata = function() {
|
|
4036
|
+
return this.setMetadata(undefined);
|
|
4037
|
+
};
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
/**
|
|
4041
|
+
* Returns whether this field is set.
|
|
4042
|
+
* @return {boolean}
|
|
4043
|
+
*/
|
|
4044
|
+
proto.ocap.TokenState.prototype.hasMetadata = function() {
|
|
4045
|
+
return jspb.Message.getField(this, 14) != null;
|
|
4046
|
+
};
|
|
4047
|
+
|
|
4048
|
+
|
|
3986
4049
|
/**
|
|
3987
4050
|
* optional StateContext context = 15;
|
|
3988
4051
|
* @return {?proto.ocap.StateContext}
|
|
@@ -4020,6 +4083,24 @@ proto.ocap.TokenState.prototype.hasContext = function() {
|
|
|
4020
4083
|
};
|
|
4021
4084
|
|
|
4022
4085
|
|
|
4086
|
+
/**
|
|
4087
|
+
* optional string website = 16;
|
|
4088
|
+
* @return {string}
|
|
4089
|
+
*/
|
|
4090
|
+
proto.ocap.TokenState.prototype.getWebsite = function() {
|
|
4091
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
4092
|
+
};
|
|
4093
|
+
|
|
4094
|
+
|
|
4095
|
+
/**
|
|
4096
|
+
* @param {string} value
|
|
4097
|
+
* @return {!proto.ocap.TokenState} returns this
|
|
4098
|
+
*/
|
|
4099
|
+
proto.ocap.TokenState.prototype.setWebsite = function(value) {
|
|
4100
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
4101
|
+
};
|
|
4102
|
+
|
|
4103
|
+
|
|
4023
4104
|
/**
|
|
4024
4105
|
* optional google.protobuf.Any data = 20;
|
|
4025
4106
|
* @return {?proto.google.protobuf.Any}
|