@ocap/proto 1.19.2 → 1.19.3

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 CHANGED
@@ -1207,6 +1207,26 @@
1207
1207
  }
1208
1208
  }
1209
1209
  },
1210
+ "RequestGetTokenDistribution": {
1211
+ "fields": {
1212
+ "tokenAddress": {
1213
+ "type": "string",
1214
+ "id": 1
1215
+ }
1216
+ }
1217
+ },
1218
+ "ResponseGetTokenDistribution": {
1219
+ "fields": {
1220
+ "code": {
1221
+ "type": "StatusCode",
1222
+ "id": 1
1223
+ },
1224
+ "data": {
1225
+ "type": "TokenDistribution",
1226
+ "id": 2
1227
+ }
1228
+ }
1229
+ },
1210
1230
  "BigUint": {
1211
1231
  "fields": {
1212
1232
  "value": {
@@ -5816,6 +5836,46 @@
5816
5836
  }
5817
5837
  }
5818
5838
  },
5839
+ "TokenDistribution": {
5840
+ "fields": {
5841
+ "tokenAddress": {
5842
+ "type": "string",
5843
+ "id": 1
5844
+ },
5845
+ "txTime": {
5846
+ "type": "string",
5847
+ "id": 2
5848
+ },
5849
+ "account": {
5850
+ "type": "string",
5851
+ "id": 3
5852
+ },
5853
+ "gas": {
5854
+ "type": "string",
5855
+ "id": 4
5856
+ },
5857
+ "fee": {
5858
+ "type": "string",
5859
+ "id": 5
5860
+ },
5861
+ "slashedVault": {
5862
+ "type": "string",
5863
+ "id": 6
5864
+ },
5865
+ "stake": {
5866
+ "type": "string",
5867
+ "id": 7
5868
+ },
5869
+ "revokedStake": {
5870
+ "type": "string",
5871
+ "id": 8
5872
+ },
5873
+ "gasStake": {
5874
+ "type": "string",
5875
+ "id": 9
5876
+ }
5877
+ }
5878
+ },
5819
5879
  "Query": {
5820
5880
  "methods": {
5821
5881
  "getTx": {
@@ -5993,6 +6053,10 @@
5993
6053
  "verifyAccountRisk": {
5994
6054
  "requestType": "RequestVerifyAccountRisk",
5995
6055
  "responseType": "ResponseVerifyAccountRisk"
6056
+ },
6057
+ "getTokenDistribution": {
6058
+ "requestType": "RequestGetTokenDistribution",
6059
+ "responseType": "ResponseGetTokenDistribution"
5996
6060
  }
5997
6061
  }
5998
6062
  },
@@ -60,6 +60,7 @@ goog.exportSymbol('proto.ocap.RollupFilter', null, root);
60
60
  goog.exportSymbol('proto.ocap.SearchResult', null, root);
61
61
  goog.exportSymbol('proto.ocap.StakeFilter', null, root);
62
62
  goog.exportSymbol('proto.ocap.TimeFilter', null, root);
63
+ goog.exportSymbol('proto.ocap.TokenDistribution', null, root);
63
64
  goog.exportSymbol('proto.ocap.TokenFilter', null, root);
64
65
  goog.exportSymbol('proto.ocap.TokenFlowDirection', null, root);
65
66
  goog.exportSymbol('proto.ocap.TokenInfo', null, root);
@@ -826,6 +827,27 @@ if (goog.DEBUG && !COMPILED) {
826
827
  */
827
828
  proto.ocap.VerifyAccountRiskResult.BalanceRisky.displayName = 'proto.ocap.VerifyAccountRiskResult.BalanceRisky';
828
829
  }
830
+ /**
831
+ * Generated by JsPbCodeGenerator.
832
+ * @param {Array=} opt_data Optional initial data array, typically from a
833
+ * server response, or constructed directly in Javascript. The array is used
834
+ * in place and becomes part of the constructed object. It is not cloned.
835
+ * If no data is provided, the constructed object will be empty, but still
836
+ * valid.
837
+ * @extends {jspb.Message}
838
+ * @constructor
839
+ */
840
+ proto.ocap.TokenDistribution = function(opt_data) {
841
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
842
+ };
843
+ goog.inherits(proto.ocap.TokenDistribution, jspb.Message);
844
+ if (goog.DEBUG && !COMPILED) {
845
+ /**
846
+ * @public
847
+ * @override
848
+ */
849
+ proto.ocap.TokenDistribution.displayName = 'proto.ocap.TokenDistribution';
850
+ }
829
851
 
830
852
 
831
853
 
@@ -12501,6 +12523,376 @@ proto.ocap.VerifyAccountRiskResult.prototype.hasData = function() {
12501
12523
  };
12502
12524
 
12503
12525
 
12526
+
12527
+
12528
+
12529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12530
+ /**
12531
+ * Creates an object representation of this proto.
12532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12533
+ * Optional fields that are not set will be set to undefined.
12534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12535
+ * For the list of reserved names please see:
12536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12538
+ * JSPB instance for transitional soy proto support:
12539
+ * http://goto/soy-param-migration
12540
+ * @return {!Object}
12541
+ */
12542
+ proto.ocap.TokenDistribution.prototype.toObject = function(opt_includeInstance) {
12543
+ return proto.ocap.TokenDistribution.toObject(opt_includeInstance, this);
12544
+ };
12545
+
12546
+
12547
+ /**
12548
+ * Static version of the {@see toObject} method.
12549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12550
+ * the JSPB instance for transitional soy proto support:
12551
+ * http://goto/soy-param-migration
12552
+ * @param {!proto.ocap.TokenDistribution} msg The msg instance to transform.
12553
+ * @return {!Object}
12554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12555
+ */
12556
+ proto.ocap.TokenDistribution.toObject = function(includeInstance, msg) {
12557
+ var f, obj = {
12558
+ tokenAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
12559
+ txTime: jspb.Message.getFieldWithDefault(msg, 2, ""),
12560
+ account: jspb.Message.getFieldWithDefault(msg, 3, ""),
12561
+ gas: jspb.Message.getFieldWithDefault(msg, 4, ""),
12562
+ fee: jspb.Message.getFieldWithDefault(msg, 5, ""),
12563
+ slashedVault: jspb.Message.getFieldWithDefault(msg, 6, ""),
12564
+ stake: jspb.Message.getFieldWithDefault(msg, 7, ""),
12565
+ revokedStake: jspb.Message.getFieldWithDefault(msg, 8, ""),
12566
+ gasStake: jspb.Message.getFieldWithDefault(msg, 9, "")
12567
+ };
12568
+
12569
+ if (includeInstance) {
12570
+ obj.$jspbMessageInstance = msg;
12571
+ }
12572
+ return obj;
12573
+ };
12574
+ }
12575
+
12576
+
12577
+ /**
12578
+ * Deserializes binary data (in protobuf wire format).
12579
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12580
+ * @return {!proto.ocap.TokenDistribution}
12581
+ */
12582
+ proto.ocap.TokenDistribution.deserializeBinary = function(bytes) {
12583
+ var reader = new jspb.BinaryReader(bytes);
12584
+ var msg = new proto.ocap.TokenDistribution;
12585
+ return proto.ocap.TokenDistribution.deserializeBinaryFromReader(msg, reader);
12586
+ };
12587
+
12588
+
12589
+ /**
12590
+ * Deserializes binary data (in protobuf wire format) from the
12591
+ * given reader into the given message object.
12592
+ * @param {!proto.ocap.TokenDistribution} msg The message object to deserialize into.
12593
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12594
+ * @return {!proto.ocap.TokenDistribution}
12595
+ */
12596
+ proto.ocap.TokenDistribution.deserializeBinaryFromReader = function(msg, reader) {
12597
+ while (reader.nextField()) {
12598
+ if (reader.isEndGroup()) {
12599
+ break;
12600
+ }
12601
+ var field = reader.getFieldNumber();
12602
+ switch (field) {
12603
+ case 1:
12604
+ var value = /** @type {string} */ (reader.readString());
12605
+ msg.setTokenAddress(value);
12606
+ break;
12607
+ case 2:
12608
+ var value = /** @type {string} */ (reader.readString());
12609
+ msg.setTxTime(value);
12610
+ break;
12611
+ case 3:
12612
+ var value = /** @type {string} */ (reader.readString());
12613
+ msg.setAccount(value);
12614
+ break;
12615
+ case 4:
12616
+ var value = /** @type {string} */ (reader.readString());
12617
+ msg.setGas(value);
12618
+ break;
12619
+ case 5:
12620
+ var value = /** @type {string} */ (reader.readString());
12621
+ msg.setFee(value);
12622
+ break;
12623
+ case 6:
12624
+ var value = /** @type {string} */ (reader.readString());
12625
+ msg.setSlashedVault(value);
12626
+ break;
12627
+ case 7:
12628
+ var value = /** @type {string} */ (reader.readString());
12629
+ msg.setStake(value);
12630
+ break;
12631
+ case 8:
12632
+ var value = /** @type {string} */ (reader.readString());
12633
+ msg.setRevokedStake(value);
12634
+ break;
12635
+ case 9:
12636
+ var value = /** @type {string} */ (reader.readString());
12637
+ msg.setGasStake(value);
12638
+ break;
12639
+ default:
12640
+ reader.skipField();
12641
+ break;
12642
+ }
12643
+ }
12644
+ return msg;
12645
+ };
12646
+
12647
+
12648
+ /**
12649
+ * Serializes the message to binary data (in protobuf wire format).
12650
+ * @return {!Uint8Array}
12651
+ */
12652
+ proto.ocap.TokenDistribution.prototype.serializeBinary = function() {
12653
+ var writer = new jspb.BinaryWriter();
12654
+ proto.ocap.TokenDistribution.serializeBinaryToWriter(this, writer);
12655
+ return writer.getResultBuffer();
12656
+ };
12657
+
12658
+
12659
+ /**
12660
+ * Serializes the given message to binary data (in protobuf wire
12661
+ * format), writing to the given BinaryWriter.
12662
+ * @param {!proto.ocap.TokenDistribution} message
12663
+ * @param {!jspb.BinaryWriter} writer
12664
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12665
+ */
12666
+ proto.ocap.TokenDistribution.serializeBinaryToWriter = function(message, writer) {
12667
+ var f = undefined;
12668
+ f = message.getTokenAddress();
12669
+ if (f.length > 0) {
12670
+ writer.writeString(
12671
+ 1,
12672
+ f
12673
+ );
12674
+ }
12675
+ f = message.getTxTime();
12676
+ if (f.length > 0) {
12677
+ writer.writeString(
12678
+ 2,
12679
+ f
12680
+ );
12681
+ }
12682
+ f = message.getAccount();
12683
+ if (f.length > 0) {
12684
+ writer.writeString(
12685
+ 3,
12686
+ f
12687
+ );
12688
+ }
12689
+ f = message.getGas();
12690
+ if (f.length > 0) {
12691
+ writer.writeString(
12692
+ 4,
12693
+ f
12694
+ );
12695
+ }
12696
+ f = message.getFee();
12697
+ if (f.length > 0) {
12698
+ writer.writeString(
12699
+ 5,
12700
+ f
12701
+ );
12702
+ }
12703
+ f = message.getSlashedVault();
12704
+ if (f.length > 0) {
12705
+ writer.writeString(
12706
+ 6,
12707
+ f
12708
+ );
12709
+ }
12710
+ f = message.getStake();
12711
+ if (f.length > 0) {
12712
+ writer.writeString(
12713
+ 7,
12714
+ f
12715
+ );
12716
+ }
12717
+ f = message.getRevokedStake();
12718
+ if (f.length > 0) {
12719
+ writer.writeString(
12720
+ 8,
12721
+ f
12722
+ );
12723
+ }
12724
+ f = message.getGasStake();
12725
+ if (f.length > 0) {
12726
+ writer.writeString(
12727
+ 9,
12728
+ f
12729
+ );
12730
+ }
12731
+ };
12732
+
12733
+
12734
+ /**
12735
+ * optional string token_address = 1;
12736
+ * @return {string}
12737
+ */
12738
+ proto.ocap.TokenDistribution.prototype.getTokenAddress = function() {
12739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12740
+ };
12741
+
12742
+
12743
+ /**
12744
+ * @param {string} value
12745
+ * @return {!proto.ocap.TokenDistribution} returns this
12746
+ */
12747
+ proto.ocap.TokenDistribution.prototype.setTokenAddress = function(value) {
12748
+ return jspb.Message.setProto3StringField(this, 1, value);
12749
+ };
12750
+
12751
+
12752
+ /**
12753
+ * optional string tx_time = 2;
12754
+ * @return {string}
12755
+ */
12756
+ proto.ocap.TokenDistribution.prototype.getTxTime = function() {
12757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12758
+ };
12759
+
12760
+
12761
+ /**
12762
+ * @param {string} value
12763
+ * @return {!proto.ocap.TokenDistribution} returns this
12764
+ */
12765
+ proto.ocap.TokenDistribution.prototype.setTxTime = function(value) {
12766
+ return jspb.Message.setProto3StringField(this, 2, value);
12767
+ };
12768
+
12769
+
12770
+ /**
12771
+ * optional string account = 3;
12772
+ * @return {string}
12773
+ */
12774
+ proto.ocap.TokenDistribution.prototype.getAccount = function() {
12775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12776
+ };
12777
+
12778
+
12779
+ /**
12780
+ * @param {string} value
12781
+ * @return {!proto.ocap.TokenDistribution} returns this
12782
+ */
12783
+ proto.ocap.TokenDistribution.prototype.setAccount = function(value) {
12784
+ return jspb.Message.setProto3StringField(this, 3, value);
12785
+ };
12786
+
12787
+
12788
+ /**
12789
+ * optional string gas = 4;
12790
+ * @return {string}
12791
+ */
12792
+ proto.ocap.TokenDistribution.prototype.getGas = function() {
12793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12794
+ };
12795
+
12796
+
12797
+ /**
12798
+ * @param {string} value
12799
+ * @return {!proto.ocap.TokenDistribution} returns this
12800
+ */
12801
+ proto.ocap.TokenDistribution.prototype.setGas = function(value) {
12802
+ return jspb.Message.setProto3StringField(this, 4, value);
12803
+ };
12804
+
12805
+
12806
+ /**
12807
+ * optional string fee = 5;
12808
+ * @return {string}
12809
+ */
12810
+ proto.ocap.TokenDistribution.prototype.getFee = function() {
12811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12812
+ };
12813
+
12814
+
12815
+ /**
12816
+ * @param {string} value
12817
+ * @return {!proto.ocap.TokenDistribution} returns this
12818
+ */
12819
+ proto.ocap.TokenDistribution.prototype.setFee = function(value) {
12820
+ return jspb.Message.setProto3StringField(this, 5, value);
12821
+ };
12822
+
12823
+
12824
+ /**
12825
+ * optional string slashed_vault = 6;
12826
+ * @return {string}
12827
+ */
12828
+ proto.ocap.TokenDistribution.prototype.getSlashedVault = function() {
12829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
12830
+ };
12831
+
12832
+
12833
+ /**
12834
+ * @param {string} value
12835
+ * @return {!proto.ocap.TokenDistribution} returns this
12836
+ */
12837
+ proto.ocap.TokenDistribution.prototype.setSlashedVault = function(value) {
12838
+ return jspb.Message.setProto3StringField(this, 6, value);
12839
+ };
12840
+
12841
+
12842
+ /**
12843
+ * optional string stake = 7;
12844
+ * @return {string}
12845
+ */
12846
+ proto.ocap.TokenDistribution.prototype.getStake = function() {
12847
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12848
+ };
12849
+
12850
+
12851
+ /**
12852
+ * @param {string} value
12853
+ * @return {!proto.ocap.TokenDistribution} returns this
12854
+ */
12855
+ proto.ocap.TokenDistribution.prototype.setStake = function(value) {
12856
+ return jspb.Message.setProto3StringField(this, 7, value);
12857
+ };
12858
+
12859
+
12860
+ /**
12861
+ * optional string revoked_stake = 8;
12862
+ * @return {string}
12863
+ */
12864
+ proto.ocap.TokenDistribution.prototype.getRevokedStake = function() {
12865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
12866
+ };
12867
+
12868
+
12869
+ /**
12870
+ * @param {string} value
12871
+ * @return {!proto.ocap.TokenDistribution} returns this
12872
+ */
12873
+ proto.ocap.TokenDistribution.prototype.setRevokedStake = function(value) {
12874
+ return jspb.Message.setProto3StringField(this, 8, value);
12875
+ };
12876
+
12877
+
12878
+ /**
12879
+ * optional string gas_stake = 9;
12880
+ * @return {string}
12881
+ */
12882
+ proto.ocap.TokenDistribution.prototype.getGasStake = function() {
12883
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
12884
+ };
12885
+
12886
+
12887
+ /**
12888
+ * @param {string} value
12889
+ * @return {!proto.ocap.TokenDistribution} returns this
12890
+ */
12891
+ proto.ocap.TokenDistribution.prototype.setGasStake = function(value) {
12892
+ return jspb.Message.setProto3StringField(this, 9, value);
12893
+ };
12894
+
12895
+
12504
12896
  /**
12505
12897
  * @enum {number}
12506
12898
  */
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.19.2",
4
+ "version": "1.19.3",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -48,5 +48,5 @@
48
48
  "debug": "^4.3.6",
49
49
  "lodash": "^4.17.21"
50
50
  },
51
- "gitHead": "6fd339211e6500fbb5cac6401a25130e629345b9"
51
+ "gitHead": "756076dad0df7468beecc95c8effd55f8c4c4f49"
52
52
  }