Skip to content

refactor(governance/xc_admin_frontend): refactor xc_admin_frontend to support lazer and other programs #2660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ceec09b
feat(programs): add program adapter interface and factory implementation
cctdaniel May 7, 2025
1c85fc6
feat(context): add Program context and provider for managing program …
cctdaniel May 7, 2025
8f3fa83
feat(programs): add ProgramSwitch component for selecting Pyth programs
cctdaniel May 7, 2025
b4fcc24
feat(programs): implement PythCoreAdapter and add PythLazer component…
cctdaniel May 8, 2025
fb71b8a
feat(proposals): add PythLazerProposals and PythCoreProposals components
cctdaniel May 8, 2025
322fdb4
feat(programs): implement placeholder PythLazerAdapter and update ada…
cctdaniel May 8, 2025
61e9270
refactor(core): use for..of instead of forEach
cctdaniel May 9, 2025
ab592d3
refactor: use proper typing instead of any
cctdaniel May 9, 2025
cc4a0b8
refactor: use proper typing instead of any
cctdaniel May 9, 2025
95c2eca
refactor: use functional pattern instead of factory/adapter
cctdaniel May 12, 2025
6c1cbce
refactor(programs): make params more general
cctdaniel May 12, 2025
85fe9f5
fix: usePyth hook
cctdaniel May 12, 2025
1daffb4
refactor: revert Proposals component and add support for lazer option
cctdaniel May 12, 2025
b03718e
refactor: streamline sorting functions and improve code readability
cctdaniel May 12, 2025
9137745
refactor: use functional instead of procedural for getConfig
cctdaniel May 12, 2025
f9d30bb
refactor: explicitly check for presence instead of non-null assertion
cctdaniel May 12, 2025
6f0f5ff
refactor: remove the Object.fromEntries and just return an array of t…
cctdaniel May 14, 2025
1fed853
refactor: address comments
cctdaniel May 14, 2025
2f4e58d
refactor: remove unnecessary abstraction
cctdaniel May 14, 2025
724f8fd
refactor: address comments
cctdaniel May 14, 2025
d9d4035
refactor: use typescript narrowing
cctdaniel May 14, 2025
84110f7
refactor: types
cctdaniel May 14, 2025
9e742f5
refactor: dont delete in map
cctdaniel May 14, 2025
39e4cf4
refactor: config download
cctdaniel May 14, 2025
a891f7e
refactor: parsedBaseDataMap
cctdaniel May 14, 2025
1f405c6
refactor: improve type safety in configuration handling
cctdaniel May 14, 2025
646fb9e
refactor: enhance type safety and consistency in program configuratio…
cctdaniel May 14, 2025
dcba9c5
refactor: clean up code formatting for consistency and readability
cctdaniel May 14, 2025
94c89ba
refactor: improve code structure and organization for better maintain…
cctdaniel May 14, 2025
93a9a6d
refactor: addressed comments
cctdaniel May 14, 2025
3f44ac7
refactor: streamline downloadable config transformation and improve c…
cctdaniel May 14, 2025
5b5ebb6
refactor: enhance program exports for improved modularity and clarity
cctdaniel May 15, 2025
2ef8732
refactor: simplify object sorting and enhance price/product account m…
cctdaniel May 16, 2025
f38560a
refactor: simplify configuration retrieval and enhance type safety ac…
cctdaniel May 19, 2025
62e36fb
refactor: remove redundant programType parameter in Pyth configuratio…
cctdaniel May 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions governance/xc_admin/packages/xc_admin_common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,27 @@ export * from "./chains";
export * from "./deterministic_stake_accounts";
export * from "./price_store";
export { default as lazerIdl } from "./multisig_transaction/idl/lazer.json";

export {
ProgramType,
PROGRAM_TYPE_NAMES,
PriceRawConfig,
ProductRawConfig,
MappingRawConfig,
RawConfig,
DownloadablePriceAccount,
DownloadableProduct,
DownloadableConfig,
ProgramConfig,
ProgramInstructionAccounts,
InstructionAccountsTypeMap,
ValidationResult,
} from "./programs/types";
export {
getProgramAddress,
isAvailableOnCluster,
getConfig,
getDownloadableConfig,
validateUploadedConfig,
generateInstructions,
} from "./programs/program_registry";
Loading
Loading