forked from 0xsequence/sequence.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/integration #551
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
Open
Dargon789
wants to merge
30
commits into
master
Choose a base branch
from
feature/integration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/integration #551
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ca06c8f
Create SECURITY.md
Dargon789 3af5a88
Set up CI with Azure Pipelines
Dargon789 fa3e0a9
Merge branch '0xsequence:master' into master
Dargon789 f2761ef
Merge branch '0xsequence:master' into master
Dargon789 7a74500
Merge branch '0xsequence:master' into master
Dargon789 709280e
codesandbox dev-project wagmi-dapp
Dargon789 29c9084
Merge branch 'master' of https://github.com/Dargon789/sequence.js
Dargon789 1275488
Create CNAME
Dargon789 9b5807f
Merge branch '0xsequence:master' into master
Dargon789 c1fedd5
Merge branch '0xsequence:master' into master
Dargon789 6466316
Updating DefaultGuest address
corbanbrook eab97bd
Merge branch '0xsequence:master' into feature/integration
Dargon789 7e5db32
Merge branch '0xsequence:master' into feature/integration
Dargon789 b412a54
Merge branch '0xsequence:master' into feature/integration
Dargon789 60d6fdc
Merge branch '0xsequence:master' into feature/integration
Dargon789 9ed93e8
Update tests.yml (#51)
Dargon789 27d3c49
Update tests.yml (#52)
Dargon789 1609892
Update tests.yml
Dargon789 853106e
Merge branch '0xsequence:master' into feature/integration
Dargon789 2a17d6e
Update tests.yml (#55)
Dargon789 a024127
Merge branch '0xsequence:master' into feature/integration
Dargon789 a9004a0
Merge branch '0xsequence:master' into feature/integration
Dargon789 89ef65b
Merge branch '0xsequence:master' into feature/integration
Dargon789 c18059c
Update tests.yml (#56)
Dargon789 778ab8e
Update tests.yml
Dargon789 da50474
Merge branch '0xsequence:master' into feature/integration
Dargon789 2fae31f
Merge branch 'feature/integration' of https://github.com/Dargon789/se…
googleworkspace-bot aa8ed87
Merge remote-tracking branch 'upstream/master' into feature/integration
googleworkspace-bot 7dd5b07
Enforce minimum age limitation for packages (#547)
Dargon789 60eb7ee
Merge branch '0xsequence:master' into feature/integration
Dargon789 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| { | ||
| // These tasks will run in order when initializing your CodeSandbox project. | ||
| "setupTasks": [ | ||
| { | ||
| "name": "Install Dependencies", | ||
| "command": "pnpm install" | ||
| } | ||
| ], | ||
|
|
||
| // These tasks can be run from CodeSandbox. Running one will open a log in the app. | ||
| "tasks": { | ||
| "build": { | ||
| "name": "build", | ||
| "command": "pnpm build", | ||
| "runAtStart": false | ||
| }, | ||
| "watch": { | ||
| "name": "watch", | ||
| "command": "pnpm watch", | ||
| "runAtStart": false | ||
| }, | ||
| "clean": { | ||
| "name": "clean", | ||
| "command": "pnpm clean", | ||
| "runAtStart": false | ||
| }, | ||
| "changeset": { | ||
| "name": "changeset", | ||
| "command": "pnpm changeset", | ||
| "runAtStart": false | ||
| }, | ||
| "version-packages": { | ||
| "name": "version-packages", | ||
| "command": "pnpm version-packages", | ||
| "runAtStart": false | ||
| }, | ||
| "release": { | ||
| "name": "release", | ||
| "command": "pnpm release", | ||
| "runAtStart": false | ||
| }, | ||
| "snapshot": { | ||
| "name": "snapshot", | ||
| "command": "pnpm snapshot", | ||
| "runAtStart": false | ||
| }, | ||
| "update-version": { | ||
| "name": "update-version", | ||
| "command": "pnpm update-version", | ||
| "runAtStart": false | ||
| }, | ||
| "test": { | ||
| "name": "test", | ||
| "command": "pnpm test", | ||
| "runAtStart": false | ||
| }, | ||
| "test:parallel": { | ||
| "name": "test:parallel", | ||
| "command": "pnpm test:parallel", | ||
| "runAtStart": false | ||
| }, | ||
| "lint": { | ||
| "name": "lint", | ||
| "command": "pnpm lint", | ||
| "runAtStart": false | ||
| }, | ||
| "lint:fix": { | ||
| "name": "lint:fix", | ||
| "command": "pnpm lint:fix", | ||
| "runAtStart": false | ||
| }, | ||
| "lint:tests": { | ||
| "name": "lint:tests", | ||
| "command": "pnpm lint:tests", | ||
| "runAtStart": false | ||
| }, | ||
| "lint:tests:fix": { | ||
| "name": "lint:tests:fix", | ||
| "command": "pnpm lint:tests:fix", | ||
| "runAtStart": false | ||
| }, | ||
| "format": { | ||
| "name": "format", | ||
| "command": "pnpm format", | ||
| "runAtStart": false | ||
| }, | ||
| "audit:fix": { | ||
| "name": "audit:fix", | ||
| "command": "pnpm audit:fix", | ||
| "runAtStart": false | ||
| }, | ||
| "typecheck": { | ||
| "name": "typecheck", | ||
| "command": "pnpm typecheck", | ||
| "runAtStart": false | ||
| }, | ||
| "dev": { | ||
| "name": "dev", | ||
| "command": "pnpm dev", | ||
| "runAtStart": true | ||
| }, | ||
| "postinstall": { | ||
| "name": "postinstall", | ||
| "command": "pnpm postinstall", | ||
| "runAtStart": false | ||
| }, | ||
| "coverage": { | ||
| "name": "coverage", | ||
| "command": "pnpm coverage", | ||
| "runAtStart": false | ||
| }, | ||
| "prepare": { | ||
| "name": "prepare", | ||
| "command": "pnpm prepare", | ||
| "runAtStart": false | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wagmi-project-two.vercel.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Security Policy | ||
|
|
||
| ## Supported Versions | ||
|
|
||
| Use this section to tell people about which versions of your project are | ||
| currently being supported with security updates. | ||
|
|
||
| | Version | Supported | | ||
| | ------- | ------------------ | | ||
| | 5.1.x | :white_check_mark: | | ||
| | 5.0.x | :x: | | ||
| | 4.0.x | :white_check_mark: | | ||
| | < 4.0 | :x: | | ||
|
|
||
| ## Reporting a Vulnerability | ||
|
|
||
| Use this section to tell people how to report a vulnerability. | ||
|
|
||
| Tell them where to go, how often they can expect to get an update on a | ||
| reported vulnerability, what to expect if the vulnerability is accepted or | ||
| declined, etc. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Node.js | ||
| # Build a general Node.js project with npm. | ||
| # Add steps that analyze code, save build artifacts, deploy, and more: | ||
| # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
|
||
| trigger: | ||
| - master | ||
|
|
||
| pool: | ||
| vmImage: ubuntu-latest | ||
|
|
||
| steps: | ||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: '10.x' | ||
|
Dargon789 marked this conversation as resolved.
|
||
| displayName: 'Install Node.js' | ||
|
|
||
| - script: | | ||
| npm install | ||
| npm run build | ||
|
Dargon789 marked this conversation as resolved.
|
||
| displayName: 'npm install and build' | ||
Binary file added
BIN
+1.51 MB
...de_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.BLOB
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ode_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.MAP
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+1.51 MB
...de_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.BLOB
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ode_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.MAP
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? | ||
| .vercel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| legacy-peer-deps = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This is a [Vite](https://vitejs.dev) project bootstrapped with [`create-wagmi`](https://github.com/wevm/wagmi/tree/main/packages/create-wagmi). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "space", | ||
| "lineWidth": 120 | ||
| }, | ||
| "linter": { | ||
| "enabled": true | ||
| }, | ||
| "organizeImports": { | ||
| "enabled": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Create Wagmi</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "name": "wagmi-project", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "tsc && vite build", | ||
| "lint": "biome check .", | ||
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "@tanstack/react-query": "5.45.1", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "viem": "latest", | ||
| "wagmi": "latest" | ||
|
Dargon789 marked this conversation as resolved.
|
||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.8.0", | ||
| "@types/react": "^18.3.1", | ||
| "@types/react-dom": "^18.3.0", | ||
| "@vitejs/plugin-react": "^4.2.1", | ||
| "@wagmi/cli": "latest", | ||
|
Dargon789 marked this conversation as resolved.
|
||
| "buffer": "^6.0.3", | ||
| "typescript": "^5.4.5", | ||
| "vite": "^5.2.11" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { useAccount, useConnect, useDisconnect } from 'wagmi' | ||
|
|
||
| function App() { | ||
| const account = useAccount() | ||
| const { connectors, connect, status, error } = useConnect() | ||
| const { disconnect } = useDisconnect() | ||
|
|
||
| return ( | ||
| <> | ||
| <div> | ||
| <h2>Account</h2> | ||
|
|
||
| <div> | ||
| status: {account.status} | ||
| <br /> | ||
| addresses: {JSON.stringify(account.addresses)} | ||
| <br /> | ||
| chainId: {account.chainId} | ||
| </div> | ||
|
|
||
| {account.status === 'connected' && ( | ||
| <button type="button" onClick={() => disconnect()}> | ||
| Disconnect | ||
| </button> | ||
| )} | ||
| </div> | ||
|
|
||
| <div> | ||
| <h2>Connect</h2> | ||
| {connectors.map((connector) => ( | ||
| <button | ||
| key={connector.uid} | ||
| onClick={() => connect({ connector })} | ||
| type="button" | ||
| > | ||
| {connector.name} | ||
| </button> | ||
| ))} | ||
| <div>{status}</div> | ||
| <div>{error?.message}</div> | ||
| </div> | ||
| </> | ||
| ) | ||
| } | ||
|
|
||
| export default App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| :root { | ||
| background-color: #181818; | ||
| color: rgba(255, 255, 255, 0.87); | ||
| color-scheme: light dark; | ||
| font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
| font-synthesis: none; | ||
| font-weight: 400; | ||
| line-height: 1.5; | ||
| text-rendering: optimizeLegibility; | ||
|
|
||
| -webkit-font-smoothing: antialiased; | ||
| -moz-osx-font-smoothing: grayscale; | ||
| -webkit-text-size-adjust: 100%; | ||
| } | ||
|
|
||
| @media (prefers-color-scheme: light) { | ||
| :root { | ||
| background-color: #f8f8f8; | ||
| color: #181818; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import { Buffer } from 'buffer' | ||
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | ||
| import React from 'react' | ||
| import ReactDOM from 'react-dom/client' | ||
| import { WagmiProvider } from 'wagmi' | ||
|
|
||
| import App from './App.tsx' | ||
| import { config } from './wagmi.ts' | ||
|
|
||
| import './index.css' | ||
|
|
||
| globalThis.Buffer = Buffer | ||
|
|
||
| const queryClient = new QueryClient() | ||
|
|
||
| ReactDOM.createRoot(document.getElementById('root')!).render( | ||
| <React.StrictMode> | ||
| <WagmiProvider config={config}> | ||
| <QueryClientProvider client={queryClient}> | ||
| <App /> | ||
| </QueryClientProvider> | ||
| </WagmiProvider> | ||
| </React.StrictMode>, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /// <reference types="vite/client" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { http, createConfig } from 'wagmi' | ||
| import { mainnet, sepolia } from 'wagmi/chains' | ||
| import { coinbaseWallet, injected, walletConnect } from 'wagmi/connectors' | ||
|
|
||
| export const config = createConfig({ | ||
| chains: [mainnet, sepolia], | ||
| connectors: [ | ||
| injected(), | ||
| coinbaseWallet(), | ||
| walletConnect({ projectId: import.meta.env.VITE_WC_PROJECT_ID }), | ||
|
Dargon789 marked this conversation as resolved.
|
||
| ], | ||
| transports: { | ||
| [mainnet.id]: http(), | ||
| [sepolia.id]: http(), | ||
| }, | ||
| }) | ||
|
|
||
| declare module 'wagmi' { | ||
| interface Register { | ||
| config: typeof config | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ES2020", | ||
| "useDefineForClassFields": true, | ||
| "lib": ["ES2020", "DOM", "DOM.Iterable"], | ||
| "module": "ESNext", | ||
| "skipLibCheck": true, | ||
|
|
||
| /* Bundler mode */ | ||
| "moduleResolution": "bundler", | ||
| "allowImportingTsExtensions": true, | ||
| "resolveJsonModule": true, | ||
| "isolatedModules": true, | ||
| "noEmit": true, | ||
| "jsx": "react-jsx", | ||
|
|
||
| /* Linting */ | ||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noFallthroughCasesInSwitch": true | ||
| }, | ||
| "include": ["src"], | ||
| "references": [{ "path": "./tsconfig.node.json" }] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.