Skip to content

Commit

Permalink
remove finality_status from transaction since this is not deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jun 27, 2024
1 parent 0edd986 commit 4f27dd5
Show file tree
Hide file tree
Showing 4 changed files with 406 additions and 395 deletions.
6 changes: 2 additions & 4 deletions cmd/firestarknet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package main

import (
"fmt"
"os"

"github.com/spf13/cobra"
"github.com/streamingfast/firehose-core/cmd/tools"
"github.com/streamingfast/logging"
"go.uber.org/zap"
"os"
)

var logger, tracer = logging.PackageLogger("firestarknet", "github.com/streamingfast/firehose-starknet")
Expand All @@ -18,9 +18,7 @@ var rootCmd = &cobra.Command{

func init() {
logging.InstantiateLoggers(logging.WithDefaultLevel(zap.InfoLevel))

rootCmd.AddCommand(NewFetchCmd(logger, tracer))
rootCmd.AddCommand(tools.ToolsCmd)
}

func main() {
Expand Down
23 changes: 23 additions & 0 deletions pb/sf/starknet/type/v1/block.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package pbstarknet

import "time"

func (x *Block) GetFirehoseBlockID() string {
return x.BlockHash
}

func (x *Block) GetFirehoseBlockNumber() uint64 {
return x.BlockNumber
}

func (x *Block) GetFirehoseBlockParentID() string {
return x.ParentHash
}

func (x *Block) GetFirehoseBlockParentNumber() uint64 {
return x.BlockNumber - 1
}

func (x *Block) GetFirehoseBlockTime() time.Time {
return time.Unix(int64(x.Timestamp), 0)
}
Loading

0 comments on commit 4f27dd5

Please sign in to comment.