eth

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package for transactions related to Etheruem

Package for transactions related to Etheruem

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 ERC20Lock added in v0.14.0

type ERC20Lock struct {
	Locker action.Address
	ETHTxn []byte // Raw Transaction for Locking Tokens
}

Lock is a struct for one-Ledger transaction for ERC20 Lock

func (ERC20Lock) Marshal added in v0.14.0

func (E ERC20Lock) Marshal() ([]byte, error)

Marshal ERC20Lock to byte array

func (ERC20Lock) Signers added in v0.14.0

func (E ERC20Lock) Signers() []action.Address

Signers return the Address of the owner who created the transaction

func (ERC20Lock) Tags added in v0.14.0

func (E ERC20Lock) Tags() kv.Pairs

Tags creates the tags to associate with the transaction

func (ERC20Lock) Type added in v0.14.0

func (E ERC20Lock) Type() action.Type

Type returns the type of current action

func (*ERC20Lock) Unmarshal added in v0.14.0

func (E *ERC20Lock) Unmarshal(data []byte) error

type ERC20Redeem added in v0.14.0

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

Lock is a struct for one-Ledger transaction for ERC20 Redeem

func (ERC20Redeem) Marshal added in v0.14.0

func (E ERC20Redeem) Marshal() ([]byte, error)

Marshal ERC20Redeem to byte array

func (ERC20Redeem) Signers added in v0.14.0

func (E ERC20Redeem) Signers() []action.Address

Signers return the Address of the owner who created the transaction

func (ERC20Redeem) Tags added in v0.14.0

func (E ERC20Redeem) Tags() kv.Pairs

Tags creates the tags to associate with the transaction

func (ERC20Redeem) Type added in v0.14.0

func (E ERC20Redeem) Type() action.Type

Type returns the type of current action

func (*ERC20Redeem) Unmarshal added in v0.14.0

func (E *ERC20Redeem) Unmarshal(data []byte) error

type Lock

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

Lock is a struct for one-Ledger transaction for Ether Lock

func (Lock) Marshal

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

Marshal Lock to byte array

func (Lock) Signers

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

Signers return the Address of the owner who created the transaction

func (Lock) Tags

func (et Lock) Tags() kv.Pairs

Tags creates the tags to associate with the transaction

func (Lock) Type

func (et Lock) Type() action.Type

Type returns the type of current action

func (*Lock) Unmarshal

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

type Redeem

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

Redeem is a struct for one-Ledger transaction for Ether Redeem

func (Redeem) Marshal

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

Marshal Redeem to byte array

func (Redeem) Signers

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

Signers return the Address of the owner who created the transaction

func (Redeem) Tags

func (r Redeem) Tags() kv.Pairs

Tags creates the tags to associate with the transaction

func (Redeem) Type

func (r Redeem) Type() action.Type

Type returns the type of current action

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
	Success          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() kv.Pairs

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