-
Notifications
You must be signed in to change notification settings - Fork 30
Bump generated clients and their dependencies #75
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,12 @@ import { | |
| ClientWithRpc, | ||
| GetMinimumBalanceForRentExemptionApi, | ||
| TransactionSigner, | ||
| createClient, | ||
| lamports, | ||
| sequentialInstructionPlan, | ||
| } from '@solana/kit'; | ||
| import { createLocalClient } from '@solana/kit-client-rpc'; | ||
| import { solanaLocalRpc } from '@solana/kit-plugin-rpc'; | ||
| import { airdropSigner, generatedSigner } from '@solana/kit-plugin-signer'; | ||
| import { | ||
| SYSTEM_PROGRAM_ADDRESS, | ||
| getCreateAccountInstruction, | ||
|
|
@@ -14,8 +17,12 @@ import { | |
| systemProgram, | ||
| } from '../src'; | ||
|
|
||
| export const createClient = () => { | ||
| return createLocalClient().use(systemProgram()); | ||
| export const createTestClient = () => { | ||
| return createClient() | ||
| .use(generatedSigner()) | ||
| .use(solanaLocalRpc()) | ||
| .use(systemProgram()) | ||
| .use(airdropSigner(lamports(1_000_000_000n))); | ||
| }; | ||
|
Comment on lines
-17
to
26
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the way we construct our test client to match latest Kit Plugin API. |
||
|
|
||
| export const getCreateNonceInstructionPlan = async ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,24 +8,25 @@ readme = "README.md" | |
| license-file = "../../LICENSE" | ||
|
|
||
| [features] | ||
| fetch = ["dep:solana-client", "dep:solana-sdk"] | ||
| fetch = ["dep:solana-client"] | ||
| test-sbf = [] | ||
| serde = ["dep:serde", "dep:serde_with", "kaigan/serde"] | ||
|
|
||
| [dependencies] | ||
| borsh = "^0.10" | ||
| kaigan = "^0.3" | ||
| borsh = "^1.0" | ||
| num-derive = "^0.4" | ||
| num-traits = "^0.2" | ||
| serde = { version = "^1.0", features = ["derive"], optional = true } | ||
| serde_with = { version = "^3.0", optional = true } | ||
| solana-client = { version = "2.3.4", optional = true } | ||
| solana-sdk = { version = "2.2.1", optional = true } | ||
| solana-program = "2.2.1" | ||
| solana-account = "~3.0" | ||
| solana-account-info = "~3.1" | ||
| solana-address = { version = "~2.4", features = [ | ||
| 'borsh', | ||
| 'copy', | ||
| 'curve25519', | ||
| 'decode', | ||
| ] } | ||
| solana-client = { version = "^3.0", optional = true } | ||
| solana-cpi = "~3.1" | ||
| solana-decode-error = "~2.3" | ||
| solana-instruction = "~3.2" | ||
| solana-program-error = "~3.0" | ||
| spl-collections = { version = "^0.1", features = ["borsh"] } | ||
| thiserror = "^1.0" | ||
| solana-account = "~2.2" | ||
| solana-account-info = "~2.3" | ||
| solana-instruction = "~2.3" | ||
| solana-program-error = "~2.2" | ||
| solana-pubkey = { version = "~2.4", features = ["curve25519", "borsh"] } | ||
| solana-cpi = "~2.2" | ||
|
Comment on lines
10
to
-31
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update client dependencies to match latest Rust renderer code. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping Kit and Kit plugins