mock_contracts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: contracts/contracts.go

Generated by this command:

mockgen -source=contracts/contracts.go

Package mock_contracts is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContractsService

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

MockContractsService is a mock of ContractsService interface.

func NewMockContractsService

func NewMockContractsService(ctrl *gomock.Controller) *MockContractsService

NewMockContractsService creates a new mock instance.

func (*MockContractsService) CalculateTxParams

func (m *MockContractsService) CalculateTxParams(conn *ethclient.Client, address common.Address) (*big.Int, uint64, error)

CalculateTxParams mocks base method.

func (*MockContractsService) CallContract

func (m *MockContractsService) CallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)

CallContract mocks base method.

func (*MockContractsService) Commit

Commit mocks base method.

func (*MockContractsService) ConnectToNamewrapperContract

func (m *MockContractsService) ConnectToNamewrapperContract(conn *ethclient.Client) (*anytype_crypto.AnytypeNameWrapper, error)

ConnectToNamewrapperContract mocks base method.

func (*MockContractsService) ConnectToPrivateController added in v0.1.4

ConnectToPrivateController mocks base method.

func (*MockContractsService) ConnectToRegistrar

ConnectToRegistrar mocks base method.

func (*MockContractsService) ConnectToRegistryContract

func (m *MockContractsService) ConnectToRegistryContract(conn *ethclient.Client) (*anytype_crypto.ENSRegistry, error)

ConnectToRegistryContract mocks base method.

func (*MockContractsService) ConnectToResolver

func (m *MockContractsService) ConnectToResolver(conn *ethclient.Client) (*anytype_crypto.AnytypeResolver, error)

ConnectToResolver mocks base method.

func (*MockContractsService) CreateEthConnection

func (m *MockContractsService) CreateEthConnection() (*ethclient.Client, error)

CreateEthConnection mocks base method.

func (*MockContractsService) EXPECT

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

func (*MockContractsService) GenerateAuthOptsForAdmin

func (m *MockContractsService) GenerateAuthOptsForAdmin(conn *ethclient.Client) (*bind.TransactOpts, error)

GenerateAuthOptsForAdmin mocks base method.

func (*MockContractsService) GetAdditionalNameInfo

func (m *MockContractsService) GetAdditionalNameInfo(ctx context.Context, conn *ethclient.Client, currentOwner common.Address, fullName string) (string, string, string, *big.Int, error)

GetAdditionalNameInfo mocks base method.

func (*MockContractsService) GetBalanceOf

func (m *MockContractsService) GetBalanceOf(ctx context.Context, client *ethclient.Client, tokenAddress, address common.Address) (*big.Int, error)

GetBalanceOf mocks base method.

func (*MockContractsService) GetNameByAddress

func (m *MockContractsService) GetNameByAddress(conn *ethclient.Client, address common.Address) (string, error)

GetNameByAddress mocks base method.

func (*MockContractsService) GetOwnerForNamehash

func (m *MockContractsService) GetOwnerForNamehash(ctx context.Context, client *ethclient.Client, namehash [32]byte) (common.Address, error)

GetOwnerForNamehash mocks base method.

func (*MockContractsService) GetOwnerOfSmartContractWallet added in v0.1.0

func (m *MockContractsService) GetOwnerOfSmartContractWallet(ctx context.Context, client *ethclient.Client, address common.Address) (common.Address, error)

GetOwnerOfSmartContractWallet mocks base method.

func (*MockContractsService) Init

func (m *MockContractsService) Init(a *app.App) error

Init mocks base method.

func (*MockContractsService) IsContractDeployed

func (m *MockContractsService) IsContractDeployed(ctx context.Context, client *ethclient.Client, address common.Address) (bool, error)

IsContractDeployed mocks base method.

func (*MockContractsService) MakeCommitment

func (m *MockContractsService) MakeCommitment(nameFirstPart string, registrantAccount common.Address, secret [32]byte, controller *anytype_crypto.AnytypeRegistrarControllerPrivate, fullName, ownerAnyAddr, spaceId string, isReverseRecordUpdate bool, registerPeriodMonths uint32) ([32]byte, error)

MakeCommitment mocks base method.

func (*MockContractsService) Name

func (m *MockContractsService) Name() string

Name mocks base method.

func (*MockContractsService) Register

func (m *MockContractsService) Register(ctx context.Context, conn *ethclient.Client, authOpts *bind.TransactOpts, nameFirstPart string, registrantAccount common.Address, secret [32]byte, controller *anytype_crypto.AnytypeRegistrarControllerPrivate, fullName, ownerAnyAddr, spaceId string, isReverseRecord bool, registerPeriodMonths uint32) (*types.Transaction, error)

Register mocks base method.

func (*MockContractsService) RenewName

RenewName mocks base method.

func (*MockContractsService) TxByHash

func (m *MockContractsService) TxByHash(ctx context.Context, client *ethclient.Client, txHash common.Hash) (*types.Transaction, error)

TxByHash mocks base method.

func (*MockContractsService) WaitForTxToStartMining

func (m *MockContractsService) WaitForTxToStartMining(ctx context.Context, conn *ethclient.Client, txHash common.Hash) error

WaitForTxToStartMining mocks base method.

func (*MockContractsService) WaitMined

func (m *MockContractsService) WaitMined(ctx context.Context, client *ethclient.Client, tx *types.Transaction) (bool, error)

WaitMined mocks base method.

type MockContractsServiceMockRecorder

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

MockContractsServiceMockRecorder is the mock recorder for MockContractsService.

func (*MockContractsServiceMockRecorder) CalculateTxParams

func (mr *MockContractsServiceMockRecorder) CalculateTxParams(conn, address any) *gomock.Call

