Documentation ¶
Index ¶
- func CheckErr(t *testing.T, wantErr bool, errContains string, err error)
- type GoTezosMock
- func (g *GoTezosMock) Balance(blockhash, address string) (*big.Int, error)
- func (g *GoTezosMock) Counter(blockhash, pkh string) (int, error)
- func (g *GoTezosMock) Cycle(cycle int) (gotezos.Cycle, error)
- func (g *GoTezosMock) DelegatedContractsAtCycle(cycle int, delegate string) ([]*string, error)
- func (g *GoTezosMock) FrozenBalance(cycle int, delegate string) (gotezos.FrozenBalance, error)
- func (g *GoTezosMock) Head() (*gotezos.Block, error)
- func (g *GoTezosMock) InjectionOperation(input gotezos.InjectionOperationInput) ([]byte, error)
- func (g *GoTezosMock) OperationHashes(blockhash string) ([][]string, error)
- func (g *GoTezosMock) StakingBalance(blockhash, delegate string) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoTezosMock ¶
type GoTezosMock struct { gotezos.IFace HeadErr bool CounterErr bool BalanceErr bool FrozenBalanceErr bool DelegatedContractsErr bool CycleErr bool StakingBalanceErr bool InjectionOperationErr bool OperationHashesErr bool ForgeOperationErr bool }
GoTezosMock is a test helper mocking the GoTezos lib
func (*GoTezosMock) Balance ¶
func (g *GoTezosMock) Balance(blockhash, address string) (*big.Int, error)
Balance -
func (*GoTezosMock) Counter ¶
func (g *GoTezosMock) Counter(blockhash, pkh string) (int, error)
Counter -
func (*GoTezosMock) DelegatedContractsAtCycle ¶
func (g *GoTezosMock) DelegatedContractsAtCycle(cycle int, delegate string) ([]*string, error)
DelegatedContractsAtCycle -
func (*GoTezosMock) FrozenBalance ¶
func (g *GoTezosMock) FrozenBalance(cycle int, delegate string) (gotezos.FrozenBalance, error)
FrozenBalance -
func (*GoTezosMock) InjectionOperation ¶
func (g *GoTezosMock) InjectionOperation(input gotezos.InjectionOperationInput) ([]byte, error)
InjectionOperation -
func (*GoTezosMock) OperationHashes ¶
func (g *GoTezosMock) OperationHashes(blockhash string) ([][]string, error)
OperationHashes -
func (*GoTezosMock) StakingBalance ¶
func (g *GoTezosMock) StakingBalance(blockhash, delegate string) (*big.Int, error)
StakingBalance -
Click to show internal directories.
Click to hide internal directories.