-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add chain validate method * add chain info type * add chain info type proto * add chain info in genesis * generate * changelog * Update x/authority/types/chain_info.go Co-authored-by: Tanmay <[email protected]> * revert is ZetaChain logic * fix name --------- Co-authored-by: Tanmay <[email protected]>
- Loading branch information
Showing
21 changed files
with
872 additions
and
19 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
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
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,14 @@ | ||
syntax = "proto3"; | ||
package zetachain.zetacore.authority; | ||
|
||
import "zetachain/zetacore/pkg/chains/chains.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/zeta-chain/zetacore/x/authority/types"; | ||
|
||
// ChainInfo contains static information about the chains | ||
// This structure is used to dynamically update these info on a live network | ||
// before hardcoding the values in a upgrade | ||
message ChainInfo { | ||
repeated pkg.chains.Chain chains = 1 [ (gogoproto.nullable) = false ]; | ||
} |
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
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
37 changes: 37 additions & 0 deletions
37
typescript/zetachain/zetacore/authority/chain_info_pb.d.ts
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,37 @@ | ||
// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" | ||
// @generated from file zetachain/zetacore/authority/chain_info.proto (package zetachain.zetacore.authority, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
import type { Chain } from "../pkg/chains/chains_pb.js"; | ||
|
||
/** | ||
* ChainInfo contains static information about the chains | ||
* This structure is used to dynamically update these info on a live network | ||
* before hardcoding the values in a upgrade | ||
* | ||
* @generated from message zetachain.zetacore.authority.ChainInfo | ||
*/ | ||
export declare class ChainInfo extends Message<ChainInfo> { | ||
/** | ||
* @generated from field: repeated zetachain.zetacore.pkg.chains.Chain chains = 1; | ||
*/ | ||
chains: Chain[]; | ||
|
||
constructor(data?: PartialMessage<ChainInfo>); | ||
|
||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "zetachain.zetacore.authority.ChainInfo"; | ||
static readonly fields: FieldList; | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainInfo; | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainInfo; | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainInfo; | ||
|
||
static equals(a: ChainInfo | PlainMessage<ChainInfo> | undefined, b: ChainInfo | PlainMessage<ChainInfo> | undefined): boolean; | ||
} | ||
|
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
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
Oops, something went wrong.