diff --git a/src/index.ts b/src/index.ts index 3829c3d88..10bae131b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,5 +4,5 @@ export { Utxo } from './serializable/avax/utxo'; export * from './signer'; export * as utils from './utils'; export * from './vms'; -export { Info } from './info/info'; +export * as info from './info'; export * from './crypto'; diff --git a/src/info/info.ts b/src/info/api.ts similarity index 98% rename from src/info/info.ts rename to src/info/api.ts index 75ca1c6f3..4ebd8b886 100644 --- a/src/info/info.ts +++ b/src/info/api.ts @@ -14,7 +14,7 @@ import type { GetUpgradesInfoResponse, } from './model'; -export class Info extends Api { +export class InfoApi extends Api { constructor(private readonly baseURL: string = AVAX_PUBLIC_URL) { super(baseURL, '/ext/info', 'info'); } diff --git a/src/info/index.ts b/src/info/index.ts new file mode 100644 index 000000000..bed443678 --- /dev/null +++ b/src/info/index.ts @@ -0,0 +1,2 @@ +export * from './api'; +export * from './model'; diff --git a/src/vms/context/context.ts b/src/vms/context/context.ts index 9e36416cc..5403a31f4 100644 --- a/src/vms/context/context.ts +++ b/src/vms/context/context.ts @@ -1,5 +1,5 @@ +import { InfoApi } from '../../info'; import { getHRP } from '../../constants/networkIDs'; -import { Info } from '../../info/info'; import { AVMApi } from '../avm/api'; import { PVMApi } from '../pvm'; import type { Context } from './model'; @@ -16,7 +16,7 @@ export const getContextFromURI = async ( const { assetID: avaxAssetID } = await xChainApi.getAssetDescription( assetDescription, ); - const info = new Info(baseURL); + const info = new InfoApi(baseURL); const { txFee: baseTxFee, createAssetTxFee,