{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["// Export our compatibility types (includes Deployment, Lease, etc.)\nexport * from './official-types.js'\n\n// Export message classes (GeneratedType implementations for CosmJS Registry)\n// Export with bare names for SDK compatibility\nexport {\n  MsgCreateDeployment,\n  MsgUpdateDeployment,\n  MsgCloseDeployment,\n  MsgDepositDeployment,\n  MsgCreateLease,\n  MsgCloseLease,\n  MsgWithdrawLease,\n  MsgCreateBid,\n  MsgCloseBid,\n  MsgCreateCertificate,\n  MsgRevokeCertificate,\n  MsgCreateProvider,\n  MsgUpdateProvider,\n  MsgDeleteProvider,\n} from './message-classes.js'\n\n// Also export with _Class suffix for explicit clarity when needed\nexport {\n  MsgCreateDeployment as MsgCreateDeploymentClass,\n  MsgUpdateDeployment as MsgUpdateDeploymentClass,\n  MsgCloseDeployment as MsgCloseDeploymentClass,\n  MsgDepositDeployment as MsgDepositDeploymentClass,\n  MsgCreateLease as MsgCreateLeaseClass,\n  MsgCloseLease as MsgCloseLeaseClass,\n  MsgWithdrawLease as MsgWithdrawLeaseClass,\n  MsgCreateBid as MsgCreateBidClass,\n  MsgCloseBid as MsgCloseBidClass,\n  MsgCreateCertificate as MsgCreateCertificateClass,\n  MsgRevokeCertificate as MsgRevokeCertificateClass,\n  MsgCreateProvider as MsgCreateProviderClass,\n  MsgUpdateProvider as MsgUpdateProviderClass,\n  MsgDeleteProvider as MsgDeleteProviderClass,\n} from './message-classes.js'\n\n// Generated types can be imported via the /generated subpath export\n// but are not re-exported here to avoid conflicts with official-types\n\n/**\n * Simple Akash Network Protobuf Type Registry\n * Provides TypeScript types for Akash Network protobuf messages\n *\n * Note: With @bufbuild/protobuf v2, we use plain TypeScript types\n * instead of classes for better framework compatibility.\n * This class is kept for backward compatibility but most methods\n * are no-ops since v2 types are just plain TypeScript interfaces.\n */\nexport class AkashProtobuf {\n  constructor() {\n    // No-op constructor for backward compatibility\n  }\n\n  /**\n   * Get available types (deprecated in v2, returns empty array)\n   */\n  getAvailableTypes(): string[] {\n    return []\n  }\n\n  /**\n   * Check if types are loaded (always true in v2)\n   */\n  validateTypesLoaded(): boolean {\n    return true\n  }\n\n  /**\n   * Create a deployment object (v2 just returns the data)\n   */\n  createDeployment(data: any): any {\n    return data\n  }\n\n  /**\n   * Create a lease object (v2 just returns the data)\n   */\n  createLease(data: any): any {\n    return data\n  }\n\n  /**\n   * Encode deployment (not supported in v2 type-only mode)\n   */\n  encodeDeployment(_deployment: any): Uint8Array {\n    throw new Error('Serialization not supported in v2 type-only mode. Use @bufbuild/protobuf directly if needed.')\n  }\n\n  /**\n   * Decode deployment (not supported in v2 type-only mode)\n   */\n  decodeDeployment(_data: Uint8Array): any {\n    throw new Error('Deserialization not supported in v2 type-only mode. Use @bufbuild/protobuf directly if needed.')\n  }\n\n  /**\n   * Encode lease (not supported in v2 type-only mode)\n   */\n  encodeLease(_lease: any): Uint8Array {\n    throw new Error('Serialization not supported in v2 type-only mode. Use @bufbuild/protobuf directly if needed.')\n  }\n\n  /**\n   * Decode lease (not supported in v2 type-only mode)\n   */\n  decodeLease(_data: Uint8Array): any {\n    throw new Error('Deserialization not supported in v2 type-only mode. Use @bufbuild/protobuf directly if needed.')\n  }\n}\n\n// Default registry instance for backward compatibility\nexport const protobufRegistry = new AkashProtobuf()\n\n// Utility object for backward compatibility\nexport const akashProtobuf = {\n  /**\n   * Create configured registry (v2 no-op)\n   */\n  createRegistry: (): AkashProtobuf => new AkashProtobuf(),\n\n  /**\n   * Access to types (deprecated in v2, returns undefined)\n   */\n  types: {\n    get Deployment() { return undefined },\n    get Lease() { return undefined }\n  }\n}\n"],"names":[],"mappings":";;;;AAoDO,MAAM,cAAc;AAAA,EACzB,cAAc;AAAA,EAEd;AAAA;AAAA;AAAA;AAAA,EAKA,oBAA8B;AAC5B,WAAO,CAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,sBAA+B;AAC7B,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAiB,MAAgB;AAC/B,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,YAAY,MAAgB;AAC1B,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAiB,aAA8B;AAC7C,UAAM,IAAI,MAAM,8FAA8F;AAAA,EAChH;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAiB,OAAwB;AACvC,UAAM,IAAI,MAAM,gGAAgG;AAAA,EAClH;AAAA;AAAA;AAAA;AAAA,EAKA,YAAY,QAAyB;AACnC,UAAM,IAAI,MAAM,8FAA8F;AAAA,EAChH;AAAA;AAAA;AAAA;AAAA,EAKA,YAAY,OAAwB;AAClC,UAAM,IAAI,MAAM,gGAAgG;AAAA,EAClH;AACF;AAGO,MAAM,mBAAmB,IAAI,cAAA;AAG7B,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA,EAI3B,gBAAgB,MAAqB,IAAI,cAAA;AAAA;AAAA;AAAA;AAAA,EAKzC,OAAO;AAAA,IACL,IAAI,aAAa;AAAE,aAAO;AAAA,IAAU;AAAA,IACpC,IAAI,QAAQ;AAAE,aAAO;AAAA,IAAU;AAAA,EAAA;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}