@0xsequence/account 1.7.0 → 1.7.2
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.
|
@@ -139,7 +139,7 @@ class AccountSigner {
|
|
|
139
139
|
const selectMethod = (_this$options$selectF = (_this$options3 = this.options) == null ? void 0 : _this$options3.selectFee) != null ? _this$options$selectF : this.defaultSelectFee.bind(this);
|
|
140
140
|
const feeOption = await selectMethod(txs, prepare.feeOptions);
|
|
141
141
|
const finalTransactions = [...prepare.transactions, ...encodeGasRefundTransaction(feeOption)];
|
|
142
|
-
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, (_this$options4 = this.options)
|
|
142
|
+
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, ((_this$options4 = this.options) == null ? void 0 : _this$options4.nonceSpace) !== undefined ? {
|
|
143
143
|
nonceSpace: this.options.nonceSpace
|
|
144
144
|
} : undefined); // Will always have a transaction response
|
|
145
145
|
}
|
|
@@ -735,10 +735,11 @@ class Account {
|
|
|
735
735
|
decorate: true,
|
|
736
736
|
cantValidateBehavior: 'ignore'
|
|
737
737
|
};
|
|
738
|
-
const nonceOptions =
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
738
|
+
const nonceOptions = options != null && options.serial ? {
|
|
739
|
+
serial: true
|
|
740
|
+
} : (options == null ? void 0 : options.nonceSpace) !== undefined ? {
|
|
741
|
+
space: options.nonceSpace
|
|
742
|
+
} : undefined;
|
|
742
743
|
const signed = await wallet.signTransactions(txs, nonceOptions, metadata);
|
|
743
744
|
return _extends({}, signed, {
|
|
744
745
|
signature: await this.decorateSignature(signed.signature, status)
|
|
@@ -139,7 +139,7 @@ class AccountSigner {
|
|
|
139
139
|
const selectMethod = (_this$options$selectF = (_this$options3 = this.options) == null ? void 0 : _this$options3.selectFee) != null ? _this$options$selectF : this.defaultSelectFee.bind(this);
|
|
140
140
|
const feeOption = await selectMethod(txs, prepare.feeOptions);
|
|
141
141
|
const finalTransactions = [...prepare.transactions, ...encodeGasRefundTransaction(feeOption)];
|
|
142
|
-
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, (_this$options4 = this.options)
|
|
142
|
+
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, ((_this$options4 = this.options) == null ? void 0 : _this$options4.nonceSpace) !== undefined ? {
|
|
143
143
|
nonceSpace: this.options.nonceSpace
|
|
144
144
|
} : undefined); // Will always have a transaction response
|
|
145
145
|
}
|
|
@@ -735,10 +735,11 @@ class Account {
|
|
|
735
735
|
decorate: true,
|
|
736
736
|
cantValidateBehavior: 'ignore'
|
|
737
737
|
};
|
|
738
|
-
const nonceOptions =
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
738
|
+
const nonceOptions = options != null && options.serial ? {
|
|
739
|
+
serial: true
|
|
740
|
+
} : (options == null ? void 0 : options.nonceSpace) !== undefined ? {
|
|
741
|
+
space: options.nonceSpace
|
|
742
|
+
} : undefined;
|
|
742
743
|
const signed = await wallet.signTransactions(txs, nonceOptions, metadata);
|
|
743
744
|
return _extends({}, signed, {
|
|
744
745
|
signature: await this.decorateSignature(signed.signature, status)
|
|
@@ -135,7 +135,7 @@ class AccountSigner {
|
|
|
135
135
|
const selectMethod = (_this$options$selectF = (_this$options3 = this.options) == null ? void 0 : _this$options3.selectFee) != null ? _this$options$selectF : this.defaultSelectFee.bind(this);
|
|
136
136
|
const feeOption = await selectMethod(txs, prepare.feeOptions);
|
|
137
137
|
const finalTransactions = [...prepare.transactions, ...encodeGasRefundTransaction(feeOption)];
|
|
138
|
-
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, (_this$options4 = this.options)
|
|
138
|
+
return this.account.sendTransaction(finalTransactions, this.chainId, prepare.feeQuote, undefined, undefined, ((_this$options4 = this.options) == null ? void 0 : _this$options4.nonceSpace) !== undefined ? {
|
|
139
139
|
nonceSpace: this.options.nonceSpace
|
|
140
140
|
} : undefined); // Will always have a transaction response
|
|
141
141
|
}
|
|
@@ -731,10 +731,11 @@ class Account {
|
|
|
731
731
|
decorate: true,
|
|
732
732
|
cantValidateBehavior: 'ignore'
|
|
733
733
|
};
|
|
734
|
-
const nonceOptions =
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
734
|
+
const nonceOptions = options != null && options.serial ? {
|
|
735
|
+
serial: true
|
|
736
|
+
} : (options == null ? void 0 : options.nonceSpace) !== undefined ? {
|
|
737
|
+
space: options.nonceSpace
|
|
738
|
+
} : undefined;
|
|
738
739
|
const signed = await wallet.signTransactions(txs, nonceOptions, metadata);
|
|
739
740
|
return _extends({}, signed, {
|
|
740
741
|
signature: await this.decorateSignature(signed.signature, status)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/account",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
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",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ethers": "^5.5.2",
|
|
13
|
-
"@0xsequence/abi": "1.7.
|
|
14
|
-
"@0xsequence/core": "1.7.
|
|
15
|
-
"@0xsequence/migration": "1.7.
|
|
16
|
-
"@0xsequence/network": "1.7.
|
|
17
|
-
"@0xsequence/relayer": "1.7.
|
|
18
|
-
"@0xsequence/sessions": "1.7.
|
|
19
|
-
"@0xsequence/utils": "1.7.
|
|
20
|
-
"@0xsequence/wallet": "1.7.
|
|
13
|
+
"@0xsequence/abi": "1.7.2",
|
|
14
|
+
"@0xsequence/core": "1.7.2",
|
|
15
|
+
"@0xsequence/migration": "1.7.2",
|
|
16
|
+
"@0xsequence/network": "1.7.2",
|
|
17
|
+
"@0xsequence/relayer": "1.7.2",
|
|
18
|
+
"@0xsequence/sessions": "1.7.2",
|
|
19
|
+
"@0xsequence/utils": "1.7.2",
|
|
20
|
+
"@0xsequence/wallet": "1.7.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
24
24
|
"nyc": "^15.1.0",
|
|
25
|
-
"@0xsequence/signhub": "1.7.
|
|
26
|
-
"@0xsequence/tests": "1.7.
|
|
25
|
+
"@0xsequence/signhub": "1.7.2",
|
|
26
|
+
"@0xsequence/tests": "1.7.2"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"src",
|
package/src/account.ts
CHANGED
|
@@ -739,7 +739,12 @@ export class Account {
|
|
|
739
739
|
cantValidateBehavior: 'ignore'
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
const nonceOptions = options?.
|
|
742
|
+
const nonceOptions = options?.serial
|
|
743
|
+
? { serial: true }
|
|
744
|
+
: options?.nonceSpace !== undefined
|
|
745
|
+
? { space: options.nonceSpace }
|
|
746
|
+
: undefined
|
|
747
|
+
|
|
743
748
|
const signed = await wallet.signTransactions(txs, nonceOptions, metadata)
|
|
744
749
|
|
|
745
750
|
return {
|
package/src/signer.ts
CHANGED