|
5 | 5 |
|
6 | 6 | import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
7 | 7 | import { Message, proto3 } from "@bufbuild/protobuf";
|
8 |
| -import type { Policies } from "./policies_pb.js"; |
| 8 | +import type { Policies, PolicyType } from "./policies_pb.js"; |
9 | 9 | import type { ChainInfo } from "./chain_info_pb.js";
|
10 | 10 |
|
| 11 | +/** |
| 12 | + * MsgAddAuthorization defines the MsgAddAuthorization service. |
| 13 | + * Adds an authorization to the chain. If the authorization already exists, it |
| 14 | + * will be updated. |
| 15 | + * |
| 16 | + * @generated from message zetachain.zetacore.authority.MsgAddAuthorization |
| 17 | + */ |
| 18 | +export declare class MsgAddAuthorization extends Message<MsgAddAuthorization> { |
| 19 | + /** |
| 20 | + * @generated from field: string creator = 1; |
| 21 | + */ |
| 22 | + creator: string; |
| 23 | + |
| 24 | + /** |
| 25 | + * @generated from field: string msg_url = 2; |
| 26 | + */ |
| 27 | + msgUrl: string; |
| 28 | + |
| 29 | + /** |
| 30 | + * @generated from field: zetachain.zetacore.authority.PolicyType authorized_policy = 3; |
| 31 | + */ |
| 32 | + authorizedPolicy: PolicyType; |
| 33 | + |
| 34 | + constructor(data?: PartialMessage<MsgAddAuthorization>); |
| 35 | + |
| 36 | + static readonly runtime: typeof proto3; |
| 37 | + static readonly typeName = "zetachain.zetacore.authority.MsgAddAuthorization"; |
| 38 | + static readonly fields: FieldList; |
| 39 | + |
| 40 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgAddAuthorization; |
| 41 | + |
| 42 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgAddAuthorization; |
| 43 | + |
| 44 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgAddAuthorization; |
| 45 | + |
| 46 | + static equals(a: MsgAddAuthorization | PlainMessage<MsgAddAuthorization> | undefined, b: MsgAddAuthorization | PlainMessage<MsgAddAuthorization> | undefined): boolean; |
| 47 | +} |
| 48 | + |
| 49 | +/** |
| 50 | + * MsgAddAuthorizationResponse defines the MsgAddAuthorizationResponse service. |
| 51 | + * |
| 52 | + * @generated from message zetachain.zetacore.authority.MsgAddAuthorizationResponse |
| 53 | + */ |
| 54 | +export declare class MsgAddAuthorizationResponse extends Message<MsgAddAuthorizationResponse> { |
| 55 | + constructor(data?: PartialMessage<MsgAddAuthorizationResponse>); |
| 56 | + |
| 57 | + static readonly runtime: typeof proto3; |
| 58 | + static readonly typeName = "zetachain.zetacore.authority.MsgAddAuthorizationResponse"; |
| 59 | + static readonly fields: FieldList; |
| 60 | + |
| 61 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgAddAuthorizationResponse; |
| 62 | + |
| 63 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgAddAuthorizationResponse; |
| 64 | + |
| 65 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgAddAuthorizationResponse; |
| 66 | + |
| 67 | + static equals(a: MsgAddAuthorizationResponse | PlainMessage<MsgAddAuthorizationResponse> | undefined, b: MsgAddAuthorizationResponse | PlainMessage<MsgAddAuthorizationResponse> | undefined): boolean; |
| 68 | +} |
| 69 | + |
| 70 | +/** |
| 71 | + * MsgRemoveAuthorization defines the MsgRemoveAuthorization service. |
| 72 | + * Removes an authorization from the chain. |
| 73 | + * |
| 74 | + * @generated from message zetachain.zetacore.authority.MsgRemoveAuthorization |
| 75 | + */ |
| 76 | +export declare class MsgRemoveAuthorization extends Message<MsgRemoveAuthorization> { |
| 77 | + /** |
| 78 | + * @generated from field: string creator = 1; |
| 79 | + */ |
| 80 | + creator: string; |
| 81 | + |
| 82 | + /** |
| 83 | + * @generated from field: string msg_url = 2; |
| 84 | + */ |
| 85 | + msgUrl: string; |
| 86 | + |
| 87 | + constructor(data?: PartialMessage<MsgRemoveAuthorization>); |
| 88 | + |
| 89 | + static readonly runtime: typeof proto3; |
| 90 | + static readonly typeName = "zetachain.zetacore.authority.MsgRemoveAuthorization"; |
| 91 | + static readonly fields: FieldList; |
| 92 | + |
| 93 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRemoveAuthorization; |
| 94 | + |
| 95 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRemoveAuthorization; |
| 96 | + |
| 97 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRemoveAuthorization; |
| 98 | + |
| 99 | + static equals(a: MsgRemoveAuthorization | PlainMessage<MsgRemoveAuthorization> | undefined, b: MsgRemoveAuthorization | PlainMessage<MsgRemoveAuthorization> | undefined): boolean; |
| 100 | +} |
| 101 | + |
| 102 | +/** |
| 103 | + * MsgRemoveAuthorizationResponse defines the MsgRemoveAuthorizationResponse |
| 104 | + * service. |
| 105 | + * |
| 106 | + * @generated from message zetachain.zetacore.authority.MsgRemoveAuthorizationResponse |
| 107 | + */ |
| 108 | +export declare class MsgRemoveAuthorizationResponse extends Message<MsgRemoveAuthorizationResponse> { |
| 109 | + constructor(data?: PartialMessage<MsgRemoveAuthorizationResponse>); |
| 110 | + |
| 111 | + static readonly runtime: typeof proto3; |
| 112 | + static readonly typeName = "zetachain.zetacore.authority.MsgRemoveAuthorizationResponse"; |
| 113 | + static readonly fields: FieldList; |
| 114 | + |
| 115 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRemoveAuthorizationResponse; |
| 116 | + |
| 117 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRemoveAuthorizationResponse; |
| 118 | + |
| 119 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRemoveAuthorizationResponse; |
| 120 | + |
| 121 | + static equals(a: MsgRemoveAuthorizationResponse | PlainMessage<MsgRemoveAuthorizationResponse> | undefined, b: MsgRemoveAuthorizationResponse | PlainMessage<MsgRemoveAuthorizationResponse> | undefined): boolean; |
| 122 | +} |
| 123 | + |
11 | 124 | /**
|
12 | 125 | * MsgUpdatePolicies defines the MsgUpdatePolicies service.
|
13 | 126 | *
|
|
0 commit comments