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

Added WatchTheBurnStage + erigon_watchTheBurn json rpc call #3137

Merged
merged 11 commits into from
Dec 16, 2021
Merged
Next Next commit
added blockIssuance type
  • Loading branch information
Giulio2002 committed Dec 15, 2021
commit 7dab507425757418ba6ebba6987989df74512726
20 changes: 20 additions & 0 deletions core/types/issuance.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package types

import (
"encoding/json"
"math/big"
)

type BlockIssuance struct {
BlockReward *big.Int `json:"blockReward"`
UncleReward *big.Int `json:"uncleReward"`
Issuance *big.Int `json:"issuance"`
TotalIssued *big.Int `json:"totalIssued"`
TotalBurnt *big.Int `json:"totalBurnt"`
}

func Encode(data []byte) (BlockIssuance, error) {
var issuance BlockIssuance
err := json.Unmarshal(data, &issuance)
return issuance, err
}