@667/near-api-js 中文文档教程
near-api-js
用于在 NEAR 平台上开发 DApp 的 JavaScript/TypeScript 库
Documentation
Examples
Quick Reference
(备忘单/快速参考)
Cookbook
(常见用例/更复杂的示例)
Contribute to this library
安装依赖
项 yarn
运行持续构建:
yarn build -- -w
Publish
通过运行准备 dist
版本:
yarn dist
发布到 npm 时使用 np.
Integration Test
按照 nearcore 中的说明启动节点,然后
yarn test
测试使用来自 near-hello
npm 包的示例合约,请参阅 https://github.com/nearprotocol/near-hello
Update error schema
遵循后续步骤:
- Change hash for the commit with errors in the nearcore
- Fetch new schema:
node fetch_error_schema.js
yarn build
to updatelib/**.js
files
License
此存储库根据 MIT 许可证和 Apache 许可证(版本 2.0)的条款分发。 有关详细信息,请参阅 LICENSE 和 LICENSE-APACHE。
near-api-js
A JavaScript/TypeScript library for development of DApps on the NEAR platform
Documentation
Read the TypeDoc API documentation
Examples
Quick Reference
(Cheat sheet / quick reference)
Cookbook
(Common use cases / more complex examples)
Contribute to this library
Install dependencies
yarn
Run continuous build with:
yarn build -- -w
Publish
Prepare dist
version by running:
yarn dist
When publishing to npm use np.
Integration Test
Start the node by following instructions from nearcore, then
yarn test
Tests use sample contract from near-hello
npm package, see https://github.com/nearprotocol/near-hello
Update error schema
Follow next steps:
- Change hash for the commit with errors in the nearcore
- Fetch new schema:
node fetch_error_schema.js
yarn build
to updatelib/**.js
files
License
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE and LICENSE-APACHE for details.