Documentation ¶
Index ¶
- type Data
- type FeeTokenData
- type FeeTokenDataBuilder
- func (b *FeeTokenDataBuilder) Build() *FeeTokenData
- func (b *FeeTokenDataBuilder) SetAddress(addr string) *FeeTokenDataBuilder
- func (b *FeeTokenDataBuilder) SetAmount(amount string) *FeeTokenDataBuilder
- func (b *FeeTokenDataBuilder) SetNetworkType(network tokenmanagertypes.NetworkType) *FeeTokenDataBuilder
- func (b *FeeTokenDataBuilder) SetOpType(tp rarimotypes.FeeTokenManagementType) *FeeTokenDataBuilder
- type TransferData
- type TransferDataBuilder
- func (b *TransferDataBuilder) Build() *TransferData
- func (b *TransferDataBuilder) SetAddress(addr string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetAmount(amount string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetDecimals(d uint8) *TransferDataBuilder
- func (b *TransferDataBuilder) SetId(id string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetImageHash(hash string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetImageURI(uri string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetName(name string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetNetworkType(networkType tokentypes.NetworkType) *TransferDataBuilder
- func (b *TransferDataBuilder) SetSymbol(symbol string) *TransferDataBuilder
- func (b *TransferDataBuilder) SetURI(uri string) *TransferDataBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data interface {
GetContent() operation.ContentData
}
Data defines the certain operation that should be signed and produced by our bridge
type FeeTokenData ¶
type FeeTokenData struct { OpType rarimotypes.FeeTokenManagementType // Fee token address Address []byte // Memory representation of amount integer as a byte array in big-endian (with leading zeros if needed) // Use binary.BigEndian.PutUint64(amount, c.Amount) Amount []byte }
FeeTokenData defines the fee token management operation
func (FeeTokenData) GetContent ¶
func (f FeeTokenData) GetContent() operation.ContentData
type FeeTokenDataBuilder ¶
type FeeTokenDataBuilder struct {
// contains filtered or unexported fields
}
func NewFeeTokenDataBuilder ¶
func NewFeeTokenDataBuilder() *FeeTokenDataBuilder
func (*FeeTokenDataBuilder) Build ¶
func (b *FeeTokenDataBuilder) Build() *FeeTokenData
func (*FeeTokenDataBuilder) SetAddress ¶
func (b *FeeTokenDataBuilder) SetAddress(addr string) *FeeTokenDataBuilder
func (*FeeTokenDataBuilder) SetAmount ¶
func (b *FeeTokenDataBuilder) SetAmount(amount string) *FeeTokenDataBuilder
func (*FeeTokenDataBuilder) SetNetworkType ¶
func (b *FeeTokenDataBuilder) SetNetworkType(network tokenmanagertypes.NetworkType) *FeeTokenDataBuilder
func (*FeeTokenDataBuilder) SetOpType ¶
func (b *FeeTokenDataBuilder) SetOpType(tp rarimotypes.FeeTokenManagementType) *FeeTokenDataBuilder
type TransferData ¶
type TransferData struct { // Collection address on target chain TargetAddress []byte // TokenId on target chain TargetId []byte // Memory representation of amount integer as a byte array in big-endian (with leading zeros if needed) // Use binary.BigEndian.PutUint64(amount, c.Amount) Amount []byte // Target metadata information !!OPTIONAL!! TargetName string TargetSymbol string TargetURI string ImageURI string ImageHash []byte TargetDecimals []byte // contains filtered or unexported fields }
TransferData defines the token transfer operation - from one network to another with full token metadata
func (TransferData) GetContent ¶
func (t TransferData) GetContent() operation.ContentData
type TransferDataBuilder ¶
type TransferDataBuilder struct {
// contains filtered or unexported fields
}
func NewTransferDataBuilder ¶
func NewTransferDataBuilder() *TransferDataBuilder
func (*TransferDataBuilder) Build ¶
func (b *TransferDataBuilder) Build() *TransferData
func (*TransferDataBuilder) SetAddress ¶
func (b *TransferDataBuilder) SetAddress(addr string) *TransferDataBuilder
func (*TransferDataBuilder) SetAmount ¶
func (b *TransferDataBuilder) SetAmount(amount string) *TransferDataBuilder
func (*TransferDataBuilder) SetDecimals ¶
func (b *TransferDataBuilder) SetDecimals(d uint8) *TransferDataBuilder
func (*TransferDataBuilder) SetId ¶
func (b *TransferDataBuilder) SetId(id string) *TransferDataBuilder
func (*TransferDataBuilder) SetImageHash ¶
func (b *TransferDataBuilder) SetImageHash(hash string) *TransferDataBuilder
func (*TransferDataBuilder) SetImageURI ¶
func (b *TransferDataBuilder) SetImageURI(uri string) *TransferDataBuilder
func (*TransferDataBuilder) SetName ¶
func (b *TransferDataBuilder) SetName(name string) *TransferDataBuilder
func (*TransferDataBuilder) SetNetworkType ¶
func (b *TransferDataBuilder) SetNetworkType(networkType tokentypes.NetworkType) *TransferDataBuilder
func (*TransferDataBuilder) SetSymbol ¶
func (b *TransferDataBuilder) SetSymbol(symbol string) *TransferDataBuilder
func (*TransferDataBuilder) SetURI ¶
func (b *TransferDataBuilder) SetURI(uri string) *TransferDataBuilder
Click to show internal directories.
Click to hide internal directories.