Skip to content

Commit b4fcc24

Browse files
committed
feat(programs): implement PythCoreAdapter and add PythLazer component placeholder
1 parent 8f3fa83 commit b4fcc24

File tree

6 files changed

+1361
-989
lines changed

6 files changed

+1361
-989
lines changed

governance/xc_admin/packages/xc_admin_common/src/programs/adapter_factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ProgramAdapter } from "./program_adapter";
22
import { ProgramType } from "./types";
3+
import { PythCoreAdapter } from "./core/core_adapter";
34

45
/**
56
* Factory function to get the appropriate program adapter based on program type.
@@ -11,8 +12,7 @@ import { ProgramType } from "./types";
1112
export function getProgramAdapter(type: ProgramType): ProgramAdapter {
1213
switch (type) {
1314
case ProgramType.PYTH_CORE:
14-
// Will be implemented in a future commit
15-
throw new Error("Pyth Core adapter not yet implemented");
15+
return new PythCoreAdapter();
1616
case ProgramType.PYTH_LAZER:
1717
// Will be implemented in a future commit
1818
throw new Error("Pyth Lazer adapter not yet implemented");

0 commit comments

Comments
 (0)