Skip to content

Commit 9b2b9b5

Browse files
committed
add ALT fetching
1 parent dc14d2f commit 9b2b9b5

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

bun.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"@macalinao/solana-batch-accounts-loader": "workspace:^",
128128
"@macalinao/token-utils": "workspace:^",
129129
"@macalinao/zod-solana": "workspace:^",
130+
"@solana-program/address-lookup-table": "^0.7.0",
130131
"@solana-program/token": "^0.6.0",
131132
},
132133
"devDependencies": {

packages/grill/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@macalinao/solana-batch-accounts-loader": "workspace:^",
5454
"@macalinao/token-utils": "workspace:^",
5555
"@macalinao/zod-solana": "workspace:^",
56+
"@solana-program/address-lookup-table": "^0.7.0",
5657
"@solana-program/token": "^0.6.0"
5758
},
5859
"devDependencies": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import {
2+
createDecodedAccountHook,
3+
createDecodedAccountsHook,
4+
} from "@macalinao/grill";
5+
import { getAddressLookupTableDecoder } from "@solana-program/address-lookup-table";
6+
7+
export const useAddressLookupTable = createDecodedAccountHook(
8+
getAddressLookupTableDecoder(),
9+
);
10+
11+
export const useAddressLookupTables = createDecodedAccountsHook(
12+
getAddressLookupTableDecoder(),
13+
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./address-lookup-table.js";

packages/grill/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export { SolanaProvider, useSolanaClient } from "@gillsdk/react";
22
export * from "@macalinao/gill-extra";
3+
export * from "./accounts/index.js";
34
export * from "./contexts/index.js";
45
export * from "./hooks/index.js";
56
export * from "./providers/index.js";

0 commit comments

Comments
 (0)