builder

package
v0.101.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CkbTransferUnsignedTxBuilder

type CkbTransferUnsignedTxBuilder struct {
	To               *types.Script
	From             *types.Script
	FeeRate          uint64
	Iterator         collector.CellCollectionIterator
	TransferAll      bool
	SystemScripts    *utils.SystemScripts
	TransferCapacity uint64
	// contains filtered or unexported fields
}

func (*CkbTransferUnsignedTxBuilder) BuildCellDeps

func (b *CkbTransferUnsignedTxBuilder) BuildCellDeps()

func (*CkbTransferUnsignedTxBuilder) BuildHeaderDeps

func (b *CkbTransferUnsignedTxBuilder) BuildHeaderDeps()

func (*CkbTransferUnsignedTxBuilder) BuildInputsAndWitnesses

func (b *CkbTransferUnsignedTxBuilder) BuildInputsAndWitnesses() error

func (*CkbTransferUnsignedTxBuilder) BuildOutputsAndOutputsData

func (b *CkbTransferUnsignedTxBuilder) BuildOutputsAndOutputsData() error

func (*CkbTransferUnsignedTxBuilder) BuildVersion

func (b *CkbTransferUnsignedTxBuilder) BuildVersion()

func (*CkbTransferUnsignedTxBuilder) GetResult

func (b *CkbTransferUnsignedTxBuilder) GetResult() (*types.Transaction, map[string][]int)

func (*CkbTransferUnsignedTxBuilder) NewTransaction

func (b *CkbTransferUnsignedTxBuilder) NewTransaction()

func (*CkbTransferUnsignedTxBuilder) UpdateChangeOutput

func (b *CkbTransferUnsignedTxBuilder) UpdateChangeOutput() error

type ClaimChequesUnsignedTxBuilder

type ClaimChequesUnsignedTxBuilder struct {
	Receiver       *types.Script
	FeeRate        uint64
	CkbIterator    collector.CellCollectionIterator
	ChequeIterator collector.CellCollectionIterator
	SystemScripts  *utils.SystemScripts
	UUID           string
	Client         rpc.Client
	// contains filtered or unexported fields
}

func (*ClaimChequesUnsignedTxBuilder) BuildCellDeps

func (b *ClaimChequesUnsignedTxBuilder) BuildCellDeps()

func (*ClaimChequesUnsignedTxBuilder) BuildHeaderDeps

func (b *ClaimChequesUnsignedTxBuilder) BuildHeaderDeps()

func (*ClaimChequesUnsignedTxBuilder) BuildInputsAndWitnesses

func (b *ClaimChequesUnsignedTxBuilder) BuildInputsAndWitnesses() error

func (*ClaimChequesUnsignedTxBuilder) BuildOutputsAndOutputsData

func (b *ClaimChequesUnsignedTxBuilder) BuildOutputsAndOutputsData() error

func (*ClaimChequesUnsignedTxBuilder) BuildVersion

func (b *ClaimChequesUnsignedTxBuilder) BuildVersion()

func (*ClaimChequesUnsignedTxBuilder) GetResult

func (b *ClaimChequesUnsignedTxBuilder) GetResult() (*types.Transaction, map[string][]int)

func (*ClaimChequesUnsignedTxBuilder) NewTransaction

func (b *ClaimChequesUnsignedTxBuilder) NewTransaction()

func (*ClaimChequesUnsignedTxBuilder) UpdateChangeOutput

func (b *ClaimChequesUnsignedTxBuilder) UpdateChangeOutput() error

type Director

type Director struct {
	// contains filtered or unexported fields
}

func (*Director) Generate

func (d *Director) Generate() (*types.Transaction, map[string][]int, error)

func (*Director) SetBuilder

func (d *Director) SetBuilder(builder UnsignedTxBuilder)

type IssuingChequeUnsignedTxBuilder

type IssuingChequeUnsignedTxBuilder struct {
	Sender         *types.Script
	Receiver       *types.Script
	FeeRate        uint64
	CkbIterator    collector.CellCollectionIterator
	SUDTIterator   collector.CellCollectionIterator
	SystemScripts  *utils.SystemScripts
	TransferAmount *big.Int
	UUID           string
	// contains filtered or unexported fields
}

func (*IssuingChequeUnsignedTxBuilder) BuildCellDeps

func (b *IssuingChequeUnsignedTxBuilder) BuildCellDeps()

func (*IssuingChequeUnsignedTxBuilder) BuildHeaderDeps

func (b *IssuingChequeUnsignedTxBuilder) BuildHeaderDeps()

func (*IssuingChequeUnsignedTxBuilder) BuildInputsAndWitnesses

func (b *IssuingChequeUnsignedTxBuilder) BuildInputsAndWitnesses() error

func (*IssuingChequeUnsignedTxBuilder) BuildOutputsAndOutputsData

func (b *IssuingChequeUnsignedTxBuilder) BuildOutputsAndOutputsData() error

