StatickeyDerives a state PDA (Program Derived Address) from the program.
The Anchor program instance.
The derived state account's public key.
StaticcreateInitializes the state account.
The Anchor program instance.
A promise that resolves to the state account and the transaction signature.
Set program-wide configurations.
The configuration parameters.
OptionalguardianQueue?: PublicKeyThe guardian queue account.
OptionalnewAuthority?: PublicKeyThe new authority account.
OptionalminQuoteVerifyVotes?: BNThe minimum number of votes required to verify a quote.
OptionalpermitAdvisory?: numberThe permit advisory value.
OptionaldenyAdvisory?: numberThe deny advisory value.
OptionaltestOnlyDisableMrEnclaveCheck?: booleanA flag to disable MrEnclave check for testing purposes.
OptionalsubsidyAmount?: BNOptionalswitchMint?: PublicKeyThe switch mint account.
OptionaladdCostWl?: PublicKeyOptionalrmCostWl?: PublicKeyA promise that resolves to the transaction instruction.
Register a guardian with the global guardian queue.
The parameters object.
The guardian account.
A promise that resolves to the transaction instruction.
Unregister a guardian from the global guardian queue.
The parameters object.
The guardian account.
A promise that resolves to the transaction instruction.
Loads the state data from on chain.
A promise that resolves to the state data.
StaticloadLoads the state data from on chain.
A promise that resolves to the state data.
Abstraction around the Switchboard-On-Demand State account
This account is used to store the state data for a given program.