@solana/accounts 2.0.0-experimental.1db8859 → 2.0.0-experimental.5b8e43b

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/accounts",
3
- "version": "2.0.0-experimental.1db8859",
3
+ "version": "2.0.0-experimental.5b8e43b",
4
4
  "description": "Helpers for representing, fetching and decoding Solana accounts",
5
5
  "exports": {
6
6
  "browser": {
@@ -46,12 +46,12 @@
46
46
  "maintained node versions"
47
47
  ],
48
48
  "dependencies": {
49
- "@solana/codecs-core": "2.0.0-development",
50
- "@solana/addresses": "2.0.0-development",
51
- "@solana/codecs-strings": "2.0.0-development",
52
- "@solana/rpc-core": "2.0.0-development",
53
- "@solana/rpc-transport": "2.0.0-development",
54
- "@solana/rpc-types": "2.0.0-development"
49
+ "@solana/addresses": "2.0.0-experimental.5b8e43b",
50
+ "@solana/codecs-core": "2.0.0-experimental.5b8e43b",
51
+ "@solana/codecs-strings": "2.0.0-experimental.5b8e43b",
52
+ "@solana/rpc-core": "2.0.0-experimental.5b8e43b",
53
+ "@solana/rpc-transport": "2.0.0-experimental.5b8e43b",
54
+ "@solana/rpc-types": "2.0.0-experimental.5b8e43b"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@solana/eslint-config-solana": "^1.0.2",
@@ -71,8 +71,8 @@
71
71
  "version-from-git": "^1.1.1",
72
72
  "build-scripts": "0.0.0",
73
73
  "test-config": "0.0.0",
74
- "tsconfig": "0.0.0",
75
- "test-matchers": "0.0.0"
74
+ "test-matchers": "0.0.0",
75
+ "tsconfig": "0.0.0"
76
76
  },
77
77
  "bundlewatch": {
78
78
  "defaultCompression": "gzip",
@@ -1,11 +0,0 @@
1
- import { Address } from '@solana/addresses';
2
- import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
- /** The amount of bytes required to store the account header. */
4
- export declare const ACCOUNT_HEADER_SIZE = 128;
5
- /** Describe the generic account details applicable to every account. */
6
- export type AccountHeader = {
7
- readonly programAddress: Address;
8
- readonly executable: boolean;
9
- readonly lamports: LamportsUnsafeBeyond2Pow53Minus1;
10
- };
11
- //# sourceMappingURL=account-header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-header.d.ts","sourceRoot":"","sources":["../../src/account-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAErE,gEAAgE;AAChE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;CACvD,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { Address } from '@solana/addresses';
2
- import type { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
3
- import type { GetAccountInfoApi } from '@solana/rpc-core/dist/types/rpc-methods/getAccountInfo';
4
- import type { GetMultipleAccountsApi } from '@solana/rpc-core/dist/types/rpc-methods/getMultipleAccounts';
5
- import type { Rpc } from '@solana/rpc-transport/dist/types/json-rpc-types';
6
- import type { Commitment } from '@solana/rpc-types';
7
- import type { MaybeEncodedAccount } from './maybe-account.js.js.js.js';
8
- /** Optional configuration for fetching a singular account. */
9
- export type FetchEncodedAccountConfig = {
10
- commitment?: Commitment;
11
- minContextSlot?: Slot;
12
- abortSignal?: AbortSignal;
13
- };
14
- /** Fetch an encoded account that may or may not exist using an RPC client. */
15
- export declare function fetchEncodedAccount<TAddress extends string = string>(rpc: Rpc<GetAccountInfoApi>, address: Address<TAddress>, config?: FetchEncodedAccountConfig): Promise<MaybeEncodedAccount<TAddress>>;
16
- /** Optional configuration for fetching multiple accounts. */
17
- export type FetchEncodedAccountsConfig = {
18
- commitment?: Commitment;
19
- minContextSlot?: Slot;
20
- abortSignal?: AbortSignal;
21
- };
22
- /** Fetch multiple encoded accounts that may or may not exist using an RPC client. */
23
- export declare function fetchEncodedAccounts(rpc: Rpc<GetMultipleAccountsApi>, addresses: Address[], config?: FetchEncodedAccountsConfig): Promise<MaybeEncodedAccount[]>;
24
- //# sourceMappingURL=fetch-encoded-account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-encoded-account.d.ts","sourceRoot":"","sources":["../../src/fetch-encoded-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,8DAA8D;AAC9D,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B,CAAC;AAEF,8EAA8E;AAC9E,wBAAsB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACtE,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,EAC3B,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,GAAE,yBAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAIxC;AAED,6DAA6D;AAC7D,MAAM,MAAM,0BAA0B,GAAG;IACrC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B,CAAC;AAEF,qFAAqF;AACrF,wBAAsB,oBAAoB,CACtC,GAAG,EAAE,GAAG,CAAC,sBAAsB,CAAC,EAChC,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,GAAE,0BAA+B,GACxC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAMhC"}
@@ -1,20 +0,0 @@
1
- import type { Address } from '@solana/addresses';
2
- import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData } from '@solana/rpc-core/dist/types/rpc-methods/common';
3
- import type { Account, EncodedAccount } from './account.js.js.js.js';
4
- import { MaybeAccount, MaybeEncodedAccount } from './maybe-account.js.js.js.js';
5
- type EncodedRpcAccount = AccountInfoBase & (AccountInfoWithBase58Bytes | AccountInfoWithBase58EncodedData | AccountInfoWithBase64EncodedData);
6
- type JsonParsedRpcAccount = AccountInfoBase & {
7
- readonly data: JsonParsedData<unknown>;
8
- };
9
- type JsonParsedData<TData> = {
10
- readonly parsed: {
11
- readonly info: TData;
12
- };
13
- };
14
- /** Parse an account object received from an RPC call into an EncodedAccount or MaybeEncodedAccount type. */
15
- export declare function parseRpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: EncodedRpcAccount): EncodedAccount<TAddress>;
16
- export declare function parseRpcAccount<TAddress extends string = string>(address: Address<TAddress>, rpcAccount: EncodedRpcAccount | null): MaybeEncodedAccount<TAddress>;
17
- export declare function parseRpcAccount<TData extends object, TAddress extends string = string>(address: Address<TAddress>, rpcAccount: JsonParsedRpcAccount): Account<TData, TAddress>;
18
- export declare function parseRpcAccount<TData extends object, TAddress extends string = string>(address: Address<TAddress>, rpcAccount: JsonParsedRpcAccount | null): MaybeAccount<TData, TAddress>;
19
- export {};
20
- //# s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