diff --git a/examples/tokens/.gitignore b/examples/tokens/.gitignore new file mode 100644 index 0000000..ead7b3c --- /dev/null +++ b/examples/tokens/.gitignore @@ -0,0 +1,51 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.cache +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build +/dist +/bin + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env +!.env.example + +# vercel +.vercel + +# contentlayer +.contentlayer + +# typescript +*.tsbuildinfo +next-env.d.ts + +# sitemaps / robots +public/sitemap* +public/robot* + +test-ledger +temp + +.cache \ No newline at end of file diff --git a/examples/tokens/.prettierrc b/examples/tokens/.prettierrc new file mode 100644 index 0000000..4c9e5cb --- /dev/null +++ b/examples/tokens/.prettierrc @@ -0,0 +1,11 @@ +{ + "tabWidth": 2, + "useTabs": false, + "singleQuote": false, + "bracketSpacing": true, + "semi": true, + "trailingComma": "all", + "proseWrap": "always", + "arrowParens": "always", + "printWidth": 80 +} diff --git a/examples/tokens/README.md b/examples/tokens/README.md new file mode 100644 index 0000000..554ab58 --- /dev/null +++ b/examples/tokens/README.md @@ -0,0 +1,52 @@ +# gill examples - tokens + +Gill is aimed at abstracting away many of the complexities and boilerplate +required to perform common interactions with the Solana blockchain, while still +offering the low level "escape hatches" when developers need (or want) +fine-grain control. + +Take a look through these examples to see how gill works and even +[how it compares](../get-started/README.md#comparison-of-gill-vs-web3js-v2) to +using the vanilla web3js v2 library. + +## Tech stack used + +- TypeScript and NodeJS +- Package manger: `pnpm` +- Running the scripts: `esrun` + +## Setup locally + +1. Clone this repo to your local system +2. Install the packages via `pnpm install` +3. Change into this directory: `cd examples/tokens` + +### Running the included scripts with esrun + +Once setup locally, you will be able to run the scripts included within this +repo using `esrun`: + +```shell +npx esrun ./src/