Skip to content

Commit

Permalink
geenrate files with new comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed May 31, 2024
1 parent c18bd7d commit 1365d53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion proto/zetachain/zetacore/authority/authorization.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import "zetachain/zetacore/authority/policies.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";

// Authorization defines the authorization required to access use a message which needs special permissions
// Authorization defines the authorization required to access use a message
// which needs special permissions
message Authorization {
// The URL of the message that needs to be authorized
string msg_url = 1;
Expand Down
3 changes: 3 additions & 0 deletions typescript/zetachain/zetacore/authority/authorization_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { Message, proto3 } from "@bufbuild/protobuf";
import type { PolicyType } from "./policies_pb.js";

/**
* Authorization defines the authorization required to access use a message
* which needs special permissions
*
* @generated from message zetachain.zetacore.authority.Authorization
*/
export declare class Authorization extends Message<Authorization> {
Expand Down
2 changes: 2 additions & 0 deletions x/authority/types/authorization.pb.go

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

5 changes: 4 additions & 1 deletion x/authority/types/authorizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ var (
// DefaultAuthorizationsList list is the list of authorizations that presently exist in the system.
// This is the minimum set of authorizations that are required to be set when the authorization table is deployed
func DefaultAuthorizationsList() AuthorizationList {
authorizations := make([]Authorization, len(OperationPolicyMessages)+len(AdminPolicyMessages)+len(EmergencyPolicyMessages))
authorizations := make(
[]Authorization,
len(OperationPolicyMessages)+len(AdminPolicyMessages)+len(EmergencyPolicyMessages),
)
index := 0
for _, msgURL := range OperationPolicyMessages {
authorizations[index] = Authorization{
Expand Down

0 comments on commit 1365d53

Please sign in to comment.