aurora-is-near / aurora-engine

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

feat: mirroring erc-20 contracts #845

Closed aleksuss closed 9 months ago

aleksuss commented 9 months ago

Description

The PR adds a possibility to mirror previously deployed ERC-20 contracts on the main Aurora contract. The transaction mirror_erc20_token is allowed in the Silo mode only.

mirror_erc20_token accepts parameters serialised with borsh. get(set)_erc20_metadata accepts parameters serialised with JSON.

Performance / NEAR gas cost considerations

There are no changes in the performance/gas consumption.

Testing

The corresponding test has been added.

karim-en commented 9 months ago

@aleksuss Could you please add the details about the added public methods/api with its arguments (json/borsh) in the PR description?