Skip to content

Commit

Permalink
Merge pull request #272 from bugout-dev/fix-robots-caldera-to-wyrm
Browse files Browse the repository at this point in the history
Caldera -> wyrm at robots
  • Loading branch information
kompotkot authored Mar 14, 2023
2 parents f7891ee + 4ce21e4 commit 348f8ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion robots/cmd/robots/airdrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func airdropRun(robot *RobotInstance, idx int) (int64, error) {
if err != nil {
return emptyClaimantsLen, err
}
if robot.NetworkInstance.Blockchain == "caldera" {
if robot.NetworkInstance.Blockchain == "wyrm" {
auth.GasPrice = big.NewInt(0)
}

Expand Down
2 changes: 1 addition & 1 deletion robots/cmd/robots/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
NODEBALANCER_ACCESS_ID = os.Getenv("ENGINE_NODEBALANCER_ACCESS_ID")
MUMBAI_WEB3_PROVIDER_URI = os.Getenv("MOONSTREAM_MUMBAI_WEB3_PROVIDER_URI")
POLYGON_WEB3_PROVIDER_URI = os.Getenv("MOONSTREAM_POLYGON_WEB3_PROVIDER_URI")
CALDERA_WEB3_PROVIDER_URI = os.Getenv("MOONSTREAM_CALDERA_WEB3_PROVIDER_URI")
WYRM_WEB3_PROVIDER_URI = os.Getenv("MOONSTREAM_WYRM_WEB3_PROVIDER_URI")

JOURNAL_SEARCH_BATCH_SIZE = 20

Expand Down
8 changes: 4 additions & 4 deletions robots/cmd/robots/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func InitializeNetworks() (map[string]NetworkClient, error) {
if POLYGON_WEB3_PROVIDER_URI == "" {
return nil, errors.New("Environment variable POLYGON_WEB3_PROVIDER_URI should be specified")
}
if CALDERA_WEB3_PROVIDER_URI == "" {
return nil, errors.New("Environment variable MOONSTREAM_CALDERA_WEB3_PROVIDER_URI should be specified")
if WYRM_WEB3_PROVIDER_URI == "" {
return nil, errors.New("Environment variable MOONSTREAM_WYRM_WEB3_PROVIDER_URI should be specified")
}

networks["mumbai"] = NetworkClient{
Expand All @@ -49,8 +49,8 @@ func InitializeNetworks() (map[string]NetworkClient, error) {
Endpoint: fmt.Sprintf("%s?access_id=%s&data_source=blockchain", POLYGON_WEB3_PROVIDER_URI, NODEBALANCER_ACCESS_ID),
ChainID: big.NewInt(137),
}
networks["caldera"] = NetworkClient{
Endpoint: CALDERA_WEB3_PROVIDER_URI,
networks["wyrm"] = NetworkClient{
Endpoint: WYRM_WEB3_PROVIDER_URI,
ChainID: big.NewInt(322),
}

Expand Down
4 changes: 2 additions & 2 deletions robots/sample.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export MOONSTREAM_ENTITY_URL="https://api.moonstream.to/entity"
export MOONSTREAM_POLYGON_WEB3_PROVIDER_URI="<JSON_RPC_API_URL>"
export MOONSTREAM_MUMBAI_WEB3_PROVIDER_URI="<JSON_RPC_API_URL>"
export MOONSTREAM_CALDERA_WEB3_PROVIDER_URI="<JSON_RPC_API_URL>"
export MOONSTREAM_WYRM_WEB3_PROVIDER_URI="<JSON_RPC_API_URL>"
export ENGINE_NODEBALANCER_ACCESS_ID="<access_id_for_Moonstream_Node_Balancer-if_provided_it_is_interpolated_into_provider_URIs>"
export ENGINE_ROBOTS_SECRETS_DIR="<path_to_directory_with_keyfile>"
export HUMBUG_REPORTER_ROBOTS_HEARTBEAT_TOKEN="<Humbug_token_for_robots_heartbeat>"

export MOONSTREAM_TERMINUS_DIAMOND_CONTRACT_POLYGON_ADDRESS="<blockchain_smartcontract_address>"
export MOONSTREAM_TERMINUS_DIAMOND_CONTRACT_MUMBAI_ADDRESS="<blockchain_smartcontract_address>"
export MOONSTREAM_TERMINUS_DIAMOND_CONTRACT_CALDERA_ADDRESS="<blockchain_smartcontract_address>"
export MOONSTREAM_TERMINUS_DIAMOND_CONTRACT_WYRM_ADDRESS="<blockchain_smartcontract_address>"

0 comments on commit 348f8ee

Please sign in to comment.