Documentation ¶
Overview ¶
tx builder for VM
package to build value transaction for the anchor transaction
Index ¶
- type Builder
- func (txb *Builder) AddRequestSection(req *sctransaction.RequestSection) error
- func (txb *Builder) Balance(col balance.Color) int64
- func (txb *Builder) Build() (*sctransaction.Transaction, error)
- func (txb *Builder) Clone() *Builder
- func (txb *Builder) Dump(dumpVtxb bool) string
- func (txb *Builder) Erase1TokenToChain(col balance.Color) bool
- func (txb *Builder) MustValidate()
- func (txb *Builder) SetStateParams(stateIndex uint32, stateHash hashing.HashValue, timestamp int64) error
- func (txb *Builder) TransferToAddress(targetAddr address.Address, transfer coretypes.ColoredBalances) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AddRequestSection ¶
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() (*sctransaction.Transaction, error)
func (*Builder) MustValidate ¶
func (txb *Builder) MustValidate()
func (*Builder) SetStateParams ¶
func (*Builder) TransferToAddress ¶
Click to show internal directories.
Click to hide internal directories.