blockchain

package
v0.0.0-...-7da2348 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitResults

func InitResults() *model.BlockchainHistory

InitResults function prepares the BlockchainHistory struct with the necessary addresses required for interacting with the smart contract and for recording game results.

func Run

func Run(history *model.BlockchainHistory)

Types

type GameResult

type GameResult struct {
	Player1       common.Address `abi:"player1"`
	Player2       common.Address `abi:"player2"`
	Player1Choice uint8          `abi:"player1Choice"`
	Player2Choice uint8          `abi:"player2Choice"`
	Result        uint8          `abi:"result"`
	Timestamp     *big.Int       `abi:"timestamp"`
}

type Harmony

type Harmony struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL