You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AC1Possible to define the total collateral amount and the collateral output
Build a tx with: return-collateral-tx-out, collateral inputs higher than expected, the right amount on tx-total-collateral; check that only the necessary amount is charged and the change is present on the return-collateral-tx-out specified
using build
using build-raw
Build a tx with collateral inputs higher than expected with the same amount on tx-total-collateral withoutreturn-collateral-tx-out defined, check that all the collateral are charged.
using build
using build-raw
Build a tx withtx-total-collateraldifferent than tx with collateral inputs amount (fails phase1 validation) - Expect failure PBT
using build
using build-raw
Build a tx with with collateral inputs higher than expected with return-collateral-tx-out defined but withouttx-total-collateral defined, check that only the necessary amount is charged and the change is present on the return-collateral-tx-out specified
using build
using build-raw
AC2collateral input can include MA which is returned on validation failure
When the collateral output is provided then collateral input can include MA which is returned on validation failure (the error message should be meaningful for the end-user)
using build
using build-raw
AC3Collateral output needs to be balanced
Collateral output needs to be balanced according to sum(collateral_input) = sum(collateral_output) + collateral_consumed
using build
using build-raw
The text was updated successfully, but these errors were encountered:
When collateral return is not provided then Alonzo-rules apply (collateral is ada-only and all ada is taken as fee)
When collateral return is provided then excess ada is returned
When collateral return is provided then collateral input can include MA which is returned on validation failure
If return collateral doesn't satisfy minUtxo constraint then submit fails phase1 validation
Colateral total
Collateral total is useful for HW wallets
Collateral total is optional
Collateral total must equal total collateral to be taken on phase2 validation failure (it'll be different depending on whether collateral return is provided)
If collateral total value is incorrect then submit fails phase1 validation
dorin100
changed the title
HW Wallet Collateral Change address - draft
Collateral Change address - draft
Apr 21, 2022
TODO Improvements:
1265
1266
1267
cardano-node related PR:
#3810
info
https://github.com/cardano-foundation/CIPs/pull/216/files
https://input-output.atlassian.net/browse/CAD-3415
AC1 Possible to define the total collateral amount and the collateral output
return-collateral-tx-out
, collateral inputs higher than expected, the right amount on tx-total-collateral; check that only the necessary amount is charged and the change is present on thereturn-collateral-tx-out
specifiedtx-total-collateral
withoutreturn-collateral-tx-out
defined, check that all the collateral are charged.tx-total-collateral
different than tx with collateral inputs amount (fails phase1 validation) - Expect failure PBTreturn-collateral-tx-out
defined but withouttx-total-collateral
defined, check that only the necessary amount is charged and the change is present on thereturn-collateral-tx-out
specifiedAC2 collateral input can include MA which is returned on validation failure
AC3 Collateral output needs to be balanced
sum(collateral_input) = sum(collateral_output) + collateral_consumed
The text was updated successfully, but these errors were encountered: