feat: rework how modules are loaded
This commit is contained in:
6
examples/aiken_std/aiken.toml
Normal file
6
examples/aiken_std/aiken.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
name = "aiken_std"
|
||||
version = "0.1.0"
|
||||
licences = ["Apache-2.0"]
|
||||
description = "Aiken contracts"
|
||||
|
||||
[dependencies]
|
||||
8
examples/aiken_std/lib/aiken/context.ak
Normal file
8
examples/aiken_std/lib/aiken/context.ak
Normal file
@@ -0,0 +1,8 @@
|
||||
pub type ScriptContext(purpose) {
|
||||
tx_info: TxInfo,
|
||||
script_purpose: purpose,
|
||||
}
|
||||
|
||||
pub type TxInfo {
|
||||
idk: Int,
|
||||
}
|
||||
3
examples/aiken_std/validators/always_true.ak
Normal file
3
examples/aiken_std/validators/always_true.ak
Normal file
@@ -0,0 +1,3 @@
|
||||
pub fn spend() -> Bool {
|
||||
True
|
||||
}
|
||||
Reference in New Issue
Block a user