Giter Club home page Giter Club logo

Comments (4)

SvenMeyer avatar SvenMeyer commented on July 21, 2024

getStateis working on kaya but getSubState not and always just returns undefined.
Even easier to replicate example:

console.log(await deployed_contract.getState());
state = await deployed_contract.getSubState('_balance');
console.log({state});

dev testnet :

{
    "_balance": "0",
}
{ state: { _balance: '0' } }`

kaya on localhost:

{
    "_balance": "0",
}
{ state: undefined }

from kaya.

edison0xyz avatar edison0xyz commented on July 21, 2024

GetSubState is not working. Help and PR appreciated!

from kaya.

SvenMeyer avatar SvenMeyer commented on July 21, 2024

As I noticed that even getState returns the data in a different format than Testnet.
I am wondering: (why) is kaya not using the same code base as Testnet and Mainnet?
Eventually the goal is to have a local Development net which behaves identical to the real networks. Of course it will be very difficult and time consuming to try to replicate the behaviour of the real networks ...

from kaya.

edison0xyz avatar edison0xyz commented on July 21, 2024

You're right, we are definitely thinking of reusing the codebase. Zilliqa's team has been working on this feature called "isolated server", which aims to promote reusability of the code for dApp developers.

The feature is pending approval to be merged to Zilliqa's codebase: Zilliqa/Zilliqa#1879

The setup instruction is attached here: https://github.com/Zilliqa/Zilliqa/blob/feature/kaya_binary/ISOLATED_SERVER_setup.md

You can give it a try - however, there are a few differences from kaya

  1. zilliqa's codebase can be rather verbose and may contain a lot more log information than you need.
  2. the memory consumption of this "isolated server" will be much larger than kaya-rpc
  3. certain users might find it hard to set up the isolated server

In the long run, we hope to actively maintain kaya-RPC as we believe it's useful for dApp developers. However, recently I've been caught up with many other priorities and I'm struggling to find time to maintain this kaya-RPC.

We will definitely appreciate if community members can make a pull request to make this kaya-rpc better

from kaya.

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.