-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild proto files and reorganize the location of the module
- Loading branch information
Showing
16 changed files
with
2,194 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ plugins: | |
out: . | ||
opt: | ||
- logtostderr=true | ||
- allow_colon_final_segments=true | ||
- allow_colon_final_segments=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
version: v1beta1 | ||
name: buf.build/unigrid-project/cosmos-sdk-gridnode | ||
|
||
breaking: | ||
use: | ||
- FILE | ||
deps: | ||
- buf.build/cosmos/cosmos-proto | ||
- buf.build/cosmos/gogo-proto | ||
- buf.build/googleapis/googleapis | ||
- buf.build/cosmos/cosmos-sdk | ||
|
||
- buf.build/protocolbuffers/wellknowntypes | ||
- buf.build/cosmos/cosmos-sdk | ||
- buf.build/cosmos/cosmos-proto | ||
- buf.build/cosmos/gogo-proto | ||
- buf.build/googleapis/googleapis | ||
- buf.build/cosmos/ics23 | ||
- buf.build/cosmos/ibc | ||
lint: | ||
except: | ||
- UNARY_RPC | ||
- COMMENT_FIELD | ||
- SERVICE_SUFFIX | ||
- PACKAGE_VERSION_SUFFIX | ||
- RPC_REQUEST_STANDARD_NAME | ||
ignore: | ||
- tendermint | ||
use: | ||
- DEFAULT | ||
- DEFAULT | ||
- COMMENTS | ||
- FILE_LOWER_SNAKE_CASE | ||
version: v1 |
4 changes: 2 additions & 2 deletions
4
proto/pax/gridnode/genesis.proto → proto/gridnode/gridnode/v1/genesis.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* eslint-disable */ | ||
import * as _m0 from "protobufjs/minimal"; | ||
import { Params } from "./params"; | ||
|
||
export const protobufPackage = "gridnode.gridnode.v1"; | ||
|
||
/** GenesisState defines the gridnode module's genesis state. */ | ||
export interface GenesisState { | ||
params: Params | undefined; | ||
} | ||
|
||
function createBaseGenesisState(): GenesisState { | ||
return { params: undefined }; | ||
} | ||
|
||
export const GenesisState = { | ||
encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { | ||
if (message.params !== undefined) { | ||
Params.encode(message.params, writer.uint32(10).fork()).ldelim(); | ||
} | ||
return writer; | ||
}, | ||
|
||
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { | ||
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGenesisState(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
|
||
message.params = Params.decode(reader, reader.uint32()); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
|
||
fromJSON(object: any): GenesisState { | ||
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined }; | ||
}, | ||
|
||
toJSON(message: GenesisState): unknown { | ||
const obj: any = {}; | ||
if (message.params !== undefined) { | ||
obj.params = Params.toJSON(message.params); | ||
} | ||
return obj; | ||
}, | ||
|
||
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState { | ||
return GenesisState.fromPartial(base ?? ({} as any)); | ||
}, | ||
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState { | ||
const message = createBaseGenesisState(); | ||
message.params = (object.params !== undefined && object.params !== null) | ||
? Params.fromPartial(object.params) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
|
||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
|
||
export type DeepPartial<T> = T extends Builtin ? T | ||
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> | ||
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> | ||
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> } | ||
: Partial<T>; | ||
|
||
type KeysOfUnion<T> = T extends T ? keyof T : never; | ||
export type Exact<P, I extends P> = P extends Builtin ? P | ||
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never }; | ||
|
||
function isSet(value: any): boolean { | ||
return value !== null && value !== undefined; | ||
} |
Oops, something went wrong.