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

Upgrade examples to use Sepolia network #579

Merged
merged 11 commits into from
Jun 27, 2024
Merged

Conversation

thiagodeev
Copy link
Collaborator

@thiagodeev thiagodeev commented Jun 20, 2024

This PR updates all the examples inside the "examples" folder to use starknet Sepolia testnet.
Besides adjustments in all codebase, the major modifications are the following:

  1. Removed all go.mod and go.work from all examples because it's not necessary to have a Go module configure to have a main package and function.
  2. Removed all .env.template files from all examples. An internal package called setup was created to centralize all environment variables loaded in all examples in only one place. There's now only one .env.template, located at the root of the "examples" folder.
  3. deployAccountUDC was renamed to deployContractUDC. It now deploys an ERC20 token as an example.
  4. The estimateFee example was removed. The deployAccount example now includes an estimate fee code snippet.
  5. The getTokenBalance example was removed. The simpleCall example now shows how to get the balance and decimals from an ERC20 contract.
  6. Added a README at the root of the "examples" folder to point out some questions answered by the examples.

@thiagodeev thiagodeev requested a review from rianhughes June 20, 2024 03:05
@thiagodeev thiagodeev marked this pull request as ready for review June 21, 2024 20:39
@thiagodeev thiagodeev changed the title Thiagodeev/upgrade examples Upgrade examples to Sepolia network Jun 21, 2024
@thiagodeev thiagodeev changed the title Upgrade examples to Sepolia network Upgrade examples to use Sepolia network Jun 21, 2024
@thiagodeev thiagodeev force-pushed the thiagodeev/upgrade-examples branch from 450c246 to 4f14344 Compare June 25, 2024 20:00
@thiagodeev thiagodeev force-pushed the thiagodeev/upgrade-examples branch from 4f14344 to 24c02ed Compare June 25, 2024 20:08
@rianhughes rianhughes merged commit bf040ef into main Jun 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants