Skip to content

Commit

Permalink
feat: add bundles type (#108)
Browse files Browse the repository at this point in the history
* feat: add bundles type

* feat: add id col

* fix type

* add sender column
  • Loading branch information
datluongductuan authored Dec 23, 2024
1 parent 1bee959 commit 6398250
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/types/bundles.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package types

import (
"time"

"github.com/lib/pq"
)

type ExecuteBundle struct {
ID int64 `db:"id"`
TxHashes pq.StringArray `db:"tx_hashes"` // Use pq.StringArray instead of []string
BundleHash string `db:"bundle_hash"`
BlockNumber uint64 `db:"block_number"`
SubmitAt time.Time `db:"submit_at"`
BuilderName string `db:"builder_name"`
Sender string `db:"sender"`
}

0 comments on commit 6398250

Please sign in to comment.