@0xsequence/sessions
Advanced tools
Comparing version 0.0.0-20230621215727 to 0.0.0-20230621220927
@@ -410,11 +410,18 @@ 'use strict'; | ||
} | ||
const storeTree = _this.saveTopology(config.tree); | ||
const storeConfig = _this.store.saveConfig(imageHash, { | ||
version: 2, | ||
threshold: ethers.ethers.BigNumber.from(config.threshold).toString(), | ||
checkpoint: ethers.ethers.BigNumber.from(config.checkpoint).toString(), | ||
tree: core.v2.config.hashNode(config.tree) | ||
}); | ||
await Promise.all([storeTree, storeConfig]); | ||
// TODO: Re-enable storing partial v2 configs once | ||
// we have more performant code to reconstructing them | ||
// in the meantime, rely on the remote tracker | ||
// const storeTree = this.saveTopology(config.tree) | ||
// const storeConfig = this.store.saveConfig(imageHash, { | ||
// version: 2, | ||
// threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
// checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
// tree: v2.config.hashNode(config.tree) | ||
// }) | ||
// await Promise.all([storeTree, storeConfig]) | ||
} | ||
return; | ||
@@ -421,0 +428,0 @@ }; |
@@ -410,11 +410,18 @@ 'use strict'; | ||
} | ||
const storeTree = _this.saveTopology(config.tree); | ||
const storeConfig = _this.store.saveConfig(imageHash, { | ||
version: 2, | ||
threshold: ethers.ethers.BigNumber.from(config.threshold).toString(), | ||
checkpoint: ethers.ethers.BigNumber.from(config.checkpoint).toString(), | ||
tree: core.v2.config.hashNode(config.tree) | ||
}); | ||
await Promise.all([storeTree, storeConfig]); | ||
// TODO: Re-enable storing partial v2 configs once | ||
// we have more performant code to reconstructing them | ||
// in the meantime, rely on the remote tracker | ||
// const storeTree = this.saveTopology(config.tree) | ||
// const storeConfig = this.store.saveConfig(imageHash, { | ||
// version: 2, | ||
// threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
// checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
// tree: v2.config.hashNode(config.tree) | ||
// }) | ||
// await Promise.all([storeTree, storeConfig]) | ||
} | ||
return; | ||
@@ -421,0 +428,0 @@ }; |
@@ -406,11 +406,18 @@ import { v2, v1, universal, commons } from '@0xsequence/core'; | ||
} | ||
const storeTree = _this.saveTopology(config.tree); | ||
const storeConfig = _this.store.saveConfig(imageHash, { | ||
version: 2, | ||
threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
tree: v2.config.hashNode(config.tree) | ||
}); | ||
await Promise.all([storeTree, storeConfig]); | ||
// TODO: Re-enable storing partial v2 configs once | ||
// we have more performant code to reconstructing them | ||
// in the meantime, rely on the remote tracker | ||
// const storeTree = this.saveTopology(config.tree) | ||
// const storeConfig = this.store.saveConfig(imageHash, { | ||
// version: 2, | ||
// threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
// checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
// tree: v2.config.hashNode(config.tree) | ||
// }) | ||
// await Promise.all([storeTree, storeConfig]) | ||
} | ||
return; | ||
@@ -417,0 +424,0 @@ }; |
{ | ||
"name": "@0xsequence/sessions", | ||
"version": "0.0.0-20230621215727", | ||
"version": "0.0.0-20230621220927", | ||
"description": "tools for migrating sequence wallets to new versions", | ||
@@ -14,5 +14,5 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/sessions", | ||
"idb": "^7.1.1", | ||
"@0xsequence/core": "0.0.0-20230621215727", | ||
"@0xsequence/migration": "0.0.0-20230621215727", | ||
"@0xsequence/replacer": "0.0.0-20230621215727" | ||
"@0xsequence/core": "0.0.0-20230621220927", | ||
"@0xsequence/migration": "0.0.0-20230621220927", | ||
"@0xsequence/replacer": "0.0.0-20230621220927" | ||
}, | ||
@@ -23,4 +23,4 @@ "devDependencies": { | ||
"nyc": "^15.1.0", | ||
"@0xsequence/signhub": "0.0.0-20230621215727", | ||
"@0xsequence/tests": "0.0.0-20230621215727" | ||
"@0xsequence/signhub": "0.0.0-20230621220927", | ||
"@0xsequence/tests": "0.0.0-20230621220927" | ||
}, | ||
@@ -27,0 +27,0 @@ "files": [ |
@@ -113,11 +113,15 @@ import { commons, universal, v1, v2 } from '@0xsequence/core' | ||
const storeTree = this.saveTopology(config.tree) | ||
const storeConfig = this.store.saveConfig(imageHash, { | ||
version: 2, | ||
threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
tree: v2.config.hashNode(config.tree) | ||
}) | ||
// TODO: Re-enable storing partial v2 configs once | ||
// we have more performant code to reconstructing them | ||
// in the meantime, rely on the remote tracker | ||
await Promise.all([storeTree, storeConfig]) | ||
// const storeTree = this.saveTopology(config.tree) | ||
// const storeConfig = this.store.saveConfig(imageHash, { | ||
// version: 2, | ||
// threshold: ethers.BigNumber.from(config.threshold).toString(), | ||
// checkpoint: ethers.BigNumber.from(config.checkpoint).toString(), | ||
// tree: v2.config.hashNode(config.tree) | ||
// }) | ||
// await Promise.all([storeTree, storeConfig]) | ||
} | ||
@@ -124,0 +128,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289504
7421
+ Added@0xsequence/abi@0.0.0-20230621220927(transitive)
+ Added@0xsequence/core@0.0.0-20230621220927(transitive)
+ Added@0xsequence/guard@0.0.0-20230621220927(transitive)
+ Added@0xsequence/indexer@0.0.0-20230621220927(transitive)
+ Added@0xsequence/migration@0.0.0-20230621220927(transitive)
+ Added@0xsequence/network@0.0.0-20230621220927(transitive)
+ Added@0xsequence/relayer@0.0.0-20230621220927(transitive)
+ Added@0xsequence/replacer@0.0.0-20230621220927(transitive)
+ Added@0xsequence/signhub@0.0.0-20230621220927(transitive)
+ Added@0xsequence/utils@0.0.0-20230621220927(transitive)
+ Added@0xsequence/wallet@0.0.0-20230621220927(transitive)
- Removed@0xsequence/abi@0.0.0-20230621215727(transitive)
- Removed@0xsequence/core@0.0.0-20230621215727(transitive)
- Removed@0xsequence/guard@0.0.0-20230621215727(transitive)
- Removed@0xsequence/indexer@0.0.0-20230621215727(transitive)
- Removed@0xsequence/migration@0.0.0-20230621215727(transitive)
- Removed@0xsequence/network@0.0.0-20230621215727(transitive)
- Removed@0xsequence/relayer@0.0.0-20230621215727(transitive)
- Removed@0xsequence/replacer@0.0.0-20230621215727(transitive)
- Removed@0xsequence/signhub@0.0.0-20230621215727(transitive)
- Removed@0xsequence/utils@0.0.0-20230621215727(transitive)
- Removed@0xsequence/wallet@0.0.0-20230621215727(transitive)