entity

package
v0.0.1-alpha-11 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BurnEvent

type BurnEvent struct {
	Id            string `gorm:"primaryKey"` // represents {ethTxHash}-{logIndex}
	ScheduleID    string
	Amount        int64
	Recipient     string
	Status        string
	TransactionId sql.NullString `gorm:"unique"` // id of the original scheduled transaction
	Fee           Fee            `gorm:"foreignKey:BurnEventID"`
}

type Fee added in v1.4.0

type Fee struct {
	TransactionID string `gorm:"primaryKey"`
	ScheduleID    string `gorm:"unique"`
	Amount        string
	Status        string
	TransferID    sql.NullString
	BurnEventID   sql.NullString
}

type Message

type Message struct {
	TransferID           string
	Transfer             Transfer `gorm:"foreignKey:TransferID;references:TransactionID;"`
	Hash                 string
	Signature            string `gorm:"unique"`
	Signer               string
	TransactionTimestamp int64
}

type Status

type Status struct {
	Name      string
	EntityID  string
	Code      string
	Timestamp int64
}

This table will contain information for latest status of the application

type Transfer

type Transfer struct {
	TransactionID      string `gorm:"primaryKey"`
	Receiver           string
	NativeAsset        string
	WrappedAsset       string
	Amount             string
	RouterAddress      string
	Status             string
	SignatureMsgStatus string
	Messages           []Message `gorm:"foreignKey:TransferID"`
	Fee                Fee       `gorm:"foreignKey:TransferID"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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