{"version":3,"file":"aptos.mjs","names":[],"sources":["../../src/providers/aptos.ts"],"sourcesContent":["/**\n * Aptos provider — explicit unsupported explorer contract.\n *\n * Aptos Explorer does not publish a documented account-history API. Direct fullnode REST is\n * deliberately not used: unsupported operations fail clearly.\n */\n\nimport type {\n  Balance,\n  ChainKey,\n  ProviderCapabilities,\n  Transaction,\n  TxHistoryOptions,\n} from \"../core/types.js\";\nimport { Provider } from \"../core/provider.js\";\nimport { UnsupportedChainError, UnsupportedOperationError } from \"../core/errors.js\";\n\nexport class Aptos extends Provider {\n  static readonly key = \"aptos\";\n\n  get capabilities(): ProviderCapabilities {\n    return {\n      balances: false,\n      txHistory: false,\n      txDetail: false,\n      utxos: false,\n      contractInfo: false,\n      tokenBalances: false,\n      tokenTransfers: false,\n      gasData: false,\n      blockInfo: false,\n    };\n  }\n\n  async getBalance(_address: string, chain?: ChainKey): Promise<Balance> {\n    const c = chain ?? \"aptos\";\n    if (c !== \"aptos\") throw new UnsupportedChainError(c, this.name);\n    throw new UnsupportedOperationError(\"getBalance\", this.name);\n  }\n\n  async getTxHistory(\n    _address: string,\n    chain?: ChainKey,\n    _options?: Readonly<TxHistoryOptions>,\n  ): Promise<Transaction[]> {\n    const c = chain ?? \"aptos\";\n    if (c !== \"aptos\") throw new UnsupportedChainError(c, this.name);\n    throw new UnsupportedOperationError(\"getTxHistory\", this.name);\n  }\n}\n"],"mappings":";;AAiBA,IAAa,QAAb,cAA2B,SAAS;CAClC,OAAgB,MAAM;CAEtB,IAAI,eAAqC;EACvC,OAAO;GACL,UAAU;GACV,WAAW;GACX,UAAU;GACV,OAAO;GACP,cAAc;GACd,eAAe;GACf,gBAAgB;GAChB,SAAS;GACT,WAAW;EACb;CACF;CAEA,MAAM,WAAW,UAAkB,OAAoC;EACrE,MAAM,IAAI,SAAS;EACnB,IAAI,MAAM,SAAS,MAAM,IAAI,sBAAsB,GAAG,KAAK,IAAI;EAC/D,MAAM,IAAI,0BAA0B,cAAc,KAAK,IAAI;CAC7D;CAEA,MAAM,aACJ,UACA,OACA,UACwB;EACxB,MAAM,IAAI,SAAS;EACnB,IAAI,MAAM,SAAS,MAAM,IAAI,sBAAsB,GAAG,KAAK,IAAI;EAC/D,MAAM,IAAI,0BAA0B,gBAAgB,KAAK,IAAI;CAC/D;AACF"}