cardano/transaction/script_purpose
Functions
Compare two script purposes, using the same ordering as the one used by the ledger when constructing the redeemers list:
Spend < Mint < Publish < Withdraw < Vote < Propose
Note that this ordering follows the internal ledger types, and thus
differs from the constructor order of
ScriptPurpose: Spend comes before
Mint, and Publish comes before Withdraw.