@solana/rpc-parsed-types
Advanced tools
Comparing version 2.0.0-experimental.62b6bd6 to 2.0.0-experimental.7aeac5a
@@ -0,2 +1,5 @@ | ||
export * from './address-lookup-table-accounts.js'; | ||
export * from './bpf-upgradeable-loader-accounts.js'; | ||
export * from './config-accounts.js'; | ||
export * from './token-accounts.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Address } from '@solana/addresses'; | ||
import type { TokenAmount } from '@solana/rpc-types'; | ||
import type { StringifiedBigInt, TokenAmount } from '@solana/rpc-types'; | ||
import { RpcParsedType } from './rpc-parsed-type.js'; | ||
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen'; | ||
@@ -14,5 +15,20 @@ export type TokenAccount = Readonly<{ | ||
closeAuthority?: Address; | ||
extensions?: unknown[]; | ||
extensions?: readonly unknown[]; | ||
}>; | ||
export type MintAccount = Readonly<{ | ||
mintAuthority: Address | null; | ||
supply: StringifiedBigInt; | ||
decimals: number; | ||
isInitialized: boolean; | ||
freezeAuthority: Address | null; | ||
extensions?: readonly unknown[]; | ||
}>; | ||
export type MultisigAccount = Readonly<{ | ||
numRequiredSigners: number; | ||
numValidSigners: number; | ||
isInitialized: boolean; | ||
signers: readonly Address[]; | ||
}>; | ||
export type TokenProgramAccount = RpcParsedType<'account', TokenAccount> | RpcParsedType<'mint', MintAccount> | RpcParsedType<'multisig', MultisigAccount>; | ||
export {}; | ||
//# sourceMappingURL=token-accounts.d.ts.map |
{ | ||
"name": "@solana/rpc-parsed-types", | ||
"version": "2.0.0-experimental.62b6bd6", | ||
"version": "2.0.0-experimental.7aeac5a", | ||
"description": "Type definitions for parsed types used in the Solana RPC", | ||
@@ -61,6 +61,6 @@ "exports": { | ||
"version-from-git": "^1.1.1", | ||
"@solana/addresses": "2.0.0-development", | ||
"@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", | ||
"@solana/rpc-types": "2.0.0-development", | ||
"test-config": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
@@ -67,0 +67,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12428
26
86