A JavaScript SDK for interacting with the social contract (social.near) with helper functions for typical social features.
TBC...
For full documentation, please see here.
- Install Node v18.20.2+
- Install Yarn v1.22.5+
- Install the dependencies:
$ yarn install
- To build simply run:
$ yarn build
The above command will compile the Typescript source code into a dist/
directory.
Command | Description |
---|---|
yarn build |
Builds the source code into the dist/ directory. |
yarn docs:build |
Builds the documentation into the .docusaurus/ directory. |
yarn docs:serve |
Serves the built documentation from the .docusaurus/ directory. |
yarn docs:start |
Builds and runs the documentation in a development environment with hot reloading. |
yarn lint |
Runs the linter on .js and .ts files. |
yarn node:start |
Starts up a NEAR development node in a background process. |
yarn node:start |
Stops the NEAR development node that was started in yarn node:start . |
yarn prettier |
Runs the prettier on .js and .ts files. |
yarn test |
Starts a NEAR development node and runs the tests. |
Network | Account ID | Link |
---|---|---|
Mainnet | social.near |
https://nearblocks.io/address/social.near |
Testnet | v1.social08.testnet |
https://testnet.nearblocks.io/address/v1.social08.testnet |
Please read the Contributing Guide to learn about the development process.
Please refer to the LICENSE file.