Code Monkey home page Code Monkey logo

evmos / evmos Goto Github PK

View Code? Open in Web Editor NEW
1.6K 194.0 831.0 110.31 MB

Evmos is the first decentralized EVM chain on the Cosmos Network. It's implementing the first EVM stack focused on native, cross-chain applications. Evmos is the flagship implementation of Ethermint, an EVM library built for the Cosmos Network by the Evmos Core Developement Team.

Home Page: https://evmos.org

License: Other

Dockerfile 0.04% Makefile 0.41% Go 88.53% Shell 1.02% Batchfile 0.05% Solidity 2.47% Python 5.66% JavaScript 0.38% Nix 0.47% Jsonnet 0.96%
cosmos-sdk evm ethereum go blockchain smart-contracts golang cosmos evmos

evmos's Introduction

Evmos

About

Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. It's built using the Cosmos SDK which runs on top of the CometBFT consensus engine.

Quick Start

To learn how Evmos works from a high-level perspective, go to the Protocol Overview section of the documentation. You can also check the instructions to Run a Node.

Documentation

Our documentation is hosted in a separate repository and can be found at docs.evmos.org. Head over there and check it out.

Installation

For prerequisites and detailed build instructions please read the Installation instructions. Once the dependencies are installed, run:

make install

Or check out the latest release.

Community

The following chat channels and forums are great spots to ask questions about Evmos:

Contributing

Looking for a good place to start contributing? Check out some good first issues.

For additional instructions, standards and style guides, please refer to the Contributing document.

Careers

See our open positions on Greenhouse.

Licensing

Starting from April 21st, 2023, the Evmos repository will update its License from GNU Lesser General Public License v3.0 (LGPLv3) to Evmos Non-Commercial License 1.0 (ENCL-1.0). This license applies to all software released from Evmos version 13 or later, except for specific files, as follows, which will continue to be licensed under LGPLv3:

  • x/claims/genesis.go
  • x/erc20/keeper/proposals.go
  • x/erc20/types/utils.go

LGPLv3 will continue to apply to older versions (<v13.0.0) of the Evmos repository. For more information see LICENSE.

Warning

NOTE: If you are interested in using this software email us at [email protected].

SPDX Identifier

The following header including a license identifier in SPDX short form has been added to all ENCL-1.0 files:

// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)

Exempted files contain the following SPDX ID:

// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only

License FAQ

Find below an overview of the Permissions and Limitations of the Evmos Non-Commercial License 1.0. For more information, check out the full ENCL-1.0 FAQ here.

Permissions Prohibited
- Private Use, including distribution and modification
- Commercial use on designated blockchains
- Commercial use with Evmos permit (to be separately negotiated)
- Commercial use, other than on designated blockchains, without Evmos permit

evmos's People

Contributors

0a1c avatar 0xstepit avatar 4rgon4ut avatar adisaran64 avatar cuiweixie avatar danburck avatar dependabot[bot] avatar devops-evmos avatar facs95 avatar faddat avatar fedekunze avatar gatom22 avatar git-sgmoore avatar hanchon avatar jolube avatar khoslaventures avatar litvinsky avatar loredanacirstea avatar luchenqun avatar malteherrmann avatar masterfung avatar mergify[bot] avatar prajjwol avatar prosp3r avatar ramacarlucho avatar sandoche avatar tac0turtle avatar v-homsi avatar victortrustydev avatar vvaradinov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evmos's Issues

transactions that don't fit into this block fail instead of being added to the next blocks

Summary of Bug

