web3

package
v0.0.0-...-122f59b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Service), "*"),
)
View Source
var ErrInvalidEndpoint = apierrors.NotFound.WithReason("InvalidURL").New("invalid endpoint")

Functions

This section is empty.

Types

type ListOwnerNFTsResponse

type ListOwnerNFTsResponse struct {
	Result model.NFTOwnership  `json:"result"`
	Error  *apierrors.APIError `json:"error"`
}

type Service

type Service struct {
	APIEndpoint config.NFTIndexerAPIEndpoint
	Web3Config  *config.Web3Config
}

func (*Service) GetWeb3Info

func (s *Service) GetWeb3Info(identities []*identity.Info) (*model.UserWeb3Info, error)

func (*Service) ListOwnerNFTs

func (s *Service) ListOwnerNFTs(ownerID web3.ContractID, contractIDs []web3.ContractID) (*model.NFTOwnership, error)

Jump to

Keyboard shortcuts

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