diff --git a/tests/custom-coder/programs/dex/Cargo.toml b/tests/custom-coder/programs/dex/Cargo.toml new file mode 100644 index 00000000..2861ce32 --- /dev/null +++ b/tests/custom-coder/programs/dex/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "dex" +version = "0.1.0" +description = "Created with Anchor" +edition = "2018" + +[lib] +crate-type = ["cdylib", "lib"] +name = "dex" + +[features] +no-entrypoint = [] +no-idl = [] +no-log-ix-name = [] +cpi = ["no-entrypoint"] +default = [] + +[dependencies] +anchor-lang = "0.20.1" diff --git a/tests/custom-coder/programs/dex/Xargo.toml b/tests/custom-coder/programs/dex/Xargo.toml new file mode 100644 index 00000000..475fb71e --- /dev/null +++ b/tests/custom-coder/programs/dex/Xargo.toml @@ -0,0 +1,2 @@ +[target.bpfel-unknown-unknown.dependencies.std] +features = [] diff --git a/tests/custom-coder/programs/dex/src/lib.rs b/tests/custom-coder/programs/dex/src/lib.rs new file mode 100644 index 00000000..95eb7cf0 --- /dev/null +++ b/tests/custom-coder/programs/dex/src/lib.rs @@ -0,0 +1,17 @@ +use anchor_lang::prelude::*; + +declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); + +// TODO: add a dumy instruction and accounts context to generate the +// the idl for the dex program. + +#[program] +pub mod dex { + use super::*; + pub fn initialize(ctx: Context) -> ProgramResult { + Ok(()) + } +} + +#[derive(Accounts)] +pub struct Initialize {}