import { type AnchorProvider, Program } from '@coral-xyz/anchor'; import { type Connection } from '@solana/web3.js'; import { type SupportedSolanaCCIPVersion } from './versioning.ts'; export declare const getCcipOfframp: ({ ccipVersion, address, provider, }: { ccipVersion: SupportedSolanaCCIPVersion; address: string; provider: AnchorProvider; }) => Program<{ readonly version: "0.1.1"; readonly name: "ccip_offramp"; readonly constants: [{ readonly name: "MAX_ORACLES"; readonly type: { readonly defined: "usize"; }; readonly value: "16"; }]; readonly instructions: [{ readonly name: "initialize"; readonly docs: ["Initialization Flow //", "Initializes the CCIP Offramp, except for the config account (due to stack size limitations).", "", "The initialization of the Offramp is responsibility of Admin, nothing more than calling these", "initialization methods should be done first.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for initialization."]; readonly accounts: [{ readonly name: "referenceAddresses"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "router"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "offrampLookupTable"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "state"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "program"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "programData"; readonly isMut: false; readonly isSigner: false; }]; readonly args: []; }, { readonly name: "initializeConfig"; readonly docs: ["Initializes the CCIP Offramp Config account.", "", "The initialization of the Offramp is responsibility of Admin, nothing more than calling these", "initialization methods should be done first.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for initialization of the config.", "* `svm_chain_selector` - The chain selector for SVM.", "* `enable_execution_after` - The minimum amount of time required between a message has been committed and can be manually executed."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "program"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "programData"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "svmChainSelector"; readonly type: "u64"; }, { readonly name: "enableExecutionAfter"; readonly type: "i64"; }]; }, { readonly name: "typeVersion"; readonly docs: ["Returns the program type (name) and version.", "Used by offchain code to easily determine which program & version is being interacted with.", "", "# Arguments", "* `ctx` - The context"]; readonly accounts: [{ readonly name: "clock"; readonly isMut: false; readonly isSigner: false; }]; readonly args: []; readonly returns: "string"; }, { readonly name: "transferOwnership"; readonly docs: ["Transfers the ownership of the router to a new proposed owner.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the transfer.", "* `proposed_owner` - The public key of the new proposed owner."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "proposedOwner"; readonly type: "publicKey"; }]; }, { readonly name: "acceptOwnership"; readonly docs: ["Accepts the ownership of the router by the proposed owner.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for accepting ownership.", "The new owner must be a signer of the transaction."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: []; }, { readonly name: "setDefaultCodeVersion"; readonly docs: ["Sets the default code version to be used. This is then used by the slim routing layer to determine", "which version of the versioned business logic module (`instructions`) to use. Only the admin may set this.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `code_version` - The new code version to be set as default."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "codeVersion"; readonly type: { readonly defined: "CodeVersion"; }; }]; }, { readonly name: "updateReferenceAddresses"; readonly docs: ["Updates reference addresses in the offramp contract, such as", "the CCIP router, Fee Quoter, and the Offramp Lookup Table.", "Only the Admin may update these addresses.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the reference addresses.", "* `router` - The router address to be set.", "* `fee_quoter` - The fee_quoter address to be set.", "* `offramp_lookup_table` - The offramp_lookup_table address to be set.", "* `rmn_remote` - The rmn_remote address to be set."]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "router"; readonly type: "publicKey"; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; }]; }, { readonly name: "addSourceChain"; readonly docs: ["Adds a new source chain selector with its config to the offramp.", "", "The Admin needs to add any new chain supported.", "When adding a new chain, the Admin needs to specify if it's enabled or not.", "", "# Arguments"]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; readonly docs: ["Adding a chain selector implies initializing the state for a new chain"]; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "newChainSelector"; readonly type: "u64"; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }, { readonly name: "disableSourceChainSelector"; readonly docs: ["Disables the source chain selector.", "", "The Admin is the only one able to disable the chain selector as source. This method is thought of as an emergency kill-switch.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for disabling the chain selector.", "* `source_chain_selector` - The source chain selector to be disabled."]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }]; }, { readonly name: "updateSourceChainConfig"; readonly docs: ["Updates the configuration of the source chain selector.", "", "The Admin is the only one able to update the source chain config.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the chain selector.", "* `source_chain_selector` - The source chain selector to be updated.", "* `source_chain_config` - The new configuration for the source chain."]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }, { readonly name: "updateSvmChainSelector"; readonly docs: ["Updates the SVM chain selector in the offramp configuration.", "", "This method should only be used if there was an error with the initial configuration or if the solana chain selector changes.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `new_chain_selector` - The new chain selector for SVM."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "newChainSelector"; readonly type: "u64"; }]; }, { readonly name: "updateEnableManualExecutionAfter"; readonly docs: ["Updates the minimum amount of time required between a message being committed and when it can be manually executed.", "", "This is part of the OffRamp Configuration for SVM.", "The Admin is the only one able to update this config.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `new_enable_manual_execution_after` - The new minimum amount of time required."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "newEnableManualExecutionAfter"; readonly type: "i64"; }]; }, { readonly name: "setOcrConfig"; readonly docs: ["Sets the OCR configuration.", "Only CCIP Admin can set the OCR configuration.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for setting the OCR configuration.", "* `plugin_type` - The type of OCR plugin [0: Commit, 1: Execution].", "* `config_info` - The OCR configuration information.", "* `signers` - The list of signers.", "* `transmitters` - The list of transmitters."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "state"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "pluginType"; readonly type: { readonly defined: "OcrPluginType"; }; }, { readonly name: "configInfo"; readonly type: { readonly defined: "Ocr3ConfigInfo"; }; }, { readonly name: "signers"; readonly type: { readonly vec: { readonly array: ["u8", 20]; }; }; }, { readonly name: "transmitters"; readonly type: { readonly vec: "publicKey"; }; }]; }, { readonly name: "commit"; readonly docs: ["Off Ramp Flow //", "Commits a report to the router, containing a Merkle Root.", "", "The method name needs to be commit with Anchor encoding.", "", "This function is called by the OffChain when committing one Report to the SVM Router.", "In this Flow only one report is sent, the Commit Report. This is different as EVM does,", "this is because here all the chain state is stored in one account per Merkle Tree Root.", "So, to avoid having to send a dynamic size array of accounts, in this message only one Commit Report Account is sent.", "This message validates the signatures of the report and stores the Merkle Root in the Commit Report Account.", "The Report must contain an interval of messages, and the min of them must be the next sequence number expected.", "The max size of the interval is 64.", "This message emits two events: CommitReportAccepted and Transmitted.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the commit.", "* `report_context_byte_words` - consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number", "* `raw_report` - The serialized commit input report, single merkle root with RMN signatures and price updates", "* `rs` - slice of R components of signatures", "* `ss` - slice of S components of signatures", "* `raw_vs` - array of V components of signatures"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoterAllowedPriceUpdater"; readonly isMut: false; readonly isSigner: false; readonly docs: ["so that it can authorize the call made by this offramp"]; }, { readonly name: "feeQuoterConfig"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "rawReport"; readonly type: "bytes"; }, { readonly name: "rs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "ss"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "rawVs"; readonly type: { readonly array: ["u8", 32]; }; }]; }, { readonly name: "commitPriceOnly"; readonly docs: ["Commits a report to the router, with price updates only.", "", "The method name needs to be commit with Anchor encoding.", "", "This function is called by the OffChain when committing one Report to the SVM Router,", "containing only price updates and no merkle root.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the commit.", "* `report_context_byte_words` - consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number", "* `raw_report` - The serialized commit input report containing the price updates,", "with no merkle root.", "* `rs` - slice of R components of signatures", "* `ss` - slice of S components of signatures", "* `raw_vs` - array of V components of signatures"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoterAllowedPriceUpdater"; readonly isMut: false; readonly isSigner: false; readonly docs: ["so that it can authorize the call made by this offramp"]; }, { readonly name: "feeQuoterConfig"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "rawReport"; readonly type: "bytes"; }, { readonly name: "rs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "ss"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "rawVs"; readonly type: { readonly array: ["u8", 32]; }; }]; }, { readonly name: "execute"; readonly docs: ["Executes a message on the destination chain.", "", "The method name needs to be execute with Anchor encoding.", "", "This function is called by the OffChain when executing one Report to the SVM Router.", "In this Flow only one message is sent, the Execution Report. This is different as EVM does,", "this is because there is no try/catch mechanism to allow batch execution.", "This message validates that the Merkle Tree Proof of the given message is correct and is stored in the Commit Report Account.", "The message must be untouched to be executed.", "This message emits the event ExecutionStateChanged with the new state of the message.", "Finally, executes the CPI instruction to the receiver program in the ccip_receive message.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the execute.", "* `raw_execution_report` - the serialized execution report containing only one message and proofs", "* `report_context_byte_words` - report_context after execution_report to match context for manually execute (proper decoding order)", "* consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "offramp"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "allowedOfframp"; readonly isMut: false; readonly isSigner: false; readonly docs: ["CHECK PDA of the router program verifying the signer is an allowed offramp.", "If PDA does not exist, the router doesn't allow this offramp. This is just used", "so that token pools and receivers can then check that the caller is an actual offramp that", "has been registered in the router as such for that source chain."]; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "rawExecutionReport"; readonly type: "bytes"; }, { readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "tokenIndexes"; readonly type: "bytes"; }]; }, { readonly name: "manuallyExecute"; readonly docs: ["Manually executes a report to the router.", "", "When a message is not being executed, then the user can trigger the execution manually.", "No verification over the transmitter, but the message needs to be in some commit report.", "It validates that the required time has passed since the commit and then executes the report.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the execution.", "* `raw_execution_report` - The serialized execution report containing the message and proofs."]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "offramp"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "allowedOfframp"; readonly isMut: false; readonly isSigner: false; readonly docs: ["CHECK PDA of the router program verifying the signer is an allowed offramp.", "If PDA does not exist, the router doesn't allow this offramp. This is just used", "so that token pools and receivers can then check that the caller is an actual offramp that", "has been registered in the router as such for that source chain."]; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "rawExecutionReport"; readonly type: "bytes"; }, { readonly name: "tokenIndexes"; readonly type: "bytes"; }]; }, { readonly name: "bufferExecutionReport"; readonly docs: ["Initializes and/or inserts a chunk of report data to an execution report buffer.", "", "When execution reports are too large to fit in a single transaction, they can be chopped", "up in chunks first (as a special case, one chunk is also acceptable), and pre-buffered", "via multiple calls to this instruction.", "", "There's no need to pre-initialize the buffer: all chunks can be sent concurrently, and the", "first one to arrive will initialize the buffer.", "", "To benefit from buffering, the eventual call to `execute` or `manually_execute` must", "include an additional `remaining_account` with the PDA derived from", "[\"execution_report_buffer\", , ].", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for buffering.", "* `buffer_id` - An arbitrary buffer id defined by the caller (could be the message_id). Max 32 bytes.", "* `report_length` - Total length in bytes of the execution report.", "* `chunk` - The specific chunk to add to the buffer. Chunk must have a consistent size, except", "the last one in the buffer, which may be smaller.", "* `chunk_index` - The index of this chunk.", "* `num_chunks` - The total number of chunks in the report."]; readonly accounts: [{ readonly name: "executionReportBuffer"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "bufferId"; readonly type: "bytes"; }, { readonly name: "reportLength"; readonly type: "u32"; }, { readonly name: "chunk"; readonly type: "bytes"; }, { readonly name: "chunkIndex"; readonly type: "u8"; }, { readonly name: "numChunks"; readonly type: "u8"; }]; }, { readonly name: "closeExecutionReportBuffer"; readonly docs: ["Closes the execution report buffer to reclaim funds.", "", "Note this is only necessary when aborting a buffered transaction, or when a mistake", "was made when buffering data. The buffer account will otherwise automatically close", "and return funds to the caller whenever buffered execution succeeds."]; readonly accounts: [{ readonly name: "executionReportBuffer"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "bufferId"; readonly type: "bytes"; }]; }, { readonly name: "deriveAccountsExecute"; readonly docs: ["Automatically derives all acounts required to call `ccip_execute`.", "", "This method receives the bare minimum amount of information needed to construct", "the entire account list to execute a transaction, and builds it iteratively", "over the course of multiple calls.", "", "The return type contains:", "", "* `accounts_to_save`: The caller must append these accounts to a list they maintain.", "When complete, this list will contain all accounts needed to call `ccip_execute`.", "* `ask_again_with`: When `next_stage` is not empty, the caller must call `derive_accounts_execute`", "again, including exactly these accounts as the `remaining_accounts`.", "* `lookup_tables_to_save`: The caller must save those LUTs. They can be used for `ccip_execute`.", "* `current_stage`: A string describing the current stage of the derivation process. When the stage", "is \"TokenTransferStaticAccounts//0\", it means the `accounts_to_save` block in this response contains", "all accounts relating to the Nth token being transferred. Use this information to construct", "the `token_indexes` vector that `execute` requires.", "* `next_stage`: If nonempty, this means the instruction must get called again with this value", "as the `stage` argument.", "", "Therefore, and starting with an empty `remaining_accounts` list, the caller must repeteadly", "call `derive_accounts_execute` until `next_stage` is returned empty.", "", "# Arguments", "", "* `ctx`: Context containing only the offramp config.", "* `stage`: Requested derivation stage. Pass \"Start\" the first time, then for each subsequent", "call, pass the value returned in `response.next_stage` until empty.", "* `params`:", "* `execute_caller`: Public key of the account that will sign the call to `ccip_execute`.", "* `message_accounts`: If the transaction involves messaging, the message accounts.", "* `source_chain_selector`: CCIP chain selector for the source chain.", "* `mints_of_transferred_token`: List of all token mints for tokens being transferred (i.e.", "the entries in `report.message.token_amounts.destination_address`.)", "* `merkle_root`: Merkle root as per the commit report.", "* `buffer_id`: If the execution will be buffered, the buffer id that will be used by the", "`execute_caller`: If the execution will not be buffered, this should be empty.", "* `token_receiver`: Receiver of token transfers, if any (i.e. report.message.token_receiver)"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "params"; readonly type: { readonly defined: "DeriveAccountsExecuteParams"; }; }, { readonly name: "stage"; readonly type: "string"; }]; readonly returns: { readonly defined: "DeriveAccountsResponse"; }; }, { readonly name: "closeCommitReportAccount"; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "wsolMint"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeTokenReceiver"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "tokenProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "root"; readonly type: "bytes"; }]; }]; readonly accounts: [{ readonly name: "config"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "defaultCodeVersion"; readonly type: "u8"; }, { readonly name: "padding0"; readonly type: { readonly array: ["u8", 6]; }; }, { readonly name: "svmChainSelector"; readonly type: "u64"; }, { readonly name: "enableManualExecutionAfter"; readonly type: "i64"; }, { readonly name: "padding1"; readonly type: { readonly array: ["u8", 8]; }; }, { readonly name: "owner"; readonly type: "publicKey"; }, { readonly name: "proposedOwner"; readonly type: "publicKey"; }, { readonly name: "padding2"; readonly type: { readonly array: ["u8", 8]; }; }, { readonly name: "ocr3"; readonly type: { readonly array: [{ readonly defined: "Ocr3Config"; }, 2]; }; }]; }; }, { readonly name: "referenceAddresses"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "router"; readonly type: "publicKey"; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; }]; }; }, { readonly name: "globalState"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "latestPriceSequenceNumber"; readonly type: "u64"; }]; }; }, { readonly name: "executionReportBuffer"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chunkBitmap"; readonly type: "u64"; }, { readonly name: "numChunks"; readonly type: "u8"; }, { readonly name: "chunkLength"; readonly type: "u32"; }, { readonly name: "data"; readonly type: "bytes"; }]; }; }, { readonly name: "sourceChain"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chainSelector"; readonly type: "u64"; }, { readonly name: "state"; readonly type: { readonly defined: "SourceChainState"; }; }, { readonly name: "config"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }; }, { readonly name: "commitReport"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chainSelector"; readonly type: "u64"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "timestamp"; readonly type: "i64"; }, { readonly name: "minMsgNr"; readonly type: "u64"; }, { readonly name: "maxMsgNr"; readonly type: "u64"; }, { readonly name: "executionStates"; readonly type: "u128"; }]; }; }]; readonly types: [{ readonly name: "CommitInput"; readonly docs: ["Input from an offchain node, containing the Merkle root and interval for", "the source chain, and optionally some price updates alongside it"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "priceUpdates"; readonly type: { readonly defined: "PriceUpdates"; }; }, { readonly name: "merkleRoot"; readonly type: { readonly option: { readonly defined: "MerkleRoot"; }; }; }, { readonly name: "rmnSignatures"; readonly type: { readonly vec: { readonly array: ["u8", 64]; }; }; }]; }; }, { readonly name: "PriceUpdates"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "tokenPriceUpdates"; readonly type: { readonly vec: { readonly defined: "TokenPriceUpdate"; }; }; }, { readonly name: "gasPriceUpdates"; readonly type: { readonly vec: { readonly defined: "GasPriceUpdate"; }; }; }]; }; }, { readonly name: "TokenPriceUpdate"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceToken"; readonly type: "publicKey"; }, { readonly name: "usdPerToken"; readonly type: { readonly array: ["u8", 28]; }; }]; }; }, { readonly name: "GasPriceUpdate"; readonly docs: ["Gas price for a given chain in USD; its value may contain tightly packed fields."]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "destChainSelector"; readonly type: "u64"; }, { readonly name: "usdPerUnitGas"; readonly type: { readonly array: ["u8", 28]; }; }]; }; }, { readonly name: "MerkleRoot"; readonly docs: ["Struct to hold a merkle root and an interval for a source chain"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "onRampAddress"; readonly type: "bytes"; }, { readonly name: "minSeqNr"; readonly type: "u64"; }, { readonly name: "maxSeqNr"; readonly type: "u64"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }]; }; }, { readonly name: "ConfigOcrPluginType"; readonly docs: ["It's not possible to store enums in zero_copy accounts, so we wrap the discriminant", "in a struct to store in config."]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "discriminant"; readonly type: "u8"; }]; }; }, { readonly name: "ExecutionReportSingleChain"; readonly docs: ["Report that is submitted by the execution DON at the execution phase. (including chain selector data)"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "message"; readonly type: { readonly defined: "Any2SVMRampMessage"; }; }, { readonly name: "offchainTokenData"; readonly type: { readonly vec: "bytes"; }; }, { readonly name: "proofs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }]; }; }, { readonly name: "RampMessageHeader"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "messageId"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "destChainSelector"; readonly type: "u64"; }, { readonly name: "sequenceNumber"; readonly type: "u64"; }, { readonly name: "nonce"; readonly type: "u64"; }]; }; }, { readonly name: "Any2SVMRampExtraArgs"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "computeUnits"; readonly type: "u32"; }, { readonly name: "isWritableBitmap"; readonly type: "u64"; }]; }; }, { readonly name: "Any2SVMRampMessage"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "header"; readonly type: { readonly defined: "RampMessageHeader"; }; }, { readonly name: "sender"; readonly type: "bytes"; }, { readonly name: "data"; readonly type: "bytes"; }, { readonly name: "tokenReceiver"; readonly type: "publicKey"; }, { readonly name: "tokenAmounts"; readonly type: { readonly vec: { readonly defined: "Any2SVMTokenTransfer"; }; }; }, { readonly name: "extraArgs"; readonly type: { readonly defined: "Any2SVMRampExtraArgs"; }; }]; }; }, { readonly name: "Any2SVMTokenTransfer"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourcePoolAddress"; readonly type: "bytes"; }, { readonly name: "destTokenAddress"; readonly type: "publicKey"; }, { readonly name: "destGasAmount"; readonly type: "u32"; }, { readonly name: "extraData"; readonly type: "bytes"; }, { readonly name: "amount"; readonly type: { readonly defined: "CrossChainAmount"; }; }]; }; }, { readonly name: "SVMTokenAmount"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "token"; readonly type: "publicKey"; }, { readonly name: "amount"; readonly type: "u64"; }]; }; }, { readonly name: "CrossChainAmount"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "leBytes"; readonly type: { readonly array: ["u8", 32]; }; }]; }; }, { readonly name: "DeriveAccountsExecuteParams"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "executeCaller"; readonly type: "publicKey"; }, { readonly name: "tokenReceiver"; readonly type: "publicKey"; }, { readonly name: "tokenTransfers"; readonly type: { readonly vec: { readonly defined: "TokenTransferAndOffchainData"; }; }; }, { readonly name: "messageAccounts"; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "originalSender"; readonly type: "bytes"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "bufferId"; readonly type: "bytes"; }]; }; }, { readonly name: "TokenTransferAndOffchainData"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "transfer"; readonly type: { readonly defined: "Any2SVMTokenTransfer"; }; }, { readonly name: "data"; readonly type: "bytes"; }]; }; }, { readonly name: "DeriveAccountsResponse"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "askAgainWith"; readonly docs: ["If this vector is not empty, you must call the `derive_` method again including", "exactly these accounts as the `remaining_accounts` field."]; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "accountsToSave"; readonly docs: ["You must append these accounts at the end of a separate list. When `next_stage`", "is finally empty, this separate list will contain all the accounts to use for the", "instruction of interest."]; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "lookUpTablesToSave"; readonly docs: ["Append these look up tables at the end of a list. It will contain all LUTs", "that the instruction of interest can use."]; readonly type: { readonly vec: "publicKey"; }; }, { readonly name: "currentStage"; readonly docs: ["Identifies the derivation stage."]; readonly type: "string"; }, { readonly name: "nextStage"; readonly docs: ["Identifies the next derivation stage. If empty, the derivation is complete."]; readonly type: "string"; }]; }; }, { readonly name: "CcipAccountMeta"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "pubkey"; readonly type: "publicKey"; }, { readonly name: "isSigner"; readonly type: "bool"; }, { readonly name: "isWritable"; readonly type: "bool"; }]; }; }, { readonly name: "Ocr3ConfigInfo"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "f"; readonly type: "u8"; }, { readonly name: "n"; readonly type: "u8"; }, { readonly name: "isSignatureVerificationEnabled"; readonly type: "u8"; }]; }; }, { readonly name: "Ocr3Config"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "pluginType"; readonly type: { readonly defined: "ConfigOcrPluginType"; }; }, { readonly name: "configInfo"; readonly type: { readonly defined: "Ocr3ConfigInfo"; }; }, { readonly name: "signers"; readonly type: { readonly array: [{ readonly array: ["u8", 20]; }, 16]; }; }, { readonly name: "transmitters"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 16]; }; }]; }; }, { readonly name: "SourceChainConfig"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "isEnabled"; readonly type: "bool"; }, { readonly name: "isRmnVerificationDisabled"; readonly type: "bool"; }, { readonly name: "laneCodeVersion"; readonly type: { readonly defined: "CodeVersion"; }; }, { readonly name: "onRamp"; readonly type: { readonly defined: "OnRampAddress"; }; }]; }; }, { readonly name: "OnRampAddress"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "bytes"; readonly type: { readonly array: ["u8", 64]; }; }, { readonly name: "len"; readonly type: "u32"; }]; }; }, { readonly name: "SourceChainState"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "minSeqNr"; readonly type: "u64"; }]; }; }, { readonly name: "OcrPluginType"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Commit"; }, { readonly name: "Execution"; }]; }; }, { readonly name: "DeriveAccountsExecuteStage"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Start"; }, { readonly name: "FinishMainAccountList"; }, { readonly name: "RetrieveTokenLUTs"; }, { readonly name: "RetrievePoolPrograms"; }, { readonly name: "TokenTransferStaticAccounts"; readonly fields: [{ readonly name: "token"; readonly type: "u32"; }, { readonly name: "page"; readonly type: "u32"; }]; }, { readonly name: "NestedTokenDerive"; readonly fields: [{ readonly name: "token"; readonly type: "u32"; }, { readonly name: "tokenSubstage"; readonly type: "string"; }]; }]; }; }, { readonly name: "MessageExecutionState"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Untouched"; }, { readonly name: "InProgress"; }, { readonly name: "Success"; }, { readonly name: "Failure"; }]; }; }, { readonly name: "CodeVersion"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Default"; }, { readonly name: "V1"; }]; }; }]; readonly events: [{ readonly name: "SourceChainConfigUpdated"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; readonly index: false; }]; }, { readonly name: "SourceChainAdded"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; readonly index: false; }]; }, { readonly name: "OwnershipTransferRequested"; readonly fields: [{ readonly name: "from"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "to"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "OwnershipTransferred"; readonly fields: [{ readonly name: "from"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "to"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "ConfigSet"; readonly fields: [{ readonly name: "svmChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "enableManualExecutionAfter"; readonly type: "i64"; readonly index: false; }]; }, { readonly name: "ReferenceAddressesSet"; readonly fields: [{ readonly name: "router"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "CommitReportAccepted"; readonly fields: [{ readonly name: "merkleRoot"; readonly type: { readonly option: { readonly defined: "MerkleRoot"; }; }; readonly index: false; }, { readonly name: "priceUpdates"; readonly type: { readonly defined: "PriceUpdates"; }; readonly index: false; }]; }, { readonly name: "CommitReportPDAClosed"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }]; }, { readonly name: "SkippedAlreadyExecutedMessage"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }]; }, { readonly name: "ExecutionStateChanged"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }, { readonly name: "messageId"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "messageHash"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "state"; readonly type: { readonly defined: "MessageExecutionState"; }; readonly index: false; }]; }, { readonly name: "ConfigSet"; readonly fields: [{ readonly name: "ocrPluginType"; readonly type: { readonly defined: "OcrPluginType"; }; readonly index: false; }, { readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "signers"; readonly type: { readonly vec: { readonly array: ["u8", 20]; }; }; readonly index: false; }, { readonly name: "transmitters"; readonly type: { readonly vec: "publicKey"; }; readonly index: false; }, { readonly name: "f"; readonly type: "u8"; readonly index: false; }]; }, { readonly name: "Transmitted"; readonly fields: [{ readonly name: "ocrPluginType"; readonly type: { readonly defined: "OcrPluginType"; }; readonly index: false; }, { readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }]; }]; readonly errors: [{ readonly code: 9000; readonly name: "InvalidSequenceInterval"; readonly msg: "The given sequence interval is invalid"; }, { readonly code: 9001; readonly name: "RootNotCommitted"; readonly msg: "The given Merkle Root is missing"; }, { readonly code: 9002; readonly name: "InvalidRMNRemoteAddress"; readonly msg: "Invalid RMN Remote Address"; }, { readonly code: 9003; readonly name: "ExistingMerkleRoot"; readonly msg: "The given Merkle Root is already committed"; }, { readonly code: 9004; readonly name: "Unauthorized"; readonly msg: "The signer is unauthorized"; }, { readonly code: 9005; readonly name: "InvalidNonce"; readonly msg: "Invalid Nonce"; }, { readonly code: 9006; readonly name: "InvalidInputsMissingWritable"; readonly msg: "Account should be writable"; }, { readonly code: 9007; readonly name: "OnrampNotConfigured"; readonly msg: "Onramp was not configured"; }, { readonly code: 9008; readonly name: "FailedToDeserializeReport"; readonly msg: "Failed to deserialize report"; }, { readonly code: 9009; readonly name: "InvalidPluginType"; readonly msg: "Invalid plugin type"; }, { readonly code: 9010; readonly name: "InvalidVersion"; readonly msg: "Invalid version of the onchain state"; }, { readonly code: 9011; readonly name: "MissingExpectedPriceUpdates"; readonly msg: "Commit report is missing expected price updates"; }, { readonly code: 9012; readonly name: "MissingExpectedMerkleRoot"; readonly msg: "Commit report is missing expected merkle root"; }, { readonly code: 9013; readonly name: "UnexpectedMerkleRoot"; readonly msg: "Commit report contains unexpected merkle root"; }, { readonly code: 9014; readonly name: "RedundantOwnerProposal"; readonly msg: "Proposed owner is the current owner"; }, { readonly code: 9015; readonly name: "UnsupportedSourceChainSelector"; readonly msg: "Source chain selector not supported"; }, { readonly code: 9016; readonly name: "UnsupportedDestinationChainSelector"; readonly msg: "Destination chain selector not supported"; }, { readonly code: 9017; readonly name: "InvalidProof"; readonly msg: "Invalid Proof for Merkle Root"; }, { readonly code: 9018; readonly name: "InvalidMessage"; readonly msg: "Invalid message format"; }, { readonly code: 9019; readonly name: "ReachedMaxSequenceNumber"; readonly msg: "Reached max sequence number"; }, { readonly code: 9020; readonly name: "ManualExecutionNotAllowed"; readonly msg: "Manual execution not allowed"; }, { readonly code: 9021; readonly name: "InvalidInputsNumberOfAccounts"; readonly msg: "Number of accounts is invalid"; }, { readonly code: 9022; readonly name: "InvalidInputsGlobalStateAccount"; readonly msg: "Invalid global state account address"; }, { readonly code: 9023; readonly name: "InvalidInputsTokenIndices"; readonly msg: "Invalid pool account account indices"; }, { readonly code: 9024; readonly name: "InvalidInputsPoolAccounts"; readonly msg: "Invalid pool accounts"; }, { readonly code: 9025; readonly name: "InvalidInputsTokenAccounts"; readonly msg: "Invalid token accounts"; }, { readonly code: 9026; readonly name: "InvalidInputsSysvarAccount"; readonly msg: "Invalid sysvar instructions account"; }, { readonly code: 9027; readonly name: "InvalidInputsFeeQuoterAccount"; readonly msg: "Invalid fee quoter account"; }, { readonly code: 9028; readonly name: "InvalidInputsAllowedOfframpAccount"; readonly msg: "Invalid offramp authorization account"; }, { readonly code: 9029; readonly name: "InvalidInputsTokenAdminRegistryAccounts"; readonly msg: "Invalid Token Admin Registry account"; }, { readonly code: 9030; readonly name: "InvalidInputsLookupTableAccounts"; readonly msg: "Invalid LookupTable account"; }, { readonly code: 9031; readonly name: "InvalidInputsLookupTableAccountWritable"; readonly msg: "Invalid LookupTable account writable access"; }, { readonly code: 9032; readonly name: "OfframpReleaseMintBalanceMismatch"; readonly msg: "Release or mint balance mismatch"; }, { readonly code: 9033; readonly name: "OfframpInvalidDataLength"; readonly msg: "Invalid data length"; }, { readonly code: 9034; readonly name: "StaleCommitReport"; readonly msg: "Stale commit report"; }, { readonly code: 9035; readonly name: "InvalidWritabilityBitmap"; readonly msg: "Invalid writability bitmap"; }, { readonly code: 9036; readonly name: "InvalidCodeVersion"; readonly msg: "Invalid code version"; }, { readonly code: 9037; readonly name: "Ocr3InvalidConfigFMustBePositive"; readonly msg: "Invalid config: F must be positive"; }, { readonly code: 9038; readonly name: "Ocr3InvalidConfigTooManyTransmitters"; readonly msg: "Invalid config: Too many transmitters"; }, { readonly code: 9039; readonly name: "Ocr3InvalidConfigNoTransmitters"; readonly msg: "Invalid config: No transmitters"; }, { readonly code: 9040; readonly name: "Ocr3InvalidConfigTooManySigners"; readonly msg: "Invalid config: Too many signers"; }, { readonly code: 9041; readonly name: "Ocr3InvalidConfigFIsTooHigh"; readonly msg: "Invalid config: F is too high"; }, { readonly code: 9042; readonly name: "Ocr3InvalidConfigRepeatedOracle"; readonly msg: "Invalid config: Repeated oracle address"; }, { readonly code: 9043; readonly name: "Ocr3WrongMessageLength"; readonly msg: "Wrong message length"; }, { readonly code: 9044; readonly name: "Ocr3ConfigDigestMismatch"; readonly msg: "Config digest mismatch"; }, { readonly code: 9045; readonly name: "Ocr3WrongNumberOfSignatures"; readonly msg: "Wrong number signatures"; }, { readonly code: 9046; readonly name: "Ocr3UnauthorizedTransmitter"; readonly msg: "Unauthorized transmitter"; }, { readonly code: 9047; readonly name: "Ocr3UnauthorizedSigner"; readonly msg: "Unauthorized signer"; }, { readonly code: 9048; readonly name: "Ocr3NonUniqueSignatures"; readonly msg: "Non unique signatures"; }, { readonly code: 9049; readonly name: "Ocr3OracleCannotBeZeroAddress"; readonly msg: "Oracle cannot be zero address"; }, { readonly code: 9050; readonly name: "Ocr3StaticConfigCannotBeChanged"; readonly msg: "Static config cannot be changed"; }, { readonly code: 9051; readonly name: "Ocr3InvalidPluginType"; readonly msg: "Incorrect plugin type"; }, { readonly code: 9052; readonly name: "Ocr3InvalidSignature"; readonly msg: "Invalid signature"; }, { readonly code: 9053; readonly name: "Ocr3SignaturesOutOfRegistration"; readonly msg: "Signatures out of registration"; }, { readonly code: 9054; readonly name: "InvalidOnrampAddress"; readonly msg: "Invalid onramp address"; }, { readonly code: 9055; readonly name: "InvalidInputsExternalExecutionSignerAccount"; readonly msg: "Invalid external execution signer account"; }, { readonly code: 9056; readonly name: "CommitReportHasPendingMessages"; readonly msg: "Commit report has pending messages"; }, { readonly code: 9057; readonly name: "ExecutionReportBufferAlreadyContainsChunk"; readonly msg: "The execution report buffer already contains that chunk"; }, { readonly code: 9058; readonly name: "ExecutionReportBufferAlreadyInitialized"; readonly msg: "The execution report buffer is already initialized"; }, { readonly code: 9059; readonly name: "ExecutionReportBufferInvalidLength"; readonly msg: "Invalid length for execution report buffer"; }, { readonly code: 9060; readonly name: "ExecutionReportBufferInvalidChunkIndex"; readonly msg: "Chunk lies outside the execution report buffer"; }, { readonly code: 9061; readonly name: "ExecutionReportBufferInvalidChunkNumber"; readonly msg: "Total number of chunks is not consistent"; }, { readonly code: 9062; readonly name: "ExecutionReportBufferChunkSizeTooSmall"; readonly msg: "Chunk size is too small"; }, { readonly code: 9063; readonly name: "ExecutionReportBufferInvalidChunkSize"; readonly msg: "Invalid chunk size"; }, { readonly code: 9064; readonly name: "ExecutionReportBufferInvalidIdSize"; readonly msg: "Invalid ID size for buffer"; }, { readonly code: 9065; readonly name: "ExecutionReportBufferIncomplete"; readonly msg: "Execution report buffer is not complete: chunks are missing"; }, { readonly code: 9066; readonly name: "ExecutionReportUnavailable"; readonly msg: "Execution report wasn't provided either directly or via buffer"; }, { readonly code: 9067; readonly name: "InvalidAccountListForPdaDerivation"; readonly msg: "Invalid account list for PDA derivation"; }, { readonly code: 9068; readonly name: "InvalidDerivationStage"; readonly msg: "Unexpected account derivation stage"; }, { readonly code: 9069; readonly name: "InvalidTokenPoolAccountDerivationResponse"; readonly msg: "Token pool returned an unexpected derivation response"; }, { readonly code: 9070; readonly name: "AccountDerivationResponseTooLarge"; readonly msg: "Can't fit account derivation response."; }, { readonly code: 9071; readonly name: "DefaultOwnerProposal"; readonly msg: "Proposed owner is the default pubkey"; }]; }>; export type OfframpProgram = Awaited>; export declare const getCcipOfframpReadOnly: ({ ccipVersion, address, connection, }: { ccipVersion: SupportedSolanaCCIPVersion; address: string; connection: Connection; }) => Program<{ readonly version: "0.1.1"; readonly name: "ccip_offramp"; readonly constants: [{ readonly name: "MAX_ORACLES"; readonly type: { readonly defined: "usize"; }; readonly value: "16"; }]; readonly instructions: [{ readonly name: "initialize"; readonly docs: ["Initialization Flow //", "Initializes the CCIP Offramp, except for the config account (due to stack size limitations).", "", "The initialization of the Offramp is responsibility of Admin, nothing more than calling these", "initialization methods should be done first.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for initialization."]; readonly accounts: [{ readonly name: "referenceAddresses"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "router"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "offrampLookupTable"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "state"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "program"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "programData"; readonly isMut: false; readonly isSigner: false; }]; readonly args: []; }, { readonly name: "initializeConfig"; readonly docs: ["Initializes the CCIP Offramp Config account.", "", "The initialization of the Offramp is responsibility of Admin, nothing more than calling these", "initialization methods should be done first.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for initialization of the config.", "* `svm_chain_selector` - The chain selector for SVM.", "* `enable_execution_after` - The minimum amount of time required between a message has been committed and can be manually executed."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "program"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "programData"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "svmChainSelector"; readonly type: "u64"; }, { readonly name: "enableExecutionAfter"; readonly type: "i64"; }]; }, { readonly name: "typeVersion"; readonly docs: ["Returns the program type (name) and version.", "Used by offchain code to easily determine which program & version is being interacted with.", "", "# Arguments", "* `ctx` - The context"]; readonly accounts: [{ readonly name: "clock"; readonly isMut: false; readonly isSigner: false; }]; readonly args: []; readonly returns: "string"; }, { readonly name: "transferOwnership"; readonly docs: ["Transfers the ownership of the router to a new proposed owner.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the transfer.", "* `proposed_owner` - The public key of the new proposed owner."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "proposedOwner"; readonly type: "publicKey"; }]; }, { readonly name: "acceptOwnership"; readonly docs: ["Accepts the ownership of the router by the proposed owner.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for accepting ownership.", "The new owner must be a signer of the transaction."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: []; }, { readonly name: "setDefaultCodeVersion"; readonly docs: ["Sets the default code version to be used. This is then used by the slim routing layer to determine", "which version of the versioned business logic module (`instructions`) to use. Only the admin may set this.", "", "Shared func signature with other programs", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `code_version` - The new code version to be set as default."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "codeVersion"; readonly type: { readonly defined: "CodeVersion"; }; }]; }, { readonly name: "updateReferenceAddresses"; readonly docs: ["Updates reference addresses in the offramp contract, such as", "the CCIP router, Fee Quoter, and the Offramp Lookup Table.", "Only the Admin may update these addresses.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the reference addresses.", "* `router` - The router address to be set.", "* `fee_quoter` - The fee_quoter address to be set.", "* `offramp_lookup_table` - The offramp_lookup_table address to be set.", "* `rmn_remote` - The rmn_remote address to be set."]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "router"; readonly type: "publicKey"; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; }]; }, { readonly name: "addSourceChain"; readonly docs: ["Adds a new source chain selector with its config to the offramp.", "", "The Admin needs to add any new chain supported.", "When adding a new chain, the Admin needs to specify if it's enabled or not.", "", "# Arguments"]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; readonly docs: ["Adding a chain selector implies initializing the state for a new chain"]; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "newChainSelector"; readonly type: "u64"; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }, { readonly name: "disableSourceChainSelector"; readonly docs: ["Disables the source chain selector.", "", "The Admin is the only one able to disable the chain selector as source. This method is thought of as an emergency kill-switch.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for disabling the chain selector.", "* `source_chain_selector` - The source chain selector to be disabled."]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }]; }, { readonly name: "updateSourceChainConfig"; readonly docs: ["Updates the configuration of the source chain selector.", "", "The Admin is the only one able to update the source chain config.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the chain selector.", "* `source_chain_selector` - The source chain selector to be updated.", "* `source_chain_config` - The new configuration for the source chain."]; readonly accounts: [{ readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }, { readonly name: "updateSvmChainSelector"; readonly docs: ["Updates the SVM chain selector in the offramp configuration.", "", "This method should only be used if there was an error with the initial configuration or if the solana chain selector changes.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `new_chain_selector` - The new chain selector for SVM."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "newChainSelector"; readonly type: "u64"; }]; }, { readonly name: "updateEnableManualExecutionAfter"; readonly docs: ["Updates the minimum amount of time required between a message being committed and when it can be manually executed.", "", "This is part of the OffRamp Configuration for SVM.", "The Admin is the only one able to update this config.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for updating the configuration.", "* `new_enable_manual_execution_after` - The new minimum amount of time required."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "newEnableManualExecutionAfter"; readonly type: "i64"; }]; }, { readonly name: "setOcrConfig"; readonly docs: ["Sets the OCR configuration.", "Only CCIP Admin can set the OCR configuration.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for setting the OCR configuration.", "* `plugin_type` - The type of OCR plugin [0: Commit, 1: Execution].", "* `config_info` - The OCR configuration information.", "* `signers` - The list of signers.", "* `transmitters` - The list of transmitters."]; readonly accounts: [{ readonly name: "config"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "state"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: false; readonly isSigner: true; }]; readonly args: [{ readonly name: "pluginType"; readonly type: { readonly defined: "OcrPluginType"; }; }, { readonly name: "configInfo"; readonly type: { readonly defined: "Ocr3ConfigInfo"; }; }, { readonly name: "signers"; readonly type: { readonly vec: { readonly array: ["u8", 20]; }; }; }, { readonly name: "transmitters"; readonly type: { readonly vec: "publicKey"; }; }]; }, { readonly name: "commit"; readonly docs: ["Off Ramp Flow //", "Commits a report to the router, containing a Merkle Root.", "", "The method name needs to be commit with Anchor encoding.", "", "This function is called by the OffChain when committing one Report to the SVM Router.", "In this Flow only one report is sent, the Commit Report. This is different as EVM does,", "this is because here all the chain state is stored in one account per Merkle Tree Root.", "So, to avoid having to send a dynamic size array of accounts, in this message only one Commit Report Account is sent.", "This message validates the signatures of the report and stores the Merkle Root in the Commit Report Account.", "The Report must contain an interval of messages, and the min of them must be the next sequence number expected.", "The max size of the interval is 64.", "This message emits two events: CommitReportAccepted and Transmitted.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the commit.", "* `report_context_byte_words` - consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number", "* `raw_report` - The serialized commit input report, single merkle root with RMN signatures and price updates", "* `rs` - slice of R components of signatures", "* `ss` - slice of S components of signatures", "* `raw_vs` - array of V components of signatures"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoterAllowedPriceUpdater"; readonly isMut: false; readonly isSigner: false; readonly docs: ["so that it can authorize the call made by this offramp"]; }, { readonly name: "feeQuoterConfig"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "rawReport"; readonly type: "bytes"; }, { readonly name: "rs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "ss"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "rawVs"; readonly type: { readonly array: ["u8", 32]; }; }]; }, { readonly name: "commitPriceOnly"; readonly docs: ["Commits a report to the router, with price updates only.", "", "The method name needs to be commit with Anchor encoding.", "", "This function is called by the OffChain when committing one Report to the SVM Router,", "containing only price updates and no merkle root.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the commit.", "* `report_context_byte_words` - consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number", "* `raw_report` - The serialized commit input report containing the price updates,", "with no merkle root.", "* `rs` - slice of R components of signatures", "* `ss` - slice of S components of signatures", "* `raw_vs` - array of V components of signatures"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoter"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeQuoterAllowedPriceUpdater"; readonly isMut: false; readonly isSigner: false; readonly docs: ["so that it can authorize the call made by this offramp"]; }, { readonly name: "feeQuoterConfig"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "rawReport"; readonly type: "bytes"; }, { readonly name: "rs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "ss"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }, { readonly name: "rawVs"; readonly type: { readonly array: ["u8", 32]; }; }]; }, { readonly name: "execute"; readonly docs: ["Executes a message on the destination chain.", "", "The method name needs to be execute with Anchor encoding.", "", "This function is called by the OffChain when executing one Report to the SVM Router.", "In this Flow only one message is sent, the Execution Report. This is different as EVM does,", "this is because there is no try/catch mechanism to allow batch execution.", "This message validates that the Merkle Tree Proof of the given message is correct and is stored in the Commit Report Account.", "The message must be untouched to be executed.", "This message emits the event ExecutionStateChanged with the new state of the message.", "Finally, executes the CPI instruction to the receiver program in the ccip_receive message.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the execute.", "* `raw_execution_report` - the serialized execution report containing only one message and proofs", "* `report_context_byte_words` - report_context after execution_report to match context for manually execute (proper decoding order)", "* consists of:", "* report_context_byte_words[0]: ConfigDigest", "* report_context_byte_words[1]: 24 byte padding, 8 byte sequence number"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "offramp"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "allowedOfframp"; readonly isMut: false; readonly isSigner: false; readonly docs: ["CHECK PDA of the router program verifying the signer is an allowed offramp.", "If PDA does not exist, the router doesn't allow this offramp. This is just used", "so that token pools and receivers can then check that the caller is an actual offramp that", "has been registered in the router as such for that source chain."]; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "rawExecutionReport"; readonly type: "bytes"; }, { readonly name: "reportContextByteWords"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 2]; }; }, { readonly name: "tokenIndexes"; readonly type: "bytes"; }]; }, { readonly name: "manuallyExecute"; readonly docs: ["Manually executes a report to the router.", "", "When a message is not being executed, then the user can trigger the execution manually.", "No verification over the transmitter, but the message needs to be in some commit report.", "It validates that the required time has passed since the commit and then executes the report.", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for the execution.", "* `raw_execution_report` - The serialized execution report containing the message and proofs."]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sourceChain"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "offramp"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "allowedOfframp"; readonly isMut: false; readonly isSigner: false; readonly docs: ["CHECK PDA of the router program verifying the signer is an allowed offramp.", "If PDA does not exist, the router doesn't allow this offramp. This is just used", "so that token pools and receivers can then check that the caller is an actual offramp that", "has been registered in the router as such for that source chain."]; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "sysvarInstructions"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemote"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteCurses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "rmnRemoteConfig"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "rawExecutionReport"; readonly type: "bytes"; }, { readonly name: "tokenIndexes"; readonly type: "bytes"; }]; }, { readonly name: "bufferExecutionReport"; readonly docs: ["Initializes and/or inserts a chunk of report data to an execution report buffer.", "", "When execution reports are too large to fit in a single transaction, they can be chopped", "up in chunks first (as a special case, one chunk is also acceptable), and pre-buffered", "via multiple calls to this instruction.", "", "There's no need to pre-initialize the buffer: all chunks can be sent concurrently, and the", "first one to arrive will initialize the buffer.", "", "To benefit from buffering, the eventual call to `execute` or `manually_execute` must", "include an additional `remaining_account` with the PDA derived from", "[\"execution_report_buffer\", , ].", "", "# Arguments", "", "* `ctx` - The context containing the accounts required for buffering.", "* `buffer_id` - An arbitrary buffer id defined by the caller (could be the message_id). Max 32 bytes.", "* `report_length` - Total length in bytes of the execution report.", "* `chunk` - The specific chunk to add to the buffer. Chunk must have a consistent size, except", "the last one in the buffer, which may be smaller.", "* `chunk_index` - The index of this chunk.", "* `num_chunks` - The total number of chunks in the report."]; readonly accounts: [{ readonly name: "executionReportBuffer"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "bufferId"; readonly type: "bytes"; }, { readonly name: "reportLength"; readonly type: "u32"; }, { readonly name: "chunk"; readonly type: "bytes"; }, { readonly name: "chunkIndex"; readonly type: "u8"; }, { readonly name: "numChunks"; readonly type: "u8"; }]; }, { readonly name: "closeExecutionReportBuffer"; readonly docs: ["Closes the execution report buffer to reclaim funds.", "", "Note this is only necessary when aborting a buffered transaction, or when a mistake", "was made when buffering data. The buffer account will otherwise automatically close", "and return funds to the caller whenever buffered execution succeeds."]; readonly accounts: [{ readonly name: "executionReportBuffer"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "authority"; readonly isMut: true; readonly isSigner: true; }, { readonly name: "systemProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "bufferId"; readonly type: "bytes"; }]; }, { readonly name: "deriveAccountsExecute"; readonly docs: ["Automatically derives all acounts required to call `ccip_execute`.", "", "This method receives the bare minimum amount of information needed to construct", "the entire account list to execute a transaction, and builds it iteratively", "over the course of multiple calls.", "", "The return type contains:", "", "* `accounts_to_save`: The caller must append these accounts to a list they maintain.", "When complete, this list will contain all accounts needed to call `ccip_execute`.", "* `ask_again_with`: When `next_stage` is not empty, the caller must call `derive_accounts_execute`", "again, including exactly these accounts as the `remaining_accounts`.", "* `lookup_tables_to_save`: The caller must save those LUTs. They can be used for `ccip_execute`.", "* `current_stage`: A string describing the current stage of the derivation process. When the stage", "is \"TokenTransferStaticAccounts//0\", it means the `accounts_to_save` block in this response contains", "all accounts relating to the Nth token being transferred. Use this information to construct", "the `token_indexes` vector that `execute` requires.", "* `next_stage`: If nonempty, this means the instruction must get called again with this value", "as the `stage` argument.", "", "Therefore, and starting with an empty `remaining_accounts` list, the caller must repeteadly", "call `derive_accounts_execute` until `next_stage` is returned empty.", "", "# Arguments", "", "* `ctx`: Context containing only the offramp config.", "* `stage`: Requested derivation stage. Pass \"Start\" the first time, then for each subsequent", "call, pass the value returned in `response.next_stage` until empty.", "* `params`:", "* `execute_caller`: Public key of the account that will sign the call to `ccip_execute`.", "* `message_accounts`: If the transaction involves messaging, the message accounts.", "* `source_chain_selector`: CCIP chain selector for the source chain.", "* `mints_of_transferred_token`: List of all token mints for tokens being transferred (i.e.", "the entries in `report.message.token_amounts.destination_address`.)", "* `merkle_root`: Merkle root as per the commit report.", "* `buffer_id`: If the execution will be buffered, the buffer id that will be used by the", "`execute_caller`: If the execution will not be buffered, this should be empty.", "* `token_receiver`: Receiver of token transfers, if any (i.e. report.message.token_receiver)"]; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "params"; readonly type: { readonly defined: "DeriveAccountsExecuteParams"; }; }, { readonly name: "stage"; readonly type: "string"; }]; readonly returns: { readonly defined: "DeriveAccountsResponse"; }; }, { readonly name: "closeCommitReportAccount"; readonly accounts: [{ readonly name: "config"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "commitReport"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "referenceAddresses"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "wsolMint"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "feeTokenReceiver"; readonly isMut: true; readonly isSigner: false; }, { readonly name: "feeBillingSigner"; readonly isMut: false; readonly isSigner: false; }, { readonly name: "tokenProgram"; readonly isMut: false; readonly isSigner: false; }]; readonly args: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "root"; readonly type: "bytes"; }]; }]; readonly accounts: [{ readonly name: "config"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "defaultCodeVersion"; readonly type: "u8"; }, { readonly name: "padding0"; readonly type: { readonly array: ["u8", 6]; }; }, { readonly name: "svmChainSelector"; readonly type: "u64"; }, { readonly name: "enableManualExecutionAfter"; readonly type: "i64"; }, { readonly name: "padding1"; readonly type: { readonly array: ["u8", 8]; }; }, { readonly name: "owner"; readonly type: "publicKey"; }, { readonly name: "proposedOwner"; readonly type: "publicKey"; }, { readonly name: "padding2"; readonly type: { readonly array: ["u8", 8]; }; }, { readonly name: "ocr3"; readonly type: { readonly array: [{ readonly defined: "Ocr3Config"; }, 2]; }; }]; }; }, { readonly name: "referenceAddresses"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "router"; readonly type: "publicKey"; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; }]; }; }, { readonly name: "globalState"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "latestPriceSequenceNumber"; readonly type: "u64"; }]; }; }, { readonly name: "executionReportBuffer"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chunkBitmap"; readonly type: "u64"; }, { readonly name: "numChunks"; readonly type: "u8"; }, { readonly name: "chunkLength"; readonly type: "u32"; }, { readonly name: "data"; readonly type: "bytes"; }]; }; }, { readonly name: "sourceChain"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chainSelector"; readonly type: "u64"; }, { readonly name: "state"; readonly type: { readonly defined: "SourceChainState"; }; }, { readonly name: "config"; readonly type: { readonly defined: "SourceChainConfig"; }; }]; }; }, { readonly name: "commitReport"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "version"; readonly type: "u8"; }, { readonly name: "chainSelector"; readonly type: "u64"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "timestamp"; readonly type: "i64"; }, { readonly name: "minMsgNr"; readonly type: "u64"; }, { readonly name: "maxMsgNr"; readonly type: "u64"; }, { readonly name: "executionStates"; readonly type: "u128"; }]; }; }]; readonly types: [{ readonly name: "CommitInput"; readonly docs: ["Input from an offchain node, containing the Merkle root and interval for", "the source chain, and optionally some price updates alongside it"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "priceUpdates"; readonly type: { readonly defined: "PriceUpdates"; }; }, { readonly name: "merkleRoot"; readonly type: { readonly option: { readonly defined: "MerkleRoot"; }; }; }, { readonly name: "rmnSignatures"; readonly type: { readonly vec: { readonly array: ["u8", 64]; }; }; }]; }; }, { readonly name: "PriceUpdates"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "tokenPriceUpdates"; readonly type: { readonly vec: { readonly defined: "TokenPriceUpdate"; }; }; }, { readonly name: "gasPriceUpdates"; readonly type: { readonly vec: { readonly defined: "GasPriceUpdate"; }; }; }]; }; }, { readonly name: "TokenPriceUpdate"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceToken"; readonly type: "publicKey"; }, { readonly name: "usdPerToken"; readonly type: { readonly array: ["u8", 28]; }; }]; }; }, { readonly name: "GasPriceUpdate"; readonly docs: ["Gas price for a given chain in USD; its value may contain tightly packed fields."]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "destChainSelector"; readonly type: "u64"; }, { readonly name: "usdPerUnitGas"; readonly type: { readonly array: ["u8", 28]; }; }]; }; }, { readonly name: "MerkleRoot"; readonly docs: ["Struct to hold a merkle root and an interval for a source chain"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "onRampAddress"; readonly type: "bytes"; }, { readonly name: "minSeqNr"; readonly type: "u64"; }, { readonly name: "maxSeqNr"; readonly type: "u64"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }]; }; }, { readonly name: "ConfigOcrPluginType"; readonly docs: ["It's not possible to store enums in zero_copy accounts, so we wrap the discriminant", "in a struct to store in config."]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "discriminant"; readonly type: "u8"; }]; }; }, { readonly name: "ExecutionReportSingleChain"; readonly docs: ["Report that is submitted by the execution DON at the execution phase. (including chain selector data)"]; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "message"; readonly type: { readonly defined: "Any2SVMRampMessage"; }; }, { readonly name: "offchainTokenData"; readonly type: { readonly vec: "bytes"; }; }, { readonly name: "proofs"; readonly type: { readonly vec: { readonly array: ["u8", 32]; }; }; }]; }; }, { readonly name: "RampMessageHeader"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "messageId"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "destChainSelector"; readonly type: "u64"; }, { readonly name: "sequenceNumber"; readonly type: "u64"; }, { readonly name: "nonce"; readonly type: "u64"; }]; }; }, { readonly name: "Any2SVMRampExtraArgs"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "computeUnits"; readonly type: "u32"; }, { readonly name: "isWritableBitmap"; readonly type: "u64"; }]; }; }, { readonly name: "Any2SVMRampMessage"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "header"; readonly type: { readonly defined: "RampMessageHeader"; }; }, { readonly name: "sender"; readonly type: "bytes"; }, { readonly name: "data"; readonly type: "bytes"; }, { readonly name: "tokenReceiver"; readonly type: "publicKey"; }, { readonly name: "tokenAmounts"; readonly type: { readonly vec: { readonly defined: "Any2SVMTokenTransfer"; }; }; }, { readonly name: "extraArgs"; readonly type: { readonly defined: "Any2SVMRampExtraArgs"; }; }]; }; }, { readonly name: "Any2SVMTokenTransfer"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "sourcePoolAddress"; readonly type: "bytes"; }, { readonly name: "destTokenAddress"; readonly type: "publicKey"; }, { readonly name: "destGasAmount"; readonly type: "u32"; }, { readonly name: "extraData"; readonly type: "bytes"; }, { readonly name: "amount"; readonly type: { readonly defined: "CrossChainAmount"; }; }]; }; }, { readonly name: "SVMTokenAmount"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "token"; readonly type: "publicKey"; }, { readonly name: "amount"; readonly type: "u64"; }]; }; }, { readonly name: "CrossChainAmount"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "leBytes"; readonly type: { readonly array: ["u8", 32]; }; }]; }; }, { readonly name: "DeriveAccountsExecuteParams"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "executeCaller"; readonly type: "publicKey"; }, { readonly name: "tokenReceiver"; readonly type: "publicKey"; }, { readonly name: "tokenTransfers"; readonly type: { readonly vec: { readonly defined: "TokenTransferAndOffchainData"; }; }; }, { readonly name: "messageAccounts"; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "sourceChainSelector"; readonly type: "u64"; }, { readonly name: "originalSender"; readonly type: "bytes"; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "bufferId"; readonly type: "bytes"; }]; }; }, { readonly name: "TokenTransferAndOffchainData"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "transfer"; readonly type: { readonly defined: "Any2SVMTokenTransfer"; }; }, { readonly name: "data"; readonly type: "bytes"; }]; }; }, { readonly name: "DeriveAccountsResponse"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "askAgainWith"; readonly docs: ["If this vector is not empty, you must call the `derive_` method again including", "exactly these accounts as the `remaining_accounts` field."]; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "accountsToSave"; readonly docs: ["You must append these accounts at the end of a separate list. When `next_stage`", "is finally empty, this separate list will contain all the accounts to use for the", "instruction of interest."]; readonly type: { readonly vec: { readonly defined: "CcipAccountMeta"; }; }; }, { readonly name: "lookUpTablesToSave"; readonly docs: ["Append these look up tables at the end of a list. It will contain all LUTs", "that the instruction of interest can use."]; readonly type: { readonly vec: "publicKey"; }; }, { readonly name: "currentStage"; readonly docs: ["Identifies the derivation stage."]; readonly type: "string"; }, { readonly name: "nextStage"; readonly docs: ["Identifies the next derivation stage. If empty, the derivation is complete."]; readonly type: "string"; }]; }; }, { readonly name: "CcipAccountMeta"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "pubkey"; readonly type: "publicKey"; }, { readonly name: "isSigner"; readonly type: "bool"; }, { readonly name: "isWritable"; readonly type: "bool"; }]; }; }, { readonly name: "Ocr3ConfigInfo"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; }, { readonly name: "f"; readonly type: "u8"; }, { readonly name: "n"; readonly type: "u8"; }, { readonly name: "isSignatureVerificationEnabled"; readonly type: "u8"; }]; }; }, { readonly name: "Ocr3Config"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "pluginType"; readonly type: { readonly defined: "ConfigOcrPluginType"; }; }, { readonly name: "configInfo"; readonly type: { readonly defined: "Ocr3ConfigInfo"; }; }, { readonly name: "signers"; readonly type: { readonly array: [{ readonly array: ["u8", 20]; }, 16]; }; }, { readonly name: "transmitters"; readonly type: { readonly array: [{ readonly array: ["u8", 32]; }, 16]; }; }]; }; }, { readonly name: "SourceChainConfig"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "isEnabled"; readonly type: "bool"; }, { readonly name: "isRmnVerificationDisabled"; readonly type: "bool"; }, { readonly name: "laneCodeVersion"; readonly type: { readonly defined: "CodeVersion"; }; }, { readonly name: "onRamp"; readonly type: { readonly defined: "OnRampAddress"; }; }]; }; }, { readonly name: "OnRampAddress"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "bytes"; readonly type: { readonly array: ["u8", 64]; }; }, { readonly name: "len"; readonly type: "u32"; }]; }; }, { readonly name: "SourceChainState"; readonly type: { readonly kind: "struct"; readonly fields: [{ readonly name: "minSeqNr"; readonly type: "u64"; }]; }; }, { readonly name: "OcrPluginType"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Commit"; }, { readonly name: "Execution"; }]; }; }, { readonly name: "DeriveAccountsExecuteStage"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Start"; }, { readonly name: "FinishMainAccountList"; }, { readonly name: "RetrieveTokenLUTs"; }, { readonly name: "RetrievePoolPrograms"; }, { readonly name: "TokenTransferStaticAccounts"; readonly fields: [{ readonly name: "token"; readonly type: "u32"; }, { readonly name: "page"; readonly type: "u32"; }]; }, { readonly name: "NestedTokenDerive"; readonly fields: [{ readonly name: "token"; readonly type: "u32"; }, { readonly name: "tokenSubstage"; readonly type: "string"; }]; }]; }; }, { readonly name: "MessageExecutionState"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Untouched"; }, { readonly name: "InProgress"; }, { readonly name: "Success"; }, { readonly name: "Failure"; }]; }; }, { readonly name: "CodeVersion"; readonly type: { readonly kind: "enum"; readonly variants: [{ readonly name: "Default"; }, { readonly name: "V1"; }]; }; }]; readonly events: [{ readonly name: "SourceChainConfigUpdated"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; readonly index: false; }]; }, { readonly name: "SourceChainAdded"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sourceChainConfig"; readonly type: { readonly defined: "SourceChainConfig"; }; readonly index: false; }]; }, { readonly name: "OwnershipTransferRequested"; readonly fields: [{ readonly name: "from"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "to"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "OwnershipTransferred"; readonly fields: [{ readonly name: "from"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "to"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "ConfigSet"; readonly fields: [{ readonly name: "svmChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "enableManualExecutionAfter"; readonly type: "i64"; readonly index: false; }]; }, { readonly name: "ReferenceAddressesSet"; readonly fields: [{ readonly name: "router"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "feeQuoter"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "offrampLookupTable"; readonly type: "publicKey"; readonly index: false; }, { readonly name: "rmnRemote"; readonly type: "publicKey"; readonly index: false; }]; }, { readonly name: "CommitReportAccepted"; readonly fields: [{ readonly name: "merkleRoot"; readonly type: { readonly option: { readonly defined: "MerkleRoot"; }; }; readonly index: false; }, { readonly name: "priceUpdates"; readonly type: { readonly defined: "PriceUpdates"; }; readonly index: false; }]; }, { readonly name: "CommitReportPDAClosed"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "merkleRoot"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }]; }, { readonly name: "SkippedAlreadyExecutedMessage"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }]; }, { readonly name: "ExecutionStateChanged"; readonly fields: [{ readonly name: "sourceChainSelector"; readonly type: "u64"; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }, { readonly name: "messageId"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "messageHash"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "state"; readonly type: { readonly defined: "MessageExecutionState"; }; readonly index: false; }]; }, { readonly name: "ConfigSet"; readonly fields: [{ readonly name: "ocrPluginType"; readonly type: { readonly defined: "OcrPluginType"; }; readonly index: false; }, { readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "signers"; readonly type: { readonly vec: { readonly array: ["u8", 20]; }; }; readonly index: false; }, { readonly name: "transmitters"; readonly type: { readonly vec: "publicKey"; }; readonly index: false; }, { readonly name: "f"; readonly type: "u8"; readonly index: false; }]; }, { readonly name: "Transmitted"; readonly fields: [{ readonly name: "ocrPluginType"; readonly type: { readonly defined: "OcrPluginType"; }; readonly index: false; }, { readonly name: "configDigest"; readonly type: { readonly array: ["u8", 32]; }; readonly index: false; }, { readonly name: "sequenceNumber"; readonly type: "u64"; readonly index: false; }]; }]; readonly errors: [{ readonly code: 9000; readonly name: "InvalidSequenceInterval"; readonly msg: "The given sequence interval is invalid"; }, { readonly code: 9001; readonly name: "RootNotCommitted"; readonly msg: "The given Merkle Root is missing"; }, { readonly code: 9002; readonly name: "InvalidRMNRemoteAddress"; readonly msg: "Invalid RMN Remote Address"; }, { readonly code: 9003; readonly name: "ExistingMerkleRoot"; readonly msg: "The given Merkle Root is already committed"; }, { readonly code: 9004; readonly name: "Unauthorized"; readonly msg: "The signer is unauthorized"; }, { readonly code: 9005; readonly name: "InvalidNonce"; readonly msg: "Invalid Nonce"; }, { readonly code: 9006; readonly name: "InvalidInputsMissingWritable"; readonly msg: "Account should be writable"; }, { readonly code: 9007; readonly name: "OnrampNotConfigured"; readonly msg: "Onramp was not configured"; }, { readonly code: 9008; readonly name: "FailedToDeserializeReport"; readonly msg: "Failed to deserialize report"; }, { readonly code: 9009; readonly name: "InvalidPluginType"; readonly msg: "Invalid plugin type"; }, { readonly code: 9010; readonly name: "InvalidVersion"; readonly msg: "Invalid version of the onchain state"; }, { readonly code: 9011; readonly name: "MissingExpectedPriceUpdates"; readonly msg: "Commit report is missing expected price updates"; }, { readonly code: 9012; readonly name: "MissingExpectedMerkleRoot"; readonly msg: "Commit report is missing expected merkle root"; }, { readonly code: 9013; readonly name: "UnexpectedMerkleRoot"; readonly msg: "Commit report contains unexpected merkle root"; }, { readonly code: 9014; readonly name: "RedundantOwnerProposal"; readonly msg: "Proposed owner is the current owner"; }, { readonly code: 9015; readonly name: "UnsupportedSourceChainSelector"; readonly msg: "Source chain selector not supported"; }, { readonly code: 9016; readonly name: "UnsupportedDestinationChainSelector"; readonly msg: "Destination chain selector not supported"; }, { readonly code: 9017; readonly name: "InvalidProof"; readonly msg: "Invalid Proof for Merkle Root"; }, { readonly code: 9018; readonly name: "InvalidMessage"; readonly msg: "Invalid message format"; }, { readonly code: 9019; readonly name: "ReachedMaxSequenceNumber"; readonly msg: "Reached max sequence number"; }, { readonly code: 9020; readonly name: "ManualExecutionNotAllowed"; readonly msg: "Manual execution not allowed"; }, { readonly code: 9021; readonly name: "InvalidInputsNumberOfAccounts"; readonly msg: "Number of accounts is invalid"; }, { readonly code: 9022; readonly name: "InvalidInputsGlobalStateAccount"; readonly msg: "Invalid global state account address"; }, { readonly code: 9023; readonly name: "InvalidInputsTokenIndices"; readonly msg: "Invalid pool account account indices"; }, { readonly code: 9024; readonly name: "InvalidInputsPoolAccounts"; readonly msg: "Invalid pool accounts"; }, { readonly code: 9025; readonly name: "InvalidInputsTokenAccounts"; readonly msg: "Invalid token accounts"; }, { readonly code: 9026; readonly name: "InvalidInputsSysvarAccount"; readonly msg: "Invalid sysvar instructions account"; }, { readonly code: 9027; readonly name: "InvalidInputsFeeQuoterAccount"; readonly msg: "Invalid fee quoter account"; }, { readonly code: 9028; readonly name: "InvalidInputsAllowedOfframpAccount"; readonly msg: "Invalid offramp authorization account"; }, { readonly code: 9029; readonly name: "InvalidInputsTokenAdminRegistryAccounts"; readonly msg: "Invalid Token Admin Registry account"; }, { readonly code: 9030; readonly name: "InvalidInputsLookupTableAccounts"; readonly msg: "Invalid LookupTable account"; }, { readonly code: 9031; readonly name: "InvalidInputsLookupTableAccountWritable"; readonly msg: "Invalid LookupTable account writable access"; }, { readonly code: 9032; readonly name: "OfframpReleaseMintBalanceMismatch"; readonly msg: "Release or mint balance mismatch"; }, { readonly code: 9033; readonly name: "OfframpInvalidDataLength"; readonly msg: "Invalid data length"; }, { readonly code: 9034; readonly name: "StaleCommitReport"; readonly msg: "Stale commit report"; }, { readonly code: 9035; readonly name: "InvalidWritabilityBitmap"; readonly msg: "Invalid writability bitmap"; }, { readonly code: 9036; readonly name: "InvalidCodeVersion"; readonly msg: "Invalid code version"; }, { readonly code: 9037; readonly name: "Ocr3InvalidConfigFMustBePositive"; readonly msg: "Invalid config: F must be positive"; }, { readonly code: 9038; readonly name: "Ocr3InvalidConfigTooManyTransmitters"; readonly msg: "Invalid config: Too many transmitters"; }, { readonly code: 9039; readonly name: "Ocr3InvalidConfigNoTransmitters"; readonly msg: "Invalid config: No transmitters"; }, { readonly code: 9040; readonly name: "Ocr3InvalidConfigTooManySigners"; readonly msg: "Invalid config: Too many signers"; }, { readonly code: 9041; readonly name: "Ocr3InvalidConfigFIsTooHigh"; readonly msg: "Invalid config: F is too high"; }, { readonly code: 9042; readonly name: "Ocr3InvalidConfigRepeatedOracle"; readonly msg: "Invalid config: Repeated oracle address"; }, { readonly code: 9043; readonly name: "Ocr3WrongMessageLength"; readonly msg: "Wrong message length"; }, { readonly code: 9044; readonly name: "Ocr3ConfigDigestMismatch"; readonly msg: "Config digest mismatch"; }, { readonly code: 9045; readonly name: "Ocr3WrongNumberOfSignatures"; readonly msg: "Wrong number signatures"; }, { readonly code: 9046; readonly name: "Ocr3UnauthorizedTransmitter"; readonly msg: "Unauthorized transmitter"; }, { readonly code: 9047; readonly name: "Ocr3UnauthorizedSigner"; readonly msg: "Unauthorized signer"; }, { readonly code: 9048; readonly name: "Ocr3NonUniqueSignatures"; readonly msg: "Non unique signatures"; }, { readonly code: 9049; readonly name: "Ocr3OracleCannotBeZeroAddress"; readonly msg: "Oracle cannot be zero address"; }, { readonly code: 9050; readonly name: "Ocr3StaticConfigCannotBeChanged"; readonly msg: "Static config cannot be changed"; }, { readonly code: 9051; readonly name: "Ocr3InvalidPluginType"; readonly msg: "Incorrect plugin type"; }, { readonly code: 9052; readonly name: "Ocr3InvalidSignature"; readonly msg: "Invalid signature"; }, { readonly code: 9053; readonly name: "Ocr3SignaturesOutOfRegistration"; readonly msg: "Signatures out of registration"; }, { readonly code: 9054; readonly name: "InvalidOnrampAddress"; readonly msg: "Invalid onramp address"; }, { readonly code: 9055; readonly name: "InvalidInputsExternalExecutionSignerAccount"; readonly msg: "Invalid external execution signer account"; }, { readonly code: 9056; readonly name: "CommitReportHasPendingMessages"; readonly msg: "Commit report has pending messages"; }, { readonly code: 9057; readonly name: "ExecutionReportBufferAlreadyContainsChunk"; readonly msg: "The execution report buffer already contains that chunk"; }, { readonly code: 9058; readonly name: "ExecutionReportBufferAlreadyInitialized"; readonly msg: "The execution report buffer is already initialized"; }, { readonly code: 9059; readonly name: "ExecutionReportBufferInvalidLength"; readonly msg: "Invalid length for execution report buffer"; }, { readonly code: 9060; readonly name: "ExecutionReportBufferInvalidChunkIndex"; readonly msg: "Chunk lies outside the execution report buffer"; }, { readonly code: 9061; readonly name: "ExecutionReportBufferInvalidChunkNumber"; readonly msg: "Total number of chunks is not consistent"; }, { readonly code: 9062; readonly name: "ExecutionReportBufferChunkSizeTooSmall"; readonly msg: "Chunk size is too small"; }, { readonly code: 9063; readonly name: "ExecutionReportBufferInvalidChunkSize"; readonly msg: "Invalid chunk size"; }, { readonly code: 9064; readonly name: "ExecutionReportBufferInvalidIdSize"; readonly msg: "Invalid ID size for buffer"; }, { readonly code: 9065; readonly name: "ExecutionReportBufferIncomplete"; readonly msg: "Execution report buffer is not complete: chunks are missing"; }, { readonly code: 9066; readonly name: "ExecutionReportUnavailable"; readonly msg: "Execution report wasn't provided either directly or via buffer"; }, { readonly code: 9067; readonly name: "InvalidAccountListForPdaDerivation"; readonly msg: "Invalid account list for PDA derivation"; }, { readonly code: 9068; readonly name: "InvalidDerivationStage"; readonly msg: "Unexpected account derivation stage"; }, { readonly code: 9069; readonly name: "InvalidTokenPoolAccountDerivationResponse"; readonly msg: "Token pool returned an unexpected derivation response"; }, { readonly code: 9070; readonly name: "AccountDerivationResponseTooLarge"; readonly msg: "Can't fit account derivation response."; }, { readonly code: 9071; readonly name: "DefaultOwnerProposal"; readonly msg: "Proposed owner is the default pubkey"; }]; }>; export type OfframpProgramReadOnly = Awaited>; //# sourceMappingURL=getCcipOfframp.d.ts.map