Skip to main content

Module interface

Module interface 

Source
Expand description

Cross-program layout/interface pinning helpers.

Structs§

ForeignLens
A verified read-only handle into a foreign account.
ForeignManifest
Opaque witness to a foreign program’s layout ABI.
Interface
Executable program account whose key is one of an interface’s program IDs.
InterfaceAccount
Hopper-layout account owned by one of a declared interface’s programs.
InterfaceMint
Polymorphic SPL Token / Token-2022 mint overlay.
InterfaceTokenAccount
Polymorphic SPL Token / Token-2022 token-account overlay.

Enums§

TokenProgramKind
Which token program owns this account.

Traits§

InterfaceAccountLayout
Hopper layout whose owner may be any program in an interface set.
InterfaceAccountResolve
Runtime resolver for marker interface account layouts.
InterfaceSpec
Compile-time owner/program set for generic interface wrappers.
TransparentAddress
Marker trait for types that are #[repr(transparent)] over [u8; 32].

Functions§

interface_transfer_checked
Polymorphic TransferChecked CPI that dispatches to the program that owns the source token account.
interface_transfer_checked_signed
PDA-signing variant of interface_transfer_checked.