Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/sc-1076-1.13.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
teghnet committed Oct 28, 2022
2 parents 1ac22bf + cb13c84 commit 3a7a812
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"setzerTimeout": 10,
"setzerCacheExpiry": 120,
"setzerMinMedian": 3,
"setzerEthRpcUrl": "https://mainnet.infura.io/v3/fac98e56ea7e49608825dfc726fab703"
"setzerEthRpcUrl": ""
},
"sources":["gofer","setzer"],
"transports":["spire","ssb-rpc"],
Expand Down
3 changes: 2 additions & 1 deletion config/relay.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
],
"options": {
"interval": 60,
"msgLimit": 20
"msgLimit": 20,
"ethGas": 200000
},
"transports":["spire","ssb-rpc"],
"pairs": {
Expand Down
4 changes: 4 additions & 0 deletions lib/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ importOptionsEnv () {
SETZER_ETH_RPC_URL="$(echo "$_json" | jq -r '.setzerEthRpcUrl')"
[[ -n "$SETZER_ETH_RPC_URL" ]] || errors+=("Error - Setzer ethereum RPC address is not set.")
export SETZER_ETH_RPC_URL
elif [[ "$OMNIA_MODE" == "RELAY" ]]; then
ETH_GAS=$(echo "$_json" | jq -r '.ethGas // ""')
[[ -n "$ETH_GAS" ]] || ETH_GAS=200000
export ETH_GAS
fi

[[ -z ${errors[*]} ]] || { printf '%s\n' "${errors[@]}"; return 1; }
Expand Down
6 changes: 3 additions & 3 deletions lib/ethereum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ pushOraclePrice () {
fi

local _gasParams
_gasParams=(--gas-price "${_fees[0]}")
_gasParams=(--rpc-url "$ETH_RPC_URL" --gas-price "${_fees[0]}")
[[ $ETH_TX_TYPE -eq 2 ]] && _gasParams+=(--prio-fee "${_fees[1]}")
_gasParams+=(--gas "$ETH_GAS")

log "Sending tx..."
tx=$(ethereum --rpc-url "$ETH_RPC_URL" \
"${_gasParams[@]}" \
tx=$(ethereum "${_gasParams[@]}" \
send --async "$_oracleContract" 'poke(uint256[] memory,uint256[] memory,uint8[] memory,bytes32[] memory,bytes32[] memory)' \
"[$(join "${allPrices[@]}")]" \
"[$(join "${allTimes[@]}")]" \
Expand Down
2 changes: 1 addition & 1 deletion lib/omnia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ initEnv () {
echo " ETH_RPC_URL = $ETH_RPC_URL"
echo " ETH_FROM = $ETH_FROM"
echo " ETH_GAS_SOURCE = $ETH_GAS_SOURCE"
echo " ETH_MAXPRICE_MULTIPLIER = $ETH_MAXPRICE_MULTIPLIER"
echo " ETH_GAS = $ETH_GAS"
echo " ETH_MAXPRICE_MULTIPLIER = $ETH_MAXPRICE_MULTIPLIER"
[[ $ETH_GAS_SOURCE != "node" ]] && \
echo " ETH_GAS_PRIORITY = $ETH_GAS_PRIORITY"
Expand Down
6 changes: 4 additions & 2 deletions test/e2e/config/relay.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"from": "0x1bb90cde8a032cb4963813a5b4db4981afa5b9c6",
"keystore": "/home/omnia/.ethereum/keystore",
"password": "/home/omnia/.ethereum/keystore/password",
"network": "http://geth.local:8545"
"network": "http://geth.local:8545",
"type": "ethereum"
},
"feeds": [
"0x1bb90cde8a032cb4963813a5b4db4981afa5b9c6",
Expand All @@ -13,7 +14,8 @@
"options": {
"interval": 60,
"msgLimit": 20,
"verbose": true
"verbose": true,
"ethGas": 200000
},
"sources":["setzer"],
"transports":["e2e"],
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.13.0
1.13.1

0 comments on commit 3a7a812

Please sign in to comment.