ManageToken
Updated : 2024.05.23
Contract info
Contract name: MangeToken
View the ManageToken contract on:
Source https://github.com/imantisco/nft-platform-sc-v2/blob/main/contracts/ManageToken.sol
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"ownerUid","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"ownerUid","type":"string"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"offGameToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"ownerUid","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeToken","type":"event"},{"inputs":[{"internalType":"string","name":"_ownerUid","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canRemoveToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ownerUid","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"doAddToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ownerUid","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"doAddTokenByOnGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_ownerUid","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_txFee","type":"uint256"}],"name":"doOffGameToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ownerUid","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"doRemoveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdminUid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ownerUid","type":"string"}],"name":"getOnGameBalanceToken","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenRouter","type":"address"},{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"address","name":"_nftRouter","type":"address"},{"internalType":"string","name":"_adminUid","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenRouter","type":"address"},{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"address","name":"_nftRouter","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_adminUid","type":"string"}],"name":"setAdminUid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]
Error Values
Error String | Description |
---|---|
ManageToken: E01 | admin ๊ณ์ ์ด ์ฌ๋ฐ๋ฅด์ง ์์ |
ManageToken: E02 | router sc ๊ฐ ์๋ |
ManageToken: E03 | zero address |
2024.05.23
Last updated