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 ¶
- type MockContractsService
- func (m *MockContractsService) CalculateTxParams(conn *ethclient.Client, address common.Address) (*big.Int, uint64, error)
- func (m *MockContractsService) CallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
- func (m *MockContractsService) Commit(ctx context.Context, conn *ethclient.Client, opts *bind.TransactOpts, ...) (*types.Transaction, error)
- func (m *MockContractsService) ConnectToController(conn *ethclient.Client) (*anytype_crypto.AnytypeRegistrarControllerPrivate, error)
- func (m *MockContractsService) ConnectToNamewrapperContract(conn *ethclient.Client) (*anytype_crypto.AnytypeNameWrapper, error)
- func (m *MockContractsService) ConnectToRegistrar(conn *ethclient.Client) (*anytype_crypto.AnytypeRegistrarImplementation, error)
- func (m *MockContractsService) ConnectToRegistryContract(conn *ethclient.Client) (*anytype_crypto.ENSRegistry, error)
- func (m *MockContractsService) ConnectToResolver(conn *ethclient.Client) (*anytype_crypto.AnytypeResolver, error)
- func (m *MockContractsService) CreateEthConnection() (*ethclient.Client, error)
- func (m *MockContractsService) EXPECT() *MockContractsServiceMockRecorder
- func (m *MockContractsService) GenerateAuthOptsForAdmin(conn *ethclient.Client) (*bind.TransactOpts, error)
- func (m *MockContractsService) GetAdditionalNameInfo(ctx context.Context, conn *ethclient.Client, currentOwner common.Address, ...) (string, string, string, *big.Int, error)
- func (m *MockContractsService) GetBalanceOf(ctx context.Context, client *ethclient.Client, ...) (*big.Int, error)
- func (m *MockContractsService) GetNameByAddress(conn *ethclient.Client, address common.Address) (string, error)
- func (m *MockContractsService) GetOwnerForNamehash(ctx context.Context, client *ethclient.Client, namehash [32]byte) (common.Address, error)
- func (m *MockContractsService) Init(a *app.App) error
- func (m *MockContractsService) IsContractDeployed(ctx context.Context, client *ethclient.Client, address common.Address) (bool, error)
- func (m *MockContractsService) MakeCommitment(nameFirstPart string, registrantAccount common.Address, secret [32]byte, ...) ([32]byte, error)
- func (m *MockContractsService) Name() string
- func (m *MockContractsService) Register(ctx context.Context, conn *ethclient.Client, authOpts *bind.TransactOpts, ...) (*types.Transaction, error)
- func (m *MockContractsService) RenewName(ctx context.Context, conn *ethclient.Client, opts *bind.TransactOpts, ...) (*types.Transaction, error)
- func (m *MockContractsService) TxByHash(ctx context.Context, client *ethclient.Client, txHash common.Hash) (*types.Transaction, error)
- func (m *MockContractsService) WaitForTxToStartMining(ctx context.Context, conn *ethclient.Client, txHash common.Hash) error
- func (m *MockContractsService) WaitMined(ctx context.Context, client *ethclient.Client, tx *types.Transaction) (bool, error)
- type MockContractsServiceMockRecorder
- func (mr *MockContractsServiceMockRecorder) CalculateTxParams(conn, address any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) CallContract(ctx, msg any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) Commit(ctx, conn, opts, commitment, controller any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) ConnectToController(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) ConnectToNamewrapperContract(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) ConnectToRegistrar(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) ConnectToRegistryContract(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) ConnectToResolver(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) CreateEthConnection() *gomock.Call
- func (mr *MockContractsServiceMockRecorder) GenerateAuthOptsForAdmin(conn any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) GetAdditionalNameInfo(ctx, conn, currentOwner, fullName any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) GetBalanceOf(ctx, client, tokenAddress, address any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) GetNameByAddress(conn, address any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) GetOwnerForNamehash(ctx, client, namehash any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) Init(a any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) IsContractDeployed(ctx, client, address any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) MakeCommitment(...) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) Name() *gomock.Call
- func (mr *MockContractsServiceMockRecorder) Register(...) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) RenewName(ctx, conn, opts, fullName, durationSec, controller any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) TxByHash(ctx, client, txHash any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) WaitForTxToStartMining(ctx, conn, txHash any) *gomock.Call
- func (mr *MockContractsServiceMockRecorder) WaitMined(ctx, client, tx any) *gomock.Call
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 ¶
func (m *MockContractsService) Commit(ctx context.Context, conn *ethclient.Client, opts *bind.TransactOpts, commitment [32]byte, controller *anytype_crypto.AnytypeRegistrarControllerPrivate) (*types.Transaction, error)
Commit mocks base method.
func (*MockContractsService) ConnectToController ¶
func (m *MockContractsService) ConnectToController(conn *ethclient.Client) (*anytype_crypto.AnytypeRegistrarControllerPrivate, error)
ConnectToController mocks base method.
func (*MockContractsService) ConnectToNamewrapperContract ¶
func (m *MockContractsService) ConnectToNamewrapperContract(conn *ethclient.Client) (*anytype_crypto.AnytypeNameWrapper, error)
ConnectToNamewrapperContract mocks base method.
func (*MockContractsService) ConnectToRegistrar ¶
func (m *MockContractsService) ConnectToRegistrar(conn *ethclient.Client) (*anytype_crypto.AnytypeRegistrarImplementation, error)
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 ¶
func (m *MockContractsService) EXPECT() *MockContractsServiceMockRecorder
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) 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) ([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) (*types.Transaction, error)
Register mocks base method.
func (*MockContractsService) RenewName ¶
func (m *MockContractsService) RenewName(ctx context.Context, conn *ethclient.Client, opts *bind.TransactOpts, fullName string, durationSec uint64, controller *anytype_crypto.AnytypeRegistrarControllerPrivate) (*types.Transaction, error)
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.
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) ConnectToController ¶
func (mr *MockContractsServiceMockRecorder) ConnectToController(conn any) *gomock.Call
ConnectToController indicates an expected call of ConnectToController.
func (*MockContractsServiceMockRecorder) ConnectToNamewrapperContract ¶
func (mr *MockContractsServiceMockRecorder) ConnectToNamewrapperContract(conn any) *gomock.Call
ConnectToNamewrapperContract indicates an expected call of ConnectToNamewrapperContract.
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) Init ¶
func (mr *MockContractsServiceMockRecorder) Init(a any) *gomock.Call
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 any) *gomock.Call
MakeCommitment indicates an expected call of MakeCommitment.
func (*MockContractsServiceMockRecorder) Name ¶
func (mr *MockContractsServiceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockContractsServiceMockRecorder) Register ¶
func (mr *MockContractsServiceMockRecorder) Register(ctx, conn, authOpts, nameFirstPart, registrantAccount, secret, controller, fullName, ownerAnyAddr, spaceId 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.