You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function addToken(addresstoken) external nonpayable
Adds a new token that'll be enabled for the games' betting. Token shouldn't exist yet.
Parameters
Name
Type
Description
token
address
Address of the token.
getTokenConfig
function getTokenConfig(addresstoken) externalviewreturns (struct IPvPGamesStore.Token config)
Parameters
Name
Type
Description
token
address
undefined
Returns
Name
Type
Description
config
IPvPGamesStore.Token
undefined
getTokens
function getTokens() externalviewreturns (struct IPvPGamesStore.TokenMetadata[])
For the front-end
Returns
Name
Type
Description
_0
IPvPGamesStore.TokenMetadata[]
undefined
getTokensAddresses
function getTokensAddresses() externalviewreturns (address[])
Returns
Name
Type
Description
_0
address[]
undefined
getTreasuryAndTeamAddresses
function getTreasuryAndTeamAddresses() externalviewreturns (address, address)
Returns
Name
Type
Description
_0
address
undefined
_1
address
undefined
owner
function owner() externalviewreturns (address)
Returns the address of the current owner.
Returns
Name
Type
Description
_0
address
undefined
renounceOwnership
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
setHouseEdgeSplit
function setHouseEdgeSplit(addresstoken, uint16dividend, uint16treasury, uint16team, uint16initiator) external nonpayable
Sets the token's house edge allocations for bet payout.
dividend, _treasuryWallet and team rates sum must equals 10000.
Parameters
Name
Type
Description
token
address
Address of the token.
dividend
uint16
Rate to be allocated as staking rewards, on bet payout.
treasury
uint16
Rate to be allocated to the treasuryWallet, on bet payout.
team
uint16
Rate to be allocated to the team, on bet payout.
initiator
uint16
Rate to be allocated to the initiator of the bet, on bet payout.
setTeamWallet
function setTeamWallet(address_teamWallet) external nonpayable
Sets the new team wallet.
Parameters
Name
Type
Description
_teamWallet
address
The team wallet address.
setVRFSubId
function setVRFSubId(addresstoken, uint64vrfSubId) external nonpayable
Sets the Chainlink VRF subId.
Parameters
Name
Type
Description
token
address
undefined
vrfSubId
uint64
New subId.
teamWallet
function teamWallet() externalviewreturns (address)
Returns
Name
Type
Description
_0
address
undefined
tokens
function tokens(address) externalviewreturns (uint64vrfSubId, struct IPvPGamesStore.HouseEdgeSplit houseEdgeSplit)
Maps tokens addresses to token configuration.
Parameters
Name
Type
Description
_0
address
undefined
Returns
Name
Type
Description
vrfSubId
uint64
undefined
houseEdgeSplit
IPvPGamesStore.HouseEdgeSplit
undefined
transferOwnership
function transferOwnership(addressnewOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
Name
Type
Description
newOwner
address
undefined
treasuryWallet
function treasuryWallet() externalviewreturns (address)