@solana/rpc-parsed-types
Advanced tools
Comparing version 2.0.0-experimental.7aeac5a to 2.0.0-experimental.7d67615
import type { Address } from '@solana/addresses'; | ||
import type { StringifiedBigInt } from '@solana/rpc-types'; | ||
export type AddressLookupTableAccount = Readonly<{ | ||
import { RpcParsedInfo } from './rpc-parsed-type.js'; | ||
export type JsonParsedAddressLookupTableAccount = RpcParsedInfo<{ | ||
addresses: readonly Address[]; | ||
@@ -5,0 +6,0 @@ authority?: Address; |
import type { Address } from '@solana/addresses'; | ||
import type { Base64EncodedDataResponse, Slot } from '@solana/rpc-types'; | ||
import type { RpcParsedType } from './rpc-parsed-type.js'; | ||
type ProgramAccount = Readonly<{ | ||
type JsonParsedBpfProgramAccount = Readonly<{ | ||
programData: Address; | ||
}>; | ||
type ProgramDataAccount = Readonly<{ | ||
type JsonParsedBpfProgramDataAccount = Readonly<{ | ||
authority?: Address; | ||
@@ -12,4 +12,4 @@ data: Base64EncodedDataResponse; | ||
}>; | ||
export type BpfUpgradeableProgramAccount = RpcParsedType<'program', ProgramAccount> | RpcParsedType<'programData', ProgramDataAccount>; | ||
export type JsonParsedBpfUpgradeableLoaderProgramAccount = RpcParsedType<'program', JsonParsedBpfProgramAccount> | RpcParsedType<'programData', JsonParsedBpfProgramDataAccount>; | ||
export {}; | ||
//# sourceMappingURL=bpf-upgradeable-loader-accounts.d.ts.map |
import type { Address } from '@solana/addresses'; | ||
import type { RpcParsedType } from './rpc-parsed-type.js'; | ||
type StakeConfigAccount = Readonly<{ | ||
type JsonParsedStakeConfigAccount = Readonly<{ | ||
slashPenalty: number; | ||
warmupCooldownRate: number; | ||
}>; | ||
type ValidatorInfoAccount = Readonly<{ | ||
type JsonParsedValidatorInfoAccount = Readonly<{ | ||
configData: unknown; | ||
@@ -14,4 +14,4 @@ keys: { | ||
}>; | ||
export type ConfigProgramAccount = RpcParsedType<'stakeConfig', StakeConfigAccount> | RpcParsedType<'validatorInfo', ValidatorInfoAccount>; | ||
export type JsonParsedConfigProgramAccount = RpcParsedType<'stakeConfig', JsonParsedStakeConfigAccount> | RpcParsedType<'validatorInfo', JsonParsedValidatorInfoAccount>; | ||
export {}; | ||
//# sourceMappingURL=config-accounts.d.ts.map |
export * from './address-lookup-table-accounts.js'; | ||
export * from './bpf-upgradeable-loader-accounts.js'; | ||
export * from './config-accounts.js'; | ||
export * from './nonce-accounts.js'; | ||
export * from './rpc-parsed-type.js'; | ||
export * from './stake-accounts.js'; | ||
export * from './sysvar-accounts.js'; | ||
export * from './token-accounts.js'; | ||
export * from './vote-accounts.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,5 @@ export type RpcParsedType<TType extends string, TInfo> = Readonly<{ | ||
}>; | ||
export type RpcParsedInfo<TInfo> = Readonly<{ | ||
info: TInfo; | ||
}>; | ||
//# sourceMappingURL=rpc-parsed-type.d.ts.map |
@@ -5,3 +5,3 @@ import type { Address } from '@solana/addresses'; | ||
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen'; | ||
export type TokenAccount = Readonly<{ | ||
export type JsonParsedTokenAccount = Readonly<{ | ||
mint: Address; | ||
@@ -18,3 +18,3 @@ owner: Address; | ||
}>; | ||
export type MintAccount = Readonly<{ | ||
type JsonParsedMintAccount = Readonly<{ | ||
mintAuthority: Address | null; | ||
@@ -27,3 +27,3 @@ supply: StringifiedBigInt; | ||
}>; | ||
export type MultisigAccount = Readonly<{ | ||
type JsonParsedMultisigAccount = Readonly<{ | ||
numRequiredSigners: number; | ||
@@ -34,4 +34,4 @@ numValidSigners: number; | ||
}>; | ||
export type TokenProgramAccount = RpcParsedType<'account', TokenAccount> | RpcParsedType<'mint', MintAccount> | RpcParsedType<'multisig', MultisigAccount>; | ||
export type JsonParsedTokenProgramAccount = RpcParsedType<'account', JsonParsedTokenAccount> | RpcParsedType<'mint', JsonParsedMintAccount> | RpcParsedType<'multisig', JsonParsedMultisigAccount>; | ||
export {}; | ||
//# sourceMappingURL=token-accounts.d.ts.map |
{ | ||
"name": "@solana/rpc-parsed-types", | ||
"version": "2.0.0-experimental.7aeac5a", | ||
"version": "2.0.0-experimental.7d67615", | ||
"description": "Type definitions for parsed types used in the Solana RPC", | ||
@@ -48,21 +48,2 @@ "exports": { | ||
], | ||
"devDependencies": { | ||
"@solana/eslint-config-solana": "^1.0.2", | ||
"@typescript-eslint/eslint-plugin": "^6.13.2", | ||
"@typescript-eslint/parser": "^6.3.0", | ||
"agadoo": "^3.0.0", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-jest": "^27.4.2", | ||
"eslint-plugin-sort-keys-fix": "^1.1.2", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.1", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.2.2", | ||
"version-from-git": "^1.1.1", | ||
"@solana/addresses": "2.0.0-experimental.7aeac5a", | ||
"@solana/rpc-types": "2.0.0-experimental.7aeac5a", | ||
"test-config": "0.0.0", | ||
"build-scripts": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
}, | ||
"bundlewatch": { | ||
@@ -78,8 +59,9 @@ "defaultCompression": "gzip", | ||
"compile:js": "tsup --config build-scripts/tsup.config.package.ts", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs", | ||
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch", | ||
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs", | ||
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch", | ||
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks", | ||
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl", | ||
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json", | ||
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:treeshakability:browser": "agadoo dist/index.browser.js", | ||
@@ -86,0 +68,0 @@ "test:treeshakability:native": "agadoo dist/index.native.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21865
0
34
224