seahorse-dev 0.1.1

Write Anchor-compatible Solana programs in Python
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod ast;
pub mod build;
pub mod builtin;
pub mod check;
pub mod namespace;
pub mod sign;

use crate::core::{preprocess as pre, util::*};

pub fn compile(preprocessed: pre::ModuleRegistry) -> Result<build::BuildOutput, CoreError> {
    let namespaced = namespace::namespace(preprocessed)?;
    let signed = sign::sign(namespaced)?;
    let checked = check::check(signed)?;
    let built = build::build(checked)?;

    return Ok(built);
}