Documentation ¶
Index ¶
- type BaseContract
- func (b *BaseContract) Deploy(contractType EmbeddedContractType)
- 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 EmbeddedContractType
- type Multisig
- type OracleLock
- type OracleVoting
- type RefundableEvidenceLock
- type TimeLock
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) 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 EmbeddedContractType ¶
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
type OracleLock ¶
type OracleLock struct {
*BaseContract
}
func NewOracleLock ¶
func NewOracleLock(ctx env.CallContext, e env.Env) *OracleLock
func (*OracleLock) Deploy ¶
func (e *OracleLock) Deploy(args ...[]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) 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
Click to show internal directories.
Click to hide internal directories.