Code Monkey home page Code Monkey logo

Comments (9)

rnbguy avatar rnbguy commented on July 17, 2024 2

Awesome! We will release these patches soon, making them available via pypi directly.

Meanwhile, please reach out to us for any other help 🙂

from atomkraft.

rnbguy avatar rnbguy commented on July 17, 2024 1

It looks like provenanced init doesn't generate any JSON output, which was expected on Atomkraft's side.

Anyway, I created a branch for its fix. But looks like the wallet addresses are not matching. I get this error finally.

...
Validators
-----------------------------------------
pb1y5pe60nx2yxv50663ys5yw0a943hu6fvpnzf0l
pb1zc0jpd7wu630h6tpu4qe7l2z3nfqlgd5xq73zu
pb10cwldaae2svl69uvffhmjgfph0nlzct6p9m4qz
Accounts
-----------------------------------------
pb120kuy85e0nvqr4n8d9l22u8e06dj70ef6g0njh
pb12ptlggsgsmf0za5j52uu0fm7axyvytfjc4vtpa
Non-zero return code 1
Error: failed to validate account in genesis: account pb12dwqnqvfumd3cjn6tdef5rdjufqs9wapywpk8l does not have a balance in the genesis state
...

Atomkraft uses the standard key-derivation used in cosmos-SDK. Can you share what is being used at Provenance?

I also created a personal Atomkraft repo for provenance binary - https://github.com/rnbguy/atomkraft-provenance

from atomkraft.

llama-del-rey avatar llama-del-rey commented on July 17, 2024 1

@rnbguy Thank you for quick response.

I think this line is also causing issues: https://github.com/informalsystems/atomkraft/blob/dev/atomkraft/chain/node.py#L71

I wonder if python-hdwallet needs to be updated as well since HASH does not exist in symbols.py: https://github.com/meherett/python-hdwallet/blob/master/hdwallet/symbols.py

from atomkraft.

rnbguy avatar rnbguy commented on July 17, 2024 1

Yes, you're right. I fixed it in the PR 🙂

You can install the fixes directly from Github

pip uninstall atomkraft -y
pip install git+https://github.com/informalsystems/atomkraft@rano/provenance

from atomkraft.

llama-del-rey avatar llama-del-rey commented on July 17, 2024 1

Oh nice. I think it worked 🙏

from atomkraft.

llama-del-rey avatar llama-del-rey commented on July 17, 2024

Thank you for looking into this.

Atomkraft uses the standard key-derivation used in cosmos-SDK. Can you share what is being used at Provenance?
Provenance uses the same thing.

I did make some progress using the following chain.toml and hardcoding a flag for testnet in provenance.

....
hrp_prefix = "tp"
denom = "nhash"
coin_type = 1

[config_node.app]
minimum-gas-prices = "1905nhash"
...

And I get the following error:

node id: ac96cd5cce97158d7b9b1a9c6dbf9321bb8b31be
Using testnet defaults
Genesis file created: .atomkraft/validator_nodes/val_dl5tl0lh/node_0/config/genesis.json
Writing app config to: .atomkraft/validator_nodes/val_dl5tl0lh/node_0/config/app.toml ... Done.
Writing tendermint config to: .atomkraft/validator_nodes/val_dl5tl0lh/node_0/config/config.toml ... Done.
Writing client config to: .atomkraft/validator_nodes/val_dl5tl0lh/node_0/config/client.toml ... Done.
Error: failed to get address from Keybase: tp1y5pe60nx2yxv50663ys5yw0a943hu6fvjc89d4.info: key not found [cosmos/[email protected]/crypto/keyring/keyring.go:489], could not use address as bech32 string: invalid Bech32 prefix; expected pb, got tp
Usage:
  provenanced add-genesis-account [address_or_key_name] [coin][,[coin]] [flags]

Examples:
$ provenanced add-genesis-account mykey 10000000hash

Is there anyway to pass in flags to provenance binary during startup e.g. provenanced -t for testnet.

from atomkraft.

llama-del-rey avatar llama-del-rey commented on July 17, 2024

I pulled your changes and installed the package locally. Reproduced the above error that you got as well. But not sure yet how to go about it

from atomkraft.

rnbguy avatar rnbguy commented on July 17, 2024

Hey, @llama-del-rey 🙂 thanks for reporting the issue 🙌

It was indeed a bug. Looks like Atomkraft was not setting up the custom coin type from chain.toml.

PR is coming 🚀

from atomkraft.

llama-del-rey avatar llama-del-rey commented on July 17, 2024

Thank you for quick fixes.

from atomkraft.

Related Issues (20)

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.