@667/near-api-js 中文文档教程

发布于 3年前 浏览 24 项目主页 更新于 3年前

near-api-js

构建状态Gitpod Ready-to-Code

用于在 NEAR 平台上开发 DApp 的 JavaScript/TypeScript 库

Documentation

阅读 TypeDoc API 文档


Examples

Quick Reference

(备忘单/快速参考)

Cookbook

(常见用例/更复杂的示例)


Contribute to this library

  1. 安装依赖

    项 yarn

  2. 运行持续构建:

    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

遵循后续步骤:

  1. Change hash for the commit with errors in the nearcore
  2. Fetch new schema: node fetch_error_schema.js
  3. yarn build to update lib/**.js files

License

此存储库根据 MIT 许可证和 Apache 许可证(版本 2.0)的条款分发。 有关详细信息,请参阅 LICENSELICENSE-APACHE

near-api-js

Build StatusGitpod Ready-to-Code

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

  1. Install dependencies

    yarn

  2. 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:

  1. Change hash for the commit with errors in the nearcore
  2. Fetch new schema: node fetch_error_schema.js
  3. yarn build to update lib/**.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.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文