(re)format aiken sources in the repository.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use aiken/collection/list
|
||||
use cardano/address.{Script, VerificationKey}
|
||||
use cardano/certificate.{
|
||||
AlwaysAbstain, AlwaysNoConfidence, AuthorizeConstitutionalCommitteeProxy,
|
||||
Certificate, DelegateBlockProduction, DelegateBoth, DelegateCredential,
|
||||
@@ -7,7 +8,6 @@ use cardano/certificate.{
|
||||
RetireFromConstitutionalCommittee, RetireStakePool, UnregisterCredential,
|
||||
UnregisterDelegateRepresentative, UpdateDelegateRepresentative,
|
||||
}
|
||||
use cardano/address.{Script, VerificationKey}
|
||||
use cardano/transaction.{Transaction}
|
||||
|
||||
const only0s = #"00000000000000000000000000000000000000000000000000000000"
|
||||
@@ -20,11 +20,7 @@ const only9s =
|
||||
#"9999999999999999999999999999999999999999999999999999999999999999"
|
||||
|
||||
validator purposes {
|
||||
publish(
|
||||
_redeemer: Void,
|
||||
certificate: Certificate,
|
||||
transaction: Transaction,
|
||||
) -> Bool {
|
||||
publish(_redeemer: Void, certificate: Certificate, transaction: Transaction) {
|
||||
assert_script_info(certificate)
|
||||
|
||||
let certificates = transaction.certificates
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use aiken/collection/dict.{Dict}
|
||||
use aiken/collection/list
|
||||
use cardano/assets.{PolicyId, Value}
|
||||
use cardano/address
|
||||
use cardano/assets.{PolicyId, Value}
|
||||
use cardano/transaction.{
|
||||
DatumHash, Input, Mint, NoDatum, Output, OutputReference, ScriptPurpose,
|
||||
Transaction,
|
||||
@@ -128,10 +128,10 @@ fn assert_mint(mint: Value, our_policy_id: PolicyId, other_policy_id: PolicyId)
|
||||
// below is meant to generate a small-enough hash... If this test fails
|
||||
// after some code-gen changes, it's probably because the new hash is
|
||||
// larger.
|
||||
///
|
||||
// How to fix?
|
||||
// Change the traced string down below in hope to get a
|
||||
// smaller hash.
|
||||
///
|
||||
validator test_2 {
|
||||
mint(_tmp2: Void, _policy_id: PolicyId, _transaction: Transaction) {
|
||||
trace @"slfhioer7w8yru"
|
||||
|
||||
@@ -14,11 +14,7 @@ const null32 =
|
||||
#"0000000000000000000000000000000000000000000000000000000000000000"
|
||||
|
||||
validator guardrails {
|
||||
propose(
|
||||
_redeemer: Void,
|
||||
_: ProposalProcedure,
|
||||
transaction: Transaction,
|
||||
) -> Bool {
|
||||
propose(_redeemer: Void, _: ProposalProcedure, transaction: Transaction) {
|
||||
let procedures = transaction.proposal_procedures
|
||||
|
||||
assert_redeemers(transaction.redeemers)
|
||||
|
||||
@@ -24,7 +24,7 @@ validator guardrails {
|
||||
_redeemer: Void,
|
||||
proposal: ProposalProcedure,
|
||||
_transaction: Transaction,
|
||||
) -> Bool {
|
||||
) {
|
||||
expect ProposalProcedure {
|
||||
governance_action: ProtocolParameters {
|
||||
ancestor: None,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use aiken/collection/dict
|
||||
use cardano/assets
|
||||
use cardano/address.{Address, Script}
|
||||
use cardano/assets
|
||||
use cardano/transaction.{
|
||||
InlineDatum, Input, Output, OutputReference, ScriptPurpose, Spend, Transaction,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user