Skip to content

Instantly share code, notes, and snippets.

@anataliocs
Last active May 14, 2025 06:28
Show Gist options
  • Save anataliocs/f86099edb625f61b9f012e5286abb2ee to your computer and use it in GitHub Desktop.
Save anataliocs/f86099edb625f61b9f012e5286abb2ee to your computer and use it in GitHub Desktop.
Stellar Toronto Builder Summit—EasyA Consensus Hackathon 2025 Helpful Scripts

Reset Repo and Re-choose front-end framework

Reset vanillajs and

git add . && git stash && rm -rf node_modules && rm -rf snapchain-vanillajs/target

Reset astro

git add . && git stash && rm -rf node_modules && rm -rf .astro && rm -rf .wrangler

Reset next.js

git add . && git stash && rm -rf node_modules && rm -rf .next

Print Logs

gh codespace logs --codespace ${CODESPACE_NAME}

View Available Ports

gh codespace ports --codespace ${CODESPACE_NAME}

Create Issue for Support

gh issue view 1 --repo anataliocs/stellar-consensus2025-submission-template --web

Invoke Contract:

Invoke smart-stellar-demo-astro-svelte contract

stellar contract invoke \
    --id CBUMOJAEAPLQUCWVIM6HJH5XKXW5OP7CRVOOYMJYSTZ6GFDNA72O2QW6 \
    --source alice2 \
    -- \
    send \
    --addr GDCJMCMYNDZ2FV6UMSEYRMUSCX53KCG2AWPBFQ24EA2FFYBCEDMFCBCV \
    --msg new-mesg-test2

Invoke Snapchain vanilla JS contract

stellar contract invoke \
    --id CBUMOJAEAPLQUCWVIM6HJH5XKXW5OP7CRVOOYMJYSTZ6GFDNA72O2QW6 \
    --source alice2 \
    -- \
    send \
    --author GDCJMCMYNDZ2FV6UMSEYRMUSCX53KCG2AWPBFQ24EA2FFYBCEDMFCBCV \
    --message new-mesg-test2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment