Giter Site home page Giter Site logo

Comments (13)

Shirikatsu avatar Shirikatsu commented on June 21, 2024 2

Blockchains and smart contracts are not simple tools that users can utilise as plug-and-play.

If you do not understand how Ethereum works with gas, and gas limit, I suggest that you study the Ethereum blockchain. In your case, contracts cost gas to deploy, all contracts are different and will cost different amounts of gas. If you limit the gas supplied to the deployment such that you cannot deploy the contract, then the contract will not be deployed.

Before you attempt to deploy contracts or use them, you need to understand what you are attempting to do with them.

The requested _id is a parameter that you can give to identify your current chain. This can be any number but we recommend that you use the network id chosen in your genesis.

The _ionAddr parameter when you deploy ethstore requires you to provide the deployed contract address of the ION contract. ethstore will now only receive block updates from the ION contract to prevent arbitrary updates to the block state.

Thanks for your issues. We will look to clarify these concepts in the README with better descriptions of how this all works.

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

Can anybody help me ?

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

Hi there, thanks for your issue. Sorry for lateness of reply.

Are you running the master branch of the ion-cli repository?

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

Yes,
I am running the master branch of Ion-cli.

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

What sequence of commands and parameters did you use?

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

I running following command to run Ethereum Private Chain:

geth --datadir node1/ --syncmode 'full' --port 30311 --rpc --rpcaddr 'localhost' --rpcport 8501 --rpcapi 'personal,db,eth,net,web3,txpool,miner' --networkid 1515 --gasprice '1'  --allow-insecure-unlock --unlock '0xD0C62cC112949DCf4c957B9e59cb5223CefF51F0' --password node1/password.txt --mine

In other Terminal

./ion-cli
connectToClient http://localhost:8501

addAccount RSM /home/rsm1/devnet/node1/keystore/UTC--2020-06-25T05-38-55.860653271Z--d0c62cc112949dcf4c957b9e59cb5223ceff51f0

addContractInstance ion /home/rsm1/ion/contracts/Ion.sol

deployContract ion RSM 100000

I follow the instruction set from this Link to build ion-cli

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

Are you sure that the account you are using has ETH to send transactions?

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

Yes.
I have pre loaded my account with ethers as it is private account running on private ethereum chain.

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

Try to increase your gas limit. 10000 Gas for contract deployment is not very much.

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

Hi
Thanks.
Ion.sol can be deployed after increasing Gas Limit.

But for the same limit, I am getting error while trying to deploy EthereumStore.sol

>>>deployContract ethstore RSM 1000000
Enter input data for parameter _ionAddr:
0x8C202Cc138f0f5D471019f1C5dBfF23D6FBeBB3D
Argument is array

Waiting for contract to be deployed
********************RSM**************
no contract code after deployment

Apart from above, I want to clarify one thing. When we deploy ion smart contract, it asked for some parameter_id as follows:

Enter input data for parameter _id:

What is significance of above ID? As of now, I am giving input as any 4 digit random no.

On the other hand, when we try to deploy smart contract other than Ion.sol, it will ask deployed contract address as follows:

Enter input data for parameter _ionAddr:

May you please tell the difference?

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

Hi,

Thanks for detailed answer. It really helped me a lot to understand.

I successfully deployed ION framework on one Ethereum Private chains.
My next question is how can we generate the transaction from one chain to another chain? I have read issue #170 .

May you please give us more clarity on that?

Furthermore, according to my understanding of ION. We can extend our ION solution by validating receiving state from another Blockchain (e.g. IOTA) but how will we validate state from Ethereum to IOTA as IOTA does not support smart contract based technology.

from ion.

himankgupta31 avatar himankgupta31 commented on June 21, 2024

@Shirikatsu

May you please help in this regard? I will be very grateful to you.

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

Hi,

Unfortunately IOTA bridge has not been developed yet, you may develop this bridge to Ethereum. I do not have much knowledge about IOTA so I'm unable to help here. You will have to understand what is capable in IOTA and alter your mode of verification to enable cross-chain transactions between varying levels of turing-completeness.

If you understand how IOTA works at a low-level and can explain it here concisely then maybe I can provide some pointers.

Please open a new issue for this though.

from ion.

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.