Documentation ¶
Overview ¶
Package fx is a generated GoMock package.
Index ¶
- type Fx
- type MockFx
- func (m *MockFx) Bootstrapped() error
- func (m *MockFx) Bootstrapping() error
- func (m *MockFx) CreateOutput(amount uint64, controlGroup interface{}) (interface{}, error)
- func (m *MockFx) EXPECT() *MockFxMockRecorder
- func (m *MockFx) Initialize(vm interface{}) error
- func (m *MockFx) VerifyPermission(tx, in, cred, controlGroup interface{}) error
- func (m *MockFx) VerifyTransfer(tx, in, cred, utxo interface{}) error
- type MockFxMockRecorder
- func (mr *MockFxMockRecorder) Bootstrapped() *gomock.Call
- func (mr *MockFxMockRecorder) Bootstrapping() *gomock.Call
- func (mr *MockFxMockRecorder) CreateOutput(amount, controlGroup interface{}) *gomock.Call
- func (mr *MockFxMockRecorder) Initialize(vm interface{}) *gomock.Call
- func (mr *MockFxMockRecorder) VerifyPermission(tx, in, cred, controlGroup interface{}) *gomock.Call
- func (mr *MockFxMockRecorder) VerifyTransfer(tx, in, cred, utxo interface{}) *gomock.Call
- type MockOwned
- type MockOwnedMockRecorder
- type MockOwner
- type MockOwnerMockRecorder
- type Owned
- type Owner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fx ¶
type Fx interface { // Initialize this feature extension to be running under this VM. Should // return an error if the VM is incompatible. Initialize(vm interface{}) error // Notify this Fx that the VM is in bootstrapping Bootstrapping() error // Notify this Fx that the VM is bootstrapped Bootstrapped() error // VerifyTransfer verifies that the specified transaction can spend the // provided utxo with no restrictions on the destination. If the transaction // can't spend the output based on the input and credential, a non-nil error // should be returned. VerifyTransfer(tx, in, cred, utxo interface{}) error // VerifyPermission returns nil iff [cred] proves that [controlGroup] // assents to [tx] VerifyPermission(tx, in, cred, controlGroup interface{}) error // CreateOutput creates a new output with the provided control group worth // the specified amount CreateOutput(amount uint64, controlGroup interface{}) (interface{}, error) }
Fx is the interface a feature extension must implement to support the Platform Chain.
type MockFx ¶
type MockFx struct {
// contains filtered or unexported fields
}
MockFx is a mock of Fx interface.
func NewMockFx ¶
func NewMockFx(ctrl *gomock.Controller) *MockFx
NewMockFx creates a new mock instance.
func (*MockFx) Bootstrapping ¶
Bootstrapping mocks base method.
func (*MockFx) CreateOutput ¶
CreateOutput mocks base method.
func (*MockFx) EXPECT ¶
func (m *MockFx) EXPECT() *MockFxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFx) Initialize ¶
Initialize mocks base method.
func (*MockFx) VerifyPermission ¶
VerifyPermission mocks base method.
func (*MockFx) VerifyTransfer ¶
VerifyTransfer mocks base method.
type MockFxMockRecorder ¶
type MockFxMockRecorder struct {
// contains filtered or unexported fields
}
MockFxMockRecorder is the mock recorder for MockFx.
func (*MockFxMockRecorder) Bootstrapped ¶
func (mr *MockFxMockRecorder) Bootstrapped() *gomock.Call
Bootstrapped indicates an expected call of Bootstrapped.
func (*MockFxMockRecorder) Bootstrapping ¶
func (mr *MockFxMockRecorder) Bootstrapping() *gomock.Call
Bootstrapping indicates an expected call of Bootstrapping.
func (*MockFxMockRecorder) CreateOutput ¶
func (mr *MockFxMockRecorder) CreateOutput(amount, controlGroup interface{}) *gomock.Call
CreateOutput indicates an expected call of CreateOutput.
func (*MockFxMockRecorder) Initialize ¶
func (mr *MockFxMockRecorder) Initialize(vm interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockFxMockRecorder) VerifyPermission ¶
func (mr *MockFxMockRecorder) VerifyPermission(tx, in, cred, controlGroup interface{}) *gomock.Call
VerifyPermission indicates an expected call of VerifyPermission.
func (*MockFxMockRecorder) VerifyTransfer ¶
func (mr *MockFxMockRecorder) VerifyTransfer(tx, in, cred, utxo interface{}) *gomock.Call
VerifyTransfer indicates an expected call of VerifyTransfer.
type MockOwned ¶
type MockOwned struct {
// contains filtered or unexported fields
}
MockOwned is a mock of Owned interface.
func NewMockOwned ¶
func NewMockOwned(ctrl *gomock.Controller) *MockOwned
NewMockOwned creates a new mock instance.
func (*MockOwned) EXPECT ¶
func (m *MockOwned) EXPECT() *MockOwnedMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOwnedMockRecorder ¶
type MockOwnedMockRecorder struct {
// contains filtered or unexported fields
}
MockOwnedMockRecorder is the mock recorder for MockOwned.
func (*MockOwnedMockRecorder) Owners ¶
func (mr *MockOwnedMockRecorder) Owners() *gomock.Call
Owners indicates an expected call of Owners.
type MockOwner ¶
type MockOwner struct {
// contains filtered or unexported fields
}
MockOwner is a mock of Owner interface.
func NewMockOwner ¶
func NewMockOwner(ctrl *gomock.Controller) *MockOwner
NewMockOwner creates a new mock instance.
func (*MockOwner) EXPECT ¶
func (m *MockOwner) EXPECT() *MockOwnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOwnerMockRecorder ¶
type MockOwnerMockRecorder struct {
// contains filtered or unexported fields
}
MockOwnerMockRecorder is the mock recorder for MockOwner.
func (*MockOwnerMockRecorder) InitCtx ¶
func (mr *MockOwnerMockRecorder) InitCtx(ctx interface{}) *gomock.Call
InitCtx indicates an expected call of InitCtx.
func (*MockOwnerMockRecorder) Verify ¶
func (mr *MockOwnerMockRecorder) Verify() *gomock.Call
Verify indicates an expected call of Verify.
type Owner ¶
type Owner interface { verify.Verifiable snow.ContextInitializable }