THX Asset Pool Modules – THX资产池模块区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,THX Asset Pool Modules – THX资产池模块区块链毕设代写 是一篇很好的国外资料

THX Asset Pool Modules

Maintainer: Peter Polman – THX Discord – THX Slack

Default Asset Pools are connected to an ERC20 contract. The pool is controlled by a permissioned (OAuth2.0) REST API which is responsible for paying the gas costs used to manage the pool. Access to the pool is managed with a flexible role-based access mechanism. Pools can hold various reward configurations for the connected ERC20 tokent contract and will manage the distribution of those token rewards with a withdrawal system. The poll system used to govern the reward configuration and withdrawals is optional.

Diamonds

Asset Pools are build and managed using the Nick Mudges Diamonds concept. Listen to Nick explain them in this interview. To increase the maintainability of the diamond facets we have grouped facets into modules that indicate the dependencies to one and other. Since we plan on opening up the contract layer to new module proposals we have named them TMP’s: THX Module Proposals.

Reasons for diamonds implementation:

  • No contract size limit
  • Stable contract addresses
  • Maintain contract functionality

Module System

Asset Pool Module implementations follow standards defined in a TMP (THX Module Proposal). This system is used to validate implementations and keep track of the dependencies of modules. Modules contain contractual agreements in terms of interface, storage and events that the implementation should obide to.

Factory

The asset pool factory is used to deploy asset pools from a single source and keep track of them. IDefaultDiamond.sol contains the full interface the initally deployed asset pool.

[WIP] Registry

The registry is used to expose settings that go for all asset pools. Future development will make this contract governable.

[WIP] Fee Collector

The Fee Collector address is set in the registry and will receive the deposit fee as configured in the registry.

Tests

All the meaningfull logic in the contracts is covered with tests. Run the tests with npx hardhat test. Read the test scripts to get more insight into the asset pool features.


THX Asset Pool Modules

Maintainer: Peter Polman – THX Discord – THX Slack

Default Asset Pools are connected to an ERC20 contract. The pool is controlled by a permissioned (OAuth2.0) REST API which is responsible for paying the gas costs used to manage the pool. Access to the pool is managed with a flexible role-based access mechanism. Pools can hold various reward configurations for the connected ERC20 tokent contract and will manage the distribution of those token rewards with a withdrawal system. The poll system used to govern the reward configuration and withdrawals is optional.

Diamonds

Asset Pools are build and managed using the Nick Mudges Diamonds concept. Listen to Nick explain them in this interview. To increase the maintainability of the diamond facets we have grouped facets into modules that indicate the dependencies to one and other. Since we plan on opening up the contract layer to new module proposals we have named them TMP’s: THX Module Proposals.

Reasons for diamonds implementation:

  • No contract size limit
  • Stable contract addresses
  • Maintain contract functionality

Module System

Asset Pool Module implementations follow standards defined in a TMP (THX Module Proposal). This system is used to validate implementations and keep track of the dependencies of modules. Modules contain contractual agreements in terms of interface, storage and events that the implementation should obide to.

Factory

The asset pool factory is used to deploy asset pools from a single source and keep track of them. IDefaultDiamond.sol contains the full interface the initally deployed asset pool.

[WIP] Registry

The registry is used to expose settings that go for all asset pools. Future development will make this contract governable.

[WIP] Fee Collector

The Fee Collector address is set in the registry and will receive the deposit fee as configured in the registry.

Tests

All the meaningfull logic in the contracts is covered with tests. Run the tests with npx hardhat test. Read the test scripts to get more insight into the asset pool features.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23014.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » THX Asset Pool Modules – THX资产池模块区块链毕设代写

提供最优质的资源集合

立即查看 了解详情