-
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.
- Loading branch information
1 parent
7ecc5f6
commit 9229aca
Showing
5 changed files
with
193 additions
and
8 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 |
---|---|---|
|
@@ -4,3 +4,5 @@ artifacts/ | |
build/ | ||
# Aiken's default documentation export | ||
docs/ | ||
|
||
test.json |
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,7 @@ | ||
use aiken/cbor.{serialise} | ||
use aiken_content_ownership/placeholder.{mock_utxo_ref} | ||
|
||
test diag() { | ||
// serialise(mock_utxo_ref(0)) == #"d8799fd8799f58205a077cbcdffb88b104f292aacb9687ce93e2191e103a30a0cc5505c18b719f98ff00ff" | ||
serialise(mock_utxo_ref(1)) == #"d8799fd8799f58205a077cbcdffb88b104f292aacb9687ce93e2191e103a30a0cc5505c18b719f98ff01ff" | ||
} |
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,32 @@ | ||
use aiken/transaction.{NoDatum, Output, OutputReference, TransactionId} | ||
use aiken/transaction/credential.{Address, VerificationKeyCredential} | ||
use aiken/transaction/value.{PolicyId, from_lovelace} | ||
|
||
pub fn mock_policy_id() -> PolicyId { | ||
#"1c1b7afe8affbee1505cf3ec5a58bd2734d4ffdfcc9b9f059625bd76" | ||
} | ||
|
||
pub fn mock_policy_id_2() -> PolicyId { | ||
#"1c1b7afe8affbee1505cf3ec5a58bd2734d4ffdfcc9b9f059625bd77" | ||
} | ||
|
||
pub fn mock_utxo_ref(output_index: Int) -> OutputReference { | ||
OutputReference { | ||
transaction_id: TransactionId( | ||
#"5a077cbcdffb88b104f292aacb9687ce93e2191e103a30a0cc5505c18b719f98", | ||
), | ||
output_index, | ||
} | ||
} | ||
|
||
pub fn mock_output() -> Output { | ||
Output { | ||
address: Address { | ||
payment_credential: VerificationKeyCredential(""), | ||
stake_credential: None, | ||
}, | ||
value: from_lovelace(1000000), | ||
datum: NoDatum, | ||
reference_script: None, | ||
} | ||
} |
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