thxprotocol / modules-solidity

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.
4 stars 3 forks source link

Hardhat deploy #24

Closed bram-rongen closed 2 years ago

bram-rongen commented 2 years ago

This PR introduces Hardhat deploy and exposes methods to get contract addresses and abis for deployments.

Hardhat deploy stores information about previous deployments in the deployments folder, allowing it to only deploy changes. Be aware that the AssetPoolRegistry, AssetPoolFactory, TokenFactory and example token have been run as migrations meaning they will never run a second time. Upgrades to those contracts will be handled by the api project as migrations of those contracts should happen in sync with code deployments.

There are some (minor) changes to the contracts: