github.com/ethersphere/bee/v2@v2.2.0/pkg/postage/chainstate.go (about)

     1  // Copyright 2020 The Swarm Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package postage
     6  
     7  import "math/big"
     8  
     9  // ChainState contains data the batch service reads from the chain.
    10  type ChainState struct {
    11  	Block        uint64   // The block number of the last postage event.
    12  	TotalAmount  *big.Int // Cumulative amount paid per stamp.
    13  	CurrentPrice *big.Int // Bzz/chunk/block normalised price.
    14  }