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

Storage fee in fixed price. #18

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/0glabs/0g-storage-scan
go 1.21.0

require (
github.com/0glabs/0g-storage-client v0.1.15
github.com/Conflux-Chain/go-conflux-util v0.1.0
github.com/deckarep/golang-set v1.8.0
github.com/ethereum/go-ethereum v1.12.2
Expand All @@ -20,7 +21,6 @@ require (
)

require (
github.com/0glabs/0g-storage-client v0.1.14-0.20240310090450-1d09ec4f0b9c // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/0glabs/0g-storage-client v0.1.14-0.20240310090450-1d09ec4f0b9c h1:mo2hT+XRtAsCgHC0ZeZYLGJym1e+p1hIZnYF0BbiQEA=
github.com/0glabs/0g-storage-client v0.1.14-0.20240310090450-1d09ec4f0b9c/go.mod h1:2kfJKoBvt0Oz1akx0cEX/itYkyNgehHM/UjIPZW6InA=
github.com/0glabs/0g-storage-client v0.1.15 h1:5xGEboPze+dMQOeCZgaJzdf6JQtHBTSsXH7L9HZhVqk=
github.com/0glabs/0g-storage-client v0.1.15/go.mod h1:2kfJKoBvt0Oz1akx0cEX/itYkyNgehHM/UjIPZW6InA=
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
Expand Down
2 changes: 1 addition & 1 deletion store/store_submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewSubmit(blockTime time.Time, log types.Log, filter *contract.FlowFilterer
BlockNumber: log.BlockNumber,
BlockTime: blockTime,
TxHash: log.TxHash.String(),
Fee: decimal.NewFromBigInt(big.NewInt(0), 0),
Fee: decimal.NewFromBigInt(flowSubmit.Submission.Fee(), 0),
TotalSegNum: (length-1)/core.DefaultSegmentSize + 1,
Extra: extra,
}
Expand Down
Loading