1.4.3 • Published 2 years ago

rain-sdk v1.4.3

Weekly downloads
-
License
CAL-1.0
Repository
-
Last release
2 years ago

Rain Protocol SDK

An in-progress SDK for interacting with Rain Protocol's factories and their child contracts.

This SDK uses an ethers.js interface.

Development setup (for contributors)

Nix shell

Install the nix shell if you haven't already.

curl -L https://nixos.org/nix/install | sh

Drop into a nix-shell.

nix-shell

The shell hook will:

  1. yarn install
  2. Compile the @beehive-innovation/rain-protocol and @beehive-innovation/statusfi dependencies
  3. Copy the compiled typechain files into src/typechain.

Commands

This library uses TSDX to compile and bundle. To run TSDX, use:

yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use yarn build.

To run tests, use yarn test.

Bundle Analysis

size-limit is set up to calculate the library size with yarn size and visualize the bundle with yarn analyze.

Generate documentation

To generate the documentation you should drop into nix-shell and run:

generate-docs

This will generate the docs files in the docs/markdown directory. You can change the output directory editing the package.json file, where the command generate-docs is set. For example, change the output folder from docs/markdown to myDocs/ in the -o flag:

Change this:

"generate-docs": "api-extractor run --local && api-documenter markdown -i docs/input -o docs/markdown"

To have this:

"generate-docs": "api-extractor run --local && api-documenter markdown -i docs/input -o myDocs"
1.4.3

2 years ago

1.4.2

2 years ago

2.1.2-beta

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.2.8

2 years ago

1.3.6

2 years ago

1.2.7

2 years ago

1.3.5

2 years ago

1.2.6

2 years ago

1.3.4

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

2.1.0-beta

2 years ago

2.0.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

1.3.8

2 years ago

1.2.9

2 years ago

1.2.10

2 years ago

2.1.1-beta

2 years ago

1.2.11

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.1-alpha.11

2 years ago

0.0.1-alpha.7

2 years ago

0.0.2-alpha.1

2 years ago

0.0.1-alpha.10

2 years ago

0.0.1-alpha.8

2 years ago

0.0.1-alpha.9

2 years ago

0.0.1-alpha.6

2 years ago

0.0.1-alpha.5

2 years ago

0.0.1-alpha.3

2 years ago

0.1.0

2 years ago