@0xsequence/account 2.0.24 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var abi = require('@0xsequence/abi');
|
|
6
6
|
var core = require('@0xsequence/core');
|
|
7
7
|
var migration = require('@0xsequence/migration');
|
|
8
|
+
var network = require('@0xsequence/network');
|
|
8
9
|
var relayer = require('@0xsequence/relayer');
|
|
9
10
|
var utils = require('@0xsequence/utils');
|
|
10
11
|
var wallet = require('@0xsequence/wallet');
|
|
@@ -693,9 +694,16 @@ class Account {
|
|
|
693
694
|
|
|
694
695
|
// Add wallet deployment if needed
|
|
695
696
|
if (!status.onChain.deployed) {
|
|
697
|
+
let gasLimit;
|
|
698
|
+
switch (BigInt(chainId)) {
|
|
699
|
+
case BigInt(network.ChainId.SKALE_NEBULA):
|
|
700
|
+
gasLimit = 10000000n;
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
|
|
696
704
|
// Wallet deployment will vary depending on the version
|
|
697
705
|
// so we need to use the context to get the correct deployment
|
|
698
|
-
const deployTransaction = wallet.Wallet.buildDeployTransaction(status.original.context, status.original.imageHash);
|
|
706
|
+
const deployTransaction = wallet.Wallet.buildDeployTransaction(status.original.context, status.original.imageHash, gasLimit);
|
|
699
707
|
transactions.push(...deployTransaction.transactions);
|
|
700
708
|
}
|
|
701
709
|
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var abi = require('@0xsequence/abi');
|
|
6
6
|
var core = require('@0xsequence/core');
|
|
7
7
|
var migration = require('@0xsequence/migration');
|
|
8
|
+
var network = require('@0xsequence/network');
|
|
8
9
|
var relayer = require('@0xsequence/relayer');
|
|
9
10
|
var utils = require('@0xsequence/utils');
|
|
10
11
|
var wallet = require('@0xsequence/wallet');
|
|
@@ -693,9 +694,16 @@ class Account {
|
|
|
693
694
|
|
|
694
695
|
// Add wallet deployment if needed
|
|
695
696
|
if (!status.onChain.deployed) {
|
|
697
|
+
let gasLimit;
|
|
698
|
+
switch (BigInt(chainId)) {
|
|
699
|
+
case BigInt(network.ChainId.SKALE_NEBULA):
|
|
700
|
+
gasLimit = 10000000n;
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
|
|
696
704
|
// Wallet deployment will vary depending on the version
|
|
697
705
|
// so we need to use the context to get the correct deployment
|
|
698
|
-
const deployTransaction = wallet.Wallet.buildDeployTransaction(status.original.context, status.original.imageHash);
|
|
706
|
+
const deployTransaction = wallet.Wallet.buildDeployTransaction(status.original.context, status.original.imageHash, gasLimit);
|
|
699
707
|
transactions.push(...deployTransaction.transactions);
|
|
700
708
|
}
|
|
701
709
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { walletContracts } from '@0xsequence/abi';
|
|
2
2
|
import { commons, universal } from '@0xsequence/core';
|
|
3
3
|
import { defaults, migrator, version } from '@0xsequence/migration';
|
|
4
|
+
import { ChainId } from '@0xsequence/network';
|
|
4
5
|
import { proto, isRelayer, RpcRelayer } from '@0xsequence/relayer';
|
|
5
6
|
import { toHexString, getFetchRequest, encodeTypedDataDigest } from '@0xsequence/utils';
|
|
6
7
|
import { Wallet } from '@0xsequence/wallet';
|
|
@@ -689,9 +690,16 @@ class Account {
|
|
|
689
690
|
|
|
690
691
|
// Add wallet deployment if needed
|
|
691
692
|
if (!status.onChain.deployed) {
|
|
693
|
+
let gasLimit;
|
|
694
|
+
switch (BigInt(chainId)) {
|
|
695
|
+
case BigInt(ChainId.SKALE_NEBULA):
|
|
696
|
+
gasLimit = 10000000n;
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
|
|
692
700
|
// Wallet deployment will vary depending on the version
|
|
693
701
|
// so we need to use the context to get the correct deployment
|
|
694
|
-
const deployTransaction = Wallet.buildDeployTransaction(status.original.context, status.original.imageHash);
|
|
702
|
+
const deployTransaction = Wallet.buildDeployTransaction(status.original.context, status.original.imageHash, gasLimit);
|
|
695
703
|
transactions.push(...deployTransaction.transactions);
|
|
696
704
|
}
|
|
697
705
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/account",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"description": "tools for migrating sequence wallets to new versions",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/account",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
"ethers": ">=6"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@0xsequence/abi": "2.0.
|
|
16
|
-
"@0xsequence/core": "2.0.
|
|
17
|
-
"@0xsequence/migration": "2.0.
|
|
18
|
-
"@0xsequence/network": "2.0.
|
|
19
|
-
"@0xsequence/relayer": "2.0.
|
|
20
|
-
"@0xsequence/sessions": "2.0.
|
|
21
|
-
"@0xsequence/utils": "2.0.
|
|
22
|
-
"@0xsequence/wallet": "2.0.
|
|
15
|
+
"@0xsequence/abi": "2.0.26",
|
|
16
|
+
"@0xsequence/core": "2.0.26",
|
|
17
|
+
"@0xsequence/migration": "2.0.26",
|
|
18
|
+
"@0xsequence/network": "2.0.26",
|
|
19
|
+
"@0xsequence/relayer": "2.0.26",
|
|
20
|
+
"@0xsequence/sessions": "2.0.26",
|
|
21
|
+
"@0xsequence/utils": "2.0.26",
|
|
22
|
+
"@0xsequence/wallet": "2.0.26"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
26
26
|
"ethers": "6.13.4",
|
|
27
27
|
"nyc": "^15.1.0",
|
|
28
|
-
"@0xsequence/signhub": "2.0.
|
|
29
|
-
"@0xsequence/tests": "2.0.
|
|
28
|
+
"@0xsequence/signhub": "2.0.26",
|
|
29
|
+
"@0xsequence/tests": "2.0.26"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"src",
|
package/src/account.ts
CHANGED
|
@@ -700,9 +700,16 @@ export class Account {
|
|
|
700
700
|
|
|
701
701
|
// Add wallet deployment if needed
|
|
702
702
|
if (!status.onChain.deployed) {
|
|
703
|
+
let gasLimit: bigint | undefined
|
|
704
|
+
switch (BigInt(chainId)) {
|
|
705
|
+
case BigInt(ChainId.SKALE_NEBULA):
|
|
706
|
+
gasLimit = 10000000n
|
|
707
|
+
break
|
|
708
|
+
}
|
|
709
|
+
|
|
703
710
|
// Wallet deployment will vary depending on the version
|
|
704
711
|
// so we need to use the context to get the correct deployment
|
|
705
|
-
const deployTransaction = Wallet.buildDeployTransaction(status.original.context, status.original.imageHash)
|
|
712
|
+
const deployTransaction = Wallet.buildDeployTransaction(status.original.context, status.original.imageHash, gasLimit)
|
|
706
713
|
|
|
707
714
|
transactions.push(...deployTransaction.transactions)
|
|
708
715
|
}
|