Documentation
¶
Index ¶
- type MockServices
- type Services
- func (_m *Services) AddContract(_a0 context.Context, _a1 *accounts.Account, _a2 flowkit.Script, ...) (flow.Identifier, bool, error)
- func (_m *Services) BuildTransaction(_a0 context.Context, _a1 transactions.AddressesRoles, _a2 int, ...) (*transactions.Transaction, error)
- func (_m *Services) CreateAccount(_a0 context.Context, _a1 *accounts.Account, _a2 []accounts.PublicKey) (*flow.Account, flow.Identifier, error)
- func (_m *Services) DeployProject(_a0 context.Context, _a1 flowkit.UpdateContract) ([]*project.Contract, error)
- func (_m *Services) DerivePrivateKeyFromMnemonic(_a0 context.Context, _a1 string, _a2 crypto.SigningAlgorithm, _a3 string) (crypto.PrivateKey, error)
- func (_m *Services) ExecuteScript(_a0 context.Context, _a1 flowkit.Script, _a2 flowkit.ScriptQuery) (cadence.Value, error)
- func (_m *Services) Gateway() gateway.Gateway
- func (_m *Services) GenerateKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, error)
- func (_m *Services) GenerateMnemonicKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, string, error)
- func (_m *Services) GetAccount(_a0 context.Context, _a1 flow.Address) (*flow.Account, error)
- func (_m *Services) GetBlock(_a0 context.Context, _a1 flowkit.BlockQuery) (*flow.Block, error)
- func (_m *Services) GetCollection(_a0 context.Context, _a1 flow.Identifier) (*flow.Collection, error)
- func (_m *Services) GetEvents(_a0 context.Context, _a1 []string, _a2 uint64, _a3 uint64, ...) ([]flow.BlockEvents, error)
- func (_m *Services) GetTransactionByID(_a0 context.Context, _a1 flow.Identifier, _a2 bool) (*flow.Transaction, *flow.TransactionResult, error)
- func (_m *Services) GetTransactionsByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]*flow.Transaction, []*flow.TransactionResult, error)
- func (_m *Services) Network() config.Network
- func (_m *Services) Ping() error
- func (_m *Services) RemoveContract(_a0 context.Context, _a1 *accounts.Account, _a2 string) (flow.Identifier, error)
- func (_m *Services) SendSignedTransaction(_a0 context.Context, _a1 *transactions.Transaction) (*flow.Transaction, *flow.TransactionResult, error)
- func (_m *Services) SendTransaction(_a0 context.Context, _a1 transactions.AccountRoles, _a2 flowkit.Script, ...) (*flow.Transaction, *flow.TransactionResult, error)
- func (_m *Services) SetLogger(_a0 output.Logger)
- func (_m *Services) SignTransactionPayload(_a0 context.Context, _a1 *accounts.Account, _a2 []byte) (*transactions.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServices ¶
type MockServices struct {
Mock *Services
AddContract *mock.Call
BuildTransaction *mock.Call
CreateAccount *mock.Call
DeployProject *mock.Call
DerivePrivateKeyFromMnemonic *mock.Call
Gateway *mock.Call
GenerateKey *mock.Call
GenerateMnemonicKey *mock.Call
GetBlock *mock.Call
GetTransactionByID *mock.Call
GetTransactionsByBlockID *mock.Call
Network *mock.Call
Ping *mock.Call
RemoveContract *mock.Call
SendTransaction *mock.Call
SetLogger *mock.Call
SignTransactionPayload *mock.Call
Test *mock.Call
GetAccount *mock.Call
ExecuteScript *mock.Call
SendSignedTransaction *mock.Call
GetEvents *mock.Call
GetCollection *mock.Call
}
func DefaultMockServices ¶
func DefaultMockServices() *MockServices
type Services ¶ added in v1.1.0
Services is an autogenerated mock type for the Services type
func NewServices ¶ added in v1.1.0
NewServices creates a new instance of Services. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Services) AddContract ¶ added in v1.1.0
func (_m *Services) AddContract(_a0 context.Context, _a1 *accounts.Account, _a2 flowkit.Script, _a3 flowkit.UpdateContract) (flow.Identifier, bool, error)
AddContract provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Services) BuildTransaction ¶ added in v1.1.0
func (_m *Services) BuildTransaction(_a0 context.Context, _a1 transactions.AddressesRoles, _a2 int, _a3 flowkit.Script, _a4 uint64) (*transactions.Transaction, error)
BuildTransaction provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*Services) CreateAccount ¶ added in v1.1.0
func (_m *Services) CreateAccount(_a0 context.Context, _a1 *accounts.Account, _a2 []accounts.PublicKey) (*flow.Account, flow.Identifier, error)
CreateAccount provides a mock function with given fields: _a0, _a1, _a2
func (*Services) DeployProject ¶ added in v1.1.0
func (_m *Services) DeployProject(_a0 context.Context, _a1 flowkit.UpdateContract) ([]*project.Contract, error)
DeployProject provides a mock function with given fields: _a0, _a1
func (*Services) DerivePrivateKeyFromMnemonic ¶ added in v1.1.0
func (_m *Services) DerivePrivateKeyFromMnemonic(_a0 context.Context, _a1 string, _a2 crypto.SigningAlgorithm, _a3 string) (crypto.PrivateKey, error)
DerivePrivateKeyFromMnemonic provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Services) ExecuteScript ¶ added in v1.1.0
func (_m *Services) ExecuteScript(_a0 context.Context, _a1 flowkit.Script, _a2 flowkit.ScriptQuery) (cadence.Value, error)
ExecuteScript provides a mock function with given fields: _a0, _a1, _a2
func (*Services) GenerateKey ¶ added in v1.1.0
func (_m *Services) GenerateKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, error)
GenerateKey provides a mock function with given fields: _a0, _a1, _a2
func (*Services) GenerateMnemonicKey ¶ added in v1.1.0
func (_m *Services) GenerateMnemonicKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, string, error)
GenerateMnemonicKey provides a mock function with given fields: _a0, _a1, _a2
func (*Services) GetAccount ¶ added in v1.1.0
GetAccount provides a mock function with given fields: _a0, _a1
func (*Services) GetBlock ¶ added in v1.1.0
GetBlock provides a mock function with given fields: _a0, _a1
func (*Services) GetCollection ¶ added in v1.1.0
func (_m *Services) GetCollection(_a0 context.Context, _a1 flow.Identifier) (*flow.Collection, error)
GetCollection provides a mock function with given fields: _a0, _a1
func (*Services) GetEvents ¶ added in v1.1.0
func (_m *Services) GetEvents(_a0 context.Context, _a1 []string, _a2 uint64, _a3 uint64, _a4 *flowkit.EventWorker) ([]flow.BlockEvents, error)
GetEvents provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*Services) GetTransactionByID ¶ added in v1.1.0
func (_m *Services) GetTransactionByID(_a0 context.Context, _a1 flow.Identifier, _a2 bool) (*flow.Transaction, *flow.TransactionResult, error)
GetTransactionByID provides a mock function with given fields: _a0, _a1, _a2
func (*Services) GetTransactionsByBlockID ¶ added in v1.1.0
func (_m *Services) GetTransactionsByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]*flow.Transaction, []*flow.TransactionResult, error)
GetTransactionsByBlockID provides a mock function with given fields: _a0, _a1
func (*Services) RemoveContract ¶ added in v1.1.0
func (_m *Services) RemoveContract(_a0 context.Context, _a1 *accounts.Account, _a2 string) (flow.Identifier, error)
RemoveContract provides a mock function with given fields: _a0, _a1, _a2
func (*Services) SendSignedTransaction ¶ added in v1.1.0
func (_m *Services) SendSignedTransaction(_a0 context.Context, _a1 *transactions.Transaction) (*flow.Transaction, *flow.TransactionResult, error)
SendSignedTransaction provides a mock function with given fields: _a0, _a1
func (*Services) SendTransaction ¶ added in v1.1.0
func (_m *Services) SendTransaction(_a0 context.Context, _a1 transactions.AccountRoles, _a2 flowkit.Script, _a3 uint64) (*flow.Transaction, *flow.TransactionResult, error)
SendTransaction provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Services) SetLogger ¶ added in v1.1.0
SetLogger provides a mock function with given fields: _a0
func (*Services) SignTransactionPayload ¶ added in v1.1.0
func (_m *Services) SignTransactionPayload(_a0 context.Context, _a1 *accounts.Account, _a2 []byte) (*transactions.Transaction, error)
SignTransactionPayload provides a mock function with given fields: _a0, _a1, _a2