@solana/rpc-parsed-types
Advanced tools
Comparing version 2.0.0-experimental.98dd0a9 to 2.0.0-experimental.997a7cc
@@ -6,3 +6,2 @@ import { Address } from '@solana/addresses'; | ||
meta: Readonly<{ | ||
rentExemptReserve: StringifiedBigInt; | ||
authorized: Readonly<{ | ||
@@ -13,20 +12,21 @@ staker: Address; | ||
lockup: Readonly<{ | ||
custodian: Address; | ||
epoch: bigint; | ||
unixTimestamp: UnixTimestamp; | ||
epoch: bigint; | ||
custodian: Address; | ||
}>; | ||
rentExemptReserve: StringifiedBigInt; | ||
}>; | ||
stake: Readonly<{ | ||
creditsObserved: bigint; | ||
delegation: Readonly<{ | ||
voter: Address; | ||
stake: StringifiedBigInt; | ||
activationEpoch: StringifiedBigInt; | ||
deactivationEpoch: StringifiedBigInt; | ||
stake: StringifiedBigInt; | ||
voter: Address; | ||
warmupCooldownRate: number; | ||
}>; | ||
creditsObserved: bigint; | ||
}> | null; | ||
}>; | ||
export type JsonParsedStakeProgramAccount = RpcParsedType<'initialized', JsonParsedStakeAccount> | RpcParsedType<'delegated', JsonParsedStakeAccount>; | ||
export type JsonParsedStakeProgramAccount = RpcParsedType<'delegated', JsonParsedStakeAccount> | RpcParsedType<'initialized', JsonParsedStakeAccount>; | ||
export {}; | ||
//# sourceMappingURL=stake-accounts.d.ts.map |
@@ -7,14 +7,14 @@ import type { Blockhash, Epoch, Slot, StringifiedBigInt, UnixTimestamp } from '@solana/rpc-types'; | ||
type JsonParsedClockAccount = Readonly<{ | ||
slot: Slot; | ||
epoch: Epoch; | ||
epochStartTimestamp: UnixTimestamp; | ||
leaderScheduleEpoch: Epoch; | ||
slot: Slot; | ||
unixTimestamp: UnixTimestamp; | ||
}>; | ||
type JsonParsedEpochScheduleAccount = Readonly<{ | ||
firstNormalEpoch: Epoch; | ||
firstNormalSlot: Slot; | ||
leaderScheduleSlotOffset: bigint; | ||
slotsPerEpoch: bigint; | ||
leaderScheduleSlotOffset: bigint; | ||
warmup: boolean; | ||
firstNormalEpoch: Epoch; | ||
firstNormalSlot: Slot; | ||
}>; | ||
@@ -29,5 +29,5 @@ type JsonParsedFeesAccount_DEPRECATED = Readonly<{ | ||
type JsonParsedRentAccount = Readonly<{ | ||
burnPercent: number; | ||
exemptionThreshold: number; | ||
lamportsPerByteYear: StringifiedBigInt; | ||
exemptionThreshold: number; | ||
burnPercent: number; | ||
}>; | ||
@@ -54,8 +54,8 @@ type JsonParsedSlotHashesAccount = Readonly<{ | ||
type JsonParsedEpochRewardsAccount = Readonly<{ | ||
totalRewards: bigint; | ||
distributedRewards: bigint; | ||
distributionCompleteBlockHeight: bigint; | ||
totalRewards: bigint; | ||
}>; | ||
export type JsonParsedSysvarAccount = RpcParsedType<'clock', JsonParsedClockAccount> | RpcParsedType<'epochSchedule', JsonParsedEpochScheduleAccount> | RpcParsedType<'fees', JsonParsedFeesAccount_DEPRECATED> | RpcParsedType<'recentBlockhashes', JsonParsedRecentBlockhashesAccount_DEPRECATED> | RpcParsedType<'rent', JsonParsedRentAccount> | RpcParsedType<'slotHashes', JsonParsedSlotHashesAccount> | RpcParsedType<'slotHistory', JsonParsedSlotHistoryAccount> | RpcParsedType<'stakeHistory', JsonParsedStakeHistoryAccount> | RpcParsedType<'lastRestartSlot', JsonParsedLastRestartSlotAccount> | RpcParsedType<'epochRewards', JsonParsedEpochRewardsAccount>; | ||
export type JsonParsedSysvarAccount = RpcParsedType<'clock', JsonParsedClockAccount> | RpcParsedType<'epochRewards', JsonParsedEpochRewardsAccount> | RpcParsedType<'epochSchedule', JsonParsedEpochScheduleAccount> | RpcParsedType<'fees', JsonParsedFeesAccount_DEPRECATED> | RpcParsedType<'lastRestartSlot', JsonParsedLastRestartSlotAccount> | RpcParsedType<'recentBlockhashes', JsonParsedRecentBlockhashesAccount_DEPRECATED> | RpcParsedType<'rent', JsonParsedRentAccount> | RpcParsedType<'slotHashes', JsonParsedSlotHashesAccount> | RpcParsedType<'slotHistory', JsonParsedSlotHistoryAccount> | RpcParsedType<'stakeHistory', JsonParsedStakeHistoryAccount>; | ||
export {}; | ||
//# sourceMappingURL=sysvar-accounts.d.ts.map |
import type { Address } from '@solana/addresses'; | ||
import type { StringifiedBigInt, TokenAmount } from '@solana/rpc-types'; | ||
import { RpcParsedType } from './rpc-parsed-type.js'; | ||
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen'; | ||
type TokenAccountState = 'frozen' | 'initialized' | 'uninitialized'; | ||
export type JsonParsedTokenAccount = Readonly<{ | ||
closeAuthority?: Address; | ||
delegate?: Address; | ||
delegatedAmount?: TokenAmount; | ||
extensions?: readonly unknown[]; | ||
isNative: boolean; | ||
mint: Address; | ||
owner: Address; | ||
rentExemptReserve?: TokenAmount; | ||
state: TokenAccountState; | ||
tokenAmount: TokenAmount; | ||
delegate?: Address; | ||
state: TokenAccountState; | ||
isNative: boolean; | ||
rentExemptReserve?: TokenAmount; | ||
delegatedAmount?: TokenAmount; | ||
closeAuthority?: Address; | ||
extensions?: readonly unknown[]; | ||
}>; | ||
type JsonParsedMintAccount = Readonly<{ | ||
decimals: number; | ||
extensions?: readonly unknown[]; | ||
freezeAuthority: Address | null; | ||
isInitialized: boolean; | ||
mintAuthority: Address | null; | ||
supply: StringifiedBigInt; | ||
decimals: number; | ||
isInitialized: boolean; | ||
freezeAuthority: Address | null; | ||
extensions?: readonly unknown[]; | ||
}>; | ||
type JsonParsedMultisigAccount = Readonly<{ | ||
isInitialized: boolean; | ||
numRequiredSigners: number; | ||
numValidSigners: number; | ||
isInitialized: boolean; | ||
signers: readonly Address[]; | ||
@@ -30,0 +30,0 @@ }>; |
{ | ||
"name": "@solana/rpc-parsed-types", | ||
"version": "2.0.0-experimental.98dd0a9", | ||
"version": "2.0.0-experimental.997a7cc", | ||
"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.98dd0a9", | ||
"@solana/rpc-types": "2.0.0-development", | ||
"build-scripts": "0.0.0", | ||
"test-config": "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": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
21803
33
222