/near-sdk-gr

Write smart contracts on the NEAR blockchain using Grain.

Primary LanguageJavaScript

Grain NEAR SDK

This project provides bindings to the NEAR SDK in order to enable easy writing of NEAR smart contracts in Grain.

You can find information on how to use this SDK at https://grain-lang.github.io/near-sdk-gr/.

Developing

Generating the Documentation

$ grain doc near -o docs/near --current-version=0.0.0

Building the Tests

Due to an NPM Bug, this project requires npm@8.4.0 to build.

To run the test suite, the following is needed in order to install all of the nested dependencies:

$ (npm ci && cd test-suite && npm ci && cd example-contracts && npm ci)

Then, to run the tests, you can simply run

$ npm run test