feat: output build assets
This commit is contained in:
@@ -1,38 +1,36 @@
|
||||
|
||||
pub type Signer {
|
||||
hash: Int
|
||||
hash: Int,
|
||||
}
|
||||
|
||||
|
||||
pub type ScriptContext {
|
||||
signer: Signer
|
||||
signer: Signer,
|
||||
}
|
||||
|
||||
pub type Redeem {
|
||||
Buy
|
||||
Sell
|
||||
Buy
|
||||
Sell
|
||||
}
|
||||
|
||||
pub type Datum {
|
||||
fin: Int,
|
||||
sc: ScriptContext,
|
||||
rdmr: Redeem,
|
||||
fin: Int,
|
||||
sc: ScriptContext,
|
||||
rdmr: Redeem,
|
||||
}
|
||||
|
||||
pub fn eqInt(a: Int, b: Int) {
|
||||
a == b
|
||||
a == b
|
||||
}
|
||||
|
||||
pub fn eqString(a: ByteArray, b: ByteArray) {
|
||||
a == b
|
||||
a == b
|
||||
}
|
||||
|
||||
pub type Thing {
|
||||
Some
|
||||
None
|
||||
Some
|
||||
None
|
||||
}
|
||||
|
||||
pub type Other {
|
||||
Wow
|
||||
Yes
|
||||
Wow
|
||||
Yes
|
||||
}
|
||||
|
||||
@@ -7,16 +7,17 @@ pub type Redeemer {
|
||||
Sell(Int)
|
||||
}
|
||||
|
||||
|
||||
pub fn spend(datum: sample.Datum, rdmr: Redeemer, ctx: spend.ScriptContext) -> Bool {
|
||||
|
||||
pub fn spend(
|
||||
datum: sample.Datum,
|
||||
rdmr: Redeemer,
|
||||
ctx: spend.ScriptContext,
|
||||
) -> Bool {
|
||||
let y = 2
|
||||
let x = datum.sc.signer
|
||||
let a = datum.sc.signer.hash
|
||||
let b = datum.rdmr
|
||||
|
||||
when b is {
|
||||
sample.Buy -> 1 == 1
|
||||
sample.Sell -> 5 == 1
|
||||
sample.Sell -> 5 == 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user