Tried running a test of issuing a bunch of contract deploys (50 constructors of an ERC20Mock) close to each other.
On geth the expected result happens: the deploys get spread out over a bunch of blocks (all succeed)
On evmos the first few (that make it into the first block) succeed, then the rest fail (but don't get executed in the next block) as seen in this log:

1:45PM DBG invalid tx code=11 log="out of gas in location: block gas meter; gasWanted: 0, gasUsed: 734268: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM DBG invalid tx code=11 log="no block gas left to run tx: out of gas" module=state server=node
1:45PM INF executed block height=3 module=state num_invalid_txs=37 num_valid_txs=13 server=node

This gist shows the deployment script, the output running against geth (hardhat), and the output running against evmosd (1.0.0) as well as the output from evmosd around this time:
https://gist.github.com/peskypunk/e06bcc6c142c0d0d6ae1b137c8ee816e

Version

$ evmosd version
1.0.0

Steps to Reproduce

https://gist.github.com/peskypunk/e06bcc6c142c0d0d6ae1b137c8ee816e


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Debug messages in logs

__System info: Windows server core 2019
name: ethermint
server_name: evmosd
version: 0.3.0
commit: 070b668
build_tags: ""
go: go version go1.17.1 windows/amd64

Steps to reproduce:

evmosd start --log_level warn

Expected behavior:
Only warnings should show and be logged

Actual behavior:
Thousands of lines of DEBUG statements are being logged for certain blocks. This spikes the system resources and sometimes the server has problems catching up and misses blocks. This doesn't always occur, it seems to only happen for certain blocks. But when it does it can cause issues and uses up lots of resources. I suspect a dev forgot to remove the DEBUG statement as it even shows when i set --log_level to panic. I think it's triggered by certain tx in the blocks.

{"pc":0,"op":96,"gas":"0x43b88","gasCost":"0x3","memory":"0x","memSize":0,"stack":[],"returnData":"0x","depth":1,"refun
d":0,"opName":"PUSH1","error":""}
{"pc":2,"op":96,"gas":"0x43b85","gasCost":"0x3","memory":"0x","memSize":0,"stack":["0x80"],"returnData":"0x","depth":1,
"refund":0,"opName":"PUSH1","error":""}
{"pc":4,"op":82,"gas":"0x43b82","gasCost":"0xc","memory":"0x","memSize":96,"stack":["0x80","0x40"],"returnData":"0x","d
epth":1,"refund":0,"opName":"MSTORE","error":""}
{"pc":5,"op":52,"gas":"0x43b76","gasCost":"0x2","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"refu
nd":0,"opName":"CALLVALUE","error":""}
{"pc":6,"op":128,"gas":"0x43b74","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1
,"refund":0,"opName":"DUP1","error":""}
{"pc":7,"op":21,"gas":"0x43b71","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0","0x0"],"returnData":"0x","dep
th":1,"refund":0,"opName":"ISZERO","error":""}
{"pc":8,"op":97,"gas":"0x43b6e","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0","0x1"],"returnData":"0x","dep
th":1,"refund":0,"opName":"PUSH2","error":""}
{"pc":11,"op":87,"gas":"0x43b6b","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x0","0x1","0x10"],"returnData":"
0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":16,"op":91,"gas":"0x43b61","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1
,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":17,"op":80,"gas":"0x43b60","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1
,"refund":0,"opName":"POP","error":""}
{"pc":18,"op":96,"gas":"0x43b5e","gasCost":"0x3","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"ref
und":0,"opName":"PUSH1","error":""}
{"pc":20,"op":54,"gas":"0x43b5b","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x4"],"returnData":"0x","depth":1
,"refund":0,"opName":"CALLDATASIZE","error":""}
{"pc":21,"op":16,"gas":"0x43b59","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x4","0xa4"],"returnData":"0x","d
epth":1,"refund":0,"opName":"LT","error":""}
{"pc":22,"op":97,"gas":"0x43b56","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1
,"refund":0,"opName":"PUSH2","error":""}
{"pc":25,"op":87,"gas":"0x43b53","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x0","0xea"],"returnData":"0x","d
epth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":26,"op":96,"gas":"0x43b49","gasCost":"0x3","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"ref
und":0,"opName":"PUSH1","error":""}
{"pc":28,"op":53,"gas":"0x43b46","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1
,"refund":0,"opName":"CALLDATALOAD","error":""}
{"pc":29,"op":96,"gas":"0x43b43","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x45576f9400000000000000000000000
000000000000000000000000000000000"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":31,"op":28,"gas":"0x43b40","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x45576f9400000000000000000000000
000000000000000000000000000000000","0xe0"],"returnData":"0x","depth":1,"refund":0,"opName":"SHR","error":""}
{"pc":32,"op":128,"gas":"0x43b3d","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x45576f94"],"returnData":"0x","
depth":1,"refund":0,"opName":"DUP1","error":""}

Airdrop addresses derived from Cosmos ledger app cannot claim rewards

Consider the following user:

  1. Stakes ATOM using cosmos ledger app (address cosmos1...) at time of snapshot.

The evmos genesis file allocates a claim to that user using the address derived from the cosmos1 address and creates an account and a claim object for that user (ie evmos1...).

In order to claim their airdrop, this user needs to sign a transaction (MsgDelegate, for example). However, because of #189, the transaction will always fail with unrecognized/unsupported public key type: *secp256k1.PubKey: invalid pubkey'

Potential fix: Update https://github.com/tharsis/evmos/blob/0786f86c367f4065cb6eb907b81128beafb93ea5/app/sigverify.go#L37 to support

case *secp256k1.PubKey:
		meter.ConsumeGas(params.SigVerifyCostSecp256k1, "ante verify: secp256k1")
		return nil

Evmos Testnet | Errors after adding SEEDS and PEERS into config.toml

System info:

Hello team!

OS: Ubuntu 20.04 LTS
CPU: 4 vCPU
RAM: 16 GB
Cloud: AWS
Evmosd version: 0.4.1
Evmosd start command: evmosd start --db_dir /data --log_level info --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3

Problem: basically I run my node via init.sh with commenting last start command. Next I just start evmosd service via systemd unit. In unit I just copied start command from init.sh and specified DB folder via argument.

I checked your documentation and saw section https://evmos.dev/testnet/join.html#add-seed-nodes where describe adding SEED and PEERS process. I did it like in documentation:

    SEEDS=`curl -sL https://raw.githubusercontent.com/tharsis/testnets/main/olympus_mons/seeds.txt | awk '{print $1}' | paste -s -d, -` && \
    sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" ~/.evmosd/config/config.toml && \
    PEERS=`curl -sL https://raw.githubusercontent.com/tharsis/testnets/main/olympus_mons/peers.txt | sort -R | head -n 10 | awk '{print $1}' | paste -s -d, -` && \
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.evmosd/config/config.toml

But after starting command had connection issues with peers and seeds like:

dialing failed (attempts: 1): dial tcp 194.163.175.120:26656: connect: connection refused addr={“id”:“4a939efabe579baf279910e9e690fb6f85ca2ec3",“ip”:“194.163.175.120",“port”:26656} module=pex server=node

This issue is repeating with every peer in list in config.toml.

I started to investigate, tried telnet on my node - connection refused.

I thought that was problem with firewall but I found some parameter in config - external_address in p2p section. Specified node external address - telnet to my node was successful for a second, but errors didn't disappeared. Also my node had an error when I connecting via telnet:

Escape character is '^]'.
"
 ?J?2?D???g??V?2??O?3?hLb?|?Connection closed by foreign host

Also I checked some of peers via telnet - connection was successfully without rejections.

Steps to reproduce:

  1. [First Step]
    Stop evmosd service.
  2. [Second Step]
    Add PEERS and SEEDS via script above.
  3. [Third step]
    Start evmosd service
  4. [Fourth step]
    Had a lot of errors like above.

Expected behavior: [What you expected to happen]

evmosd service should work correctly after adding seeds and peers.

Actual behavior: [What actually happened]

A lot of error related to all peers and seeds in list like above.

Additional info: [Include gist of relevant config, logs, etc.]

Please, provide information about which logs I could to share.

Thanks!

tracer in app.toml

when using evmos 0.1.3 and setting up a new node the app.toml creates an empty value for the key "tracer".
This causes an error when running evmosd start. It requires the field to not be empty but be one of the allowed values.
This is fixed by adding json or one of the other suggested values.
It should be filled with some default instead of empty which causes an error (or instructions should be added to the testnet readme)

staking create-validator: Error: invalid character 'e' looking for beginning of value

System info:

MacOS 12.0.1
go1.17.3
Evmos v0.1.3

Steps to reproduce:

evmosd tx staking create-validator \
  --amount=1000000token \
  --pubkey='evmosvaloper15qxu2gzke7m5n2765pwg836sd6qpfuhh2vky46' \
  --moniker="node2" \
  --chain-id=testnet_9000-1 \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1000000" \
  --gas="auto" \
  --gas-prices="0.025token" \
  --from=node2 \
  --keyring-backend test

Expected behavior:

No error, or at least an error that explains me what I did wrong.

Actual behavior:

Error: invalid character 'e' looking for beginning of value

This error pops up and I have no idea what I'm doing wrong.

Failing all commands of evmos due to `EnableObservability`

System info: [latest main branch]

Steps to reproduce:

  1. bash init.sh
  2. evmosd or all subcommands failing

Additional info:

$ evmosd
Serving the Prometheus observability exporter at :8877
panic: listen tcp :8877: bind: address already in use

goroutine 12 [running]:
github.com/tharsis/evmos/cmd/config.EnableObservability.func1()
	github.com/tharsis/evmos/cmd/config/observability.go:35 +0xe6
created by github.com/tharsis/evmos/cmd/config.EnableObservability
	github.com/tharsis/evmos/cmd/config/observability.go:32 +0x325

Issue while installing Evmos

$ make install

/bin/sh: 1: go: not found go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=evmos -X github.com/cosmos/cosmos-sdk/version.AppName=evmosd -X github.com/cosmos/cosmos-sdk/version.Version=1.1.0 -X github.com/cosmos/cosmos-sdk/version.Commit=f079774ede908f533680112d93ff014464342546 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger" -X github.com/tendermint/tendermint/version.TMCoreSemVer= -w -s' -trimpath ./... /bin/sh: 1: go: not found make: *** [Makefile:123: install] Error 127

Deprecation warning on MacOS12 - Cannot Compile

/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

gopkg.in/olebedev/go-duktape.v3

In file included from _cgo_export.c:4:

Deprecation warning on MacOS12. Seems to be related to both keyring and go-duktape.

Error register ERC20 proposal (Intrarelayer)

System info:

name: ethermint
server_name: evmosd
version: 0.3.0
commit: 070b668f2cbbf52548c46e96b236e09884483dd4
build_tags: ""
go: go version go1.17.1 linux/amd64

Steps to reproduce:

  1. Create a RegisterERC20Proposal

Expected behavior: Proposal created

Actual behavior: error: panic message redacted to hide potentially sensitive system info: panic

Additional info: Tx Hash: 13E54561AAE5AA267DD88CB9A272654C12276AB3156937E12EAF9A762D88DF80

I found in code that app.IntrarelayerKeeper is passed as parameter before initialize
https://github.com/tharsis/evmos/blob/0effbfa510411f5b433c2c81b23f818fe9314a50/app/app.go#L378
https://github.com/tharsis/evmos/blob/0effbfa510411f5b433c2c81b23f818fe9314a50/app/app.go#L386

This obstructs some Olympus missions:

  • Convert ERC20 into cosmos sdk coin
  • IBC transfer of an EVM ERC20

[Ledger Nano X] failed to generate ledger key

Issue

$ evmosd keys add default --ledger
Error: failed to generate ledger key: failed to recover pubkey: [APDU_CODE_DATA_INVALID] Referenced data reversibly blocked (invalidated): address rejected for path m/44'/60'/0'/0/0

Ledger Cosmos app

v2.18.0

evmosd version

$ evmosd version --long 
name: evmos
server_name: evmosd
version: 0.1.2
commit: 82d352fa403580dacf28de1f96b5d79f48cccbe7
build_tags: netgo,ledger
go: go version go1.17.2 linux/amd64
build_deps:
- filippo.io/[email protected]
- github.com/99designs/[email protected] => github.com/cosmos/[email protected]
- github.com/ChainSafe/[email protected]
- github.com/VictoriaMetrics/[email protected]
- github.com/Workiva/[email protected]
- github.com/armon/[email protected]
- github.com/beorn7/[email protected]
- github.com/bgentry/[email protected]
- github.com/btcsuite/[email protected]
- github.com/btcsuite/[email protected]
- github.com/cespare/xxhash/[email protected]
- github.com/coinbase/[email protected]
- github.com/confio/ics23/[email protected]
- github.com/cosmos/[email protected]
- github.com/cosmos/[email protected]
- github.com/cosmos/[email protected]
- github.com/cosmos/[email protected]
- github.com/cosmos/[email protected]
- github.com/cosmos/[email protected]
- github.com/davecgh/[email protected]
- github.com/deckarep/[email protected]
- github.com/desertbit/[email protected]
- github.com/dvsekhvalnov/[email protected]
- github.com/edsrzf/[email protected]
- github.com/enigmampc/[email protected]
- github.com/ethereum/[email protected]
- github.com/felixge/[email protected]
- github.com/fsnotify/[email protected]
- github.com/gballet/[email protected]
- github.com/go-kit/[email protected]
- github.com/go-logfmt/[email protected]
- github.com/go-stack/[email protected]
- github.com/godbus/[email protected]
- github.com/gogo/[email protected]
- github.com/gogo/[email protected] => github.com/regen-network/[email protected]
- github.com/golang/[email protected]
- github.com/golang/[email protected]
- github.com/google/[email protected]
- github.com/google/[email protected]
- github.com/google/[email protected]
- github.com/gorilla/[email protected]
- github.com/gorilla/[email protected]
- github.com/gorilla/[email protected]
- github.com/grpc-ecosystem/[email protected]
- github.com/grpc-ecosystem/[email protected]
- github.com/gsterjov/[email protected]
- github.com/gtank/[email protected]
- github.com/gtank/[email protected]
- github.com/hashicorp/[email protected]
- github.com/hashicorp/[email protected]
- github.com/hashicorp/[email protected]
- github.com/hdevalence/[email protected]
- github.com/holiman/bloomfilter/[email protected]
- github.com/holiman/[email protected]
- github.com/huin/[email protected]
- github.com/improbable-eng/[email protected]
- github.com/jackpal/[email protected]
- github.com/klauspost/[email protected]
- github.com/lib/[email protected]
- github.com/libp2p/[email protected]
- github.com/magiconair/[email protected]
- github.com/mattn/[email protected]
- github.com/mattn/[email protected]
- github.com/matttproud/[email protected]
- github.com/mimoo/[email protected]
- github.com/minio/[email protected]
- github.com/mitchellh/[email protected]
- github.com/mtibben/[email protected]
- github.com/olekukonko/[email protected]
- github.com/palantir/[email protected]
- github.com/pelletier/[email protected]
- github.com/pkg/[email protected]
- github.com/pmezard/[email protected]
- github.com/prometheus/[email protected]
- github.com/prometheus/[email protected]
- github.com/prometheus/[email protected]
- github.com/prometheus/[email protected]
- github.com/prometheus/[email protected]
- github.com/rakyll/[email protected]
- github.com/rcrowley/[email protected]
- github.com/regen-network/[email protected]
- github.com/rjeczalik/[email protected]
- github.com/rs/[email protected]
- github.com/rs/[email protected]
- github.com/shirou/[email protected]+incompatible
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]
- github.com/status-im/[email protected]
- github.com/stretchr/[email protected]
- github.com/subosito/[email protected]
- github.com/syndtr/[email protected]
- github.com/tendermint/[email protected]
- github.com/tendermint/[email protected]
- github.com/tendermint/[email protected]
- github.com/tendermint/[email protected]
- github.com/tendermint/[email protected]
- github.com/tharsis/[email protected]
- github.com/tklauser/[email protected]
- github.com/tklauser/[email protected]
- github.com/tyler-smith/[email protected]
- github.com/zondax/[email protected]
- golang.org/x/[email protected]
- golang.org/x/[email protected]
- golang.org/x/[email protected]
- golang.org/x/[email protected]
- golang.org/x/[email protected]
- golang.org/x/[email protected]
- google.golang.org/[email protected]
- google.golang.org/[email protected] => google.golang.org/[email protected]
- google.golang.org/[email protected]
- gopkg.in/[email protected]
- gopkg.in/olebedev/[email protected]
- gopkg.in/[email protected]
- gopkg.in/[email protected]
- nhooyr.io/[email protected]
cosmos_sdk_version: v0.44.2

Evmos Testnet | JSON-RPC eth_syncing issue

System info:

Hello team!

OS: Ubuntu 20.04 LTS
CPU: 4 vCPU
RAM: 16 GB
Cloud: AWS
Evmosd version: 0.4.1

Problem: I started evmosd service and wanted to check eth_syncing API method:

curl --location --request POST 'xx.xx.xx.xx:8545/' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_syncing",
        "params":[],
        "id":1
}'

Result:

{"jsonrpc":"2.0","id":1,"result":false}

The node is synced, but I have 7000+ block, when chain has 185000+.

Steps to reproduce:

  1. [First Step]
    Call curl --location --request POST 'xx.xx.xx.xx:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
  2. [Second Step]
    See result that my node is synced, but it's wrong information.
  3. [and so on...]

Expected behavior: [What you expected to happen]

{"jsonrpc":"2.0","id":1,"result":true} when node is syncing

Actual behavior: [What actually happened]

{"jsonrpc":"2.0","id":1,"result":false} - node is synced

Additional info: [Include gist of relevant config, logs, etc.]

Please provide information which logs I should to provide.

Thanks!

localhost node start error

Hi,
i want to start a local node,
when i run create-validator cmd:
evmosd tx staking create-validator \ --amount=1000000000000aphoton \ --pubkey=$(evmosd tendermint show-validator) \ --moniker="localtestnet" \ --chain-id=evmos_9000-1 \ --commission-rate="0.10" \ --commission-max-rate="0.20" \ --commission-max-change-rate="0.01" \ --min-self-delegation="1000000" \ --gas="auto" \ --gas-prices="0.025aphoton" \ --from=my_validator \ --keyring-backend file

but find a error :
Error: post failed: Post "http://localhost:26657": dial tcp 127.0.0.1:26657: connect: connection refused
Usage:
evmosd tx staking create-validator [flags]

then ,I try run "evmosd start", some error:
ERR failed init node error="error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain"
Error: error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain
Usage:
evmosd start [flags]

What should I do? thanks

lots of "account not found" errors when deploying an EVM contract

Hello,
I am running a local testnet built from the 0.4.2 release, generally running the defaults from init.sh after creating one account (referred to below as ACCOUNT_0).

$ evmosd version
0.4.2

I tried deploying an example EVM smart contract: https://github.com/gnosis/canonical-weth/blob/master/contracts/WETH9.sol

The below python script runs this deployment:
https://gist.github.com/peskypunk/e15660e24ef1d526361ae5d967647557

ACCOUNT_0 is the account that i created at genesis to hold 100m aevmos:

>>> w3.eth.get_balance(ACCOUNT_0) / 1e18
99998990.79542662

When the script runs, it prints

tx_hash: 0x5bc9f5b615d5b3930ca1d700cdebb664fe4a5bf33f861ba527bc820f01a732ab, contractAddress: 0xEb9C3893Ecc650cf9D17B45Ee9E7b3879E8bD96b

The server logs print:

t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served web3_clientVersion"        conn=127.0.0.1:50346 reqid=0  t="32.349µs"
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_getTransactionCount"   conn=127.0.0.1:50346 reqid=1  t="389.382µs"
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_gasPrice"              conn=127.0.0.1:50346 reqid=2  t="753.108µs"
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_chainId"               conn=127.0.0.1:50346 reqid=3  t="378.903µs"
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_chainId"               conn=127.0.0.1:50346 reqid=4  t="632.756µs"
4:20PM ERR account not found error="account evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf does not exist: unknown address" cosmos-address=evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf ethereum-address=0xEb9C3893Ecc650cf9D17B45Ee9E7b3879E8bD96b module=evm
4:20PM ERR account not found error="account evmos1pqcqm7vfa3cjdh5td4ffcv84hgwustflxfg00q does not exist: unknown address" cosmos-address=evmos1pqcqm7vfa3cjdh5td4ffcv84hgwustflxfg00q ethereum-address=0x08300Df989EC7126dE8B6D529C30F5bA1dC82D3f module=evm
4:20PM ERR account not found error="account evmos1r8mg4h7fz73y304na5um8rzmd8lahesdhxemed does not exist: unknown address" cosmos-address=evmos1r8mg4h7fz73y304na5um8rzmd8lahesdhxemed ethereum-address=0x19f68aDfc917A248BEb3ED39b38C5B69FfDbe60D module=evm
4:20PM ERR account not found error="account evmos1gngd5pjsrl2xlepumtdhferlxl54x3cdqdh6ud does not exist: unknown address" cosmos-address=evmos1gngd5pjsrl2xlepumtdhferlxl54x3cdqdh6ud ethereum-address=0x44d0DA06501FD46FE43cDaDB74E47F37E953470d module=evm
4:20PM ERR account not found error="account evmos1wvehg2dsk3lw2vy9c74tsk2uhnxkr6deyg9ms9 does not exist: unknown address" cosmos-address=evmos1wvehg2dsk3lw2vy9c74tsk2uhnxkr6deyg9ms9 ethereum-address=0x73337429B0b47eE53085C7aAb8595CbCcD61e9b9 module=evm
4:20PM ERR account not found error="account evmos13xf9j8zf8k5sr0t9c0zs0qg62gvc9kzg3wv5ef does not exist: unknown address" cosmos-address=evmos13xf9j8zf8k5sr0t9c0zs0qg62gvc9kzg3wv5ef ethereum-address=0x8992591c493DA901BD65c3C507811a521982d848 module=evm
4:20PM ERR account not found error="account evmos1e009585u8y7dwgmv32kx2ua6hj8f5xl0j4sd90 does not exist: unknown address" cosmos-address=evmos1e009585u8y7dwgmv32kx2ua6hj8f5xl0j4sd90 ethereum-address=0xcbde5A1e9C393cd7236c8aaC6573Babc8E9a1bEf module=evm
4:20PM ERR account not found error="account evmos1p7pxanence2jdp2jp7q5gk5c5uvx7mfyj5k8cd does not exist: unknown address" cosmos-address=evmos1p7pxanence2jdp2jp7q5gk5c5uvx7mfyj5k8cd ethereum-address=0x0F826ecf33C6552685520f81445a98A7186F6d24 module=evm
4:20PM ERR account not found error="account evmos1rp7rl28w36x8k2l80dkfjkkpmzjmrj4yfqdq6p does not exist: unknown address" cosmos-address=evmos1rp7rl28w36x8k2l80dkfjkkpmzjmrj4yfqdq6p ethereum-address=0x187C3fa8eE8e8c7B2BE77b6C995Ac1d8A5b1cAA4 module=evm
4:20PM ERR account not found error="account evmos1ccu4tx3qhpglkr4dlsg43ud3gvwslxzenhl8np does not exist: unknown address" cosmos-address=evmos1ccu4tx3qhpglkr4dlsg43ud3gvwslxzenhl8np ethereum-address=0xc639559A20b851fb0eadFc1158f1B1431d0F9859 module=evm
4:20PM ERR account not found error="account evmos12whpscp09qej6p9k86qttm7l0s7vkfzwzqy7hn does not exist: unknown address" cosmos-address=evmos12whpscp09qej6p9k86qttm7l0s7vkfzwzqy7hn ethereum-address=0x53Ae18602F28332d04b63E80b5efDf7C3CCB244e module=evm
4:20PM ERR account not found error="account evmos19madl35w9dlcqrhzcmqrnn7rwhcqrln7vk40cr does not exist: unknown address" cosmos-address=evmos19madl35w9dlcqrhzcmqrnn7rwhcqrln7vk40cr ethereum-address=0x2EFadfC68E2b7F800EE2C6c039cfc375f001Fe7E module=evm
4:20PM ERR account not found error="account evmos18v5e3jrc72jprm03zsg7g4tjynwwy3d2squmt7 does not exist: unknown address" cosmos-address=evmos18v5e3jrc72jprm03zsg7g4tjynwwy3d2squmt7 ethereum-address=0x3B2998c878F2a411eDf11411e4557224DcE245aA module=evm
4:20PM ERR account not found error="account evmos1rwazppe8hpx9tjr0h0eqzka88vf68395dsdvp8 does not exist: unknown address" cosmos-address=evmos1rwazppe8hpx9tjr0h0eqzka88vf68395dsdvp8 ethereum-address=0x1bba208727B84c55c86Fbbf2015ba73B13a3C4B4 module=evm
4:20PM ERR account not found error="account evmos1mzh7zwqhfwem8dtjuspg0t0pyjxg2z7zwzkvgv does not exist: unknown address" cosmos-address=evmos1mzh7zwqhfwem8dtjuspg0t0pyjxg2z7zwzkvgv ethereum-address=0xD8afe138174bB3B3b572E40287aDe1248C850BC2 module=evm
4:20PM ERR account not found error="account evmos1sa7vhjud24xwg99ht6jaj2cgancwqnmr7mwyev does not exist: unknown address" cosmos-address=evmos1sa7vhjud24xwg99ht6jaj2cgancwqnmr7mwyev ethereum-address=0x877CCbcb8D554cE414b75EA5D92B08EcF0E04f63 module=evm
4:20PM ERR account not found error="account evmos16h027sdz5lrxhd05v7eu0havlsxaxjaudx7hlw does not exist: unknown address" cosmos-address=evmos16h027sdz5lrxhd05v7eu0havlsxaxjaudx7hlw ethereum-address=0xd5dEaf41A2A7c66BB5f467B3c7dfacfc0DD34bBC module=evm
4:20PM ERR account not found error="account evmos1u0xkcwdkdrmfmqglj5d965jap83dcwvcmyewe7 does not exist: unknown address" cosmos-address=evmos1u0xkcwdkdrmfmqglj5d965jap83dcwvcmyewe7 ethereum-address=0xE3Cd6C39b668f69d811f951A5d525D09E2DC3998 module=evm
4:20PM ERR account not found error="account evmos1hzvwlg5hpeheq20hcryt3gy23jvlcrplj4mek8 does not exist: unknown address" cosmos-address=evmos1hzvwlg5hpeheq20hcryt3gy23jvlcrplj4mek8 ethereum-address=0xB898eFa2970e6f9029F7c0c8B8A08a8C99FC0c3F module=evm
4:20PM ERR account not found error="account evmos1hgwhfpt83g0v3ztfg3du9pccf2nj46mg7qrv6h does not exist: unknown address" cosmos-address=evmos1hgwhfpt83g0v3ztfg3du9pccf2nj46mg7qrv6h ethereum-address=0xbA1D7485678a1Ec88969445BC287184Aa72aeb68 module=evm
4:20PM ERR account not found error="account evmos17q0hzaeutqkrjpyqh3ke2kywfv83cjlc0s6ecf does not exist: unknown address" cosmos-address=evmos17q0hzaeutqkrjpyqh3ke2kywfv83cjlc0s6ecf ethereum-address=0xF01F71773c582C390480Bc6D95588e4B0F1c4Bf8 module=evm
4:20PM ERR account not found error="account evmos1e76paakwnuym4e8r7hq4qkluhnlyd8n4m0mjd6 does not exist: unknown address" cosmos-address=evmos1e76paakwnuym4e8r7hq4qkluhnlyd8n4m0mjd6 ethereum-address=0xCFb41eF6cE9F09Bae4E3F5c1505bFCBCfE469E75 module=evm
4:20PM ERR account not found error="account evmos1r4efgu5nxdgxvcvy88m3ges5y2fgc42gkk70uh does not exist: unknown address" cosmos-address=evmos1r4efgu5nxdgxvcvy88m3ges5y2fgc42gkk70uh ethereum-address=0x1D72947293335066618439f714661422928C5548 module=evm
4:20PM ERR account not found error="account evmos12st6g9shwn9yhfyxqnyx50qmt9ss7h7f7s3svd does not exist: unknown address" cosmos-address=evmos12st6g9shwn9yhfyxqnyx50qmt9ss7h7f7s3svd ethereum-address=0x5417A4161774ca4ba48604c86A3c1B59610F5fc9 module=evm
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_estimateGas"           conn=127.0.0.1:50346 reqid=5  t=13.491859ms
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_sendRawTransaction"    conn=127.0.0.1:50346 reqid=6  t=1.204835ms
t=2022-02-28T16:20:28-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=7  t="191.695µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=8  t="295.212µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=9  t="287.748µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=10 t="295.395µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=11 t="294.305µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=12 t="282.931µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=13 t="254.929µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=14 t="299.205µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=15 t="337.245µs"
t=2022-02-28T16:20:29-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=16 t="370.804µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=17 t="298.295µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=18 t="292.683µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=19 t="327.18µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=20 t="356.185µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=21 t="391.864µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=22 t="340.843µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=23 t="332.669µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=24 t="302.672µs"
t=2022-02-28T16:20:30-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=25 t="301.466µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=26 t="304.393µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=27 t="366.409µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=28 t="293.888µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=29 t="270.139µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=30 t="295.911µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=31 t="291.017µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=32 t="289.11µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=33 t="280.284µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=34 t="358.758µs"
t=2022-02-28T16:20:31-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=35 t="304.548µs"
t=2022-02-28T16:20:32-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=36 t="408.535µs"
t=2022-02-28T16:20:32-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=37 t="297.729µs"
4:20PM INF Timed out dur=4948.081 height=512 module=consensus round=0 server=node step=1
4:20PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"7D0C6823CC739F1020E624447F14A9514C113B9484B97FB947CAC61C107938A3","parts":{"hash":"0F382F3AC27904DB67FB5D8E600E08B00DF28EC73ED41D3270111816AF90C9A2","total":1}},"height":512,"pol_round":-1,"round":0,"signature":"u2C4td5S45LnCtqDlM0XXYyXJ96xaetC2iuOJrCapRL/7hCqlMyHXsN0z4viTZUfXhpn4bw6WoTt6QR4NsfmAg==","timestamp":"2022-02-28T22:20:32.240231Z"} server=node
4:20PM INF received complete proposal block hash=7D0C6823CC739F1020E624447F14A9514C113B9484B97FB947CAC61C107938A3 height=512 module=consensus server=node
4:20PM INF finalizing commit of block hash=7D0C6823CC739F1020E624447F14A9514C113B9484B97FB947CAC61C107938A3 height=512 module=consensus num_txs=1 root=FBAED751FFE1C13389DFB7A5EC843E176D92BD3E553A9F3B313A9982D9B9E980 server=node
t=2022-02-28T16:20:32-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=38 t="310.147µs"
4:20PM INF minted coins from module account amount=2059914475240478616aphoton from=mint module=x/bank
4:20PM ERR account not found error="account evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf does not exist: unknown address" cosmos-address=evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf ethereum-address=0xEb9C3893Ecc650cf9D17B45Ee9E7b3879E8bD96b module=evm
4:20PM INF executed block height=512 module=state num_invalid_txs=0 num_valid_txs=1 server=node
4:20PM INF commit synced commit=436F6D6D697449447B5B37352031383920323438203330203833203537203337203335203137392031353620383120383720323031203833203520373320313431203234312032323320323439203232352031323320302033352036342032352031313920313831203631203520323431203139345D3A3230307D
4:20PM INF committed state app_hash=4BBDF81E53392523B39C5157C95305498DF1DFF9E17B0023401977B53D05F1C2 height=512 module=state num_txs=1 server=node
4:20PM INF indexed block height=512 module=txindex server=node
t=2022-02-28T16:20:32-0600 lvl=dbug msg="Served eth_getTransactionReceipt" conn=127.0.0.1:50346 reqid=39 t=1.173578ms
4:20PM INF Transactions per second tps=0.1
4:20PM INF Timed out dur=4940.038 height=513 module=consensus round=0 server=node step=1
4:20PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"56FD3AF7872A5016DDF0CD618946E6EA5B6ED6915A5C560AACA86E9CBEDD2F3A","parts":{"hash":"9A1C0BD7234CBD1519089FB5FD5E30E47685B2EFD209CC0CD68798DE050DB8E9","total":1}},"height":513,"pol_round":-1,"round":0,"signature":"Uwe6AArTYQkIliMAgQzKvcTSeNyIkr0tmeSEHzE1yZyXCr4RfqdO8rctFndmFSzAikSpE/RiwYEXwltHoGwFDQ==","timestamp":"2022-02-28T22:20:37.300932Z"} server=node
4:20PM INF received complete proposal block hash=56FD3AF7872A5016DDF0CD618946E6EA5B6ED6915A5C560AACA86E9CBEDD2F3A height=513 module=consensus server=node
4:20PM INF finalizing commit of block hash=56FD3AF7872A5016DDF0CD618946E6EA5B6ED6915A5C560AACA86E9CBEDD2F3A height=513 module=consensus num_txs=0 root=4BBDF81E53392523B39C5157C95305498DF1DFF9E17B0023401977B53D05F1C2 server=node
4:20PM INF minted coins from module account amount=2059914844014924885aphoton from=mint module=x/bank
4:20PM INF executed block height=513 module=state num_invalid_txs=0 num_valid_txs=0 server=node
4:20PM INF commit synced commit=436F6D6D697449447B5B323439203134372032303820323332203130312031333220313538203220393520313932203333203135372031343120323132203137312039382034203837203139342031313420383120313936203436203138302031373820323330203636203232362031303120363320313339203235335D3A3230317D
4:20PM INF committed state app_hash=F993D0E865849E025FC0219D8DD4AB620457C27251C42EB4B2E642E2653F8BFD height=513 module=state num_txs=0 server=node
4:20PM INF indexed block height=513 module=txindex server=node
4:20PM INF Timed out dur=4948.506 height=514 module=consensus round=0 server=node step=1

