Skip to content
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

feat: Add support for more token extensions #14

Merged
merged 11 commits into from
Jan 23, 2024
7 changes: 7 additions & 0 deletions .changeset/five-socks-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@solanafm/explorer-kit": patch
"@solanafm/explorer-kit-server": patch
"@solanafm/explorer-kit-idls": patch
---

feat: token extensions full supoprt till v1
9 changes: 8 additions & 1 deletion packages/explorerkit-idls/src/idls/LocalIdlRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
StakeIDL,
StakePoolIDL,
SystemIDL,
Token2022_235377525_IDL,
Token2022IDL,
TokenIDL,
VoteIDL,
Expand Down Expand Up @@ -63,7 +64,13 @@ export const IdlRepository = new Map<string, Map<number, IdlTypes> | null>([
],
["BPFLoaderUpgradeab1e11111111111111111111111", new Map([[0, BPFLoaderUpgradeableIDL]])],
["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", new Map([[0, TokenIDL]])],
["TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", new Map([[0, Token2022IDL]])],
[
"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
new Map([
[220601744, Token2022IDL],
[235377525, Token2022_235377525_IDL],
]),
],
["namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX", new Map([[0, NameServiceIDL]])],
["SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy", new Map([[0, StakePoolIDL]])],
["ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", new Map([[0, AssociatedTokenIDL]])],
Expand Down
3 changes: 2 additions & 1 deletion packages/explorerkit-idls/src/idls/shank/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export { AssociatedTokenIDL } from "./spl/associated-token-program";
export { NameServiceIDL } from "./spl/name-service";
export { StakePoolIDL } from "./spl/stake-pool";
export { TokenIDL } from "./spl/token";
export { Token2022IDL } from "./spl/token-v2";
export { Token2022IDL } from "./spl/token-extensions/token-v2";
export { Token2022_235377525_IDL } from "./spl/token-extensions/token-v2-235377525";
export { ClockIDL } from "./sysvar/clock";
export { EpochScheduleIDL } from "./sysvar/epoch-schedule";
export { FeesIDL } from "./sysvar/fees";
Expand Down
Loading
Loading