@solana/rpc-parsed-types 2.0.0-experimental.62b6bd6 → 2.0.0-experimental.7aeac5a
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/dist/types/address-lookup-table-accounts.d.ts +10 -0
- package/dist/types/address-lookup-table-accounts.d.ts.map +1 -0
- package/dist/types/bpf-upgradeable-loader-accounts.d.ts +14 -0
- package/dist/types/bpf-upgradeable-loader-accounts.d.ts.map +1 -0
- package/dist/types/config-accounts.d.ts +16 -0
- package/dist/types/config-accounts.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/rpc-parsed-type.d.ts +5 -0
- package/dist/types/rpc-parsed-type.d.ts.map +1 -0
- package/dist/types/token-accounts.d.ts +18 -2
- package/dist/types/token-accounts.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { StringifiedBigInt } from '@solana/rpc-types';
|
|
3
|
+
export type AddressLookupTableAccount = Readonly<{
|
|
4
|
+
addresses: readonly Address[];
|
|
5
|
+
authority?: Address;
|
|
6
|
+
deactivationSlot: StringifiedBigInt;
|
|
7
|
+
lastExtendedSlot: StringifiedBigInt;
|
|
8
|
+
lastExtendedSlotStartIndex: number;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=address-lookup-table-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-lookup-table-accounts.d.ts","sourceRoot":"","sources":["../../src/address-lookup-table-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,SAAS,OAAO,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,0BAA0B,EAAE,MAAM,CAAC;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { Base64EncodedDataResponse, Slot } from '@solana/rpc-types';
|
|
3
|
+
import type { RpcParsedType } from './rpc-parsed-type.js';
|
|
4
|
+
type ProgramAccount = Readonly<{
|
|
5
|
+
programData: Address;
|
|
6
|
+
}>;
|
|
7
|
+
type ProgramDataAccount = Readonly<{
|
|
8
|
+
authority?: Address;
|
|
9
|
+
data: Base64EncodedDataResponse;
|
|
10
|
+
slot: Slot;
|
|
11
|
+
}>;
|
|
12
|
+
export type BpfUpgradeableProgramAccount = RpcParsedType<'program', ProgramAccount> | RpcParsedType<'programData', ProgramDataAccount>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=bpf-upgradeable-loader-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bpf-upgradeable-loader-accounts.d.ts","sourceRoot":"","sources":["../../src/bpf-upgradeable-loader-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,KAAK,cAAc,GAAG,QAAQ,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACxB,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAClC,aAAa,CAAC,SAAS,EAAE,cAAc,CAAC,GACxC,aAAa,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcParsedType } from './rpc-parsed-type.js';
|
|
3
|
+
type StakeConfigAccount = Readonly<{
|
|
4
|
+
slashPenalty: number;
|
|
5
|
+
warmupCooldownRate: number;
|
|
6
|
+
}>;
|
|
7
|
+
type ValidatorInfoAccount = Readonly<{
|
|
8
|
+
configData: unknown;
|
|
9
|
+
keys: {
|
|
10
|
+
pubkey: Address;
|
|
11
|
+
signer: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
}>;
|
|
14
|
+
export type ConfigProgramAccount = RpcParsedType<'stakeConfig', StakeConfigAccount> | RpcParsedType<'validatorInfo', ValidatorInfoAccount>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=config-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-accounts.d.ts","sourceRoot":"","sources":["../../src/config-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC,CAAC;AAEH,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE;QACF,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;KACnB,EAAE,CAAC;CACP,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAC1B,aAAa,CAAC,aAAa,EAAE,kBAAkB,CAAC,GAChD,aAAa,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc-parsed-type.d.ts","sourceRoot":"","sources":["../../src/rpc-parsed-type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,KAAK,SAAS,MAAM,EAAE,KAAK,IAAI,QAAQ,CAAC;IAC9D,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC;CACf,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { TokenAmount } from '@solana/rpc-types';
|
|
2
|
+
import type { StringifiedBigInt, TokenAmount } from '@solana/rpc-types';
|
|
3
|
+
import { RpcParsedType } from './rpc-parsed-type.js';
|
|
3
4
|
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen';
|
|
4
5
|
export type TokenAccount = Readonly<{
|
|
5
6
|
mint: Address;
|
|
@@ -11,7 +12,22 @@ export type TokenAccount = Readonly<{
|
|
|
11
12
|
rentExemptReserve?: TokenAmount;
|
|
12
13
|
delegatedAmount?: TokenAmount;
|
|
13
14
|
closeAuthority?: Address;
|
|
14
|
-
extensions?: unknown[];
|
|
15
|
+
extensions?: readonly unknown[];
|
|
15
16
|
}>;
|
|
17
|
+
export type MintAccount = Readonly<{
|
|
18
|
+
mintAuthority: Address | null;
|
|
19
|
+
supply: StringifiedBigInt;
|
|
20
|
+
decimals: number;
|
|
21
|
+
isInitialized: boolean;
|
|
22
|
+
freezeAuthority: Address | null;
|
|
23
|
+
extensions?: readonly unknown[];
|
|
24
|
+
}>;
|
|
25
|
+
export type MultisigAccount = Readonly<{
|
|
26
|
+
numRequiredSigners: number;
|
|
27
|
+
numValidSigners: number;
|
|
28
|
+
isInitialized: boolean;
|
|
29
|
+
signers: readonly Address[];
|
|
30
|
+
}>;
|
|
31
|
+
export type TokenProgramAccount = RpcParsedType<'account', TokenAccount> | RpcParsedType<'mint', MintAccount> | RpcParsedType<'multisig', MultisigAccount>;
|
|
16
32
|
export {};
|
|
17
33
|
//# sourceMappingURL=token-accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-accounts.d.ts","sourceRoot":"","sources":["../../src/token-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"token-accounts.d.ts","sourceRoot":"","sources":["../../src/token-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,KAAK,iBAAiB,GAAG,aAAa,GAAG,eAAe,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IAC/B,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,SAAS,OAAO,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GACzB,aAAa,CAAC,SAAS,EAAE,YAAY,CAAC,GACtC,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC,GAClC,aAAa,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/rpc-parsed-types",
|
|
3
|
-
"version": "2.0.0-experimental.
|
|
3
|
+
"version": "2.0.0-experimental.7aeac5a",
|
|
4
4
|
"description": "Type definitions for parsed types used in the Solana RPC",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"tsup": "^8.0.1",
|
|
59
59
|
"typescript": "^5.2.2",
|
|
60
60
|
"version-from-git": "^1.1.1",
|
|
61
|
-
"@solana/addresses": "2.0.0-
|
|
62
|
-
"
|
|
63
|
-
"@solana/rpc-types": "2.0.0-development",
|
|
61
|
+
"@solana/addresses": "2.0.0-experimental.7aeac5a",
|
|
62
|
+
"@solana/rpc-types": "2.0.0-experimental.7aeac5a",
|
|
64
63
|
"test-config": "0.0.0",
|
|
64
|
+
"build-scripts": "0.0.0",
|
|
65
65
|
"tsconfig": "0.0.0"
|
|
66
66
|
},
|
|
67
67
|
"bundlewatch": {
|