Questions:

  1. What's up with all of those "account not found" entries in the log? There are roughly 30 of them, each referring to a different cosmos-address/ethereum-address pair
  2. At the end there is one more "account not found" specifically referring to the ethereum address that ultimately gets assigned to my WETH9 deployment (0xEb9C3893Ecc650cf9D17B45Ee9E7b3879E8bD96b):
4:20PM ERR account not found error="account evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf does not exist: unknown address" cosmos-address=evmos1awwr3ylvcegvl8ghk30wneans70ghkttmdrvsf ethereum-address=0xEb9C3893Ecc650cf9D17B45Ee9E7b3879E8bD96b module=evm

Thanks

API call to validator outstand_rewards returns inaccurate result

Summary of Bug

When I make an API call to https://rest.bd.evmos.org:1317/cosmos/distribution/v1beta1/validators/evmosvaloper1fhfkklmv764r3u6kqkeflmddr6rlzhf4r9lae6/outstanding_rewards

I get some values. But when I withdraw my validator rewards + commission then there's still over 100evmos left when I call this API again. Most of the rewards do get deposited to my usable balance as expected. When I first checked after claiming my rewards on v1.1.0 then it worked as expected and the outstanding_rewards balance was 0 after I claimed my rewards + commissions. But after the v1.1.1 then making this call left over 100evmos in the outstanding_rewards call balance so there is some discrepancies somewhere

