Search
K

Admin Facet

InitParams

struct InitParams {
string symbol;
string name;
string contractURI;
struct SetRoleItem[] roles;
uint256 maxSupply;
struct MeemPermission[] mintPermissions;
struct Split[] splits;
bool isTransferLocked;
}

AdminError

AlreadyInitialized

string AlreadyInitialized

ContractInfo

struct ContractInfo {
string symbol;
string name;
string contractURI;
uint256 maxSupply;
struct MeemPermission[] mintPermissions;
struct Split[] splits;
bool isTransferLocked;
}

AdminFacet

MeemContractInitialized

event MeemContractInitialized(address contractAddress)
Emitted when the contract is initialized (or re-initialized)
Name
Type
Description
contractAddress
address
The address of the contract

MeemContractInfoSet

event MeemContractInfoSet(address contractAddress)
Emitted when contract info is set
Name
Type
Description
contractAddress
address
The address of the contract

MeemContractURISet

event MeemContractURISet(address contractAddress)
Emitted when the contract URI is set
Name
Type
Description
contractAddress
address
The address of the contract

setContractInfo

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

setContractInfo

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

setContractInfo

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

setContractURI

function setContractURI(string newContractURI) public
Set the contract info
Name
Type
Description
newContractURI
string
The new contract URI

getContractInfo

function getContractInfo() public view returns (struct ContractInfo)
Gets the contract info
Name
Type
Description
[0]
struct ContractInfo
The contract info

contractURI

function contractURI() public view returns (string)
Gets the contract URI
Name
Type
Description
[0]
string
The contract URI

initialize

function initialize(struct InitParams params) public
Initialize the contract
May only be called once
Name
Type
Description
params
struct InitParams
The initialization parameters

reinitialize

function reinitialize(struct InitParams params) public
Re-initialize the contract
Name
Type
Description
params
struct InitParams
The initialization parameters

requireAdmin

function requireAdmin() internal view
Convenience function to require the caller to be an admin