subgraph

package
v1.8.8-dev Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	DeliveryAt string
	DestURL    string `graphql:"destURL"`
	ID         string
	IsPaid     bool
	Seller     struct {
		Address string
	}
	Buyer struct {
		Address string
	}
}

type SubgraphClient

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

func NewClient

func NewClient(subgraphURL string) *SubgraphClient

func (*SubgraphClient) GetAllPositions

func (c *SubgraphClient) GetAllPositions(ctx context.Context, deliveryAt time.Time) ([]contracts.FuturesContract, error)

func (*SubgraphClient) GetPositionsBySeller

func (c *SubgraphClient) GetPositionsBySeller(ctx context.Context, sellerAddr common.Address, deliveryAt time.Time) ([]contracts.FuturesContract, error)

Jump to

Keyboard shortcuts

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