Skip to content

Commit

Permalink
update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
babybunn committed Nov 27, 2024
1 parent d6ae3a0 commit b89d4c2
Show file tree
Hide file tree
Showing 236 changed files with 156,124 additions and 134 deletions.
7 changes: 7 additions & 0 deletions codegen/amino/amino.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 3.20.3
* source: amino/amino.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../google/protobuf/descriptor";
export namespace amino { }
733 changes: 733 additions & 0 deletions codegen/band/bandtss/v1beta1/bandtss.ts

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions codegen/band/bandtss/v1beta1/genesis.ts

Large diffs are not rendered by default.

91 changes: 71 additions & 20 deletions codegen/band/bandtss/v1beta1/genesis_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ proto.band.bandtss.v1beta1.GenesisState.prototype.hasCurrentGroup = function() {
* @private {!Array<number>}
* @const
*/
proto.band.bandtss.v1beta1.Params.repeatedFields_ = [4];
proto.band.bandtss.v1beta1.Params.repeatedFields_ = [5];



Expand Down Expand Up @@ -370,8 +370,9 @@ proto.band.bandtss.v1beta1.Params.toObject = function(includeInstance, msg) {
var f, obj = {
rewardPercentage: jspb.Message.getFieldWithDefault(msg, 1, 0),
inactivePenaltyDuration: (f = msg.getInactivePenaltyDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
minTransitionDuration: (f = msg.getMinTransitionDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
maxTransitionDuration: (f = msg.getMaxTransitionDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
feeList: jspb.Message.toObjectList(msg.getFeeList(),
feePerSignerList: jspb.Message.toObjectList(msg.getFeePerSignerList(),
cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance)
};

Expand Down Expand Up @@ -421,12 +422,17 @@ proto.band.bandtss.v1beta1.Params.deserializeBinaryFromReader = function(msg, re
case 3:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setMaxTransitionDuration(value);
msg.setMinTransitionDuration(value);
break;
case 4:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setMaxTransitionDuration(value);
break;
case 5:
var value = new cosmos_base_v1beta1_coin_pb.Coin;
reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.addFee(value);
msg.addFeePerSigner(value);
break;
default:
reader.skipField();
Expand Down Expand Up @@ -472,18 +478,26 @@ proto.band.bandtss.v1beta1.Params.serializeBinaryToWriter = function(message, wr
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
f = message.getMaxTransitionDuration();
f = message.getMinTransitionDuration();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
f = message.getFeeList();
f = message.getMaxTransitionDuration();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
f = message.getFeePerSignerList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
5,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter
);
Expand Down Expand Up @@ -547,10 +561,10 @@ proto.band.bandtss.v1beta1.Params.prototype.hasInactivePenaltyDuration = functio


/**
* optional google.protobuf.Duration max_transition_duration = 3;
* optional google.protobuf.Duration min_transition_duration = 3;
* @return {?proto.google.protobuf.Duration}
*/
proto.band.bandtss.v1beta1.Params.prototype.getMaxTransitionDuration = function() {
proto.band.bandtss.v1beta1.Params.prototype.getMinTransitionDuration = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
};
Expand All @@ -560,11 +574,48 @@ proto.band.bandtss.v1beta1.Params.prototype.getMaxTransitionDuration = function(
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.band.bandtss.v1beta1.Params} returns this
*/
proto.band.bandtss.v1beta1.Params.prototype.setMaxTransitionDuration = function(value) {
proto.band.bandtss.v1beta1.Params.prototype.setMinTransitionDuration = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.band.bandtss.v1beta1.Params} returns this
*/
proto.band.bandtss.v1beta1.Params.prototype.clearMinTransitionDuration = function() {
return this.setMinTransitionDuration(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.band.bandtss.v1beta1.Params.prototype.hasMinTransitionDuration = function() {
return jspb.Message.getField(this, 3) != null;
};


/**
* optional google.protobuf.Duration max_transition_duration = 4;
* @return {?proto.google.protobuf.Duration}
*/
proto.band.bandtss.v1beta1.Params.prototype.getMaxTransitionDuration = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4));
};


/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.band.bandtss.v1beta1.Params} returns this
*/
proto.band.bandtss.v1beta1.Params.prototype.setMaxTransitionDuration = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.band.bandtss.v1beta1.Params} returns this
Expand All @@ -579,26 +630,26 @@ proto.band.bandtss.v1beta1.Params.prototype.clearMaxTransitionDuration = functio
* @return {boolean}
*/
proto.band.bandtss.v1beta1.Params.prototype.hasMaxTransitionDuration = function() {
return jspb.Message.getField(this, 3) != null;
return jspb.Message.getField(this, 4) != null;
};


/**
* repeated cosmos.base.v1beta1.Coin fee = 4;
* repeated cosmos.base.v1beta1.Coin fee_per_signer = 5;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.band.bandtss.v1beta1.Params.prototype.getFeeList = function() {
proto.band.bandtss.v1beta1.Params.prototype.getFeePerSignerList = function() {
return /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ (
jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4));
jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5));
};


/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.band.bandtss.v1beta1.Params} returns this
*/
proto.band.bandtss.v1beta1.Params.prototype.setFeeList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
proto.band.bandtss.v1beta1.Params.prototype.setFeePerSignerList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};


Expand All @@ -607,17 +658,17 @@ proto.band.bandtss.v1beta1.Params.prototype.setFeeList = function(value) {
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.band.bandtss.v1beta1.Params.prototype.addFee = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index);
proto.band.bandtss.v1beta1.Params.prototype.addFeePerSigner = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.band.bandtss.v1beta1.Params} returns this
*/
proto.band.bandtss.v1beta1.Params.prototype.clearFeeList = function() {
return this.setFeeList([]);
proto.band.bandtss.v1beta1.Params.prototype.clearFeePerSignerList = function() {
return this.setFeePerSignerList([]);
};


Expand Down
Loading

0 comments on commit b89d4c2

Please sign in to comment.