Closed ceyonur closed 1 month ago
This PR deprecates eth_getActivatedPrecompilesAt in favor of eth_getActiveRulesAt and expands the API.
eth_getActivatedPrecompilesAt
eth_getActiveRulesAt
https://docs.avax.network/reference/subnet-evm/api#eth_getactiverulesat
Added precompiles to getActiveRulesAt API:
getActiveRulesAt
{ "jsonrpc": "2.0", "id": 1, "result": { "ethRules": { "IsHomestead": true, "IsEIP150": true, "IsEIP155": true, "IsEIP158": true, "IsByzantium": true, "IsConstantinople": true, "IsPetersburg": true, "IsIstanbul": true, "IsCancun": false }, "avalancheRules": { "IsSubnetEVM": true, "IsDurango": false, "IsEUpgrade": false }, "precompiles": { "contractNativeMinterConfig": { "timestamp": 0 } } } }
Locally
Documents PR: https://github.com/ava-labs/avalanche-docs/pull/1771
Why this should be merged
This PR deprecates
eth_getActivatedPrecompilesAt
in favor ofeth_getActiveRulesAt
and expands the API.https://docs.avax.network/reference/subnet-evm/api#eth_getactiverulesat
How this works
Added precompiles to
getActiveRulesAt
API:How this was tested
Locally
How is this documented
Documents PR: https://github.com/ava-labs/avalanche-docs/pull/1771