Wykres commitów

44 Commity (main)

Autor SHA1 Wiadomość Data
Neeraj Kashyap e836884d7b TerminusInitializer "init" method must be called by Diamond owner 2023-02-17 11:03:45 -08:00
Neeraj Kashyap 4b198dd3b4 Added "createSimplePoolV2" on TerminusFacet
Also made it so that if `requiredPayment` is set to 0 on a Terminus
contract, we will not even initiate the ERC20 `transferFrom`. This makes
it so that a Terminus contract in which the controller does not have to
pay to create a pool does not require setting a payment token.

Bumped dao version to `0.0.8`.

Added tests for `createSimplePoolV2` functionality.
2023-02-17 10:58:31 -08:00
Neeraj Kashyap 12204c47dd A fix for the mintBatch vulnerability to bypass pool capacity 2022-11-22 08:18:36 -08:00
Neeraj Kashyap 66111c8aab Changed modifier on approveForPool and unapproveForPool
from `onlyMainAdmin` to `onlyPoolController`.
2022-07-29 05:59:06 -07:00
Neeraj Kashyap b719c9a875 Terminus Controller contract now proxies "isApprovedForPool" 2022-07-29 05:51:08 -07:00
Neeraj Kashyap a5dbb04a6e Added "unapproveForPool" on Terminus and...
made it so that Terminus Controller contract proxies `approveForPool`
and `unapproveForPool` calls through to its Terminus contract.
2022-07-29 05:49:14 -07:00
Yhtyyar Sahatov c374c2df6a fixed mint_batch 2022-07-06 17:54:10 +03:00
Yhtyyar Sahatov 8721eb8bc6 `isApprovedForPool(poolId)` can mint tokens in that pool 2022-07-06 16:41:29 +03:00
Neeraj Kashyap a37ec24699 Added check for pool controllership on pool parameter setters
Transferability and burnability of a pool can only be changed by pool
controller.
2022-07-04 12:03:48 -07:00
Neeraj Kashyap afa3d3f772 Added methods to view and change pool transferability/burnability 2022-07-04 11:54:53 -07:00
Neeraj Kashyap d1de6eac60
Merge pull request #48 from bugout-dev/terminus-controller
Terminus controller
2022-06-13 06:31:47 -07:00
Yhtyyar Sahatov 2c09628e1a payments are now done by transferring token to controllet contract 2022-06-13 15:57:40 +03:00
Yhtyyar Sahatov 6c9949e652 payment handling on controller side 2022-06-08 16:37:35 +03:00
Yhtyyar Sahatov 8d8e70ca4e working version of terminus controller 2022-06-08 16:08:30 +03:00
Uriel Chami 573b2f9098 Removing setERC20Metadata function and adding parameters to ERC20Initializer to be compliant 2022-05-13 11:26:24 -03:00
Neeraj Kashyap f8df47b5ce Added fix for "safeBatchTransferFrom" issue 2022-02-01 07:28:02 -08:00
Neeraj Kashyap dce2f2e118 added setController ot TerminusFacet 2022-02-01 06:35:41 -08:00
Neeraj Kashyap e1a1828e6b Pool creation can only be done by controller now.
Fixes a vulnerability related to Open Sea.
2022-02-01 06:17:07 -08:00
Neeraj Kashyap 98bd1c7248 Added contract metadata functionality to "TerminusFacet"
To better integrate with platforms like Open Sea.
2022-01-24 22:32:09 -08:00
Neeraj Kashyap b3addbb99f Added "setPoolController" external method to "TerminusFacet" 2021-12-24 07:37:37 -08:00
Neeraj Kashyap 016f114fa3 Made "TerminusFacet" usable as a self-contained smart contract 2021-12-24 06:22:09 -08:00
yhtiyar 498fbaa7c7 Merge branch 'main' into faucet 2021-12-23 15:40:54 +03:00
yhtiyar e349d9487e added Faucet for moonstream token 2021-12-23 15:40:02 +03:00
Neeraj Kashyap 39baf061c2 Deployed Terminus diamond to Mumbai testnet 2021-12-22 12:39:34 -08:00
Neeraj Kashyap 6ec5715996 Added pool authorizations for separate addresses 2021-12-22 12:10:32 -08:00
Neeraj Kashyap 973e49526d Added Terminus pool features
0. Capacity
1. Transferable
2. Burnable
2021-12-21 13:05:40 -08:00
Neeraj Kashyap aed0d9584c Added poolCapacity to Terminus
Removed `poolActive`
2021-12-21 11:48:02 -08:00
Neeraj Kashyap 6ad179f452 Added payment functionality to Terminus 2021-12-19 05:07:21 -08:00
Neeraj Kashyap 96829f26bd Added payment token functionality to TerminusFacet 2021-12-19 04:47:24 -08:00
Neeraj Kashyap aeb80d7857 Moonstream token is platform token, not governance token.
Governance will be handled by Terminus pool!
2021-12-19 04:11:18 -08:00
Neeraj Kashyap 2747d63067 Test for pool creation
Also added the `terminusPoolController` view method on the
TerminusFacet.
2021-12-18 12:42:21 -08:00
Neeraj Kashyap aa18d54c6d Deployment test for terminus
ERC20Facet.controller -> ERC20Facet.moonstreamController

TerminusFacet.controller -> TerminusFacet.terminusController

When both facets had view methods of the same name, `dao.core.facet_cut`
was not mounting the `TerminusFacet.controller` method to the diamond
because of its precedence rules.
2021-12-18 12:30:09 -08:00
Neeraj Kashyap cad68dcfa8 Added controller view methods on ERC20Facet and TerminusFacet 2021-12-18 12:25:54 -08:00
Neeraj Kashyap 7b3bd5d255 Added external "totalPools" and "createPool" on TerminusFacet 2021-12-18 12:20:55 -08:00
Neeraj Kashyap 87faf3db00 Terminus smart contracts
This represents the very first draft of Terminus.
2021-12-18 12:10:53 -08:00
Neeraj Kashyap b323c590d5 Removed "getController" method from LibERC20
It is useless.
2021-12-18 12:10:28 -08:00
Neeraj Kashyap 2c1140545c Renamed directory contracts/erc20 -> contracts/moonstream 2021-12-18 10:41:34 -08:00
Neeraj Kashyap 7b832c785b Added ERC20 initialization when facet is cut onto diamond
[WIP] ERC20 deployment checklist template
[WIP] clean up code a bit
2021-12-17 13:01:51 -08:00
Neeraj Kashyap 3ac420c409 ERC20 implementation 2021-12-17 10:28:34 -08:00
Neeraj Kashyap fe3a1e8634 Added ERC20WithCommonStorage 2021-12-17 08:30:40 -08:00
Neeraj Kashyap f3e9baac91 [WIP] ERC20 with library storage implementation 2021-12-16 06:38:12 -08:00
Neeraj Kashyap e45e904416 Removed DiamondInit stuff 2021-12-12 13:35:59 -08:00
Neeraj Kashyap e1038671f0 Updated comments in Diamond contracts code
Removed TestFacets
2021-12-11 18:53:12 -08:00
Neeraj Kashyap 98e4547561 Added Diamond contracts
From: https://github.com/mudgen/diamond-3-hardhat
2021-12-11 18:47:41 -08:00