blockchain

package
v0.0.0-...-5d22bd2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GATEWAY = "https://nftstorage.link/ipfs/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auction

type Auction struct {
	Contract *auction.NFTAuction
	Name     string
	ABI      string
	Address  common.Address
}

type Auctions

type Auctions []Auction

type Collection

type Collection struct {
	Contract *collection.NFTCollection
	Name     string
	ABI      string
	Address  common.Address
}

type Collections

type Collections map[string]Collection

type Market

type Market struct {
	Collections
	NFT
	Auctions
	Marketplace
}

type Marketplace

type Marketplace struct {
	Fee              *big.Int
	CollectionsCount *big.Int
	Collections      map[string]models.MarketplaceCollection
	Contract         *marketplace.Marketplace
	Name             string
	ABI              string
	Owner            common.Address
	Address          common.Address
}

type NFT

type NFT struct {
	Contract *nft.NFT
	Address  string
	ABI      string
}

type Web3Dialer

type Web3Dialer struct {
	Web3Client *ethclient.Client
	Contracts  *repository.ContractsRepository

	Logger *log.Logger
	Market
}

func NewWeb3Dialer

func NewWeb3Dialer(
	logger *log.Logger,
	address string,
	contracts *repository.ContractsRepository,
) (*Web3Dialer, error)

func (*Web3Dialer) Load

func (w *Web3Dialer) Load(ctx context.Context) error

func (*Web3Dialer) LoadMarketAuctionContractsFromDB

func (w *Web3Dialer) LoadMarketAuctionContractsFromDB(ctx context.Context) error

func (*Web3Dialer) LoadMarketCollectionContractsFromDB

func (w *Web3Dialer) LoadMarketCollectionContractsFromDB(ctx context.Context) error

func (*Web3Dialer) LoadMarketContractFromDB

func (w *Web3Dialer) LoadMarketContractFromDB(ctx context.Context) error

func (*Web3Dialer) LoadMarketFee

func (w *Web3Dialer) LoadMarketFee() error

func (*Web3Dialer) LoadMarketName

func (w *Web3Dialer) LoadMarketName() error

func (*Web3Dialer) LoadMarketOwner

func (w *Web3Dialer) LoadMarketOwner() error

func (*Web3Dialer) LoadMarketplaceInfoFromWeb3

func (w *Web3Dialer) LoadMarketplaceInfoFromWeb3() error

Jump to

Keyboard shortcuts

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