Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
cf7bcc1
Add encode signature method
Agusx1211 Nov 8, 2022
d82eb0e
Use generics for v1-v2 coders
Agusx1211 Nov 11, 2022
5f620ea
Add signing orchestrator
Agusx1211 Nov 11, 2022
89175b6
Initial commit new wallet class
Agusx1211 Nov 11, 2022
b61ab61
Expand new wallet class functionality
Agusx1211 Nov 15, 2022
38fbe2c
Initial commit migration framework
Agusx1211 Nov 18, 2022
3d57a20
Account v2 initial commit
Agusx1211 Nov 25, 2022
53f72d7
Add test utils package
Agusx1211 Nov 28, 2022
37ecf7d
Delete unused wallet code and start v2 tests
Agusx1211 Nov 29, 2022
8ac6fb1
Signature v2 encoding fixes
Agusx1211 Nov 30, 2022
7ddcbe7
Signature encoding fixes and more tests
Agusx1211 Dec 2, 2022
36fab36
Remove unused wallet tests
Agusx1211 Dec 5, 2022
c69c478
Start work on local config tracker
Agusx1211 Dec 5, 2022
3d61a63
Config to json and test v2 session configs
Agusx1211 Dec 6, 2022
ed6be6f
Implement counterfactual addresses
Agusx1211 Dec 6, 2022
afc93e6
Add lazy-octopus presigned implementation
Agusx1211 Dec 7, 2022
bea538b
Wip chained configuration tests
Agusx1211 Dec 12, 2022
df6ec71
Fix simple sessions test
Agusx1211 Dec 13, 2022
8982aaf
Simplify tracker, fixes and tests
Agusx1211 Dec 13, 2022
e5cb370
Add witnesses tracking
Agusx1211 Dec 13, 2022
7c40a73
Fix build and create accounts
Agusx1211 Dec 14, 2022
2a51e0b
Implement account methods & tests
Agusx1211 Dec 15, 2022
352fe4b
Fix chained signatures ordering and test multiple updates
Agusx1211 Dec 16, 2022
3343e20
Fixes and account tests
Agusx1211 Dec 19, 2022
c5b389e
Implement local migration tracking
Agusx1211 Dec 19, 2022
1c0c9d3
Migration tweaks
Agusx1211 Dec 20, 2022
06e0ec5
WIP Fix account migrations
Agusx1211 Dec 20, 2022
4babbd7
sufix -> suffix
attente Dec 21, 2022
bdd8885
uknown -> unknown
attente Dec 21, 2022
1f3e18e
subidgest -> subdigest
attente Dec 21, 2022
38538ef
imagehash -> image hash
attente Dec 21, 2022
cb26cdb
bignumber -> big number
attente Dec 21, 2022
f05f9c1
chaind -> chain id
attente Dec 21, 2022
38ca353
chaind -> sequence api
attente Dec 21, 2022
9417e32
chaindId -> chainId
attente Dec 21, 2022
04e7dea
siganture -> signature
attente Dec 21, 2022
33e9d4b
migration: fix isValidVersionedContext off-by-one
attente Dec 21, 2022
a312eb7
Add nonce to migrations
Agusx1211 Dec 21, 2022
8cafc6d
Fix migrations should apply on only given chain
Agusx1211 Dec 21, 2022
5e8e312
Test migrating a partially deployed wallet
Agusx1211 Dec 22, 2022
0b98f19
Fix migrate and sync accounts
Agusx1211 Dec 24, 2022
cf01a4d
Fix internal versions
Agusx1211 Jan 3, 2023
5d8ad66
Fix tests and github workflow
Agusx1211 Jan 3, 2023
d5ad85b
Install PNPM GA
Agusx1211 Jan 3, 2023
110c561
Update pnpm lock
Agusx1211 Jan 3, 2023
1507c78
Add signhub as account dev dependency
Agusx1211 Jan 3, 2023
c7124a9
Cleanup internal dependencies
Agusx1211 Jan 3, 2023
fa88980
Reimplement session using new account class
Agusx1211 Jan 4, 2023
42fa654
Add validate sequence undeployed proof
Agusx1211 Jan 5, 2023
e596d5b
Fix recover chained signature
Agusx1211 Jan 5, 2023
9c59fa2
fix longest path logic
attente Jan 5, 2023
e434849
Enable all session tests
Agusx1211 Jan 5, 2023
d0cb583
Migration fixes account
Agusx1211 Jan 5, 2023
282b35e
Fix and test migrate old session
Agusx1211 Jan 5, 2023
2da358f
chainid -> chain id
attente Jan 5, 2023
cd1ba2c
remove checkpoint parameter from loadPresignedConfiguration
attente Jan 5, 2023
c8c6684
infer fromVersion in saveMigration()
attente Jan 6, 2023
b60a1b4
infer chainId in saveMigration()
attente Jan 6, 2023
05fab38
use the guest module of on-chain version, not the last migration
attente Jan 6, 2023
62526e1
validate migrations and fix lastMigration
attente Jan 6, 2023
c9539c9
Add migrate old sessions tests
Agusx1211 Jan 6, 2023
140f30b
Fix wallet tests - reader
Agusx1211 Jan 6, 2023
545f893
Fix account tests wait second provider
Agusx1211 Jan 12, 2023
8ee9c83
Remove redundant packages
Agusx1211 Jan 12, 2023
c0aacd1
Initial relayer re-implementation
Agusx1211 Jan 12, 2023
c8b5ccd
Re-implement relayer tests
Agusx1211 Jan 13, 2023
51d2094
Re-write estimator for Sequence v2
Agusx1211 Jan 13, 2023
2414e74
Fix dynamic signature encoding
Agusx1211 Jan 16, 2023
a1d0ca7
Fix race condition on orchestrator
Agusx1211 Jan 16, 2023
20c17fd
Use predefined addresses as context testing if available
Agusx1211 Jan 16, 2023
1c223c1
Add Sequence orchestrator wrapper and tests for nested
Agusx1211 Jan 16, 2023
5f55889
Migrate estimator tests to v2
Agusx1211 Jan 16, 2023
2912813
Reenable simulator tests
Agusx1211 Jan 17, 2023
a6f5f0f
Add orchestrator fixes and tests
Agusx1211 Jan 17, 2023
c4dda58
Update provider package
Agusx1211 Jan 17, 2023
aa055c0
Update wallet request handler
Agusx1211 Jan 17, 2023
a92f062
Wip migrate 0xsequence package
Agusx1211 Jan 18, 2023
d461b22
Fix base wallet transport ser default network
Agusx1211 Jan 19, 2023
dfe6974
Use singleton factory for testing
Agusx1211 Jan 19, 2023
58447bf
Transport fixes and re-implement dapp tests 1
Agusx1211 Jan 20, 2023
ccf005b
Fixes default transport chain and dapp2 tests
Agusx1211 Jan 20, 2023
f949c3e
Update pnpm-lock
Agusx1211 Jan 22, 2023
4fcb3ce
Update husky
Agusx1211 Jan 22, 2023
c5896a7
Fix internal versioning
Agusx1211 Jan 22, 2023
cab9d99
Re-enable window transport tests
Agusx1211 Jan 22, 2023
017d32c
Deploy with lower gas limit for geth
Agusx1211 Jan 22, 2023
c322ef0
Remove authChain from networks
Agusx1211 Jan 23, 2023
f171cf5
Move versioned context to commons
Agusx1211 Jan 23, 2023
991880e
Add support for metadata on orchestrator
Agusx1211 Jan 23, 2023
7492cc9
Implement guard orchestrator signer
Agusx1211 Jan 24, 2023
3e6e8f4
Test metadata on orchestrator
Agusx1211 Jan 24, 2023
c7459d0
Assign ids on orchestrator
Agusx1211 Jan 24, 2023
5a55ae9
Create JsonRPCProvider on account
Agusx1211 Jan 25, 2023
8b770d8
removeSigners and getAllSigners
Agusx1211 Jan 25, 2023
c21d288
Implement account editConfig
Agusx1211 Jan 26, 2023
dd878c6
Use typed tracked store
Agusx1211 Jan 26, 2023
83c876d
Add IndexedDB local store implementation
Agusx1211 Jan 26, 2023
7cf2f9c
Use correct intent id on wallet
Agusx1211 Jan 27, 2023
4e54f33
Implement multiple tracker client
Agusx1211 Jan 30, 2023
8d040be
Fix dependencies
Agusx1211 Jan 31, 2023
e1808cb
counter factual -> counterfactual
attente Feb 1, 2023
24abe69
sessions: require config for saveCounterfactualWallet
attente Feb 2, 2023
2db486d
sessions: require config for savePresignedConfiguration
attente Feb 2, 2023
d1d89a4
migration: save toConfig in saveMigration
attente Feb 2, 2023
e48961c
migration: remove UnsignedMigration.toImageHash
attente Feb 2, 2023
60bdf91
Use suffix intead of isEOA
Agusx1211 Feb 2, 2023
dff7ed0
Add editConfig on account migration
Agusx1211 Feb 2, 2023
37582a2
Test edit config
Agusx1211 Feb 2, 2023
f3c6f48
Better naming editConfig on session
Agusx1211 Feb 2, 2023
671c4d5
Unify mainnets and testnets
Agusx1211 Feb 2, 2023
5596477
fixup! Better naming editConfig on session
attente Feb 4, 2023
79c03e3
fixup! Reimplement session using new account class
attente Feb 5, 2023
260ad04
Use new guard API
Agusx1211 Feb 8, 2023
289edb7
fixup! Reimplement session using new account class
attente Feb 10, 2023
851c4cb
EIP1271 local tracker fixes
Agusx1211 Feb 13, 2023
56bd11a
Use self-computed intent id as metaTxn reference
Agusx1211 Feb 14, 2023
3e7ca86
Implement candidate signing on orchestrator
Agusx1211 Feb 15, 2023
4c1cc43
Pass candidates to orchestrator on wallet
Agusx1211 Feb 15, 2023
b5eae98
sessions: saveWitness -> saveWitnesses
attente Feb 13, 2023
c209b72
auth: add option for deterministic tests
attente Feb 10, 2023
c2f7ac4
account: add option for deterministic tests
attente Feb 14, 2023
fad23fd
sessions: normalize configs in tests
attente Feb 14, 2023
90089e0
sessions: DebugConfigTracker
attente Feb 7, 2023
2a0c374
sessions: sessions service bindings
attente Feb 3, 2023
58cd89c
sessions: RemoteConfigTracker
attente Feb 3, 2023
607b44b
Add cache and deduped for tracker
Agusx1211 Feb 22, 2023
8eebaec
Fix deduped scope
Agusx1211 Feb 23, 2023
71af085
Avoid duplicated guard sign requests
Agusx1211 Feb 23, 2023
54bb0de
Cache EIP5719
Agusx1211 Feb 24, 2023
a492d68
Do not set default networks if networks not defined
Agusx1211 Feb 24, 2023
f82ef7b
Skip wallet update if no new signers are added
Agusx1211 Feb 28, 2023
d3bf78e
Disable EIP5719
Agusx1211 Feb 28, 2023
cddfc32
Simple cache for isdeployed
Agusx1211 Feb 28, 2023
22ef527
Only save recoverable witnesses
Agusx1211 Feb 28, 2023
b9ded18
Add build stub signature interface
Agusx1211 Feb 28, 2023
2ca455c
Implement account prepareTransactions method
Agusx1211 Feb 28, 2023
1f70943
core: naive buildStubSignature
attente Mar 1, 2023
b77578c
Implement account prepareTransactions method
Agusx1211 Feb 28, 2023
fc8c080
Skip relayer for network zero
Agusx1211 Mar 1, 2023
c1b81e3
Use valid s value for stub signature
Agusx1211 Mar 1, 2023
2d3e77b
Use real signature as stub signature
Agusx1211 Mar 1, 2023
37a6d42
Add sequenceApiChainId to sessions config
Agusx1211 Mar 2, 2023
b607863
auth: no auth for indexer
attente Mar 2, 2023
3447881
fixup! Add sequenceApiChainId to sessions config
attente Mar 3, 2023
815fdc1
fixup! Add validate sequence undeployed proof
attente Mar 3, 2023
3be4711
auth: set chain id for ethauth validators
attente Mar 3, 2023
b2511a2
Fix recover v2 chained signature
Agusx1211 Mar 3, 2023
62bfbaa
sessions: use replacement signature
attente Mar 6, 2023
fe5eec0
sessions: only use eip-5719 if enabled
attente Mar 6, 2023
2560daf
sessions: replace signatures concurrently
attente Mar 6, 2023
2281ba5
Add predecoration for sending txs from accounts
Agusx1211 Mar 7, 2023
d14a769
core: context -> contexts
attente Mar 7, 2023
e5e2a71
sessions: concurrent allSafe
attente Mar 7, 2023
daed3c7
sessions: concurrent CachedTracker.loadPresignedConfiguration
attente Mar 8, 2023
79a900f
sessions: load left and right subtrees concurrently
attente Mar 8, 2023
8fa0619
sessions: cache configs a bit more
attente Mar 8, 2023
53bd7df
account: remove unnecessary sync point
attente Mar 8, 2023
90e5bc7
utils: promise cache
attente Mar 8, 2023
8045aa1
Backfeed only to cache
Agusx1211 Mar 9, 2023
90f52f0
Accept provider on networks
Agusx1211 Mar 9, 2023
2ac4f58
Do not create failed promise
Agusx1211 Mar 9, 2023
9ae000b
Predecorate transactions on gas estimation
Agusx1211 Mar 9, 2023
60ff013
utils: generate cache key deterministically
attente Mar 9, 2023
0b22414
sessions: don't fire too many concurrent requests when saving presign…
attente Mar 9, 2023
3de289f
Revert "Do not create failed promise"
attente Mar 9, 2023
25e3779
utils: suppress error
attente Mar 9, 2023
2d09453
Revert "Accept provider on networks"
attente Mar 9, 2023
a946903
Test fixes
Agusx1211 Mar 9, 2023
b894c92
Accept provider on networks
Agusx1211 Mar 9, 2023
244bc81
Add key to migrations local store
Agusx1211 Mar 10, 2023
7494ba8
utils: clean up PromiseCache
attente Mar 10, 2023
6be4022
Make jump index non-unique
Agusx1211 Mar 10, 2023
086e626
Fix signature v1 decoding
Agusx1211 Mar 10, 2023
8226822
provider: fix WalletRequestHandler.findNetworkID
attente Mar 10, 2023
97225ee
Use on-chain config for ethauth proof signing
Agusx1211 Mar 13, 2023
65b40b5
Add onMigration callback
Agusx1211 Mar 20, 2023
d0dd16c
provider: don't get chain id from signer in signAuthorization
attente Mar 20, 2023
c988251
provider: use ConnectOptions.networkId if provided
attente Mar 21, 2023
27f728a
provider: don't assume provider is JsonRpcProvider
attente Mar 23, 2023
9e7bcb7
network: formatting
attente Mar 23, 2023
b13410f
provider: add sequenceVerified option for signing methods
attente Mar 23, 2023
05597cd
clean up imports
attente Mar 25, 2023
f85630a
workspace:*
attente Mar 25, 2023
f3d88c6
network, provider: remove dependency cycle
attente Mar 26, 2023
2b4119d
relayer: remove self-dependency
attente Mar 26, 2023
6e1ce26
relayer: remove unused @0xsequence/network dependency
attente Mar 27, 2023
ff08304
network: remove unused @0xsequence/migration dependency
attente Mar 27, 2023
e32a3b8
auth, provider: remove dependency cycle
attente Mar 27, 2023
381f11b
Add callback on sign transaction
Agusx1211 Mar 30, 2023
6db429f
pnpm i
attente Apr 5, 2023
cb4b108
Do onchain boostrap for ex authchain if migrated wallet
Agusx1211 Apr 5, 2023
f924d09
Fix connect to network using name
Agusx1211 Apr 10, 2023
844204c
Show sessions even with no presigned config changes
Agusx1211 Apr 12, 2023
83c2f80
Fix toImageHash on migration
Agusx1211 Apr 12, 2023
8df3557
Skip migration on session if native v2
Agusx1211 Apr 25, 2023
de90303
Reduce requests and locking
Agusx1211 Apr 26, 2023
59b8303
Fix session changes on migration
Agusx1211 Apr 27, 2023
7a9587e
network: NetworkConfig.isAuthChain
attente Apr 27, 2023
f874529
Fix stale status on migration
Agusx1211 Apr 27, 2023
70c1539
Updating actions to use pnpm 8
corbanbrook Apr 27, 2023
87ee0b1
Updating dev deps
corbanbrook Apr 27, 2023
6d05308
fixup! network: NetworkConfig.isAuthChain
attente Apr 28, 2023
34c879e
provider: ConnectOptions.authorizeVersion
attente May 2, 2023
37d072b
backward compatible getWalletState
attente May 3, 2023
a94a83d
backward compatible getWalletConfig
attente May 3, 2023
4c0a0b1
network: findNetworkConfig by stringified chain id
attente May 4, 2023
c36e9ec
Use guestModule intent on deploy bootstrap
Agusx1211 May 10, 2023
ca6794a
Continue migration even with broken chains
Agusx1211 May 10, 2023
fac2ce1
Fix lint let to const
Agusx1211 May 11, 2023
dc6d1ca
Fix find defaultNetwork notify networks
Agusx1211 May 15, 2023
b842265
network: fix import
attente May 24, 2023
4629f4b
pnpm i
attente Jun 6, 2023
e1a97d8
Add stub transaction when sending empty transaction list
Agusx1211 Jun 6, 2023
2d9c1e0
Merge branch 'master' into v2
attente Jun 14, 2023
f652f11
Don't throw if local tracker can't find migration
Agusx1211 Jun 21, 2023
e6d2812
Fix, wallet deploy on cannot onchain validate
Agusx1211 Jun 21, 2023
7a39110
Store complete v2 configs when possible
Agusx1211 Jun 21, 2023
94cc60e
More agressive store of full v2 configs
Agusx1211 Jun 21, 2023
bc01e64
use getDefaultConnectionInfo to wrap url in default fetch settings in…
corbanbrook Jun 21, 2023
e42ccb0
Disable storing partial v2 configs
Agusx1211 Jun 21, 2023
2e04c29
Fix false positive isSubdigestLeaf
Agusx1211 Jun 22, 2023
095138e
Add trim signature method
Agusx1211 Jun 22, 2023
76506aa
Double check tracker status on critical data write
Agusx1211 Jun 22, 2023
a3ee5ab
Trim bootstrap signature
Agusx1211 Jun 22, 2023
ac630fc
Don't use nodes when trimming addresses
Agusx1211 Jun 22, 2023
d3e84d9
Fix sessions tests
Agusx1211 Jun 22, 2023
2462dc9
Re-order migration double check
Agusx1211 Jun 22, 2023
218f843
remove dependency cycle
attente Jun 22, 2023
8c11fd8
Fix pass signature parts to guard signer
Agusx1211 Jun 26, 2023
5af558c
Skip config check if both results are equal
Agusx1211 Jun 27, 2023
e521953
Improve happy paths and add memory cache
Agusx1211 Jun 27, 2023
074d752
Fix skip signature without signers
Agusx1211 Jun 27, 2023
78e71ef
Merge pull request #380 from 0xsequence/v2-faster-local-2
Agusx1211 Jun 28, 2023
91756e6
Default to sequenceVerified = true
Agusx1211 Jun 28, 2023
83e8bf7
Pass authorizeVersion == 2
Agusx1211 Jun 28, 2023
9ccfc03
Sometimes handleConfirmWalletDeployPrompt needs to act even when sequ…
Agusx1211 Jun 28, 2023
8137403
Remove duplicated defaultChainId on wallet request handler (#381)
Agusx1211 Jun 28, 2023
616ede2
Util for trimming EIP-191 prefix (#382)
tolgahan-arikan Jun 28, 2023
368e1c4
Merge pull request #383 from 0xsequence/v2-avoid-unrequired-deploy
Agusx1211 Jun 29, 2023
398e6f4
Exporting a PreparedTransactions interface and renaming options and q…
corbanbrook Jun 29, 2023
ca8bf8a
Implement EIP-6492 for account and validate
Agusx1211 Jun 29, 2023
3f678c3
Use EIP6492 on wallet request handler
Agusx1211 Jun 29, 2023
fb8958b
Use EIP6492 for authorization
Agusx1211 Jun 29, 2023
a294c7b
Pass EIP6492 inside MsgToSign
Agusx1211 Jun 29, 2023
2d7bdca
Use EIP-6492 for proofString sign
Agusx1211 Jul 3, 2023
908005e
Use EIP-6492 for client side validation testing
Agusx1211 Jul 5, 2023
83a2400
Merge pull request #384 from 0xsequence/v2-eip6492
Agusx1211 Jul 10, 2023
201a821
Fix bad relayer url gen (#390)
Agusx1211 Jul 11, 2023
2fe2206
Merge branch 'master' of github.com:0xsequence/sequence.js into v2
Agusx1211 Jul 12, 2023
1a5308b
Update readme
Agusx1211 Jul 12, 2023
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
58 changes: 42 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,32 @@ jobs:
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter abi test

tests-api:
name: Run api tests
test-account:
name: Run account tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter api test
- run: pnpm --filter account test

tests-auth:
name: Run auth tests
tests-api:
name: Run api tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter auth test
- run: pnpm --filter api test

tests-config:
name: Run config tests
tests-auth:
name: Run auth tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter config test

- run: pnpm --filter auth test
tests-deployer:
name: Run deployer tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -111,6 +110,15 @@ jobs:
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter metadata test

tests-migration:
name: Run migrations tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter migration test

tests-multicall:
name: Run multicall tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -147,23 +155,41 @@ jobs:
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter relayer test

tests-simulator:
name: Run simulator tests
tests-replacer:
name: Run replacer tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter simulator test
- run: pnpm --filter replacer test

tests-sessions:
name: Run sessions tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter sessions test

tests-transactions:
name: Run transactions tests
tests-signhub:
name: Run signhub tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter transactions test
- run: pnpm --filter signhub test

tests-simulator:
name: Run simulator tests
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
- run: pnpm --filter simulator test

tests-utils:
name: Run utils tests
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ or
- [@0xsequence/abi](./packages/abi)
- [@0xsequence/api](./packages/api)
- [@0xsequence/auth](./packages/auth)
- [@0xsequence/config](./packages/config)
- [@0xsequence/core](./packages/core)
- [@0xsequence/deployer](./packages/deployer)
- [@0xsequence/guard](./packages/guard)
- [@0xsequence/multicall](./packages/multicall)
- [@0xsequence/network](./packages/network)
- [@0xsequence/provider](./packages/provider)
- [@0xsequence/relayer](./packages/relayer)
- [@0xsequence/transactions](./packages/transactions)
- [@0xsequence/replacer](./packages/replacer)
- [@0xsequence/sessions](./packages/sessions)
- [@0xsequence/signhub](./packages/signhub)
- [@0xsequence/utils](./packages/utils)
- [@0xsequence/wallet](./packages/wallet)

Expand Down
32 changes: 15 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dev": "preconstruct dev",
"postinstall": "preconstruct dev",
"coverage": "rimraf ./coverage && rimraf ./.nyc_output && nyc pnpm test",
"prepare": "husky-run install"
"prepare": "husky install"
},
"husky": {
"hooks": {
Expand All @@ -33,7 +33,6 @@
"@0xsequence/abi": "workspace:*",
"@0xsequence/api": "workspace:*",
"@0xsequence/auth": "workspace:*",
"@0xsequence/config": "workspace:*",
"@0xsequence/deployer": "workspace:*",
"@0xsequence/estimator": "workspace:*",
"@0xsequence/guard": "workspace:*",
Expand All @@ -44,40 +43,39 @@
"@0xsequence/provider": "workspace:*",
"@0xsequence/relayer": "workspace:*",
"@0xsequence/simulator": "workspace:*",
"@0xsequence/transactions": "workspace:*",
"@0xsequence/utils": "workspace:*",
"@0xsequence/wallet": "workspace:*",
"@babel/core": "^7.20.2",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"@babel/preset-env": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@babel/runtime": "^7.21.0",
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.2",
"@changesets/cli": "^2.26.1",
"@preconstruct/cli": "^2.2.2",
"@types/chai": "^4.2.22",
"@types/chai-as-promised": "^7.1.4",
"@types/mocha": "^10.0.0",
"@types/node": "^18.11.17",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@types/node": "^18.16.1",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"ava": "^3.15.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"concurrently": "^7.5.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^5.7.2",
"express": "^4.18.2",
"hardhat": "^2.12.2",
"husky": "4.3.8",
"husky": "^8.0.0",
"mocha": "^10.1.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"prettier": "^2.8.8",
"puppeteer": "^19.7.2",
"rimraf": "^3.0.2",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
"tsx": "^3.12.1",
"typescript": "~4.9.4",
Expand Down
34 changes: 19 additions & 15 deletions packages/0xsequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,30 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@0xsequence/abi": "^0.43.34",
"@0xsequence/api": "^0.43.34",
"@0xsequence/auth": "^0.43.34",
"@0xsequence/config": "^0.43.34",
"@0xsequence/guard": "^0.43.34",
"@0xsequence/indexer": "^0.43.34",
"@0xsequence/metadata": "^0.43.34",
"@0xsequence/multicall": "^0.43.34",
"@0xsequence/network": "^0.43.34",
"@0xsequence/provider": "^0.43.34",
"@0xsequence/relayer": "^0.43.34",
"@0xsequence/transactions": "^0.43.34",
"@0xsequence/utils": "^0.43.34",
"@0xsequence/wallet": "^0.43.34"
"@0xsequence/abi": "workspace:*",
"@0xsequence/account": "workspace:*",
"@0xsequence/api": "workspace:*",
"@0xsequence/auth": "workspace:*",
"@0xsequence/core": "workspace:*",
"@0xsequence/guard": "workspace:*",
"@0xsequence/indexer": "workspace:*",
"@0xsequence/metadata": "workspace:*",
"@0xsequence/migration": "workspace:*",
"@0xsequence/multicall": "workspace:*",
"@0xsequence/network": "workspace:*",
"@0xsequence/provider": "workspace:*",
"@0xsequence/relayer": "workspace:*",
"@0xsequence/sessions": "workspace:*",
"@0xsequence/signhub": "workspace:*",
"@0xsequence/utils": "workspace:*",
"@0xsequence/wallet": "workspace:*"
},
"peerDependencies": {
"ethers": ">=5.5 < 6"
},
"devDependencies": {
"@0xsequence/wallet-contracts": "1.10.0",
"@0xsequence/tests": "workspace:*",
"@0xsequence/wallet-contracts": "^1.10.0",
"@babel/plugin-transform-runtime": "^7.19.6",
"babel-loader": "^9.1.0",
"ethers": "^5.7.2",
Expand Down
1 change: 1 addition & 0 deletions packages/0xsequence/src/account.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@0xsequence/account'
6 changes: 0 additions & 6 deletions packages/0xsequence/src/config.ts

This file was deleted.

6 changes: 6 additions & 0 deletions packages/0xsequence/src/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { commons } from '@0xsequence/core'

export * from '@0xsequence/core'

export type Config = commons.config.Config
export type WalletContext = commons.context.WalletContext
1 change: 1 addition & 0 deletions packages/0xsequence/src/migration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@0xsequence/migration'
3 changes: 1 addition & 2 deletions packages/0xsequence/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export type {
JsonRpcMiddlewareHandler,
NetworkConfig,
ChainId,
ChainIdLike,
WalletContext
ChainIdLike
} from '@0xsequence/network'
6 changes: 5 additions & 1 deletion packages/0xsequence/src/sequence.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * as abi from './abi'
export * as api from './api'
export * as auth from './auth'
export * as config from './config'
export * as guard from './guard'
export * as indexer from './indexer'
export * as metadata from './metadata'
Expand All @@ -11,6 +10,11 @@ export * as provider from './provider'
export * as relayer from './relayer'
export * as transactions from './transactions'
export * as utils from './utils'
export * as core from './core'
export * as signhub from './signhub'
export * as sessions from './sessions'
export * as migration from './migration'
export * as account from './account'

export {
initWallet,
Expand Down
1 change: 1 addition & 0 deletions packages/0xsequence/src/sessions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@0xsequence/sessions'
2 changes: 2 additions & 0 deletions packages/0xsequence/src/signhub.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from '@0xsequence/signhub'
19 changes: 9 additions & 10 deletions packages/0xsequence/src/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export * from '@0xsequence/transactions'
import { commons } from '@0xsequence/core'

export type {
Transaction,
TransactionEncoded,
TransactionRequest,
TransactionResponse,
NonceDependency,
Transactionish,
SignedTransactions,
} from '@0xsequence/transactions'
export const transactions = commons.transaction

export type Transaction = commons.transaction.Transaction
export type TransactionEncoded = commons.transaction.TransactionEncoded
export type TransactionResponse = commons.transaction.TransactionResponse
export type Transactionish = commons.transaction.Transactionish
export type SignedTransactionBundle = commons.transaction.SignedTransactionBundle
export type RelayReadyTransactionBundle = commons.transaction.RelayReadyTransactionBundle
6 changes: 3 additions & 3 deletions packages/0xsequence/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export * from '@0xsequence/utils'

export {
isValidSignature,
isValidMessageSignature,
isValidTypedDataSignature,
recoverWalletConfig,
// isValidMessageSignature,
// isValidTypedDataSignature,
// recoverWalletConfig,
isWalletUpToDate
} from '@0xsequence/provider'

Expand Down
Loading