// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file ibc/applications/transfer/v2/packet.proto (package ibc.applications.transfer.v2, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * FungibleTokenPacketData defines a struct for the packet payload * See FungibleTokenPacketData spec: * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures * * @generated from message ibc.applications.transfer.v2.FungibleTokenPacketData */ export class FungibleTokenPacketData extends Message { /** * the token denomination to be transferred * * @generated from field: string denom = 1; */ denom = ""; /** * the token amount to be transferred * * @generated from field: string amount = 2; */ amount = ""; /** * the sender address * * @generated from field: string sender = 3; */ sender = ""; /** * the recipient address on the destination chain * * @generated from field: string receiver = 4; */ receiver = ""; /** * optional memo * * @generated from field: string memo = 5; */ memo = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.applications.transfer.v2.FungibleTokenPacketData"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FungibleTokenPacketData { return new FungibleTokenPacketData().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FungibleTokenPacketData { return new FungibleTokenPacketData().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FungibleTokenPacketData { return new FungibleTokenPacketData().fromJsonString(jsonString, options); } static equals(a: FungibleTokenPacketData | PlainMessage | undefined, b: FungibleTokenPacketData | PlainMessage | undefined): boolean { return proto3.util.equals(FungibleTokenPacketData, a, b); } }