Skip to content

Commit

Permalink
hyperliquid soak
Browse files Browse the repository at this point in the history
  • Loading branch information
flodesi committed Jan 8, 2025
1 parent 2450fff commit e4e220b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/chains/evm/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,18 @@ var sei = ClientErrors{
Fatal: regexp.MustCompile(`(: |^)'*out of gas|insufficient fee|Tx too large. Max size is \d+, but got \d+|: insufficient funds`),
}

var hyperliquid = ClientErrors{
Fatal: regexp.MustCompile("InvalidFEOpcode|gas uint64 overflow"),
}

const TerminallyStuckMsg = "transaction terminally stuck"

// Tx.Error messages that are set internally so they are not chain or client specific
var internal = ClientErrors{
TerminallyStuck: regexp.MustCompile(TerminallyStuckMsg),
}

var clients = []ClientErrors{parity, geth, arbitrum, metis, substrate, avalanche, nethermind, harmony, besu, erigon, klaytn, celo, zkSync, zkEvm, treasure, mantle, aStar, hedera, gnosis, sei, internal}
var clients = []ClientErrors{parity, geth, arbitrum, metis, substrate, avalanche, nethermind, harmony, besu, erigon, klaytn, celo, zkSync, zkEvm, treasure, mantle, aStar, hedera, gnosis, sei, hyperliquid, internal}

// ClientErrorRegexes returns a map of compiled regexes for each error type
func ClientErrorRegexes(errsRegex config.ClientErrors) *ClientErrors {
Expand Down
20 changes: 20 additions & 0 deletions core/chains/evm/config/toml/defaults/Hyperliquid_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ChainID = '998'
# finality_depth was: 0
FinalityDepth = 10
# block_time was: 0.4s, adding 1 second buffer
LogPollInterval = '2s'

# finality_depth * block_time / 60 secs = < 1 min (finality time)
NoNewFinalizedHeadsThreshold = '1m'

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 0.4s, per recommendation skip 1-2 blocks
CacheTimeout = '2s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[Network]
selected_networks = ["HYPERLIQUID_TESTNET"]

[Soak.Common]
chainlink_node_funding = 0.02

[Soak.OCR]
[Soak.OCR.Common]
test_duration = "1h"

[Soak.OCR.Soak]
time_between_rounds = "2m"

[OCR.Common]
number_of_contracts = 2

[Network.EVMNetworks.HYPERLIQUID_TESTNET]
evm_name = "hyperliquid-testnet"
evm_chain_id = 998
client_implementation = "Ethereum"
evm_simulated = false
evm_chainlink_transaction_limit = 5000
evm_minimum_confirmations = 1
evm_gas_estimation_buffer = 10000
evm_supports_eip1559 = true
evm_default_gas_limit = 6000000

0 comments on commit e4e220b

Please sign in to comment.