argtype

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrPtr

func AddrPtr(a types.Address) *types.Address

func HashPtr

func HashPtr(h types.Hash) *types.Hash

Types

type Big

type Big big.Int

func ArgBigPtr

func ArgBigPtr(b *big.Int) *Big

func (Big) ImplementsGraphQLType

func (b Big) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType returns true if Big implements the provided GraphQL type.

func (Big) MarshalText

func (b Big) MarshalText() ([]byte, error)

func (*Big) UnmarshalGraphQL

func (b *Big) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL unmarshals the provided GraphQL query data.

func (*Big) UnmarshalText

func (b *Big) UnmarshalText(input []byte) error

type Bytes

type Bytes []byte

func BytesPtr

func BytesPtr(b []byte) *Bytes

func (Bytes) ImplementsGraphQLType

func (b Bytes) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType returns true if Bytes implements the specified GraphQL type.

func (Bytes) MarshalText

func (b Bytes) MarshalText() ([]byte, error)

func (*Bytes) UnmarshalGraphQL

func (b *Bytes) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL unmarshals the provided GraphQL query data.

func (*Bytes) UnmarshalText

func (b *Bytes) UnmarshalText(input []byte) error

type Log

type Log struct {
	Address     types.Address `json:"address"`
	Topics      []types.Hash  `json:"topics"`
	Data        Bytes         `json:"data"`
	BlockNumber Uint64        `json:"blockNumber"`
	TxHash      types.Hash    `json:"transactionHash"`
	TxIndex     Uint64        `json:"transactionIndex"`
	BlockHash   types.Hash    `json:"blockHash"`
	LogIndex    Uint64        `json:"logIndex"`
	Removed     bool          `json:"removed"`
}

func FromRPCLog

func FromRPCLog(log *rpc.Log) *Log

type Long

type Long int64

func (Long) ImplementsGraphQLType

func (b Long) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType returns true if Long implements the provided GraphQL type.

func (*Long) UnmarshalGraphQL

func (b *Long) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL unmarshals the provided GraphQL query data.

type Uint64

type Uint64 uint64

func UintPtr

func UintPtr(n uint64) *Uint64

func (Uint64) ImplementsGraphQLType

func (u Uint64) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType returns true if Uint64 implements the provided GraphQL type.

func (Uint64) MarshalText

func (u Uint64) MarshalText() ([]byte, error)

func (*Uint64) UnmarshalGraphQL

func (u *Uint64) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL unmarshals the provided GraphQL query data.

func (*Uint64) UnmarshalText

func (u *Uint64) UnmarshalText(input []byte) error

Jump to

Keyboard shortcuts

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