Verified contractPartialMIT
RainiNft1155Functions
Address0xae478ef5d08b04ffa266b78fa9c2568cddba6d40
- Balance
0.587455 ETH
- Transactions
346
- Compiler
solc 0.8.3
- Same code
Only this contract
Details
- Compiler
- solc 0.8.3+commit.8d00100c
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 13,636,397
- Creation transaction
- 0x6791d74ab0…f331488a88
Read14
- DEFAULT_ADMIN_ROLE() → (bytes32)
- POINT_COST_DECIMALS() → (uint256)
- getRoleAdmin(bytes32) → (bytes32)
- hasRole(bytes32,address) → (bool)
- mergeFees(uint256) → (uint256)
- minPointsPercentToMint() → (uint256)
- mintingFeeBasisPoints() → (uint256)
- nftStakingPoolAddress() → (address)
- rainbowPools(address) → (bool)
- rainbowToEth() → (uint256)
- startTimeOverrides(uint256) → (uint256)
- supportsInterface(bytes4) → (bool)
- unicornPools(address) → (bool)
- unicornToEth() → (uint256)
Write14
- addRainbowPool(address)
- addUnicornPool(address)
- grantRole(bytes32,address)
- merge(uint256,uint256,uint256,uint256[],uint256[],uint256[])
- mintWithPoints(uint256[],uint256[],bool[],uint256[][],address[],address[])
- removeRainbowPool(address)
- removeUnicornPool(address)
- renounceRole(bytes32,address)
- revokeRole(bytes32,address)
- setEtherValues(uint256,uint256,uint256)
- setFees(uint256,uint256[])
- setNftStakingPoolAddress(address)
- setTimeStartOverrides(uint256[],uint256[])
- withdrawEth(uint256)
Events3
- RoleAdminChanged(bytes32,bytes32,bytes32)
- RoleGranted(bytes32,address,address)
- RoleRevoked(bytes32,address,address)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_nftContractAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_contractOwner",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "RoleAdminChanged",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "previousAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "newAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "RoleGranted",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RoleRevoked",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "DEFAULT_ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "POINT_COST_DECIMALS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "addRainbowPool",
"type": "function",
"inputs": [
{
"name": "_rainbowPool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "addUnicornPool",
"type": "function",
"inputs": [
{
"name": "_unicornPool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getRoleAdmin",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "grantRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "hasRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "merge",
"type": "function",
"inputs": [
{
"name": "_cardId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_level",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_mintAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_tokenIds",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "_burnAmounts",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "_data",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "mergeFees",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "minPointsPercentToMint",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "mintWithPoints",
"type": "function",
"inputs": [
{
"name": "_cardId",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "_amount",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "_useUnicorns",
"type": "bool[]",
"internalType": "bool[]"
},
{
"name": "_data",
"type": "uint256[][]",
"internalType": "uint256[][]"
},
{
"name": "_rainbowPools",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "_unicornPools",
"type": "address[]",
"internalType": "address[]"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "mintingFeeBasisPoints",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "nftStakingPoolAddress",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "rainbowPools",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "rainbowToEth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "removeRainbowPool",
"type": "function",
"inputs": [
{
"name": "_rainbowPool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "removeUnicornPool",
"type": "function",
"inputs": [
{
"name": "_unicornPool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setEtherValues",
"type": "function",
"inputs": [
{
"name": "_unicornToEth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_rainbowToEth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_minPointsPercentToMint",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setFees",
"type": "function",
"inputs": [
{
"name": "_mintingFeeBasisPoints",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_mergeFees",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setNftStakingPoolAddress",
"type": "function",
"inputs": [
{
"name": "_nftStakingPoolAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setTimeStartOverrides",
"type": "function",
"inputs": [
{
"name": "_cardId",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "_newStartTime",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "startTimeOverrides",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "supportsInterface",
"type": "function",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "unicornPools",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "unicornToEth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdrawEth",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.