@0xsequence/account 1.4.0 → 1.4.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.
- package/dist/declarations/src/account.d.ts +4 -4
- package/package.json +10 -10
- package/src/account.ts +5 -5
|
@@ -3,7 +3,7 @@ import { migrator } from '@0xsequence/migration';
|
|
|
3
3
|
import { ChainId, NetworkConfig } from '@0xsequence/network';
|
|
4
4
|
import { FeeOption, FeeQuote, Relayer } from '@0xsequence/relayer';
|
|
5
5
|
import { tracker } from '@0xsequence/sessions';
|
|
6
|
-
import {
|
|
6
|
+
import { SignatureOrchestrator } from '@0xsequence/signhub';
|
|
7
7
|
import { Wallet } from '@0xsequence/wallet';
|
|
8
8
|
import { ethers, TypedDataDomain, TypedDataField } from 'ethers';
|
|
9
9
|
import { AccountSigner, AccountSignerOptions } from "./signer.js";
|
|
@@ -33,7 +33,7 @@ export type AccountOptions = {
|
|
|
33
33
|
tracker: tracker.ConfigTracker & migrator.PresignedMigrationTracker;
|
|
34
34
|
contexts: commons.context.VersionedContext;
|
|
35
35
|
migrations?: migrator.Migrations;
|
|
36
|
-
orchestrator:
|
|
36
|
+
orchestrator: SignatureOrchestrator;
|
|
37
37
|
networks: NetworkConfig[];
|
|
38
38
|
jwt?: string;
|
|
39
39
|
};
|
|
@@ -58,7 +58,7 @@ export declare class Account {
|
|
|
58
58
|
config: commons.config.SimpleConfig;
|
|
59
59
|
tracker: tracker.ConfigTracker & migrator.PresignedMigrationTracker;
|
|
60
60
|
contexts: commons.context.VersionedContext;
|
|
61
|
-
orchestrator:
|
|
61
|
+
orchestrator: SignatureOrchestrator;
|
|
62
62
|
networks: NetworkConfig[];
|
|
63
63
|
migrations?: migrator.Migrations;
|
|
64
64
|
}): Promise<Account>;
|
|
@@ -72,7 +72,7 @@ export declare class Account {
|
|
|
72
72
|
providerFor(chainId: ethers.BigNumberish): ethers.providers.Provider;
|
|
73
73
|
reader(chainId: ethers.BigNumberish): commons.reader.Reader;
|
|
74
74
|
relayer(chainId: ethers.BigNumberish): Relayer;
|
|
75
|
-
setOrchestrator(orchestrator:
|
|
75
|
+
setOrchestrator(orchestrator: SignatureOrchestrator): void;
|
|
76
76
|
setJwt(jwt: string): void;
|
|
77
77
|
contextFor(version: number): commons.context.WalletContext;
|
|
78
78
|
walletForStatus(chainId: ethers.BigNumberish, status: Pick<AccountStatus, 'version'> & Pick<AccountStatus, 'config'>): Wallet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/account",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.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,19 +10,19 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ethers": "^5.5.2",
|
|
13
|
-
"@0xsequence/core": "1.4.
|
|
14
|
-
"@0xsequence/migration": "1.4.
|
|
15
|
-
"@0xsequence/network": "1.4.
|
|
16
|
-
"@0xsequence/relayer": "1.4.
|
|
17
|
-
"@0xsequence/sessions": "1.4.
|
|
18
|
-
"@0xsequence/utils": "1.4.
|
|
19
|
-
"@0xsequence/wallet": "1.4.
|
|
13
|
+
"@0xsequence/core": "1.4.2",
|
|
14
|
+
"@0xsequence/migration": "1.4.2",
|
|
15
|
+
"@0xsequence/network": "1.4.2",
|
|
16
|
+
"@0xsequence/relayer": "1.4.2",
|
|
17
|
+
"@0xsequence/sessions": "1.4.2",
|
|
18
|
+
"@0xsequence/utils": "1.4.2",
|
|
19
|
+
"@0xsequence/wallet": "1.4.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
23
23
|
"nyc": "^15.1.0",
|
|
24
|
-
"@0xsequence/signhub": "1.4.
|
|
25
|
-
"@0xsequence/tests": "1.4.
|
|
24
|
+
"@0xsequence/signhub": "1.4.2",
|
|
25
|
+
"@0xsequence/tests": "1.4.2"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"src",
|
package/src/account.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { migrator, defaults, version } from '@0xsequence/migration'
|
|
|
4
4
|
import { ChainId, NetworkConfig } from '@0xsequence/network'
|
|
5
5
|
import { FeeOption, FeeQuote, isRelayer, Relayer, RpcRelayer } from '@0xsequence/relayer'
|
|
6
6
|
import { tracker } from '@0xsequence/sessions'
|
|
7
|
-
import {
|
|
7
|
+
import { SignatureOrchestrator } from '@0xsequence/signhub'
|
|
8
8
|
import { encodeTypedDataDigest, getEthersConnectionInfo } from '@0xsequence/utils'
|
|
9
9
|
import { Wallet } from '@0xsequence/wallet'
|
|
10
10
|
import { ethers, TypedDataDomain, TypedDataField } from 'ethers'
|
|
@@ -49,7 +49,7 @@ export type AccountOptions = {
|
|
|
49
49
|
migrations?: migrator.Migrations
|
|
50
50
|
|
|
51
51
|
// Orchestrator manages signing messages and transactions
|
|
52
|
-
orchestrator:
|
|
52
|
+
orchestrator: SignatureOrchestrator
|
|
53
53
|
|
|
54
54
|
// Networks information and providers
|
|
55
55
|
networks: NetworkConfig[]
|
|
@@ -97,7 +97,7 @@ export class Account {
|
|
|
97
97
|
public readonly migrator: migrator.Migrator
|
|
98
98
|
public readonly migrations: migrator.Migrations
|
|
99
99
|
|
|
100
|
-
private orchestrator:
|
|
100
|
+
private orchestrator: SignatureOrchestrator
|
|
101
101
|
|
|
102
102
|
private jwt?: string
|
|
103
103
|
|
|
@@ -122,7 +122,7 @@ export class Account {
|
|
|
122
122
|
config: commons.config.SimpleConfig
|
|
123
123
|
tracker: tracker.ConfigTracker & migrator.PresignedMigrationTracker
|
|
124
124
|
contexts: commons.context.VersionedContext
|
|
125
|
-
orchestrator:
|
|
125
|
+
orchestrator: SignatureOrchestrator
|
|
126
126
|
networks: NetworkConfig[]
|
|
127
127
|
migrations?: migrator.Migrations
|
|
128
128
|
}): Promise<Account> {
|
|
@@ -202,7 +202,7 @@ export class Account {
|
|
|
202
202
|
return new RpcRelayer({ ...found.relayer, jwtAuth: this.jwt })
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
setOrchestrator(orchestrator:
|
|
205
|
+
setOrchestrator(orchestrator: SignatureOrchestrator) {
|
|
206
206
|
this.orchestrator = orchestrator
|
|
207
207
|
}
|
|
208
208
|
|