Version

v1.1.1

Steps to Reproduce

Browse or make a REST call to https://rest.bd.evmos.org:1317/cosmos/distribution/v1beta1/validators/evmosvaloper1fhfkklmv764r3u6kqkeflmddr6rlzhf4r9lae6/outstanding_rewards

To test yourself, replace my validator address with yours. Claim rewards + commissions and check the before and after balances. Notice the API call still results in lots of evmos tokens left over and they appear to be unclaimable.

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

something request about deploy contract

I was run the node in my localnet but now I want to deploying a smart contract,I dont knwo how to get any ETH in my localnet ,so
please tell me what should i do.

Bug warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]

macOS Big Sur 11.52

make install Error

go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=evmos -X github.com/cosmos/cosmos-sdk/version.AppName=evmosd -X github.com/cosmos/cosmos-sdk/version.Version=1.1.1 -X github.com/cosmos/cosmos-sdk/version.Commit=1bd0bf6c6476b05858efc41b4803d8003d58e112 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger" -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.16 -w -s' -trimpath ./...

github.com/keybase/go-keychain

cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

gopkg.in/olebedev/go-duktape.v3

In file included from _cgo_export.c:4:
debugger.go:23:13: warning: unused function '_duk_debugger_attach' [-Wunused-function]

Keys generated with Cosmos (ATOM) Ledger app can't be used

Summary of Bug

evmosd allows users to generate keys with the Cosmos (ATOM) Ledger app by running this following command.

evmosd keys add <key-name> --ledger --coin-type 118

However, the generate key is in secp256k1 type but not ethsecp256k1. Once the account is created on chain, the account is locked as all transactions broadcasting from this account won't be committed on chain. It breaks the current airdrop flow as the account can't stake or vote or making any evm interactions.

Version

v1.1.0

Steps to Reproduce

Screenshots

Additional context


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Faucet doesn't work on faucet.evmos.org

System info: [Include Ethermint commit, operating system name, and other relevant details]

Steps to reproduce:

  1. goto main page https://faucet.evmos.org/
  2. fill in address
  3. click on "request funds"

Expected behavior: [What you expected to happen]

Actual behavior: Server responds 502

Additional info: [Include gist of relevant config, logs, etc.]
Screenshot 2021-10-15 at 15 44 03

Evmos Testnet | Mnemonic is absent after creating key via evmosd

System info:

Hello team!

OS: Ubuntu 20.04 LTS
CPU: 4 vCPU
RAM: 16 GB
Cloud: AWS
Evmosd version: 0.4.1
Evmosd start command: evmosd start --db_dir /data --log_level info --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3

