txbuilder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	*vtxbuilder.Builder
	// contains filtered or unexported fields
}

func NewFromOutputBalances

func NewFromOutputBalances(outputBalances map[valuetransaction.OutputID][]*balance.Balance) (*Builder, error)

func (*Builder) AddMinting added in v0.1.0

func (txb *Builder) AddMinting(mint map[address.Address]int64)

AddMinting adds amounts to be minted from iotas to respective addresses

func (*Builder) AddRequestSection added in v0.1.0

func (txb *Builder) AddRequestSection(req *sctransaction.RequestSection) error

AddRequestSectionWithTransfer adds request block with the request token and adds respective outputs for the colored transfers

func (*Builder) Build

func (txb *Builder) Build(useAllInputs bool) (*sctransaction.Transaction, error)

func (*Builder) BuildValueTransactionOnly

func (txb *Builder) BuildValueTransactionOnly(useAllInputs bool) *valuetransaction.Transaction

ignores SC part

func (*Builder) Clone

func (txb *Builder) Clone() *Builder

func (*Builder) CreateOriginStateSection added in v0.1.0

func (txb *Builder) CreateOriginStateSection(stateHash hashing.HashValue, originAddress *address.Address) error

CreateOriginStateSection - initializes origin state transaction of the chain with originAddress in the builder. - mints chain token, sets origin state hash - sets state index and timestamp to 0

func (*Builder) SetStateParams

func (txb *Builder) SetStateParams(stateIndex uint32, stateHash hashing.HashValue, timestamp int64) error

Jump to

Keyboard shortcuts

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