Skip to content

Commit

Permalink
Add new contract to test governance
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Jun 30, 2024
1 parent 5406480 commit 377cb12
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 67 deletions.
2 changes: 1 addition & 1 deletion aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ requirements = []
source = "github"

[etags]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1719786715, nanos_since_epoch = 484223000 }, "a8294651f1577c671d580c99c9bc5445ef1fd44e4aa3dde550434a4cbc8d50b6"]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1719790322, nanos_since_epoch = 181253000 }, "a8294651f1577c671d580c99c9bc5445ef1fd44e4aa3dde550434a4cbc8d50b6"]
12 changes: 12 additions & 0 deletions lib/fortuna/types.ak
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use aiken/transaction.{OutputReference}

/// State Data stored on chain.
/// Used by the validator to check the next state.
pub type State {
Expand All @@ -22,3 +24,13 @@ pub type Statev2 {
current_posix_time: Int,
merkle_root: ByteArray,
}

pub type TunaAction {
Genesis
MineTuna(OutputReference, Int)
Redeem
NominateUpgrade(ByteArray, Int)
VotingToken(OutputReference)
BurnToken
FinalizeNomination(OutputReference, OutputReference, Int, Int)
}
Loading

0 comments on commit 377cb12

Please sign in to comment.