embedded

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const FinishVotingMethod = "finishVoting"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContract

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

func (*BaseContract) CalcPercent added in v0.24.0

func (b *BaseContract) CalcPercent(value uint64, percent byte) float64

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) (stakeDest common.Address, keysToSave [][]byte, err error)
}

type ContractError added in v0.25.0

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

func NewContractError added in v0.25.0

func NewContractError(text string, tryLater bool) *ContractError

func (*ContractError) Error added in v0.25.0

func (e *ContractError) Error() string

func (*ContractError) TryLater added in v0.25.0

func (e *ContractError) TryLater() bool

type EmbeddedContractType

type EmbeddedContractType = common.Hash
var (
	TimeLockContract             EmbeddedContractType
	OracleVotingContract         EmbeddedContractType
	OracleLockContract           EmbeddedContractType
	RefundableOracleLockContract 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, statsCollector collector.StatsCollector) *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) (common.Address, [][]byte, error)

type OracleLock2 added in v0.25.0

type OracleLock2 struct {
	*BaseContract
}

func NewOracleLock2 added in v0.25.0

func NewOracleLock2(ctx env.CallContext, e env.Env, statsCollector collector.StatsCollector) *OracleLock2

func (*OracleLock2) Call added in v0.25.0

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

func (*OracleLock2) Deploy added in v0.25.0

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

func (*OracleLock2) Read added in v0.25.0

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

func (*OracleLock2) Terminate added in v0.25.0

func (e *OracleLock2) Terminate(args ...[]byte) (common.Address, [][]byte, error)

type OracleVoting

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

func NewOracleVotingContract

func NewOracleVotingContract(ctx env.CallContext, e env.Env, statsCollector collector.StatsCollector) *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) (common.Address, [][]byte, error)

type OracleVoting2 added in v0.25.0

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

func NewOracleVotingContract2 added in v0.25.0

func NewOracleVotingContract2(ctx env.CallContext, e env.Env, statsCollector collector.StatsCollector) *OracleVoting2

func (*OracleVoting2) Call added in v0.25.0

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

func (*OracleVoting2) Deploy added in v0.25.0

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

func (*OracleVoting2) Read added in v0.25.0

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

func (*OracleVoting2) Terminate added in v0.25.0

func (f *OracleVoting2) Terminate(args ...[]byte) (common.Address, [][]byte, error)

type RefundableOracleLock added in v0.24.0

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

func NewRefundableOracleLock added in v0.24.0

func NewRefundableOracleLock(ctx env.CallContext, e env.Env, statsCollector collector.StatsCollector) *RefundableOracleLock

func (*RefundableOracleLock) Call added in v0.24.0

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

func (*RefundableOracleLock) Deploy added in v0.24.0

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

func (*RefundableOracleLock) Read added in v0.24.0

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

func (*RefundableOracleLock) Terminate added in v0.24.0

func (e *RefundableOracleLock) Terminate(args ...[]byte) (common.Address, [][]byte, error)

type RefundableOracleLock2 added in v0.25.0

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

func NewRefundableOracleLock2 added in v0.25.0

func NewRefundableOracleLock2(ctx env.CallContext, e env.Env, statsCollector collector.StatsCollector) *RefundableOracleLock2

func (*RefundableOracleLock2) Call added in v0.25.0

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

func (*RefundableOracleLock2) Deploy added in v0.25.0

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

func (*RefundableOracleLock2) Read added in v0.25.0

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

func (*RefundableOracleLock2) Terminate added in v0.25.0

func (e *RefundableOracleLock2) Terminate(args ...[]byte) (common.Address, [][]byte, error)

type TimeLock

type TimeLock struct {
	*BaseContract
}

func NewTimeLock

func NewTimeLock(ctx env.CallContext, env env.Env, statsCollector collector.StatsCollector) *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) (common.Address, [][]byte, error)

Jump to

Keyboard shortcuts

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