Problem: when I try to create key via evmosd keys add test-key I didn't have mnemonic:

evmosd keys add test-key
Enter keyring passphrase:

- name: test-key
  type: local
  address: evmos10lcc6h7z3ywc6uhja2d9dcna2jl2g974y0vsg5
  pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AkJ9CK7AUD4JT/n7pXV0myFL0VmX2JcgcpS/UJ/lNm84"}'
  mnemonic: ""


**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.

civil inherit eagle insane sock legend safe depart base bronze add stove novel melody one build left sound area order crystal lazy worth cherry

Steps to reproduce:

  1. [First Step]
    Type evmosd keys add test-key
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expected to happen]

Expect to see mnemonic to save it for restore.

Actual behavior: [What actually happened]

After creating a key I don't have it.

Additional info: [Include gist of relevant config, logs, etc.]

Please provide logs which I should to share.

Thanks!

Error in installing and running evmos with dockerfile

Summary of Bug

When installing and running evmos with dockerfile following installation tutorial, i found error message.

Version

git hash : f111413

Steps to Reproduce

I followed tutorial steps in installation tutorial

Screenshots

  1. Installation with dockerfile
    Error screenshot

  2. Installation with github src file.
    Error screenshot2

It doesn't reply anything. It works anyway but is it normal?

Additional context

Testing env

  • AWS ubuntu 20.04
  • Docker 20.10.12

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Evmos Testnet | 2310 commit block error

System info:

Hello team!

OS: Ubuntu 20.04 LTS
CPU: 4 vCPU
RAM: 16 GB
Cloud: AWS
Evmosd version: 0.4.0 (ready binary file)
Evmosd start command: evmosd start

P.S: also I tried to use evmosd version 0.4.1, 0.3.0, 0.4.2 - in each version same behaviour.


Config files:

config.toml:

#######################################################################
###                   Main Base Config Options                      ###
#######################################################################

proxy_app = "tcp://0.0.0.0:26658"

moniker = "MyMoniker"

fast_sync = true

db_backend = "goleveldb"

# Database directory
db_dir = "/data"

log_level = "info"

log_format = "plain"

genesis_file = "config/genesis.json"

priv_validator_key_file = "config/priv_validator_key.json"

priv_validator_state_file = "data/priv_validator_state.json"

priv_validator_laddr = ""

node_key_file = "config/node_key.json"

abci = "socket"

filter_peers = false


#######################################################################
###                 Advanced Configuration Options                  ###
#######################################################################

#######################################################
###       RPC Server Configuration Options          ###
#######################################################
[rpc]

laddr = "tcp://0.0.0.0:26657"

cors_allowed_origins = []

cors_allowed_methods = ["HEAD", "GET", "POST", ]

cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]

grpc_laddr = ""

grpc_max_open_connections = 900

unsafe = false

max_open_connections = 900

max_subscription_clients = 100

max_subscriptions_per_client = 5

timeout_broadcast_tx_commit = "10s"

max_body_bytes = 1000000

max_header_bytes = 1048576

tls_cert_file = ""

tls_key_file = ""

pprof_laddr = "localhost:6060"

#######################################################
###           P2P Configuration Options             ###
#######################################################
[p2p]

laddr = "tcp://0.0.0.0:26656"

external_address = "18.132.16.106:26656"

seeds = "6f0bbcf559a3eab1c5594062d587ccec4b4bade2@evmos-seed.artifact-staking.io:26656,faa31510d9280e74e7f2e767a62023bd5c896c27@evmos-testnet.mercury-nodes.net:29447"

persistent_peers = "[email protected]:26646,[email protected]:26656,[email protected]:26666,[email protected]:26656,[email protected]:26646,[email protected]:24656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26658"

upnp = false

addr_book_file = "config/addrbook.json"

addr_book_strict = true

max_num_inbound_peers = 200 # default - 40

max_num_outbound_peers = 100 # default - 10

unconditional_peer_ids = ""

persistent_peers_max_dial_period = "0s"

flush_throttle_timeout = "100ms"

max_packet_msg_payload_size = 1024

send_rate = 5120000

recv_rate = 5120000

pex = true

seed_mode = false

private_peer_ids = ""

allow_duplicate_ip = false

handshake_timeout = "20s"
dial_timeout = "3s"

#######################################################
###          Mempool Configuration Option          ###
#######################################################
[mempool]

recheck = true
broadcast = true
wal_dir = ""

size = 5000

max_txs_bytes = 1073741824

cache_size = 10000

keep-invalid-txs-in-cache = false

max_tx_bytes = 1048576

max_batch_bytes = 0

#######################################################
###         State Sync Configuration Options        ###
#######################################################
[statesync]

enable = false

rpc_servers = ""
trust_height = 0
trust_hash = ""
trust_period = "168h0m0s"

discovery_time = "15s"

temp_dir = ""

chunk_request_timeout = "10s"

chunk_fetchers = "4"

#######################################################
###       Fast Sync Configuration Connections       ###
#######################################################
[fastsync]

version = "v2"

#######################################################
###         Consensus Configuration Options         ###
#######################################################
[consensus]

wal_file = "data/cs.wal/wal"

timeout_propose = "3s"

timeout_propose_delta = "500ms"

timeout_prevote = "1s"

timeout_prevote_delta = "500ms"

timeout_precommit = "1s"

timeout_precommit_delta = "500ms"

timeout_commit = "5s"

double_sign_check_height = 0

skip_timeout_commit = false

create_empty_blocks = true
create_empty_blocks_interval = "0s"

peer_gossip_sleep_duration = "100ms"
peer_query_maj23_sleep_duration = "2s"

#######################################################
###   Transaction Indexer Configuration Options     ###
#######################################################
[tx_index]

indexer = "kv"

#######################################################
###       Instrumentation Configuration Options     ###
#######################################################
[instrumentation]

prometheus = false

prometheus_listen_addr = ":26660"

max_open_connections = 3


namespace = "tendermint"

app.toml:

###############################################################################
###                           Base Configuration                            ###
###############################################################################

minimum-gas-prices = "0aphoton"

pruning = "default"

pruning-keep-recent = "0"
pruning-keep-every = "0"
pruning-interval = "0"

halt-height = 0

halt-time = 0

min-retain-blocks = 0

inter-block-cache = true

index-events = []

###############################################################################
###                         Telemetry Configuration                         ###
###############################################################################

[telemetry]

service-name = ""

enabled = false

enable-hostname = false

enable-hostname-label = false

enable-service-label = false

prometheus-retention-time = 0

global-labels = [
]

###############################################################################
###                           API Configuration                             ###
###############################################################################

[api]

enable = false

swagger = false

address = "tcp://0.0.0.0:1317"

max-open-connections = 1000

rpc-read-timeout = 10

rpc-write-timeout = 0

rpc-max-body-bytes = 1000000

enabled-unsafe-cors = false

###############################################################################
###                           Rosetta Configuration                         ###
###############################################################################

[rosetta]

enable = false

address = ":8080"

blockchain = "app"

network = "network"

retries = 3

offline = false

###############################################################################
###                           gRPC Configuration                            ###
###############################################################################

[grpc]

enable = true

address = "0.0.0.0:9090"

###############################################################################
###                        gRPC Web Configuration                           ###
###############################################################################

[grpc-web]

enable = true

address = "0.0.0.0:9091"

enable-unsafe-cors = false

###############################################################################
###                        State Sync Configuration                         ###
###############################################################################

[state-sync]

snapshot-interval = 0

snapshot-keep-recent = 2

###############################################################################
###                             EVM Configuration                           ###
###############################################################################

[evm]

tracer = ""

###############################################################################
###                           JSON RPC Configuration                        ###
###############################################################################

[json-rpc]

enable = true

address = "0.0.0.0:8545"

ws-address = "0.0.0.0:8546"

api = "eth,txpool,personal,net,debug,web3"

gas-cap = 25000000

evm-timeout = "5s"

txfee-cap = 1

filter-cap = 200

feehistory-cap = 100


###############################################################################
###                             TLS Configuration                           ###
###############################################################################

[tls]

certificate-path = ""

key-path = ""

Steps to reproduce:

  1. evmosd config chain-id evmos_9000-2 && evmosd config keyring-backend file && evmosd config node tcp://0.0.0.0:26657
  2. evmosd init MyMoniker --chain-id evmos_9000-2
  3. cd $HOME/.evmosd/config && curl https://raw.githubusercontent.com/tharsis/testnets/main/olympus_mons/genesis.json > genesis.json && echo "2b5164f4bab00263cb424c3d0aa5c47a707184c6ff288322acc4c7e0c5f6f36f genesis.json" | sha256sum -c && cd
  4. Copy app.toml and config.toml with configuration above into .evmosd/config/
  5. SEEDS=curl -sL https://raw.githubusercontent.com/tharsis/testnets/main/olympus_mons/seeds.txt | awk '{print $1}' | paste -s -d, - && sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" ~/.evmosd/config/config.toml && PEERS=curl -sL https://raw.githubusercontent.com/tharsis/testnets/main/olympus_mons/peers.txt | sort -R | head -n 10 | awk '{print $1}' | paste -s -d, - && sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.evmosd/config/config.toml
  6. evmosd start
  7. Waiting 2310 block with error:
