Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

game8 source realm

Functions 44

func BanAddress

crossing Action
1func BanAddress(cur realm, targetAddr string, reason string, durationSecs int64)
source

BanAddress bans a player address. durationSecs=0 means permanent.

func BlacklistStatus

Action
1func BlacklistStatus(addr string) string
source

BlacklistStatus returns the ban status of an address as a JSON string.

func ClaimMine

crossing Action
1func ClaimMine(cur realm, coinsJson string)
source

ClaimMine records mined coins into pending mints for the caller. coinsJson format: [["coinId","amount"],...]

func ClaimPvpTimeout

crossing Action
1func ClaimPvpTimeout(cur realm, lobbyId string)
source

ClaimPvpTimeout allows a lobby participant to claim a timeout win. Only the creator or challenger may call this.

func ClearPendingMints

crossing Action
1func ClearPendingMints(cur realm, playerAddr string, coinsJson string)
source

ClearPendingMints is called by the treasury server after successful GRC20 minting. Removes pending balance and credits the player's spendable balances tree.

func CreateTask

crossing Action
1func CreateTask(cur realm, taskId string, desc string)
source

CreateTask registers a new task on-chain.

func PlaceCasinoBet

crossing Action
1func PlaceCasinoBet(cur realm, roundId string, game string, coinId string, betAmount string, choice string, clientSeed string)
source

func RevealPvpMove

crossing Action
1func RevealPvpMove(cur realm, lobbyId string, choice string, salt string)
source

RevealPvpMove requires both players to have committed before either can reveal.

func SetMinter

crossing Action
1func SetMinter(cur realm, newMinter string)
source

SetMinter registers the authorized minter realm address so it can call ClearPendingMints. Called once after minter5 is deployed.

Dependencies

Source Files 2