@ocap/proto 1.18.121 → 1.18.123
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/enum_pb.js +7 -1
- package/lib/gen/service.pb.graphqls +45 -0
- package/lib/gen/spec.json +12 -0
- package/lib/gen/state_pb.js +37 -1
- package/lib/gen/trace-type_pb.js +37 -1
- package/lib/gen/tx_pb.js +37 -1
- package/lib/gen/type_pb.js +7 -1
- package/lib/gen/vendor_pb.js +7 -1
- package/package.json +2 -2
package/lib/gen/enum_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.ocap.EncodingType', null, root);
|
|
19
25
|
goog.exportSymbol('proto.ocap.HashType', null, root);
|
|
@@ -46,6 +46,10 @@ input AssetFilterInput {
|
|
|
46
46
|
assets: [String!]
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
input DelegationFilterInput {
|
|
50
|
+
delegations: [String!]
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
input FactoryFilterInput {
|
|
50
54
|
factories: [String!]
|
|
51
55
|
}
|
|
@@ -206,6 +210,7 @@ input RequestListTransactionsInput {
|
|
|
206
210
|
txFilter: TxFilterInput
|
|
207
211
|
rollupFilter: RollupFilterInput
|
|
208
212
|
stakeFilter: StakeFilterInput
|
|
213
|
+
delegationFilter: DelegationFilterInput
|
|
209
214
|
}
|
|
210
215
|
|
|
211
216
|
input RequestSearchInput {
|
|
@@ -363,6 +368,16 @@ type AssetFactoryState {
|
|
|
363
368
|
lastSettlement: Timestamp
|
|
364
369
|
}
|
|
365
370
|
|
|
371
|
+
type AssetLimit {
|
|
372
|
+
address: [String!]
|
|
373
|
+
to: [String!]
|
|
374
|
+
txCount: Uint32
|
|
375
|
+
validUntil: Uint64
|
|
376
|
+
rate: RateLimit
|
|
377
|
+
txSent: Uint32
|
|
378
|
+
lastTx: Uint64
|
|
379
|
+
}
|
|
380
|
+
|
|
366
381
|
type AssetState {
|
|
367
382
|
address: String
|
|
368
383
|
owner: String
|
|
@@ -584,9 +599,15 @@ type DelegateConfig {
|
|
|
584
599
|
typeUrls: [String!]
|
|
585
600
|
}
|
|
586
601
|
|
|
602
|
+
type DelegateLimit {
|
|
603
|
+
tokens: [TokenLimit!]
|
|
604
|
+
assets: [AssetLimit!]
|
|
605
|
+
}
|
|
606
|
+
|
|
587
607
|
type DelegateOp {
|
|
588
608
|
typeUrl: String
|
|
589
609
|
rules: [String!]
|
|
610
|
+
limit: DelegateLimit
|
|
590
611
|
}
|
|
591
612
|
|
|
592
613
|
type DelegateOpState {
|
|
@@ -595,11 +616,14 @@ type DelegateOpState {
|
|
|
595
616
|
numTxsDelta: Uint64
|
|
596
617
|
balance: BigUint
|
|
597
618
|
balanceDelta: BigUint
|
|
619
|
+
limit: DelegateLimit
|
|
598
620
|
}
|
|
599
621
|
|
|
600
622
|
type DelegateState {
|
|
601
623
|
address: String
|
|
602
624
|
ops: DelegateState_OpsEntry
|
|
625
|
+
from: String
|
|
626
|
+
to: String
|
|
603
627
|
context: StateContext
|
|
604
628
|
data: Any
|
|
605
629
|
}
|
|
@@ -1191,6 +1215,11 @@ type PeerInfo {
|
|
|
1191
1215
|
geoInfo: GeoInfo
|
|
1192
1216
|
}
|
|
1193
1217
|
|
|
1218
|
+
type RateLimit {
|
|
1219
|
+
interval: Uint64
|
|
1220
|
+
anchor: Uint64
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1194
1223
|
type ReceiptChange {
|
|
1195
1224
|
target: String
|
|
1196
1225
|
action: String
|
|
@@ -1516,6 +1545,7 @@ type StakeTx {
|
|
|
1516
1545
|
message: String
|
|
1517
1546
|
revokeWaitingPeriod: Uint32
|
|
1518
1547
|
slashers: [String!]
|
|
1548
|
+
nonce: String
|
|
1519
1549
|
data: Any
|
|
1520
1550
|
}
|
|
1521
1551
|
|
|
@@ -1539,6 +1569,21 @@ type TokenInput {
|
|
|
1539
1569
|
value: String
|
|
1540
1570
|
}
|
|
1541
1571
|
|
|
1572
|
+
type TokenLimit {
|
|
1573
|
+
address: String
|
|
1574
|
+
to: [String!]
|
|
1575
|
+
txCount: Uint32
|
|
1576
|
+
txAllowance: String
|
|
1577
|
+
totalAllowance: String
|
|
1578
|
+
validUntil: Uint64
|
|
1579
|
+
rate: RateLimit
|
|
1580
|
+
txSent: Uint32
|
|
1581
|
+
spentAllowance: String
|
|
1582
|
+
lastTx: Uint64
|
|
1583
|
+
decimal: Uint32
|
|
1584
|
+
symbol: String
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1542
1587
|
type TokenState {
|
|
1543
1588
|
address: String
|
|
1544
1589
|
issuer: String
|
package/lib/gen/spec.json
CHANGED
|
@@ -3003,6 +3003,10 @@
|
|
|
3003
3003
|
"type": "string",
|
|
3004
3004
|
"id": 11
|
|
3005
3005
|
},
|
|
3006
|
+
"nonce": {
|
|
3007
|
+
"type": "string",
|
|
3008
|
+
"id": 12
|
|
3009
|
+
},
|
|
3006
3010
|
"context": {
|
|
3007
3011
|
"type": "StateContext",
|
|
3008
3012
|
"id": 30
|
|
@@ -3864,6 +3868,10 @@
|
|
|
3864
3868
|
"type": "string",
|
|
3865
3869
|
"id": 7
|
|
3866
3870
|
},
|
|
3871
|
+
"nonce": {
|
|
3872
|
+
"type": "string",
|
|
3873
|
+
"id": 8
|
|
3874
|
+
},
|
|
3867
3875
|
"data": {
|
|
3868
3876
|
"type": "google.protobuf.Any",
|
|
3869
3877
|
"id": 50
|
|
@@ -5257,6 +5265,10 @@
|
|
|
5257
5265
|
"type": "string",
|
|
5258
5266
|
"id": 13
|
|
5259
5267
|
},
|
|
5268
|
+
"nonce": {
|
|
5269
|
+
"type": "string",
|
|
5270
|
+
"id": 14
|
|
5271
|
+
},
|
|
5260
5272
|
"data": {
|
|
5261
5273
|
"type": "google.protobuf.Any",
|
|
5262
5274
|
"id": 50
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
@@ -4770,6 +4776,7 @@ proto.ocap.StakeState.toObject = function(includeInstance, msg) {
|
|
|
4770
4776
|
type_pb.IndexedTokenInput.toObject, includeInstance),
|
|
4771
4777
|
revokedAssetsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
|
|
4772
4778
|
slashersList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
|
|
4779
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
4773
4780
|
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
|
|
4774
4781
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
4775
4782
|
};
|
|
@@ -4854,6 +4861,10 @@ proto.ocap.StakeState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4854
4861
|
var value = /** @type {string} */ (reader.readString());
|
|
4855
4862
|
msg.addSlashers(value);
|
|
4856
4863
|
break;
|
|
4864
|
+
case 12:
|
|
4865
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4866
|
+
msg.setNonce(value);
|
|
4867
|
+
break;
|
|
4857
4868
|
case 30:
|
|
4858
4869
|
var value = new type_pb.StateContext;
|
|
4859
4870
|
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
@@ -4972,6 +4983,13 @@ proto.ocap.StakeState.serializeBinaryToWriter = function(message, writer) {
|
|
|
4972
4983
|
f
|
|
4973
4984
|
);
|
|
4974
4985
|
}
|
|
4986
|
+
f = message.getNonce();
|
|
4987
|
+
if (f.length > 0) {
|
|
4988
|
+
writer.writeString(
|
|
4989
|
+
12,
|
|
4990
|
+
f
|
|
4991
|
+
);
|
|
4992
|
+
}
|
|
4975
4993
|
f = message.getContext();
|
|
4976
4994
|
if (f != null) {
|
|
4977
4995
|
writer.writeMessage(
|
|
@@ -5286,6 +5304,24 @@ proto.ocap.StakeState.prototype.clearSlashersList = function() {
|
|
|
5286
5304
|
};
|
|
5287
5305
|
|
|
5288
5306
|
|
|
5307
|
+
/**
|
|
5308
|
+
* optional string nonce = 12;
|
|
5309
|
+
* @return {string}
|
|
5310
|
+
*/
|
|
5311
|
+
proto.ocap.StakeState.prototype.getNonce = function() {
|
|
5312
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
5313
|
+
};
|
|
5314
|
+
|
|
5315
|
+
|
|
5316
|
+
/**
|
|
5317
|
+
* @param {string} value
|
|
5318
|
+
* @return {!proto.ocap.StakeState} returns this
|
|
5319
|
+
*/
|
|
5320
|
+
proto.ocap.StakeState.prototype.setNonce = function(value) {
|
|
5321
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
5322
|
+
};
|
|
5323
|
+
|
|
5324
|
+
|
|
5289
5325
|
/**
|
|
5290
5326
|
* optional StateContext context = 30;
|
|
5291
5327
|
* @return {?proto.ocap.StateContext}
|
package/lib/gen/trace-type_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
@@ -7741,6 +7747,7 @@ proto.ocap.IndexedStakeState.toObject = function(includeInstance, msg) {
|
|
|
7741
7747
|
proto.ocap.TokenInfo.toObject, includeInstance),
|
|
7742
7748
|
revokedAssetsList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
|
|
7743
7749
|
slashersList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
|
|
7750
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
7744
7751
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
7745
7752
|
};
|
|
7746
7753
|
|
|
@@ -7832,6 +7839,10 @@ proto.ocap.IndexedStakeState.deserializeBinaryFromReader = function(msg, reader)
|
|
|
7832
7839
|
var value = /** @type {string} */ (reader.readString());
|
|
7833
7840
|
msg.addSlashers(value);
|
|
7834
7841
|
break;
|
|
7842
|
+
case 14:
|
|
7843
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7844
|
+
msg.setNonce(value);
|
|
7845
|
+
break;
|
|
7835
7846
|
case 50:
|
|
7836
7847
|
var value = new google_protobuf_any_pb.Any;
|
|
7837
7848
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -7959,6 +7970,13 @@ proto.ocap.IndexedStakeState.serializeBinaryToWriter = function(message, writer)
|
|
|
7959
7970
|
f
|
|
7960
7971
|
);
|
|
7961
7972
|
}
|
|
7973
|
+
f = message.getNonce();
|
|
7974
|
+
if (f.length > 0) {
|
|
7975
|
+
writer.writeString(
|
|
7976
|
+
14,
|
|
7977
|
+
f
|
|
7978
|
+
);
|
|
7979
|
+
}
|
|
7962
7980
|
f = message.getData();
|
|
7963
7981
|
if (f != null) {
|
|
7964
7982
|
writer.writeMessage(
|
|
@@ -8301,6 +8319,24 @@ proto.ocap.IndexedStakeState.prototype.clearSlashersList = function() {
|
|
|
8301
8319
|
};
|
|
8302
8320
|
|
|
8303
8321
|
|
|
8322
|
+
/**
|
|
8323
|
+
* optional string nonce = 14;
|
|
8324
|
+
* @return {string}
|
|
8325
|
+
*/
|
|
8326
|
+
proto.ocap.IndexedStakeState.prototype.getNonce = function() {
|
|
8327
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
8328
|
+
};
|
|
8329
|
+
|
|
8330
|
+
|
|
8331
|
+
/**
|
|
8332
|
+
* @param {string} value
|
|
8333
|
+
* @return {!proto.ocap.IndexedStakeState} returns this
|
|
8334
|
+
*/
|
|
8335
|
+
proto.ocap.IndexedStakeState.prototype.setNonce = function(value) {
|
|
8336
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
8337
|
+
};
|
|
8338
|
+
|
|
8339
|
+
|
|
8304
8340
|
/**
|
|
8305
8341
|
* optional google.protobuf.Any data = 50;
|
|
8306
8342
|
* @return {?proto.google.protobuf.Any}
|
package/lib/gen/tx_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
@@ -7811,6 +7817,7 @@ proto.ocap.StakeTx.toObject = function(includeInstance, msg) {
|
|
|
7811
7817
|
message: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7812
7818
|
revokeWaitingPeriod: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
7813
7819
|
slashersList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
7820
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
7814
7821
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
7815
7822
|
};
|
|
7816
7823
|
|
|
@@ -7877,6 +7884,10 @@ proto.ocap.StakeTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
7877
7884
|
var value = /** @type {string} */ (reader.readString());
|
|
7878
7885
|
msg.addSlashers(value);
|
|
7879
7886
|
break;
|
|
7887
|
+
case 8:
|
|
7888
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7889
|
+
msg.setNonce(value);
|
|
7890
|
+
break;
|
|
7880
7891
|
case 50:
|
|
7881
7892
|
var value = new google_protobuf_any_pb.Any;
|
|
7882
7893
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -7961,6 +7972,13 @@ proto.ocap.StakeTx.serializeBinaryToWriter = function(message, writer) {
|
|
|
7961
7972
|
f
|
|
7962
7973
|
);
|
|
7963
7974
|
}
|
|
7975
|
+
f = message.getNonce();
|
|
7976
|
+
if (f.length > 0) {
|
|
7977
|
+
writer.writeString(
|
|
7978
|
+
8,
|
|
7979
|
+
f
|
|
7980
|
+
);
|
|
7981
|
+
}
|
|
7964
7982
|
f = message.getData();
|
|
7965
7983
|
if (f != null) {
|
|
7966
7984
|
writer.writeMessage(
|
|
@@ -8137,6 +8155,24 @@ proto.ocap.StakeTx.prototype.clearSlashersList = function() {
|
|
|
8137
8155
|
};
|
|
8138
8156
|
|
|
8139
8157
|
|
|
8158
|
+
/**
|
|
8159
|
+
* optional string nonce = 8;
|
|
8160
|
+
* @return {string}
|
|
8161
|
+
*/
|
|
8162
|
+
proto.ocap.StakeTx.prototype.getNonce = function() {
|
|
8163
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
8164
|
+
};
|
|
8165
|
+
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* @param {string} value
|
|
8169
|
+
* @return {!proto.ocap.StakeTx} returns this
|
|
8170
|
+
*/
|
|
8171
|
+
proto.ocap.StakeTx.prototype.setNonce = function(value) {
|
|
8172
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
8173
|
+
};
|
|
8174
|
+
|
|
8175
|
+
|
|
8140
8176
|
/**
|
|
8141
8177
|
* optional google.protobuf.Any data = 50;
|
|
8142
8178
|
* @return {?proto.google.protobuf.Any}
|
package/lib/gen/type_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
package/lib/gen/vendor_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var root = (
|
|
16
|
+
var root = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof root !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
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.18.
|
|
4
|
+
"version": "1.18.123",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"debug": "^4.3.4",
|
|
49
49
|
"lodash": "^4.17.21"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "fa235d164885434399fafe96860d8e5c137bce3b"
|
|
52
52
|
}
|