@ocap/proto 1.18.43 → 1.18.45
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 +17 -0
- package/lib/gen/tx_pb.js +256 -1
- package/lib/index.d.ts +28 -27
- package/lib/provider.js +1 -0
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -3557,6 +3557,18 @@
|
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
3559
|
},
|
|
3560
|
+
"ConsumeAssetTx": {
|
|
3561
|
+
"fields": {
|
|
3562
|
+
"address": {
|
|
3563
|
+
"type": "string",
|
|
3564
|
+
"id": 1
|
|
3565
|
+
},
|
|
3566
|
+
"data": {
|
|
3567
|
+
"type": "google.protobuf.Any",
|
|
3568
|
+
"id": 15
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
},
|
|
3560
3572
|
"CreateFactoryTx": {
|
|
3561
3573
|
"fields": {
|
|
3562
3574
|
"name": {
|
|
@@ -4202,6 +4214,7 @@
|
|
|
4202
4214
|
"accountMigrate",
|
|
4203
4215
|
"createAsset",
|
|
4204
4216
|
"updateAsset",
|
|
4217
|
+
"consumeAsset",
|
|
4205
4218
|
"exchange",
|
|
4206
4219
|
"exchangeV2",
|
|
4207
4220
|
"transfer",
|
|
@@ -4257,6 +4270,10 @@
|
|
|
4257
4270
|
"type": "UpdateAssetTx",
|
|
4258
4271
|
"id": 6
|
|
4259
4272
|
},
|
|
4273
|
+
"consumeAsset": {
|
|
4274
|
+
"type": "ConsumeAssetTx",
|
|
4275
|
+
"id": 7
|
|
4276
|
+
},
|
|
4260
4277
|
"exchange": {
|
|
4261
4278
|
"type": "ExchangeTx",
|
|
4262
4279
|
"id": 10
|
package/lib/gen/tx_pb.js
CHANGED
|
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.ocap.AssetFactoryInput', null, root);
|
|
|
34
34
|
goog.exportSymbol('proto.ocap.ClaimBlockRewardTx', null, root);
|
|
35
35
|
goog.exportSymbol('proto.ocap.ClaimStakeTx', null, root);
|
|
36
36
|
goog.exportSymbol('proto.ocap.CloseRollupTx', null, root);
|
|
37
|
+
goog.exportSymbol('proto.ocap.ConsumeAssetTx', null, root);
|
|
37
38
|
goog.exportSymbol('proto.ocap.CreateAssetTx', null, root);
|
|
38
39
|
goog.exportSymbol('proto.ocap.CreateFactoryTx', null, root);
|
|
39
40
|
goog.exportSymbol('proto.ocap.CreateRollupBlockTx', null, root);
|
|
@@ -486,6 +487,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
486
487
|
*/
|
|
487
488
|
proto.ocap.UpdateAssetTx.displayName = 'proto.ocap.UpdateAssetTx';
|
|
488
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* Generated by JsPbCodeGenerator.
|
|
492
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
493
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
494
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
495
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
496
|
+
* valid.
|
|
497
|
+
* @extends {jspb.Message}
|
|
498
|
+
* @constructor
|
|
499
|
+
*/
|
|
500
|
+
proto.ocap.ConsumeAssetTx = function(opt_data) {
|
|
501
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
502
|
+
};
|
|
503
|
+
goog.inherits(proto.ocap.ConsumeAssetTx, jspb.Message);
|
|
504
|
+
if (goog.DEBUG && !COMPILED) {
|
|
505
|
+
/**
|
|
506
|
+
* @public
|
|
507
|
+
* @override
|
|
508
|
+
*/
|
|
509
|
+
proto.ocap.ConsumeAssetTx.displayName = 'proto.ocap.ConsumeAssetTx';
|
|
510
|
+
}
|
|
489
511
|
/**
|
|
490
512
|
* Generated by JsPbCodeGenerator.
|
|
491
513
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6924,6 +6946,187 @@ proto.ocap.UpdateAssetTx.prototype.hasData = function() {
|
|
|
6924
6946
|
|
|
6925
6947
|
|
|
6926
6948
|
|
|
6949
|
+
|
|
6950
|
+
|
|
6951
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6952
|
+
/**
|
|
6953
|
+
* Creates an object representation of this proto.
|
|
6954
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6955
|
+
* Optional fields that are not set will be set to undefined.
|
|
6956
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6957
|
+
* For the list of reserved names please see:
|
|
6958
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6959
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6960
|
+
* JSPB instance for transitional soy proto support:
|
|
6961
|
+
* http://goto/soy-param-migration
|
|
6962
|
+
* @return {!Object}
|
|
6963
|
+
*/
|
|
6964
|
+
proto.ocap.ConsumeAssetTx.prototype.toObject = function(opt_includeInstance) {
|
|
6965
|
+
return proto.ocap.ConsumeAssetTx.toObject(opt_includeInstance, this);
|
|
6966
|
+
};
|
|
6967
|
+
|
|
6968
|
+
|
|
6969
|
+
/**
|
|
6970
|
+
* Static version of the {@see toObject} method.
|
|
6971
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6972
|
+
* the JSPB instance for transitional soy proto support:
|
|
6973
|
+
* http://goto/soy-param-migration
|
|
6974
|
+
* @param {!proto.ocap.ConsumeAssetTx} msg The msg instance to transform.
|
|
6975
|
+
* @return {!Object}
|
|
6976
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6977
|
+
*/
|
|
6978
|
+
proto.ocap.ConsumeAssetTx.toObject = function(includeInstance, msg) {
|
|
6979
|
+
var f, obj = {
|
|
6980
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6981
|
+
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
6982
|
+
};
|
|
6983
|
+
|
|
6984
|
+
if (includeInstance) {
|
|
6985
|
+
obj.$jspbMessageInstance = msg;
|
|
6986
|
+
}
|
|
6987
|
+
return obj;
|
|
6988
|
+
};
|
|
6989
|
+
}
|
|
6990
|
+
|
|
6991
|
+
|
|
6992
|
+
/**
|
|
6993
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6994
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6995
|
+
* @return {!proto.ocap.ConsumeAssetTx}
|
|
6996
|
+
*/
|
|
6997
|
+
proto.ocap.ConsumeAssetTx.deserializeBinary = function(bytes) {
|
|
6998
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6999
|
+
var msg = new proto.ocap.ConsumeAssetTx;
|
|
7000
|
+
return proto.ocap.ConsumeAssetTx.deserializeBinaryFromReader(msg, reader);
|
|
7001
|
+
};
|
|
7002
|
+
|
|
7003
|
+
|
|
7004
|
+
/**
|
|
7005
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7006
|
+
* given reader into the given message object.
|
|
7007
|
+
* @param {!proto.ocap.ConsumeAssetTx} msg The message object to deserialize into.
|
|
7008
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7009
|
+
* @return {!proto.ocap.ConsumeAssetTx}
|
|
7010
|
+
*/
|
|
7011
|
+
proto.ocap.ConsumeAssetTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
7012
|
+
while (reader.nextField()) {
|
|
7013
|
+
if (reader.isEndGroup()) {
|
|
7014
|
+
break;
|
|
7015
|
+
}
|
|
7016
|
+
var field = reader.getFieldNumber();
|
|
7017
|
+
switch (field) {
|
|
7018
|
+
case 1:
|
|
7019
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7020
|
+
msg.setAddress(value);
|
|
7021
|
+
break;
|
|
7022
|
+
case 15:
|
|
7023
|
+
var value = new google_protobuf_any_pb.Any;
|
|
7024
|
+
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
7025
|
+
msg.setData(value);
|
|
7026
|
+
break;
|
|
7027
|
+
default:
|
|
7028
|
+
reader.skipField();
|
|
7029
|
+
break;
|
|
7030
|
+
}
|
|
7031
|
+
}
|
|
7032
|
+
return msg;
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7038
|
+
* @return {!Uint8Array}
|
|
7039
|
+
*/
|
|
7040
|
+
proto.ocap.ConsumeAssetTx.prototype.serializeBinary = function() {
|
|
7041
|
+
var writer = new jspb.BinaryWriter();
|
|
7042
|
+
proto.ocap.ConsumeAssetTx.serializeBinaryToWriter(this, writer);
|
|
7043
|
+
return writer.getResultBuffer();
|
|
7044
|
+
};
|
|
7045
|
+
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7049
|
+
* format), writing to the given BinaryWriter.
|
|
7050
|
+
* @param {!proto.ocap.ConsumeAssetTx} message
|
|
7051
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7052
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7053
|
+
*/
|
|
7054
|
+
proto.ocap.ConsumeAssetTx.serializeBinaryToWriter = function(message, writer) {
|
|
7055
|
+
var f = undefined;
|
|
7056
|
+
f = message.getAddress();
|
|
7057
|
+
if (f.length > 0) {
|
|
7058
|
+
writer.writeString(
|
|
7059
|
+
1,
|
|
7060
|
+
f
|
|
7061
|
+
);
|
|
7062
|
+
}
|
|
7063
|
+
f = message.getData();
|
|
7064
|
+
if (f != null) {
|
|
7065
|
+
writer.writeMessage(
|
|
7066
|
+
15,
|
|
7067
|
+
f,
|
|
7068
|
+
google_protobuf_any_pb.Any.serializeBinaryToWriter
|
|
7069
|
+
);
|
|
7070
|
+
}
|
|
7071
|
+
};
|
|
7072
|
+
|
|
7073
|
+
|
|
7074
|
+
/**
|
|
7075
|
+
* optional string address = 1;
|
|
7076
|
+
* @return {string}
|
|
7077
|
+
*/
|
|
7078
|
+
proto.ocap.ConsumeAssetTx.prototype.getAddress = function() {
|
|
7079
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7080
|
+
};
|
|
7081
|
+
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* @param {string} value
|
|
7085
|
+
* @return {!proto.ocap.ConsumeAssetTx} returns this
|
|
7086
|
+
*/
|
|
7087
|
+
proto.ocap.ConsumeAssetTx.prototype.setAddress = function(value) {
|
|
7088
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7089
|
+
};
|
|
7090
|
+
|
|
7091
|
+
|
|
7092
|
+
/**
|
|
7093
|
+
* optional google.protobuf.Any data = 15;
|
|
7094
|
+
* @return {?proto.google.protobuf.Any}
|
|
7095
|
+
*/
|
|
7096
|
+
proto.ocap.ConsumeAssetTx.prototype.getData = function() {
|
|
7097
|
+
return /** @type{?proto.google.protobuf.Any} */ (
|
|
7098
|
+
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 15));
|
|
7099
|
+
};
|
|
7100
|
+
|
|
7101
|
+
|
|
7102
|
+
/**
|
|
7103
|
+
* @param {?proto.google.protobuf.Any|undefined} value
|
|
7104
|
+
* @return {!proto.ocap.ConsumeAssetTx} returns this
|
|
7105
|
+
*/
|
|
7106
|
+
proto.ocap.ConsumeAssetTx.prototype.setData = function(value) {
|
|
7107
|
+
return jspb.Message.setWrapperField(this, 15, value);
|
|
7108
|
+
};
|
|
7109
|
+
|
|
7110
|
+
|
|
7111
|
+
/**
|
|
7112
|
+
* Clears the message field making it undefined.
|
|
7113
|
+
* @return {!proto.ocap.ConsumeAssetTx} returns this
|
|
7114
|
+
*/
|
|
7115
|
+
proto.ocap.ConsumeAssetTx.prototype.clearData = function() {
|
|
7116
|
+
return this.setData(undefined);
|
|
7117
|
+
};
|
|
7118
|
+
|
|
7119
|
+
|
|
7120
|
+
/**
|
|
7121
|
+
* Returns whether this field is set.
|
|
7122
|
+
* @return {boolean}
|
|
7123
|
+
*/
|
|
7124
|
+
proto.ocap.ConsumeAssetTx.prototype.hasData = function() {
|
|
7125
|
+
return jspb.Message.getField(this, 15) != null;
|
|
7126
|
+
};
|
|
7127
|
+
|
|
7128
|
+
|
|
7129
|
+
|
|
6927
7130
|
/**
|
|
6928
7131
|
* List of repeated fields within this message type.
|
|
6929
7132
|
* @private {!Array<number>}
|
|
@@ -13666,7 +13869,7 @@ proto.ocap.WithdrawTokenV2Tx.prototype.hasData = function() {
|
|
|
13666
13869
|
* @private {!Array<!Array<number>>}
|
|
13667
13870
|
* @const
|
|
13668
13871
|
*/
|
|
13669
|
-
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,60]];
|
|
13872
|
+
proto.ocap.ItxStub.oneofGroups_ = [[1,2,3,4,5,6,7,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,60]];
|
|
13670
13873
|
|
|
13671
13874
|
/**
|
|
13672
13875
|
* @enum {number}
|
|
@@ -13679,6 +13882,7 @@ proto.ocap.ItxStub.ValueCase = {
|
|
|
13679
13882
|
ACCOUNT_MIGRATE: 4,
|
|
13680
13883
|
CREATE_ASSET: 5,
|
|
13681
13884
|
UPDATE_ASSET: 6,
|
|
13885
|
+
CONSUME_ASSET: 7,
|
|
13682
13886
|
EXCHANGE: 10,
|
|
13683
13887
|
EXCHANGE_V2: 12,
|
|
13684
13888
|
TRANSFER: 13,
|
|
@@ -13752,6 +13956,7 @@ proto.ocap.ItxStub.toObject = function(includeInstance, msg) {
|
|
|
13752
13956
|
accountMigrate: (f = msg.getAccountMigrate()) && proto.ocap.AccountMigrateTx.toObject(includeInstance, f),
|
|
13753
13957
|
createAsset: (f = msg.getCreateAsset()) && proto.ocap.CreateAssetTx.toObject(includeInstance, f),
|
|
13754
13958
|
updateAsset: (f = msg.getUpdateAsset()) && proto.ocap.UpdateAssetTx.toObject(includeInstance, f),
|
|
13959
|
+
consumeAsset: (f = msg.getConsumeAsset()) && proto.ocap.ConsumeAssetTx.toObject(includeInstance, f),
|
|
13755
13960
|
exchange: (f = msg.getExchange()) && proto.ocap.ExchangeTx.toObject(includeInstance, f),
|
|
13756
13961
|
exchangeV2: (f = msg.getExchangeV2()) && proto.ocap.ExchangeV2Tx.toObject(includeInstance, f),
|
|
13757
13962
|
transfer: (f = msg.getTransfer()) && proto.ocap.TransferTx.toObject(includeInstance, f),
|
|
@@ -13845,6 +14050,11 @@ proto.ocap.ItxStub.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
13845
14050
|
reader.readMessage(value,proto.ocap.UpdateAssetTx.deserializeBinaryFromReader);
|
|
13846
14051
|
msg.setUpdateAsset(value);
|
|
13847
14052
|
break;
|
|
14053
|
+
case 7:
|
|
14054
|
+
var value = new proto.ocap.ConsumeAssetTx;
|
|
14055
|
+
reader.readMessage(value,proto.ocap.ConsumeAssetTx.deserializeBinaryFromReader);
|
|
14056
|
+
msg.setConsumeAsset(value);
|
|
14057
|
+
break;
|
|
13848
14058
|
case 10:
|
|
13849
14059
|
var value = new proto.ocap.ExchangeTx;
|
|
13850
14060
|
reader.readMessage(value,proto.ocap.ExchangeTx.deserializeBinaryFromReader);
|
|
@@ -14057,6 +14267,14 @@ proto.ocap.ItxStub.serializeBinaryToWriter = function(message, writer) {
|
|
|
14057
14267
|
proto.ocap.UpdateAssetTx.serializeBinaryToWriter
|
|
14058
14268
|
);
|
|
14059
14269
|
}
|
|
14270
|
+
f = message.getConsumeAsset();
|
|
14271
|
+
if (f != null) {
|
|
14272
|
+
writer.writeMessage(
|
|
14273
|
+
7,
|
|
14274
|
+
f,
|
|
14275
|
+
proto.ocap.ConsumeAssetTx.serializeBinaryToWriter
|
|
14276
|
+
);
|
|
14277
|
+
}
|
|
14060
14278
|
f = message.getExchange();
|
|
14061
14279
|
if (f != null) {
|
|
14062
14280
|
writer.writeMessage(
|
|
@@ -14498,6 +14716,43 @@ proto.ocap.ItxStub.prototype.hasUpdateAsset = function() {
|
|
|
14498
14716
|
};
|
|
14499
14717
|
|
|
14500
14718
|
|
|
14719
|
+
/**
|
|
14720
|
+
* optional ConsumeAssetTx consume_asset = 7;
|
|
14721
|
+
* @return {?proto.ocap.ConsumeAssetTx}
|
|
14722
|
+
*/
|
|
14723
|
+
proto.ocap.ItxStub.prototype.getConsumeAsset = function() {
|
|
14724
|
+
return /** @type{?proto.ocap.ConsumeAssetTx} */ (
|
|
14725
|
+
jspb.Message.getWrapperField(this, proto.ocap.ConsumeAssetTx, 7));
|
|
14726
|
+
};
|
|
14727
|
+
|
|
14728
|
+
|
|
14729
|
+
/**
|
|
14730
|
+
* @param {?proto.ocap.ConsumeAssetTx|undefined} value
|
|
14731
|
+
* @return {!proto.ocap.ItxStub} returns this
|
|
14732
|
+
*/
|
|
14733
|
+
proto.ocap.ItxStub.prototype.setConsumeAsset = function(value) {
|
|
14734
|
+
return jspb.Message.setOneofWrapperField(this, 7, proto.ocap.ItxStub.oneofGroups_[0], value);
|
|
14735
|
+
};
|
|
14736
|
+
|
|
14737
|
+
|
|
14738
|
+
/**
|
|
14739
|
+
* Clears the message field making it undefined.
|
|
14740
|
+
* @return {!proto.ocap.ItxStub} returns this
|
|
14741
|
+
*/
|
|
14742
|
+
proto.ocap.ItxStub.prototype.clearConsumeAsset = function() {
|
|
14743
|
+
return this.setConsumeAsset(undefined);
|
|
14744
|
+
};
|
|
14745
|
+
|
|
14746
|
+
|
|
14747
|
+
/**
|
|
14748
|
+
* Returns whether this field is set.
|
|
14749
|
+
* @return {boolean}
|
|
14750
|
+
*/
|
|
14751
|
+
proto.ocap.ItxStub.prototype.hasConsumeAsset = function() {
|
|
14752
|
+
return jspb.Message.getField(this, 7) != null;
|
|
14753
|
+
};
|
|
14754
|
+
|
|
14755
|
+
|
|
14501
14756
|
/**
|
|
14502
14757
|
* optional ExchangeTx exchange = 10;
|
|
14503
14758
|
* @return {?proto.ocap.ExchangeTx}
|
package/lib/index.d.ts
CHANGED
|
@@ -196,33 +196,34 @@ declare namespace Enums {
|
|
|
196
196
|
3 = ClaimBlockRewardTx,
|
|
197
197
|
4 = ClaimStakeTx,
|
|
198
198
|
5 = CloseRollupTx,
|
|
199
|
-
6 =
|
|
200
|
-
7 =
|
|
201
|
-
8 =
|
|
202
|
-
9 =
|
|
203
|
-
10 =
|
|
204
|
-
11 =
|
|
205
|
-
12 =
|
|
206
|
-
13 =
|
|
207
|
-
14 =
|
|
208
|
-
15 =
|
|
209
|
-
16 =
|
|
210
|
-
17 =
|
|
211
|
-
18 =
|
|
212
|
-
19 =
|
|
213
|
-
20 =
|
|
214
|
-
21 =
|
|
215
|
-
22 =
|
|
216
|
-
23 =
|
|
217
|
-
24 =
|
|
218
|
-
25 =
|
|
219
|
-
26 =
|
|
220
|
-
27 =
|
|
221
|
-
28 =
|
|
222
|
-
29 =
|
|
223
|
-
30 =
|
|
224
|
-
31 =
|
|
225
|
-
32 =
|
|
199
|
+
6 = ConsumeAssetTx,
|
|
200
|
+
7 = CreateAssetTx,
|
|
201
|
+
8 = CreateFactoryTx,
|
|
202
|
+
9 = CreateRollupBlockTx,
|
|
203
|
+
10 = CreateRollupTx,
|
|
204
|
+
11 = CreateTokenTx,
|
|
205
|
+
12 = DeclareTx,
|
|
206
|
+
13 = DelegateTx,
|
|
207
|
+
14 = DepositTokenV2Tx,
|
|
208
|
+
15 = ExchangeTx,
|
|
209
|
+
16 = ExchangeV2Tx,
|
|
210
|
+
17 = JoinRollupTx,
|
|
211
|
+
18 = LeaveRollupTx,
|
|
212
|
+
19 = MigrateRollupTx,
|
|
213
|
+
20 = MintAssetTx,
|
|
214
|
+
21 = PauseRollupTx,
|
|
215
|
+
22 = ResumeRollupTx,
|
|
216
|
+
23 = RevokeDelegateTx,
|
|
217
|
+
24 = RevokeStakeTx,
|
|
218
|
+
25 = SlashStakeTx,
|
|
219
|
+
26 = StakeTx,
|
|
220
|
+
27 = TransferTx,
|
|
221
|
+
28 = TransferV2Tx,
|
|
222
|
+
29 = TransferV3Tx,
|
|
223
|
+
30 = UpdateAssetTx,
|
|
224
|
+
31 = UpdateRollupTx,
|
|
225
|
+
32 = UpgradeNodeTx,
|
|
226
|
+
33 = WithdrawTokenV2Tx,
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
export enum SupportedStakes {}
|
package/lib/provider.js
CHANGED
|
@@ -206,6 +206,7 @@ module.exports = function createProvider(proto, json, urls = {}) {
|
|
|
206
206
|
'CreateRollupBlockTx',
|
|
207
207
|
'ClaimBlockRewardTx',
|
|
208
208
|
'CreateAssetTx',
|
|
209
|
+
'ConsumeAssetTx',
|
|
209
210
|
].filter((x) => enums.SupportedTxs.includes(x)),
|
|
210
211
|
|
|
211
212
|
stakes: enums.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.45",
|
|
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": "17a59291355d044599f211bd226af2756de91df0"
|
|
52
52
|
}
|