token_transfer

package
v0.0.0-...-385ac5a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ingest_processors_token_transfer_token_transfer_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Burn

type Burn struct {
	From   *address.Address `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount string           `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Burn) Descriptor deprecated

func (*Burn) Descriptor() ([]byte, []int)

Deprecated: Use Burn.ProtoReflect.Descriptor instead.

func (*Burn) GetAmount

func (x *Burn) GetAmount() string

func (*Burn) GetFrom

func (x *Burn) GetFrom() *address.Address

func (*Burn) ProtoMessage

func (*Burn) ProtoMessage()

func (*Burn) ProtoReflect

func (x *Burn) ProtoReflect() protoreflect.Message

func (*Burn) Reset

func (x *Burn) Reset()

func (*Burn) String

func (x *Burn) String() string

type Clawback

type Clawback struct {
	From   *address.Address `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount string           `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Clawback) Descriptor deprecated

func (*Clawback) Descriptor() ([]byte, []int)

Deprecated: Use Clawback.ProtoReflect.Descriptor instead.

func (*Clawback) GetAmount

func (x *Clawback) GetAmount() string

func (*Clawback) GetFrom

func (x *Clawback) GetFrom() *address.Address

func (*Clawback) ProtoMessage

func (*Clawback) ProtoMessage()

func (*Clawback) ProtoReflect

func (x *Clawback) ProtoReflect() protoreflect.Message

func (*Clawback) Reset

func (x *Clawback) Reset()

func (*Clawback) String

func (x *Clawback) String() string

type EventMeta

type EventMeta struct {
	LedgerSequence  uint32                 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"`
	ClosedAt        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"`
	TxHash          string                 `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	OperationIndex  *uint32                `protobuf:"varint,4,opt,name=operation_index,json=operationIndex,proto3,oneof" json:"operation_index,omitempty"`
	ContractAddress *address.Address       `protobuf:"bytes,5,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// contains filtered or unexported fields
}

EventMeta message

func (*EventMeta) Descriptor deprecated

func (*EventMeta) Descriptor() ([]byte, []int)

Deprecated: Use EventMeta.ProtoReflect.Descriptor instead.

func (*EventMeta) GetClosedAt

func (x *EventMeta) GetClosedAt() *timestamppb.Timestamp

func (*EventMeta) GetContractAddress

func (x *EventMeta) GetContractAddress() *address.Address

func (*EventMeta) GetLedgerSequence

func (x *EventMeta) GetLedgerSequence() uint32

func (*EventMeta) GetOperationIndex

func (x *EventMeta) GetOperationIndex() uint32

func (*EventMeta) GetTxHash

func (x *EventMeta) GetTxHash() string

func (*EventMeta) ProtoMessage

func (*EventMeta) ProtoMessage()

func (*EventMeta) ProtoReflect

func (x *EventMeta) ProtoReflect() protoreflect.Message

func (*EventMeta) Reset

func (x *EventMeta) Reset()

func (*EventMeta) String

func (x *EventMeta) String() string

type Fee

type Fee struct {
	From   *address.Address `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount string           `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Fee) Descriptor deprecated

func (*Fee) Descriptor() ([]byte, []int)

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetAmount

func (x *Fee) GetAmount() string

func (*Fee) GetFrom

func (x *Fee) GetFrom() *address.Address

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect

func (x *Fee) ProtoReflect() protoreflect.Message

func (*Fee) Reset

func (x *Fee) Reset()

func (*Fee) String

func (x *Fee) String() string

type Mint

type Mint struct {
	To     *address.Address `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount string           `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Mint) Descriptor deprecated

func (*Mint) Descriptor() ([]byte, []int)

Deprecated: Use Mint.ProtoReflect.Descriptor instead.

func (*Mint) GetAmount

func (x *Mint) GetAmount() string

func (*Mint) GetTo

func (x *Mint) GetTo() *address.Address

func (*Mint) ProtoMessage

func (*Mint) ProtoMessage()

func (*Mint) ProtoReflect

func (x *Mint) ProtoReflect() protoreflect.Message

func (*Mint) Reset

func (x *Mint) Reset()

func (*Mint) String

func (x *Mint) String() string

type TokenTransferEvent

type TokenTransferEvent struct {
	Meta  *EventMeta   `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Asset *asset.Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent
	// Types that are valid to be assigned to Event:
	//
	//	*TokenTransferEvent_Transfer
	//	*TokenTransferEvent_Mint
	//	*TokenTransferEvent_Burn
	//	*TokenTransferEvent_Clawback
	//	*TokenTransferEvent_Fee
	Event isTokenTransferEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func NewBurnEvent

func NewBurnEvent(meta *EventMeta, from *address.Address, amount string, token *asset.Asset) *TokenTransferEvent

func NewClawbackEvent

func NewClawbackEvent(meta *EventMeta, from *address.Address, amount string, token *asset.Asset) *TokenTransferEvent

func NewFeeEvent

func NewFeeEvent(ledgerSequence uint32, closedAt time.Time, txHash string, from *address.Address, amount string, token *asset.Asset) *TokenTransferEvent

func NewMintEvent

func NewMintEvent(meta *EventMeta, to *address.Address, amount string, token *asset.Asset) *TokenTransferEvent

func NewTransferEvent

func NewTransferEvent(meta *EventMeta, from, to *address.Address, amount string, token *asset.Asset) *TokenTransferEvent

func (*TokenTransferEvent) Descriptor deprecated

func (*TokenTransferEvent) Descriptor() ([]byte, []int)

Deprecated: Use TokenTransferEvent.ProtoReflect.Descriptor instead.

func (*TokenTransferEvent) GetAsset

func (x *TokenTransferEvent) GetAsset() *asset.Asset

func (*TokenTransferEvent) GetBurn

func (x *TokenTransferEvent) GetBurn() *Burn

func (*TokenTransferEvent) GetClawback

func (x *TokenTransferEvent) GetClawback() *Clawback

func (*TokenTransferEvent) GetEvent

func (x *TokenTransferEvent) GetEvent() isTokenTransferEvent_Event

func (*TokenTransferEvent) GetFee

func (x *TokenTransferEvent) GetFee() *Fee

func (*TokenTransferEvent) GetMeta

func (x *TokenTransferEvent) GetMeta() *EventMeta

func (*TokenTransferEvent) GetMint

func (x *TokenTransferEvent) GetMint() *Mint

func (*TokenTransferEvent) GetTransfer

func (x *TokenTransferEvent) GetTransfer() *Transfer

func (*TokenTransferEvent) ProtoMessage

func (*TokenTransferEvent) ProtoMessage()

func (*TokenTransferEvent) ProtoReflect

func (x *TokenTransferEvent) ProtoReflect() protoreflect.Message

func (*TokenTransferEvent) Reset

func (x *TokenTransferEvent) Reset()

func (*TokenTransferEvent) String

func (x *TokenTransferEvent) String() string

type TokenTransferEvent_Burn

type TokenTransferEvent_Burn struct {
	Burn *Burn `protobuf:"bytes,5,opt,name=burn,proto3,oneof"`
}

type TokenTransferEvent_Clawback

type TokenTransferEvent_Clawback struct {
	Clawback *Clawback `protobuf:"bytes,6,opt,name=clawback,proto3,oneof"`
}

type TokenTransferEvent_Fee

type TokenTransferEvent_Fee struct {
	Fee *Fee `protobuf:"bytes,7,opt,name=fee,proto3,oneof"`
}

type TokenTransferEvent_Mint

type TokenTransferEvent_Mint struct {
	Mint *Mint `protobuf:"bytes,4,opt,name=mint,proto3,oneof"`
}

type TokenTransferEvent_Transfer

type TokenTransferEvent_Transfer struct {
	Transfer *Transfer `protobuf:"bytes,3,opt,name=transfer,proto3,oneof"`
}

type Transfer

type Transfer struct {
	From   *address.Address `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To     *address.Address `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount string           `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() string

func (*Transfer) GetFrom

func (x *Transfer) GetFrom() *address.Address

func (*Transfer) GetTo

func (x *Transfer) GetTo() *address.Address

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

Jump to

Keyboard shortcuts

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