embedded

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContract

type BaseContract struct {
	// contains filtered or unexported fields
}

func (*BaseContract) Deploy

func (b *BaseContract) Deploy(contractType EmbeddedContractType)

func (*BaseContract) GetArray

func (b *BaseContract) GetArray(s string) []byte

func (*BaseContract) GetBigInt

func (b *BaseContract) GetBigInt(s string) *big.Int

func (*BaseContract) GetByte

func (b *BaseContract) GetByte(s string) byte

func (*BaseContract) GetUint16

func (b *BaseContract) GetUint16(s string) uint16

func (*BaseContract) GetUint64

func (b *BaseContract) GetUint64(s string) uint64

func (*BaseContract) IsOwner

func (b *BaseContract) IsOwner() bool

func (*BaseContract) Owner

func (b *BaseContract) Owner() common.Address

func (*BaseContract) RemoveValue

func (b *BaseContract) RemoveValue(s string)

func (*BaseContract) SetArray

func (b *BaseContract) SetArray(s string, cid []byte)

func (*BaseContract) SetBigInt

func (b *BaseContract) SetBigInt(s string, value *big.Int)

func (*BaseContract) SetByte

func (b *BaseContract) SetByte(s string, value byte)

func (*BaseContract) SetOwner

func (b *BaseContract) SetOwner(address common.Address)

func (*BaseContract) SetUint16

func (b *BaseContract) SetUint16(s string, value uint16)

func (*BaseContract) SetUint64

func (b *BaseContract) SetUint64(s string, value uint64)

type Contract

type Contract interface {
	Deploy(args ...[]byte) error
	Call(method string, args ...[]byte) error
	Read(method string, args ...[]byte) ([]byte, error)
	Terminate(args ...[]byte) error
}

type EmbeddedContractType

type EmbeddedContractType = common.Hash
var (
	TimeLockContract               EmbeddedContractType
	OracleVotingContract           EmbeddedContractType
	EvidenceLockContract           EmbeddedContractType
	RefundableEvidenceLockContract EmbeddedContractType
	MultisigContract               EmbeddedContractType
	AvailableContracts             map[EmbeddedContractType]struct{}
)

type Multisig

type Multisig struct {
	*BaseContract
	// contains filtered or unexported fields
}

func NewMultisig

func NewMultisig(ctx env.CallContext, e env.Env) *Multisig

func (*Multisig) Call

func (m *Multisig) Call(method string, args ...[]byte) (err error)

func (*Multisig) Deploy

func (m *Multisig) Deploy(args ...[]byte) error

func (*Multisig) Read

func (m *Multisig) Read(method string, args ...[]byte) ([]byte, error)

func (*Multisig) Terminate

func (m *Multisig) Terminate(args ...[]byte) error

type OracleLock

type OracleLock struct {
	*BaseContract
}

func NewOracleLock

func NewOracleLock(ctx env.CallContext, e env.Env) *OracleLock

func (*OracleLock) Call

func (e *OracleLock) Call(method string, args ...[]byte) error

func (*OracleLock) Deploy

func (e *OracleLock) Deploy(args ...[]byte) error

func (*OracleLock) Read

func (e *OracleLock) Read(method string, args ...[]byte) ([]byte, error)

func (*OracleLock) Terminate

func (e *OracleLock) Terminate(args ...[]byte) error

type OracleVoting

type OracleVoting struct {
	*BaseContract
	// contains filtered or unexported fields
}

func NewOracleVotingContract

func NewOracleVotingContract(ctx env.CallContext, e env.Env) *OracleVoting

func (*OracleVoting) Call

func (f *OracleVoting) Call(method string, args ...[]byte) error

func (*OracleVoting) Deploy

func (f *OracleVoting) Deploy(args ...[]byte) error

func (*OracleVoting) Read

func (f *OracleVoting) Read(method string, args ...[]byte) ([]byte, error)

func (*OracleVoting) Terminate

func (f *OracleVoting) Terminate(args ...[]byte) error

type RefundableEvidenceLock

type RefundableEvidenceLock struct {
	*BaseContract
	// contains filtered or unexported fields
}

func NewRefundableEvidenceLock

func NewRefundableEvidenceLock(ctx env.CallContext, e env.Env) *RefundableEvidenceLock

func (*RefundableEvidenceLock) Call

func (e *RefundableEvidenceLock) Call(method string, args ...[]byte) error

func (*RefundableEvidenceLock) Deploy

func (e *RefundableEvidenceLock) Deploy(args ...[]byte) error

func (*RefundableEvidenceLock) Read

func (e *RefundableEvidenceLock) Read(method string, args ...[]byte) ([]byte, error)

func (*RefundableEvidenceLock) Terminate

func (e *RefundableEvidenceLock) Terminate(args ...[]byte) error

type TimeLock

type TimeLock struct {
	*BaseContract
}

func NewTimeLock

func NewTimeLock(ctx env.CallContext, env env.Env) *TimeLock

func (*TimeLock) Call

func (t *TimeLock) Call(method string, args ...[]byte) (err error)

func (*TimeLock) Deploy

func (t *TimeLock) Deploy(args ...[]byte) error

func (*TimeLock) Read

func (t *TimeLock) Read(method string, args ...[]byte) ([]byte, error)

func (*TimeLock) Terminate

func (t *TimeLock) Terminate(args ...[]byte) error

Jump to

Keyboard shortcuts

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