Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Mar 22, 2024
1 parent b8160c0 commit 6abdb88
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 0 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions pkg/dataavailability/dac/dac.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package dac

type DAC struct {
}

func (dac *DAC) GetData() []byte {
return []byte("DAC")
}

func (dac *DAC) PostData(data []byte) error {
return nil
}
6 changes: 6 additions & 0 deletions pkg/dataavailability/dataavailability.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package dataavailability

type DataAvailability interface {
GetData() []byte
PostDara(data []byte) error
}
Empty file added pkg/eventsyncer/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions pkg/eventsyncer/interfaces.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package syncer

type EventSyncer interface {
GetData() []byte
}
8 changes: 8 additions & 0 deletions pkg/eventsyncer/l1eventsyncer/sync.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package l1eventsyncer

type L1EventSyncer struct {
}

func (l1EventSyncer *L1EventSyncer) GetData() []byte {
return []byte("L1 Event Syncer")
}
8 changes: 8 additions & 0 deletions pkg/syncer/storage/inmem/inmem.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package inmem

type Inmem struct {
}

func (inmem *Inmem) GetData() []byte {
return []byte("Inmem")
}
6 changes: 6 additions & 0 deletions pkg/syncer/storage/storage.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package syncer

type Storage interface {
GetData() []byte
GetLatestVerifiedBlock() uint64
}
Empty file added pkg/syncer/syncer.go
Empty file.

0 comments on commit 6abdb88

Please sign in to comment.