Giter Club home page Giter Club logo

movement-hack's Introduction

movement-hack

Guide material for Movement Hackathons and generally for beginners looking to start projects.

Using this repository

This repository can be used as a guide for learning movement or as a template for creating a movement project.

As a guide

To use this repository as a guide, visit hack.movementlabs.xyz or serve the mdBook located in the /book directory.

As a template

To use this repository as a template for setting up a movement project, run cargo generate -a movementdev/movement-hack.

When using the containerization features, you may either simply attach to the movement-dev devcontainer from VS Code or run the below to reproduce similar behavior:

docker image pull mvlbs/m1
docker run -it -v "$(pwd):/workspace" mvlbs/m1 /bin/bash

Working on this repository

  • The easiest way to work on this repository, whether for contributions or your own fork, is to leverage the devcontainer extension in VsCode and use the maintainer container.
  • Within the maintainer container, to serve the mdBook use call mdBook serve from the book directory.

movement-hack's People

Contributors

l-monninger avatar blockchainlover2019 avatar maggiechudik avatar osrm avatar dima-safin-2025 avatar andygolay avatar

Stargazers

Andreas Penzkofer avatar  avatar  avatar  avatar  avatar  avatar ANDY HARA avatar BOHDAN avatar  avatar Ronald Koh avatar TOKIO777 avatar  avatar ClayYu avatar Wayne Kuo avatar Max Mohammadi avatar angleX avatar  avatar

Watchers

 avatar Philippe Delrieu avatar Nicholas Anello McMillen avatar Primata avatar  avatar Ekanem David avatar  avatar

movement-hack's Issues

WSL2 Movement CLI endless process

log.txt
Error Reproduction:

OS: WSL2
Build: amd64
Environment: Local
Movement CLI: movement 1.0.13

In path examples/movement/* run:

movement move test

Process gets stuck and never ends itself. move test does not lead to the same issue.

strace movement move test available as attachment

chore: migrate cargo generate template to M1 repository

Summary

The cargo generate template which we currently encourage developers to use to set up a well configured project is sourced from this repo. Change it to https://github.com/movemntdev/M1.

Recommended Approach

  1. Consult the https://github.com/movemntdev/movement-hack/blob/main/cargo-generate.toml. Understand which files from this repo are included and which are excluded.
  2. Draft a PR for M1. Include necessary files. Test PR locally by using the cargo generate --path flag.

Broken Link to Missing File in Documentation

Description

A link in the documentation points to a file that does not exist. Accessing the link results in a 404 error, suggesting the file is missing or the link is incorrect.

Steps to Reproduce

  1. Go to link.
  2. Click on the link described as Generics to Constrain Abilities and Generics with Multiple Type Parameters.
  3. Observe the resulting error page.

Possible Solutions

  • Verify if the targeted file has been moved or renamed and update the link accordingly.
  • If the file is indeed missing, it may need to be re-added to the appropriate location.

Fill in Week 1 bullet points

Fill in the bullet points from #2 . The lowest level bullet points should be roughly a paragraph (2-5 sentences). If you find or generate interesting visuals, feel free to include them.

CI workflow failure

Error is

Run ./bin/maintainer/citest.sh
  ./bin/maintainer/citest.sh
  shell: sh -e {0}
/__w/_temp/c9b0da90-5374-43ec-af1d-8607[2](https://github.com/movementlabsxyz/movement-hack-old/actions/runs/9546387234/job/26309145402#step:3:2)3d77944.sh: 1: ./bin/maintainer/citest.sh: not found
Error: Process completed with exit code 127.

Any idea why that's happening or how to fix it?

I do see the file /bin/maintainer/citest.sh in the repo.

Here's the workflow in citest.yaml:

name: Run Citests

on:
  push:
    branches:
      - main
jobs:       
  test:
      runs-on: ubuntu-latest
      container:
        image: mvlbs/m1:latest
      steps:
        - run: ./bin/maintainer/citest.sh

and here's the Dockerfile:

FROM public.ecr.aws/c4i6k4r8/movement-dev:latest

COPY . .

ENTRYPOINT ["/bin/bash", "./abin/citest.sh"]

Could it be that https://public.ecr.aws/c4i6k4r8/movement-dev:latest or the image mvlbs/m1:latest needs to be updated?

Specify store ability description

to be consistent with the rest of the descriptions, change:

from: “store: The store ability allows the type to be stored inside a struct in global storage.”
to : “store: The store ability allows the type's value to be stored inside a struct in global storage.”

feat: Add comprehensive guide to resource accounts with progressive examples

Summary

Provide a comprehensive guide for resource accounts in the Week 2 curriculum. This should be coupled with a Move project in examples/movement/resource_account.

Recommended Approach

  1. Begin by drafting the examples.
    1. Begin with simplest possible usage of resource account you can imagine.
    2. Build up to resource account usage in examples/movement/mini_dex with a series of examples.
  2. Write up content to cover examples.
  3. Adjust content to include more generalized explanation of resource_accounts.

Getting started with book edits

To get started serving and editing the book.

  1. Clone this repo.
  2. Review the mdbook documentation.
  3. Reopen the repo int the maintainer devcontainer.
  4. cd book
  5. mdbook serve

geting_started

You may sometimes need to handling delete the docker containers yourself.

Fill in Week 2 bullet points

Fill in the bullet points from #3 . The lowest level bullet points should be roughly a paragraph (2-5 sentences). If you find or generate interesting visuals, feel free to include them.

Change the name of this repo to "movement-hack-old"

I don't seem to have permission to change it.

I created a "movement-hack-new" repo and Primata asked me to make that one "movement-hack".

If someone could change this one to "movement-hack-old" then I can go ahead with the name change on the new repo.

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.