7:11AM INF committed state app_hash=07676A15B0A65BD5796448072746F535EA9C4400890FEB2F87053EA90F68971D height=2310 module=state num_txs=11 server=node
7:11AM INF indexed block height=2310 module=txindex server=node
7:11AM INF Transactions per second tps=1651.4
7:11AM INF commit is for a block we do not know about; set ProposalBlock=nil commit=985CDCCFE221B63134209F8099DE9944901088CD1307E2F97A48C0FCD6C6670C commit_round=0 height=2311 module=consensus proposal= server=node
7:11AM INF received complete proposal block hash=985CDCCFE221B63134209F8099DE9944901088CD1307E2F97A48C0FCD6C6670C height=2311 module=consensus server=node
7:11AM ERR CONSENSUS FAILURE!!! err="+2/3 committed an invalid block: wrong Block.Header.AppHash.  Expected 07676A15B0A65BD5796448072746F535EA9C4400890FEB2F87053EA90F68971D, got FF12DF887458632870E03B34CF45E8914E0C7BECDCED9DC026816A8DE34088F9" module=consensus server=node stack="goroutine 1171 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine.func2()\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:726 +0x4c\npanic({0x1b69500, 0xc0041afd40})\n\t/usr/local/go/src/runtime/panic.go:1038 +0x215\ngithub.com/tendermint/tendermint/consensus.(*State).finalizeCommit(0xc001162a80, 0x907)\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:1575 +0x1005\ngithub.com/tendermint/tendermint/consensus.(*State).tryFinalizeCommit(0xc001162a80, 0x907)\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:1546 +0x305\ngithub.com/tendermint/tendermint/consensus.(*State).addProposalBlockPart(0xc001162a80, 0x7bf3, {0xc0030aef30, 0xc00239a000})\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:1919 +0x92e\ngithub.com/tendermint/tendermint/consensus.(*State).handleMsg(0xc001162a80, {{0x2345d60, 0xc010f70870}, {0xc0030aef30, 0x5}})\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:820 +0x17c\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine(0xc001162a80, 0x0)\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:762 +0x419\ncreated by github.com/tendermint/tendermint/consensus.(*State).OnStart\n\t/go/pkg/mod/github.com/tendermint/[email protected]/consensus/state.go:378 +0x12f\n"
7:11AM INF Stopping baseWAL service impl={"Logger":{}} module=consensus server=node wal=/home/protoadmin/.evmosd/data/cs.wal/wal
7:11AM INF Stopping Group service impl={"Dir":"/home/protoadmin/.evmosd/data/cs.wal","Head":{"ID":"wd0lpb8g9Nrr:/home/protoadmin/.evmosd/data/cs.wal/wal","Path":"/home/protoadmin/.evmosd/data/cs.wal/wal"},"ID":"group:wd0lpb8g9Nrr:/home/protoadmin/.evmosd/data/cs.wal/wal","Logger":{}} module=consensus server=node wal=/home/protoadmin/.evmosd/data/cs.wal/wal
7:11AM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=30 numToDial=-20 server=node
t=2021-12-13T07:11:36+0000 lvl=dbug msg="Served eth_blockNumber" conn=82.209.244.50:61587 reqid=1 t="487.175µs"
7:11AM INF Timed out dur=3000 height=2311 module=consensus round=0 server=node step=3
t=2021-12-13T07:11:39+0000 lvl=dbug msg="Served eth_blockNumber" conn=82.209.244.50:61588 reqid=1 t="687.861µs"
7:11AM INF Transactions per second tps=1631.4
7:11AM INF Transactions per second tps=1631.4
7:12AM INF Transactions per second tps=1631.4
7:12AM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=30 numToDial=-20 server=node
7:12AM INF Transactions per second tps=1631.4
7:12AM INF Transactions per second tps=1631.4
7:12AM ERR Failed to read request err="websocket: close 1006 (abnormal closure): unexpected EOF" module=rpc-server protocol=websocket remote={"IP":"127.0.0.1","Port":51142,"Zone":""} server=node
7:12AM INF Stopping wsConnection service impl={"Logger":{}} module=rpc-server protocol=websocket remote={"IP":"127.0.0.1","Port":51142,"Zone":""} server=node
7:12AM ERR error while stopping connection error="already stopped" module=rpc-server protocol=websocket server=node
7:12AM ERR Failed to read request err="websocket: close 1006 (abnormal closure): unexpected EOF" module=rpc-server protocol=websocket remote={"IP":"127.0.0.1","Port":51146,"Zone":""} server=node
7:12AM INF Stopping wsConnection service impl={"Logger":{}} module=rpc-server protocol=websocket remote={"IP":"127.0.0.1","Port":51146,"Zone":""} server=node
7:12AM ERR error while stopping connection error="already stopped" module=rpc-server protocol=websocket server=node

Expected behavior:

Expect that my node is syncing correctly.

Actual behavior:

Syncing stoped on 2310 block with error above.

Additional info:

All info was provided above.

Compile built-in contracts in the build process

Surfaced from @informalsystems audit of Ethermint v0.8.1 and Evmos v0.3.0

Proposal: Compile ERC20Burnable, ERC20MinterBurner, and ERC20PresetMinterPauser contracts from their Solidity sources as part of the build process. This would increase transparency of the built-in contracts and allow the developers to peer-review the changes in the contracts.

Current behavior: Currently, the contracts are committed in the repository as JSON, that is, ABI and the bytecode. Given the debugging information, I believe that these contracts are simply compiled from openzeppelin Solidity code. See https://github.com/tharsis/evmos/tree/4b89a8efad784fd0116fac3ad0a38fcfb3aeaca5/x/intrarelayer/types/contracts. However, it is impossible to tell what the contracts are doing without running bytecode analyzers. This is a potentially dangerous approach, as it would be hard to notice any severe change of behavior in the bytecode during peer review.

Desired behavior: The contracts are built from the Solidity sources in the build process.

starport relayer connect exception

Summary of Bug

starport relayer connect evmosd_9000-1-mars
·
· 🛸 Starport v0.19.4 is available!
·
· If you're looking to upgrade check out the instructions: https://docs.starport.network/guide/install.html#upgrading-your-starport-installation
·
··

Unsupported type: '/ethermint.types.v1.EthAccount'

when connect evmos <-> sample chain using starport relayer, i got the Unsupported type: '/ethermint.types.v1.EthAccount' message

Version

current main commit(ee54f49)

Steps to Reproduce

starport relayer configure -a \
--source-rpc "http://0.0.0.0:26657" \
--source-faucet "http://0.0.0.0:4500" \
--source-port "transfer" \
--source-version "ics20-1" \
--source-gasprice "0.0000025aevm" \
--source-prefix "evmos" \
--source-gaslimit 300000 \
--target-rpc "http://0.0.0.0:26659" \
--target-faucet "http://0.0.0.0:4501" \
--target-port "transfer" \
--target-version "ics20-1" \
--target-gasprice "0.0000025token" \
--target-prefix "cosmos" \
--target-gaslimit 300000

source chain: evmos
target chain: starport created empty chain

Screenshots

Additional context


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Create an IBC application protocol for EVM TXs over IBC

Proposal: Send an EVM transaction over IBC

It would enable use cases like Sommelier to integrate with Evmos.

The only real requirement is to have Ethereum addresses that correspond to each IBC channel and msg.sender on the tx be the address for the channel.

Evmosd Binary Issue

Summary of Bug

When attempting to claim the rektdrop via cli I ran this command evmosd keys unsafe-import-eth-key <evmos address> <eth private key>. After importing the eth private key the command creates a wallet that is named after the address but is a different address.

Version

V1.1.1

Steps to Reproduce

  1. evmosd keys unsafe-import-eth-key <evmos address> <eth private key>
  2. evmosd q claims claims-record <address> --chain-id evmos_9001-1 --node <rpc>

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Interalayer : Register ERC20

System info:

name: evmos
server_name: evmosd
version: 0.4.2
commit: 4b6bf2c53286d92b9154caf605c0b4c4257664af
build_tags: netgo,ledger
go: go version go1.17 linux/amd64

Steps to reproduce:

  1. Create a register-erc20 proposal
evmosd tx gov submit-proposal register-erc20 0x11Dd65D6FD791E69CBF6bc9cB4c71E22E790198A \
--title="Register ERC20 as Cosmos native coin" \
--description "Proposal description" \
--deposit="10000000aphoton" \
--from=user

Expected behavior: Erc20 gov proposal for

Contract: 0x11Dd65D6FD791E69CBF6bc9cB4c71E22E790198A
Name: Nation Token
Symbol: NTN

Actual behavior: Error

failed to execute message; message index: 0: failed to create wrapped coin denom metadata for ERC20: ERC20 token data is invalid for contract 0x11Dd65D6FD791E69CBF6bc9cB4c71E22E790198A: invalid metadata display denom: invalid denom: Nation Token: invalid proposal content

Additional info:
I think the erc20Data.Symbol should be used .

https://github.com/tharsis/evmos/blob/0716a72ffd52313e4c3abc326205b4e573b12475/x/intrarelayer/keeper/proposals.go#L130

How can the aevmos in the account be used on Metamask

this is the balance of my account
parallels@parallels-Parallels-Virtual-Platform:~/Documents/evmos/evmos$ evmosd query bank balances $( evmosd keys show student -a)
balances:

  • amount: "10"
    denom: aevmos
  • amount: "10"
    denom: photon
    pagination:
    next_key: null
    total: "0"

But WHEN I log in to the metamask to connect to the local network, I can't see the balance. Metamask shows 0 PHOTON。

what should i do?

Missing Tx / Missing Funds?

System info: [Include Ethermint commit, operating system name, and other relevant details]

Ubuntu 20.0.4
https://evmos.skynetexplorers.com/transactions/BE822EBAA23E0E946AEE62023F25CF09EE849BF61C9A885B51C0BCFB44FEBEFB (Missing)

Steps to reproduce:

evmosd tx staking delegate evmosvaloper1uvespdsgqjr3s09v747224zre33vs8kl82h497 1172110991216100aphoton --gas auto --fees 5000aphoton --from skynet --chain-id evmos_9000-2

Expected behavior: [What you expected to happen]

Funds to be delegated to my validator.

Actual behavior: [What actually happened]

Funds were withdrawn from my account leaving the following balance: evmosd query bank balances evmos1uvespdsgqjr3s09v747224zre33vs8kl2yc9yr

balances:

  • amount: "995005"
    denom: aphoton
    pagination:
    next_key: null
    total: "0"

Looking at the block explorer the funds are showing as still available (1,172,110,992.216105 PHOTON): https://evmos.skynetexplorers.com/accounts/evmos1uvespdsgqjr3s09v747224zre33vs8kl2yc9yr

When you look via the block explorer it does not find the transaction.

Tx: BE822EBAA23E0E946AEE62023F25CF09EE849BF61C9A885B51C0BCFB44FEBEFB

Additional info: [Include gist of relevant config, logs, etc.]

Issue with Web3.py / Brownie and return values

System info: [Include Ethermint commit, operating system name, and other relevant details]
Running local node @ commit: 90ba91e

Steps to reproduce:

  1. Deploy contract
  2. Execute function call

Edit: seems to be a brownie specific issue.

Expected behavior: [What you expected to happen]
returns 6.
Actual behavior: [What actually happened]
returns nothing.
Additional info: [Include gist of relevant config, logs, etc.]

image
image

CALL STACK:

  • Looks like output is correct, but Brownie cannot find it for some reason.

