Skip to content

Commit

Permalink
chore: remove hyperspace and wallaby
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Dec 6, 2023
1 parent d85a8d7 commit e45c2b3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 180 deletions.
4 changes: 0 additions & 4 deletions fixtures/assets/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ func GetGenesis(networkType types.NetworkType) ([]byte, error) {
fileName = "interopnet.car"
case types.NetworkButterfly:
fileName = "butterflynet.car"
case types.NetworkHyperspace:
fileName = "hyperspacenet.car"
case types.NetworkCalibnet:
fileName = "calibnet.car"
case types.NetworkWallaby:
fileName = "wallabynet.car"
default:
fileName = "mainnet.car"
}
Expand Down
Binary file removed fixtures/assets/genesis-car/hyperspacenet.car
Binary file not shown.
Binary file removed fixtures/assets/genesis-car/wallabynet.car
Binary file not shown.
73 changes: 0 additions & 73 deletions fixtures/networks/hyperspace.go

This file was deleted.

4 changes: 0 additions & 4 deletions fixtures/networks/network_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ func GetNetworkConfigFromType(networkType types.NetworkType) (*NetworkConf, erro
return InteropNet(), nil
case types.NetworkButterfly:
return ButterflySnapNet(), nil
case types.NetworkWallaby:
return WallabyNet(), nil
case types.NetworkHyperspace:
return HyperspaceNet(), nil
}

return nil, fmt.Errorf("unknown network type %d", networkType)
Expand Down
5 changes: 0 additions & 5 deletions fixtures/networks/network_parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func TestGetNetworkFromName(t *testing.T) {
network: types.NetworkButterfly,
err: nil,
},
// {
// name: "hyperspacenet",
// network: types.NetworkHyperspace,
// err: nil,
// },
{
name: "unknown",
network: 0,
Expand Down
73 changes: 0 additions & 73 deletions fixtures/networks/wallaby.go

This file was deleted.

8 changes: 0 additions & 8 deletions venus-shared/actors/builtin_actors.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func init() {
// NetworkInterop NetworkType = 0x6
// NetworkForce NetworkType = 0x7
// NetworkButterfly NetworkType = 0x8
// NetworkWallaby NetworkType = 0x9
// NetworkHyperspace NetworkType = 0x10
// Avoid import cycle, we use concrete values
func SetNetworkBundle(networkType int) error {
networkBundle := ""
Expand All @@ -74,12 +72,6 @@ func SetNetworkBundle(networkType int) error {
// case types.NetworkButterfly:
case 0x8:
networkBundle = "butterflynet"
// case types.NetworkWallaby:
case 0x9:
networkBundle = "wallaby"
// case types.NetworkHyperspace:
case 0x10:
networkBundle = "hyperspace"
default:
networkBundle = "mainnet"
}
Expand Down
22 changes: 9 additions & 13 deletions venus-shared/types/api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,20 @@ const (
NetworkNameInterop NetworkName = "interopnet"
NetworkNameIntegration NetworkName = "integrationnet"
NetworkNameForce NetworkName = "forcenet"
NetworkNameWallaby NetworkName = "wallabynet"
NetworkNameHyperspace NetworkName = "hyperspacenet"
)

type NetworkType int

const (
NetworkDefault NetworkType = 0
NetworkMainnet NetworkType = 0x1
Network2k NetworkType = 0x2
NetworkDebug NetworkType = 0x3
NetworkCalibnet NetworkType = 0x4
NetworkNerpa NetworkType = 0x5
NetworkInterop NetworkType = 0x6
NetworkForce NetworkType = 0x7
NetworkButterfly NetworkType = 0x8
NetworkWallaby NetworkType = 0x9
NetworkHyperspace NetworkType = 0x10
NetworkDefault NetworkType = 0
NetworkMainnet NetworkType = 0x1
Network2k NetworkType = 0x2
NetworkDebug NetworkType = 0x3
NetworkCalibnet NetworkType = 0x4
NetworkNerpa NetworkType = 0x5
NetworkInterop NetworkType = 0x6
NetworkForce NetworkType = 0x7
NetworkButterfly NetworkType = 0x8

Integrationnet NetworkType = 0x30
)
Expand Down

0 comments on commit e45c2b3

Please sign in to comment.