MasterMinter

Arbitrum One

0x8aff09e2259cacbf4fc4e3e53f3bf799efeeab36

Solidity v0.6.12+commit.27d51765

🤖
透過你的 AI 查詢此合約
參考: 0x8aff09e2259cacbf4fc4e3e53f3bf799efeeab36
範例提示詞: "Tell me the current state of arbitrum/0x8aff09e2259cacbf4fc4e3e53f3bf799efeeab36"
還沒有接入 AI?→ mcp.smarts.md

管理與風險

誰能修改規則?

Block #25,177,592

Detected mintable and ownable controls from the verified ABI.

Mintable Ownable

當前控制

Owner
0xedc4ed529b990dd4ffb9ed47b6c3e385a9dcdd0a ↗ Arbiscan → smarts

概覽

讀取函式
3
寫入函式
8
事件
8

讀取函式

Block #25,177,592 · 46s ago
getMinterManager() view → 0xaf88d065e77c8cc2239327c5edb3a432268e5831

gets the minterManager

回傳值

名稱 類型 描述
address
getWorker(_controller: address) view

Gets the worker at address _controller.

參數

名稱 類型 描述
_controller address

回傳值

名稱 類型 描述
address
owner() view → 0xedc4ed529b990dd4ffb9ed47b6c3e385a9dcdd0a

Returns the address of the contract owner.✨ AI

開發者: Tells the address of the owner

回傳值

名稱 類型 描述
address the address of the owner

寫入函式

configureController(_controller: address, _worker: address) nonpayable

Configure a controller with the given worker.

參數

名稱 類型 描述
_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.
configureMinter(_newAllowance: uint256) nonpayable

Enables the minter and sets its allowance.

參數

名稱 類型 描述
_newAllowance uint256 New allowance to be set for minter.

回傳值

名稱 類型 描述
bool
decrementMinterAllowance(_allowanceDecrement: uint256) nonpayable

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.

參數

名稱 類型 描述
_allowanceDecrement uint256

回傳值

名稱 類型 描述
bool
incrementMinterAllowance(_allowanceIncrement: uint256) nonpayable

Increases the minter's allowance if and only if the minter is an active minter.

開發者: An minter is considered active if minterManager.isMinter(minter) returns true.

參數

名稱 類型 描述
_allowanceIncrement uint256

回傳值

名稱 類型 描述
bool
removeController(_controller: address) nonpayable

disables a controller by setting its worker to address(0).

參數

名稱 類型 描述
_controller address The controller to disable.
removeMinter() nonpayable

Removes the controller's own minter.

回傳值

名稱 類型 描述
bool
setMinterManager(_newMinterManager: address) nonpayable

Sets the minterManager.

參數

名稱 類型 描述
_newMinterManager address The address of the new minterManager contract.
transferOwnership(newOwner: address) nonpayable

Transfer ownership of the MasterMinter contract to a new owner address.✨ AI

開發者: Allows the current owner to transfer control of the contract to a newOwner.

參數

名稱 類型 描述
newOwner address The address to transfer ownership to.

事件

ControllerConfigured(_controller: address, _worker: address)
名稱 類型 已索引 描述
_controller address
_worker address
ControllerRemoved(_controller: address)
名稱 類型 已索引 描述
_controller address
MinterAllowanceDecremented(msgSender: address, minter: address, decrement: uint256, newAllowance: uint256)
名稱 類型 已索引 描述
msgSender address
minter address
decrement uint256
newAllowance uint256
MinterAllowanceIncremented(_msgSender: address, _minter: address, _increment: uint256, _newAllowance: uint256)
名稱 類型 已索引 描述
_msgSender address
_minter address
_increment uint256
_newAllowance uint256
MinterConfigured(_msgSender: address, _minter: address, _allowance: uint256)
名稱 類型 已索引 描述
_msgSender address
_minter address
_allowance uint256
MinterManagerSet(_oldMinterManager: address, _newMinterManager: address)
名稱 類型 已索引 描述
_oldMinterManager address
_newMinterManager address
MinterRemoved(_msgSender: address, _minter: address)
名稱 類型 已索引 描述
_msgSender address
_minter address
OwnershipTransferred(previousOwner: address, newOwner: address)
名稱 類型 已索引 描述
previousOwner address representing the address of the previous owner
newOwner address representing the address of the new owner