![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@sidan-lab/sidan-csl-rs-browser
Advanced tools
Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs
This is a library for building off-chain code on Cardano. It is a cardano-cli like wrapper on cardano-serialization-lib (equivalent on MeshJS’s lower level APIs), supporting serious DApps’ backend on rust codebase. It has an active F11 proposal for supporting the development.
cargo add whisky
# For nodejs package
yarn add @sidan-lab/sidan-csl-rs-nodejs
# For browser package
yarn add @sidan-lab/sidan-csl-rs-browser
The APIs of whisky
consists of 3 parts:
Type | Name | Description |
---|---|---|
MeshCSL Property | tx_builder | This is the transaction builder, used for building transactions. |
MeshCSL Property | tx_inputs_builder | This is the transaction inputs builder, used for building the inputs of a transaction. |
MeshCSL Method | add_tx_in | This method is used to add a transaction input. |
MeshCSL Method | add_script_tx_in | This method is used to add a script transaction input. |
MeshCSL Method | add_output | This method is used to add an output. |
MeshCSL Method | add_collateral | This method is used to add collateral. |
MeshCSL Method | add_reference_input | This method is used to add a reference input. |
MeshCSL Method | add_plutus_mint | This method is used to add a Plutus mint. |
MeshCSL Method | add_native_mint | This method is used to add a native mint. |
MeshCSL Method | add_invalid_before | This method is used to add an invalid before condition. |
MeshCSL Method | add_invalid_hereafter | This method is used to add an invalid hereafter condition. |
MeshCSL Method | add_change | This method is used to add change. |
MeshCSL Method | add_signing_keys | This method is used to add signing keys. |
MeshCSL Method | add_required_signature | This method is used to add a required signature. |
MeshCSL Method | add_metadata | This method is used to add metadata. |
MeshCSL Method | add_script_hash | This method is used to add a script hash. |
MeshCSL Method | build_tx | This method is used to build the transaction to hex in CSL. |
Util Function | apply_params_to_script | To compile Aiken parameterized scripts. |
Util Function | script_to_address | To obtain script address with provided hash and stake cred |
Util Function | serialize_bech32_address | To obtain pub key hash, script hash and stake cred from bech32 address |
Util Function | get_v2_script_hash | To obtain script hash from script cbor |
Util Function | calculate_tx_hash | To calculate the transaction hash from signed or unsigned hex |
Util Function | sign_transaction | To add private key signature to current tx_hex |
MeshTxBuilderCore
Type | Method | Description |
---|---|---|
MeshTxBuilderCore User-facing Method | tx_in | Sets the input for the transaction. |
MeshTxBuilderCore User-facing Method | tx_in_script | Sets the script for the transaction input. |
MeshTxBuilderCore User-facing Method | tx_in_datum_value | Sets the input datum for the transaction input. |
MeshTxBuilderCore User-facing Method | tx_in_inline_datum_present | Indicates that the input UTxO has inlined datum. |
MeshTxBuilderCore User-facing Method | tx_in_redeemer_value | Sets the redeemer for the reference input to be spent in the same transaction. |
MeshTxBuilderCore User-facing Method | tx_out | Sets the output for the transaction. |
MeshTxBuilderCore User-facing Method | tx_out_datum_hash_value | Sets the output datum hash for the transaction. |
MeshTxBuilderCore User-facing Method | tx_out_inline_datum_value | Sets the output inline datum for the transaction. |
MeshTxBuilderCore User-facing Method | tx_out_reference_script | Sets the reference script to be attached with the output. |
MeshTxBuilderCore User-facing Method | spending_plutus_script_v2 | Indicates that it is currently using V2 Plutus spending scripts. |
MeshTxBuilderCore User-facing Method | spending_tx_in_reference | Sets the reference input where it would also be spent in the transaction. |
MeshTxBuilderCore User-facing Method | spending_reference_tx_in_inline_datum_present | Indicates that the reference input has inline datum. |
MeshTxBuilderCore User-facing Method | spending_reference_tx_in_redeemer_value | Sets the redeemer for the reference input to be spent in the same transaction. |
MeshTxBuilderCore User-facing Method | read_only_tx_in_reference | Specifies a read-only reference input. |
MeshTxBuilderCore User-facing Method | mint_plutus_script_v2 | Indicates that it is currently using V2 Plutus minting scripts. |
MeshTxBuilderCore User-facing Method | mint | Sets the minting value of the transaction. |
MeshTxBuilderCore User-facing Method | minting_script | Sets the minting script of the current mint. |
MeshTxBuilderCore User-facing Method | mint_tx_in_reference | Uses reference script for minting. |
MeshTxBuilderCore User-facing Method | mint_redeemer_value | Sets the redeemer for the reference input to be spent in the same transaction. |
MeshTxBuilderCore User-facing Method | mint_reference_tx_in_redeemer_value | Sets the redeemer for minting. |
MeshTxBuilderCore User-facing Method | required_signer_hash | Sets the required signer of the transaction. |
MeshTxBuilderCore User-facing Method | tx_in_collateral | Sets the collateral UTxO for the transaction. |
MeshTxBuilderCore User-facing Method | change_address | Configures the address to accept change UTxO. |
MeshTxBuilderCore User-facing Method | change_output_datum | Add datum to change output |
MeshTxBuilderCore User-facing Method | invalid_before | Sets the transaction valid interval to be valid only after the slot. |
MeshTxBuilderCore User-facing Method | invalid_hereafter | Sets the transaction valid interval to be valid only before the slot. |
MeshTxBuilderCore User-facing Method | metadata_value | Adds metadata to the transaction. |
MeshTxBuilderCore User-facing Method | signing_key | Signs the transaction with the private key. |
MeshTxBuilderCore User-facing Method | tx_hex | Obtain the current transaction hex from build |
MeshTxBuilderCore User-facing Method | reset | [To be implemented] Resetting the whole MeshTxBuilderCore |
MeshTxBuilderCore User-facing Method | emptyTxBuilderBody | [To be implemented] Resetting the body object |
MeshTxBuilderCore User-facing Method | complete | Conduct async operation, e.g. updating redeemers, before complete_sync |
MeshTxBuilderCore User-facing Method | complete_sync | Determine whether using customizedTx, if not queue all last items then serialize the tx |
MeshTxBuilderCore User-facing Method | complete_signing | Adding signing keys and return txHex |
MeshTxBuilderCore Internal Method | serialize_tx_body | Take the tx object and serialized it to txHex |
MeshTxBuilderCore Internal Method | updateRedeemer | Update SPEND and MINT exUnits |
MeshTxBuilderCore Internal Method | queue_input | Internal method before building tx |
MeshTxBuilderCore Internal Method | queue_mint | Internal method before building tx |
MeshTxBuilderCore Internal Method | queue_all_last_item | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_required_signature | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_inputs | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_outputs | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_collaterals | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_reference_inputs | Internal method before building tx |
MeshTxBuilderCore Internal Method | add_all_mints | Internal method before building tx |
FAQs
Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs
The npm package @sidan-lab/sidan-csl-rs-browser receives a total of 724 weekly downloads. As such, @sidan-lab/sidan-csl-rs-browser popularity was classified as not popular.
We found that @sidan-lab/sidan-csl-rs-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.