neonevm / neon-evm Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Symptom: CI failed due test_erc20
.
STR: On some CI checks.
Actual result:
test_deposit (test_erc20.ERC20test) ... skipped 'not for CI'
token: zNjCu93ddY8JDDDQMCKSrTnueHns4CHiZiQpig7DxKf
/bin/sh: 2: --owner: not found
ERR: spl-token error Command 'spl-token --url http://solana:8899 create-account zNjCu93ddY8JDDDQMCKSrTnueHns4CHiZiQpig7DxKf
--owner AEdjVti6w7Z9CBR4enmnYkuY919ncoqk2wNZLnPaZ5Q4' returned non-zero exit status 127.
ERROR
Expected result:
test_erc20.deposit works.
Additional info:
Solana's address can be of variable length.
For example:
token: 4YHdWdCbu49uoXMRk2SnUuYrCXkpB2hASoimB7mPw7uR <--- success
token: zNjCu93ddY8JDDDQMCKSrTnueHns4CHiZiQpig7DxKf <--- failed
@s-medvedev commented on Tue Mar 09 2021
Fix tests to extracts return value from inner instruction in Solana receipt instead of text logs.
solana-py = https://github.com/michaelhly/solana-py
Some contract use funds which passed through value
-field of Ethereum transaction. One of this contract it is WETH contract which provides ERC20 interface for native Ethereum token ETH.
In the new version of the Python Solana library (0.8.0) was changed names of InstructionType.
CreateAccountWithSeed -> CREATE_ACCOUNT_WITH_SEED.
It needs to support these changes in our code (see bug neonlabsorg/solana-program-library#192).
We need to pass all evm_loader tests on Solana testnet with limited resources.
Need to replace the address calculation algorithm "create2" to "create".
neon-cli: deploy command
evm_loader: finalize instruction
factory.createPair(tokenA, tokenB)
consumes too much instructions due to:
Problem: Code copy elimination breaks the behavior of the emulator in unexpected situations. The problem is in the implementation, which assumes a rigid arrangement of data in memory.
Solution: Revert code copy elimination.
Possible impact: Contract will take more heap for execution. In any case, we will be within the limits of the testnet.
Reverted PR: neonlabsorg/evm#15 and neonlabsorg/solana-program-library#212
It is useful to add logs to the rust-evm implementation to speed up debugging in some cases. However, the logging mechanism is not available there, since this code is used as a library. It is necessary to work out the logging scheme to add debug logs simply. It is worth considering that these logs can be disabled during the build, and this library is also used in two projects (evm-loader, neon-cli) that perform logging in different ways.
Symptom: neon-cli fails when try to deploy Ethereum contract with confirmed
commitment
STR:
evm_loader
and save it address in EVM_LOADER variableneon-cli deploy --evm_loader $EVM_LOADER --commitment confirmed -vvv <contract>
Actual result:
Fails with error:
ERROR - RPC response error -32002: Transaction simulation failed: Blockhash not found
Expected result:
Successful deployment, awaiting only one confirmation
Insctuction ExecuteTrxFromAccountDataIterative must be used for deploy contracts and execute transactions
Use
https://docs.docker.com/engine/reference/builder/#add
to download sources of spl-token from
https://github.com/solana-labs/solana-program-library/releases/tag/token-cli-v2.0.11
and build them in docker
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.