Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
595 B
TypeScript
14 lines
595 B
TypeScript
import type { IChainAdapter } from './types.js';
|
|
import { createAdapter138 } from './adapter-138.js';
|
|
import { createAdapter651940 } from './adapter-651940.js';
|
|
import { createAdapterPublic } from './adapter-public.js';
|
|
import { createAdapterTezos } from './adapter-tezos.js';
|
|
import { TEZOS_CHAIN_ID } from './config.js';
|
|
|
|
export function getAdapter(chainId: number): IChainAdapter {
|
|
if (chainId === 138) return createAdapter138();
|
|
if (chainId === 651940) return createAdapter651940();
|
|
if (chainId === TEZOS_CHAIN_ID) return createAdapterTezos();
|
|
return createAdapterPublic(chainId);
|
|
}
|