cennznet / grants

2 stars 0 forks source link

Guide on how to call a smart contract from a DApp #2

Closed xlc closed 4 years ago

xlc commented 5 years ago

Write a blog post showing how to call a smart-contract from a DApp on a CENNZnet blockchain. It should use the CENNZnet js SDK.

Share the blog post and associated code for review.

Feel free to review our documentation and Github repos to get started: https://github.com/cennznet/spin2win/ https://github.com/cennznet/api.js
https://cennznetdocs.com/CENNZNet/index.md

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 200.0 DAI (200.0 USD @ $1.0/DAI) attached to it as part of the Centrality CENNZnet fund.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 266 years, 9 months from now. Please review their action plans below:

1) venkatesankuppan1981 has started work.

I understand to create a tutorial for Dapp 2) sounak98 has started work.

Will create a basic DApp on CENNZnet blockchain and write a summary of how I have used the sdk to interact with the smart contract. 3) l-kh has started work.

I almost finish steps from creating smart contract to call it.

Learn more on the Gitcoin Issue Details page.

Elemino commented 5 years ago

Hello, hoping to have something out the door this weekend. Please let me know if this bounty is expired or stale. Thanks.

janus commented 5 years ago

@xlc I would like to get in, is it late?

xlc commented 5 years ago

I am no longer responsible for this. Please ping @wilfred-centrality

janus commented 5 years ago

@wilfred-centrality Is the bounty still open?

wilfred-centrality commented 5 years ago

@Elemino @janus Thanks for the interest. This is still open

janus commented 4 years ago

@wilfred-centrality I have started working on this issue. Is there a place where we can chat?

janus commented 4 years ago

I got this error message while deploying: contract.ExtrinsicFailed Extrinsice Event

cennznet-bounties commented 4 years ago

Hey, @janus! It's best to reach our team and ask questions on our Slack channel here.

L-KH commented 4 years ago

@centrality-bounties , Hello I tried to submit work in gitcoin but I don't know when I click submit the bounty deleted and can't find it. I think its bug in gitcoin. until gitcoin fix the bug please check my guide in medium : https://medium.com/@charingane/how-to-call-a-smart-contract-from-a-dapp-on-a-cennznet-blockchain-874a29353ecf Please let me know if there is any modification or updates that can I add. Thanks

cennznet-bounties commented 4 years ago

Hello, @L-KH! Thank you for your contribution! Our team will review the guide shortly. It does seem like there's some issue on Gitcoin at the moment. We have contacted their team and hope it will be resolved soon.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 266 years, 9 months from now. Please review their action plans below:

1) venkatesankuppan1981 has started work.

I understand to create a tutorial for Dapp 2) sounak98 has started work.

Will create a basic DApp on CENNZnet blockchain and write a summary of how I have used the sdk to interact with the smart contract. 3) l-kh has started work.

I almost finish steps from creating smart contract to call it. 4) libtard has started work.

I will write the smart contract guide.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 200.0 SAI (200.0 USD @ $1.0/SAI) has been submitted by:

  1. @l-kh

@centrality-bounties please take a look at the submitted work:


jordy25519 commented 4 years ago

Hey @L-KH ,

Thanks for the submission. A few review suggestions to improve the quality of the post and then its good to accept.

Now we will need a UI to interact browser, in this tutorial we will use CENNZnet UI you can run it using those command:

Now we will use the CENNZnet UI to interact via a web browser, you can run it locally using these commands:

Now you can launch the UI (assuming you have a local CENNZnet Node running),

Now you can launch the UI (assuming you have a local CENNZnet Node running)

go to settings and use the API that we have been created above.

go to settings and use the API key that we have created above to connect to the Rimu testnet.

You can follow this doc to Build and deploy the contract: spin2win.

You can follow this doc to build and deploy the example smart contract: "spin2win".

Congratulations on reaching so far

Congratulations on reaching this far

L-KH commented 4 years ago

Hey @holygits, Thank you for your review and remarks, I correct it now. Thx

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 200.0 SAI (200.0 USD @ $1.0/SAI) attached to this issue has been approved & issued to @L-KH.

gitcoinbot commented 4 years ago

⚡️ A tip worth 200.00000 CENNZ (24.58 USD @ $0.12/CENNZ) has been granted to @l-kh for this issue from @centrality-bounties. ⚡️

Nice work @l-kh! Your tip has automatically been deposited in the ETH address we have on file.

jordy25519 commented 4 years ago

Closed via https://medium.com/@charingane/how-to-call-a-smart-contract-from-a-dapp-on-a-cennznet-blockchain-874a29353ecf