Skip to content

Commit

Permalink
update hypersdk to v0.9.5-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bianyuanop committed Mar 18, 2024
1 parent 7824adf commit 6218dd4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
8 changes: 8 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ type Config struct {
// State Sync
StateSyncServerDelay time.Duration `json:"stateSyncServerDelay"` // for testing

// ETH L1
ETHRPCAddr string `json:"ethRPCAddr"`
ETHWSAddr string `json:"ethWSAddr"`

loaded bool
nodeID ids.NodeID
parsedExemptPayers [][]byte
Expand Down Expand Up @@ -116,6 +120,8 @@ func (c *Config) setDefault() {
c.VerifySignatures = c.Config.GetVerifySignatures()
c.StoreTransactions = defaultStoreTransactions
c.MaxOrdersPerPair = defaultMaxOrdersPerPair
c.ETHRPCAddr = c.Config.GetETHL1RPC()
c.ETHWSAddr = c.Config.GetETHL1WS()
}

func (c *Config) GetLogLevel() logging.Level { return c.LogLevel }
Expand Down Expand Up @@ -152,3 +158,5 @@ func (c *Config) GetContinuousProfilerConfig() *profiler.Config {
func (c *Config) GetVerifySignatures() bool { return c.VerifySignatures }
func (c *Config) GetStoreTransactions() bool { return c.StoreTransactions }
func (c *Config) Loaded() bool { return c.loaded }
func (c *Config) GetETHL1RPC() string { return c.ETHRPCAddr }
func (c *Config) GetETHL1WS() string { return c.ETHWSAddr }
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.6

require (
github.com/AnomalyFi/hypersdk v0.9.3
github.com/AnomalyFi/hypersdk v0.9.3-beta.1
github.com/ava-labs/avalanche-network-runner v1.7.2
github.com/ava-labs/avalanchego v1.10.10
github.com/ethereum/go-ethereum v1.12.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ github.com/AnomalyFi/avalanchego v1.10.10-beta.2 h1:834Wu95CB7BKMOb10+MD4U2qZfl4
github.com/AnomalyFi/avalanchego v1.10.10-beta.2/go.mod h1:WsVfXvqJmLr7cuCTbQJd/TgUaa6zd9I2f9MCtCuhxLw=
github.com/AnomalyFi/coreth v0.12.5-rc.6.1 h1:+zrraDQQL2u6uH845LT8XciCP0I7QxPy9xLujZ2pugA=
github.com/AnomalyFi/coreth v0.12.5-rc.6.1/go.mod h1:dM5+4lelJ37pYjWJ3ZAC0EK78OGhBSINycycZVoRQ4s=
github.com/AnomalyFi/hypersdk v0.9.3 h1:e6/m6wpylXGadVGBa0c74Ip89NMnDZA6+ieG4x2ea7g=
github.com/AnomalyFi/hypersdk v0.9.3/go.mod h1:ygZ/2T0Td1RPjyTpsCHGJnLlmk7nCYQJSpgQPANaocE=
github.com/AnomalyFi/hypersdk v0.9.3-beta.1 h1:QchmeqSdO+v25a6EsMHhAWVucgJ3igbdNRvis05nlB0=
github.com/AnomalyFi/hypersdk v0.9.3-beta.1/go.mod h1:ygZ/2T0Td1RPjyTpsCHGJnLlmk7nCYQJSpgQPANaocE=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
Expand Down
8 changes: 7 additions & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ STATESYNC_DELAY=${STATESYNC_DELAY:-0}
MIN_BLOCK_GAP=${MIN_BLOCK_GAP:-100}
STORE_TXS=${STORE_TXS:-false}
UNLIMITED_USAGE=${UNLIMITED_USAGE:-false}
STORE_BLOCK_RESULTS_ON_DISK=${STORE_BLOCK_RESULTS_ON_DISK:-true}
ETHL1RPC=${ETHL1RPC:-http://localhost:8545}
ETHL1WS=${ETHL1WS:-ws://localhost:8546}
if [[ ${MODE} != "run" && ${MODE} != "run-single" ]]; then
LOGLEVEL=debug
STATESYNC_DELAY=100000000 # 100ms
Expand Down Expand Up @@ -158,7 +161,10 @@ cat <<EOF > ${TMPDIR}/tokenvm.config
"trackedPairs":["*"],
"logLevel": "${LOGLEVEL}",
"continuousProfilerDir":"${TMPDIR}/tokenvm-e2e-profiles/*",
"stateSyncServerDelay": ${STATESYNC_DELAY}
"stateSyncServerDelay": ${STATESYNC_DELAY},
"storeBlockResultsOnDisk": ${STORE_BLOCK_RESULTS_ON_DISK},
"ethRPCAddr": "${ETHL1RPC}",
"ethWSAddr": "${ETHL1WS}"
}
EOF
mkdir -p ${TMPDIR}/tokenvm-e2e-profiles
Expand Down
Binary file modified tests/e2e/e2e.test
Binary file not shown.

0 comments on commit 6218dd4

Please sign in to comment.