tests: dex idl generation scaffolding

This commit is contained in:
Armani Ferrante 2022-01-10 10:58:15 -05:00
parent e6208bf241
commit ed2339f6f7
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
3 changed files with 38 additions and 0 deletions

View File

@ -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"

View File

@ -0,0 +1,2 @@
[target.bpfel-unknown-unknown.dependencies.std]
features = []

View File

@ -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<Initialize>) -> ProgramResult {
Ok(())
}
}
#[derive(Accounts)]
pub struct Initialize {}