Documentation ¶
Index ¶
- type Builder
- func (txb *Builder) AddMinting(mint map[address.Address]int64)
- func (txb *Builder) AddRequestSection(req *sctransaction.RequestSection) error
- func (txb *Builder) Build(useAllInputs bool) (*sctransaction.Transaction, error)
- func (txb *Builder) BuildValueTransactionOnly(useAllInputs bool) *valuetransaction.Transaction
- func (txb *Builder) Clone() *Builder
- func (txb *Builder) CreateOriginStateSection(stateHash hashing.HashValue, originAddress *address.Address) error
- func (txb *Builder) SetStateParams(stateIndex uint32, stateHash hashing.HashValue, timestamp int64) error
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 (*Builder) AddMinting ¶ added in v0.1.0
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) 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
Click to show internal directories.
Click to hide internal directories.