@ocap/proto 1.18.17 → 1.18.19
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 +62 -0
- package/lib/gen/state_pb.js +101 -1
- package/lib/gen/trace-type_pb.js +50 -1
- package/lib/gen/tx_pb.js +396 -2
- package/lib/gen/type_pb.js +238 -0
- package/lib/index.d.ts +9 -8
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -1573,6 +1573,23 @@
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
},
|
|
1576
|
+
"VaultConfig": {
|
|
1577
|
+
"fields": {
|
|
1578
|
+
"slashedStake": {
|
|
1579
|
+
"type": "string",
|
|
1580
|
+
"id": 1
|
|
1581
|
+
},
|
|
1582
|
+
"txFee": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"id": 2
|
|
1585
|
+
},
|
|
1586
|
+
"txGas": {
|
|
1587
|
+
"rule": "repeated",
|
|
1588
|
+
"type": "string",
|
|
1589
|
+
"id": 3
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1576
1593
|
"TxFeeConfig": {
|
|
1577
1594
|
"fields": {
|
|
1578
1595
|
"typeUrl": {
|
|
@@ -2499,6 +2516,10 @@
|
|
|
2499
2516
|
"type": "AccountConfig",
|
|
2500
2517
|
"id": 8
|
|
2501
2518
|
},
|
|
2519
|
+
"vaults": {
|
|
2520
|
+
"type": "VaultConfig",
|
|
2521
|
+
"id": 9
|
|
2522
|
+
},
|
|
2502
2523
|
"data": {
|
|
2503
2524
|
"type": "google.protobuf.Any",
|
|
2504
2525
|
"id": 2047
|
|
@@ -2755,6 +2776,11 @@
|
|
|
2755
2776
|
"type": "string",
|
|
2756
2777
|
"id": 10
|
|
2757
2778
|
},
|
|
2779
|
+
"slashers": {
|
|
2780
|
+
"rule": "repeated",
|
|
2781
|
+
"type": "string",
|
|
2782
|
+
"id": 11
|
|
2783
|
+
},
|
|
2758
2784
|
"context": {
|
|
2759
2785
|
"type": "StateContext",
|
|
2760
2786
|
"id": 30
|
|
@@ -3571,6 +3597,11 @@
|
|
|
3571
3597
|
"type": "uint32",
|
|
3572
3598
|
"id": 6
|
|
3573
3599
|
},
|
|
3600
|
+
"slashers": {
|
|
3601
|
+
"rule": "repeated",
|
|
3602
|
+
"type": "string",
|
|
3603
|
+
"id": 7
|
|
3604
|
+
},
|
|
3574
3605
|
"data": {
|
|
3575
3606
|
"type": "google.protobuf.Any",
|
|
3576
3607
|
"id": 50
|
|
@@ -3610,6 +3641,27 @@
|
|
|
3610
3641
|
}
|
|
3611
3642
|
}
|
|
3612
3643
|
},
|
|
3644
|
+
"SlashStakeTx": {
|
|
3645
|
+
"fields": {
|
|
3646
|
+
"address": {
|
|
3647
|
+
"type": "string",
|
|
3648
|
+
"id": 1
|
|
3649
|
+
},
|
|
3650
|
+
"outputs": {
|
|
3651
|
+
"rule": "repeated",
|
|
3652
|
+
"type": "TransactionInput",
|
|
3653
|
+
"id": 2
|
|
3654
|
+
},
|
|
3655
|
+
"message": {
|
|
3656
|
+
"type": "string",
|
|
3657
|
+
"id": 3
|
|
3658
|
+
},
|
|
3659
|
+
"data": {
|
|
3660
|
+
"type": "google.protobuf.Any",
|
|
3661
|
+
"id": 50
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3613
3665
|
"CreateRollupTx": {
|
|
3614
3666
|
"fields": {
|
|
3615
3667
|
"address": {
|
|
@@ -4120,6 +4172,7 @@
|
|
|
4120
4172
|
"stake",
|
|
4121
4173
|
"revokeStake",
|
|
4122
4174
|
"claimStake",
|
|
4175
|
+
"slashStake",
|
|
4123
4176
|
"upgradeNode",
|
|
4124
4177
|
"createRollup",
|
|
4125
4178
|
"updateRollup",
|
|
@@ -4219,6 +4272,10 @@
|
|
|
4219
4272
|
"type": "ClaimStakeTx",
|
|
4220
4273
|
"id": 42
|
|
4221
4274
|
},
|
|
4275
|
+
"slashStake": {
|
|
4276
|
+
"type": "SlashStakeTx",
|
|
4277
|
+
"id": 43
|
|
4278
|
+
},
|
|
4222
4279
|
"upgradeNode": {
|
|
4223
4280
|
"type": "UpgradeNodeTx",
|
|
4224
4281
|
"id": 49
|
|
@@ -4902,6 +4959,11 @@
|
|
|
4902
4959
|
"type": "string",
|
|
4903
4960
|
"id": 12
|
|
4904
4961
|
},
|
|
4962
|
+
"slashers": {
|
|
4963
|
+
"rule": "repeated",
|
|
4964
|
+
"type": "string",
|
|
4965
|
+
"id": 13
|
|
4966
|
+
},
|
|
4905
4967
|
"data": {
|
|
4906
4968
|
"type": "google.protobuf.Any",
|
|
4907
4969
|
"id": 50
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -1733,6 +1733,7 @@ proto.ocap.ForgeState.toObject = function(includeInstance, msg) {
|
|
|
1733
1733
|
upgradeInfo: (f = msg.getUpgradeInfo()) && type_pb.UpgradeInfo.toObject(includeInstance, f),
|
|
1734
1734
|
accountConfigList: jspb.Message.toObjectList(msg.getAccountConfigList(),
|
|
1735
1735
|
type_pb.AccountConfig.toObject, includeInstance),
|
|
1736
|
+
vaults: (f = msg.getVaults()) && type_pb.VaultConfig.toObject(includeInstance, f),
|
|
1736
1737
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
1737
1738
|
};
|
|
1738
1739
|
|
|
@@ -1809,6 +1810,11 @@ proto.ocap.ForgeState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1809
1810
|
reader.readMessage(value,type_pb.AccountConfig.deserializeBinaryFromReader);
|
|
1810
1811
|
msg.addAccountConfig(value);
|
|
1811
1812
|
break;
|
|
1813
|
+
case 9:
|
|
1814
|
+
var value = new type_pb.VaultConfig;
|
|
1815
|
+
reader.readMessage(value,type_pb.VaultConfig.deserializeBinaryFromReader);
|
|
1816
|
+
msg.setVaults(value);
|
|
1817
|
+
break;
|
|
1812
1818
|
case 2047:
|
|
1813
1819
|
var value = new google_protobuf_any_pb.Any;
|
|
1814
1820
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -1901,6 +1907,14 @@ proto.ocap.ForgeState.serializeBinaryToWriter = function(message, writer) {
|
|
|
1901
1907
|
type_pb.AccountConfig.serializeBinaryToWriter
|
|
1902
1908
|
);
|
|
1903
1909
|
}
|
|
1910
|
+
f = message.getVaults();
|
|
1911
|
+
if (f != null) {
|
|
1912
|
+
writer.writeMessage(
|
|
1913
|
+
9,
|
|
1914
|
+
f,
|
|
1915
|
+
type_pb.VaultConfig.serializeBinaryToWriter
|
|
1916
|
+
);
|
|
1917
|
+
}
|
|
1904
1918
|
f = message.getData();
|
|
1905
1919
|
if (f != null) {
|
|
1906
1920
|
writer.writeMessage(
|
|
@@ -2156,6 +2170,43 @@ proto.ocap.ForgeState.prototype.clearAccountConfigList = function() {
|
|
|
2156
2170
|
};
|
|
2157
2171
|
|
|
2158
2172
|
|
|
2173
|
+
/**
|
|
2174
|
+
* optional VaultConfig vaults = 9;
|
|
2175
|
+
* @return {?proto.ocap.VaultConfig}
|
|
2176
|
+
*/
|
|
2177
|
+
proto.ocap.ForgeState.prototype.getVaults = function() {
|
|
2178
|
+
return /** @type{?proto.ocap.VaultConfig} */ (
|
|
2179
|
+
jspb.Message.getWrapperField(this, type_pb.VaultConfig, 9));
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* @param {?proto.ocap.VaultConfig|undefined} value
|
|
2185
|
+
* @return {!proto.ocap.ForgeState} returns this
|
|
2186
|
+
*/
|
|
2187
|
+
proto.ocap.ForgeState.prototype.setVaults = function(value) {
|
|
2188
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* Clears the message field making it undefined.
|
|
2194
|
+
* @return {!proto.ocap.ForgeState} returns this
|
|
2195
|
+
*/
|
|
2196
|
+
proto.ocap.ForgeState.prototype.clearVaults = function() {
|
|
2197
|
+
return this.setVaults(undefined);
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* Returns whether this field is set.
|
|
2203
|
+
* @return {boolean}
|
|
2204
|
+
*/
|
|
2205
|
+
proto.ocap.ForgeState.prototype.hasVaults = function() {
|
|
2206
|
+
return jspb.Message.getField(this, 9) != null;
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
|
|
2159
2210
|
/**
|
|
2160
2211
|
* optional google.protobuf.Any data = 2047;
|
|
2161
2212
|
* @return {?proto.google.protobuf.Any}
|
|
@@ -4562,7 +4613,7 @@ proto.ocap.AssetFactoryState.prototype.hasLastSettlement = function() {
|
|
|
4562
4613
|
* @private {!Array<number>}
|
|
4563
4614
|
* @const
|
|
4564
4615
|
*/
|
|
4565
|
-
proto.ocap.StakeState.repeatedFields_ = [4,5,9,10];
|
|
4616
|
+
proto.ocap.StakeState.repeatedFields_ = [4,5,9,10,11];
|
|
4566
4617
|
|
|
4567
4618
|
|
|
4568
4619
|
|
|
@@ -4607,6 +4658,7 @@ proto.ocap.StakeState.toObject = function(includeInstance, msg) {
|
|
|
4607
4658
|
revokedTokensList: jspb.Message.toObjectList(msg.getRevokedTokensList(),
|
|
4608
4659
|
type_pb.IndexedTokenInput.toObject, includeInstance),
|
|
4609
4660
|
revokedAssetsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
|
|
4661
|
+
slashersList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
|
|
4610
4662
|
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
|
|
4611
4663
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
4612
4664
|
};
|
|
@@ -4687,6 +4739,10 @@ proto.ocap.StakeState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4687
4739
|
var value = /** @type {string} */ (reader.readString());
|
|
4688
4740
|
msg.addRevokedAssets(value);
|
|
4689
4741
|
break;
|
|
4742
|
+
case 11:
|
|
4743
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4744
|
+
msg.addSlashers(value);
|
|
4745
|
+
break;
|
|
4690
4746
|
case 30:
|
|
4691
4747
|
var value = new type_pb.StateContext;
|
|
4692
4748
|
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
@@ -4798,6 +4854,13 @@ proto.ocap.StakeState.serializeBinaryToWriter = function(message, writer) {
|
|
|
4798
4854
|
f
|
|
4799
4855
|
);
|
|
4800
4856
|
}
|
|
4857
|
+
f = message.getSlashersList();
|
|
4858
|
+
if (f.length > 0) {
|
|
4859
|
+
writer.writeRepeatedString(
|
|
4860
|
+
11,
|
|
4861
|
+
f
|
|
4862
|
+
);
|
|
4863
|
+
}
|
|
4801
4864
|
f = message.getContext();
|
|
4802
4865
|
if (f != null) {
|
|
4803
4866
|
writer.writeMessage(
|
|
@@ -5075,6 +5138,43 @@ proto.ocap.StakeState.prototype.clearRevokedAssetsList = function() {
|
|
|
5075
5138
|
};
|
|
5076
5139
|
|
|
5077
5140
|
|
|
5141
|
+
/**
|
|
5142
|
+
* repeated string slashers = 11;
|
|
5143
|
+
* @return {!Array<string>}
|
|
5144
|
+
*/
|
|
5145
|
+
proto.ocap.StakeState.prototype.getSlashersList = function() {
|
|
5146
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
|
|
5150
|
+
/**
|
|
5151
|
+
* @param {!Array<string>} value
|
|
5152
|
+
* @return {!proto.ocap.StakeState} returns this
|
|
5153
|
+
*/
|
|
5154
|
+
proto.ocap.StakeState.prototype.setSlashersList = function(value) {
|
|
5155
|
+
return jspb.Message.setField(this, 11, value || []);
|
|
5156
|
+
};
|
|
5157
|
+
|
|
5158
|
+
|
|
5159
|
+
/**
|
|
5160
|
+
* @param {string} value
|
|
5161
|
+
* @param {number=} opt_index
|
|
5162
|
+
* @return {!proto.ocap.StakeState} returns this
|
|
5163
|
+
*/
|
|
5164
|
+
proto.ocap.StakeState.prototype.addSlashers = function(value, opt_index) {
|
|
5165
|
+
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
|
|
5166
|
+
};
|
|
5167
|
+
|
|
5168
|
+
|
|
5169
|
+
/**
|
|
5170
|
+
* Clears the list making it empty but non-null.
|
|
5171
|
+
* @return {!proto.ocap.StakeState} returns this
|
|
5172
|
+
*/
|
|
5173
|
+
proto.ocap.StakeState.prototype.clearSlashersList = function() {
|
|
5174
|
+
return this.setSlashersList([]);
|
|
5175
|
+
};
|
|
5176
|
+
|
|
5177
|
+
|
|
5078
5178
|
/**
|
|
5079
5179
|
* optional StateContext context = 30;
|
|
5080
5180
|
* @return {?proto.ocap.StateContext}
|
package/lib/gen/trace-type_pb.js
CHANGED
|
@@ -7313,7 +7313,7 @@ proto.ocap.IndexedFactoryState.prototype.hasDisplay = function() {
|
|
|
7313
7313
|
* @private {!Array<number>}
|
|
7314
7314
|
* @const
|
|
7315
7315
|
*/
|
|
7316
|
-
proto.ocap.IndexedStakeState.repeatedFields_ = [4,5,11,12];
|
|
7316
|
+
proto.ocap.IndexedStakeState.repeatedFields_ = [4,5,11,12,13];
|
|
7317
7317
|
|
|
7318
7318
|
|
|
7319
7319
|
|
|
@@ -7360,6 +7360,7 @@ proto.ocap.IndexedStakeState.toObject = function(includeInstance, msg) {
|
|
|
7360
7360
|
revokedTokensList: jspb.Message.toObjectList(msg.getRevokedTokensList(),
|
|
7361
7361
|
proto.ocap.TokenInfo.toObject, includeInstance),
|
|
7362
7362
|
revokedAssetsList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
|
|
7363
|
+
slashersList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
|
|
7363
7364
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
7364
7365
|
};
|
|
7365
7366
|
|
|
@@ -7447,6 +7448,10 @@ proto.ocap.IndexedStakeState.deserializeBinaryFromReader = function(msg, reader)
|
|
|
7447
7448
|
var value = /** @type {string} */ (reader.readString());
|
|
7448
7449
|
msg.addRevokedAssets(value);
|
|
7449
7450
|
break;
|
|
7451
|
+
case 13:
|
|
7452
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7453
|
+
msg.addSlashers(value);
|
|
7454
|
+
break;
|
|
7450
7455
|
case 50:
|
|
7451
7456
|
var value = new google_protobuf_any_pb.Any;
|
|
7452
7457
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -7567,6 +7572,13 @@ proto.ocap.IndexedStakeState.serializeBinaryToWriter = function(message, writer)
|
|
|
7567
7572
|
f
|
|
7568
7573
|
);
|
|
7569
7574
|
}
|
|
7575
|
+
f = message.getSlashersList();
|
|
7576
|
+
if (f.length > 0) {
|
|
7577
|
+
writer.writeRepeatedString(
|
|
7578
|
+
13,
|
|
7579
|
+
f
|
|
7580
|
+
);
|
|
7581
|
+
}
|
|
7570
7582
|
f = message.getData();
|
|
7571
7583
|
if (f != null) {
|
|
7572
7584
|
writer.writeMessage(
|
|
@@ -7872,6 +7884,43 @@ proto.ocap.IndexedStakeState.prototype.clearRevokedAssetsList = function() {
|
|
|
7872
7884
|
};
|
|
7873
7885
|
|
|
7874
7886
|
|
|
7887
|
+
/**
|
|
7888
|
+
* repeated string slashers = 13;
|
|
7889
|
+
* @return {!Array<string>}
|
|
7890
|
+
*/
|
|
7891
|
+
proto.ocap.IndexedStakeState.prototype.getSlashersList = function() {
|
|
7892
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
|
|
7893
|
+
};
|
|
7894
|
+
|
|
7895
|
+
|
|
7896
|
+
/**
|
|
7897
|
+
* @param {!Array<string>} value
|
|
7898
|
+
* @return {!proto.ocap.IndexedStakeState} returns this
|
|
7899
|
+
*/
|
|
7900
|
+
proto.ocap.IndexedStakeState.prototype.setSlashersList = function(value) {
|
|
7901
|
+
return jspb.Message.setField(this, 13, value || []);
|
|
7902
|
+
};
|
|
7903
|
+
|
|
7904
|
+
|
|
7905
|
+
/**
|
|
7906
|
+
* @param {string} value
|
|
7907
|
+
* @param {number=} opt_index
|
|
7908
|
+
* @return {!proto.ocap.IndexedStakeState} returns this
|
|
7909
|
+
*/
|
|
7910
|
+
proto.ocap.IndexedStakeState.prototype.addSlashers = function(value, opt_index) {
|
|
7911
|
+
return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
|
|
7912
|
+
};
|
|
7913
|
+
|
|
7914
|
+
|
|
7915
|
+
/**
|
|
7916
|
+
* Clears the list making it empty but non-null.
|
|
7917
|
+
* @return {!proto.ocap.IndexedStakeState} returns this
|
|
7918
|
+
*/
|
|
7919
|
+
proto.ocap.IndexedStakeState.prototype.clearSlashersList = function() {
|
|
7920
|
+
return this.setSlashersList([]);
|
|
7921
|
+
};
|
|
7922
|
+
|
|
7923
|
+
|
|
7875
7924
|
/**
|
|
7876
7925
|
* optional google.protobuf.Any data = 50;
|
|
7877
7926
|
* @return {?proto.google.protobuf.Any}
|
package/lib/gen/tx_pb.js
CHANGED
|
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.ocap.PauseRollupTx', null, root);
|
|
|
51
51
|
goog.exportSymbol('proto.ocap.ResumeRollupTx', null, root);
|
|
52
52
|
goog.exportSymbol('proto.ocap.RevokeDelegateTx', null, root);
|
|
53
53
|
goog.exportSymbol('proto.ocap.RevokeStakeTx', null, root);
|
|
54
|
+
goog.exportSymbol('proto.ocap.SlashStakeTx', null, root);
|
|
54
55
|
goog.exportSymbol('proto.ocap.StakeTx', null, root);
|
|
55
56
|
goog.exportSymbol('proto.ocap.TransferTx', null, root);
|
|
56
57
|
goog.exportSymbol('proto.ocap.TransferV2Tx', null, root);
|
|
@@ -563,6 +564,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
563
564
|
*/
|
|
564
565
|
proto.ocap.ClaimStakeTx.displayName = 'proto.ocap.ClaimStakeTx';
|
|
565
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* Generated by JsPbCodeGenerator.
|
|
569
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
570
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
571
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
572
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
573
|
+
* valid.
|
|
574
|
+
* @extends {jspb.Message}
|
|
575
|
+
* @constructor
|
|
576
|
+
*/
|
|
577
|
+
proto.ocap.SlashStakeTx = function(opt_data) {
|
|
578
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.SlashStakeTx.repeatedFields_, null);
|
|
579
|
+
};
|
|
580
|
+
goog.inherits(proto.ocap.SlashStakeTx, jspb.Message);
|
|
581
|
+
if (goog.DEBUG && !COMPILED) {
|
|
582
|
+
/**
|
|
583
|
+
* @public
|
|
584
|
+
* @override
|
|
585
|
+
*/
|
|
586
|
+
proto.ocap.SlashStakeTx.displayName = 'proto.ocap.SlashStakeTx';
|
|
587
|
+
}
|
|
566
588
|
/**
|
|
567
589
|
* Generated by JsPbCodeGenerator.
|
|
568
590
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7464,7 +7486,7 @@ proto.ocap.CreateFactoryTx.prototype.hasData = function() {
|
|
|
7464
7486
|
* @private {!Array<number>}
|
|
7465
7487
|
* @const
|
|
7466
7488
|
*/
|
|
7467
|
-
proto.ocap.StakeTx.repeatedFields_ = [3];
|
|
7489
|
+
proto.ocap.StakeTx.repeatedFields_ = [3,7];
|
|
7468
7490
|
|
|
7469
7491
|
|
|
7470
7492
|
|
|
@@ -7504,6 +7526,7 @@ proto.ocap.StakeTx.toObject = function(includeInstance, msg) {
|
|
|
7504
7526
|
locked: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
7505
7527
|
message: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7506
7528
|
revokeWaitingPeriod: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
7529
|
+
slashersList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
7507
7530
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
7508
7531
|
};
|
|
7509
7532
|
|
|
@@ -7566,6 +7589,10 @@ proto.ocap.StakeTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
7566
7589
|
var value = /** @type {number} */ (reader.readUint32());
|
|
7567
7590
|
msg.setRevokeWaitingPeriod(value);
|
|
7568
7591
|
break;
|
|
7592
|
+
case 7:
|
|
7593
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7594
|
+
msg.addSlashers(value);
|
|
7595
|
+
break;
|
|
7569
7596
|
case 50:
|
|
7570
7597
|
var value = new google_protobuf_any_pb.Any;
|
|
7571
7598
|
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
@@ -7643,6 +7670,13 @@ proto.ocap.StakeTx.serializeBinaryToWriter = function(message, writer) {
|
|
|
7643
7670
|
f
|
|
7644
7671
|
);
|
|
7645
7672
|
}
|
|
7673
|
+
f = message.getSlashersList();
|
|
7674
|
+
if (f.length > 0) {
|
|
7675
|
+
writer.writeRepeatedString(
|
|
7676
|
+
7,
|
|
7677
|
+
f
|
|
7678
|
+
);
|
|
7679
|
+
}
|
|
7646
7680
|
f = message.getData();
|
|
7647
7681
|
if (f != null) {
|
|
7648
7682
|
writer.writeMessage(
|
|
@@ -7782,6 +7816,43 @@ proto.ocap.StakeTx.prototype.setRevokeWaitingPeriod = function(value) {
|
|
|
7782
7816
|
};
|
|
7783
7817
|
|
|
7784
7818
|
|
|
7819
|
+
/**
|
|
7820
|
+
* repeated string slashers = 7;
|
|
7821
|
+
* @return {!Array<string>}
|
|
7822
|
+
*/
|
|
7823
|
+
proto.ocap.StakeTx.prototype.getSlashersList = function() {
|
|
7824
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
7825
|
+
};
|
|
7826
|
+
|
|
7827
|
+
|
|
7828
|
+
/**
|
|
7829
|
+
* @param {!Array<string>} value
|
|
7830
|
+
* @return {!proto.ocap.StakeTx} returns this
|
|
7831
|
+
*/
|
|
7832
|
+
proto.ocap.StakeTx.prototype.setSlashersList = function(value) {
|
|
7833
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
7834
|
+
};
|
|
7835
|
+
|
|
7836
|
+
|
|
7837
|
+
/**
|
|
7838
|
+
* @param {string} value
|
|
7839
|
+
* @param {number=} opt_index
|
|
7840
|
+
* @return {!proto.ocap.StakeTx} returns this
|
|
7841
|
+
*/
|
|
7842
|
+
proto.ocap.StakeTx.prototype.addSlashers = function(value, opt_index) {
|
|
7843
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
7844
|
+
};
|
|
7845
|
+
|
|
7846
|
+
|
|
7847
|
+
/**
|
|
7848
|
+
* Clears the list making it empty but non-null.
|
|
7849
|
+
* @return {!proto.ocap.StakeTx} returns this
|
|
7850
|
+
*/
|
|
7851
|
+
proto.ocap.StakeTx.prototype.clearSlashersList = function() {
|
|
7852
|
+
return this.setSlashersList([]);
|
|
7853
|
+
};
|
|
7854
|
+
|
|
7855
|
+
|
|
7785
7856
|
/**
|
|
7786
7857
|
* optional google.protobuf.Any data = 50;
|
|
7787
7858
|
* @return {?proto.google.protobuf.Any}
|
|
@@ -8293,6 +8364,277 @@ proto.ocap.ClaimStakeTx.prototype.hasData = function() {
|
|
|
8293
8364
|
|
|
8294
8365
|
|
|
8295
8366
|
|
|
8367
|
+
/**
|
|
8368
|
+
* List of repeated fields within this message type.
|
|
8369
|
+
* @private {!Array<number>}
|
|
8370
|
+
* @const
|
|
8371
|
+
*/
|
|
8372
|
+
proto.ocap.SlashStakeTx.repeatedFields_ = [2];
|
|
8373
|
+
|
|
8374
|
+
|
|
8375
|
+
|
|
8376
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8377
|
+
/**
|
|
8378
|
+
* Creates an object representation of this proto.
|
|
8379
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8380
|
+
* Optional fields that are not set will be set to undefined.
|
|
8381
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8382
|
+
* For the list of reserved names please see:
|
|
8383
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8384
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8385
|
+
* JSPB instance for transitional soy proto support:
|
|
8386
|
+
* http://goto/soy-param-migration
|
|
8387
|
+
* @return {!Object}
|
|
8388
|
+
*/
|
|
8389
|
+
proto.ocap.SlashStakeTx.prototype.toObject = function(opt_includeInstance) {
|
|
8390
|
+
return proto.ocap.SlashStakeTx.toObject(opt_includeInstance, this);
|
|
8391
|
+
};
|
|
8392
|
+
|
|
8393
|
+
|
|
8394
|
+
/**
|
|
8395
|
+
* Static version of the {@see toObject} method.
|
|
8396
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8397
|
+
* the JSPB instance for transitional soy proto support:
|
|
8398
|
+
* http://goto/soy-param-migration
|
|
8399
|
+
* @param {!proto.ocap.SlashStakeTx} msg The msg instance to transform.
|
|
8400
|
+
* @return {!Object}
|
|
8401
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8402
|
+
*/
|
|
8403
|
+
proto.ocap.SlashStakeTx.toObject = function(includeInstance, msg) {
|
|
8404
|
+
var f, obj = {
|
|
8405
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8406
|
+
outputsList: jspb.Message.toObjectList(msg.getOutputsList(),
|
|
8407
|
+
type_pb.TransactionInput.toObject, includeInstance),
|
|
8408
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8409
|
+
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
8410
|
+
};
|
|
8411
|
+
|
|
8412
|
+
if (includeInstance) {
|
|
8413
|
+
obj.$jspbMessageInstance = msg;
|
|
8414
|
+
}
|
|
8415
|
+
return obj;
|
|
8416
|
+
};
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
|
|
8420
|
+
/**
|
|
8421
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8422
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8423
|
+
* @return {!proto.ocap.SlashStakeTx}
|
|
8424
|
+
*/
|
|
8425
|
+
proto.ocap.SlashStakeTx.deserializeBinary = function(bytes) {
|
|
8426
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8427
|
+
var msg = new proto.ocap.SlashStakeTx;
|
|
8428
|
+
return proto.ocap.SlashStakeTx.deserializeBinaryFromReader(msg, reader);
|
|
8429
|
+
};
|
|
8430
|
+
|
|
8431
|
+
|
|
8432
|
+
/**
|
|
8433
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8434
|
+
* given reader into the given message object.
|
|
8435
|
+
* @param {!proto.ocap.SlashStakeTx} msg The message object to deserialize into.
|
|
8436
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8437
|
+
* @return {!proto.ocap.SlashStakeTx}
|
|
8438
|
+
*/
|
|
8439
|
+
proto.ocap.SlashStakeTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
8440
|
+
while (reader.nextField()) {
|
|
8441
|
+
if (reader.isEndGroup()) {
|
|
8442
|
+
break;
|
|
8443
|
+
}
|
|
8444
|
+
var field = reader.getFieldNumber();
|
|
8445
|
+
switch (field) {
|
|
8446
|
+
case 1:
|
|
8447
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8448
|
+
msg.setAddress(value);
|
|
8449
|
+
break;
|
|
8450
|
+
case 2:
|
|
8451
|
+
var value = new type_pb.TransactionInput;
|
|
8452
|
+
reader.readMessage(value,type_pb.TransactionInput.deserializeBinaryFromReader);
|
|
8453
|
+
msg.addOutputs(value);
|
|
8454
|
+
break;
|
|
8455
|
+
case 3:
|
|
8456
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8457
|
+
msg.setMessage(value);
|
|
8458
|
+
break;
|
|
8459
|
+
case 50:
|
|
8460
|
+
var value = new google_protobuf_any_pb.Any;
|
|
8461
|
+
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
8462
|
+
msg.setData(value);
|
|
8463
|
+
break;
|
|
8464
|
+
default:
|
|
8465
|
+
reader.skipField();
|
|
8466
|
+
break;
|
|
8467
|
+
}
|
|
8468
|
+
}
|
|
8469
|
+
return msg;
|
|
8470
|
+
};
|
|
8471
|
+
|
|
8472
|
+
|
|
8473
|
+
/**
|
|
8474
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8475
|
+
* @return {!Uint8Array}
|
|
8476
|
+
*/
|
|
8477
|
+
proto.ocap.SlashStakeTx.prototype.serializeBinary = function() {
|
|
8478
|
+
var writer = new jspb.BinaryWriter();
|
|
8479
|
+
proto.ocap.SlashStakeTx.serializeBinaryToWriter(this, writer);
|
|
8480
|
+
return writer.getResultBuffer();
|
|
8481
|
+
};
|
|
8482
|
+
|
|
8483
|
+
|
|
8484
|
+
/**
|
|
8485
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8486
|
+
* format), writing to the given BinaryWriter.
|
|
8487
|
+
* @param {!proto.ocap.SlashStakeTx} message
|
|
8488
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8490
|
+
*/
|
|
8491
|
+
proto.ocap.SlashStakeTx.serializeBinaryToWriter = function(message, writer) {
|
|
8492
|
+
var f = undefined;
|
|
8493
|
+
f = message.getAddress();
|
|
8494
|
+
if (f.length > 0) {
|
|
8495
|
+
writer.writeString(
|
|
8496
|
+
1,
|
|
8497
|
+
f
|
|
8498
|
+
);
|
|
8499
|
+
}
|
|
8500
|
+
f = message.getOutputsList();
|
|
8501
|
+
if (f.length > 0) {
|
|
8502
|
+
writer.writeRepeatedMessage(
|
|
8503
|
+
2,
|
|
8504
|
+
f,
|
|
8505
|
+
type_pb.TransactionInput.serializeBinaryToWriter
|
|
8506
|
+
);
|
|
8507
|
+
}
|
|
8508
|
+
f = message.getMessage();
|
|
8509
|
+
if (f.length > 0) {
|
|
8510
|
+
writer.writeString(
|
|
8511
|
+
3,
|
|
8512
|
+
f
|
|
8513
|
+
);
|
|
8514
|
+
}
|
|
8515
|
+
f = message.getData();
|
|
8516
|
+
if (f != null) {
|
|
8517
|
+
writer.writeMessage(
|
|
8518
|
+
50,
|
|
8519
|
+
f,
|
|
8520
|
+
google_protobuf_any_pb.Any.serializeBinaryToWriter
|
|
8521
|
+
);
|
|
8522
|
+
}
|
|
8523
|
+
};
|
|
8524
|
+
|
|
8525
|
+
|
|
8526
|
+
/**
|
|
8527
|
+
* optional string address = 1;
|
|
8528
|
+
* @return {string}
|
|
8529
|
+
*/
|
|
8530
|
+
proto.ocap.SlashStakeTx.prototype.getAddress = function() {
|
|
8531
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8532
|
+
};
|
|
8533
|
+
|
|
8534
|
+
|
|
8535
|
+
/**
|
|
8536
|
+
* @param {string} value
|
|
8537
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8538
|
+
*/
|
|
8539
|
+
proto.ocap.SlashStakeTx.prototype.setAddress = function(value) {
|
|
8540
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8541
|
+
};
|
|
8542
|
+
|
|
8543
|
+
|
|
8544
|
+
/**
|
|
8545
|
+
* repeated TransactionInput outputs = 2;
|
|
8546
|
+
* @return {!Array<!proto.ocap.TransactionInput>}
|
|
8547
|
+
*/
|
|
8548
|
+
proto.ocap.SlashStakeTx.prototype.getOutputsList = function() {
|
|
8549
|
+
return /** @type{!Array<!proto.ocap.TransactionInput>} */ (
|
|
8550
|
+
jspb.Message.getRepeatedWrapperField(this, type_pb.TransactionInput, 2));
|
|
8551
|
+
};
|
|
8552
|
+
|
|
8553
|
+
|
|
8554
|
+
/**
|
|
8555
|
+
* @param {!Array<!proto.ocap.TransactionInput>} value
|
|
8556
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8557
|
+
*/
|
|
8558
|
+
proto.ocap.SlashStakeTx.prototype.setOutputsList = function(value) {
|
|
8559
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
8560
|
+
};
|
|
8561
|
+
|
|
8562
|
+
|
|
8563
|
+
/**
|
|
8564
|
+
* @param {!proto.ocap.TransactionInput=} opt_value
|
|
8565
|
+
* @param {number=} opt_index
|
|
8566
|
+
* @return {!proto.ocap.TransactionInput}
|
|
8567
|
+
*/
|
|
8568
|
+
proto.ocap.SlashStakeTx.prototype.addOutputs = function(opt_value, opt_index) {
|
|
8569
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ocap.TransactionInput, opt_index);
|
|
8570
|
+
};
|
|
8571
|
+
|
|
8572
|
+
|
|
8573
|
+
/**
|
|
8574
|
+
* Clears the list making it empty but non-null.
|
|
8575
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8576
|
+
*/
|
|
8577
|
+
proto.ocap.SlashStakeTx.prototype.clearOutputsList = function() {
|
|
8578
|
+
return this.setOutputsList([]);
|
|
8579
|
+
};
|
|
8580
|
+
|
|
8581
|
+
|
|
8582
|
+
/**
|
|
8583
|
+
* optional string message = 3;
|
|
8584
|
+
* @return {string}
|
|
8585
|
+
*/
|
|
8586
|
+
proto.ocap.SlashStakeTx.prototype.getMessage = function() {
|
|
8587
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8588
|
+
};
|
|
8589
|
+
|
|
8590
|
+
|
|
8591
|
+
/**
|
|
8592
|
+
* @param {string} value
|
|
8593
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8594
|
+
*/
|
|
8595
|
+
proto.ocap.SlashStakeTx.prototype.setMessage = function(value) {
|
|
8596
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8597
|
+
};
|
|
8598
|
+
|
|
8599
|
+
|
|
8600
|
+
/**
|
|
8601
|
+
* optional google.protobuf.Any data = 50;
|
|
8602
|
+
* @return {?proto.google.protobuf.Any}
|
|
8603
|
+
*/
|
|
8604
|
+
proto.ocap.SlashStakeTx.prototype.getData = function() {
|
|
8605
|
+
return /** @type{?proto.google.protobuf.Any} */ (
|
|
8606
|
+
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
|
|
8607
|
+
};
|
|
8608
|
+
|
|
8609
|
+
|
|
8610
|
+
/**
|
|
8611
|
+
* @param {?proto.google.protobuf.Any|undefined} value
|
|
8612
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8613
|
+
*/
|
|
8614
|
+
proto.ocap.SlashStakeTx.prototype.setData = function(value) {
|
|
8615
|
+
return jspb.Message.setWrapperField(this, 50, value);
|
|
8616
|
+
};
|
|
8617
|
+
|
|
8618
|
+
|
|
8619
|
+
/**
|
|
8620
|
+
* Clears the message field making it undefined.
|
|
8621
|
+
* @return {!proto.ocap.SlashStakeTx} returns this
|
|
8622
|
+
*/
|
|
8623
|
+
proto.ocap.SlashStakeTx.prototype.clearData = function() {
|
|
8624
|
+
return this.setData(undefined);
|
|
8625
|
+
};
|
|
8626
|
+
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* Returns whether this field is set.
|
|
8630
|
+
* @return {boolean}
|
|
8631
|
+
*/
|
|
8632
|
+
proto.ocap.SlashStakeTx.prototype.hasData = function() {
|
|
8633
|
+
return jspb.Message.getField(this, 50) != null;
|
|
8634
|
+
};
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
|
|
8296
8638
|
/**
|
|
8297
8639
|
* List of repeated fields within this message type.
|
|
8298
8640
|
* @private {!Array<number>}
|
|
@@ -13279,7 +13621,7 @@ proto.ocap.WithdrawTokenV2Tx.prototype.hasData = function() {
|
|
|
13279
13621
|
* @private {!Array<!Array<number>>}
|
|
13280
13622
|
* @const
|
|
13281
13623
|
*/
|
|
13282
|
-
proto.ocap.ItxStub.oneofGroups_ = [[1,2,3,4,5,6,10,12,13,14,15,20,21,22,30,31,32,33,40,41,42,49,50,51,52,53,54,55,56,57,58,59]];
|
|
13624
|
+
proto.ocap.ItxStub.oneofGroups_ = [[1,2,3,4,5,6,10,12,13,14,15,20,21,22,30,31,32,33,40,41,42,43,49,50,51,52,53,54,55,56,57,58,59]];
|
|
13283
13625
|
|
|
13284
13626
|
/**
|
|
13285
13627
|
* @enum {number}
|
|
@@ -13307,6 +13649,7 @@ proto.ocap.ItxStub.ValueCase = {
|
|
|
13307
13649
|
STAKE: 40,
|
|
13308
13650
|
REVOKE_STAKE: 41,
|
|
13309
13651
|
CLAIM_STAKE: 42,
|
|
13652
|
+
SLASH_STAKE: 43,
|
|
13310
13653
|
UPGRADE_NODE: 49,
|
|
13311
13654
|
CREATE_ROLLUP: 50,
|
|
13312
13655
|
UPDATE_ROLLUP: 51,
|
|
@@ -13379,6 +13722,7 @@ proto.ocap.ItxStub.toObject = function(includeInstance, msg) {
|
|
|
13379
13722
|
stake: (f = msg.getStake()) && proto.ocap.StakeTx.toObject(includeInstance, f),
|
|
13380
13723
|
revokeStake: (f = msg.getRevokeStake()) && proto.ocap.RevokeStakeTx.toObject(includeInstance, f),
|
|
13381
13724
|
claimStake: (f = msg.getClaimStake()) && proto.ocap.ClaimStakeTx.toObject(includeInstance, f),
|
|
13725
|
+
slashStake: (f = msg.getSlashStake()) && proto.ocap.SlashStakeTx.toObject(includeInstance, f),
|
|
13382
13726
|
upgradeNode: (f = msg.getUpgradeNode()) && proto.ocap.UpgradeNodeTx.toObject(includeInstance, f),
|
|
13383
13727
|
createRollup: (f = msg.getCreateRollup()) && proto.ocap.CreateRollupTx.toObject(includeInstance, f),
|
|
13384
13728
|
updateRollup: (f = msg.getUpdateRollup()) && proto.ocap.UpdateRollupTx.toObject(includeInstance, f),
|
|
@@ -13531,6 +13875,11 @@ proto.ocap.ItxStub.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
13531
13875
|
reader.readMessage(value,proto.ocap.ClaimStakeTx.deserializeBinaryFromReader);
|
|
13532
13876
|
msg.setClaimStake(value);
|
|
13533
13877
|
break;
|
|
13878
|
+
case 43:
|
|
13879
|
+
var value = new proto.ocap.SlashStakeTx;
|
|
13880
|
+
reader.readMessage(value,proto.ocap.SlashStakeTx.deserializeBinaryFromReader);
|
|
13881
|
+
msg.setSlashStake(value);
|
|
13882
|
+
break;
|
|
13534
13883
|
case 49:
|
|
13535
13884
|
var value = new proto.ocap.UpgradeNodeTx;
|
|
13536
13885
|
reader.readMessage(value,proto.ocap.UpgradeNodeTx.deserializeBinaryFromReader);
|
|
@@ -13783,6 +14132,14 @@ proto.ocap.ItxStub.serializeBinaryToWriter = function(message, writer) {
|
|
|
13783
14132
|
proto.ocap.ClaimStakeTx.serializeBinaryToWriter
|
|
13784
14133
|
);
|
|
13785
14134
|
}
|
|
14135
|
+
f = message.getSlashStake();
|
|
14136
|
+
if (f != null) {
|
|
14137
|
+
writer.writeMessage(
|
|
14138
|
+
43,
|
|
14139
|
+
f,
|
|
14140
|
+
proto.ocap.SlashStakeTx.serializeBinaryToWriter
|
|
14141
|
+
);
|
|
14142
|
+
}
|
|
13786
14143
|
f = message.getUpgradeNode();
|
|
13787
14144
|
if (f != null) {
|
|
13788
14145
|
writer.writeMessage(
|
|
@@ -14651,6 +15008,43 @@ proto.ocap.ItxStub.prototype.hasClaimStake = function() {
|
|
|
14651
15008
|
};
|
|
14652
15009
|
|
|
14653
15010
|
|
|
15011
|
+
/**
|
|
15012
|
+
* optional SlashStakeTx slash_stake = 43;
|
|
15013
|
+
* @return {?proto.ocap.SlashStakeTx}
|
|
15014
|
+
*/
|
|
15015
|
+
proto.ocap.ItxStub.prototype.getSlashStake = function() {
|
|
15016
|
+
return /** @type{?proto.ocap.SlashStakeTx} */ (
|
|
15017
|
+
jspb.Message.getWrapperField(this, proto.ocap.SlashStakeTx, 43));
|
|
15018
|
+
};
|
|
15019
|
+
|
|
15020
|
+
|
|
15021
|
+
/**
|
|
15022
|
+
* @param {?proto.ocap.SlashStakeTx|undefined} value
|
|
15023
|
+
* @return {!proto.ocap.ItxStub} returns this
|
|
15024
|
+
*/
|
|
15025
|
+
proto.ocap.ItxStub.prototype.setSlashStake = function(value) {
|
|
15026
|
+
return jspb.Message.setOneofWrapperField(this, 43, proto.ocap.ItxStub.oneofGroups_[0], value);
|
|
15027
|
+
};
|
|
15028
|
+
|
|
15029
|
+
|
|
15030
|
+
/**
|
|
15031
|
+
* Clears the message field making it undefined.
|
|
15032
|
+
* @return {!proto.ocap.ItxStub} returns this
|
|
15033
|
+
*/
|
|
15034
|
+
proto.ocap.ItxStub.prototype.clearSlashStake = function() {
|
|
15035
|
+
return this.setSlashStake(undefined);
|
|
15036
|
+
};
|
|
15037
|
+
|
|
15038
|
+
|
|
15039
|
+
/**
|
|
15040
|
+
* Returns whether this field is set.
|
|
15041
|
+
* @return {boolean}
|
|
15042
|
+
*/
|
|
15043
|
+
proto.ocap.ItxStub.prototype.hasSlashStake = function() {
|
|
15044
|
+
return jspb.Message.getField(this, 43) != null;
|
|
15045
|
+
};
|
|
15046
|
+
|
|
15047
|
+
|
|
14654
15048
|
/**
|
|
14655
15049
|
* optional UpgradeNodeTx upgrade_node = 49;
|
|
14656
15050
|
* @return {?proto.ocap.UpgradeNodeTx}
|
package/lib/gen/type_pb.js
CHANGED
|
@@ -70,6 +70,7 @@ goog.exportSymbol('proto.ocap.Validator', null, root);
|
|
|
70
70
|
goog.exportSymbol('proto.ocap.ValidatorInfo', null, root);
|
|
71
71
|
goog.exportSymbol('proto.ocap.ValidatorsInfo', null, root);
|
|
72
72
|
goog.exportSymbol('proto.ocap.VariableInput', null, root);
|
|
73
|
+
goog.exportSymbol('proto.ocap.VaultConfig', null, root);
|
|
73
74
|
goog.exportSymbol('proto.ocap.WalletInfo', null, root);
|
|
74
75
|
goog.exportSymbol('proto.ocap.WalletType', null, root);
|
|
75
76
|
goog.exportSymbol('proto.ocap.WithdrawItem', null, root);
|
|
@@ -493,6 +494,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
493
494
|
*/
|
|
494
495
|
proto.ocap.DelegateConfig.displayName = 'proto.ocap.DelegateConfig';
|
|
495
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* Generated by JsPbCodeGenerator.
|
|
499
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
500
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
501
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
502
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
503
|
+
* valid.
|
|
504
|
+
* @extends {jspb.Message}
|
|
505
|
+
* @constructor
|
|
506
|
+
*/
|
|
507
|
+
proto.ocap.VaultConfig = function(opt_data) {
|
|
508
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.VaultConfig.repeatedFields_, null);
|
|
509
|
+
};
|
|
510
|
+
goog.inherits(proto.ocap.VaultConfig, jspb.Message);
|
|
511
|
+
if (goog.DEBUG && !COMPILED) {
|
|
512
|
+
/**
|
|
513
|
+
* @public
|
|
514
|
+
* @override
|
|
515
|
+
*/
|
|
516
|
+
proto.ocap.VaultConfig.displayName = 'proto.ocap.VaultConfig';
|
|
517
|
+
}
|
|
496
518
|
/**
|
|
497
519
|
* Generated by JsPbCodeGenerator.
|
|
498
520
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7129,6 +7151,222 @@ proto.ocap.DelegateConfig.prototype.clearTypeUrlsList = function() {
|
|
|
7129
7151
|
|
|
7130
7152
|
|
|
7131
7153
|
|
|
7154
|
+
/**
|
|
7155
|
+
* List of repeated fields within this message type.
|
|
7156
|
+
* @private {!Array<number>}
|
|
7157
|
+
* @const
|
|
7158
|
+
*/
|
|
7159
|
+
proto.ocap.VaultConfig.repeatedFields_ = [3];
|
|
7160
|
+
|
|
7161
|
+
|
|
7162
|
+
|
|
7163
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7164
|
+
/**
|
|
7165
|
+
* Creates an object representation of this proto.
|
|
7166
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7167
|
+
* Optional fields that are not set will be set to undefined.
|
|
7168
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7169
|
+
* For the list of reserved names please see:
|
|
7170
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7171
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7172
|
+
* JSPB instance for transitional soy proto support:
|
|
7173
|
+
* http://goto/soy-param-migration
|
|
7174
|
+
* @return {!Object}
|
|
7175
|
+
*/
|
|
7176
|
+
proto.ocap.VaultConfig.prototype.toObject = function(opt_includeInstance) {
|
|
7177
|
+
return proto.ocap.VaultConfig.toObject(opt_includeInstance, this);
|
|
7178
|
+
};
|
|
7179
|
+
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Static version of the {@see toObject} method.
|
|
7183
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7184
|
+
* the JSPB instance for transitional soy proto support:
|
|
7185
|
+
* http://goto/soy-param-migration
|
|
7186
|
+
* @param {!proto.ocap.VaultConfig} msg The msg instance to transform.
|
|
7187
|
+
* @return {!Object}
|
|
7188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7189
|
+
*/
|
|
7190
|
+
proto.ocap.VaultConfig.toObject = function(includeInstance, msg) {
|
|
7191
|
+
var f, obj = {
|
|
7192
|
+
slashedStake: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7193
|
+
txFee: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7194
|
+
txGasList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
7195
|
+
};
|
|
7196
|
+
|
|
7197
|
+
if (includeInstance) {
|
|
7198
|
+
obj.$jspbMessageInstance = msg;
|
|
7199
|
+
}
|
|
7200
|
+
return obj;
|
|
7201
|
+
};
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
|
|
7205
|
+
/**
|
|
7206
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7207
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7208
|
+
* @return {!proto.ocap.VaultConfig}
|
|
7209
|
+
*/
|
|
7210
|
+
proto.ocap.VaultConfig.deserializeBinary = function(bytes) {
|
|
7211
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7212
|
+
var msg = new proto.ocap.VaultConfig;
|
|
7213
|
+
return proto.ocap.VaultConfig.deserializeBinaryFromReader(msg, reader);
|
|
7214
|
+
};
|
|
7215
|
+
|
|
7216
|
+
|
|
7217
|
+
/**
|
|
7218
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7219
|
+
* given reader into the given message object.
|
|
7220
|
+
* @param {!proto.ocap.VaultConfig} msg The message object to deserialize into.
|
|
7221
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7222
|
+
* @return {!proto.ocap.VaultConfig}
|
|
7223
|
+
*/
|
|
7224
|
+
proto.ocap.VaultConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
7225
|
+
while (reader.nextField()) {
|
|
7226
|
+
if (reader.isEndGroup()) {
|
|
7227
|
+
break;
|
|
7228
|
+
}
|
|
7229
|
+
var field = reader.getFieldNumber();
|
|
7230
|
+
switch (field) {
|
|
7231
|
+
case 1:
|
|
7232
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7233
|
+
msg.setSlashedStake(value);
|
|
7234
|
+
break;
|
|
7235
|
+
case 2:
|
|
7236
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7237
|
+
msg.setTxFee(value);
|
|
7238
|
+
break;
|
|
7239
|
+
case 3:
|
|
7240
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7241
|
+
msg.addTxGas(value);
|
|
7242
|
+
break;
|
|
7243
|
+
default:
|
|
7244
|
+
reader.skipField();
|
|
7245
|
+
break;
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7248
|
+
return msg;
|
|
7249
|
+
};
|
|
7250
|
+
|
|
7251
|
+
|
|
7252
|
+
/**
|
|
7253
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7254
|
+
* @return {!Uint8Array}
|
|
7255
|
+
*/
|
|
7256
|
+
proto.ocap.VaultConfig.prototype.serializeBinary = function() {
|
|
7257
|
+
var writer = new jspb.BinaryWriter();
|
|
7258
|
+
proto.ocap.VaultConfig.serializeBinaryToWriter(this, writer);
|
|
7259
|
+
return writer.getResultBuffer();
|
|
7260
|
+
};
|
|
7261
|
+
|
|
7262
|
+
|
|
7263
|
+
/**
|
|
7264
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7265
|
+
* format), writing to the given BinaryWriter.
|
|
7266
|
+
* @param {!proto.ocap.VaultConfig} message
|
|
7267
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7268
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7269
|
+
*/
|
|
7270
|
+
proto.ocap.VaultConfig.serializeBinaryToWriter = function(message, writer) {
|
|
7271
|
+
var f = undefined;
|
|
7272
|
+
f = message.getSlashedStake();
|
|
7273
|
+
if (f.length > 0) {
|
|
7274
|
+
writer.writeString(
|
|
7275
|
+
1,
|
|
7276
|
+
f
|
|
7277
|
+
);
|
|
7278
|
+
}
|
|
7279
|
+
f = message.getTxFee();
|
|
7280
|
+
if (f.length > 0) {
|
|
7281
|
+
writer.writeString(
|
|
7282
|
+
2,
|
|
7283
|
+
f
|
|
7284
|
+
);
|
|
7285
|
+
}
|
|
7286
|
+
f = message.getTxGasList();
|
|
7287
|
+
if (f.length > 0) {
|
|
7288
|
+
writer.writeRepeatedString(
|
|
7289
|
+
3,
|
|
7290
|
+
f
|
|
7291
|
+
);
|
|
7292
|
+
}
|
|
7293
|
+
};
|
|
7294
|
+
|
|
7295
|
+
|
|
7296
|
+
/**
|
|
7297
|
+
* optional string slashed_stake = 1;
|
|
7298
|
+
* @return {string}
|
|
7299
|
+
*/
|
|
7300
|
+
proto.ocap.VaultConfig.prototype.getSlashedStake = function() {
|
|
7301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7302
|
+
};
|
|
7303
|
+
|
|
7304
|
+
|
|
7305
|
+
/**
|
|
7306
|
+
* @param {string} value
|
|
7307
|
+
* @return {!proto.ocap.VaultConfig} returns this
|
|
7308
|
+
*/
|
|
7309
|
+
proto.ocap.VaultConfig.prototype.setSlashedStake = function(value) {
|
|
7310
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* optional string tx_fee = 2;
|
|
7316
|
+
* @return {string}
|
|
7317
|
+
*/
|
|
7318
|
+
proto.ocap.VaultConfig.prototype.getTxFee = function() {
|
|
7319
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7320
|
+
};
|
|
7321
|
+
|
|
7322
|
+
|
|
7323
|
+
/**
|
|
7324
|
+
* @param {string} value
|
|
7325
|
+
* @return {!proto.ocap.VaultConfig} returns this
|
|
7326
|
+
*/
|
|
7327
|
+
proto.ocap.VaultConfig.prototype.setTxFee = function(value) {
|
|
7328
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
|
|
7332
|
+
/**
|
|
7333
|
+
* repeated string tx_gas = 3;
|
|
7334
|
+
* @return {!Array<string>}
|
|
7335
|
+
*/
|
|
7336
|
+
proto.ocap.VaultConfig.prototype.getTxGasList = function() {
|
|
7337
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
7338
|
+
};
|
|
7339
|
+
|
|
7340
|
+
|
|
7341
|
+
/**
|
|
7342
|
+
* @param {!Array<string>} value
|
|
7343
|
+
* @return {!proto.ocap.VaultConfig} returns this
|
|
7344
|
+
*/
|
|
7345
|
+
proto.ocap.VaultConfig.prototype.setTxGasList = function(value) {
|
|
7346
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
7347
|
+
};
|
|
7348
|
+
|
|
7349
|
+
|
|
7350
|
+
/**
|
|
7351
|
+
* @param {string} value
|
|
7352
|
+
* @param {number=} opt_index
|
|
7353
|
+
* @return {!proto.ocap.VaultConfig} returns this
|
|
7354
|
+
*/
|
|
7355
|
+
proto.ocap.VaultConfig.prototype.addTxGas = function(value, opt_index) {
|
|
7356
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
7357
|
+
};
|
|
7358
|
+
|
|
7359
|
+
|
|
7360
|
+
/**
|
|
7361
|
+
* Clears the list making it empty but non-null.
|
|
7362
|
+
* @return {!proto.ocap.VaultConfig} returns this
|
|
7363
|
+
*/
|
|
7364
|
+
proto.ocap.VaultConfig.prototype.clearTxGasList = function() {
|
|
7365
|
+
return this.setTxGasList([]);
|
|
7366
|
+
};
|
|
7367
|
+
|
|
7368
|
+
|
|
7369
|
+
|
|
7132
7370
|
|
|
7133
7371
|
|
|
7134
7372
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
package/lib/index.d.ts
CHANGED
|
@@ -214,14 +214,15 @@ declare namespace Enums {
|
|
|
214
214
|
21 = ResumeRollupTx,
|
|
215
215
|
22 = RevokeDelegateTx,
|
|
216
216
|
23 = RevokeStakeTx,
|
|
217
|
-
24 =
|
|
218
|
-
25 =
|
|
219
|
-
26 =
|
|
220
|
-
27 =
|
|
221
|
-
28 =
|
|
222
|
-
29 =
|
|
223
|
-
30 =
|
|
224
|
-
31 =
|
|
217
|
+
24 = SlashStakeTx,
|
|
218
|
+
25 = StakeTx,
|
|
219
|
+
26 = TransferTx,
|
|
220
|
+
27 = TransferV2Tx,
|
|
221
|
+
28 = TransferV3Tx,
|
|
222
|
+
29 = UpdateAssetTx,
|
|
223
|
+
30 = UpdateRollupTx,
|
|
224
|
+
31 = UpgradeNodeTx,
|
|
225
|
+
32 = WithdrawTokenV2Tx,
|
|
225
226
|
}
|
|
226
227
|
|
|
227
228
|
export enum SupportedStakes {}
|
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.19",
|
|
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": "d13bcea225809e0c0a926cfc246c7a46bd4185f3"
|
|
52
52
|
}
|