Skip to main content

IP12CoinFactoryUpgradeable

IP12CoinFactoryUpgradeable

register

function register(string gameId, address developer) external

create

function create(string name, string symbol, string gameId, string gameCoinIconUrl, uint256 amountGameCoin, uint256 amountP12) external returns (contract IP12GameCoin)

queueMintCoin

function queueMintCoin(string gameId, contract IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external returns (bool)

executeMintCoin

function executeMintCoin(contract IP12GameCoin gameCoinAddress, bytes32 mintId) external returns (bool)

withdraw

function withdraw(address userAddress, contract IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external returns (bool)

setDev

function setDev(address newDev) external

setP12Mine

function setP12Mine(contract IP12MineUpgradeable newP12Mine) external

setGaugeController

function setGaugeController(contract IGaugeController newGaugeController) external

setUniswapFactory

function setUniswapFactory(contract IUniswapV2Factory newUniswapFactory) external

setUniswapRouter

function setUniswapRouter(contract IUniswapV2Router02 newUniswapRouter) external

setP12Token

function setP12Token(address newP12Token) external

getMintFee

function getMintFee(contract IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256)

getMintDelay

function getMintDelay(contract IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256)

setDelayK

function setDelayK(uint256 delayK) external returns (bool)

setDelayB

function setDelayB(uint256 delayB) external returns (bool)

MisMatchCoinWithGameId

error MisMatchCoinWithGameId(contract IP12GameCoin coin, string gameId)

NonExistenceMintId

error NonExistenceMintId(bytes32 mintId)

ExecutedMint

error ExecutedMint(bytes32 mintId)

NotTimeToMint

error NotTimeToMint(bytes32 mintId)

NotP12Dev

error NotP12Dev()

InvalidLiquidity

error InvalidLiquidity()

RegisterGame

event RegisterGame(string gameId, address developer)

CreateGameCoin

event CreateGameCoin(contract IP12GameCoin gameCoinAddress, string gameId, uint256 amountP12)

QueueMintCoin

event QueueMintCoin(bytes32 mintId, contract IP12GameCoin gameCoinAddress, uint256 mintAmount, uint256 unlockTimestamp, uint256 amountP12)

ExecuteMintCoin

event ExecuteMintCoin(bytes32 mintId, contract IP12GameCoin gameCoinAddress, address executor)

Withdraw

event Withdraw(address userAddress, contract IP12GameCoin gameCoinAddress, uint256 amountGameCoin)

SetDev

event SetDev(address oldDev, address newDev)

SetP12Mine

event SetP12Mine(contract IP12MineUpgradeable oldP12Mine, contract IP12MineUpgradeable newP12Mine)

SetGaugeController

event SetGaugeController(contract IGaugeController oldGaugeController, contract IGaugeController newGaugeController)

SetUniswapFactory

event SetUniswapFactory(contract IUniswapV2Factory oldUniswapFactory, contract IUniswapV2Factory newUniswapFactory)

SetUniswapRouter

event SetUniswapRouter(contract IUniswapV2Router02 oldUniswapRouter, contract IUniswapV2Router02 newUniswapRouter)

SetP12Token

event SetP12Token(address oldP12Token, address newP12Token)

SetDelayB

event SetDelayB(uint256 oldDelayB, uint256 newDelayB)

SetDelayK

event SetDelayK(uint256 oldDelayK, uint256 newDelayK)