aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
326 stars 78 forks source link

feat: add possibility to use fixed gas cost (silo) #746

Closed aleksuss closed 11 months ago

aleksuss commented 1 year ago

Description

The PR adds the possibility to set fixed gas costs per EVM transaction. The feature could be switched on by calling the transaction set_fixed_gas_cost. Also, four types of white lists have been added for applying restrictions to deploy code and submit transactions.

Additions: The PR introduces a new feature: ext-connector, and two additional profiles: mainnet-silo and testnet-silo. The smart contract built with one of these profiles implies the usage of an external eth-connector.

Performance / NEAR gas cost considerations

There are insignificant gas cost increases. That is because we read from the storage fixed gas cost in the execution of the submit method.

Testing

The unit and integration tests which test the new logic have been added.

How should this be reviewed

Additional information

aleksuss commented 1 year ago

@Karkunow, thank you for the review 👍🏻