graphql

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

* Copyright (C) 2018 The ontology Authors * This file is part of The ontology library. * * The ontology is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ontology is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ontology. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlock

func NewBlock(b *types.Block) *block

func NewHeader

func NewHeader(h *types.Header) *header

func NewTransaction

func NewTransaction(tx *types.Transaction, height uint32) *transaction

func StartServer

func StartServer(cfg *config.GraphQLConfig)

Types

type Addr

type Addr struct {
	common.Address
}

func (Addr) ImplementsGraphQLType

func (Addr) ImplementsGraphQLType(name string) bool

func (Addr) MarshalJSON

func (t Addr) MarshalJSON() ([]byte, error)

func (*Addr) UnmarshalGraphQL

func (t *Addr) UnmarshalGraphQL(input interface{}) error

type H256

type H256 common.Uint256

func (H256) ImplementsGraphQLType

func (H256) ImplementsGraphQLType(name string) bool

func (H256) MarshalJSON

func (t H256) MarshalJSON() ([]byte, error)

func (*H256) UnmarshalGraphQL

func (t *H256) UnmarshalGraphQL(input interface{}) error

type PubKey

type PubKey string

func (PubKey) ImplementsGraphQLType

func (PubKey) ImplementsGraphQLType(name string) bool

func (PubKey) MarshalJSON

func (key PubKey) MarshalJSON() ([]byte, error)

func (*PubKey) UnmarshalGraphQL

func (key *PubKey) UnmarshalGraphQL(input interface{}) error

type Sig

type Sig struct {
	SigData []string
	PubKeys []PubKey
	M       Uint32
}

type TxPayload

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

func NewTxPayload

func NewTxPayload(pl types.Payload) *TxPayload

func (*TxPayload) Code

func (self *TxPayload) Code() string

func (*TxPayload) ToDeployCode

func (self *TxPayload) ToDeployCode() (*deployCodePayload, bool)

func (*TxPayload) ToInvokeCode

func (self *TxPayload) ToInvokeCode() (*invokeCodePayload, bool)

type TxType

type TxType string
const DEPLOY_NEO TxType = "DEPLOY_NEO"
const DEPLOY_WASM TxType = "DEPLOY_WASM"
const INVOKE_NEO TxType = "INVOKE_NEO"
const INVOKE_WASM TxType = "INVOKE_WASM"

type Uint32

type Uint32 uint32

func (Uint32) ImplementsGraphQLType

func (Uint32) ImplementsGraphQLType(name string) bool

func (Uint32) MarshalJSON

func (t Uint32) MarshalJSON() ([]byte, error)

func (*Uint32) UnmarshalGraphQL

func (t *Uint32) UnmarshalGraphQL(input interface{}) error

type Uint64

type Uint64 uint64

func (Uint64) ImplementsGraphQLType

func (Uint64) ImplementsGraphQLType(name string) bool

func (Uint64) MarshalJSON

func (t Uint64) MarshalJSON() ([]byte, error)

func (*Uint64) UnmarshalGraphQL

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

Directories

Path Synopsis
Package schema generated by go-bindata.// sources: schema.graphql
Package schema generated by go-bindata.// sources: schema.graphql

Jump to

Keyboard shortcuts

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