Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"homepage": "https://github.com/solana-program/counter-anchor#readme",
"license": "MIT",
"peerDependencies": {
"@solana/web3.js": "^2.0.0"
"@solana/kit": "^2.1.1"
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@solana/eslint-config-solana": "^3.0.3",
"@solana/web3.js": "^2.0.0",
"@solana/kit": "^2.1.1",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
Expand Down
4,475 changes: 4,475 additions & 0 deletions clients/js/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/js/src/generated/accounts/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
type MaybeAccount,
type MaybeEncodedAccount,
type ReadonlyUint8Array,
} from '@solana/web3.js';
} from '@solana/kit';

export const COUNTER_DISCRIMINATOR = new Uint8Array([
255, 176, 4, 245, 188, 253, 124, 25,
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/errors/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
type Address,
type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
type SolanaError,
} from '@solana/web3.js';
} from '@solana/kit';
import { COUNTER_PROGRAM_ADDRESS } from '../programs';

/** InvalidAuthority: The provided authority doesn't match the counter account's authority */
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
type ReadonlyUint8Array,
type TransactionSigner,
type WritableSignerAccount,
} from '@solana/web3.js';
} from '@solana/kit';
import { COUNTER_PROGRAM_ADDRESS } from '../programs';
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/increment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
type ReadonlyUint8Array,
type TransactionSigner,
type WritableAccount,
} from '@solana/web3.js';
} from '@solana/kit';
import { COUNTER_PROGRAM_ADDRESS } from '../programs';
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/programs/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getBytesEncoder,
type Address,
type ReadonlyUint8Array,
} from '@solana/web3.js';
} from '@solana/kit';
import {
type ParsedCreateInstruction,
type ParsedIncrementInstruction,
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import {
AccountRole,
isProgramDerivedAddress,
upgradeRoleToSigner,
isTransactionSigner as web3JsIsTransactionSigner,
type Address,
type IAccountMeta,
type IAccountSignerMeta,
type ProgramDerivedAddress,
type TransactionSigner,
upgradeRoleToSigner,
} from '@solana/web3.js';
} from '@solana/kit';

/**
* Asserts that the given value is not null or undefined.
Expand Down
4 changes: 2 additions & 2 deletions clients/js/test/_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import {
Address,
Commitment,
CompilableTransactionMessage,
TransactionMessageWithBlockhashLifetime,
Rpc,
RpcSubscriptions,
SolanaRpcApi,
SolanaRpcSubscriptionsApi,
TransactionMessageWithBlockhashLifetime,
TransactionSigner,
airdropFactory,
appendTransactionMessageInstruction,
Expand All @@ -21,7 +21,7 @@ import {
setTransactionMessageFeePayerSigner,
setTransactionMessageLifetimeUsingBlockhash,
signTransactionMessageWithSigners,
} from '@solana/web3.js';
} from '@solana/kit';
import { getCreateInstruction } from '../src';

type Client = {
Expand Down
2 changes: 1 addition & 1 deletion clients/js/test/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
appendTransactionMessageInstruction,
generateKeyPairSigner,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import { Counter, fetchCounter, getCreateInstruction } from '../src';
import {
Expand Down
2 changes: 1 addition & 1 deletion clients/js/test/increment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
isSolanaError,
lamports,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import {
COUNTER_ERROR__INVALID_AUTHORITY,
Expand Down