Skip to content

Commit

Permalink
Rename IDL file
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Nov 1, 2024
1 parent 3be1797 commit edc624b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configs/kinobi-asset.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -629,4 +629,4 @@ kinobi.accept(
)
);

writeFileSync(path.join(idlDir, "asset-program.kinobi.json"), kinobi.getJson());
writeFileSync(path.join(idlDir, "asset-program.codama.json"), kinobi.getJson());
File renamed without changes.
8 changes: 4 additions & 4 deletions programs/asset/program/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ fn main() {
let _output = Command::new("pnpm")
.arg("generate:idls")
.output()
.expect("Failed to run shank");
.expect("Failed to run Shank");

let _output = Command::new("pnpm")
.arg("generate:clients")
.output()
.expect("Failed to create the kinobi IDLs");
.expect("Failed to create the Codama IDLs");

// Get the IDL path
let idl_path = PathBuf::from("../../../idls").join("asset-program.kinobi.json");
let idl_path = PathBuf::from("../../../idls").join("asset-program.codama.json");

// Concat output path of compressed IDL
let out_dir = env::var("OUT_DIR").unwrap();
let dest_path = PathBuf::from(out_dir).join("kinobi.idl.zip");
let dest_path = PathBuf::from(out_dir).join("codama.idl.zip");

compress_idl(&idl_path, &dest_path);
}
2 changes: 1 addition & 1 deletion programs/asset/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use include_idl::{include_idl, parse::IdlType};
pub use solana_program;
use solana_security_txt::security_txt;

include_idl!(IdlType::Codama, concat!(env!("OUT_DIR"), "/kinobi.idl.zip"));
include_idl!(IdlType::Codama, concat!(env!("OUT_DIR"), "/codama.idl.zip"));

security_txt! {
// Required fields
Expand Down

0 comments on commit edc624b

Please sign in to comment.