multisig

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0, MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetActorCodeID added in v0.9.7

func GetActorCodeID(av specactors.Version) (cid.Cid, error)

Types

type ApproveReturn added in v1.0.4

type ApproveReturn = msig5.ApproveReturn

type MessageBuilder

type MessageBuilder interface {
	// Create a new multisig with the specified parameters.
	Create(signers []address.Address, threshold uint64,
		vestingStart, vestingDuration abi.ChainEpoch,
		initialAmount abi.TokenAmount) (*types.Message, error)

	// Propose a transaction to the given multisig.
	Propose(msig, target address.Address, amt abi.TokenAmount,
		method abi.MethodNum, params []byte) (*types.Message, error)

	// Approve a multisig transaction. The "hash" is optional.
	Approve(msig address.Address, txID uint64, hash *ProposalHashData) (*types.Message, error)

	// Cancel a multisig transaction. The "hash" is optional.
	Cancel(msig address.Address, txID uint64, hash *ProposalHashData) (*types.Message, error)
}

func Message

func Message(version specactors.Version, from address.Address) MessageBuilder

type PendingTransactionChanges added in v0.9.1

type PendingTransactionChanges struct {
	Added    []TransactionChange
	Modified []TransactionModification
	Removed  []TransactionChange
}

func DiffPendingTransactions added in v0.9.1

func DiffPendingTransactions(pre, cur State) (*PendingTransactionChanges, error)

type ProposalHashData

type ProposalHashData = msig5.ProposalHashData

this type is the same between v0 and v2

type ProposeParams added in v0.9.1

type ProposeParams = msig5.ProposeParams

type ProposeReturn

type ProposeReturn = msig5.ProposeReturn

type State

type State interface {
	cbor.Marshaler

	LockedBalance(epoch abi.ChainEpoch) (abi.TokenAmount, error)
	StartEpoch() (abi.ChainEpoch, error)
	UnlockDuration() (abi.ChainEpoch, error)
	InitialBalance() (abi.TokenAmount, error)
	Threshold() (uint64, error)
	Signers() ([]address.Address, error)

	ForEachPendingTxn(func(id int64, txn Transaction) error) error
	PendingTxnChanged(State) (bool, error)

	GetState() interface{}
	// contains filtered or unexported methods
}

func Load

func Load(store adt.Store, act *types.Actor) (State, error)

func MakeState added in v0.9.7

func MakeState(store adt.Store, av specactors.Version, signers []address.Address, threshold uint64, startEpoch abi.ChainEpoch, unlockDuration abi.ChainEpoch, initialBalance abi.TokenAmount) (State, error)

type Transaction

type Transaction = msig0.Transaction

type TransactionChange added in v0.9.1

type TransactionChange struct {
	TxID int64
	Tx   Transaction
}

type TransactionModification added in v0.9.1

type TransactionModification struct {
	TxID int64
	From Transaction
	To   Transaction
}

Jump to

Keyboard shortcuts

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