ICharacterSale

Git Source

Inherits: ICharacter

Functions

buy

function buy(
    address from_,
    uint256 usdcSent_,
    uint256 validAfter_,
    uint256 validBefore_,
    bytes32 nonce_,
    Signature calldata signature_,
    string memory tokenURI_
) external returns (uint256 mintedId);

sendUsdcToBankAndGameController

function sendUsdcToBankAndGameController() external;

changeGameController

function changeGameController(address gameController_) external;

changeGameControllerFeePercentage

function changeGameControllerFeePercentage(uint256 gameControllerFeePercentage_) external;

getPrice

function getPrice() external view returns (uint256 price_);

Events

CharacterBought

event CharacterBought(address indexed buyer, uint256 indexed charId, uint256 price, string tokenURI);

Structs

Signature

struct Signature {
    uint8 v;
    bytes32 r;
    bytes32 s;
}