forked from 0xsequence/sequence.js
-
Notifications
You must be signed in to change notification settings - Fork 2
0xsequence v3 sdk #656
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
Merged
Merged
0xsequence v3 sdk #656
Changes from all commits
Commits
Show all changes
302 commits
Select commit
Hold shift + click to select a range
fc32664
Device signers can approve implicit sessions
ScreamingHawk 2107489
Remove invalid test
ScreamingHawk abf4a18
Fix recursion
ScreamingHawk d387a8e
Fix comment
ScreamingHawk d84f173
Improve test stability by reducing race conditions
ScreamingHawk 5323e8d
Do not set passkey signer as identity signer
ScreamingHawk b2d1897
Use length checks
ScreamingHawk 1b74174
Throw on missing identity signer
ScreamingHawk 1a8f595
Encoding requires identity signer to encode
ScreamingHawk 11e3629
Fix test
ScreamingHawk 86abf3f
Refactor/types namings tsdoc redundant code (#880)
VGabriel45 d82371d
Fix check for explicit session for the updated type in dapp-client
tolgahan-arikan b6563d1
Update api.gen.ts and relayer.gen.ts
taylanpince 26816e1
Add missing chainId for dapp client event
tolgahan-arikan f1a9fb9
Fix initializing new chain session manager on redirect
tolgahan-arikan 282c0b3
Add support for non-viem, custom Sequence chains (#882)
taylanpince 40e483a
Provider sent to prepareBlankEnvelope
ScreamingHawk a3f8af8
Add session signature decoding
ScreamingHawk 227c4d4
const for node length
ScreamingHawk 8a5f2fa
Clearer blacklist size encoding
ScreamingHawk 0c0bd73
identity signer node length
ScreamingHawk f7b52db
Add feeTokens endpoint to relayer (#885)
ScreamingHawk 9629d7e
add getFeeTokens to dapp client (#889)
VGabriel45 8e7b7eb
make getFeeTokens independent of chain session manager and initialize…
VGabriel45 39715d5
Throw specific error when trying to sign with an expired session (#887)
ScreamingHawk b5d47f7
Make dapp-client implicit sessions chain agnostic (#893)
tolgahan-arikan 3823f34
Add Monad, remove LAOS and Root Network
taylanpince e020483
Add support for sessionless dapp connection (#896)
tolgahan-arikan 3bd493b
Refactor relayer package & update dependant packages (#891)
VGabriel45 885f036
refactor exports for relayer (#900)
VGabriel45 12368bd
Add Arc Testnet
taylanpince 3993540
Fix changelog config
taylanpince 7d47a51
Sessionless connection upgrade and error handling in DappClient (#902)
tolgahan-arikan 834b8e5
dapp-client: add sessionless snapshot restore flow
tolgahan-arikan ede175f
Allow to logout a wallet with skipRemoveDevice even if the wallet is …
corbanbrook 69e51ec
Pass request to PromptCodeHandler in guard registerUI (#909)
corbanbrook 875a8c9
guard: allow using recovery code as 2FA token (#910)
patrislav 2011165
Add a way to reset 2fa when using a backup code (#911)
patrislav 6584047
Add rc4 contracts
Agusx1211 0015053
Set rc4 as default and add it to lists
Agusx1211 13afc12
Session enhanced replay protection
ScreamingHawk 3b1db90
New sessions replay protection hashes payload
ScreamingHawk dda7f32
Use the 4337 factory wrapper
ScreamingHawk d5f9b35
Update keymachine url in dapp-client constants
tolgahan-arikan be9d3b3
Update keymachine url in Provider constructor
tolgahan-arikan e91087b
SSR safety (#915)
ScreamingHawk c6c92dc
Guard dapp-client for SSR (lazy transport, browser checks, gated stor…
tolgahan-arikan ef07c27
Fix guard topology (#918)
Agusx1211 4723f58
Switch prod manager settings (#917)
taylanpince 8cd590a
Small JS tweaks (#919)
Agusx1211 c54088d
Update relayer.gen.ts and TransactionPrecondition interface
taylanpince 686a785
Merge branch 'relayer/upgrade-relayer.gen.ts' of https://github.com/0…
Dargon789 d20dd05
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 b920e59
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 d19f601
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
pkieltyka ac25c7f
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 03a67db
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
xiam afcffbd
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 a8c0df2
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 e9161c2
[AUTOMATED] Update: proto/clients/indexer*.gen.ts
marino39 7a285e9
Update SECURITY.md
Dargon789 14a9019
Update wagmi-project/package.json
Dargon789 be69fd2
Update wagmi-project/package.json
Dargon789 917cd2e
Update config.yml (#102)
Dargon789 ac87b04
Update config.yml (#103)
Dargon789 c9cc69f
fix: extras/web/package.json to reduce vulnerabilities (#101)
snyk-io[bot] 8f4a807
fix: extras/docs/package.json to reduce vulnerabilities (#100)
snyk-io[bot] 78a6152
Merge branch 'v1' into fix-merge-branch-0xsequence/master
Dargon789 aa230b5
Merge branch '0xsequence/master'
Dargon789 d4028f5
Merge branch 'v1' into 0xsequence/master
Dargon789 1b479e6
Merge branch '0xsequence/master'
Dargon789 233891c
fix: package.json to reduce vulnerabilities (#104)
snyk-io[bot] 4e91bed
Merge branch 'fix-merge-branch-0xsequence/master'
Dargon789 b77f3ec
Merge branch 'master' of https://github.com/Dargon789/sequence.js
Dargon789 cba7894
Merge remote-tracking branch 'upstream/master'
Dargon789 fd0fdf9
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/npm_and_…
Dargon789 cc6b5e9
Revert "Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/…
Dargon789 aab8538
fix: extras/web/package.json to reduce vulnerabilities (#109)
Dargon789 64c12ad
fix: extras/docs/package.json to reduce vulnerabilities (#106)
Dargon789 38d1a6b
Bump next in the npm_and_yarn group across 1 directory (#110)
dependabot[bot] 214211e
Delete .github/workflows/fortify.yml (#111)
Dargon789 42b5d42
fix: extras/web/package.json to reduce vulnerabilities (#107)
Dargon789 b3b5a8c
Merge branch 'relayer/upgrade-relayer.gen.ts'
Dargon789 3d54615
Bump the npm_and_yarn group across 1 directory with 3 updates (#115)
dependabot[bot] c85cf3e
Merge remote-tracking branch 'upstream/master'
Dargon789 95cbf49
Update tests.yml (#119)
Dargon789 5c2bfd5
Update config.yml (#120)
Dargon789 8532416
Update packages/services/identity-instrument/src/index.ts
Dargon789 62954a3
feat: upgrade @wagmi/cli from 0.1.15 to 2.8.0 (#126)
Dargon789 666c383
Potential fix for code scanning alert no. 82: Workflow does not conta…
Dargon789 4257ad5
Potential fix for code scanning alert no. 62: Information exposure th…
Dargon789 6820e16
2.3.7 (#131)
Dargon789 0849f07
Update extras/docs/package.json
Dargon789 e6b0691
Update extras/web/package.json
Dargon789 edc0b09
[Snyk] Upgrade @tanstack/react-query from 5.64.2 to 5.90.11 (#125)
Dargon789 cbb6c14
feat: upgrade vite from 5.4.21 to 7.2.4 (#124)
Dargon789 095c4b3
feat: upgrade wagmi from 0.12.19 to 3.0.2 (#123)
Dargon789 3c73b56
feat: upgrade react-dom from 18.3.1 to 19.2.0 (#122)
Dargon789 ea7e889
Pin foundry to v1.5.0 instead of nightly (0xsequence#947) (#134)
Dargon789 479eae0
Update packages/wallet/wdk/test/wallets.test.ts
Dargon789 4090a96
Update packages/wallet/wdk/test/wallets.test.ts
Dargon789 186f843
fix: extras/docs/package.json to reduce vulnerabilities (#136)
Dargon789 a43cbae
Merge branch 'master' into 0xsequence/sequence.js/master
Dargon789 b56f318
[Snyk] Upgrade @types/react from 18.3.27 to 19.2.7 (#127)
Dargon789 bc418b1
Master ceb95d4 (#129)
Dargon789 28a268e
Update wagmi-project/src/App.tsx
Dargon789 51a6432
Update wagmi-project/src/App.tsx
Dargon789 640be8f
Update wagmi-project/src/App.tsx
Dargon789 7fe4a92
Update wagmi-project/src/App.tsx
Dargon789 893eedb
Merge remote-tracking branch 'origin/v1' into v1
Dargon789 472df86
Merge branch 'master' into 0xsequence/master
Dargon789 802829c
2.3.7 (#131) (#132)
Dargon789 5e6dca3
Pin foundry to v1.5.0 instead of nightly (0xsequence#947) (#134) (#135)
Dargon789 8bad845
feat: upgrade react from 18.3.1 to 19.2.0 (#121)
Dargon789 1f45249
fix: extras/web/package.json to reduce vulnerabilities (#117)
snyk-io[bot] e90b2e6
Initial project structure and core packages
Dargon789 224f761
sequence-core-1.0.0
Dargon789 9c420a7
Revise README structure and add sponsorship details (#146)
Dargon789 9779987
Update GitHub Actions workflow for tests (#149)
Dargon789 7c547fc
Bump the npm_and_yarn group across 4 directories with 7 updates (#144)
dependabot[bot] b43069d
Fix Docker Hub credentials comment in config.yml (#148)
Dargon789 a62e089
Add workflow to publish package distributions (#152)
Dargon789 9d789d3
Remove permissions from pnpm-format-label workflow (#151)
Dargon789 94bad6c
Bump happy-dom (#150)
dependabot[bot] d640003
Update Anvil fork URL for testing workflow (#154)
Dargon789 5de34d6
Merge branch '0xsequence:master' into proto
Dargon789 269972a
fix: package.json to reduce vulnerabilities (#157)
Dargon789 c4d0fdc
Merge branch 'master' of https://github.com/Dargon789/sequence.js
Dargon789 4a81a2c
Proto (#163)
Dargon789 b9d2568
Update CNAME to new domain (#164)
Dargon789 e13fe5a
Bump the npm_and_yarn group across 2 directories with 4 updates (#161)
dependabot[bot] c62e5dd
Bump happy-dom in the npm_and_yarn group across 1 directory (#167)
dependabot[bot] 4c696d0
Potential fix for code scanning alert no. 94: Insecure randomness
Dargon789 70208b1
Potential fix for code scanning alert no. 95: Information exposure th…
Dargon789 e7b277e
Revise security policy for reporting vulnerabilities (#173)
Dargon789 f2fd08b
V2 (#174)
Dargon789 cd4a860
Create web-sdk.yml (#175)
Dargon789 e6efe1f
sequence-core-dapp-1.0.0
Dargon789 dafd2ed
Create nextjs.yml (#176)
Dargon789 a1be7e9
0xsequence-1.9.19
Dargon789 55d31a9
Update config.json (#185)
Dargon789 1da7771
Potential fix for code scanning alert no. 108: Incomplete regular exp…
Dargon789 0cdb1ee
0xsequence 1.9.19 (#179)
Dargon789 26c1f79
Update packages/0xsequence/tests/browser/wallet-provider/dapp.test.ts
Dargon789 33d7b74
Update packages/auth/src/session.ts
Dargon789 3cae6f4
Update tests.yml (#187)
Dargon789 557210c
Merge branch '0xsequence:master' into proto
Dargon789 7908cfe
Merge branch '0xsequence:master' into 1.10.15
Dargon789 fb4f698
1.9.19 (#189)
Dargon789 d63fb64
Potential fix for code scanning alert no. 61: Cross-window communicat…
Dargon789 88ad9d5
Bump the npm_and_yarn group across 2 directories with 25 updates (#177)
dependabot[bot] ad4195c
Potential fix for code scanning alert no. 73: Workflow does not conta…
Dargon789 a12fae6
Update lib/signals-implicit-mode/foundry.toml
Dargon789 3492ff4
demo dapp (#191) (#192)
Dargon789 f4f73f4
Update publish-dists.yml (#184)
Dargon789 16100ee
Bump body-parser in the npm_and_yarn group across 1 directory (#190)
dependabot[bot] 3cd6da3
Merge branch '0xsequence:master' into snyk-fix-1a42f46a3694152c28f6d1…
Dargon789 b4e210e
Merge branch 'proto' into snyk-fix-1a42f46a3694152c28f6d1d4dc5aea44
Dargon789 980ba9c
Potential fix for code scanning alert no. 92: Insecure randomness
Dargon789 a03fd01
Potential fix for code scanning alert no. 94: Insecure randomness
Dargon789 dbed8f8
Potential fix for code scanning alert no. 93: Incomplete regular expr…
Dargon789 47ad7c2
Potential fix for code scanning alert no. 95: Information exposure th…
Dargon789 1716625
Merge pull request #196 from Dargon789/snyk-fix-1a42f46a3694152c28f6d…
Dargon789 75ae648
Delete lib/signals-implicit-mode/lib/sequence-v3/lib/erc2470-libs dir…
Dargon789 f9123e4
Delete lib/signals-implicit-mode/lib/sequence-v3/script/DeployMocks.s…
Dargon789 fa00712
Delete wagmi-project/packages/sequence-core-1.0.0/lib/signals-implici…
Dargon789 05365ac
Delete wagmi-project/packages/sequence-core-1.0.0/lib/signals-implici…
Dargon789 95c51c3
Fix React Server Components CVE vulnerabilities (#209)
vercel[bot] c0d68f0
Create Docker.yml (#210)
Dargon789 05a494c
move circleci docker to github
Dargon789 ed245c2
Fix React Server Components CVE vulnerabilities (#211)
Dargon789 ae6c15a
Potential fix for code scanning alert no. 92: Insecure randomness
Dargon789 420d4b4
Potential fix for code scanning alert no. 93: Incomplete regular expr…
Dargon789 316f9d8
Update lib/signals-implicit-mode/foundry.toml
Dargon789 62194a2
Delete .github/.circleci directory (#216)
Dargon789 d539ea8
Delete .github/workflows/publish-dists.yml (#217)
Dargon789 cbad673
Revert "Delete lib/signals-implicit-mode/lib/sequence-v3/script/Deplo…
Dargon789 0c613eb
Revert "Delete lib/signals-implicit-mode/lib/sequence-v3/lib/erc2470-…
Dargon789 fbeb2ae
Sequence.js/master (#222)
Dargon789 58bd45f
Merge branch 'master' into 0xsequence/master
Dargon789 ec3d1c6
Wagmi project (#199)
Dargon789 d2e7b10
Wagmi project (#225)
Dargon789 478918f
Merge branch '0xsequence:master' into 1.10.15
Dargon789 2144689
Merge branch 'master' into 3.0.0-beta.9
Dargon789 1ecb8d7
1.10.15 (#229)
Dargon789 5a2cae7
0xsequence 1.9.19 (#194)
Dargon789 b309aa2
0xsequence/master (#180)
Dargon789 0c989c2
Merge branch 'master' into proto
Dargon789 503bf5c
Merge pull request #198 from Dargon789/proto
Dargon789 49af264
Merge branch 'master' into 1.10.15
Dargon789 f6edeb9
Merge pull request #231 from Dargon789/1.10.15
Dargon789 f29be1a
Delete .github/workflows/Docker.yml (#233)
Dargon789 c5f4472
Merge branch '0xsequence:master' into 0xsequence/sequence.js/master
Dargon789 3ea1f98
1.0.8 (#234)
Dargon789 292f82e
0xsequence-core
Dargon789 15eccf9
Potential fix for code scanning alert no. 40: Workflow does not conta…
Dargon789 811d65c
Merge branch '0xsequence:master' into 0xsequence/sequence.js/master
Dargon789 118061e
Bump diff (#235)
dependabot[bot] c335fe1
Merge branch '0xsequence:master' into 0xsequence/sequence.js/master
Dargon789 aed5cc0
Delete wagmi-project/.circleci directory (#245)
Dargon789 25f1f3a
Revert "Delete lib/signals-implicit-mode/lib/sequence-v3/script/Deplo…
Dargon789 6a06652
Install Vercel Web Analytics in Next.js (#249)
vercel[bot] b430531
0xsequence 1.9.19 (#252)
Dargon789 e3d8ebe
fix: extras/docs/package.json to reduce vulnerabilities (#250)
snyk-io[bot] 4b1ad47
fix: extras/web/package.json to reduce vulnerabilities (#251)
snyk-io[bot] 6ecbe48
0xsequence 1.9.19 (#253)
Dargon789 9ec3b15
Merge branch '0xsequence:master' into 0xsequence/sequence.js/master
Dargon789 4a6ac5d
Vercel/react server components CVE vu qan1bu (#256)
Dargon789 64367c9
Potential fix for code scanning alert no. 83: Workflow does not conta…
Dargon789 785b063
Potential fix for code scanning alert no. 82: Workflow does not conta…
Dargon789 106b140
extras docs
Dargon789 b44a924
Merge branch 'codesandbox' into v3
Dargon789 966d0ec
Update publish-dists.yml
Dargon789 048f214
Merge pull request #257 from Dargon789/v3
Dargon789 7eb0e62
Merge branch 'master' into codesandbox
Dargon789 35024c1
Codesandbox (#258)
Dargon789 1caaeec
Merge branch 'master' into codesandbox
Dargon789 c03ecd7
Merge pull request #259 from Dargon789/codesandbox
Dargon789 2cb244a
Merge remote-tracking branch 'upstream/master'
Dargon789 ea62beb
Create solidity-files-cache.json
Dargon789 233ff22
Merge branch 'master' into 0xsequence/sequence.js/master
Dargon789 dcf3680
0xsequence/sequence.js/master (#255)
Dargon789 5277a29
Delete .circleci directory (#267)
Dargon789 ff7e536
Merge branch 'master' into 0xsequence/sequence.js/master
Dargon789 b8f3960
Merge branch '0xsequence/master' of https://github.com/Dargon789/sequ…
Dargon789 869b1ca
Merge branch 'master' into 0xsequence/master
Dargon789 f434e3f
0xsequence/master (#270)
Dargon789 defb4da
Merge branch '0xsequence/master'
Dargon789 2f901cc
@0xsequence 2.3.8
Dargon789 394b0a7
@0xsequence v3 SDK
Dargon789 3fa62bf
Merge branch 'master' into 0xsequence/sequence.js/master
Dargon789 caa2947
Merge remote-tracking branch 'upstream/master' into 0xsequence-v3-SDK
googleworkspace-bot b45c655
Merge remote-tracking branch 'upstream/master' into 0xsequence-v3-SDK
googleworkspace-bot 2f7a408
Update packages/wallet/core/src/signers/session-manager.ts
Dargon789 9b1f51f
Merge branch 'master' into 0xsequence-v3-SDK
googleworkspace-bot 82f547c
Potential fix for pull request finding 'CodeQL / Workflow does not co…
Dargon789 e51780b
Update .codesandbox/src/App.tsx
Dargon789 23e0812
Update .codesandbox/src/App.tsx
Dargon789 007bdc7
Update .codesandbox/src/App.tsx
Dargon789 f597d6a
Update .codesandbox/src/App.tsx
Dargon789 cfe53fb
Update .codesandbox/src/App.tsx
Dargon789 40d1164
Bump the npm_and_yarn group across 3 directories with 3 updates (#541)
dependabot[bot] 6431019
Merge branch '0xsequence:master' into 0xsequence-v3-SDK
Dargon789 cd38655
Merge branch 'master' into 0xsequence-v3-SDK
googleworkspace-bot 8c36d19
Bump turbo in the npm_and_yarn group across 1 directory (#614)
dependabot[bot] dcb6e47
Merge branch 'master' into 0xsequence-v3-SDK
Dargon789 e08b3a8
Sequence (#616)
Dargon789 ac51ae3
Revert "Sequence" (#622)
Dargon789 048ab90
Merge branch 'master' into 0xsequence-v3-SDK
Dargon789 55d72cc
Merge remote-tracking branch 'upstream/master' into 0xsequence-v3-SDK
googleworkspace-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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
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,32 @@ | ||
| name: build dapp | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| name: Build and Push | ||
| steps: | ||
| - name: git-checkout | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Setup PNPM | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 8 | ||
| run_install: true | ||
|
|
||
| - name: Build | ||
| run: pnpm dist | ||
|
|
||
| - name: Push | ||
| uses: s0/git-publish-subdir-action@develop | ||
| env: | ||
| REPO: self | ||
| BRANCH: build | ||
| FOLDER: dist | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| MESSAGE: 'Build: ({sha}) {msg}' | ||
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,19 @@ | ||
| .env | ||
|
|
||
| #dependencies | ||
| node_modules/ | ||
|
|
||
| # production | ||
| dist/ | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| .vscode | ||
| .idea/ | ||
| *.iml | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| lerna-debug.log* | ||
|
|
||
| .env.local |
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,9 @@ | ||
| { | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "trailingComma": "none", | ||
| "arrowParens": "avoid", | ||
| "printWidth": 130 | ||
| } |
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,49 @@ | ||
| Demo Dapp | ||
| ========= | ||
|
|
||
| Dapp example on how to use Sequence Wallet. Covers how to connect, sign messages and send transctions. | ||
|
|
||
| Try this dapp at: [https://0xsequence.github.io/demo-dapp](https://0xsequence.github.io/demo-dapp) | ||
|
|
||
| For complete documentation on Sequence, please see: [https://docs.sequence.build](https://docs.sequence.build) | ||
|
|
||
| ## Usage | ||
|
|
||
| 1. pnpm install | ||
| 2. pnpm start | ||
| 3. Open browser to http://localhost:4000 to access the demo dapp | ||
| 4. Open browser inspector to see responses from the remote Sequence Wallet | ||
|
|
||
| ## Development | ||
|
|
||
| See https://github.com/0xsequence/demo-dapp/blob/master/src/App.tsx for the source | ||
| usage for a variety of functions. Be sure to open your browser's dev inspector to see output. | ||
| Think of these functions as a "cookbook" for how you can perform these functions in your dapps. | ||
|
|
||
| Also note, sequence.js is built on top of ethers.js, and is API-compatible. | ||
|
|
||
| ## Screenshots | ||
|
|
||
| **Opening wallet from dapp:** | ||
|
|
||
|  | ||
|
|
||
|
|
||
| **Send transaction from dapp:** | ||
|
|
||
| Sequence Wallet is an Ethereum wallet supporting Ethereum mainnet, Polygon and more. Sequence will work | ||
| with any blockchain which is EVM compatible and supports Ethereum's node JSON-RPC interface. | ||
|
|
||
| Here you can see in this screenshot the call to "Send DAI" from demo-dapp | ||
| (https://github.com/0xsequence/demo-dapp/blob/master/src/routes/HomeRoute.tsx#L420). This function demonstrates | ||
| how you can transfer an ERC-20 token like DAI on any Ethereum network. | ||
|
|
||
| Notice how you can pay gas fees for a transaction in either MATIC token or USDC for price of $0.01. | ||
|
|
||
|  | ||
|
|
||
|
|
||
|
|
||
| ## LICENSE | ||
|
|
||
| Apache 2.0 or MIT (your choice) |
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,35 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <link rel="icon" href="/favicon.ico" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <meta name="theme-color" content="#000000" /> | ||
| <meta | ||
| name="description" | ||
| content="Web site created using create-react-app" | ||
| /> | ||
| <link rel="apple-touch-icon" href="/logo192.png" /> | ||
| <!-- | ||
| manifest.json provides metadata used when your web app is installed on a | ||
| user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
| --> | ||
| <link rel="manifest" href="/manifest.json" /> | ||
| <!-- | ||
| Notice the use of in the tags above. | ||
| It will be replaced with the URL of the `public` folder during the build. | ||
| Only files inside the `public` folder can be referenced from the HTML. | ||
|
|
||
| Unlike "/favicon.ico" or "favicon.ico", "/favicon.ico" will | ||
| work correctly both with client-side routing and a non-root public URL. | ||
| Learn how to configure a non-root public URL by running `npm run build`. | ||
| --> | ||
| <title>Sequence | Demo Dapp</title> | ||
| </head> | ||
| <body> | ||
| <noscript>You need to enable JavaScript to run this app.</noscript> | ||
| <a href="https://github.com/0xsequence/demo-dapp" target="_blank" rel="noopener noreferrer" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/index.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,60 @@ | ||
| { | ||
| "name": "demo-dapp", | ||
| "description": "Ethereum Demo Dapp built on Sequence stack", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "homepage": "demo-dapp", | ||
| "scripts": { | ||
| "dev": "BROWSER=none pnpm start", | ||
| "start": "vite", | ||
| "build": "BUILD_PATH='./dist' tsc && vite build", | ||
| "typecheck": "tsc --noEmit", | ||
| "serve": "vite preview", | ||
| "dist": "pnpm build", | ||
| "link-sequence": "pnpm run clear:vite:cache && ../sequence.js/scripts/pnpm-link.sh link", | ||
| "unlink-sequence": "pnpm run clear:vite:cache && ../sequence.js/scripts/pnpm-link.sh unlink", | ||
| "clear:vite:cache": "rm -rf node_modules/.vite/" | ||
| }, | ||
| "dependencies": { | ||
| "0xsequence": "2.2.3", | ||
| "@0xsequence/abi": "2.2.13", | ||
| "@0xsequence/design-system": "^1.8.1", | ||
| "@0xsequence/ethauth": "^1.0.0", | ||
| "@0xsequence/network": "2.2.13", | ||
| "@0xsequence/provider": "2.2.13", | ||
| "@0xsequence/utils": "2.2.13", | ||
| "@types/node": "^20.11.30", | ||
| "@types/react": "^18.3.7", | ||
| "@types/react-dom": "^18.3.0", | ||
| "@vanilla-extract/css": "^1.14.1", | ||
| "ethers": "^6.13.4", | ||
| "framer-motion": "^9.0.1", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "typescript": "^4.5.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@vanilla-extract/vite-plugin": "^4.0.6", | ||
| "@vitejs/plugin-react": "^4.2.1", | ||
| "vite": "^6.4.2", | ||
| "vite-plugin-svgr": "^4.2.0", | ||
| "vite-tsconfig-paths": "^4.3.2" | ||
| }, | ||
| "eslintConfig": { | ||
| "extends": [ | ||
| "react-app" | ||
| ] | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| } | ||
| } |
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.