Skip to content

Commit

Permalink
Switch Crescendo to Previewnet (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Feb 27, 2024
1 parent dae92e2 commit 0a557fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion access/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const EmulatorHost = "127.0.0.1:3569"
const TestnetHost = "access.devnet.nodes.onflow.org:9000"
const CanarynetHost = "access.canary.nodes.onflow.org:9000"
const MainnetHost = "access.mainnet.nodes.onflow.org:9000"
const CrescendoHost = "access.crescendo.nodes.onflow.org:9000"
const PreviewnetHost = "access.previewnet.nodes.onflow.org:9000"

// NewClient creates an gRPC client exposing all the common access APIs.
// Client will use provided host for connection.
Expand Down
10 changes: 5 additions & 5 deletions access/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import (
)

const (
EmulatorHost = "http://127.0.0.1:8888/v1"
TestnetHost = "https://rest-testnet.onflow.org/v1"
MainnetHost = "https://rest-mainnet.onflow.org/v1"
CanarynetHost = "https://rest-canary.onflow.org/v1"
CrescendoHost = "https://rest-crescendo.onflow.org/v1"
EmulatorHost = "http://127.0.0.1:8888/v1"
TestnetHost = "https://rest-testnet.onflow.org/v1"
MainnetHost = "https://rest-mainnet.onflow.org/v1"
CanarynetHost = "https://rest-canary.onflow.org/v1"
PreviewnetHost = "https://rest-previewnet.onflow.org/v1"
)

// NewClient creates an HTTP client exposing all the common access APIs.
Expand Down
7 changes: 3 additions & 4 deletions flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ const (
// Testnet is the chain ID for the testnet chain.
Testnet ChainID = "flow-testnet"

// Crescendo is the chain ID for the crescendo chain.
Crescendo ChainID = "flow-crescendo"

// Transient test networks

// Previewnet is the chain ID for the previewnet chain.
Previewnet ChainID = "flow-previewnet"
// Benchnet is the chain ID for the transient benchmarking chain.
Benchnet ChainID = "flow-benchnet"
// Localnet is the chain ID for the local development chain.
Expand All @@ -127,7 +126,7 @@ func (id ChainID) String() string {
}

type NetworkParameters struct {
ChainID ChainID
ChainID ChainID
}

// entityHasher is a thread-safe hasher used to hash Flow entities.
Expand Down

0 comments on commit 0a557fd

Please sign in to comment.