Documentation ¶
Index ¶
- Constants
- type BaseContract
- func (b *BaseContract) CalcPercent(value uint64, percent byte) float64
- func (b *BaseContract) GetArray(s string) []byte
- func (b *BaseContract) GetBigInt(s string) *big.Int
- func (b *BaseContract) GetByte(s string) byte
- func (b *BaseContract) GetUint16(s string) uint16
- func (b *BaseContract) GetUint64(s string) uint64
- func (b *BaseContract) IsOwner() bool
- func (b *BaseContract) Owner() common.Address
- func (b *BaseContract) RemoveValue(s string)
- func (b *BaseContract) SetArray(s string, cid []byte)
- func (b *BaseContract) SetBigInt(s string, value *big.Int)
- func (b *BaseContract) SetByte(s string, value byte)
- func (b *BaseContract) SetOwner(address common.Address)
- func (b *BaseContract) SetUint16(s string, value uint16)
- func (b *BaseContract) SetUint64(s string, value uint64)
- type Contract
- type ContractError
- type EmbeddedContractType
- type Multisig
- type OracleLock2
- type OracleVoting
- type OracleVoting2
- type RefundableOracleLock
- func (e *RefundableOracleLock) Call(method string, args ...[]byte) error
- func (e *RefundableOracleLock) Deploy(args ...[]byte) error
- func (e *RefundableOracleLock) Read(method string, args ...[]byte) ([]byte, error)
- func (e *RefundableOracleLock) Terminate(args ...[]byte) (common.Address, [][]byte, error)
- type RefundableOracleLock2
- func (e *RefundableOracleLock2) Call(method string, args ...[]byte) error
- func (e *RefundableOracleLock2) Deploy(args ...[]byte) error
- func (e *RefundableOracleLock2) Read(method string, args ...[]byte) ([]byte, error)
- func (e *RefundableOracleLock2) Terminate(args ...[]byte) (common.Address, [][]byte, error)
- type TimeLock
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) 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) 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 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 ¶
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
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
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) Deploy ¶
func (f *OracleVoting) Deploy(args ...[]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
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
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
type TimeLock ¶
type TimeLock struct {
*BaseContract
}
func NewTimeLock ¶
func NewTimeLock(ctx env.CallContext, env env.Env, statsCollector collector.StatsCollector) *TimeLock
Click to show internal directories.
Click to hide internal directories.