0.9.21 • Published 5 months ago

@sidan-lab/sidan-csl-rs-nodejs 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

6 months ago

0.9.13

6 months ago

0.9.14

6 months ago

0.9.15

6 months ago

0.9.10

7 months ago

0.9.11

7 months ago

0.9.16

6 months ago

0.9.17

5 months ago

0.9.18

5 months ago

0.9.19

5 months ago

0.9.8

7 months ago

0.9.7

7 months ago

0.9.9

7 months ago

0.9.6

7 months ago

0.9.5

8 months ago

0.9.20

5 months ago

0.9.21

5 months ago

0.9.4

8 months ago

0.9.3

8 months ago

0.8.7

9 months ago

0.8.6

9 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

12 months ago

0.8.4

10 months ago

0.6.6

12 months ago

0.6.9

12 months ago

0.6.8

12 months ago

0.6.10

11 months ago

0.6.12

11 months ago

0.6.11

11 months ago

0.6.14

11 months ago

0.6.13

11 months ago

0.7.2

10 months ago

0.5.4

1 year ago

0.7.1

10 months ago

0.5.3

1 year ago

0.7.4

10 months ago

0.5.6

1 year ago

0.7.3

10 months ago

0.5.5

1 year ago

0.7.0

10 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

10 months ago

0.5.8

12 months ago

0.7.5

10 months ago

0.5.7

12 months ago

0.8.1

10 months ago

0.6.3

12 months ago

0.5.0-alpha.7

1 year ago

0.8.0

10 months ago

0.6.2

12 months ago

0.5.0-alpha.6

1 year ago

0.8.3

10 months ago

0.6.5

12 months ago

0.8.2

10 months ago

0.6.4

12 months ago

0.6.1

12 months ago

0.5.0-alpha.9

1 year ago

0.6.0

12 months 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