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 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 NFTDataList ¶
type NFTDataList []NFTData
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
}
Click to show internal directories.
Click to hide internal directories.