Browse Source

feat: add alt program (#25)

Nick Frostbutter 9 months ago
parent
commit
a7c3ee44df

+ 5 - 0
.changeset/fuzzy-poems-fix.md

@@ -0,0 +1,5 @@
+---
+"gill": minor
+---
+
+add the address lookup table program as a reexport

+ 7 - 6
README.md

@@ -505,19 +505,20 @@ The program clients included inside `gill` are:
   `@solana-program/token`
 - [Token Extension program (aka Token22)](https://github.com/solana-program/token-2022) -
   re-exported from `@solana-program/token-2022`
+- [Address Lookup Table program](https://github.com/solana-program/address-lookup-table) -
+  re-exported from `@solana-program/address-lookup-table`
 
 If one of the existing clients are not being exported from `gill/programs` or a subpath therein, you
 can of course manually add their compatible client to your repo.
 
 ### Other compatible program clients
 
-From the [solana-program](https://github.com/solana-program/token) GitHub organization - formerly
-known as the Solana Program Library (SPL)
+From the [solana-program](https://github.com/solana-program/token) GitHub organization, formerly
+known as the Solana Program Library (SPL), you can find various other client libraries for specific
+programs. Install their respective package to use in conjunction with gill:
 
-- [Stake program](https://github.com/solana-program/stake) - re-exported from
-  `@solana-program/stake`
-- [Address Lookup Table program](https://github.com/solana-program/address-lookup-table) -
-  re-exported from `@solana-program/address-lookup-table`
+- [Stake program](https://github.com/solana-program/stake) - `@solana-program/stake`
+- [Vote program](https://github.com/solana-program/vote) - `@solana-program/vote`
 
 ### Generate a program client from an IDL
 

+ 7 - 6
packages/gill/README.md

@@ -505,19 +505,20 @@ The program clients included inside `gill` are:
   `@solana-program/token`
 - [Token Extension program (aka Token22)](https://github.com/solana-program/token-2022) -
   re-exported from `@solana-program/token-2022`
+- [Address Lookup Table program](https://github.com/solana-program/address-lookup-table) -
+  re-exported from `@solana-program/address-lookup-table`
 
 If one of the existing clients are not being exported from `gill/programs` or a subpath therein, you
 can of course manually add their compatible client to your repo.
 
 ### Other compatible program clients
 
-From the [solana-program](https://github.com/solana-program/token) GitHub organization - formerly
-known as the Solana Program Library (SPL)
+From the [solana-program](https://github.com/solana-program/token) GitHub organization, formerly
+known as the Solana Program Library (SPL), you can find various other client libraries for specific
+programs. Install their respective package to use in conjunction with gill:
 
-- [Stake program](https://github.com/solana-program/stake) - re-exported from
-  `@solana-program/stake`
-- [Address Lookup Table program](https://github.com/solana-program/address-lookup-table) -
-  re-exported from `@solana-program/address-lookup-table`
+- [Stake program](https://github.com/solana-program/stake) - `@solana-program/stake`
+- [Vote program](https://github.com/solana-program/vote) - `@solana-program/vote`
 
 ### Generate a program client from an IDL
 

+ 1 - 0
packages/gill/package.json

@@ -94,6 +94,7 @@
     "node": ">=20.18.0"
   },
   "dependencies": {
+    "@solana-program/address-lookup-table": "^0.6.1",
     "@solana-program/compute-budget": "^0.6.1",
     "@solana-program/memo": "^0.6.1",
     "@solana-program/system": "^0.6.2",

+ 1 - 0
packages/gill/src/programs/index.ts

@@ -5,5 +5,6 @@
 export * from "@solana-program/system";
 export * from "@solana-program/memo";
 
+export * from "@solana-program/address-lookup-table";
 export * from "@solana-program/compute-budget";
 export * from "./compute-budget";

+ 12 - 0
pnpm-lock.yaml

@@ -135,6 +135,9 @@ importers:
 
   packages/gill:
     dependencies:
+      '@solana-program/address-lookup-table':
+        specifier: ^0.6.1
+        version: 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))
       '@solana-program/compute-budget':
         specifier: ^0.6.1
         version: 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))
@@ -1137,6 +1140,11 @@ packages:
   '@sinonjs/fake-timers@8.1.0':
     resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==}
 
+  '@solana-program/address-lookup-table@0.6.1':
+    resolution: {integrity: sha512-wWbxkUntnKYrnYCYbxukGwrph5/97JU0jHAwdgl39FMz5dW3u0Q4yriO9rq9bavrz/SqxYlUoVY/Vg0gXOqZCA==}
+    peerDependencies:
+      '@solana/web3.js': ^2.0.0
+
   '@solana-program/compute-budget@0.6.1':
     resolution: {integrity: sha512-PWcVmRx2gSQ8jd5va5HzSlKqQmR8Q1sYaPcqpCzhOHcApJ4YsVWY6QhaOD5Nx7z1UXkP12vNq3KDsSCZnT3Hkw==}
     peerDependencies:
@@ -5216,6 +5224,10 @@ snapshots:
     dependencies:
       '@sinonjs/commons': 1.8.6
 
+  '@solana-program/address-lookup-table@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))':
+    dependencies:
+      '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))
+
   '@solana-program/compute-budget@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))':
     dependencies:
       '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.6.3)(ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))