Admin Facet
struct InitParams {
string symbol;
string name;
string contractURI;
struct SetRoleItem[] roles;
uint256 maxSupply;
struct MeemPermission[] mintPermissions;
struct Split[] splits;
bool isTransferLocked;
}
string AlreadyInitialized
struct ContractInfo {
string symbol;
string name;
string contractURI;
uint256 maxSupply;
struct MeemPermission[] mintPermissions;
struct Split[] splits;
bool isTransferLocked;
}
event MeemContractInitialized(address contractAddress)
Emitted when the contract is initialized (or re-initialized)
Name | Type | Description |
---|---|---|
contractAddress | address | The address of the contract |
event MeemContractInfoSet(address contractAddress)
Emitted when contract info is set
Name | Type | Description |
---|---|---|
contractAddress | address | The address of the contract |
event MeemContractURISet(address contractAddress)
Emitted when the contract URI is set
Name | Type | Description |
---|---|---|
contractAddress | address | The address of the contract |
function setContractInfo(string name, string symbol) public
Set the contract info
Name | Type | Description |
---|---|---|
name | string | The name of the contract |
symbol | string | The symbol of the token |
function setContractInfo(string name, string symbol, string newContractURI) public
Set the contract info
Name | Type | Description |
---|---|---|
name | string | The name of the contract |
symbol | string | The symbol of the token |
newContractURI | string | The new contract URI |
function setContractInfo(string name, string symbol, string newContractURI, uint256 maxSupply) public
Set the contract info
Name | Type | Description |
---|---|---|
name | string | The name of the contract |
symbol | string | The symbol of the token |
newContractURI | string | The new contract URI |
maxSupply | uint256 | The new max supply. Must be greater than the current supply |
function setContractURI(string newContractURI) public
Set the contract info
Name | Type | Description |
---|---|---|
newContractURI | string | The new contract URI |
function getContractInfo() public view returns (struct ContractInfo)
Gets the contract info
Name | Type | Description |
---|---|---|
[0] | struct ContractInfo | The contract info |
function contractURI() public view returns (string)
Gets the contract URI
Name | Type | Description |
---|---|---|
[0] | string | The contract URI |
function initialize(struct InitParams params) public
Initialize the contract
May only be called once
Name | Type | Description |
---|---|---|
params | struct InitParams | The initialization parameters |
function reinitialize(struct InitParams params) public
Re-initialize the contract
Name | Type | Description |
---|---|---|
params | struct InitParams | The initialization parameters |
function requireAdmin() internal view
Convenience function to require the caller to be an admin
Last modified 1yr ago