Skip to content

Commit

Permalink
Remove unsupported networks, and add SPN networks
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Aug 27, 2024
1 parent 4494a5e commit b83c081
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

-- migrate:up

ALTER TYPE network_blockchain ADD VALUE 'superposition_testnet';

ALTER TYPE network_blockchain ADD VALUE 'superposition_mainnet';

-- migrate:down
20 changes: 10 additions & 10 deletions lib/types/network/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import "fmt"
type BlockchainNetwork string

const (
NetworkEthereum BlockchainNetwork = `ethereum`
NetworkArbitrum BlockchainNetwork = `arbitrum`
NetworkSolana BlockchainNetwork = `solana`
NetworkPolygonZk BlockchainNetwork = `polygon_zk`
NetworkStylusTestnet BlockchainNetwork = `stylus_testnet`
NetworkSui BlockchainNetwork = `sui`
NetworkEthereum BlockchainNetwork = `ethereum`
NetworkArbitrum BlockchainNetwork = `arbitrum`
NetworkSolana BlockchainNetwork = `solana`
NetworkSui BlockchainNetwork = `sui`
NetworkSuperpositionTestnet BlockchainNetwork = `superposition_testnet`
NetworkSuperpositionMainnet BlockchainNetwork = `superposition_mainnet`
)

// ParseEthereumNetwork takes a network name as a string
Expand All @@ -28,12 +28,12 @@ func ParseEthereumNetwork(network_ string) (network BlockchainNetwork, err error
network = NetworkEthereum
case string(NetworkArbitrum):
network = NetworkArbitrum
case string(NetworkPolygonZk):
network = NetworkPolygonZk
case string(NetworkStylusTestnet):
network = NetworkStylusTestnet
case string(NetworkSui):
network = NetworkSui
case string(NetworkSuperpositionTestnet):
network = NetworkSuperpositionTestnet
case string(NetworkSuperpositionMainnet):
network = NetworkSuperpositionMainnet
default:
err = fmt.Errorf(
"Unknown network name '%s'",
Expand Down

0 comments on commit b83c081

Please sign in to comment.