// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file injective/tokenfactory/v1beta1/tx.proto (package injective.tokenfactory.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; import { Params } from "./params_pb.js"; /** * MsgCreateDenom defines the message structure for the CreateDenom gRPC service * method. It allows an account to create a new denom. It requires a sender * address and a sub denomination. The (sender_address, sub_denomination) tuple * must be unique and cannot be re-used. * * The resulting denom created is defined as * . The resulting denom's admin is * originally set to be the creator, but this can be changed later. The token * denom does not indicate the current admin. * * @generated from message injective.tokenfactory.v1beta1.MsgCreateDenom */ export class MsgCreateDenom extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * subdenom can be up to 44 "alphanumeric" characters long. * * @generated from field: string subdenom = 2; */ subdenom = ""; /** * @generated from field: string name = 3; */ name = ""; /** * @generated from field: string symbol = 4; */ symbol = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgCreateDenom"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { return new MsgCreateDenom().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenom { return new MsgCreateDenom().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenom { return new MsgCreateDenom().fromJsonString(jsonString, options); } static equals(a: MsgCreateDenom | PlainMessage | undefined, b: MsgCreateDenom | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateDenom, a, b); } } /** * MsgCreateDenomResponse is the return value of MsgCreateDenom * It returns the full string of the newly created denom * * @generated from message injective.tokenfactory.v1beta1.MsgCreateDenomResponse */ export class MsgCreateDenomResponse extends Message { /** * @generated from field: string new_token_denom = 1; */ newTokenDenom = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgCreateDenomResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "new_token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenomResponse { return new MsgCreateDenomResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenomResponse { return new MsgCreateDenomResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenomResponse { return new MsgCreateDenomResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateDenomResponse | PlainMessage | undefined, b: MsgCreateDenomResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateDenomResponse, a, b); } } /** * MsgMint is the sdk.Msg type for allowing an admin account to mint * more of a token. For now, we only support minting to the sender account * * @generated from message injective.tokenfactory.v1beta1.MsgMint */ export class MsgMint extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgMint"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { return new MsgMint().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { return new MsgMint().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgMint { return new MsgMint().fromJsonString(jsonString, options); } static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { return proto3.util.equals(MsgMint, a, b); } } /** * @generated from message injective.tokenfactory.v1beta1.MsgMintResponse */ export class MsgMintResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgMintResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { return new MsgMintResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { return new MsgMintResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { return new MsgMintResponse().fromJsonString(jsonString, options); } static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgMintResponse, a, b); } } /** * MsgBurn is the sdk.Msg type for allowing an admin account to burn * a token. For now, we only support burning from the sender account. * * @generated from message injective.tokenfactory.v1beta1.MsgBurn */ export class MsgBurn extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgBurn"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { return new MsgBurn().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { return new MsgBurn().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgBurn { return new MsgBurn().fromJsonString(jsonString, options); } static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { return proto3.util.equals(MsgBurn, a, b); } } /** * @generated from message injective.tokenfactory.v1beta1.MsgBurnResponse */ export class MsgBurnResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgBurnResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { return new MsgBurnResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { return new MsgBurnResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { return new MsgBurnResponse().fromJsonString(jsonString, options); } static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgBurnResponse, a, b); } } /** * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign * adminship of a denom to a new account * * @generated from message injective.tokenfactory.v1beta1.MsgChangeAdmin */ export class MsgChangeAdmin extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: string denom = 2; */ denom = ""; /** * @generated from field: string new_admin = 3; */ newAdmin = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgChangeAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdmin { return new MsgChangeAdmin().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdmin { return new MsgChangeAdmin().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdmin { return new MsgChangeAdmin().fromJsonString(jsonString, options); } static equals(a: MsgChangeAdmin | PlainMessage | undefined, b: MsgChangeAdmin | PlainMessage | undefined): boolean { return proto3.util.equals(MsgChangeAdmin, a, b); } } /** * MsgChangeAdminResponse defines the response structure for an executed * MsgChangeAdmin message. * * @generated from message injective.tokenfactory.v1beta1.MsgChangeAdminResponse */ export class MsgChangeAdminResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgChangeAdminResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdminResponse { return new MsgChangeAdminResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdminResponse { return new MsgChangeAdminResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdminResponse { return new MsgChangeAdminResponse().fromJsonString(jsonString, options); } static equals(a: MsgChangeAdminResponse | PlainMessage | undefined, b: MsgChangeAdminResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgChangeAdminResponse, a, b); } } /** * MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set * the denom's bank metadata * * @generated from message injective.tokenfactory.v1beta1.MsgSetDenomMetadata */ export class MsgSetDenomMetadata extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; */ metadata?: Metadata; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgSetDenomMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "metadata", kind: "message", T: Metadata }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { return new MsgSetDenomMetadata().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata { return new MsgSetDenomMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata { return new MsgSetDenomMetadata().fromJsonString(jsonString, options); } static equals(a: MsgSetDenomMetadata | PlainMessage | undefined, b: MsgSetDenomMetadata | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSetDenomMetadata, a, b); } } /** * MsgSetDenomMetadataResponse defines the response structure for an executed * MsgSetDenomMetadata message. * * @generated from message injective.tokenfactory.v1beta1.MsgSetDenomMetadataResponse */ export class MsgSetDenomMetadataResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgSetDenomMetadataResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadataResponse { return new MsgSetDenomMetadataResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadataResponse { return new MsgSetDenomMetadataResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadataResponse { return new MsgSetDenomMetadataResponse().fromJsonString(jsonString, options); } static equals(a: MsgSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSetDenomMetadataResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSetDenomMetadataResponse, a, b); } } /** * @generated from message injective.tokenfactory.v1beta1.MsgUpdateParams */ export class MsgUpdateParams extends Message { /** * authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * params defines the tokenfactory parameters to update. * * NOTE: All parameters must be supplied. * * @generated from field: injective.tokenfactory.v1beta1.Params params = 2; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgUpdateParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParams, a, b); } } /** * @generated from message injective.tokenfactory.v1beta1.MsgUpdateParamsResponse */ export class MsgUpdateParamsResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.tokenfactory.v1beta1.MsgUpdateParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParamsResponse, a, b); } }