Documentation ¶
Index ¶
- type TxDataBuilder
- func (builder *TxDataBuilder) BigInt(value *big.Int) *TxDataBuilder
- func (builder *TxDataBuilder) Bool(value bool) *TxDataBuilder
- func (builder *TxDataBuilder) BurnDCDT(token string, value int64) *TxDataBuilder
- func (builder *TxDataBuilder) Byte(value byte) *TxDataBuilder
- func (builder *TxDataBuilder) Bytes(bytes []byte) *TxDataBuilder
- func (builder *TxDataBuilder) CanAddSpecialRoles(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanBurn(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanFreeze(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanMint(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanPause(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanTransferNFTCreateRole(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) CanWipe(prop bool) *TxDataBuilder
- func (builder *TxDataBuilder) Clear() *TxDataBuilder
- func (builder *TxDataBuilder) Elements() []string
- func (builder *TxDataBuilder) ElementsAsBytes() [][]byte
- func (builder *TxDataBuilder) False() *TxDataBuilder
- func (builder *TxDataBuilder) Func(function string) *TxDataBuilder
- func (builder *TxDataBuilder) Function() string
- func (builder *TxDataBuilder) GetLast() string
- func (builder *TxDataBuilder) Int(value int) *TxDataBuilder
- func (builder *TxDataBuilder) Int64(value int64) *TxDataBuilder
- func (builder *TxDataBuilder) IsInterfaceNil() bool
- func (builder *TxDataBuilder) IssueDCDT(token string, ticker string, supply int64, numDecimals byte) *TxDataBuilder
- func (builder *TxDataBuilder) IssueDCDTWithAsyncArgs(token string, ticker string, supply int64, numDecimals byte) *TxDataBuilder
- func (builder *TxDataBuilder) LocalBurnDCDT(token string, value int64) *TxDataBuilder
- func (builder *TxDataBuilder) LocalMintDCDT(token string, value int64) *TxDataBuilder
- func (builder *TxDataBuilder) MultiTransferDCDTNFT(destinationAddress []byte, transfers []*vmcommon.DCDTTransfer) *TxDataBuilder
- func (builder *TxDataBuilder) SetLast(element string)
- func (builder *TxDataBuilder) Str(str string) *TxDataBuilder
- func (builder *TxDataBuilder) ToBytes() []byte
- func (builder *TxDataBuilder) ToString() string
- func (builder *TxDataBuilder) TransferDCDT(token string, value int64) *TxDataBuilder
- func (builder *TxDataBuilder) TransferDCDTNFT(token string, nonce int, value int64) *TxDataBuilder
- func (builder *TxDataBuilder) TransferMultiDCDT(destAddress []byte, args [][]byte) *TxDataBuilder
- func (builder *TxDataBuilder) True() *TxDataBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxDataBuilder ¶
type TxDataBuilder struct {
// contains filtered or unexported fields
}
TxDataBuilder constructs a string to be used for transaction arguments
func (*TxDataBuilder) BigInt ¶
func (builder *TxDataBuilder) BigInt(value *big.Int) *TxDataBuilder
BigInt appends the bytes of a big.Int to the data string.
func (*TxDataBuilder) Bool ¶
func (builder *TxDataBuilder) Bool(value bool) *TxDataBuilder
Bool appends either "true" or "false" to the data string, depending on the `value` argument.
func (*TxDataBuilder) BurnDCDT ¶
func (builder *TxDataBuilder) BurnDCDT(token string, value int64) *TxDataBuilder
BurnDCDT appends to the data string all the elements required to burn DCDT tokens.
func (*TxDataBuilder) Byte ¶
func (builder *TxDataBuilder) Byte(value byte) *TxDataBuilder
Byte appends a single byte to the data string.
func (*TxDataBuilder) Bytes ¶
func (builder *TxDataBuilder) Bytes(bytes []byte) *TxDataBuilder
Bytes appends a slice of bytes to the data string.
func (*TxDataBuilder) CanAddSpecialRoles ¶
func (builder *TxDataBuilder) CanAddSpecialRoles(prop bool) *TxDataBuilder
CanAddSpecialRoles appends "canAddSpecialRoles" followed by the provided boolean value.
func (*TxDataBuilder) CanBurn ¶
func (builder *TxDataBuilder) CanBurn(prop bool) *TxDataBuilder
CanBurn appends "canBurn" followed by the provided boolean value.
func (*TxDataBuilder) CanFreeze ¶
func (builder *TxDataBuilder) CanFreeze(prop bool) *TxDataBuilder
CanFreeze appends "canFreeze" followed by the provided boolean value.
func (*TxDataBuilder) CanMint ¶
func (builder *TxDataBuilder) CanMint(prop bool) *TxDataBuilder
CanMint appends "canMint" followed by the provided boolean value.
func (*TxDataBuilder) CanPause ¶
func (builder *TxDataBuilder) CanPause(prop bool) *TxDataBuilder
CanPause appends "canPause" followed by the provided boolean value.
func (*TxDataBuilder) CanTransferNFTCreateRole ¶
func (builder *TxDataBuilder) CanTransferNFTCreateRole(prop bool) *TxDataBuilder
CanTransferNFTCreateRole appends "canTransferNFTCreateRole" followed by the provided boolean value.
func (*TxDataBuilder) CanWipe ¶
func (builder *TxDataBuilder) CanWipe(prop bool) *TxDataBuilder
CanWipe appends "canWipe" followed by the provided boolean value.
func (*TxDataBuilder) Clear ¶
func (builder *TxDataBuilder) Clear() *TxDataBuilder
Clear resets the internal state of the txDataBuilder, allowing a new data string to be built.
func (*TxDataBuilder) Elements ¶
func (builder *TxDataBuilder) Elements() []string
Elements returns the individual elements added to the builder
func (*TxDataBuilder) ElementsAsBytes ¶
func (builder *TxDataBuilder) ElementsAsBytes() [][]byte
ElementsAsBytes returns the individual elements added to the builder
func (*TxDataBuilder) False ¶
func (builder *TxDataBuilder) False() *TxDataBuilder
False appends the string "false" to the data string.
func (*TxDataBuilder) Func ¶
func (builder *TxDataBuilder) Func(function string) *TxDataBuilder
Func sets the function to be invoked by the data string.
func (*TxDataBuilder) Function ¶
func (builder *TxDataBuilder) Function() string
Function returns the individual elements added to the builder
func (*TxDataBuilder) GetLast ¶
func (builder *TxDataBuilder) GetLast() string
GetLast returns the currently last element.
func (*TxDataBuilder) Int ¶
func (builder *TxDataBuilder) Int(value int) *TxDataBuilder
Int appends an integer to the data string.
func (*TxDataBuilder) Int64 ¶
func (builder *TxDataBuilder) Int64(value int64) *TxDataBuilder
Int64 appends an int64 to the data string.
func (*TxDataBuilder) IsInterfaceNil ¶
func (builder *TxDataBuilder) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*TxDataBuilder) IssueDCDT ¶
func (builder *TxDataBuilder) IssueDCDT(token string, ticker string, supply int64, numDecimals byte) *TxDataBuilder
IssueDCDT appends to the data string all the elements required to request an DCDT issuing.
func (*TxDataBuilder) IssueDCDTWithAsyncArgs ¶
func (builder *TxDataBuilder) IssueDCDTWithAsyncArgs(token string, ticker string, supply int64, numDecimals byte) *TxDataBuilder
IssueDCDTWithAsyncArgs appends to the data string all the elements required to request an DCDT issuing.
func (*TxDataBuilder) LocalBurnDCDT ¶
func (builder *TxDataBuilder) LocalBurnDCDT(token string, value int64) *TxDataBuilder
LocalBurnDCDT appends to the data string all the elements required to local burn DCDT tokens.
func (*TxDataBuilder) LocalMintDCDT ¶
func (builder *TxDataBuilder) LocalMintDCDT(token string, value int64) *TxDataBuilder
LocalMintDCDT appends to the data string all the elements required to local burn DCDT tokens.
func (*TxDataBuilder) MultiTransferDCDTNFT ¶
func (builder *TxDataBuilder) MultiTransferDCDTNFT(destinationAddress []byte, transfers []*vmcommon.DCDTTransfer) *TxDataBuilder
MultiTransferDCDTNFT appends to the data string all the elements required to request an Multi DCDT NFT transfer.
func (*TxDataBuilder) SetLast ¶
func (builder *TxDataBuilder) SetLast(element string)
SetLast replaces the last element with the provided one.
func (*TxDataBuilder) Str ¶
func (builder *TxDataBuilder) Str(str string) *TxDataBuilder
Str appends a string to the data string.
func (*TxDataBuilder) ToBytes ¶
func (builder *TxDataBuilder) ToBytes() []byte
ToBytes returns the data as a slice of bytes.
func (*TxDataBuilder) ToString ¶
func (builder *TxDataBuilder) ToString() string
ToString returns the data as a string.
func (*TxDataBuilder) TransferDCDT ¶
func (builder *TxDataBuilder) TransferDCDT(token string, value int64) *TxDataBuilder
TransferDCDT appends to the data string all the elements required to request an DCDT transfer.
func (*TxDataBuilder) TransferDCDTNFT ¶
func (builder *TxDataBuilder) TransferDCDTNFT(token string, nonce int, value int64) *TxDataBuilder
TransferDCDTNFT appends to the data string all the elements required to request an DCDT NFT transfer.
func (*TxDataBuilder) TransferMultiDCDT ¶
func (builder *TxDataBuilder) TransferMultiDCDT(destAddress []byte, args [][]byte) *TxDataBuilder
TransferMultiDCDT appends to the data string all the elements required to request an multi DCDT transfer.
func (*TxDataBuilder) True ¶
func (builder *TxDataBuilder) True() *TxDataBuilder
True appends the string "true" to the data string.