Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NONEVM-745 LogPoller db models #921

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
40 changes: 40 additions & 0 deletions pkg/solana/logpoller/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package logpoller

import (
"time"

"github.com/gagliardetto/solana-go"
"github.com/lib/pq"
)

type Filter struct {
ID int64
ChainId string
Name string
Address solana.PublicKey
EventName string
EventSig []byte
StartingBlock int64
EventIDL string
SubKeyPaths []string
Retention int64
dhaidashenko marked this conversation as resolved.
Show resolved Hide resolved
MaxLogsKept int64
}

type Log struct {
ID int64
FilterId int64
ChainId string
LogIndex int64
BlockHash solana.Hash
BlockNumber int64
BLockTimestamp time.Time
Address solana.PublicKey
EventSig []byte
SubKeyValues pq.ByteaArray
TxHash solana.Signature
Data []byte
CreatedAt time.Time
ExpiresAt *time.Time
SequenceNum int64
}
Loading