Skip to content

Commit

Permalink
fix: MinBidPrice type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hare committed May 5, 2024
1 parent 5ff5919 commit 14eb7b3
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion docs/proto/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `min_bid_price` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |
| `min_bid_price` | [cosmos.base.v1beta1.DecCoin](#cosmos.base.v1beta1.DecCoin) | | |



Expand Down
136 changes: 68 additions & 68 deletions go/provider/v1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/provider/akash/provider/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ message ValidateRequest {

// ValidateResponse
message ValidateResponse {
cosmos.base.v1beta1.Coin min_bid_price = 1 [
cosmos.base.v1beta1.DecCoin min_bid_price = 1 [
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "min_bid_price",
(gogoproto.moretags) = "yaml:\"min_bid_price\""
Expand Down
14 changes: 7 additions & 7 deletions ts/src/generated/akash/provider/v1/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Long from 'long';
import _m0 from 'protobufjs/minimal';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Coin } from '../../../cosmos/base/v1beta1/coin';
import { DecCoin } from '../../../cosmos/base/v1beta1/coin';
import { Empty } from '../../../google/protobuf/empty';
import { messageTypeRegistry } from '../../../typeRegistry';
import { GroupSpec } from '../../deployment/v1beta3/groupspec';
Expand Down Expand Up @@ -61,7 +61,7 @@ export interface ValidateRequest {
/** ValidateResponse */
export interface ValidateResponse {
$type: 'akash.provider.v1.ValidateResponse';
minBidPrice: Coin | undefined;
minBidPrice: DecCoin | undefined;
}

function createBaseVersionResponse(): VersionResponse {
Expand Down Expand Up @@ -774,7 +774,7 @@ export const ValidateResponse = {
writer: _m0.Writer = _m0.Writer.create(),
): _m0.Writer {
if (message.minBidPrice !== undefined) {
Coin.encode(message.minBidPrice, writer.uint32(10).fork()).ldelim();
DecCoin.encode(message.minBidPrice, writer.uint32(10).fork()).ldelim();
}
return writer;
},
Expand All @@ -792,7 +792,7 @@ export const ValidateResponse = {
break;
}

message.minBidPrice = Coin.decode(reader, reader.uint32());
message.minBidPrice = DecCoin.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
Expand All @@ -807,15 +807,15 @@ export const ValidateResponse = {
return {
$type: ValidateResponse.$type,
minBidPrice: isSet(object.minBidPrice)
? Coin.fromJSON(object.minBidPrice)
? DecCoin.fromJSON(object.minBidPrice)
: undefined,
};
},

toJSON(message: ValidateResponse): unknown {
const obj: any = {};
if (message.minBidPrice !== undefined) {
obj.minBidPrice = Coin.toJSON(message.minBidPrice);
obj.minBidPrice = DecCoin.toJSON(message.minBidPrice);
}
return obj;
},
Expand All @@ -827,7 +827,7 @@ export const ValidateResponse = {
const message = createBaseValidateResponse();
message.minBidPrice =
object.minBidPrice !== undefined && object.minBidPrice !== null
? Coin.fromPartial(object.minBidPrice)
? DecCoin.fromPartial(object.minBidPrice)
: undefined;
return message;
},
Expand Down

0 comments on commit 14eb7b3

Please sign in to comment.