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

Add Stylus script example to the template #25

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Commits on Mar 18, 2024

  1. feat(scripts)!: add to example

    Includes `common` lib, used throughout all scripts
    Scripts can be run using `cargo stylus script run ${SCRIPT_NAME}`
    Convert `counter.rs` example into a script
    Add a deployment script, building on top of the `cargo-stylus` `deploy` functionality
    All scripts (+ `common`) sit in a `cargo` `workspace` (for now) under `./scripts`
    reo101 committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    4ca0150 View commit details
    Browse the repository at this point in the history
  2. fix(scripts)!: escape scripts' Cargo projects

    Redefine project root to be the first directory containing `.git`
    Also remove stray `dbg!` call
    reo101 committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    805a573 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51ebac7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8afb9a0 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. chore(scripts)!: better names for common exports

    `NetworkConfig` -> `Config`
    `rest` -> `env`
    reo101 committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    09811b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b41556d View commit details
    Browse the repository at this point in the history
  3. feat(scripts)!: add deploy_and_increment script

    Change `common::deploy()` to return the programm address
    reo101 committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    0ebc67d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4a27a3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d980b58 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. chore: further improve docs and example

    Mainly for `additional_variables`
    Also add newline at `Stylus.toml`'s EOF
    Also import `eyre::Result` in example script
    reo101 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    0e9ab8b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3 from LimeChain/LimeChain/scripts-vik

    chore!: docs and example nits and fixes
    reo101 authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    6ce69a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    28d390c View commit details
    Browse the repository at this point in the history
  4. chore(README): remove old --example example

    Also add filetypes (`bash`) to all appropriate code snippets
    reo101 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    d0d97cf View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Configuration menu
    Copy the full SHA
    4735e54 View commit details
    Browse the repository at this point in the history
  2. chore: address comments

    From #2
    reo101 committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6c42434 View commit details
    Browse the repository at this point in the history
  3. chore: concrete -> specific

    reo101 committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0827db4 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. feat(scripts)!: use exported common module

    Exported from `cargo_stylus`
    reo101 committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    89a8561 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. feat(scripts): bring back test

    reo101 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    5d14603 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. feat(scripts): use updated cargo_stylus

    `cargo_stylus::common` -> `cargo_stylus::util::scripts`
    reo101 committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    e431b28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a57066e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f08bc3 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #4 from LimeChain/LimeChain/stylus-script-common-e…

    …xtraction
    
    Extract away `common` into `cargo-stylus`
    reo101 authored Mar 26, 2024
    Configuration menu
    Copy the full SHA
    ce6bcd6 View commit details
    Browse the repository at this point in the history