@solana/accounts 2.0.0-20241006045741

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData } from '@solana/rpc-types';
3
+ import type { Account, EncodedAccount } from './account';
4
+ import type { MaybeAccount, MaybeEncodedAccount } from './maybe-account';
5
+ import type { JsonParsedDataResponse } from './rpc-api';
6
+ type Base64EncodedRpcAccount = AccountInfoBase & AccountInfoWithBase64EncodedData;
7
+ /** Parse an account object received from a base64-encoded RPC call into an EncodedAccount or MaybeEncodedAccount type. */
8
+ export declare function parseBase64RpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: Base64EncodedRpcAccount): EncodedAccount<TAddress>;
9
+ export declare function parseBase64RpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: Base64EncodedRpcAccount | null): MaybeEncodedAccount<TAddress>;
10
+ type Base58EncodedRpcAccount = AccountInfoBase & (AccountInfoWithBase58Bytes | AccountInfoWithBase58EncodedData);
11
+ /** Parse an account object received from a base58-encoded RPC call into an EncodedAccount or MaybeEncodedAccount type. */
12
+ export declare function parseBase58RpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: Base58EncodedRpcAccount): EncodedAccount<TAddress>;
13
+ export declare function parseBase58RpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: Base58EncodedRpcAccount | null): MaybeEncodedAccount<TAddress>;
14
+ type JsonParsedRpcAccount = AccountInfoBase & {
15
+ readonly data: JsonParsedDataResponse<unknown>;
16
+ };
17
+ /** Parse an account object received from a json-parsed RPC call into an Account or MaybeAccount type. */
18
+ export declare function parseJsonRpcAccount<TData extends object, TAddress extends string = string>(address: Address<TAddress>, rpcAccount: JsonParsedRpcAccount): Account<TData, TAddress>;
19
+ export declare function parseJsonRpcAccount<TData extends object, TAddress extends string = string>(address: Address<TAddress>, rpcAccount: JsonParsedRpcAccount | null): MaybeAccount<TData, TAddress>;
20
+ export {};
21
+ //# sourceMappingURL=parse-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-account.d.ts","sourceRoot":"","sources":["../../src/parse-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAExD,KAAK,uBAAuB,GAAG,eAAe,GAAG,gCAAgC,CAAC;AAElF,0HAA0H;AAC1H,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAClE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,uBAAuB,GACpC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC5B,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAClE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,uBAAuB,GAAG,IAAI,GAC3C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAUjC,KAAK,uBAAuB,GAAG,eAAe,GAAG,CAAC,0BAA0B,GAAG,gCAAgC,CAAC,CAAC;AAEjH,0HAA0H;AAC1H,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAClE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,uBAAuB,GACpC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC5B,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAClE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,uBAAuB,GAAG,IAAI,GAC3C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAUjC,KAAK,oBAAoB,GAAG,eAAe,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAEjG,yGAAyG;AACzG,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,SAAS,MAAM,GAAG,MAAM,EACtF,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,oBAAoB,GACjC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC5B,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,SAAS,MAAM,GAAG,MAAM,EACtF,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,oBAAoB,GAAG,IAAI,GACxC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
2
+ export type JsonParsedDataResponse<TData = object> = Readonly<{
3
+ parsed: {
4
+ info?: TData;
5
+ type: string;
6
+ };
7
+ program: string;
8
+ space: U64UnsafeBeyond2Pow53Minus1;
9
+ }>;
10
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/rpc-api/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC1D,MAAM,EAAE;QACJ,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,2BAA2B,CAAC;CACtC,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetAccountInfoApiResponseBase = SolanaRpcResponse<AccountInfoBase | null>;
4
+ type NestInRpcResponseOrNull<T> = Readonly<{
5
+ value: T | null;
6
+ }>;
7
+ type GetAccountInfoApiCommonConfig = Readonly<{
8
+ commitment?: Commitment;
9
+ minContextSlot?: Slot;
10
+ }>;
11
+ type GetAccountInfoApiSliceableCommonConfig = Readonly<{
12
+ dataSlice?: DataSlice;
13
+ }>;
14
+ export type GetAccountInfoApi = {
15
+ /**
16
+ * Returns all information associated with the account of provided public key
17
+ */
18
+ getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
19
+ encoding: 'base64';
20
+ }>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase64EncodedData>;
21
+ getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
22
+ encoding: 'base64+zstd';
23
+ }>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase64EncodedZStdCompressedData>;
24
+ getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & Readonly<{
25
+ encoding: 'jsonParsed';
26
+ }>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithJsonData>;
27
+ getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
28
+ encoding: 'base58';
29
+ }>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase58EncodedData>;
30
+ getAccountInfo(address: Address, config?: GetAccountInfoApiCommonConfig): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase58Bytes>;
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=getAccountInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountInfo.d.ts","sourceRoot":"","sources":["../../../src/rpc-api/getAccountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,6BAA6B,GAAG,iBAAiB,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;AAE/E,KAAK,uBAAuB,CAAC,CAAC,IAAI,QAAQ,CAAC;IACvC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;CACnB,CAAC,CAAC;AAEH,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAE1C,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,sCAAsC,GAAG,QAAQ,CAAC;IAEnD,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,6BAA6B,GACjC,sCAAsC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,6BAA6B,GAAG,uBAAuB,CAAC,gCAAgC,CAAC,CAAC;IAC7F,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,6BAA6B,GACjC,sCAAsC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,6BAA6B,GAAG,uBAAuB,CAAC,8CAA8C,CAAC,CAAC;IAC3G,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,6BAA6B,GACjC,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,6BAA6B,GAAG,uBAAuB,CAAC,uBAAuB,CAAC,CAAC;IACpF,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,6BAA6B,GACjC,sCAAsC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,6BAA6B,GAAG,uBAAuB,CAAC,gCAAgC,CAAC,CAAC;IAC7F,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,6BAA6B,GACvC,6BAA6B,GAAG,uBAAuB,CAAC,0BAA0B,CAAC,CAAC;CAC1F,CAAC"}
@@ -0,0 +1,43 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;
4
+ type GetMultipleAccountsApiCommonConfig = Readonly<{
5
+ /** Defaults to `finalized` */
6
+ commitment?: Commitment;
7
+ /** The minimum slot that the request can be evaluated at */
8
+ minContextSlot?: Slot;
9
+ }>;
10
+ type GetMultipleAccountsApiSliceableCommonConfig = Readonly<{
11
+ /** Limit the returned account data */
12
+ dataSlice?: DataSlice;
13
+ }>;
14
+ export type GetMultipleAccountsApi = {
15
+ /**
16
+ * Returns the account information for a list of Pubkeys.
17
+ */
18
+ getMultipleAccounts(
19
+ /** An array of up to 100 Pubkeys to query */
20
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
21
+ encoding: 'base64';
22
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
23
+ getMultipleAccounts(
24
+ /** An array of up to 100 Pubkeys to query */
25
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
26
+ encoding: 'base64+zstd';
27
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedZStdCompressedData | null))[]>;
28
+ getMultipleAccounts(
29
+ /** An array of up to 100 Pubkeys to query */
30
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
31
+ encoding: 'jsonParsed';
32
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithJsonData | null))[]>;
33
+ getMultipleAccounts(
34
+ /** An array of up to 100 Pubkeys to query */
35
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
36
+ encoding: 'base58';
37
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase58EncodedData | null))[]>;
38
+ getMultipleAccounts(
39
+ /** An array of up to 100 Pubkeys to query */
40
+ addresses: Address[], config?: GetMultipleAccountsApiCommonConfig): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
41
+ };
42
+ export {};
43
+ //# sourceMappingURL=getMultipleAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMultipleAccounts.d.ts","sourceRoot":"","sources":["../../../src/rpc-api/getMultipleAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EACR,eAAe,EACf,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,kCAAkC,GAAG,eAAe,GAAG,IAAI,CAAC;AAEjE,KAAK,kCAAkC,GAAG,QAAQ,CAAC;IAC/C,8BAA8B;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,2CAA2C,GAAG,QAAQ,CAAC;IACxD,sCAAsC;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG;IACjC;;OAEG;IACH,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,iBAAiB,CAChB,CAAC,kCAAkC,GAAG,CAAC,8CAA8C,GAAG,IAAI,CAAC,CAAC,EAAE,CACnG,CAAC;IACF,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAChG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,CAAC,EAAE,kCAAkC,GAC5C,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAC5G,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './common';
2
+ export * from './getAccountInfo';
3
+ export * from './getMultipleAccounts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rpc-api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@solana/accounts",
3
+ "version": "2.0.0-20241006045741",
4
+ "description": "Helpers for representing, fetching and decoding Solana accounts",
5
+ "exports": {
6
+ "edge-light": {
7
+ "import": "./dist/index.node.mjs",
8
+ "require": "./dist/index.node.cjs"
9
+ },
10
+ "workerd": {
11
+ "import": "./dist/index.node.mjs",
12
+ "require": "./dist/index.node.cjs"
13
+ },
14
+ "browser": {
15
+ "import": "./dist/index.browser.mjs",
16
+ "require": "./dist/index.browser.cjs"
17
+ },
18
+ "node": {
19
+ "import": "./dist/index.node.mjs",
20
+ "require": "./dist/index.node.cjs"
21
+ },
22
+ "react-native": "./dist/index.native.mjs",
23
+ "types": "./dist/types/index.d.ts"
24
+ },
25
+ "browser": {
26
+ "./dist/index.node.cjs": "./dist/index.browser.cjs",
27
+ "./dist/index.node.mjs": "./dist/index.browser.mjs"
28
+ },
29
+ "main": "./dist/index.node.cjs",
30
+ "module": "./dist/index.node.mjs",
31
+ "react-native": "./dist/index.native.mjs",
32
+ "types": "./dist/types/index.d.ts",
33
+ "type": "commonjs",
34
+ "files": [
35
+ "./dist/"
36
+ ],
37
+ "sideEffects": false,
38
+ "keywords": [
39
+ "blockchain",
40
+ "solana",
41
+ "web3"
42
+ ],
43
+ "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
44
+ "license": "MIT",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/solana-labs/solana-web3.js"
48
+ },
49
+ "bugs": {
50
+ "url": "http://github.com/solana-labs/solana-web3.js/issues"
51
+ },
52
+ "browserslist": [
53
+ "supports bigint and not dead",
54
+ "maintained node versions"
55
+ ],
56
+ "dependencies": {
57
+ "@solana/addresses": "2.0.0-20241006045741",
58
+ "@solana/codecs-core": "2.0.0-20241006045741",
59
+ "@solana/codecs-strings": "2.0.0-20241006045741",
60
+ "@solana/errors": "2.0.0-20241006045741",
61
+ "@solana/rpc-spec": "2.0.0-20241006045741",
62
+ "@solana/rpc-types": "2.0.0-20241006045741"
63
+ },
64
+ "peerDependencies": {
65
+ "typescript": ">=5"
66
+ },
67
+ "bundlewatch": {
68
+ "defaultCompression": "gzip",
69
+ "files": [
70
+ {
71
+ "path": "./dist/index*.js"
72
+ }
73
+ ]
74
+ },
75
+ "scripts": {
76
+ "compile:js": "tsup --config build-scripts/tsup.config.package.ts",
77
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
78
+ "dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
79
+ "publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks",
80
+ "publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
81
+ "style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
82
+ "test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
83
+ "test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
84
+ "test:treeshakability:browser": "agadoo dist/index.browser.mjs",
85
+ "test:treeshakability:native": "agadoo dist/index.native.mjs",
86
+ "test:treeshakability:node": "agadoo dist/index.node.mjs",
87
+ "test:typecheck": "tsc --noEmit",
88
+ "test:unit:browser": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
89
+ "test:unit:node": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
90
+ }
91
+ }