@4cadia/janus-indexer-core 中文文档教程

发布于 5年前 浏览 22 更新于 3年前

Janus Indexer Core

Indexer Core 是 Dapp 和 SmartContract 之间的桥梁。 它负责提取将被索引的元数据,与 Indexer 智能合约交互,还负责与存储层通信。

对于智能合约,我们目前仅支持 Ethereum,对于存储目前仅支持 IPFS,但我们计划在未来包括其他智能合约引擎和去中心化存储解决方案。

Featured Technologies

IPFS:星际文件系统是一种协议和对等网络,用于在分布式文件系统中存储和共享数据。

Ethereum: 是一个开源、公共、基于区块链的分布式计算平台和操作系统,具有智能合约功能。

TypeScript: 是一种由 Microsoft 开发和维护的开源编程语言。 它是 JavaScript 的严格语法超集,并为该语言添加了可选的静态类型。

Build

# Is run command:
yarn build

Run Tests

# run unit tests
yarn test:unit
# run all tests
yarn test

Other Commands

# run code linter
yarn lint
# automatically fix issues detected by the linter
yarn lint-fix

Contributing

  1. Fork it (https://github.com/4cadia-foundation/janus/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

[npm-image]:https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square [npm-url]:https://npmjs.org/package/datadog-metrics [npm 下载]:https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square [特拉维斯形象]:https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square [travis-url]:https://travis-ci.org/dbader/node-datadog-metrics

Janus Indexer Core

Indexer Core is the bridge between Dapp and SmartContract. It is responsible for extracting metadata that will be indexed, interacting with the Indexer smart contract and also for communicating with the storage layer.

For smart contracts we currently support only Ethereum and for storage currently only IPFS, but we plan to include other smart contract engines and decentralized storage solutions in the future.

Featured Technologies

IPFS: The InterPlanetary File System is a protocol and peer-to-peer network for storing and sharing data in a distributed file system.

Ethereum: Is an open source, public, blockchain-based distributed computing platform and operating system featuring smart contract functionality.

TypeScript: Is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language.

Build

# Is run command:
yarn build

Run Tests

# run unit tests
yarn test:unit
# run all tests
yarn test

Other Commands

# run code linter
yarn lint
# automatically fix issues detected by the linter
yarn lint-fix

Contributing

  1. Fork it (https://github.com/4cadia-foundation/janus/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

[npm-image]: https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square [npm-url]: https://npmjs.org/package/datadog-metrics [npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square [travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square [travis-url]: https://travis-ci.org/dbader/node-datadog-metrics

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