Documentation ¶
Index ¶
- Variables
- func DataToAddress(vLog types.Log, index int64) common.Address
- func DataToAddressArray(vLog types.Log, index int64) []string
- func DataToArrayOffsetAndLength(vLog types.Log, index int64) (int64, int64)
- func DataToBool(vLog types.Log, index int64) bool
- func DataToHash(vLog types.Log, index int64) common.Hash
- func DataToHashArray(vLog types.Log, index int64) []string
- func DataToInt64(vLog types.Log, index int64) int64
- func DataToInt64Array(vLog types.Log, index int64) []int64
- func DataToString(vLog types.Log, index int64) string
- func GetSender(rpc *ethclient.Client, blockHash, txHash common.Hash, txIndex uint) (*common.Address, error)
- func StartAndEndTokenIDToString(startTokenID, endTokenID int64) (string, int64)
- func ToJSON(obj interface{}) (string, error)
- func TokenIDsToString(tokenIDs []int64) string
- func TopicToAddress(vLog types.Log, index int64) common.Address
- func TopicToArrayOffsetAndLength(vLog types.Log, index int64) (int64, int64)
- func TopicToBool(vLog types.Log, index int64) bool
- func TopicToHash(vLog types.Log, index int64) common.Hash
- func TopicToInt64(vLog types.Log, index int64) int64
- func TopicToInt64Array(vLog types.Log, index int64) []int64
- type DisputeGameCreated
- type DisputeGameMove
- type DisputeGameResolved
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 TokenIDsToString ¶
Types ¶
type DisputeGameCreated ¶
type DisputeGameCreated struct { DisputeProxy string `json:"disputeProxy"` GameType uint32 `json:"gameType"` RootClaim string `json:"rootClaim"` }
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) 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) EventHash ¶
func (*DisputeGameResolved) EventHash() common.Hash
func (*DisputeGameResolved) Name ¶
func (*DisputeGameResolved) Name() string
func (*DisputeGameResolved) ToObj ¶
func (t *DisputeGameResolved) ToObj(data string) error
Click to show internal directories.
Click to hide internal directories.