Comments (13)
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.
Can anybody help me ?
from ion.
Hi there, thanks for your issue. Sorry for lateness of reply.
Are you running the master branch of the ion-cli repository?
from ion.
Yes,
I am running the master branch of Ion-cli.
from ion.
What sequence of commands and parameters did you use?
from ion.
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.
Are you sure that the account you are using has ETH to send transactions?
from ion.
Yes.
I have pre loaded my account with ethers as it is private account running on private ethereum chain.
from ion.
Try to increase your gas limit. 10000 Gas for contract deployment is not very much.
from ion.
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.
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.
May you please help in this regard? I will be very grateful to you.
from ion.
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)
- ganache-cli not found
- Block-scoped declarations error HOT 1
- Specify minimum dependency versions
- Missing provider error
- Install problem on MacOS HOT 1
- Update all contracts for Solidity v0.5.x compatibility HOT 1
- Clique-Ethereum Stack edge-case where multiple instances of storage contract can only hold unique chain data HOT 1
- addContractInstance fails to compile unless the file name is the same name as the contract HOT 1
- Unable to use `getBlockByHash_Clique` when using a ganache test RPC HOT 1
- Ion CLI configuration to allow account/contract setup to be automated upon launch HOT 1
- Ion CLI requires a command to generate IBFT-specific block encoding HOT 1
- Being cross chain, can you explain off chain chain module? How to setup and submit blocks from Chain A to Chain B HOT 6
- Publish contracts artifact HOT 3
- Building the image "ion/dev" ends with errors HOT 4
- can't build ion-cli on macOS 10.14 HOT 2
- Is It possible to deploy Ion on PoW Ethereum chain? I find the Ion is for Rinkeby(PoA) currently. HOT 1
- Tests shouldn't rely on public networks and Infura HOT 1
- State Relaying Mechanism HOT 8
- No Contract Code after deployment HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ion.