kopia lustrzana https://github.com/bugout-dev/dao
Added external "totalPools" and "createPool" on TerminusFacet
rodzic
87faf3db00
commit
7b3bd5d255
|
@ -79,11 +79,12 @@ library LibTerminus {
|
|||
emit PoolControlTransferred(poolID, previousController, newController);
|
||||
}
|
||||
|
||||
function createPool() internal returns (uint256 poolID) {
|
||||
function createPool() internal returns (uint256) {
|
||||
TerminusStorage storage ts = terminusStorage();
|
||||
poolID = ts.currentPoolID + 1;
|
||||
uint256 poolID = ts.currentPoolID + 1;
|
||||
setPoolController(poolID, msg.sender);
|
||||
ts.currentPoolID++;
|
||||
return poolID;
|
||||
}
|
||||
|
||||
function enforceIsActive() internal view {
|
||||
|
|
|
@ -22,6 +22,14 @@ contract TerminusFacet is ERC1155WithTerminusStorage {
|
|||
ts.poolURI[poolID] = poolURI;
|
||||
}
|
||||
|
||||
function totalPools() external view returns (uint256) {
|
||||
return LibTerminus.terminusStorage().currentPoolID;
|
||||
}
|
||||
|
||||
function createPool() external returns (uint256) {
|
||||
return LibTerminus.createPool();
|
||||
}
|
||||
|
||||
function mint(
|
||||
address to,
|
||||
uint256 poolID,
|
||||
|
|
Ładowanie…
Reference in New Issue