function colInfo(bytes32) external view returns (address creator, enum Types.ERC721Type colType, bytes32 colSalt, uint256 blocknumber, address splitter)
colIDs are derived from adding 12 bytes of zeros to an collection's address.colID => colInfo(salt/type/addr/time/splitter)
| Name |
Type |
Description |
| _0 |
bytes32 |
undefined |
| Name |
Type |
Description |
| creator |
address |
undefined |
| colType |
enum Types.ERC721Type |
undefined |
| colSalt |
bytes32 |
undefined |
| blocknumber |
uint256 |
undefined |
| splitter |
address |
undefined |
function createCollection(uint8 _tokenType, string _tokenSalt, string _name, string _symbol, uint256 _price, uint256 _maxSupply, string _baseURI, address _splitter, uint256 _royalty) external nonpayable
Core public ERC721 token types deployment pusher.
Function Sighash := 0x73fd6808Args passed as params in this function serve as common denominator for all token types.Extra config options must be set directly by through token type specific functions in MADRouter contract.Frontend must attent that salt values must have common pattern so to not replicate same output.
| Name |
Type |
Description |
| _tokenType |
uint8 |
Values legend: 0=Minimal; 1=Basic; 2=Whitelist; 3=Lazy. |
| _tokenSalt |
string |
Nonce/Entropy factor used by CREATE3 method to generate collection deployment address. Must be always different to avoid address collision. |
| _name |
string |
Name of the collection to be deployed. |
| _symbol |
string |
Symbol of the collection to be deployed. |
| _price |
uint256 |
Public mint price of the collection to be deployed. |
| _maxSupply |
uint256 |
Maximum supply of tokens to be minted of the collection to be deployed (Not used for ERC721Minimal token type, since it always equals to one). |
| _baseURI |
string |
The URL + CID to be added the tokenID and suffix (.json) by the tokenURI function in the collection to be deployed (baseURI used as tokenURI itself for the ERC721Minimal token type). |
| _splitter |
address |
Previously deployed Splitter implementation so to validate and attach to collection. |
| _royalty |
uint256 |
Ranges in between 0%-10%, in percentage basis points, accepted (Min tick := 25). |
function creatorAuth(address _token, address _user) external view returns (bool stdout)
Authority validator for no-fee marketplace listing.
Function Sighash := 0x76de0f3dBinds Marketplace's pull payment methods to Factory storage.
| Name |
Type |
Description |
| _token |
address |
Address of the traded token. |
| _user |
address |
Token Seller that must match collection creator for no-fee listing. |
| Name |
Type |
Description |
| stdout |
bool |
:= 1 as boolean standard output. |
function creatorCheck(bytes32 _colID) external view returns (address creator, bool check)
Authority validator for MADRouter creator settings and withdraw functions.
Function Sighash := 0xb64bd5eb
| Name |
Type |
Description |
| _colID |
bytes32 |
32 bytes collection ID value. |
| Name |
Type |
Description |
| creator |
address |
bb |
| check |
bool |
Boolean output to either approve or reject call's tx.origin function access. |
function erc20() external view returns (contract ERC20)
ERC20 payment token address
| Name |
Type |
Description |
| _0 |
contract ERC20 |
undefined |
function getColID(address _colAddress) external pure returns (bytes32 colID)
Convert address to colID (20bytes => 32bytes).Function Sighash := 0x617d1d3b
| Name |
Type |
Description |
| _colAddress |
address |
undefined |
| Name |
Type |
Description |
| colID |
bytes32 |
undefined |
function getDeployedAddr(string _salt) external view returns (address)
| Name |
Type |
Description |
| _salt |
string |
undefined |
| Name |
Type |
Description |
| _0 |
address |
undefined |
function getIDsLength(address _user) external view returns (uint256)
Everything in storage can be fetch through the getters natively provided by all public mappings.
This public getter serve as a hook to ease frontend fetching whilst estimating user's colID indexes.Function Sighash := 0x8691fe46
| Name |
Type |
Description |
| _user |
address |
undefined |
| Name |
Type |
Description |
| _0 |
uint256 |
undefined |
function market() external view returns (address)
Instance of MADMarketplace being passed as parameter of creatorAuth.
| Name |
Type |
Description |
| _0 |
address |
undefined |
function name() external pure returns (string)
Function SigHash: 0x06fdde03
| Name |
Type |
Description |
| _0 |
string |
undefined |
function owner() external view returns (address)
| Name |
Type |
Description |
| _0 |
address |
undefined |
function pause() external nonpayable
Paused state initializer for security risk mitigation pratice.
Function Sighash := 0x8456cb59
function paused() external view returns (bool)
| Name |
Type |
Description |
| _0 |
bool |
undefined |
function router() external view returns (address)
Instance of MADRouter being passed as parameter of collection's constructor.
| Name |
Type |
Description |
| _0 |
address |
undefined |
function setMarket(address _market) external nonpayable
_MADMarketplace instance setter.Function Sighash := _
| Name |
Type |
Description |
| _market |
address |
undefined |
function setOwner(address newOwner) external nonpayable
Function Signature := 0x13af4035
| Name |
Type |
Description |
| newOwner |
address |
undefined |
function setRouter(address _router) external nonpayable
MADRouter instance setter.Function Sighash := 0xc0d78655
| Name |
Type |
Description |
| _router |
address |
undefined |
function setSigner(address _signer) external nonpayable
Setter for EIP712 signer/validator instance.Function Sighash := 0x6c19e783
| Name |
Type |
Description |
| _signer |
address |
undefined |
function splitterCheck(string _splitterSalt, address _ambassador, address _project, uint256 _ambShare, uint256 _projectShare) external nonpayable
Splitter deployment pusher.
Function Sighash := 0x9e5c4b70
| Name |
Type |
Description |
| _splitterSalt |
string |
Nonce/Entropy factor used by CREATE3 method. Must be always different to avoid address collision. to generate payment splitter deployment address. |
| _ambassador |
address |
User may submit an addresses to donate 1%-20% of secondary sales royalties (optional, will be disregarded if left empty(value == address(0)). |
| _project |
address |
User may submit an addresses to donate 1%-100% of creators secondary sales royalties (optional, will be disregarded if left empty(value == address(0)). |
| _ambShare |
uint256 |
Percentage (1%-20%) of secondary sales royalties to be donated to an ambassador (optional, will be disregarded if left empty(value == 0)). |
| _projectShare |
uint256 |
Percentage (1%-100%) of secondary sales royalties to be donated to a project taken from the creators resale share (optional, will be disregarded if left empty(value == 0)). |
function splitterInfo(address, address) external view returns (address splitter, bytes32 splitterSalt, address ambassador, address project, uint256 ambShare, uint256 projectShare, bool valid)
Nested mapping that takes an collection creator as key of an hashmap of splitter contracts to its respective deployment configs.
| Name |
Type |
Description |
| _0 |
address |
undefined |
| _1 |
address |
undefined |
| Name |
Type |
Description |
| splitter |
address |
undefined |
| splitterSalt |
bytes32 |
undefined |
| ambassador |
address |
undefined |
| project |
address |
undefined |
| ambShare |
uint256 |
undefined |
| projectShare |
uint256 |
undefined |
| valid |
bool |
undefined |
function typeChecker(bytes32 _colID) external view returns (uint8 pointer)
Returns the collection type uint8 value in case token and user are authorized.Function Sighash := 0xd93cb8fd
| Name |
Type |
Description |
| _colID |
bytes32 |
undefined |
| Name |
Type |
Description |
| pointer |
uint8 |
undefined |
function unpause() external nonpayable
Unpaused state initializer for security risk mitigation pratice.
Function Sighash := 0x3f4ba83a
function userTokens(address, uint256) external view returns (bytes32)
Maps an collection creator, of type address, to an array of colIDs.
| Name |
Type |
Description |
| _0 |
address |
undefined |
| _1 |
uint256 |
undefined |
| Name |
Type |
Description |
| _0 |
bytes32 |
undefined |
event ERC721BasicCreated(address indexed newSplitter, address indexed newCollection, string name, string symbol, uint256 royalties, uint256 maxSupply, uint256 mintPrice)
| Name |
Type |
Description |
newSplitter indexed |
address |
undefined |
newCollection indexed |
address |
undefined |
| name |
string |
undefined |
| symbol |
string |
undefined |
| royalties |
uint256 |
undefined |
| maxSupply |
uint256 |
undefined |
| mintPrice |
uint256 |
undefined |
event ERC721LazyCreated(address indexed newSplitter, address indexed newCollection, string name, string symbol, uint256 royalties, uint256 maxSupply, uint256 mintPrice)
| Name |
Type |
Description |
newSplitter indexed |
address |
undefined |
newCollection indexed |
address |
undefined |
| name |
string |
undefined |
| symbol |
string |
undefined |
| royalties |
uint256 |
undefined |
| maxSupply |
uint256 |
undefined |
| mintPrice |
uint256 |
undefined |
event ERC721MinimalCreated(address indexed newSplitter, address indexed newCollection, string name, string symbol, uint256 royalties, uint256 maxSupply, uint256 mintPrice)
| Name |
Type |
Description |
newSplitter indexed |
address |
undefined |
newCollection indexed |
address |
undefined |
| name |
string |
undefined |
| symbol |
string |
undefined |
| royalties |
uint256 |
undefined |
| maxSupply |
uint256 |
undefined |
| mintPrice |
uint256 |
undefined |
event ERC721WhitelistCreated(address indexed newSplitter, address indexed newCollection, string name, string symbol, uint256 royalties, uint256 maxSupply, uint256 mintPrice)
| Name |
Type |
Description |
newSplitter indexed |
address |
undefined |
newCollection indexed |
address |
undefined |
| name |
string |
undefined |
| symbol |
string |
undefined |
| royalties |
uint256 |
undefined |
| maxSupply |
uint256 |
undefined |
| mintPrice |
uint256 |
undefined |
event MarketplaceUpdated(address indexed newMarket)
| Name |
Type |
Description |
newMarket indexed |
address |
undefined |
event OwnerUpdated(address indexed user, address indexed newOwner)
| Name |
Type |
Description |
user indexed |
address |
undefined |
newOwner indexed |
address |
undefined |
event Paused(address account)
| Name |
Type |
Description |
| account |
address |
undefined |
event PaymentTokenUpdated(address indexed newPaymentToken)
| Name |
Type |
Description |
newPaymentToken indexed |
address |
undefined |
event RouterUpdated(address indexed newRouter)
| Name |
Type |
Description |
newRouter indexed |
address |
undefined |
event SignerUpdated(address indexed newSigner)
| Name |
Type |
Description |
newSigner indexed |
address |
undefined |
event SplitterCreated(address indexed creator, uint256[] shares, address[] payees, address splitter, uint256 flag)
| Name |
Type |
Description |
creator indexed |
address |
undefined |
| shares |
uint256[] |
undefined |
| payees |
address[] |
undefined |
| splitter |
address |
undefined |
| flag |
uint256 |
undefined |
event Unpaused(address account)
| Name |
Type |
Description |
| account |
address |
undefined |
0x4ca88867
0xe0e54ced
0x00adecf0