Skip to content

Commit

Permalink
Merge pull request #6 from deltadefi-protocol/plutus-v3
Browse files Browse the repository at this point in the history
comment out parts causing scripts to fail
  • Loading branch information
HinsonSIDAN authored Sep 10, 2024
2 parents eba83e6 + 7845fbf commit 9bdc603
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ requirements = []
source = "github"

[etags]
"aiken-lang/stdlib@v2" = [{ secs_since_epoch = 1725888494, nanos_since_epoch = 181679000 }, "d79382d2b6ecb3aee9b0755c31d8a5bbafe88a7b3706d7fb8a52fd4d05818501"]
"aiken-lang/stdlib@v2" = [{ secs_since_epoch = 1725953256, nanos_since_epoch = 502699000 }, "d79382d2b6ecb3aee9b0755c31d8a5bbafe88a7b3706d7fb8a52fd4d05818501"]
2 changes: 1 addition & 1 deletion plutus.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
{
"title": "account/user_unlock.account_user_unlock.publish",
"redeemer": {
"title": "redeemer",
"title": "_redeemer",
"schema": {
"$ref": "#/definitions/Data"
}
Expand Down
8 changes: 6 additions & 2 deletions validators/account/user_unlock.ak
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use aiken_virtual_dex/types.{AccountOracleDatum}
use cardano/address.{Credential}
use cardano/assets.{PolicyId}
use cardano/certificate.{Certificate}
use cardano/transaction.{Transaction}
use vodka_extra_signatories.{all_key_signed}
use vodka_inputs.{only_input_datum_with}
Expand All @@ -13,8 +14,11 @@ validator account_user_unlock(oracle_nft: PolicyId, owner: ByteArray) {
all_key_signed(extra_signatories, [owner, operation_key])
}

publish(redeemer: Data, credential: Credential, tx: Transaction) {
account_user_unlock.withdraw(oracle_nft, owner, redeemer, credential, tx)
publish(_redeemer: Data, _certificate: Certificate, tx: Transaction) {
let Transaction { reference_inputs, extra_signatories, .. } = tx
expect AccountOracleDatum { operation_key, .. }: AccountOracleDatum =
only_input_datum_with(reference_inputs, oracle_nft, "")
all_key_signed(extra_signatories, [owner, operation_key])
}

else(_) {
Expand Down
2 changes: 1 addition & 1 deletion validators/virtual_dex/take_orders.ak
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ validator virtual_dex_take_orders(
is_operation_key_signed && is_token_paid_to_makers
}

publish(_redeemer: Data, _credential: Certificate, tx: Transaction) {
publish(_redeemer: Data, _certificate: Certificate, tx: Transaction) {
let Transaction { reference_inputs, .. } = tx
expect DexOracleDatum { operation_key, .. }: DexOracleDatum =
only_input_datum_with(reference_inputs, oracle_nft, "")
Expand Down

0 comments on commit 9bdc603

Please sign in to comment.