func (*IssuingChequeUnsignedTxBuilder) BuildVersion

func (b *IssuingChequeUnsignedTxBuilder) BuildVersion()

func (*IssuingChequeUnsignedTxBuilder) GetResult

func (b *IssuingChequeUnsignedTxBuilder) GetResult() (*types.Transaction, map[string][]int)

func (*IssuingChequeUnsignedTxBuilder) NewTransaction

func (b *IssuingChequeUnsignedTxBuilder) NewTransaction()

func (*IssuingChequeUnsignedTxBuilder) UpdateChangeOutput

func (b *IssuingChequeUnsignedTxBuilder) UpdateChangeOutput() error

type SudtTransferUnsignedTxBuilder

type SudtTransferUnsignedTxBuilder struct {
	CkbPayer       *types.Script
	CkbChanger     *types.Script
	SudtChanger    *types.Script
	Senders        []*types.Script
	ReceiverInfo   []types.ReceiverInfo
	CkbIterator    collector.CellCollectionIterator
	SUDTIterators  []collector.CellCollectionIterator
	SystemScripts  *utils.SystemScripts
	TransferAmount *big.Int
	UUID           string
	FeeRate        uint64
	// contains filtered or unexported fields
}

func (*SudtTransferUnsignedTxBuilder) BuildCellDeps

func (s *SudtTransferUnsignedTxBuilder) BuildCellDeps()

func (*SudtTransferUnsignedTxBuilder) BuildHeaderDeps

func (s *SudtTransferUnsignedTxBuilder) BuildHeaderDeps()

func (*SudtTransferUnsignedTxBuilder) BuildInputsAndWitnesses

func (s *SudtTransferUnsignedTxBuilder) BuildInputsAndWitnesses() error

func (*SudtTransferUnsignedTxBuilder) BuildOutputsAndOutputsData

func (s *SudtTransferUnsignedTxBuilder) BuildOutputsAndOutputsData() error

func (*SudtTransferUnsignedTxBuilder) BuildVersion

func (s *SudtTransferUnsignedTxBuilder) BuildVersion()

func (*SudtTransferUnsignedTxBuilder) GetResult

func (s *SudtTransferUnsignedTxBuilder) GetResult() (*types.Transaction, map[string][]int)

func (*SudtTransferUnsignedTxBuilder) NewTransaction

func (s *SudtTransferUnsignedTxBuilder) NewTransaction()

func (*SudtTransferUnsignedTxBuilder) UpdateChangeOutput

func (s *SudtTransferUnsignedTxBuilder) UpdateChangeOutput() error

type UnsignedTxBuilder

type UnsignedTxBuilder interface {
	NewTransaction()
	BuildVersion()
	BuildHeaderDeps()
	BuildCellDeps()
	BuildOutputsAndOutputsData() error
	BuildInputsAndWitnesses() error
	UpdateChangeOutput() error
	GetResult() (*types.Transaction, map[string][]int)
}

type WithdrawChequesUnsignedTxBuilder

type WithdrawChequesUnsignedTxBuilder struct {
	Sender         *types.Script
	Receiver       *types.Script
	FeeRate        uint64
	CkbIterator    collector.CellCollectionIterator
	ChequeIterator collector.CellCollectionIterator
	SystemScripts  *utils.SystemScripts
	UUID           string
	Amount         *big.Int
	Client         rpc.Client
	// contains filtered or unexported fields
}

func (*WithdrawChequesUnsignedTxBuilder) BuildCellDeps

func (b *WithdrawChequesUnsignedTxBuilder) BuildCellDeps()

func (*WithdrawChequesUnsignedTxBuilder) BuildHeaderDeps

func (b *WithdrawChequesUnsignedTxBuilder) BuildHeaderDeps()

func (*WithdrawChequesUnsignedTxBuilder) BuildInputsAndWitnesses

func (b *WithdrawChequesUnsignedTxBuilder) BuildInputsAndWitnesses() error

func (*WithdrawChequesUnsignedTxBuilder) BuildOutputsAndOutputsData

func (b *WithdrawChequesUnsignedTxBuilder) BuildOutputsAndOutputsData() error

func (*WithdrawChequesUnsignedTxBuilder) BuildVersion

func (b *WithdrawChequesUnsignedTxBuilder) BuildVersion()

func (*WithdrawChequesUnsignedTxBuilder) GetResult

func (b *WithdrawChequesUnsignedTxBuilder) GetResult() (*types.Transaction, map[string][]int)

func (*WithdrawChequesUnsignedTxBuilder) NewTransaction

func (b *WithdrawChequesUnsignedTxBuilder) NewTransaction()

func (*WithdrawChequesUnsignedTxBuilder) UpdateChangeOutput

func (b *WithdrawChequesUnsignedTxBuilder) UpdateChangeOutput() error

Jump to

Keyboard shortcuts

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