Skip to content

Commit

Permalink
use pt-v5-autotasks-library v1.3.2 with addition of to handle re-subm…
Browse files Browse the repository at this point in the history
…itting transactions for random number in case of Witnet RNG failure
  • Loading branch information
chuckbergeron committed Jun 18, 2024
1 parent 6dbfc9b commit 0e5f305
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export CONTRACT_JSON_URL=''
### DRAW AUCTION SPECIFIC:

export REWARD_RECIPIENT=''
export ERROR_STATE_MAX_GAS_COST_THRESHOLD_USD=''
1 change: 1 addition & 0 deletions .github/workflows/cron.arbitrum-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
CHAIN_ID: 42161
MIN_PROFIT_THRESHOLD_USD: 0.01
REWARD_RECIPIENT: ''
ERROR_STATE_MAX_GAS_COST_THRESHOLD_USD: 1
JSON_RPC_URL: ${{ secrets.ARBITRUM_MAINNET_JSON_RPC_URL }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
CUSTOM_RELAYER_PRIVATE_KEY: ${{ secrets.CUSTOM_RELAYER_PRIVATE_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cron.base-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
CHAIN_ID: 8453
MIN_PROFIT_THRESHOLD_USD: 0.01
REWARD_RECIPIENT: ''
ERROR_STATE_MAX_GAS_COST_THRESHOLD_USD: 1
JSON_RPC_URL: ${{ secrets.BASE_MAINNET_JSON_RPC_URL }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
CUSTOM_RELAYER_PRIVATE_KEY: ${{ secrets.CUSTOM_RELAYER_PRIVATE_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cron.optimism-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
CHAIN_ID: 10
MIN_PROFIT_THRESHOLD_USD: 0.01
REWARD_RECIPIENT: ''
ERROR_STATE_MAX_GAS_COST_THRESHOLD_USD: 1
JSON_RPC_URL: ${{ secrets.OPTIMISM_MAINNET_JSON_RPC_URL }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
CUSTOM_RELAYER_PRIVATE_KEY: ${{ secrets.CUSTOM_RELAYER_PRIVATE_KEY }}
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const main = async () => {
wallet: relayerAccount.wallet,
relayerAddress: relayerAccount.relayerAddress,
contractJsonUrl: envVars.CONTRACT_JSON_URL,
errorStateMaxGasCostThresholdUsd: envVars.ERROR_STATE_MAX_GAS_COST_THRESHOLD_USD,
};

const rngContracts: ContractsBlob = await downloadContractsBlob(
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start": "tsx index.ts"
},
"devDependencies": {
"@generationsoftware/pt-v5-autotasks-library": "1.2.5",
"@generationsoftware/pt-v5-autotasks-library": "1.3.2",
"@generationsoftware/pt-v5-utils-js": "1.2.0",
"@types/node": "^20.11.28",
"chalk": "^5.3.0",
Expand Down

0 comments on commit 0e5f305

Please sign in to comment.