IssuedAsset
Inherits: Initializable, Asset, IIssuedAsset, OwnableUpgradeable
Author: CapSign Inc.
Extends tokenization features specific to issued assets.
This contract is used to create issued assets.
State Variables
paused
bool public paused;
agents
mapping(address => bool) public agents;
Functions
onlyAdmin
modifier onlyAdmin();
whenNotPaused
modifier whenNotPaused();
__IssuedAsset_init
function __IssuedAsset_init(address _issuer, string memory _name, string memory _prefix) internal onlyInitializing;
addAgent
Adds a new agent with admin privileges
function addAgent(address _agent) external override onlyOwner;
Parameters
_agent
address
Address of the agent to add
removeAgent
Removes an agent
function removeAgent(address _agent) external override onlyOwner;
Parameters
_agent
address
Address of the agent to remove
isAgent
Checks if an address is an agent
function isAgent(address _agent) external view override returns (bool);
Parameters
_agent
address
Address to check
Returns
<none>
bool
True if the address is an agent, false otherwise
setPaused
Sets the paused state
function setPaused(bool _paused) external onlyAdmin;
Parameters
_paused
bool
The new paused state
Events
AgentAdded
Emitted when an agent is added
event AgentAdded(address indexed agent);
Parameters
agent
address
Address of the agent that was added
AgentRemoved
Emitted when an agent is removed
event AgentRemoved(address indexed agent);
Parameters
agent
address
Address of the agent that was removed
PausedSet
Emitted when the paused state is set
event PausedSet(bool indexed paused);
Parameters
paused
bool
The new paused state
Last updated
Was this helpful?