txDataBuilder

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxDataBuilder added in v1.2.14

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

TxDataBuilder constructs a string to be used for transaction arguments

func NewBuilder

func NewBuilder() *TxDataBuilder

NewBuilder creates a new txDataBuilder instance.

func (*TxDataBuilder) BigInt added in v1.2.14

func (builder *TxDataBuilder) BigInt(value *big.Int) *TxDataBuilder

BigInt appends the bytes of a big.Int to the data string.

func (*TxDataBuilder) Bool added in v1.2.14

func (builder *TxDataBuilder) Bool(value bool) *TxDataBuilder

Bool appends either "true" or "false" to the data string, depending on the `value` argument.

func (*TxDataBuilder) BurnESDT added in v1.2.14

func (builder *TxDataBuilder) BurnESDT(token string, value int64) *TxDataBuilder

BurnESDT appends to the data string all the elements required to burn ESDT tokens.

func (*TxDataBuilder) Byte added in v1.2.14

func (builder *TxDataBuilder) Byte(value byte) *TxDataBuilder

Byte appends a single byte to the data string.

func (*TxDataBuilder) Bytes added in v1.2.14

func (builder *TxDataBuilder) Bytes(bytes []byte) *TxDataBuilder

Bytes appends a slice of bytes to the data string.

func (*TxDataBuilder) CanAddSpecialRoles added in v1.2.14

func (builder *TxDataBuilder) CanAddSpecialRoles(prop bool) *TxDataBuilder

CanAddSpecialRoles appends "canAddSpecialRoles" followed by the provided boolean value.

func (*TxDataBuilder) CanBurn added in v1.2.14

func (builder *TxDataBuilder) CanBurn(prop bool) *TxDataBuilder

CanBurn appends "canBurn" followed by the provided boolean value.

func (*TxDataBuilder) CanFreeze added in v1.2.14

func (builder *TxDataBuilder) CanFreeze(prop bool) *TxDataBuilder

CanFreeze appends "canFreeze" followed by the provided boolean value.

func (*TxDataBuilder) CanMint added in v1.2.14

func (builder *TxDataBuilder) CanMint(prop bool) *TxDataBuilder

CanMint appends "canMint" followed by the provided boolean value.

func (*TxDataBuilder) CanPause added in v1.2.14

func (builder *TxDataBuilder) CanPause(prop bool) *TxDataBuilder

CanPause appends "canPause" followed by the provided boolean value.

func (*TxDataBuilder) CanTransferNFTCreateRole added in v1.2.14

func (builder *TxDataBuilder) CanTransferNFTCreateRole(prop bool) *TxDataBuilder

CanTransferNFTCreateRole appends "canTransferNFTCreateRole" followed by the provided boolean value.

func (*TxDataBuilder) CanWipe added in v1.2.14

func (builder *TxDataBuilder) CanWipe(prop bool) *TxDataBuilder

CanWipe appends "canWipe" followed by the provided boolean value.

func (*TxDataBuilder) Clear added in v1.2.14

func (builder *TxDataBuilder) Clear() *TxDataBuilder

Clear resets the internal state of the txDataBuilder, allowing a new data string to be built.

func (*TxDataBuilder) Elements added in v1.2.14

func (builder *TxDataBuilder) Elements() []string

Elements returns the individual elements added to the builder

func (*TxDataBuilder) False added in v1.2.14

func (builder *TxDataBuilder) False() *TxDataBuilder

False appends the string "false" to the data string.

func (*TxDataBuilder) Func added in v1.2.14

func (builder *TxDataBuilder) Func(function string) *TxDataBuilder

Func sets the function to be invoked by the data string.

func (*TxDataBuilder) GetLast added in v1.2.14

func (builder *TxDataBuilder) GetLast() string

GetLast returns the currently last element.

func (*TxDataBuilder) Int added in v1.2.14

func (builder *TxDataBuilder) Int(value int) *TxDataBuilder

Int appends an integer to the data string.

func (*TxDataBuilder) Int64 added in v1.2.14

func (builder *TxDataBuilder) Int64(value int64) *TxDataBuilder

Int64 appends an int64 to the data string.

func (*TxDataBuilder) IsInterfaceNil added in v1.2.14

func (builder *TxDataBuilder) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*TxDataBuilder) IssueESDT added in v1.2.14

func (builder *TxDataBuilder) IssueESDT(token string, ticker string, supply int64, numDecimals byte) *TxDataBuilder

IssueESDT appends to the data string all the elements required to request an ESDT issuing.

func (*TxDataBuilder) SetLast added in v1.2.14

func (builder *TxDataBuilder) SetLast(element string)

SetLast replaces the last element with the provided one.

func (*TxDataBuilder) Str added in v1.2.14

func (builder *TxDataBuilder) Str(str string) *TxDataBuilder

Str appends a string to the data string.

func (*TxDataBuilder) ToBytes added in v1.2.14

func (builder *TxDataBuilder) ToBytes() []byte

ToBytes returns the data as a slice of bytes.

func (*TxDataBuilder) ToString added in v1.2.14

func (builder *TxDataBuilder) ToString() string

ToString returns the data as a string.

func (*TxDataBuilder) TransferESDT added in v1.2.14

func (builder *TxDataBuilder) TransferESDT(token string, value int64) *TxDataBuilder

TransferESDT appends to the data string all the elements required to request an ESDT transfer.

func (*TxDataBuilder) TransferESDTNFT added in v1.2.14

func (builder *TxDataBuilder) TransferESDTNFT(token string, nonce int, value int64) *TxDataBuilder

TransferESDTNFT appends to the data string all the elements required to request an ESDT NFT transfer.

func (*TxDataBuilder) True added in v1.2.14

func (builder *TxDataBuilder) True() *TxDataBuilder

True appends the string "true" to the data string.

Jump to

Keyboard shortcuts

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