CalculateTxParams indicates an expected call of CalculateTxParams.

func (*MockContractsServiceMockRecorder) CallContract

func (mr *MockContractsServiceMockRecorder) CallContract(ctx, msg any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockContractsServiceMockRecorder) Commit

func (mr *MockContractsServiceMockRecorder) Commit(ctx, conn, opts, commitment, controller any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockContractsServiceMockRecorder) ConnectToNamewrapperContract

func (mr *MockContractsServiceMockRecorder) ConnectToNamewrapperContract(conn any) *gomock.Call

ConnectToNamewrapperContract indicates an expected call of ConnectToNamewrapperContract.

func (*MockContractsServiceMockRecorder) ConnectToPrivateController added in v0.1.4

func (mr *MockContractsServiceMockRecorder) ConnectToPrivateController(conn any) *gomock.Call

ConnectToPrivateController indicates an expected call of ConnectToPrivateController.

func (*MockContractsServiceMockRecorder) ConnectToRegistrar

func (mr *MockContractsServiceMockRecorder) ConnectToRegistrar(conn any) *gomock.Call

ConnectToRegistrar indicates an expected call of ConnectToRegistrar.

func (*MockContractsServiceMockRecorder) ConnectToRegistryContract

func (mr *MockContractsServiceMockRecorder) ConnectToRegistryContract(conn any) *gomock.Call

ConnectToRegistryContract indicates an expected call of ConnectToRegistryContract.

func (*MockContractsServiceMockRecorder) ConnectToResolver

func (mr *MockContractsServiceMockRecorder) ConnectToResolver(conn any) *gomock.Call

ConnectToResolver indicates an expected call of ConnectToResolver.

func (*MockContractsServiceMockRecorder) CreateEthConnection

func (mr *MockContractsServiceMockRecorder) CreateEthConnection() *gomock.Call

CreateEthConnection indicates an expected call of CreateEthConnection.

func (*MockContractsServiceMockRecorder) GenerateAuthOptsForAdmin

func (mr *MockContractsServiceMockRecorder) GenerateAuthOptsForAdmin(conn any) *gomock.Call

GenerateAuthOptsForAdmin indicates an expected call of GenerateAuthOptsForAdmin.

func (*MockContractsServiceMockRecorder) GetAdditionalNameInfo

func (mr *MockContractsServiceMockRecorder) GetAdditionalNameInfo(ctx, conn, currentOwner, fullName any) *gomock.Call

GetAdditionalNameInfo indicates an expected call of GetAdditionalNameInfo.

func (*MockContractsServiceMockRecorder) GetBalanceOf

func (mr *MockContractsServiceMockRecorder) GetBalanceOf(ctx, client, tokenAddress, address any) *gomock.Call

GetBalanceOf indicates an expected call of GetBalanceOf.

func (*MockContractsServiceMockRecorder) GetNameByAddress

func (mr *MockContractsServiceMockRecorder) GetNameByAddress(conn, address any) *gomock.Call

GetNameByAddress indicates an expected call of GetNameByAddress.

func (*MockContractsServiceMockRecorder) GetOwnerForNamehash

func (mr *MockContractsServiceMockRecorder) GetOwnerForNamehash(ctx, client, namehash any) *gomock.Call

GetOwnerForNamehash indicates an expected call of GetOwnerForNamehash.

func (*MockContractsServiceMockRecorder) GetOwnerOfSmartContractWallet added in v0.1.0

func (mr *MockContractsServiceMockRecorder) GetOwnerOfSmartContractWallet(ctx, client, address any) *gomock.Call

GetOwnerOfSmartContractWallet indicates an expected call of GetOwnerOfSmartContractWallet.

func (*MockContractsServiceMockRecorder) Init

Init indicates an expected call of Init.

func (*MockContractsServiceMockRecorder) IsContractDeployed

func (mr *MockContractsServiceMockRecorder) IsContractDeployed(ctx, client, address any) *gomock.Call

IsContractDeployed indicates an expected call of IsContractDeployed.

func (*MockContractsServiceMockRecorder) MakeCommitment

func (mr *MockContractsServiceMockRecorder) MakeCommitment(nameFirstPart, registrantAccount, secret, controller, fullName, ownerAnyAddr, spaceId, isReverseRecordUpdate, registerPeriodMonths any) *gomock.Call

MakeCommitment indicates an expected call of MakeCommitment.

func (*MockContractsServiceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockContractsServiceMockRecorder) Register

func (mr *MockContractsServiceMockRecorder) Register(ctx, conn, authOpts, nameFirstPart, registrantAccount, secret, controller, fullName, ownerAnyAddr, spaceId, isReverseRecord, registerPeriodMonths any) *gomock.Call

Register indicates an expected call of Register.

func (*MockContractsServiceMockRecorder) RenewName

func (mr *MockContractsServiceMockRecorder) RenewName(ctx, conn, opts, fullName, durationSec, controller any) *gomock.Call

RenewName indicates an expected call of RenewName.

func (*MockContractsServiceMockRecorder) TxByHash

func (mr *MockContractsServiceMockRecorder) TxByHash(ctx, client, txHash any) *gomock.Call

TxByHash indicates an expected call of TxByHash.

func (*MockContractsServiceMockRecorder) WaitForTxToStartMining

func (mr *MockContractsServiceMockRecorder) WaitForTxToStartMining(ctx, conn, txHash any) *gomock.Call

WaitForTxToStartMining indicates an expected call of WaitForTxToStartMining.

func (*MockContractsServiceMockRecorder) WaitMined

func (mr *MockContractsServiceMockRecorder) WaitMined(ctx, client, tx any) *gomock.Call

WaitMined indicates an expected call of WaitMined.

Jump to

Keyboard shortcuts

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