mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
deps: update to latest real-semver, drop local replaces, fix breaks
- luxfi/constants: pseudo-version v1.5.8-0.2026... -> real tag v1.5.8 - luxfi/upgrade: pseudo-version v1.0.1-0.2026... -> real tag v1.0.1 - precompilebind: emit MakeGenesisConfig in module template (Configurator interface gained MakeGenesisConfig; generator was stale) - precompilebind test: use reserved-range address 0x0200..00ff (the 0x03.. test address predates the tightened reserved ranges in modules/registerer.go)
This commit is contained in:
@@ -660,7 +660,7 @@ func TestPrecompileBind(t *testing.T) {
|
||||
}
|
||||
case ModuleFileName:
|
||||
// change address to a suitable one for testing
|
||||
file.Content = strings.Replace(file.Content, `common.HexToAddress("{ASUITABLEHEXADDRESS}")`, `common.HexToAddress("0x03000000000000000000000000000000000000ff")`, 1)
|
||||
file.Content = strings.Replace(file.Content, `common.HexToAddress("{ASUITABLEHEXADDRESS}")`, `common.HexToAddress("0x02000000000000000000000000000000000000ff")`, 1)
|
||||
}
|
||||
if err = os.WriteFile(filepath.Join(precompilePath, file.FileName), []byte(file.Content), 0o600); err != nil {
|
||||
t.Fatalf("test %d: failed to write binding: %v", i, err)
|
||||
|
||||
@@ -56,6 +56,13 @@ func (*configurator) MakeConfig() precompileconfig.Config {
|
||||
return new(Config)
|
||||
}
|
||||
|
||||
// MakeGenesisConfig returns a precompile config for genesis activation (timestamp = 0).
|
||||
// This is used by AllGenesisPrecompiles() to enumerate all precompiles with default configs.
|
||||
func (*configurator) MakeGenesisConfig() precompileconfig.Config {
|
||||
var zero uint64
|
||||
return NewConfig(&zero{{if .Contract.AllowList}}, nil, nil, nil{{end}})
|
||||
}
|
||||
|
||||
// Configure configures [state] with the given [cfg] precompileconfig.
|
||||
// This function is called by the EVM once per precompile contract activation.
|
||||
// You can use this function to set up your precompile contract's initial state,
|
||||
|
||||
@@ -17,7 +17,7 @@ require (
|
||||
github.com/holiman/uint256 v1.3.2
|
||||
github.com/luxfi/cache v1.2.1
|
||||
github.com/luxfi/consensus v1.25.14
|
||||
github.com/luxfi/constants v1.5.8-0.20260603055356-93c2c2ceb9ca
|
||||
github.com/luxfi/constants v1.5.8
|
||||
github.com/luxfi/crypto v1.19.17
|
||||
github.com/luxfi/database v1.19.0
|
||||
github.com/luxfi/filesystem v0.0.1
|
||||
@@ -37,7 +37,7 @@ require (
|
||||
github.com/luxfi/sys v0.1.0
|
||||
github.com/luxfi/timer v1.0.2
|
||||
github.com/luxfi/trace v0.1.4
|
||||
github.com/luxfi/upgrade v1.0.1-0.20260603055252-f51810805436
|
||||
github.com/luxfi/upgrade v1.0.1
|
||||
github.com/luxfi/utils v1.1.5
|
||||
github.com/luxfi/validators v1.2.0
|
||||
github.com/luxfi/version v1.0.1
|
||||
|
||||
@@ -222,8 +222,8 @@ github.com/luxfi/concurrent v0.0.3 h1:eJyv1fhaC0jMLMw6+QS774cUmp7GK+ouMgvLCqnC7c
|
||||
github.com/luxfi/concurrent v0.0.3/go.mod h1:Aj/FR5NpM0cB2P4Nt3+tz9+dV6V+LUW4HuMgSjwq5hw=
|
||||
github.com/luxfi/consensus v1.25.14 h1:HcwtNLsXtp5gpilXZZqfwylgc+XTSuRJasmo7GvZQEg=
|
||||
github.com/luxfi/consensus v1.25.14/go.mod h1:7/tlpy+byv2tP7YZSMG+XtS8C2bbz3qpB4H8jxXhHxk=
|
||||
github.com/luxfi/constants v1.5.8-0.20260603055356-93c2c2ceb9ca h1:N2lM2gMJ2Hk5yZ6GqURWtg6nIVtodsjqMe+MGNiuCNw=
|
||||
github.com/luxfi/constants v1.5.8-0.20260603055356-93c2c2ceb9ca/go.mod h1:z+Wc7skybZAA+xuBWNcmtv402S/BFqixL+FiSQXPg8U=
|
||||
github.com/luxfi/constants v1.5.8 h1:iNP9AWNUcM4Tps7jYnx49CwtCWAC9mYRxJfGou2za0g=
|
||||
github.com/luxfi/constants v1.5.8/go.mod h1:Pu5jWHdnUtQRbWC43yTUjU/pbIIKMDOd2a2yroSfo48=
|
||||
github.com/luxfi/container v0.0.4 h1:BXhF82WyfqVP5mjlNcr7tP0Fcnvl0Ap1rkiu+rq5XuM=
|
||||
github.com/luxfi/container v0.0.4/go.mod h1:Z3SpmMF5d4t77MM0nHYXURpn+EMVaeu1fhbd/3BGaek=
|
||||
github.com/luxfi/corona v0.7.6 h1:CJP6smygD55dL0HHkKkWryL9H24a+wXvs+L+WchK7Nc=
|
||||
@@ -272,8 +272,6 @@ github.com/luxfi/p2p v1.21.1 h1:gmz1JMDhzHIL3dQlhwIDvR4OlFuhNVfnWUl/ipYhAIo=
|
||||
github.com/luxfi/p2p v1.21.1/go.mod h1:SsNPR5fPGWWNem9plGWhSmRqyDoysJ3kPAN0zG0g3iw=
|
||||
github.com/luxfi/pq v1.0.3 h1:pFlQm1+5FuKTDUh2y/23bXWkN4I2Rc5iuxJypwDFFMs=
|
||||
github.com/luxfi/pq v1.0.3/go.mod h1:8bppZcRElfrVt0n3nYCZW3iX1TvhvzNbdjNdK1irgIE=
|
||||
github.com/luxfi/precompile v0.5.37 h1:2v0zTZtU3cP/hlCA1602Bz//mK+9jjUkYCBsc3KU67w=
|
||||
github.com/luxfi/precompile v0.5.37/go.mod h1:z1ZLWPKPdZXqIQZOSdVObM8nTIxrblP6a+fqf3O7OHs=
|
||||
github.com/luxfi/precompile v0.5.38 h1:cWhJ30Q7EzOoKXC5l+RuuiySYL9Ll4L992VyOgJ2CWY=
|
||||
github.com/luxfi/precompile v0.5.38/go.mod h1:yc3FNE/rd0jTsauR89GZ50dG6OcBsrzx/4WBPA5m3X4=
|
||||
github.com/luxfi/proto v1.0.0 h1:nlxv4lt/i75XDB2Q3nTqC1o0RDPmJ9K9CJ8UyYvceak=
|
||||
@@ -292,8 +290,8 @@ github.com/luxfi/timer v1.0.2 h1:g/odi0VQJIsrzdklJUG1thHZ/sGNnbIiVGcU6LctJm0=
|
||||
github.com/luxfi/timer v1.0.2/go.mod h1:SoaZwntYigUE3H6z1GV32YwP8QaSiAT0UiEv7iPugXg=
|
||||
github.com/luxfi/trace v0.1.4 h1:ttCRyXGwWuz232se+lIUqhWHBoTuvPLhHH/hLWyqtaM=
|
||||
github.com/luxfi/trace v0.1.4/go.mod h1:Az7HWh+PCuPftXjQu+ssjv51nKauaFu+q2un7bmZYBA=
|
||||
github.com/luxfi/upgrade v1.0.1-0.20260603055252-f51810805436 h1:0VTZNA1+rXh9Tr0OpGmkwg+mYC6xgLv+XymMlZvLH/E=
|
||||
github.com/luxfi/upgrade v1.0.1-0.20260603055252-f51810805436/go.mod h1:zBBG2VkZmWLr6u6DxzI/4DSFYjHizHrr7MqCDZkMSJc=
|
||||
github.com/luxfi/upgrade v1.0.1 h1:7+ygYeUf/MuLeGL7pjIu6ckQimxctCp+Swybhpy64go=
|
||||
github.com/luxfi/upgrade v1.0.1/go.mod h1:Re7g9Y+SYf/LvkHFpN0vbtlVH/Rr5ZpHQdPeVFEo3Jw=
|
||||
github.com/luxfi/utils v1.1.5 h1:6q85557b7djbZ/OF6S1k5wyGddozWnsoUuhokPHQRvo=
|
||||
github.com/luxfi/utils v1.1.5/go.mod h1:T2OCKT1xG9jtKR/gyJQoSkticzrE9WFQ8eohJHGu9Fg=
|
||||
github.com/luxfi/validators v1.2.0 h1:VygpiBqBAdGrfkb7xzE2yrVmnXaqE+hm8FLWdGXO7G8=
|
||||
|
||||
Reference in New Issue
Block a user