eth

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableETH

func EnableETH(r action.Router) error

func EnableInternalETH

func EnableInternalETH(r action.Router) error

Types

type Lock

type Lock struct {
	Locker action.Address
	ETHTxn []byte
}

func (Lock) Marshal

func (et Lock) Marshal() ([]byte, error)

func (Lock) Signers

func (et Lock) Signers() []action.Address

Signers for the ethereum ext lock is the user who wishes to lock his ether

func (Lock) Tags

func (et Lock) Tags() common.KVPairs

Tags for ethereum lock

func (Lock) Type

func (et Lock) Type() action.Type

Type for ethlock

func (*Lock) Unmarshal

func (et *Lock) Unmarshal(data []byte) error

type Redeem

type Redeem struct {
	Owner  action.Address //User Oneledger address
	To     action.Address //User Ethereum address
	ETHTxn []byte
}

func (Redeem) Marshal

func (r Redeem) Marshal() ([]byte, error)

func (Redeem) Signers

func (r Redeem) Signers() []action.Address

func (Redeem) Tags

func (r Redeem) Tags() common.KVPairs

func (Redeem) Type

func (r Redeem) Type() action.Type

func (*Redeem) Unmarshal

func (r *Redeem) Unmarshal(data []byte) error

type ReportFinality

type ReportFinality struct {
	TrackerName      ethereum.TrackerName
	Locker           action.Address
	ValidatorAddress action.Address
	VoteIndex        int64
	Refund           bool
}

func (*ReportFinality) Marshal

func (m *ReportFinality) Marshal() ([]byte, error)

func (*ReportFinality) Signers

func (m *ReportFinality) Signers() []action.Address

func (*ReportFinality) Tags

func (m *ReportFinality) Tags() common.KVPairs

func (*ReportFinality) Type

func (m *ReportFinality) Type() action.Type

func (*ReportFinality) Unmarshal

func (m *ReportFinality) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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