Skip to content

Maar-io/polkadot-gitcoin-hack

Repository files navigation

Polkadot Hello World! Hackathon

Completed tasks:

Launch A Local Substrate Development Chain

Use the Substrate Node Template to launch a local development chain and use the Front-End Template to make a balance transfer and make an on-chain remark with your GitHub username.

Solution

Run A Private Substrate Network

Use Substrate to run a private local network.

Solution

Play With Westend

Get tokens from the Westend faucet and use the Polkadot-JS Apps UI to make a remark on the Westend chain.

Solution

Back-End Javascript

Use Polkadot-JS to write a command line utility that displays information about the latest block on Kusama, Polkadot or any other Substrate-based chain. Bonus: include an option to search for a block by number (height) and/or hash.

Solution

Front-End Javascript

Use Polkadot-JS or the Front-End Template to write a web page (hosted on GitHub pages or similar) that displays information about the latest block on Kusama, Polkadot or any other Substrate-based chain. Bonus: include a component to search for a block by number (height) and/or hash.

Solution github.io

Run a Kusama or Polkadot node and add it to Telemetry

Download the latest binary release or build Polkadot or Kusama from source, and run your node. Add it to telemetry as per the README instructions, and let us know when your node appears in the telemetry.polkadot.io list!

Solution

Set an identity on Kusama or Polkadot's development version

Substrate-based chains which implement the Identities pallet let users of the chain set some on-chain metadata through which to identify their accounts. Kusama and Polkadot come with identities built in, but on node-template you’d have to manually extend the chain. This challenge takes the easier route: run the --dev version of Kusama or Polkadot, and register an identity on it.

Solution

FRAME Identity: Set an identity on a local --dev chain [I]

Substrate-based chains which implement the Identities pallet let users of the chain set some on-chain metadata through which to identify their accounts. Kusama and Polkadot come with identities built in, but on node-template you have to manually extend the chain. Do it. Add the identity pallet to node template, then register an identity of an account on your local development chain.

Solution

Forkless Upgrades [I]

Perform a forkless runtime upgrade on a local development chain.

Solution

Using Remix And MetaMask On Moonbeam [I]

This challenge combines a few different things, centered explicitly in MetaMask and Remix. This can be done using other tools, but we recommend these two as they provide the easiest path to victory. The idea is to deploy an ERC20 token onto Moonbase Alpha, and send at least 5 tokens from one account (referred to as account01 from now on) to another (referred to as account02).

Solution

Deploy on Moonbase Alpha using Truffle [I]

This challenge focuses on using Truffle, a widely used developer tool in Ethereum, to deploy an ERC20 token contract to Moonbase Alpha (Moonbeam TestNet).

Solution

Enable Multi-currency Support [I]

Substrate by default only supports a single token. We've developed an open runtime module library specifically orml-token pallet to support multiple tokens. For example, on Acala via this pallet, we can support aUSD (Acala Dollar stablecoin), DOT/KSM, renBTC, PolkaBTC and various other assets. Simply add this into your runtime to enable multi-currency support and starting minting your own tokens.

Solution

Enable NFT Support [I]

Substrate by default only supports a single fungible token. We've developed an open runtime module library specifically orml-nft pallet to support Non Fungible Tokens. Simply add this into your runtime to enable NFT support, and start minting NFTs

Solution

Build and Run a Local Phala Network

In this challenge, you are going to set up a Phala Network "Hello World" development environment, and deploy a full stack of the core blockchain and connect the Web UI to the blockchain. You will try the privacy-preserving “secret tokens” feature on your own local testnet.

Solution Tweet

Smart contracts - write an ERC-20 smart contract with ink! [I]

Add the Contracts pallet to the Node Template and write an ERC-20 smart contract in ink!.

Solution

FRAME Development [I]

Update the Pallet Template to include a storage item for a custom struct. Add at least one dispatchable function to interact with the new storage item. Add the necessary types to the Front-End Template to interact with the new dispatchable.

Solution

REST APIs - Read An Account's Pending Payouts [A]

Read an account's pending payouts with a combination of a local instance of Sidecar and a local Kusama node.

Solution

FRAME Multisig [A]

Add the Multisig pallet to the Node Template and create a Polkadot-JS script to make a multisig transaction. Use the Front-End Template to create a multisig UI component.

Solution

Smart Contracts - Build A Charity Raffle

Beyond the basics with ink and ERC20s? Build a charity raffle!

Solution

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages