multsig

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MTransaction

type MTransaction struct {
	Created uint64 // NOT USED ??
	TxID    uint64

	To     address.Address
	Value  types.BigInt
	Method uint64
	Params []byte

	Approved []address.Address
	Complete bool
	Canceled bool
	RetCode  uint64
}

func (*MTransaction) MarshalCBOR

func (t *MTransaction) MarshalCBOR(w io.Writer) error

func (*MTransaction) UnmarshalCBOR

func (t *MTransaction) UnmarshalCBOR(r io.Reader) error

type MultiSigActorState

type MultiSigActorState struct {
	Signers  []address.Address
	Required uint64
	NextTxID uint64

	InitialBalance types.BigInt
	StartingBlock  uint64
	UnlockDuration uint64

	//TODO: make this map/sharray/whatever
	Transactions []MTransaction
}

func (*MultiSigActorState) MarshalCBOR

func (t *MultiSigActorState) MarshalCBOR(w io.Writer) error

func (*MultiSigActorState) UnmarshalCBOR

func (t *MultiSigActorState) UnmarshalCBOR(r io.Reader) error

type MultiSigAddSignerParam

type MultiSigAddSignerParam struct {
	Signer   address.Address
	Increase bool
}

func (*MultiSigAddSignerParam) MarshalCBOR

func (t *MultiSigAddSignerParam) MarshalCBOR(w io.Writer) error

func (*MultiSigAddSignerParam) UnmarshalCBOR

func (t *MultiSigAddSignerParam) UnmarshalCBOR(r io.Reader) error

type MultiSigChangeReqParams

type MultiSigChangeReqParams struct {
	Req uint64
}

func (*MultiSigChangeReqParams) MarshalCBOR

func (t *MultiSigChangeReqParams) MarshalCBOR(w io.Writer) error

func (*MultiSigChangeReqParams) UnmarshalCBOR

func (t *MultiSigChangeReqParams) UnmarshalCBOR(r io.Reader) error

type MultiSigConstructorParams

type MultiSigConstructorParams struct {
	Signers        []address.Address
	Required       uint64
	UnlockDuration uint64
}

func (*MultiSigConstructorParams) MarshalCBOR

func (t *MultiSigConstructorParams) MarshalCBOR(w io.Writer) error

func (*MultiSigConstructorParams) UnmarshalCBOR

func (t *MultiSigConstructorParams) UnmarshalCBOR(r io.Reader) error

type MultiSigProposeParams

type MultiSigProposeParams struct {
	To     address.Address
	Value  types.BigInt
	Method uint64
	Params []byte
}

func (*MultiSigProposeParams) MarshalCBOR

func (t *MultiSigProposeParams) MarshalCBOR(w io.Writer) error

func (*MultiSigProposeParams) UnmarshalCBOR

func (t *MultiSigProposeParams) UnmarshalCBOR(r io.Reader) error

type MultiSigRemoveSignerParam

type MultiSigRemoveSignerParam struct {
	Signer   address.Address
	Decrease bool
}

func (*MultiSigRemoveSignerParam) MarshalCBOR

func (t *MultiSigRemoveSignerParam) MarshalCBOR(w io.Writer) error

func (*MultiSigRemoveSignerParam) UnmarshalCBOR

func (t *MultiSigRemoveSignerParam) UnmarshalCBOR(r io.Reader) error

type MultiSigSwapSignerParams

type MultiSigSwapSignerParams struct {
	From address.Address
	To   address.Address
}

func (*MultiSigSwapSignerParams) MarshalCBOR

func (t *MultiSigSwapSignerParams) MarshalCBOR(w io.Writer) error

func (*MultiSigSwapSignerParams) UnmarshalCBOR

func (t *MultiSigSwapSignerParams) UnmarshalCBOR(r io.Reader) error

type MultiSigTxID

type MultiSigTxID struct {
	TxID uint64
}

func (*MultiSigTxID) MarshalCBOR

func (t *MultiSigTxID) MarshalCBOR(w io.Writer) error

func (*MultiSigTxID) UnmarshalCBOR

func (t *MultiSigTxID) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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