Skip to content

Commit

Permalink
miner spend validator done
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed May 8, 2024
1 parent 6c68ab0 commit 667a193
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions validators/tunav2.ak
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type MerkleProofBlock {

type MineAction {
MinePow(ByteArray, Miner, MerkleProofBlock)
Upgrade(OutputReference)
Upgrade
}

type TargetState {
Expand Down Expand Up @@ -614,7 +614,16 @@ validator(tunav2_minting_policy: ByteArray) {
}
}

Upgrade(_ref_input) -> todo
Upgrade -> {
let Transaction { redeemers, .. } = ctx.transaction

expect Some(upgrade_rdmr) =
alist.get_first(redeemers, Mint(tunav2_minting_policy))

expect FinalizeNomination { .. }: TunaAction = upgrade_rdmr

True
}
}
}
}

0 comments on commit 667a193

Please sign in to comment.