event

package
v0.0.0-...-fdde37d Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DisputeGameMoveName = "Move"

	DisputeGameMovedHash = crypto.Keccak256([]byte("Move(uint256,bytes32,address)"))
)
View Source
var (
	DisputeGameCreatedName = "DisputeGameCreated"

	DisputeGameCreatedHash = crypto.Keccak256([]byte("DisputeGameCreated(address,uint32,bytes32)"))
)
View Source
var (
	DisputeGameResolvedName = "Resolved"

	DisputeGameResolvedHash = crypto.Keccak256([]byte("Resolved(uint8)"))
)

Functions

func DataToAddress

func DataToAddress(vLog types.Log, index int64) common.Address

func DataToAddressArray

func DataToAddressArray(vLog types.Log, index int64) []string

func DataToArrayOffsetAndLength

func DataToArrayOffsetAndLength(vLog types.Log, index int64) (int64, int64)

func DataToBool

func DataToBool(vLog types.Log, index int64) bool

func DataToHash

func DataToHash(vLog types.Log, index int64) common.Hash

func DataToHashArray

func DataToHashArray(vLog types.Log, index int64) []string

func DataToInt64

func DataToInt64(vLog types.Log, index int64) int64

func DataToInt64Array

func DataToInt64Array(vLog types.Log, index int64) []int64

func DataToString

func DataToString(vLog types.Log, index int64) string

func GetSender

func GetSender(rpc *ethclient.Client, blockHash, txHash common.Hash, txIndex uint) (*common.Address, error)

func StartAndEndTokenIDToString

func StartAndEndTokenIDToString(startTokenID, endTokenID int64) (string, int64)

func ToJSON

func ToJSON(obj interface{}) (string, error)

func TokenIDsToString

func TokenIDsToString(tokenIDs []int64) string

func TopicToAddress

func TopicToAddress(vLog types.Log, index int64) common.Address

func TopicToArrayOffsetAndLength

func TopicToArrayOffsetAndLength(vLog types.Log, index int64) (int64, int64)

func TopicToBool

func TopicToBool(vLog types.Log, index int64) bool

func TopicToHash

func TopicToHash(vLog types.Log, index int64) common.Hash

func TopicToInt64

func TopicToInt64(vLog types.Log, index int64) int64

func TopicToInt64Array

func TopicToInt64Array(vLog types.Log, index int64) []int64

Types

type DisputeGameCreated

type DisputeGameCreated struct {
	DisputeProxy string `json:"disputeProxy"`
	GameType     uint32 `json:"gameType"`
	RootClaim    string `json:"rootClaim"`
}

func (*DisputeGameCreated) Data

func (*DisputeGameCreated) Data(log types.Log) (string, error)

func (*DisputeGameCreated) EventHash

func (*DisputeGameCreated) EventHash() common.Hash

func (*DisputeGameCreated) Name

func (*DisputeGameCreated) Name() string

func (*DisputeGameCreated) ToObj

func (t *DisputeGameCreated) ToObj(data string) error

type DisputeGameMove

type DisputeGameMove struct {
	ParentIndex *big.Int `json:"parentIndex"`
	Claim       string   `json:"claim"`
	Claimant    string   `json:"claimant"`
}

func (*DisputeGameMove) Data

func (*DisputeGameMove) Data(log types.Log) (string, error)

func (*DisputeGameMove) EventHash

func (*DisputeGameMove) EventHash() common.Hash

func (*DisputeGameMove) Name

func (*DisputeGameMove) Name() string

func (*DisputeGameMove) ToObj

func (t *DisputeGameMove) ToObj(data string) error

type DisputeGameResolved

type DisputeGameResolved struct {
	Status uint8 `json:"status"`
}

func (*DisputeGameResolved) Data

func (*DisputeGameResolved) Data(log types.Log) (string, error)

func (*DisputeGameResolved) EventHash

func (*DisputeGameResolved) EventHash() common.Hash

func (*DisputeGameResolved) Name

func (*DisputeGameResolved) Name() string

func (*DisputeGameResolved) ToObj

func (t *DisputeGameResolved) ToObj(data string) error

Jump to

Keyboard shortcuts

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