web3mod

package
v0.0.0-...-d2182b9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package web3mod is a generated GoMock package.

Index

Constants

View Source
const (
	ContractERC721Type  = "erc721"
	ContractERC1155Type = "erc1155"
	ContractOtherType   = "other"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetWalletNFTsIn

type GetWalletNFTsIn struct {
	ChainID          int
	Wallet           string
	NFTAddressFilter string
}

type GetWalletNFTsOut

type GetWalletNFTsOut struct {
	List  *WalletNFTs `json:"list"`
	Error error       `json:"error"`
}

type MockWeb3

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

MockWeb3 is a mock of Web3 interface.

func NewMockWeb3

func NewMockWeb3(ctrl *gomock.Controller) *MockWeb3

NewMockWeb3 creates a new mock instance.

func (*MockWeb3) EXPECT

func (m *MockWeb3) EXPECT() *MockWeb3MockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWeb3) GetWalletNFTs

func (m *MockWeb3) GetWalletNFTs(in GetWalletNFTsIn) GetWalletNFTsOut

GetWalletNFTs mocks base method.

type MockWeb3MockRecorder

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

MockWeb3MockRecorder is the mock recorder for MockWeb3.

func (*MockWeb3MockRecorder) GetWalletNFTs

func (mr *MockWeb3MockRecorder) GetWalletNFTs(in interface{}) *gomock.Call

GetWalletNFTs indicates an expected call of GetWalletNFTs.

type NFTData

type NFTData struct {
	TokenID      string `json:"token_id"`
	TokenBalance string `json:"token_balance"`
	TokenURL     string `json:"token_url"`
}

type NFTDataList

type NFTDataList []NFTData

type WalletNFT

type WalletNFT struct {
	ContractAddress string      `json:"contract_address"`
	ContractName    string      `json:"contract_name"`
	ContractSymbol  string      `json:"contract_symbol"`
	ContractType    string      `json:"contract_type"`
	LogoURL         string      `json:"logo_url"`
	NFTData         NFTDataList `json:"nft_data"`
}

type WalletNFTs

type WalletNFTs []WalletNFT

func (WalletNFTs) FilterByAddress

func (w WalletNFTs) FilterByAddress(address string) WalletNFTs

func (WalletNFTs) IsEmpty

func (w WalletNFTs) IsEmpty() bool

type Web3

type Web3 interface {
	GetWalletNFTs(in GetWalletNFTsIn) GetWalletNFTsOut
}

Jump to

Keyboard shortcuts

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