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

chore: bump storage-incentives abi to v0.4.0 #3666

Merged
merged 1 commit into from Dec 19, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -8,7 +8,7 @@ require (
github.com/coreos/go-semver v0.3.0
github.com/ethereum/go-ethereum v1.10.18
github.com/ethersphere/go-price-oracle-abi v0.1.0
github.com/ethersphere/go-storage-incentives-abi v0.4.0-rc5
github.com/ethersphere/go-storage-incentives-abi v0.4.0
github.com/ethersphere/go-sw3-abi v0.4.0
github.com/ethersphere/langos v1.0.0
github.com/gogo/protobuf v1.3.2
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -252,6 +252,8 @@ github.com/ethersphere/go-storage-incentives-abi v0.4.0-rc4 h1:kwykkAyFaBixyodW6
github.com/ethersphere/go-storage-incentives-abi v0.4.0-rc4/go.mod h1:SXvJVtM4sEsaSKD0jc1ClpDLw8ErPoROZDme4Wrc/Nc=
github.com/ethersphere/go-storage-incentives-abi v0.4.0-rc5 h1:m/rE8L5K3X/RkAsXmeths52xyN7uJ+Ks8/pKLu/Kx/A=
github.com/ethersphere/go-storage-incentives-abi v0.4.0-rc5/go.mod h1:SXvJVtM4sEsaSKD0jc1ClpDLw8ErPoROZDme4Wrc/Nc=
github.com/ethersphere/go-storage-incentives-abi v0.4.0 h1:Z+VIDYxXcgwDMX6yzcquj940+RWzTKAmREZn+yncoe4=
github.com/ethersphere/go-storage-incentives-abi v0.4.0/go.mod h1:SXvJVtM4sEsaSKD0jc1ClpDLw8ErPoROZDme4Wrc/Nc=
github.com/ethersphere/go-sw3-abi v0.4.0 h1:T3ANY+ktWrPAwe2U0tZi+DILpkHzto5ym/XwV/Bbz8g=
github.com/ethersphere/go-sw3-abi v0.4.0/go.mod h1:BmpsvJ8idQZdYEtWnvxA8POYQ8Rl/NhyCdF0zLMOOJU=
github.com/ethersphere/langos v1.0.0 h1:NBtNKzXTTRSue95uOlzPN4py7Aofs0xWPzyj4AI1Vcc=
Expand Down
28 changes: 8 additions & 20 deletions pkg/config/chain.go
Expand Up @@ -11,18 +11,6 @@ import (
"github.com/ethersphere/go-storage-incentives-abi/abi"
)

// TODO: replace this with proper values once the contracts are deployed to the mainnet.
var (
//go:embed mainnet_staking_abi.json
MainnetStakingABI string

//go:embed mainnet_postagestamp_abi.json
MainnetPostageStampABI string

//go:embed mainnet_redistribution_abi.json
MainnetRedistributionABI string
)

// TODO: consider adding BzzAddress (also as a cmd param) to the ChainConfig and remove the postagecontract.LookupERC20Address function.

type ChainConfig struct {
Expand Down Expand Up @@ -68,20 +56,20 @@ var (
}

Mainnet = ChainConfig{
ChainID: 100,
PostageStampStartBlock: uint64(24180961),
ChainID: abi.MainnetChainID,
PostageStampStartBlock: abi.MainnetPostageStampBlockNumber,
NativeTokenSymbol: "ETH",
SwarmTokenSymbol: "BZZ",

StakingAddress: common.HexToAddress("0x52e86336210bB8F1FDe11EB8bc664a20AfC0a614"),
PostageStampAddress: common.HexToAddress("0xa9c84e9ccC0A0bC9B8C8E948F24E024bC2607c9A"),
RedistributionAddress: common.HexToAddress("0xECD2CFfE749A0F8F0a4f136E98C49De0Ee527c1F"),
StakingAddress: common.HexToAddress(abi.MainnetStakingAddress),
PostageStampAddress: common.HexToAddress(abi.MainnetPostageStampStampAddress),
RedistributionAddress: common.HexToAddress(abi.MainnetRedistributionAddress),
SwapPriceOracleAddress: common.HexToAddress("0x0FDc5429C50e2a39066D8A94F3e2D2476fcc3b85"),
CurrentFactoryAddress: common.HexToAddress("0xc2d5a532cf69aa9a1378737d8ccdef884b6e7420"),

StakingABI: MainnetStakingABI,
PostageStampABI: MainnetPostageStampABI,
RedistributionABI: MainnetRedistributionABI,
StakingABI: abi.MainnetStakingABI,
PostageStampABI: abi.MainnetPostageStampStampABI,
RedistributionABI: abi.MainnetRedistributionABI,
}
)

Expand Down