├── .coverage ├── .flake8 ├── .github └── workflows │ ├── ci_js.yml │ ├── ci_js_end_to_end.yml │ └── ci_python.yml ├── .gitignore ├── .isort.cfg ├── .markdownlint.yaml ├── .prettierrc ├── .pylintrc ├── .trunk ├── .gitignore └── trunk.yaml ├── .vscode └── settings.json ├── DESCRIPTION ├── README.md ├── examples ├── js │ └── react-app │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── README.md │ │ ├── craco.config.js │ │ ├── package.json │ │ ├── public │ │ ├── favicon.png │ │ ├── fonts │ │ │ ├── Cartridge-Bold.woff2 │ │ │ ├── Cartridge-Regular.woff2 │ │ │ └── SimplonMono-Regular.otf │ │ ├── index.html │ │ ├── manifest.json │ │ └── robots.txt │ │ ├── src │ │ ├── App.css │ │ ├── App.test.tsx │ │ ├── App.tsx │ │ ├── components │ │ │ ├── error-msg.tsx │ │ │ ├── input.tsx │ │ │ ├── nav.tsx │ │ │ ├── query-result-table.tsx │ │ │ ├── query-stats.tsx │ │ │ ├── retro-buttons.tsx │ │ │ └── retro-loader.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── queries │ │ │ ├── ens-queries.tsx │ │ │ ├── nft-queries.tsx │ │ │ └── xmetric-queries.tsx │ │ ├── react-app-env.d.ts │ │ ├── reportWebVitals.ts │ │ ├── routes │ │ │ ├── nft-mints.tsx │ │ │ └── xmetric.tsx │ │ └── setupTests.ts │ │ ├── tailwind.config.js │ │ ├── tsconfig.json │ │ └── yarn.lock ├── python │ ├── nft_sales.py │ ├── nft_sales_viz.py │ └── notebooks │ │ ├── features.ipynb │ │ ├── intro.ipynb │ │ ├── mdao-intro.ipynb │ │ └── sql │ │ ├── collector_sales.sql │ │ ├── minter_sales_agg.sql │ │ ├── nft_sales.sql │ │ ├── xmetric_eth_holdings.sql │ │ └── xmetric_leaderboard.sql └── r │ ├── shroomDK_BAYC_example.Rmd │ └── shroomDK_BAYC_example.html ├── js ├── .eslintrc.js ├── LICENSE ├── README.md ├── package.json ├── src │ ├── api.ts │ ├── defaults.ts │ ├── errors │ │ ├── api-error.ts │ │ ├── base-error.ts │ │ ├── error-types.ts │ │ ├── index.ts │ │ ├── query-run-errors.ts │ │ ├── sdk-errors.ts │ │ ├── server-errors.ts │ │ └── user-errors.ts │ ├── flipside.ts │ ├── index.ts │ ├── integrations │ │ ├── index.ts │ │ └── query-integration │ │ │ ├── index.ts │ │ │ └── query-result-set-builder.ts │ ├── tests │ │ ├── endToEndTest.ts │ │ ├── error-types.test.ts │ │ ├── mock-data │ │ │ ├── cancel-query-run.ts │ │ │ ├── create-query-run.ts │ │ │ ├── get-query-results.ts │ │ │ ├── get-query-run.ts │ │ │ ├── get-sql-statement.ts │ │ │ └── index.ts │ │ ├── mocks │ │ │ └── api-mocks.ts │ │ ├── query-integration.test.ts │ │ ├── query-result-set-builder.test.ts │ │ ├── query-status.test.ts │ │ ├── sleep.test.ts │ │ └── time.test.ts │ ├── types │ │ ├── compass │ │ │ ├── cancel-query-run.type.ts │ │ │ ├── compass-api-client.type.ts │ │ │ ├── core │ │ │ │ ├── column-metadata.type.ts │ │ │ │ ├── index.ts │ │ │ │ ├── page-stats.type.ts │ │ │ │ ├── page.type.ts │ │ │ │ ├── query-request.type.ts │ │ │ │ ├── query-run.type.ts │ │ │ │ ├── result-format.type.ts │ │ │ │ ├── rpc-error.type.ts │ │ │ │ ├── rpc-request.type.ts │ │ │ │ ├── rpc-response.type.ts │ │ │ │ ├── sql-statement.type.ts │ │ │ │ └── tags.type.ts │ │ │ ├── create-query-run.type.ts │ │ │ ├── get-query-run-results.type.ts │ │ │ ├── get-query-run.type.ts │ │ │ ├── get-sql-statement.type.ts │ │ │ ├── index.ts │ │ │ └── query-results.type.ts │ │ ├── index.ts │ │ ├── query-result-record.type.ts │ │ ├── query-result-set.type.ts │ │ ├── query-run-stats.type.ts │ │ ├── query-status.type.ts │ │ ├── query.type.ts │ │ ├── sdk-defaults.type.ts │ │ └── sleep-config.type.ts │ └── utils │ │ ├── sleep.ts │ │ └── time.ts ├── tsconfig.json ├── vite.config.ts └── yarn.lock ├── python ├── LICENSE.txt ├── MANIFEST.in ├── Makefile ├── README.md ├── VERSION ├── log.txt ├── requirements-dev.txt ├── requirements.txt ├── setup.cfg ├── setup.py └── src │ ├── __init__.py │ ├── errors │ ├── __init__.py │ ├── api_error.py │ ├── base_error.py │ ├── query_run_errors.py │ ├── sdk_error.py │ └── server_error.py │ ├── flipside.py │ ├── integrations │ ├── __init__.py │ └── query_integration │ │ ├── __init__.py │ │ ├── compass_query_integration.py │ │ ├── defaults.py │ │ └── query_result_set_builder.py │ ├── models │ ├── __init__.py │ ├── compass │ │ ├── __init__.py │ │ ├── cancel_query_run.py │ │ ├── core │ │ │ ├── __init__.py │ │ │ ├── column_metadata.py │ │ │ ├── page.py │ │ │ ├── page_stats.py │ │ │ ├── query_request.py │ │ │ ├── query_run.py │ │ │ ├── result_format.py │ │ │ ├── rpc_error.py │ │ │ ├── rpc_request.py │ │ │ ├── rpc_response.py │ │ │ ├── sql_statement.py │ │ │ └── tags.py │ │ ├── create_query_run.py │ │ ├── get_query_run.py │ │ ├── get_query_run_results.py │ │ ├── get_sql_statement.py │ │ └── query_results.py │ ├── query.py │ ├── query_defaults.py │ ├── query_result_set.py │ ├── query_run_stats.py │ ├── query_status.py │ └── sleep_config.py │ ├── rpc.py │ ├── shroomdk.py │ ├── tests │ ├── __init__.py │ ├── integrations │ │ ├── __init__.py │ │ └── query_integration │ │ │ ├── __init__.py │ │ │ ├── test_query_compass_integration.py │ │ │ └── test_query_result_set_builder.py │ ├── models │ │ ├── __init__.py │ │ └── test_query_status.py │ ├── test_rpc.py │ └── utils │ │ ├── __init__.py │ │ ├── mock_data │ │ ├── create_query_run.py │ │ ├── get_query_results.py │ │ ├── get_query_run.py │ │ └── get_sql_statement.py │ │ └── test_sleep.py │ └── utils │ ├── __init__.py │ └── sleep.py └── r ├── shroomDK ├── .Rbuildignore ├── .Rhistory ├── DESCRIPTION ├── LICENSE ├── LICENSE.md ├── NAMESPACE ├── R │ ├── auto_paginate_query.R │ ├── cancel_query.R │ ├── clean_query.R │ ├── create_query_token.R │ ├── get_query_from_token.R │ └── get_query_status.R ├── README.md ├── man │ ├── auto_paginate_query.Rd │ ├── cancel_query.Rd │ ├── clean_query.Rd │ ├── create_query_token.Rd │ ├── get_query_from_token.Rd │ └── get_query_status.Rd ├── renv.lock └── shroomDK.Rproj ├── shroomDK_0.1.1.tar.gz ├── shroomDK_0.2.0.tar.gz ├── shroomDK_0.2.1.tar.gz └── shroomDK_0.3.0.tar.gz /.coverage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlipsideCrypto/sdk/6d20b1c0cce0719b0e76222bd8059042014bb60b/.coverage -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | # Autoformatter friendly flake8 config (all formatting rules disabled) 2 | [flake8] 3 | max-line-length = 160 4 | max-complexity = 15 5 | exclude = tests/* 6 | extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5 -------------------------------------------------------------------------------- /.github/workflows/ci_js.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: JS/TS Continuous Testing 5 | 6 | on: 7 | push: 8 | branches: [main] 9 | pull_request: 10 | branches: [main] 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | strategy: 17 | matrix: 18 | node-version: [17.x] 19 | 20 | steps: 21 | - uses: actions/checkout@v2 22 | - name: On Node.js ${{ matrix.node-version }} 23 | uses: actions/setup-node@v2 24 | - run: cd js && yarn install && yarn test:run 25 | -------------------------------------------------------------------------------- /.github/workflows/ci_js_end_to_end.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: JS/TS Full End to End Test 5 | 6 | on: 7 | push: 8 | branches: [main] 9 | 10 | jobs: 11 | build: 12 | env: 13 | FLIPSIDE_API_KEY: ${{ secrets.SECRET_FLIPSIDE_API_KEY }} 14 | runs-on: ubuntu-latest 15 | 16 | strategy: 17 | matrix: 18 | node-version: [17.x] 19 | 20 | steps: 21 | - uses: actions/checkout@v2 22 | - name: On Node.js ${{ matrix.node-version }} 23 | uses: actions/setup-node@v2 24 | - name: End to End Test 25 | run: cd js && yarn install && yarn test:real 26 | -------------------------------------------------------------------------------- /.github/workflows/ci_python.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: Python Continuous Testing 5 | 6 | on: 7 | push: 8 | branches: [main] 9 | pull_request: 10 | branches: [main] 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | strategy: 16 | matrix: 17 | python-version: ["3.8", "3.9", "3.10"] 18 | 19 | steps: 20 | - uses: actions/checkout@v3 21 | - name: Set up Python ${{ matrix.python-version }} 22 | uses: actions/setup-python@v4 23 | with: 24 | python-version: ${{ matrix.python-version }} 25 | - name: Install dependencies 26 | run: | 27 | python -m pip install --upgrade pip 28 | pip install flake8 pytest requests requests-mock pydantic pytest-cov 29 | if [ -f python/requirements.txt ]; then pip install -r python/requirements.txt; fi 30 | - name: Lint with flake8 31 | run: | 32 | # stop the build if there are Python syntax errors or undefined names 33 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics 34 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide 35 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics 36 | - name: Test with pytest 37 | run: | 38 | cd python && pytest 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | js/dist 3 | js/dist/ 4 | node_modules/ 5 | js/node_modules 6 | *.DS_STORE 7 | .DS_STORE 8 | __pycache__ 9 | *.pyc 10 | *.pem 11 | *.crt 12 | *.idea 13 | 14 | node_modules 15 | 16 | .cache 17 | .env 18 | .vercel 19 | .output 20 | build/ 21 | *.egg-info/ 22 | .history/ 23 | 24 | /build/ 25 | /public/build 26 | /api/index.js 27 | 28 | js/coverage 29 | run-query-example.py 30 | examples/python/scratch/* 31 | .Rproj.user 32 | r/shroomDK_0.1.0.tar.gz 33 | python-sdk-example.py 34 | r/shroomDK/api_key.txt 35 | r/shroomDK/test_of_page2_issue.R 36 | python/venv/ 37 | venv/ 38 | tokens.txt 39 | -------------------------------------------------------------------------------- /.isort.cfg: -------------------------------------------------------------------------------- 1 | [settings] 2 | profile=black 3 | -------------------------------------------------------------------------------- /.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Autoformatter friendly markdownlint config (all formatting rules disabled) 2 | default: true 3 | blank_lines: false 4 | bullet: false 5 | html: false 6 | indentation: false 7 | line_length: false 8 | spaces: false 9 | url: false 10 | whitespace: false 11 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "semi": true 4 | } 5 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- 1 | [MASTER] 2 | disable= 3 | format, # Handled by Black autoformatter 4 | E0401, # Unable to import X; import errors are highly environment dependant 5 | C0114, # Missing module docstring 6 | C0115, # Missing class docstring 7 | C0116, # Missing function or method docstring 8 | C0411, # Import order handled by isort 9 | 10 | [MESSAGES CONTROL] 11 | disable = C0330, C0326 # Black compatible 12 | 13 | [flake8] 14 | max-line-length = 160 15 | max-complexity = 15 16 | exclude = tests/* -------------------------------------------------------------------------------- /.trunk/.gitignore: -------------------------------------------------------------------------------- 1 | *out 2 | *logs 3 | external 4 | -------------------------------------------------------------------------------- /.trunk/trunk.yaml: -------------------------------------------------------------------------------- 1 | version: 0.1 2 | cli: 3 | version: 0.15.0-beta 4 | lint: 5 | enabled: 6 | - actionlint@1.6.15 7 | - black@22.6.0 8 | # - git-diff-check@SYSTEM 9 | # - gitleaks@8.8.12 10 | - isort@5.10.1 11 | # - markdownlint@0.32.0 12 | - prettier@2.7.1 13 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { "python.analysis.typeCheckingMode": "basic", "python.formatting.provider": "black"} -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: shroomDK 2 | Type: Package 3 | Title: Accessing the Flipside Crypto ShroomDK REST API within R. 4 | Version: 0.1.0 5 | Author: Carlos Mercado 6 | Maintainer: Carlos Mercado 7 | Description: Contains 3 functions to access the REST API. create_query_token passes a SQL query to the API to generate a query token. get_query_from_token passes the query token to the Flipside's Snowflake to grab the query result. clean_query converts the resulting JSON into a data frame, potentially of lists() if the result does not have the same number of elements in each object (i.e., not same number of rows in each column). Coerce columns accordingly. 8 | License: MIT 9 | Encoding: UTF-8 10 | Imports: 11 | httr, jsonlite 12 | LazyData: false 13 | RoxygenNote: 7.2.0 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flipside SDK (formerly known as ShroomDK) 2 | 3 | Programmatic access to the most reliable & comprehensive blockchain data in Web3. 4 | 5 | You've found yourself at the FlipsideCrypto SDK repository, the official SDK to programmatically query all of Flipside Crypto's data. 6 | 7 | ## 🧩 The Data 8 | 9 | Flipside Crypto's Analytics Team has curated dozens of blockchain data sets with more being added each week. All tables available to query in Flipside's [Data Studio](https://flipsidecrypto.xyz) can be queried programmatically via our API and library of SDKs. 10 | 11 | ## 📖 Official Docs 12 | 13 | [https://docs.flipsidecrypto.com/flipside-api/get-started](https://docs.flipsidecrypto.com/flipside-api/get-started) 14 | 15 | ## 🗝 Want access? Genrate an API Key for Free 16 | 17 | Get your [free API key here](https://flipsidecrypto.xyz/api-keys) 18 |
19 | 20 | ## SDKs 21 | 22 | | Language | Version | Status | 23 | | ------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | 24 | | ✅ [Python](./python/) | 2.1.0 | [![tests](https://github.com/FlipsideCrypto/sdk/actions/workflows/ci_python.yml/badge.svg)](https://github.com/FlipsideCrypto/sdk/actions/workflows/ci_python.yml) | 25 | | ✅ [JS/TypeScript](./js) | 2.0.1 | [![tests](https://github.com/FlipsideCrypto/sdk/actions/workflows/ci_js.yml/badge.svg)](https://github.com/FlipsideCrypto/sdk/actions/workflows/ci_js.yml) | 26 | | ✅ [R](./r/shroomDK/) | 0.2.2 | [Available on CRAN](https://cran.r-project.org/web/packages/shroomDK/shroomDK.pdf) | 27 | -------------------------------------------------------------------------------- /examples/js/react-app/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @type {import('@types/eslint').Linter.Config} 3 | */ 4 | module.exports = { 5 | root: true, 6 | ignorePatterns: ["node_modules", "dist", "public"], 7 | }; 8 | -------------------------------------------------------------------------------- /examples/js/react-app/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /examples/js/react-app/README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 35 | 36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 39 | 40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | -------------------------------------------------------------------------------- /examples/js/react-app/craco.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | style: { 3 | postcssOptions: { 4 | plugins: [ 5 | require('tailwindcss'), 6 | require('autoprefixer'), 7 | ], 8 | }, 9 | }, 10 | } -------------------------------------------------------------------------------- /examples/js/react-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@craco/craco": "^6.4.5", 7 | "@flipsidecrypto/sdk": "^2.0.0", 8 | "@headlessui/react": "^1.6.6", 9 | "@testing-library/jest-dom": "^5.16.4", 10 | "@testing-library/react": "^13.3.0", 11 | "@testing-library/user-event": "^13.5.0", 12 | "@types/eslint": "^8.4.8", 13 | "@types/jest": "^27.5.2", 14 | "@types/node": "^16.11.45", 15 | "@types/react": "^18.0.15", 16 | "@types/react-dom": "^18.0.6", 17 | "clsx": "^1.2.1", 18 | "react": "^18.2.0", 19 | "react-dom": "^18.2.0", 20 | "react-hot-toast": "^2.3.0", 21 | "react-icons": "^4.4.0", 22 | "react-router-dom": "6", 23 | "react-scripts": "5.0.1", 24 | "typescript": "^4.7.4", 25 | "web-vitals": "^2.1.4" 26 | }, 27 | "scripts": { 28 | "eject": "react-scripts eject", 29 | "start": "craco start", 30 | "build": "craco build", 31 | "test": "craco test" 32 | }, 33 | "eslintConfig": { 34 | "extends": [ 35 | "react-app", 36 | "react-app/jest" 37 | ] 38 | }, 39 | "browserslist": { 40 | "production": [ 41 | ">0.2%", 42 | "not dead", 43 | "not op_mini all" 44 | ], 45 | "development": [ 46 | "last 1 chrome version", 47 | "last 1 firefox version", 48 | "last 1 safari version" 49 | ] 50 | }, 51 | "devDependencies": { 52 | "autoprefixer": "^9.8.8", 53 | "postcss": "^7.0.39", 54 | "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17" 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /examples/js/react-app/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlipsideCrypto/sdk/6d20b1c0cce0719b0e76222bd8059042014bb60b/examples/js/react-app/public/favicon.png -------------------------------------------------------------------------------- /examples/js/react-app/public/fonts/Cartridge-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlipsideCrypto/sdk/6d20b1c0cce0719b0e76222bd8059042014bb60b/examples/js/react-app/public/fonts/Cartridge-Bold.woff2 -------------------------------------------------------------------------------- /examples/js/react-app/public/fonts/Cartridge-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlipsideCrypto/sdk/6d20b1c0cce0719b0e76222bd8059042014bb60b/examples/js/react-app/public/fonts/Cartridge-Regular.woff2 -------------------------------------------------------------------------------- /examples/js/react-app/public/fonts/SimplonMono-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlipsideCrypto/sdk/6d20b1c0cce0719b0e76222bd8059042014bb60b/examples/js/react-app/public/fonts/SimplonMono-Regular.otf -------------------------------------------------------------------------------- /examples/js/react-app/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /examples/js/react-app/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "ShroomDK Example React App", 3 | "name": "ShroomDK Example React App", 4 | "icons": [ 5 | { 6 | "src": "favicon.png", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /examples/js/react-app/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /examples/js/react-app/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /examples/js/react-app/src/App.test.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render, screen } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | render(); 7 | const linkElement = screen.getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /examples/js/react-app/src/App.tsx: -------------------------------------------------------------------------------- 1 | import "./App.css"; 2 | import { Routes, Route } from "react-router-dom"; 3 | import { NftMints } from "./routes/nft-mints"; 4 | import { Nav } from "./components/nav"; 5 | import { Toaster } from "react-hot-toast"; 6 | import { XMetric } from "./routes/xmetric"; 7 | 8 | function App() { 9 | return ( 10 | <> 11 |