feat: start project building

This commit is contained in:
rvcas
2022-10-05 18:57:45 -04:00
committed by Lucas
parent 756e7c7680
commit ff26db2245
11 changed files with 305 additions and 20 deletions

View File

@@ -0,0 +1,17 @@
use aiken/context.{ScriptContext}
pub type Datum {
something: String,
}
pub type Redeemer {
Buy
Sell
}
pub fn validate(datum: Datum, rdmr: Redeemer, ctx: ScriptContext) -> Bool {
when rdmr is {
Buy -> True
Sell -> datum.something == "Aiken"
}
}