Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from SilentRhetoric:mm
Browse files Browse the repository at this point in the history
MetaMask Snap & Dev improvements
  • Loading branch information
SilentRhetoric authored Sep 24, 2023
2 parents aad36d2 + f84f37e commit 983b0ee
Show file tree
Hide file tree
Showing 41 changed files with 1,695 additions and 800 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ The example app code can be found here: <https://github.com/SilentRhetoric/solid

The following wallet interfaces are supported and the library provides icons & logos:

| Wallet | Home Page | Technical Docs | Notes |
| ------------- | ------------------------------------ | --------------------------------------------------------------------------------------------- | ------------------------------ |
| Defly | <https://defly.app> | <https://docs.defly.app/app/overview> | Mobile |
| Pera | <https://perawallet.app> | <https://docs.perawallet.app> | Mobile & Web |
| Exodus | <https://www.exodus.com> | <https://docs.exodus.com> | Chrome extension, MainNet only |
| MyAlgo | <https://connect.myalgo.com> | <https://connect.myalgo.com/docs/introduction> | Web |
| Ledger | <https://www.ledger.com/ledger-live> | <https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-algorand> | Direct USB in Chrome |
| WalletConnect | <https://walletconnect.com> | <https://docs.walletconnect.com/2.0/> | Any compatible app |
| Wallet | Home Page | Technical Docs | Notes |
| ----------------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| Defly | <https://defly.app> | <https://docs.defly.app/app/overview> | Mobile |
| Pera | <https://perawallet.app> | <https://docs.perawallet.app> | Mobile & Web |
| Exodus | <https://www.exodus.com> | <https://docs.exodus.com> | Chrome extension, MainNet only |
| MyAlgo | <https://connect.myalgo.com> | <https://connect.myalgo.com/docs/introduction> | Web |
| Ledger | <https://www.ledger.com/ledger-live> | <https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-algorand> | Direct USB in Chrome |
| WalletConnect | <https://walletconnect.com> | <https://docs.walletconnect.com/2.0/> | Any compatible app |
| MetaMask (experimental) | <https://metamask.io> <https://snapalgo.io> | <https://snapalgo.io/docs> | Pre-release Algorand Snap running in MetaMask Flask <https://metamask.io/flask/> |

### WalletConnect-compatible Wallets

Expand Down
15 changes: 0 additions & 15 deletions dev/tsconfig.json

This file was deleted.

23 changes: 11 additions & 12 deletions env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,20 @@ declare global {
readonly VITE_WALLETCONNECT_PROJECT_DESCRIPTION: string
readonly VITE_WALLETCONNECT_PROJECT_URL: string
readonly VITE_WALLETCONNECT_PROJECT_ICON: string
NODE_ENV: 'production' | 'development'
PROD: boolean
DEV: boolean
}
interface ImportMeta {
env: {
NODE_ENV: 'production' | 'development'
PROD: boolean
DEV: boolean
}
}
namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'production' | 'development'
PROD: boolean
DEV: boolean
}
readonly env: ImportMetaEnv
}
// namespace NodeJS {
// interface ProcessEnv {
// NODE_ENV: 'production' | 'development'
// PROD: boolean
// DEV: boolean
// }
// }
}

export {}
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,28 @@
"sideEffects": false,
"scripts": {
"build": "tsup",
"clean": "rm -rf node_modules && rm -rf dist",
"clean": "rm -rf node_modules && rm -rf dist && rm pnpm-lock.yaml",
"prepublishOnly": "pnpm build",
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
"format": "prettier -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" --ignore-path .gitignore",
"lint": "concurrently pnpm:lint:*",
"lint:code": "eslint --ignore-path .gitignore --max-warnings 0 \"src/**/*.{js,ts,tsx,jsx}\"",
"lint:types": "tsc --noEmit",
"update-deps": "pnpm up -Li"
"update-deps": "pnpm up -Li",
"dev": "pnpm -dir site run dev"
},
"devDependencies": {
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@types/node": "^20.6.2",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"concurrently": "^8.2.1",
"esbuild": "^0.19.2",
"esbuild": "^0.19.3",
"esbuild-plugin-solid": "^0.5.0",
"eslint": "^8.48.0",
"eslint": "^8.49.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"jsdom": "^22.1.0",
"prettier": "2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"prettier": "3.0.3",
"prettier-plugin-tailwindcss": "^0.5.4",
"tsup": "^7.2.0",
"tsup-preset-solid": "^2.1.0",
"typescript": "^5.2.2",
Expand All @@ -97,9 +98,9 @@
"@perawallet/connect": "^1.3.1",
"@randlabs/myalgo-connect": "^1.4.2",
"@solid-primitives/storage": "^2.1.1",
"@walletconnect/modal": "^2.6.1",
"@walletconnect/modal-sign-html": "^2.6.1",
"@walletconnect/sign-client": "^2.10.0",
"@walletconnect/modal": "^2.6.2",
"@walletconnect/modal-sign-html": "^2.6.2",
"@walletconnect/sign-client": "^2.10.1",
"algosdk": "2.4.0",
"buffer": "^6.0.3"
},
Expand Down
Loading

0 comments on commit 983b0ee

Please sign in to comment.