ApxUSDDeployer
Inherits: AccessManaged, Deployer
Title: ApxUSDDeployer
Deploys ApxUSD (implementation + proxy) and initializes in a single transaction
Non-upgradable; deploy is restricted via AccessManager. Init params are set in the constructor.
State Variables
name
Token name for the deployed ApxUSD (e.g. "Apyx USD")
string public name
symbol
Token symbol for the deployed ApxUSD (e.g. "apxUSD")
string public symbol
denyList
Deny list (AddressList) for the deployed ApxUSD
address public denyList
supplyCap
Maximum total supply for the deployed ApxUSD (e.g. 1_000_000e18)
uint256 public supplyCap
Functions
constructor
Sets the AccessManager authority and ApxUSD init params used by deploy()
constructor(string memory _name, string memory _symbol, address _authority, address _denyList, uint256 _supplyCap)
AccessManaged(_authority);
Parameters
| Name | Type | Description |
|---|---|---|
_name | string | Token name for the deployed ApxUSD (e.g. "Apyx USD") |
_symbol | string | Token symbol for the deployed ApxUSD (e.g. "apxUSD") |
_authority | address | Address of the AccessManager contract (used for this deployer and for each deployed ApxUSD) |
_denyList | address | |
_supplyCap | uint256 | Maximum total supply for the deployed ApxUSD (e.g. 1_000_000e18) |
deploy
Deploys ApxUSD implementation, proxy, and initializes in one transaction using constructor params
Only callable through AccessManager (restricted)
function deploy() external restricted returns (address proxy);
Returns
| Name | Type | Description |
|---|---|---|
proxy | address | The address of the deployed ApxUSD proxy (use this as the stablecoin address) |