Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitcoin Bounty for Hardhat "How-To" Documentation #6

Closed
MrBlockchain22 opened this issue Sep 8, 2022 · 10 comments
Closed

Gitcoin Bounty for Hardhat "How-To" Documentation #6

MrBlockchain22 opened this issue Sep 8, 2022 · 10 comments
Assignees
Labels

Comments

@MrBlockchain22
Copy link
Contributor

MrBlockchain22 commented Sep 8, 2022

Judging Criteria

[All submissions must contain clear and concise information with explicit instructions and images describing each step required to execute the process. An accompanying video in addition to the written content is highly desired.

All submissions will be put through an industry standard plagiarism detection tool to ensure that all submissions are the work and ideas of the person submitting for the bounty. If the plagiarism tools flag your submission, you will be disqualified from participation in the bounty.

You will be provided with resources (if available) as an aid to help you get started. The sole act of submitting content for the bounty does not automatically qualify you for the bounty. Our team will review all submissions and choose the submission whose content best fits the needs and requirements of the bounty.

Participants selected as winners of the bounty will be notified within seven working days after the bounty has ended.](https://github.com/XDC-Community)

Description

Amount of Bounty

Grant Sponsor: XDC Foundation. All monies paid will be in XDC.

What will you be creating?

You will be creating how-to documentation for the XDC Network. Some documentation has already been created, and you will read through it to ensure it works as intended, reads clearly or if it needs better clarification, then make those changes. Those items without documentation will be created from scratch. Documentation will have images that describe or represents what's being done or described in your tutorial.

Details

Using Hardhat

  • Overview
    Hardhat is an Ethereum development environment that provides an easy way to deploy contracts, run tests and debug Solidity code locally.

What you will learn

In this tutorial, you will learn how to create a smart contract using Hardhat and deploy it to the Apothem test network.

What you will do

  • Set up Hardhat
  • Create a simple smart contract
  • Compile contract
  • Test contract
  • Deploy contract

Setting up the development environment

  • Creating a project (with images)
  • Checking the contract (sample code with images preferred)
  • Setting up the contract
  • Compiling the contract
  • Testing the contract (where is the contract going to be tested...a link will be great)

Deploying a contract on the XDC Network

Total Prize of Bounty

Total sum of up to $1,000.00 USD worth of XDC for this event, reward amount assigned at judge's discretion.

Further Details

This event will be an ongoing collaboration to create "how to" documentation for the XDC Network. All documentation will be open source and added to the docs repository in the how-to folder via pull request:
https://github.com/XDC-Community/docs/tree/main/how-to

Resources

These are some of the resources you have available to you where you will find the necessary information to complete your submission.
Apothem Test Network
https://www.apothem.network/

Apothem Faucet
https://faucet.apothem.network/

Node.js v8+ LTS and npm
https://nodejs.org/en/

Guide to Apothem Test Network
https://ruslanwing100.medium.com/the-beginners-guide-of-using-xinfins-apothem-network-sandbox-network-to-test-blockchain-e94d55455a00

XDC Remix

https://remix.xinfin.network/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js

Sample of Documentation

https://docs.polygon.technology/docs/develop/hardhat

Note: Do not copy and paste from this source as it will be plagiarism and disqualify your submission.

@MrBlockchain22 MrBlockchain22 self-assigned this Sep 8, 2022
@gitcoinbot
Copy link

gitcoinbot commented Sep 9, 2022

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


Work has been started.

These users each claimed they can complete the work by 6 days, 4 hours ago.
Please review their action plans below:

1) menezesphill has started work.

Hi there XDC Community.

My plans for this bounty are:

  • Create a Gitbook Documentation;
  • Configure Hardhat for XDC testnet;
  • Develop, Compile, Test and Deploy a beginner-friendly Smart Contract;
  • Document the whole process, with code snippets and source material.
    2) manyrios has started work.

A "HOW TO" WITH HARDHAT AND THE APOTHEM NETWORK WITH ALL THE REQUIREMENTS
3) ananyaagupta has started work.

-Try and deploy a smart contract on the XDC Apothem testnet.
-Document the process clearly with images and screenshots of the existing code.
4) sahildotexe has started work.

My plan for the task is to first write my smart contract and deploy it using Hardhat and note down all the issues faced while doing so. After that I will compile all the steps required and explain the procedure to deploy smart contract.
5) dhruv245 has started work.

Hi, I would like to participate in the documentation development.
6) kashish0603 has started work.

My Documentation plan is:

  • First I'll install Hardhat and deploy smart contract.
  • Will rectify the problems if faced.
  • Document each and every step on installation and deployment with screenshots for reference.

Learn more on the Gitcoin Issue Details page.

@ArpitaGanatra
Copy link
Contributor

ArpitaGanatra commented Sep 12, 2022

I could successfully upload the contract using hardhat. Bt I am facing one small error that I am facing.
the from address gives me from: 'xdcd346b126131576c1269e4f6c5f222a2bb858d30a' instead of from: '0xd346b126131576c1269e4f6c5f222a2bb858d30a'

Can you help me on how could I change that?? @MrBlockchain22 @WalterBlueu

@MrBlockchain22
Copy link
Contributor Author

I could successfully upload the contract using hardhat. Bt I am facing one small error that I am facing. the from address gives me from: 'xdcd346b126131576c1269e4f6c5f222a2bb858d30a' instead of from: '0xd346b126131576c1269e4f6c5f222a2bb858d30a'

Can you help me on how could I change that?? @MrBlockchain22 @WalterBlueu

The addresses for the XDC Network start with xdc instead of 0x.

@ArpitaGanatra
Copy link
Contributor

I could successfully upload the contract using hardhat. Bt I am facing one small error that I am facing. the from address gives me from: 'xdcd346b126131576c1269e4f6c5f222a2bb858d30a' instead of from: '0xd346b126131576c1269e4f6c5f222a2bb858d30a'
Can you help me on how could I change that?? @MrBlockchain22 @WalterBlueu

The addresses for the XDC Network start with xdc instead of 0x.

I know that, but that gives an error in the terminal while deploying the contract.
The contract gets deployed even with this error being displayed, so not an issue. Bt i wanted to know if there was a way to change the prefix to '0x' through xdc3 or something.

@WalterBlueu
Copy link
Contributor

Hello @ArpitaGanatra, please try using https://erpc.xinfin.network as the RPC server as it works with the 0x prefix address.

@ArpitaGanatra
Copy link
Contributor

Thank you @WalterBlueu
is there any for test network?

@MrBlockchain22
Copy link
Contributor Author

Thank you @WalterBlueu

is there any for test network?

You can use this one.
https://apothemxdcpayrpc.blocksscan.io/

Or

Any of the ones on this link under XDC Apothem / Testnet

https://xinfin.org/xdc-chain-network-tools-and-documents

@gitcoinbot
Copy link

gitcoinbot commented Sep 13, 2022

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


Work for 40687.2005 XDC (1000.00 USD @ $0.03/XDC) has been submitted by:

  1. @arpitaganatra
  2. @dhruv245
  3. @kashish0603

@MrBlockchain22 please take a look at the submitted work:


@Dhruv245
Copy link

Hi, Can you please tell is the documentation provided require any changes or it is good?

@gitcoinbot
Copy link

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


The funding of 40687.2005 XDC (1000.00 USD @ $0.03/XDC) attached to this issue has been approved & issued to @ArpitaGanatra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants