GithubHelp home page GithubHelp logo

workshop-2024's Introduction

AElf DevContainer (BETA)

To use this devcontainer, click "Use this template" > "Create a new repository".

Pre-requisites

Create a new project

Ensure that you have Docker installed and running.

Clone your new repository to your local, then open the folder in VS Code.

Press F1 in VS Code and type/choose Dev Containers: Reopen in Container.

Scaffolding a new project

To scaffold a new project, use:

dotnet new aelf -n HelloWorld

Note that if you change HelloWorld to some other name, you will need to amend your .github/workflows/main.yml:

- name: Deploy to testnet
  uses: yongenaelf/[email protected]
  id: deploy
  with:
    private-key: ${{ secrets.PRIVATEKEY }}
    wallet-address: ${{ secrets.WALLET_ADDRESS }}
    dll-filename: src/bin/Debug/net6.0/HelloWorld.dll.patched # add this and rename accordingly

Automatic deployment with GitHub Actions

Firstly, create a wallet using aelf-command, then take note of the privatekey and the address and save them in GitHub secrets:

Link: https://github.com/YOUR_USERNAME/YOUR_REPO/settings/secrets/actions

Create repository secrets and amend .github/workflows/main.yml:

- name: Deploy to testnet
  uses: yongenaelf/[email protected]
  id: deploy
  with:
    private-key: ${{ secrets.PRIVATEKEY }}
    wallet-address: ${{ secrets.WALLET_ADDRESS }}

Next, sign up for Portkey wallet and switch to testnet.

Claim some testnet tokens from the faucet at https://testnet-faucet.aelf.io/ by copy+pasting your Portkey wallet address.

Finally, using Portkey, send testnet tokens to the sidechain of your wallet (ELF_YOURWALLETADDRESS_tDVW).

Now, every time you push changes to the src folder, you can view your repository's Actions tab to see the deployment, view the transaction id, and proposal id.

workshop-2024's People

Contributors

kokkoon avatar

Watchers

 avatar

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.