{"pc":0,"op":96,"gas":"0x1ef1","gasCost":"0x3","memory":"0x","memSize":0,"stack":[],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":2,"op":96,"gas":"0x1eee","gasCost":"0x3","memory":"0x","memSize":0,"stack":["0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":4,"op":82,"gas":"0x1eeb","gasCost":"0xc","memory":"0x","memSize":96,"stack":["0x80","0x40"],"returnData":"0x","depth":1,"refund":0,"opName":"MSTORE","error":""}
{"pc":5,"op":52,"gas":"0x1edf","gasCost":"0x2","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"refund":0,"opName":"CALLVALUE","error":""}
{"pc":6,"op":128,"gas":"0x1edd","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP1","error":""}
{"pc":7,"op":21,"gas":"0x1eda","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"ISZERO","error":""}
{"pc":8,"op":96,"gas":"0x1ed7","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":10,"op":87,"gas":"0x1ed4","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x0","0x1","0xf"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":15,"op":91,"gas":"0x1eca","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":16,"op":80,"gas":"0x1ec9","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"POP","error":""}
{"pc":17,"op":96,"gas":"0x1ec7","gasCost":"0x3","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":19,"op":54,"gas":"0x1ec4","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x4"],"returnData":"0x","depth":1,"refund":0,"opName":"CALLDATASIZE","error":""}
{"pc":20,"op":16,"gas":"0x1ec2","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x4","0x4"],"returnData":"0x","depth":1,"refund":0,"opName":"LT","error":""}
{"pc":21,"op":96,"gas":"0x1ebf","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":23,"op":87,"gas":"0x1ebc","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x0","0x32"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":24,"op":96,"gas":"0x1eb2","gasCost":"0x3","memory":"0x","memSize":96,"stack":[],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":26,"op":53,"gas":"0x1eaf","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"CALLDATALOAD","error":""}
{"pc":27,"op":96,"gas":"0x1eac","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f92200000000000000000000000000000000000000000000000000000000"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":29,"op":28,"gas":"0x1ea9","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f92200000000000000000000000000000000000000000000000000000000","0xe0"],"returnData":"0x","depth":1,"refund":0,"opName":"SHR","error":""}
{"pc":30,"op":128,"gas":"0x1ea6","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP1","error":""}
{"pc":31,"op":99,"gas":"0x1ea3","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH4","error":""}
{"pc":36,"op":20,"gas":"0x1ea0","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x9476f922","0x5c7fdf20"],"returnData":"0x","depth":1,"refund":0,"opName":"EQ","error":""}
{"pc":37,"op":96,"gas":"0x1e9d","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":39,"op":87,"gas":"0x1e9a","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x9476f922","0x0","0x37"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":40,"op":128,"gas":"0x1e90","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP1","error":""}
{"pc":41,"op":99,"gas":"0x1e8d","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH4","error":""}
{"pc":46,"op":20,"gas":"0x1e8a","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x9476f922","0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"EQ","error":""}
{"pc":47,"op":96,"gas":"0x1e87","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":49,"op":87,"gas":"0x1e84","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x9476f922","0x1","0x4d"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":77,"op":91,"gas":"0x1e7a","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":78,"op":96,"gas":"0x1e79","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":80,"op":96,"gas":"0x1e76","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":82,"op":96,"gas":"0x1e73","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":84,"op":128,"gas":"0x1e70","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP1","error":""}
{"pc":85,"op":96,"gas":"0x1e6d","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":87,"op":130,"gas":"0x1e6a","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP3","error":""}
{"pc":88,"op":130,"gas":"0x1e67","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP3","error":""}
{"pc":89,"op":84,"gas":"0x1e64","gasCost":"0x834","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x1","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"SLOAD","error":""}
{"pc":90,"op":96,"gas":"0x1630","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x1","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":92,"op":145,"gas":"0x162d","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x1","0x8","0x61"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP2","error":""}
{"pc":93,"op":144,"gas":"0x162a","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x8","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP1","error":""}
{"pc":94,"op":96,"gas":"0x1627","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":96,"op":86,"gas":"0x1624","gasCost":"0x8","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x6d"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMP","error":""}
{"pc":109,"op":91,"gas":"0x161c","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":110,"op":96,"gas":"0x161b","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":112,"op":130,"gas":"0x1618","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP3","error":""}
{"pc":113,"op":25,"gas":"0x1615","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"NOT","error":""}
{"pc":114,"op":130,"gas":"0x1612","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP3","error":""}
{"pc":115,"op":17,"gas":"0x160f","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"GT","error":""}
{"pc":116,"op":21,"gas":"0x160c","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"ISZERO","error":""}
{"pc":117,"op":96,"gas":"0x1609","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":119,"op":87,"gas":"0x1606","gasCost":"0xa","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0","0x1","0x8d"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPI","error":""}
{"pc":141,"op":91,"gas":"0x15fc","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":142,"op":80,"gas":"0x15fb","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"POP","error":""}
{"pc":143,"op":1,"gas":"0x15f9","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x1","0x8"],"returnData":"0x","depth":1,"refund":0,"opName":"ADD","error":""}
{"pc":144,"op":144,"gas":"0x15f6","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x61","0x9"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP1","error":""}
{"pc":145,"op":86,"gas":"0x15f3","gasCost":"0x8","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x9","0x61"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMP","error":""}
{"pc":97,"op":91,"gas":"0x15eb","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x9"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":98,"op":144,"gas":"0x15ea","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x0","0x9"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP1","error":""}
{"pc":99,"op":145,"gas":"0x15e7","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x1","0x9","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP2","error":""}
{"pc":100,"op":85,"gas":"0x15e4","gasCost":"0xb54","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x0","0x9","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"SSTORE","error":""}
{"pc":101,"op":80,"gas":"0xa90","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"POP","error":""}
{"pc":102,"op":96,"gas":"0xa8e","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":104,"op":146,"gas":"0xa8b","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x3b","0x0","0x1","0x6"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP3","error":""}
{"pc":105,"op":145,"gas":"0xa88","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x0","0x1","0x3b"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP2","error":""}
{"pc":106,"op":80,"gas":"0xa85","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x3b","0x1","0x0"],"returnData":"0x","depth":1,"refund":0,"opName":"POP","error":""}
{"pc":107,"op":80,"gas":"0xa83","gasCost":"0x2","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x3b","0x1"],"returnData":"0x","depth":1,"refund":0,"opName":"POP","error":""}
{"pc":108,"op":86,"gas":"0xa81","gasCost":"0x8","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x3b"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMP","error":""}
{"pc":59,"op":91,"gas":"0xa79","gasCost":"0x1","memory":"0x","memSize":96,"stack":["0x9476f922","0x6"],"returnData":"0x","depth":1,"refund":0,"opName":"JUMPDEST","error":""}
{"pc":60,"op":96,"gas":"0xa78","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x6"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":62,"op":81,"gas":"0xa75","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x40"],"returnData":"0x","depth":1,"refund":0,"opName":"MLOAD","error":""}
{"pc":63,"op":144,"gas":"0xa72","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x6","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP1","error":""}
{"pc":64,"op":129,"gas":"0xa6f","gasCost":"0x3","memory":"0x","memSize":96,"stack":["0x9476f922","0x80","0x6"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP2","error":""}
{"pc":65,"op":82,"gas":"0xa6c","gasCost":"0x9","memory":"0x","memSize":160,"stack":["0x9476f922","0x80","0x6","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"MSTORE","error":""}
{"pc":66,"op":96,"gas":"0xa63","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":68,"op":1,"gas":"0xa60","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0x80","0x20"],"returnData":"0x","depth":1,"refund":0,"opName":"ADD","error":""}
{"pc":69,"op":96,"gas":"0xa5d","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0xa0"],"returnData":"0x","depth":1,"refund":0,"opName":"PUSH1","error":""}
{"pc":71,"op":81,"gas":"0xa5a","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0xa0","0x40"],"returnData":"0x","depth":1,"refund":0,"opName":"MLOAD","error":""}
{"pc":72,"op":128,"gas":"0xa57","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0xa0","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"DUP1","error":""}
{"pc":73,"op":145,"gas":"0xa54","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0xa0","0x80","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP2","error":""}
{"pc":74,"op":3,"gas":"0xa51","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0x80","0x80","0xa0"],"returnData":"0x","depth":1,"refund":0,"opName":"SUB","error":""}
{"pc":75,"op":144,"gas":"0xa4e","gasCost":"0x3","memory":"0x","memSize":160,"stack":["0x9476f922","0x80","0x20"],"returnData":"0x","depth":1,"refund":0,"opName":"SWAP1","error":""}
{"pc":76,"op":243,"gas":"0xa4b","gasCost":"0x0","memory":"0x","memSize":160,"stack":["0x9476f922","0x20","0x80"],"returnData":"0x","depth":1,"refund":0,"opName":"RETURN","error":""}
{"output":"0000000000000000000000000000000000000000000000000000000000000006","gasUsed":"0x14a6","time":1107992}

Redacted errors calling eth_getBlock via web3 JSON RPC

I posted this issue in cosmos-sdk GitHub, but it seems more related to evmos:

Version

evmosd 0.3.0

# go/bin/evmosd version
0.3.0

Important: the same happens in three different nodes: two Rasperry Pi 4 (arm64, local network) and a VPS in Digital Ocean (amd64, remote network). In all cases the base SO is a clean install of Ubuntu 20.04.

Network is Genesis L1, built on evmos. Official JSON RPC URL is https://rpc.genesisl1.org, which works correctly.

System

Clean install of Ubuntu 20.04 LTS on amd64 architecture (Digital Ocean VPS with Intel processor)

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

Problem

I'm receiving errors calling eth_getBlock via JSON RPC, but only in some blocks (I can't find a pattern, but failing and working blocks are always the same. It's not a random error).

Steps to reproduce

# This is a public node, yon can try by yourself
geth attach http://134.209.194.27:8545

# Error asking for block 1

> eth.getBlock(1)
Error: rpc error: code = Unknown desc = panic message redacted to hide potentially sensitive system info: panic
	at web3.js:6347:37(47)
	at web3.js:5081:62(37)
	at <eval>:1:13(4)

# Block 1000 works

> eth.getBlock(1000)
{
  baseFeePerGas: "0x7",
  difficulty: 0,
...

# Error asking for block 1001

> eth.getBlock(1001)
Error: rpc error: code = Unknown desc = panic message redacted to hide potentially sensitive system info: panic
	at web3.js:6347:37(47)
	at web3.js:5081:62(37)
	at <eval>:1:13(4)

About the format of the verifier's address?

I run blow code

evmosd tx staking create-validator \
--amount=1000000aphoton \
--pubkey=$(evmosd tendermint show-validator) \
--moniker="test" \
--chain-id=evmos_9000-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1000000" \
--gas="auto" \
--gas-prices="0.025aphoton" \
--from=mykey

but i get address evmosvalcons12fuue4wvn3gg0awa2rvgx9r4r244q4mkg9ynrj
expected evmosvaloper, got evmosvalcons: invalid request
How to convert them to format?
thanks

evmosd v0.2.0 don't recognize wallets from v0.1.3

System info: [Ubuntu]

Steps to reproduce:

  1. [Create wallet in v0.1.3 with command "evmosd keys add --keyring-backend file"]
  2. [Install evmosd v0.2.0]
  3. [Recover your wallet that was created in v0.1.3 with command "evmosd keys add "$evmos_wallet_name" --recover --keyring-backend file"]
  4. [Notice that evmosd can't use this recovered wallet]

Expected behavior: [Recover wallet]

Actual behavior: [Can't use recovered wallet]

evmos_wallet_recover_fail

Add init.sh along with the released binary files

I tried the 0.4.2 release with https://raw.githubusercontent.com/tharsis/evmos/main/init.sh. I exported the local account to the Metamask wallet and saw a balance of 0 TEVMOS (I changed the network, refreshed the page. I was on the correct local testnet).

I then used a previous version https://raw.githubusercontent.com/tharsis/evmos/496deb4c196f42aab6fec82f246d7d93bc58742a/init.sh to initialize the node and this time I saw a balance of 99999000 TEVMOS in Metamask.

debug_traceTransaction failure when using --trace

Steps to Repro:

  1. evmosd start --trace --log_level info --minimum-gas-prices=0.0001aphoton

  2. Try to get return value from a non view function via running a debug trace.

  3. Experience: RPCRequestError: Accessing TransactionReceipt.return_value on a confirmed transaction requires the debug_traceTransaction RPC endpoint, but the node client does not support it or has not made it available.

Using Brownie 1.17.1 also fails when hitting the raw RPC.

Missing validators

Chain: evmos_9000-1
Version: 0.1.3

I'm finding several missing validators. One example is the validator with pubkey sgIeNs92kvmqC6AUU5wInA6mPEsbOxpNv9D+F3WZOFo=

You can see it first joined the active validator set on block 6979
http://arsiamons.rpc.evmos.org:1317/validatorsets/6979

But I can't find it in the full validators list here
http://arsiamons.rpc.evmos.org:1317/cosmos/staking/v1beta1/validators?pagination.limit=99999

http://arsiamons.rpc.evmos.org:26657/block_results?height=6977
The create_validator event is on block 6977, and then it joins the active set on block 6979 but I don't see it in the full list of validators.

Anyone have any ideas?

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1252198]

System info: evmos v.0.2.0, OS: Debian 10

Steps to reproduce:

  1. Build evmosd.
  2. Run evmosd testnet init-files.
  3. Run evmosd testnet start - everything works fine.
  4. Run evmosd start --home=./.testnets/node0 - the program stops with an error.

Expected behavior: The evmosd should should work without errors.

Actual behavior: The evmosd stops after 15-16 seconds of work with the following error:

11:26PM INF New websocket connection module=rpc-server protocol=websocket remote=127.0.0.1:47032 server=node
11:26PM INF Starting wsConnection service impl=wsConnection module=rpc-server protocol=websocket remote={"IP":"127.0.0.1","Port":47032,"Zone":""} server=node
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1252198]

goroutine 1 [running]:
github.com/ethereum/go-ethereum/core/types.LatestSigner(0xc000f1e400)
        github.com/ethereum/[email protected]/core/types/transaction_signing.go:65 +0x18
github.com/tharsis/ethermint/rpc/ethereum/namespaces/eth.NewPublicAPI({_, _}, {{0x0, 0x0, 0x0}, {0x23b7c70, 0xc000ee09e0}, {0xc000e2d1a0, 0x15}, {0x237cad0, ...}, ...}, ...)
        github.com/tharsis/[email protected]/rpc/ethereum/namespaces/eth/api.go:83 +0x211
github.com/tharsis/ethermint/rpc.GetRPCAPIs(_, {{0x0, 0x0, 0x0}, {0x23b7c70, 0xc000ee09e0}, {0xc000e2d1a0, 0x15}, {0x237cad0, 0xc000c181d0}, ...}, ...)
        github.com/tharsis/[email protected]/rpc/apis.go:54 +0x3af
github.com/tharsis/ethermint/server.StartJSONRPC(_, {{0x0, 0x0, 0x0}, {0x23b7c70, 0xc000ee09e0}, {0xc000e2d1a0, 0x15}, {0x237cad0, 0xc000c181d0}, ...}, ...)
        github.com/tharsis/[email protected]/server/json_rpc.go:26 +0x16e
github.com/tharsis/ethermint/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x23b7c70, 0xc000ee09e0}, {0x1db39fb, 0x7}, {0x237cad0, 0xc000c181d0}, ...}, ...)
        github.com/tharsis/[email protected]/server/start.go:420 +0x192c
github.com/tharsis/ethermint/server.StartCmd.func2(0xc00019ac80, {0xc0010e1d20, 0x0, 0x2})
        github.com/tharsis/[email protected]/server/start.go:119 +0x228
github.com/spf13/cobra.(*Command).execute(0xc00019ac80, {0xc0010e1d00, 0x2, 0x2})
        github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001f2000)
        github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/[email protected]/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        github.com/spf13/[email protected]/command.go:895
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x0, {0xc00122f700, 0xd})
        github.com/cosmos/[email protected]/server/cmd/execute.go:36 +0x1eb
main.main()
        github.com/tharsis/evmos/cmd/evmosd/main.go:20 +0x38

Additional info: The 15-16 seconds interval between the start of evmosd and the error is stable.

`convert-erc20` gas estimation is inaccurate

Surfaced from @informalsystems audit of Ethermint v0.8.1 and Evmos v0.4.0

Reposting from Slack, where @fedekunze identified this behavior as a bug:

System info: Evmos v0.4.0 on Docker

Steps to reproduce:

  1. tx intrarelayer convert-erc20 <CONTRACT> 1 <ADDR1> --fees 10000000aphoton --from <ADDR2>

Expected behavior: Successful conversion (--fees >= gas_used)

Actual behavior: "Out of gas" exception (--fees not considered)

Additional info:

code: 11
codespace: sdk
data: ""
gas_used: "201370"
gas_wanted: "200000"
height: "22"
info: ""
logs: []
raw_log: "\ngithub.com/cosmos/cosmos-sdk/baseapp.newOutOfGasRecoveryMiddleware.func1\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:55\ngithub.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:39\ngithub.com/cosmos/cosmos-sdk/baseapp.processRecovery\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:28\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:598\nruntime.gopanic\n\truntime/panic.go:1038\ngithub.com/cosmos/cosmos-sdk/store/types.(*basicGasMeter).ConsumeGas\n\tgithub.com/cosmos/[email protected]/store/types/gas.go:99\ngithub.com/cosmos/cosmos-sdk/store/gaskv.(*Store).Set\n\tgithub.com/cosmos/[email protected]/store/gaskv/store.go:49\ngithub.com/cosmos/cosmos-sdk/store/prefix.Store.Set\n\tgithub.com/cosmos/[email protected]/store/prefix/store.go:81\ngithub.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper.setSupply\n\tgithub.com/cosmos/[email protected]/x/bank/keeper/keeper.go:454\ngithub.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper.MintCoins\n\tgithub.com/cosmos/[email protected]/x/bank/keeper/keeper.go:392\ngithub.com/tharsis/evmos/x/intrarelayer/keeper.Keeper.convertERC20NativeToken\n\tgithub.com/tharsis/evmos/x/intrarelayer/keeper/msg_server.go:252\ngithub.com/tharsis/evmos/x/intrarelayer/keeper.Keeper.ConvertERC20\n\tgithub.com/tharsis/evmos/x/intrarelayer/keeper/msg_server.go:66\ngithub.com/tharsis/evmos/x/intrarelayer/types._Msg_ConvertERC20_Handler.func1\n\tgithub.com/tharsis/evmos/x/intrarelayer/types/tx.pb.go:379\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2.1\n\tgithub.com/cosmos/[email protected]/baseapp/msg_service_router.go:113\ngithub.com/tharsis/evmos/x/intrarelayer/types._Msg_ConvertERC20_Handler\n\tgithub.com/tharsis/evmos/x/intrarelayer/types/tx.pb.go:381\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2\n\tgithub.com/cosmos/[email protected]/baseapp/msg_service_router.go:117\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:719\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:679\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).DeliverTx\n\tgithub.com/cosmos/[email protected]/baseapp/abci.go:275\ngithub.com/tharsis/evmos/app.(*Evmos).DeliverTx\n\tgithub.com/tharsis/evmos/app/app.go:605\ngithub.com/tendermint/tendermint/abci/client.(*localClient).DeliverTxAsync\n\tgithub.com/tendermint/[email protected]/abci/client/local_client.go:93\ngithub.com/tendermint/tendermint/proxy.(*appConnConsensus).DeliverTxAsync\n\tgithub.com/tendermint/[email protected]/proxy/app_conn.go:85\ngithub.com/tendermint/tendermint/state.execBlockOnProxyApp\n\tgithub.com/tendermint/[email protected]/state/execution.go:320\ngithub.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock\n\tgithub.com/tendermint/[email protected]/state/execution.go:140\ngithub.com/tendermint/tendermint/consensus.(*State).finalizeCommit\n\tgithub.com/tendermint/[email protected]/consensus/state.go:1635\ngithub.com/tendermint/tendermint/consensus.(*State).tryFinalizeCommit\n\tgithub.com/tendermint/[email protected]/consensus/state.go:1546\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit.func1\n\tgithub.com/tendermint/[email protected]/consensus/state.go:1481\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit\n\tgithub.com/tendermint/[email protected]/consensus/state.go:1519\ngithub.com/tendermint/tendermint/consensus.(*State).addVote\n\tgithub.com/tendermint/[email protected]/consensus/state.go:2132\ngithub.com/tendermint/tendermint/consensus.(*State).tryAddVote\n\tgithub.com/tendermint/[email protected]/consensus/state.go:1930\ngithub.com/tendermint/tendermint/consensus.(*State).handleMsg\n\tgithub.com/tendermint/[email protected]/consensus/state.go:838\nout
  of gas in location: WriteFlat; gasWanted: 200000, gasUsed: 201370: out of gas"
timestamp: ""
tx: null
txhash: 55D04E2D071B6AF791C33C0906C35B7437656006671C135800542797A4C0C28C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.