0.9.21 • Published 5 months ago

@sidan-lab/sidan-csl-rs-browser v0.9.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Licence Test Publish Docs

Twitter/X Crates.io NPM

whisky

This is a library for building off-chain code on Cardano. It is a cardano-cli-like wrapper on cardano-serialization-lib (equivalent to MeshJS’s lower-level APIs), supporting serious DApps’ backend on the Rust codebase. It has an active F11 proposal to support the development.

whisky is composed of 2 layers - the root layer sidan-csl-rs and the user-facing layer whisky. sidan-csl-rs composed of the core serialization logic with JSON-to-transaction pattern, compilable to wasm. whisky is the user-facing package that Rust Cardano developers can import directly for use.

Features

  • Same API patterns with MeshJS - lower learning curve for developers.
  • Integrated with TxPipe's uplc for off-node auto redeemer exUnits updates.
  • Full inline documentation hosted at github

Installation

Rust Library

cargo add whisky

JS / TS WASM Lib

# For nodejs package
yarn add @sidan-lab/sidan-csl-rs-nodejs
# For browser package
yarn add @sidan-lab/sidan-csl-rs-browser

Getting Started

use whisky::{
    builder::TxBuilder,
    model::{Asset, UTxO},
};

async fn my_first_whisky_tx(
    recipient_address: &str,
    my_address: &str,
    inputs: Vec<UTxO>,
) -> String {
    let mut tx_builder = TxBuilder::new_core();
    tx_builder.tx_out(
        &recipient_address,
        vec![Asset::new_from_str("lovelace", "1000000")],
    )
    .change_address(my_address)
    .select_utxos_from(inputs.clone(), 5000000)
    .complete(None)
    .await;

    tx_builder.tx_hex()
}

APIs

Please refer to the hosted documentation for the list of endpoints.

Alt

0.9.12

7 months ago

0.9.13

7 months ago

0.9.14

7 months ago

0.9.15

7 months ago

0.9.10

7 months ago

0.9.11

7 months ago

0.9.16

7 months ago

0.9.17

6 months ago

0.9.18

6 months ago

0.9.19

5 months ago

0.9.8

7 months ago

0.9.7

8 months ago

0.9.9

7 months ago

0.9.6

8 months ago

0.9.5

8 months ago

0.9.20

5 months ago

0.9.21

5 months ago

0.9.4

9 months ago

0.9.3

9 months ago

0.8.7

9 months ago

0.8.6

10 months ago

0.9.0

9 months ago

0.9.2

9 months ago

0.9.1

9 months ago

0.8.5

10 months ago

0.6.7

1 year ago

0.8.4

10 months ago

0.6.6

1 year ago

0.6.9

1 year ago

0.6.8

1 year ago

0.6.10

1 year ago

0.6.12

12 months ago

0.6.11

12 months ago

0.6.14

11 months ago

0.6.13

12 months ago

0.7.2

11 months ago

0.5.4

1 year ago

0.7.1

11 months ago

0.5.3

1 year ago

0.7.4

11 months ago

0.5.6

1 year ago

0.7.3

11 months ago

0.5.5

1 year ago

0.7.0

11 months ago

0.5.2

1 year ago

0.5.0-alpha.11

1 year ago

0.5.1

1 year ago

0.5.0-alpha.12

1 year ago

0.7.6

11 months ago

0.5.8

1 year ago

0.7.5

11 months ago

0.5.7

1 year ago

0.8.1

11 months ago

0.6.3

1 year ago

0.5.0-alpha.7

1 year ago

0.8.0

11 months ago

0.6.2

1 year ago

0.5.0-alpha.6

1 year ago

0.8.3

10 months ago

0.6.5

1 year ago

0.8.2

10 months ago

0.6.4

1 year ago

0.6.1

1 year ago

0.5.0-alpha.9

1 year ago

0.6.0

1 year ago

0.5.0-alpha.8

1 year ago

0.5.0-alpha.3

1 year ago

0.5.0-alpha.5

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.5-beta1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.6-beta3

1 year ago

0.2.6-beta1

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago