MasterMinter
Polygon PoS0x067b07ed153f2d4640638f7d2945fbe4ed1bf1ac
Solidity v0.6.12+commit.27d51765
Admin & Risk
Who can change the rules?
Detected mintable and ownable controls from the verified ABI.
Current controls
- Owner
- 0x05be21635f74d213d7941ca535c748952ee3637a ↗ Polygonscan → smarts
Overview
Read Functions
Block #87,397,119 · just nowgets the minterManager
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Gets the worker at address _controller.
Parameters
| Name | Type | Description |
|---|---|---|
| _controller | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | the address of the owner |
Write Functions
Configure a controller with the given worker.
Parameters
| Name | Type | Description |
|---|---|---|
| _controller | address | The controller to be configured with a worker. |
| _worker | address | The worker to be set for the newly configured controller. _worker must not be a non-zero address. To disable a worker, use removeController instead. |
Enables the minter and sets its allowance.
Parameters
| Name | Type | Description |
|---|---|---|
| _newAllowance | uint256 | New allowance to be set for minter. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
decreases the minter allowance if and only if the minter is currently active. The controller can safely send a signed decrementMinterAllowance() transaction to a minter and not worry about it being used to undo a removeMinter() transaction.
Parameters
| Name | Type | Description |
|---|---|---|
| _allowanceDecrement | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Increases the minter's allowance if and only if the minter is an active minter.
Parameters
| Name | Type | Description |
|---|---|---|
| _allowanceIncrement | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
disables a controller by setting its worker to address(0).
Parameters
| Name | Type | Description |
|---|---|---|
| _controller | address | The controller to disable. |
Removes the controller's own minter.
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Sets the minterManager.
Parameters
| Name | Type | Description |
|---|---|---|
| _newMinterManager | address | The address of the new minterManager contract. |
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | The address to transfer ownership to. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| _controller | address | ✓ | |
| _worker | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _controller | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| msgSender | address | ✓ | |
| minter | address | ✓ | |
| decrement | uint256 | ||
| newAllowance | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _msgSender | address | ✓ | |
| _minter | address | ✓ | |
| _increment | uint256 | ||
| _newAllowance | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _msgSender | address | ✓ | |
| _minter | address | ✓ | |
| _allowance | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _oldMinterManager | address | ✓ | |
| _newMinterManager | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _msgSender | address | ✓ | |
| _minter | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | representing the address of the previous owner | |
| newOwner | address | representing the address of the new owner |