@mlabs-haskell/uplc-apply-args-browser
v1.0.29-alpha
Published
Implementation of argument application for Cardano Plutus scripts (nodejs & the browser).
Downloads
98
Keywords
Readme
uplc-apply-args
Implementation of argument application for Cardano Plutus scripts (nodejs & the browser).
This package defines a single "apply_params_to_script_no_panic" function.
Building and publishing
Here's a description on to how publish a newer version to the NPM registry:
- Install wasm-pack according to wasm-pack docs.
- Set the
package.name
inCargo.toml
to the correct name (i.e.uplc-apply-args-browser
oruplc-apply-args-nodejs
. We can't use@mlabs-haskell/
prefix here, because the name must be a valid crate name, but we can update it later in the generated package (step 5)). - Bump the
package.version
inCargo.toml
. Set it to be equal to the version of the uplc crate. rm -rf pkg
to clean the old bundle artifacts.- Run
wasm-pack build --target [bundler|nodejs]
. - Modify the generated npm package located in
./pkg
: Change its name to@mlabs-haskell/uplc-apply-args-[nodejs|browser]
- Publish the generated package.
- Repeat steps 1-6 for the
-nodejs
version too. - Update the isomorphic (supporting both nodejs and the browser) package that is located in
./npm-package
(change the dependency versions, runnpm i
, and publish it)