graphql

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TransferOwnershipDocument = `mutation transferOwnership ($tx: MetadataTransactionInput!) {
	metadata(tx: $tx) {
		cid
	}
}
`

Variables

This section is empty.

Functions

This section is empty.

Types

type Ancon721Metadata

type Ancon721Metadata struct {
	Name        string     `json:"name"`
	Description string     `json:"description"`
	Image       string     `json:"image"`
	Parent      *string    `json:"parent,omitempty"`
	Owner       *string    `json:"owner,omitempty"`
	Sources     []*DagLink `json:"sources,omitempty"`
}

type Client

type Client struct {
	Client *client.Client
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOption) *Client

func (*Client) TransferOwnership

func (c *Client) TransferOwnership(ctx context.Context, tx MetadataTransactionInput, httpRequestOptions ...client.HTTPRequestOption) (*TransferOwnership, error)

type DagContractTrusted

type DagContractTrusted struct {
	Data    *DagLink          `json:"data,omitempty"`
	Payload *Ancon721Metadata `json:"payload,omitempty"`
}
type DagLink struct {
	Path string `json:"path"`
	Cid  string `json:"cid"`
}

type MetadataTransactionInput

type MetadataTransactionInput struct {
	Path     string `json:"path"`
	Cid      string `json:"cid"`
	Owner    string `json:"owner"`
	NewOwner string `json:"newOwner"`
}

type Query

type Query struct {
	Metadata *Ancon721Metadata "json:\"metadata\" graphql:\"metadata\""
}

type Transaction

type Transaction struct {
	Metadata DagLink "json:\"metadata\" graphql:\"metadata\""
}

type TransferOwnership

type TransferOwnership struct {
	Metadata struct {
		Cid string "json:\"cid\" graphql:\"cid\""
	} "json:\"metadata\" graphql:\"metadata\""
}

Jump to

Keyboard shortcuts

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