Skip to content

Commit

Permalink
script(bridge-config): config topic id instead of topic id; additiona…
Browse files Browse the repository at this point in the history
…l testnet networks
  • Loading branch information
failfmi committed Feb 5, 2024
1 parent 4f8f07f commit 0904f28
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
23 changes: 13 additions & 10 deletions scripts/bridge/setup/extend-config/cmd/extend-bridge-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,19 @@ var (
// FILL THE EVM NODE URLS BEFORE RUN //
///////////////////////////////////////
evmNodeUrls = map[uint64]string{
80001: "https://rpc-mumbai.maticvigil.com/",
5: "https://goerli.blockpi.network/v1/rpc/public",
97: "https://rpc.ankr.com/bsc_testnet_chapel",
43113: "https://api.avax-test.network/ext/bc/C/rpc",
420: "https://optimism-goerli.public.blastapi.io",
421613: "https://goerli-rollup.arbitrum.io/rpc",
11155111: "https://rpc2.sepolia.org",
338: "https://evm-t3.cronos.org/",
4002: "https://rpcapi-tracing.testnet.fantom.network",
84531: "https://goerli.base.org",
80001: "https://rpc-mumbai.maticvigil.com/",
5: "https://goerli.blockpi.network/v1/rpc/public",
97: "https://rpc.ankr.com/bsc_testnet_chapel",
43113: "https://api.avax-test.network/ext/bc/C/rpc",
420: "https://optimism-goerli.public.blastapi.io",
421613: "https://goerli-rollup.arbitrum.io/rpc",
11155111: "https://rpc2.sepolia.org",
338: "https://evm-t3.cronos.org/",
4002: "https://rpcapi-tracing.testnet.fantom.network",
84531: "https://goerli.base.org",
1313161555: "https://testnet.aurora.dev",
1287: "https://rpc.api.moonbase.moonbeam.network",
1442: "https://rpc.public.zkevm-test.net/",
}
evmClients = make(map[uint64]client.EVM)

Expand Down
5 changes: 2 additions & 3 deletions scripts/bridge/setup/from-config/cmd/setup-from-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ import (
"fmt"
"math"
"os"
"strings"

"github.com/hashgraph/hedera-sdk-go/v2"
"github.com/limechain/hedera-eth-bridge-validator/config"

"strings"

"github.com/limechain/hedera-eth-bridge-validator/constants"
bridgeSetup "github.com/limechain/hedera-eth-bridge-validator/scripts/bridge/setup"
"github.com/limechain/hedera-eth-bridge-validator/scripts/bridge/setup/parser"
Expand Down Expand Up @@ -101,7 +100,7 @@ func main() {
}

nodeAccId := "0.0.3"
content, topicIdParsed, executor, nodeAccount := parseParams(newBridgeBytes, &parsedBridgeCfgForDeploy.TopicId, accountID, &nodeAccId)
content, topicIdParsed, executor, nodeAccount := parseParams(newBridgeBytes, &parsedBridgeCfgForDeploy.ConfigTopicId, accountID, &nodeAccId)
client := hedera.ClientForTestnet()
operatorKey, _ := hedera.PrivateKeyFromString(*privateKey)
operatorId, _ := hedera.AccountIDFromString(*accountID)
Expand Down

0 comments on commit 0904f28

Please sign in to comment.