{"version":3,"file":"bank.cjs","names":["BinaryWriter","BinaryReader"],"sources":["../../../src/proto/gno/bank.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n//   protoc-gen-ts_proto  v2.11.6\n//   protoc               v6.33.4\n// source: gno/bank.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"gno.bank\";\n\n/** MsgSend is the fund transfer tx message */\nexport interface MsgSend {\n  /** the bech32 address of the fund sender */\n  from_address: string;\n  /** the bech32 address of the fund receiver */\n  to_address: string;\n  /** the denomination and amount of fund sent (\"<amount><denomination>\") */\n  amount: string;\n}\n\nfunction createBaseMsgSend(): MsgSend {\n  return { from_address: \"\", to_address: \"\", amount: \"\" };\n}\n\nexport const MsgSend: MessageFns<MsgSend> = {\n  encode(message: MsgSend, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n    if (message.from_address !== \"\") {\n      writer.uint32(10).string(message.from_address);\n    }\n    if (message.to_address !== \"\") {\n      writer.uint32(18).string(message.to_address);\n    }\n    if (message.amount !== \"\") {\n      writer.uint32(26).string(message.amount);\n    }\n    return writer;\n  },\n\n  decode(input: BinaryReader | Uint8Array, length?: number): MsgSend {\n    const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n    const end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseMsgSend();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1: {\n          if (tag !== 10) {\n            break;\n          }\n\n          message.from_address = reader.string();\n          continue;\n        }\n        case 2: {\n          if (tag !== 18) {\n            break;\n          }\n\n          message.to_address = reader.string();\n          continue;\n        }\n        case 3: {\n          if (tag !== 26) {\n            break;\n          }\n\n          message.amount = reader.string();\n          continue;\n        }\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skip(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): MsgSend {\n    return {\n      from_address: isSet(object.from_address) ? globalThis.String(object.from_address) : \"\",\n      to_address: isSet(object.to_address) ? globalThis.String(object.to_address) : \"\",\n      amount: isSet(object.amount) ? globalThis.String(object.amount) : \"\",\n    };\n  },\n\n  toJSON(message: MsgSend): unknown {\n    const obj: any = {};\n    if (message.from_address !== undefined) {\n      obj.from_address = message.from_address;\n    }\n    if (message.to_address !== undefined) {\n      obj.to_address = message.to_address;\n    }\n    if (message.amount !== undefined) {\n      obj.amount = message.amount;\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<MsgSend>, I>>(base?: I): MsgSend {\n    return MsgSend.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<MsgSend>, I>>(object: I): MsgSend {\n    const message = createBaseMsgSend();\n    message.from_address = object.from_address ?? \"\";\n    message.to_address = object.to_address ?? \"\";\n    message.amount = object.amount ?? \"\";\n    return message;\n  },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n  : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n  : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n  : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n  : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n  : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n  return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n  encode(message: T, writer?: BinaryWriter): BinaryWriter;\n  decode(input: BinaryReader | Uint8Array, length?: number): T;\n  fromJSON(object: any): T;\n  toJSON(message: T): unknown;\n  create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n  fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";AAqBA,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