Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@centrifuge/tinlake-js

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@centrifuge/tinlake-js

Centrifuge Tinlake Contracts Client

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
4
Created
Source

Tinlake JavaScript Client

Usage

Documentation can be found in ./docs/ or at https://centrifuge.github.io/tinlake.js/.

Development

Install dependencies with yarn install.

Running tests

Pre Installed

  • DappTools (https://dapp.tools/)
  • jq

Run a local Ethereum Node

dapp testnet --accounts=2

Additional Flags

--save=name after finishing, save snapshot --load=name start from a previously saved snapshot

Update dependencies/submodules

./bin/update.sh

Deploy Tinlake Contracts for Tests

./bin/deploy.sh

Run integration tests

yarn test

Alternatively, run a docker-based local network with all tinlake contracts deployed

1. Build the docker image

docker build -t centrifugeio/tinlake-in-a-box:latest .

2. To get the contract addresses from the container, run

docker run -it --rm centrifugeio/tinlake-in-a-box:latest cat /app/test/addresses.json > ./test/addresses.json

3. Run a docker container

docker run --rm -p 8545:8545 centrifugeio/tinlake-in-a-box:latest

Use the docker container to interact with the chain

docker run -it --rm centrifugeio/tinlake-in-a-box:latest seth help

Building for production

Create a bundle in the ./dist folder with npm run build.

Creating documentation

We use TypeDoc for documentation. Run npm run generate-docs to recreate the ./docs/ folder. Checkout TSDoc for formatting guidelines.

FAQs

Package last updated on 01 Aug 2022

Did you know?

Socket

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.

Install

Related posts