Add Codama IDL to program binary (#105)

* Add Codama IDL

* Add IDL to program binary

* Update dependency

* Use published crate

---------

Co-authored-by: Hardhat Chad <155858888+HardhatChad@users.noreply.github.com>
This commit is contained in:
Fernando Otero
2024-11-01 22:00:49 +00:00
committed by GitHub
parent 0e1460e2a4
commit 07d8b4cedd
5 changed files with 1800 additions and 0 deletions

View File

@@ -19,8 +19,11 @@ use update::*;
use upgrade::*;
use ore_api::instruction::*;
use solana_include_idl::{include_idl, parse::IdlType};
use steel::*;
// Include the compressed IDL in an ELF section on the program binary.
include_idl!(IdlType::Codama, concat!(env!("OUT_DIR"), "/codama.idl.zip"));
#[allow(deprecated)]
pub fn process_instruction(
program_id: &Pubkey,