-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
develop: write smart contracts with conditions that are always true
- Loading branch information
1 parent
f3f5a74
commit 77636d7
Showing
3 changed files
with
207 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use aiken/crypto.{VerificationKeyHash} | ||
use cardano/assets.{AssetName, PolicyId} | ||
|
||
pub type MarketplaceRedeemer { | ||
Sell | ||
Buy | ||
Refund | ||
Order | ||
} | ||
|
||
pub type MarketplaceDatum { | ||
policy_id: PolicyId, | ||
asset_name: AssetName, | ||
seller: VerificationKeyHash, | ||
price: Int, | ||
royalties: Int, | ||
order: Option<Ord>, | ||
} | ||
|
||
pub type Ord { | ||
owner: VerificationKeyHash, | ||
value: Int, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters