Skip to content

[DO NOT MERGE] demo anypay v3 #720

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

Draft
wants to merge 465 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
a8eee4e
Update session manager and tests
ScreamingHawk Mar 13, 2025
f6eccff
Remove unused type
ScreamingHawk Mar 16, 2025
3ae1fde
Add state to session controller
ScreamingHawk Mar 16, 2025
9b631d9
Add session manage creation from state
ScreamingHawk Mar 16, 2025
b552b1b
More helper create functions
ScreamingHawk Mar 16, 2025
52c95cb
Merge pull request #2 from 0xsequence/session-manager
Agusx1211 Mar 17, 2025
5a9a45a
Encrypted pk store
Agusx1211 Mar 17, 2025
5663d01
wdk: OtpChallenge and loginWithOtp
patrislav Mar 18, 2025
89793a2
demo-wallet: common attestation generation
patrislav Mar 18, 2025
583609b
demo-wallet: implement OTP auth mode
patrislav Mar 18, 2025
75f0653
Merge branch 'wdk-otp'
patrislav Mar 18, 2025
aefd79a
Remove provider writes
Agusx1211 Mar 18, 2025
8140f80
Fix encrypted pk store
Agusx1211 Mar 18, 2025
5993c39
Basic wallet manager
Agusx1211 Mar 18, 2025
f2291ca
Add networks
Agusx1211 Mar 18, 2025
99dfcf3
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Mar 18, 2025
ffd7f35
Rename to build methods
Agusx1211 Mar 18, 2025
590a237
Fix build
ScreamingHawk Mar 18, 2025
b595f93
Add prepush build check
ScreamingHawk Mar 18, 2025
fd1638a
Fix tests
ScreamingHawk Mar 18, 2025
8323806
Add tests to prepush hook
ScreamingHawk Mar 18, 2025
f76f492
Basic local relayer
Agusx1211 Mar 19, 2025
fc44dcd
WIP Wallet on wdk
Agusx1211 Mar 19, 2025
1b85e16
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Mar 19, 2025
99846e2
Use envelopes for signing
Agusx1211 Mar 20, 2025
95cb75d
Use envelope namespace
Agusx1211 Mar 20, 2025
90cb767
Fix large blacklist support
ScreamingHawk Mar 21, 2025
a31c594
Fix session image hash
ScreamingHawk Mar 21, 2025
c6bbe5f
Merge branch 'main' of github.com:0xsequence/sequence-core into envel…
Agusx1211 Mar 21, 2025
a60daa5
WIP wdk
Agusx1211 Mar 21, 2025
893b291
Signers signatures and handlers wip
Agusx1211 Mar 22, 2025
1f1588f
Pass shared vars
Agusx1211 Mar 22, 2025
1fb73d8
Move handlers
Agusx1211 Mar 22, 2025
fe71b45
Add mnemonic handler
Agusx1211 Mar 23, 2025
f0a75b4
Merge pull request #3 from 0xsequence/envelopes
Agusx1211 Mar 23, 2025
ef9e636
Align topology in cmd
ScreamingHawk Mar 23, 2025
fcd1251
db fixes
Agusx1211 Mar 23, 2025
4682927
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Mar 23, 2025
7d1326e
Single signup flow
Agusx1211 Mar 23, 2025
38e3af7
Handlers and handle
Agusx1211 Mar 24, 2025
8a609ef
Remove redundant signers
Agusx1211 Mar 24, 2025
b0ec781
Login wip
Agusx1211 Mar 24, 2025
6e56771
add wdk methods
Agusx1211 Mar 25, 2025
c5ab10a
Wip sign
Agusx1211 Mar 25, 2025
c0226ac
Fix use no guard and weightOf config
Agusx1211 Mar 25, 2025
3c1e78f
Add type discriminator to session config leaves
ScreamingHawk Mar 23, 2025
f573dbe
Update cli message
ScreamingHawk Mar 25, 2025
e635544
Update default addresses
ScreamingHawk Mar 25, 2025
1ba88a7
Standardize imageHash as Hex.Hex
ScreamingHawk Mar 25, 2025
5091dac
Update deployed contract addresses
ScreamingHawk Mar 25, 2025
e50407d
Fix session manager tests
ScreamingHawk Mar 25, 2025
760e265
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Mar 26, 2025
83f22ee
Update checkpoint on config change
Agusx1211 Mar 26, 2025
5eb9623
Add transaction methods
Agusx1211 Mar 26, 2025
069e9db
Return full wallet rows
Agusx1211 Mar 26, 2025
9349a2a
Refactor types
Agusx1211 Mar 26, 2025
10f93de
Fix create provider
Agusx1211 Mar 27, 2025
4f5631b
hash() like functions return Hex.Hex
ScreamingHawk Mar 25, 2025
46cf85d
Basic local relayer
Agusx1211 Mar 28, 2025
e558842
Handle relayed transaction
Agusx1211 Mar 28, 2025
e77b5de
Passkey fixes
Agusx1211 Mar 28, 2025
eb3f097
Fix passkeys tree
Agusx1211 Mar 28, 2025
d8321a5
signup onExistingWallets
Agusx1211 Mar 31, 2025
c7d5b77
Handle login to mnemonic
Agusx1211 Mar 31, 2025
441a429
wip passkeys login
Agusx1211 Apr 1, 2025
db4771c
Add recovery primitives
Agusx1211 Apr 1, 2025
172e967
Fix session encoding for blacklist in CLI
ScreamingHawk Apr 1, 2025
3aa5759
onSignatureRequestUpdate should not be async
corbanbrook Apr 2, 2025
424ee08
onSignatureRequestUpdate should not be async
corbanbrook Apr 2, 2025
0c8ad01
using --list-different option on prettier format
corbanbrook Apr 2, 2025
7a5ddc5
Add recovery primitives
Agusx1211 Apr 2, 2025
d54ae14
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Apr 2, 2025
4b30af7
Fix generate random config
Agusx1211 Apr 2, 2025
5416c84
Disable digest payload hash calculation
Agusx1211 Apr 2, 2025
b153e2c
Add encode with checkpointer methods
Agusx1211 Apr 3, 2025
e09c374
wdk/identity: changes to identity-instrument
patrislav Apr 4, 2025
335e8c3
wdk/identity: signer interface
patrislav Apr 4, 2025
c064e65
wdk/dbs: auth commitments table
patrislav Apr 4, 2025
1c1625f
wdk: OTP handler
patrislav Apr 4, 2025
4807086
wdk: AuthCodePkce handler
patrislav Apr 4, 2025
7ce3834
wdk: implement OTP and AuthCodePkce
patrislav Apr 4, 2025
d828963
Fix chained encoding with checkpointer
Agusx1211 Apr 4, 2025
2a9f8cd
Merge branch 'main' of github.com:0xsequence/sequence-core
Agusx1211 Apr 4, 2025
4280fea
Fix recovery encoding
Agusx1211 Apr 5, 2025
56f369f
Passkeys CLI
Agusx1211 Apr 5, 2025
07fb3b3
Passkeys rpc fixes
Agusx1211 Apr 6, 2025
4b056af
Add self call encoding to CLI
ScreamingHawk Apr 7, 2025
5683458
Only build packages in prepush hook
ScreamingHawk Apr 7, 2025
3b7f9d7
otp: fix wrong status
patrislav Apr 7, 2025
655df74
core/state: fix wallet hex conversion
patrislav Apr 7, 2025
2831cda
wdk: onExistingWalletsWithTarget for completeRedirect
patrislav Apr 7, 2025
41197c7
Fix listener registration
patrislav Apr 8, 2025
1e6f35c
use the respond callback flow for otp
patrislav Apr 8, 2025
fd08c97
Make mnemonic work with the respond flow
patrislav Apr 8, 2025
5e21e78
Manager registerOtpUI and registerMnemonicUI should not be async
corbanbrook Apr 8, 2025
5946b33
Update the SessionManager address
ScreamingHawk Apr 8, 2025
e580903
Update deployed addresses
ScreamingHawk Apr 8, 2025
d35e0b9
Only build packages in the ci
ScreamingHawk Apr 9, 2025
25ff751
Default build command is packages
ScreamingHawk Apr 9, 2025
09e3efc
Avoid using as for type setting
ScreamingHawk Mar 30, 2025
6f6ae4f
Add sessions to manager
ScreamingHawk Mar 30, 2025
eee46dc
Update sessions configuration updates
ScreamingHawk Apr 1, 2025
3dace7f
Update comments
ScreamingHawk Apr 9, 2025
192485b
Add origin to session config updates
ScreamingHawk Apr 9, 2025
b809576
Update comment
ScreamingHawk Apr 9, 2025
eb29c7f
Update naming
ScreamingHawk Apr 9, 2025
6e593e8
Permissions require min 1
ScreamingHawk Apr 9, 2025
80aaa10
Session configuration update should increment checkpoint
ScreamingHawk Apr 14, 2025
d0578b3
prepare for v3 by moving v2 code under 'old' folder
pkieltyka Apr 14, 2025
0d4d5f9
Merge remote-tracking branch 'seq-core/main' into v3
pkieltyka Apr 14, 2025
255bfa5
clean up: move turbo boilerplate pkgs from packages/ to repo/ folder
pkieltyka Apr 14, 2025
c59a325
add packages/services and packages/utils
pkieltyka Apr 14, 2025
92cfe52
services/relayer: disable older tests
pkieltyka Apr 14, 2025
266dfcd
remove old. rename apps to extras. group core wallet pkgs in folder.
pkieltyka Apr 14, 2025
16916da
rename @0xsequence/sequence-XXX to @0xsequence/wallet-XXX
pkieltyka Apr 14, 2025
b5ebdd3
update path
pkieltyka Apr 14, 2025
6305219
various fixes after path change
pkieltyka Apr 15, 2025
98eef3c
Ignore husky. We use lefthook
ScreamingHawk Apr 15, 2025
b1a4fe9
Fix typecheck
ScreamingHawk Apr 15, 2025
8b93640
ci tests
pkieltyka Apr 15, 2025
a80092a
Merge branch 'v3' of github.com:0xsequence/sequence.js into v3
pkieltyka Apr 15, 2025
b0a6a15
Completing configuration update deletes other pending updates (#719)
ScreamingHawk Apr 15, 2025
bec2119
pnpm lint fixes
ScreamingHawk Apr 15, 2025
6247ba5
Enable lint and typecheck
ScreamingHawk Apr 15, 2025
8d86258
delete unused file
pkieltyka Apr 15, 2025
56283d7
ci: update to pnpm@v10
pkieltyka Apr 15, 2025
3d9ea1e
pnpm config, hoist eslint
pkieltyka Apr 15, 2025
3f26e74
Migrate `demo-anypay` v3
shunkakinoki Apr 15, 2025
cfe8ccd
Enhanced UI elements for better readability.
shunkakinoki Apr 15, 2025
a524517
Update payment description in HomeIndexRoute component
shunkakinoki Apr 15, 2025
00d083a
Refactor payment action display in HomeIndexRoute for improved styling
shunkakinoki Apr 15, 2025
b12d4c6
Add custom call functionality as `custom_call` for intent destination…
shunkakinoki Apr 15, 2025
d7d0c1f
Update button variants and improve layout in HomeIndexRoute for bette…
shunkakinoki Apr 15, 2025
6477c21
Refactor action click handling in HomeIndexRoute to reset custom call…
shunkakinoki Apr 15, 2025
434de7a
Enhance native token balance handling in HomeIndexRoute by including …
shunkakinoki Apr 15, 2025
7d72330
Refactor HomeIndexRoute to support both native and ERC20 token balanc…
shunkakinoki Apr 15, 2025
e490462
Refactor token selection logic in HomeIndexRoute to differentiate bet…
shunkakinoki Apr 15, 2025
ac022b9
Add chain name display in HomeIndexRoute for better context on select…
shunkakinoki Apr 15, 2025
ffaa911
Implement mock interaction handling in HomeIndexRoute, adding mock da…
shunkakinoki Apr 15, 2025
9fec65b
Add precondition checks in LocalRelayer and update exports in wallet …
shunkakinoki Apr 15, 2025
69cbf77
Filter out tokens on testnets in HomeIndexRoute to ensure only valid …
shunkakinoki Apr 15, 2025
415a0bc
Enhance LocalRelayer's relay method to support precondition checks an…
shunkakinoki Apr 15, 2025
474db0a
Merge remote-tracking branch 'origin/master' into demo-anypay-v3
shunkakinoki Apr 16, 2025
5ec6f47
Enhance wallet module by adding precondition checks in LocalRelayer, …
shunkakinoki Apr 16, 2025
a68c008
Update API and wallet module: Regenerate API types with enhance Local…
shunkakinoki Apr 16, 2025
f4ea52b
Fix pnpm lock
shunkakinoki Apr 16, 2025
ab7c9ab
Update README.md to master
shunkakinoki Apr 16, 2025
778d0d8
Refactor HomeIndexRoute to use new intent operations API. Update stat…
shunkakinoki Apr 16, 2025
16cf99d
Update dependencies in pnpm-lock.yaml and package.json for @0xsequenc…
shunkakinoki Apr 16, 2025
875eb45
Implement client-side address verification for AnyPay operations in H…
shunkakinoki Apr 16, 2025
16409b4
Enhance HomeIndexRoute with commit intent functionality and address v…
shunkakinoki Apr 17, 2025
cfe432b
Update HomeIndexRoute to enhance transaction details display. Rename …
shunkakinoki Apr 17, 2025
217d4de
Refactor HomeIndexRoute to improve UI responsiveness and add transact…
shunkakinoki Apr 17, 2025
81df5bc
Add relayer integration in HomeIndexRoute and update package dependen…
shunkakinoki Apr 17, 2025
223e635
Add rpc relayer
shunkakinoki Apr 18, 2025
804ea86
Merge remote-tracking branch 'origin/master' into demo-anypay-v3
shunkakinoki Apr 18, 2025
9618b9e
Update pnpm-lock.yaml
shunkakinoki Apr 18, 2025
6f33b56
Add balance retrieval and call methods to PkRelayer; implement precon…
shunkakinoki Apr 18, 2025
fceba7c
Add mock contract addresses and mint function ABI to test constants
shunkakinoki Apr 18, 2025
be25a6d
Enhance HomeIndexRoute with transaction receipt handling and precondi…
shunkakinoki Apr 18, 2025
121f805
Refactor HomeIndexRoute to correct origin token address assignment an…
shunkakinoki Apr 18, 2025
eb79f2f
Remove unused variable isOriginNative from HomeIndexRoute to streamli…
shunkakinoki Apr 18, 2025
0cf2648
Refactor HomeIndexRoute to enhance the display of intent operations b…
shunkakinoki Apr 18, 2025
034b970
Update HomeIndexRoute to adjust spacing in the intent operations disp…
shunkakinoki Apr 18, 2025
f2650f3
Add calculateIntentAddress function to HomeIndexRoute for improved in…
shunkakinoki Apr 18, 2025
960c9ad
Enhance HomeIndexRoute by adding origin call parameter calculations a…
shunkakinoki Apr 18, 2025
b7a7e70
Update HomeIndexRoute to include contract verification status and fil…
shunkakinoki Apr 18, 2025
4b4fdd4
Refactor HomeIndexRoute to implement a verification banner for displa…
shunkakinoki Apr 18, 2025
214ba4d
Update HomeIndexRoute to integrate lucide-react icons for improved UI…
shunkakinoki Apr 18, 2025
e0ff906
Refactor HomeIndexRoute to replace lucide-react icon components with …
shunkakinoki Apr 18, 2025
77e5ae4
Enhance HomeIndexRoute UI by adding scrollable containers for data di…
shunkakinoki Apr 18, 2025
0cbc16b
Refactor HomeIndexRoute to update the display of the returned intent …
shunkakinoki Apr 18, 2025
c1b2c69
Refactor HomeIndexRoute to replace inline SVGs with lucide-react icon…
shunkakinoki Apr 18, 2025
bc3b779
Enhance HomeIndexRoute UI by restructuring account information displa…
shunkakinoki Apr 18, 2025
94de9cc
Refactor HomeIndexRoute to enhance UI structure by adding separate ca…
shunkakinoki Apr 18, 2025
593cca5
Refactor HomeIndexRoute to improve UI layout by enhancing account and…
shunkakinoki Apr 18, 2025
280c730
Refactor HomeIndexRoute to standardize button sizes across the UI, im…
shunkakinoki Apr 18, 2025
403aa2f
Refactor HomeIndexRoute to import jsx from react/jsx-runtime for impr…
shunkakinoki Apr 18, 2025
306d806
Refactor HomeIndexRoute to enhance the RpcRelayer constructor by addi…
shunkakinoki Apr 18, 2025
1b0a047
Refactor RpcRelayer to improve balance and approval checks by adding …
shunkakinoki Apr 18, 2025
6d82058
Remove workspace dependency for @0xsequence/relayer in package.json. …
shunkakinoki Apr 18, 2025
99231b6
Refactor HomeIndexRoute to introduce a new function for finding preco…
shunkakinoki Apr 18, 2025
9085407
Update HomeIndexRoute to change success message text color from green…
shunkakinoki Apr 18, 2025
a7afd85
Enhance HomeIndexRoute by adding committed intent address state manag…
shunkakinoki Apr 20, 2025
7913772
Refactor wagmi.config.ts to utilize chains from 'viem/chains' for imp…
shunkakinoki Apr 21, 2025
2e96944
Refactor HomeIndexRoute to streamline chain switching logic by removi…
shunkakinoki Apr 21, 2025
d199fec
Update HomeIndexRoute to correct the AMOUNT constant from 30,000,000 …
shunkakinoki Apr 21, 2025
e7c2851
Add auto-execution feature in HomeIndexRoute for seamless transaction…
shunkakinoki Apr 21, 2025
ca78dd9
Add auto-execute toggle in HomeIndexRoute for improved transaction ha…
shunkakinoki Apr 21, 2025
f56e4df
Enhance error handling in HomeIndexRoute by disabling auto-execute to…
shunkakinoki Apr 21, 2025
e278190
Refactor Auto-Execute Toggle in HomeIndexRoute for improved UI layout…
shunkakinoki Apr 21, 2025
de9e4be
Refactor HomeIndexRoute to improve clarity in chain ID handling. Repl…
shunkakinoki Apr 21, 2025
c385cd5
Add operation status management in HomeIndexRoute for enhanced transa…
shunkakinoki Apr 21, 2025
af02265
Implement meta-transaction handling in HomeIndexRoute to enhance tran…
shunkakinoki Apr 21, 2025
afba4dd
Enhance TypeScript configuration and Vite setup for improved module r…
shunkakinoki Apr 22, 2025
09e77e7
Improve error handling and validation in HomeIndexRoute for chain ID …
shunkakinoki Apr 22, 2025
9813d81
Update HomeIndexRoute to include a TODO for calling Factory Deploy wh…
shunkakinoki Apr 22, 2025
f21eeff
Implement meta-transaction state management in HomeIndexRoute. Introd…
shunkakinoki Apr 22, 2025
cda3253
Refactor HomeIndexRoute to utilize meta-transactions correctly. Updat…
shunkakinoki Apr 22, 2025
7592425
Refactor API type definitions and improve code consistency in api.gen…
shunkakinoki Apr 23, 2025
3563490
Refactor HomeIndexRoute and API type definitions for consistency and …
shunkakinoki Apr 23, 2025
f8783e1
Refactor precondition handling in HomeIndexRoute to simplify the chec…
shunkakinoki Apr 23, 2025
29e8fbe
Enhance precondition status checks in HomeIndexRoute by adding a useE…
shunkakinoki Apr 23, 2025
201f0f8
Refactor HomeIndexRoute to streamline precondition checks and enhance…
shunkakinoki Apr 23, 2025
422ecc8
Implement meta-transaction retry logic in HomeIndexRoute by tracking …
shunkakinoki Apr 23, 2025
2297a85
Refactor HomeIndexRoute to simplify intent operations handling by rem…
shunkakinoki Apr 23, 2025
b72a581
Refactor API type definitions in api.gen.ts to enhance consistency an…
shunkakinoki Apr 23, 2025
ee6c9a4
Enhance HomeIndexRoute with comprehensive meta-transaction management…
shunkakinoki Apr 23, 2025
e6e1c0d
Enhance HomeIndexRoute by adding transaction ID display for both indi…
shunkakinoki Apr 23, 2025
fcf2b95
Refactor HomeIndexRoute to improve state management for meta-transact…
shunkakinoki Apr 23, 2025
b0fc289
Enhance HomeIndexRoute by adding functionality to select and send spe…
shunkakinoki Apr 23, 2025
affe4cc
Add Preconditions Status display to HomeIndexRoute for improved user …
shunkakinoki Apr 23, 2025
41c4feb
Refactor HomeIndexRoute to streamline meta-transaction sending proces…
shunkakinoki Apr 23, 2025
1afe3f4
Enhance useRelayers and HomeIndexRoute for improved meta-transaction …
shunkakinoki Apr 25, 2025
f17e0e6
Refactor HomeIndexRoute to implement a mutation-based approach for se…
shunkakinoki Apr 25, 2025
c653da5
Refactor HomeIndexRoute to enhance transaction status management and …
shunkakinoki Apr 28, 2025
8e096bf
Merge remote-tracking branch 'origin/master' into demo-anypay-v3
shunkakinoki Apr 29, 2025
5843cdc
Update contract addresses in HomeIndexRoute for improved transaction …
shunkakinoki Apr 29, 2025
955464b
Add stage2 contract address in HomeIndexRoute and export AnyPay modul…
shunkakinoki Apr 29, 2025
acd6196
Update import statements to include file extensions for consistency a…
shunkakinoki Apr 29, 2025
ff45804
Update export statement in AnyPay module to include file extension fo…
shunkakinoki Apr 29, 2025
21d75ff
Refactor AnyPay test suite to improve clarity and consistency. Update…
shunkakinoki Apr 29, 2025
5828ccc
Enhance AnyPay test suite by adding a mock provider for improved test…
shunkakinoki Apr 29, 2025
ce79069
Add export for Rpc module in wallet core relayer index for enhanced m…
shunkakinoki Apr 29, 2025
97ab300
Refactor transaction monitoring in HomeIndexRoute by replacing useMet…
shunkakinoki Apr 30, 2025
ab29a02
Refactor HomeIndexRoute to replace meta transaction status management…
shunkakinoki Apr 30, 2025
05cca06
Remove deprecated optimistic UI update logic from HomeIndexRoute, sim…
shunkakinoki Apr 30, 2025
c7aa7ae
Add gas estimation functionality to HomeIndexRoute, enhancing transac…
shunkakinoki Apr 30, 2025
e6b76c1
Removing the IntentOperation type and updating the calculateIntentCon…
shunkakinoki Apr 30, 2025
9ff1409
Add tests for calculating intent configuration address in AnyPay test…
shunkakinoki Apr 30, 2025
0585e11
Refactor HomeIndexRoute and API types to replace IntentOperation with…
shunkakinoki May 1, 2025
b57356b
Add Raw JSON Data view to HomeIndexRoute for intent calls payloads. E…
shunkakinoki May 1, 2025
91a6a3b
Add Raw JSON Data display to HomeIndexRoute for enhanced transaction …
shunkakinoki May 1, 2025
6db4ae8
Enhance HomeIndexRoute with detailed logging for intent address calcu…
shunkakinoki May 1, 2025
01add1e
Update AnyPay tests to reflect changes in mainSigner address and adju…
shunkakinoki May 1, 2025
d0b856e
Update default stage addresses in HomeIndexRoute, AnyPay tests, and c…
shunkakinoki May 2, 2025
14e74a6
Update AnyPay test to reflect the new expected address for intent con…
shunkakinoki May 6, 2025
e129d5d
Enhance logging in calculateIntentAddress function within HomeIndexRo…
shunkakinoki May 6, 2025
d054e3f
Add hashIntentParams function to compute a deterministic hash for int…
shunkakinoki May 8, 2025
5006435
Refactor hashIntentParams function to accept arrays of origin and des…
shunkakinoki May 8, 2025
807fd16
Update AnyPay tests to reflect new expected hash values and parameter…
shunkakinoki May 9, 2025
0bdf475
Refactor hashIntentParams function to improve input validation and ha…
shunkakinoki May 9, 2025
f794a77
Update AnyPay tests to reflect new expected address values for intent…
shunkakinoki May 9, 2025
389ada3
Enhance hashIntentParams function to include nonce parameter for impr…
shunkakinoki May 12, 2025
5bf8fd5
Add lifiInfos state management to HomeIndexRoute and update API types…
shunkakinoki May 19, 2025
a7052be
Add Lifi Infos section to HomeIndexRoute for displaying integration d…
shunkakinoki May 19, 2025
d72411d
Add getAnypayLifiInfoHash function to compute a hash for Anypay Lifi …
shunkakinoki May 19, 2025
90a801c
Refactor calculateIntentConfigurationAddress to include optional lifi…
shunkakinoki May 19, 2025
81a158d
Refactor buildMerkleTreeFromMembers function to use an iterative appr…
shunkakinoki May 19, 2025
c30a39b
Enhance calculateIntentAddress function in HomeIndexRoute to accept l…
shunkakinoki May 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions extras/demo-anypay/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Sequence Project Access Key (Required)
VITE_ENV=
VITE_PROJECT_ACCESS_KEY=
44 changes: 44 additions & 0 deletions extras/demo-anypay/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# env files
.env
.env.local
.env.development
.env.production
.env.test
!.env.sample
8 changes: 8 additions & 0 deletions extras/demo-anypay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cors-anywhere:
docker run -d -p 8080:8080 --dns 8.8.4.4 --name cors-anywhere testcab/cors-anywhere

cors-anywhere-stop:
docker stop cors-anywhere

cors-anywhere-start:
docker start cors-anywhere
28 changes: 28 additions & 0 deletions extras/demo-anypay/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Anypay Demo App

A simple application demonstrating Sequence Anypay intent configuration.

## Setup

1. Clone the `sequence-core` repo if you haven't already.
2. Install dependencies and build the core packages:
```bash
pnpm install
pnpm build
```
3. Copy `.env.sample` to `.env` and add your Sequence Project Access Key:
```bash
cp apps/demo-anypay/.env.sample apps/demo-anypay/.env
```
4. Run the development server:
```bash
pnpm --filter demo-anypay dev
```

## Usage

1. Open the app in your browser.
2. Connect your wallet (e.g., Metamask).
3. Select a token from your balance list.
4. Click "Pay" or "Mock Contract Interaction".
5. Observe the generated intent configuration details.
4 changes: 4 additions & 0 deletions extras/demo-anypay/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { nextJsConfig } from '@repo/eslint-config/next-js'

/** @type {import("eslint").Linter.Config} */
export default nextJsConfig
31 changes: 31 additions & 0 deletions extras/demo-anypay/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />

<title>Sequence Anypay Demo</title>

<meta
name="description"
content="Seamless and secure wallet for web3, NFTs, and crypto. Explore, play, own, and trade with Sequence, web3's most user-friendly wallet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
67 changes: 67 additions & 0 deletions extras/demo-anypay/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "demo-anypay",
"version": "0.1.0",
"type": "module",
"private": true,
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prettier": "prettier --list-different './src/**/*.{ts,tsx}'",
"prettier:fix": "prettier --list-different --write './src/**/*.{ts,tsx}'",
"format": "pnpm run lint:fix && pnpm run prettier:fix",
"preview": "vite preview",
"prepare": "husky",
"test": "echo tests are not implemented.",
"typecheck": "tsc --noEmit",
"reinstall": "rimraf -g ./node_modules && pnpm install"
},
"dependencies": {
"@0xsequence/api": "workspace:*",
"@0xsequence/design-system": "^2.1.6",
"@0xsequence/hooks": "^5.1.0",
"@0xsequence/indexer": "^2.3.9",
"@0xsequence/network": "^2.3.9",
"@0xsequence/wagmi-connector": "^4.0.1",
"@0xsequence/wallet-core": "workspace:*",
"@0xsequence/wallet-primitives": "workspace:*",
"@0xsequence/wallet-wdk": "workspace:*",
"@radix-ui/react-popover": "^1.1.6",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@tanstack/react-query": "^5.69.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"copy-to-clipboard": "^3.3.3",
"jotai": "^2.12.2",
"lucide-react": "^0.493.0",
"motion": "^12.6.2",
"ox": "^0.6.10",
"qrcode.react": "^4.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router": "^7.4.0",
"tailwindcss": "^4.0.15",
"viem": "^2.24.1",
"wagmi": "^2.14.16"
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@tailwindcss/vite": "^4.0.15",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.21.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^15.15.0",
"husky": "^9.1.7",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"typescript": "~5.7.2",
"typescript-eslint": "^8.24.1",
"vite": "^6.2.0",
"zod": "^3.24.2"
}
}
Binary file added extras/demo-anypay/public/favicon.ico
Binary file not shown.
65 changes: 65 additions & 0 deletions extras/demo-anypay/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions extras/demo-anypay/src/hooks/useAPIClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { SequenceAPIClient } from '@0xsequence/api'
import { useMemo } from 'react'
import { useConfig } from '@0xsequence/hooks'

/**
* Hook to access the Sequence API client instance.
*
* This hook provides a memoized instance of the Sequence API client that can be used
* to interact with Sequence services. The client is configured with the project's
* access key and environment-specific API URL.
*
* The API client provides access to various Sequence services including:
* - Exchange rates and pricing
* - Token swaps and quotes
* - Wallet linking and management
* - Token metadata and balances
*
* The client instance is memoized based on the project access key, meaning a new
* instance is only created when the access key changes.
*
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useAPIClient} for more detailed documentation.
*
* @returns {SequenceAPIClient} A configured instance of the Sequence API client
*
* @example
* ```tsx
* const apiClient = useAPIClient()
*
* // Get exchange rates
* const rate = await apiClient.getExchangeRate({ toCurrency: 'EUR' })
*
* // Get swap quote
* const quote = await apiClient.getSwapQuote({
* chainId: 1,
* userAddress: '0x...',
* sellCurrencyAddress: '0x...',
* buyCurrencyAddress: '0x...',
* sellAmount: '1000000000000000000'
* })
* ```
*/
export const useAPIClient = () => {
const { projectAccessKey, jwt, env } = useConfig()

const apiClient = useMemo(() => {
return new SequenceAPIClient(env.apiUrl, projectAccessKey, jwt)
}, [projectAccessKey, jwt])

return apiClient
}
Loading