@solana/instructions
Advanced tools
Comparing version 2.1.0-canary-20241128100107 to 2.1.0-canary-20241128134801
import { Address } from '@solana/addresses'; | ||
import { ReadonlyUint8Array } from '@solana/codecs-core'; | ||
import { IAccountLookupMeta, IAccountMeta } from './accounts'; | ||
export interface IInstruction<TProgramAddress extends string = string, TAccounts extends readonly (IAccountLookupMeta | IAccountMeta)[] = readonly (IAccountLookupMeta | IAccountMeta)[]> { | ||
readonly accounts?: TAccounts; | ||
readonly data?: Uint8Array; | ||
readonly data?: ReadonlyUint8Array; | ||
readonly programAddress: Address<TProgramAddress>; | ||
@@ -19,7 +20,7 @@ } | ||
export declare function assertIsInstructionWithAccounts<TAccounts extends readonly (IAccountLookupMeta | IAccountMeta)[] = readonly (IAccountLookupMeta | IAccountMeta)[], TInstruction extends IInstruction = IInstruction>(instruction: TInstruction): asserts instruction is IInstructionWithAccounts<TAccounts> & TInstruction; | ||
export interface IInstructionWithData<TData extends Uint8Array> extends IInstruction { | ||
export interface IInstructionWithData<TData extends ReadonlyUint8Array> extends IInstruction { | ||
readonly data: TData; | ||
} | ||
export declare function isInstructionWithData<TData extends Uint8Array = Uint8Array, TInstruction extends IInstruction = IInstruction>(instruction: TInstruction): instruction is IInstructionWithData<TData> & TInstruction; | ||
export declare function assertIsInstructionWithData<TData extends Uint8Array = Uint8Array, TInstruction extends IInstruction = IInstruction>(instruction: TInstruction): asserts instruction is IInstructionWithData<TData> & TInstruction; | ||
export declare function isInstructionWithData<TData extends ReadonlyUint8Array = ReadonlyUint8Array, TInstruction extends IInstruction = IInstruction>(instruction: TInstruction): instruction is IInstructionWithData<TData> & TInstruction; | ||
export declare function assertIsInstructionWithData<TData extends ReadonlyUint8Array = ReadonlyUint8Array, TInstruction extends IInstruction = IInstruction>(instruction: TInstruction): asserts instruction is IInstructionWithData<TData> & TInstruction; | ||
//# sourceMappingURL=instruction.d.ts.map |
{ | ||
"name": "@solana/instructions", | ||
"version": "2.1.0-canary-20241128100107", | ||
"version": "2.1.0-canary-20241128134801", | ||
"description": "Helpers for creating transaction instructions", | ||
@@ -57,3 +57,4 @@ "exports": { | ||
"dependencies": { | ||
"@solana/errors": "2.1.0-canary-20241128100107" | ||
"@solana/codecs-core": "2.1.0-canary-20241128134801", | ||
"@solana/errors": "2.1.0-canary-20241128134801" | ||
}, | ||
@@ -60,0 +61,0 @@ "peerDependencies": { |
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
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
86704
483
3
+ Added@solana/codecs-core@2.1.0-canary-20241128134801(transitive)
+ Added@solana/errors@2.1.0-canary-20241128134801(transitive)
- Removed@solana/errors@2.1.0-canary-20241128100107(transitive)