Visage Shop
Contracts
Addresses
Name | Mainnet | Testnet |
---|---|---|
DFK Chain |
|
|
Klaytn |
|
|
Interface
interface IVisageShop {
// Events
event FeeDisbursed(address indexed source, address indexed from, address indexed to, address token, uint256 amount, uint64 timestamp);
event OfferingPurchased(address indexed player, uint256 indexed offeringId, uint128 price, uint16 quantity, address paymentToken, tuple(address equipmentContract, uint8 equipmentType, uint16 displayId, uint8 rarity)[] items);
event PromoMessage(uint256 indexed offeringId, string message);
// Functions
function buyOfferingWithGovToken(uint256 _offeringId, uint16 _quantity, uint256 _govTokenAmountMax, uint256 _deadline, address _mintTo) payable;
function buyOfferingWithStablecoin(uint256 _offeringId, uint16 _quantity, address _mintTo);
function buyOfferingsWithStablecoin(uint256[] _offeringIds, uint16[] _quantities, address _mintTo);
function buyPromoOfferingWithGovToken(uint256 _offeringId, uint16 _quantity, uint256 _govTokenAmountMax, uint256 _deadline, address _mintTo, string _message) payable;
function buyPromoOfferingWithStablecoin(uint256 _offeringId, uint16 _quantity, address _mintTo, string _message);
function getGovTokenPrice() view returns (uint256);
function getOffering(uint256 _offeringId) view returns (tuple(uint32 id, uint128 price, uint32 maxAvailable, uint64 craftedBy, uint64 startTime, uint64 endTime, bool isPromo, bool isFeatured, tuple(address equipmentContract, uint8 equipmentType, uint16 displayId, uint8 rarity)[] items, uint16 groupId));
function getOfferingIds() view returns (uint256[]);
function getOfferings() view returns (tuple(uint32 id, uint128 price, uint32 maxAvailable, uint64 craftedBy, uint64 startTime, uint64 endTime, bool isPromo, bool isFeatured, tuple(address equipmentContract, uint8 equipmentType, uint16 displayId, uint8 rarity)[] items, uint16 groupId)[]);
function paused() view returns (bool);
function purchaseCounts(uint256) view returns (uint32);
}
ABI
Last updated