Skip to content

Commit

Permalink
make generate
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 29, 2024
1 parent 1a2d0de commit 6624a2b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56703,6 +56703,9 @@ definitions:
format: int64
balance:
type: string
authorityMsgUpdateChainInfoResponse:
type: object
description: MsgUpdateChainInfoResponse defines the MsgUpdateChainInfoResponse service.
authorityMsgUpdatePoliciesResponse:
type: object
description: MsgUpdatePoliciesResponse defines the MsgUpdatePoliciesResponse service.
Expand Down
11 changes: 11 additions & 0 deletions docs/spec/authority/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ message MsgUpdatePolicies {
}
```

## MsgUpdateChainInfo

UpdateChainInfo updates the chain inffo structure that adds new static chain info or overwrite existing chain info
on the hard-coded chain info

```proto
message MsgUpdateChainInfo {
string signer = 1;
}
```

47 changes: 47 additions & 0 deletions typescript/zetachain/zetacore/authority/tx_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,50 @@ export declare class MsgUpdatePoliciesResponse extends Message<MsgUpdatePolicies
static equals(a: MsgUpdatePoliciesResponse | PlainMessage<MsgUpdatePoliciesResponse> | undefined, b: MsgUpdatePoliciesResponse | PlainMessage<MsgUpdatePoliciesResponse> | undefined): boolean;
}

/**
* MsgUpdateChainInfo defines the MsgUpdateChainInfo service.
*
* @generated from message zetachain.zetacore.authority.MsgUpdateChainInfo
*/
export declare class MsgUpdateChainInfo extends Message<MsgUpdateChainInfo> {
/**
* @generated from field: string signer = 1;
*/
signer: string;

constructor(data?: PartialMessage<MsgUpdateChainInfo>);

static readonly runtime: typeof proto3;
static readonly typeName = "zetachain.zetacore.authority.MsgUpdateChainInfo";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateChainInfo;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateChainInfo;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateChainInfo;

static equals(a: MsgUpdateChainInfo | PlainMessage<MsgUpdateChainInfo> | undefined, b: MsgUpdateChainInfo | PlainMessage<MsgUpdateChainInfo> | undefined): boolean;
}

/**
* MsgUpdateChainInfoResponse defines the MsgUpdateChainInfoResponse service.
*
* @generated from message zetachain.zetacore.authority.MsgUpdateChainInfoResponse
*/
export declare class MsgUpdateChainInfoResponse extends Message<MsgUpdateChainInfoResponse> {
constructor(data?: PartialMessage<MsgUpdateChainInfoResponse>);

static readonly runtime: typeof proto3;
static readonly typeName = "zetachain.zetacore.authority.MsgUpdateChainInfoResponse";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateChainInfoResponse;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateChainInfoResponse;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateChainInfoResponse;

static equals(a: MsgUpdateChainInfoResponse | PlainMessage<MsgUpdateChainInfoResponse> | undefined, b: MsgUpdateChainInfoResponse | PlainMessage<MsgUpdateChainInfoResponse> | undefined): boolean;
}

1 change: 1 addition & 0 deletions x/authority/keeper/msg_server_update_chain_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

cosmoserror "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/zeta-chain/zetacore/x/authority/types"
)

Expand Down

0 comments on commit 6624a2b

Please sign in to comment.