dao

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 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 Deposit

type Deposit struct {
	Transaction *types.Transaction
}

func NewDeposit

func NewDeposit(scripts *utils.SystemScripts, isMultisig bool) *Deposit

func (*Deposit) AddDaoOutput

func (d *Deposit) AddDaoOutput(scripts *utils.SystemScripts, lock *types.Script, amount uint64) error

func (*Deposit) AddOutput

func (d *Deposit) AddOutput(lock *types.Script, amount uint64) error

type WithdrawPhase1

type WithdrawPhase1 struct {
	Transaction *types.Transaction
}

func NewWithdrawPhase1

func NewWithdrawPhase1(scripts *utils.SystemScripts, isMultisig bool) *WithdrawPhase1

func (*WithdrawPhase1) AddDaoDepositTick

func (w *WithdrawPhase1) AddDaoDepositTick(client rpc.Client, cell *types.Cell) (int, error)

func (*WithdrawPhase1) AddOutput

func (w *WithdrawPhase1) AddOutput(lock *types.Script, amount uint64) error

type WithdrawPhase2

type WithdrawPhase2 struct {
	Transaction *types.Transaction
}

func NewWithdrawPhase2

func NewWithdrawPhase2(scripts *utils.SystemScripts, isMultisig bool) *WithdrawPhase2

func (*WithdrawPhase2) AddDaoWithdrawTick

func (w *WithdrawPhase2) AddDaoWithdrawTick(client rpc.Client, depositCell *types.Cell, withdrawCell *types.Cell, fee uint64) (int, *types.WitnessArgs, error)

func (*WithdrawPhase2) AddOutput

func (w *WithdrawPhase2) AddOutput(lock *types.Script, amount uint64) error

Jump to

Keyboard shortcuts

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