@getpara/ethers-v6-integration 2.21.0 → 2.23.0
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/cjs/ethersSigner.js
CHANGED
|
@@ -37,7 +37,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
};
|
|
38
38
|
var ethersSigner_exports = {};
|
|
39
39
|
__export(ethersSigner_exports, {
|
|
40
|
-
ParaEthersSigner: () => ParaEthersSigner
|
|
40
|
+
ParaEthersSigner: () => ParaEthersSigner,
|
|
41
|
+
createParaEthersSigner: () => createParaEthersSigner
|
|
41
42
|
});
|
|
42
43
|
module.exports = __toCommonJS(ethersSigner_exports);
|
|
43
44
|
var import_ethers = require("ethers");
|
|
@@ -153,7 +154,18 @@ class ParaEthersSigner extends import_ethers.ethers.AbstractSigner {
|
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
156
|
}
|
|
157
|
+
function createParaEthersSigner({
|
|
158
|
+
para,
|
|
159
|
+
address,
|
|
160
|
+
provider,
|
|
161
|
+
walletId,
|
|
162
|
+
messageSigningTimeoutMs
|
|
163
|
+
}) {
|
|
164
|
+
const resolvedId = address ? para.findWalletByAddress(address, { type: ["EVM"] }).id : walletId;
|
|
165
|
+
return new ParaEthersSigner(para, provider, resolvedId, messageSigningTimeoutMs);
|
|
166
|
+
}
|
|
156
167
|
// Annotate the CommonJS export names for ESM import in node:
|
|
157
168
|
0 && (module.exports = {
|
|
158
|
-
ParaEthersSigner
|
|
169
|
+
ParaEthersSigner,
|
|
170
|
+
createParaEthersSigner
|
|
159
171
|
});
|
package/dist/esm/ethersSigner.js
CHANGED
|
@@ -114,6 +114,17 @@ class ParaEthersSigner extends ethers.AbstractSigner {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
+
function createParaEthersSigner({
|
|
118
|
+
para,
|
|
119
|
+
address,
|
|
120
|
+
provider,
|
|
121
|
+
walletId,
|
|
122
|
+
messageSigningTimeoutMs
|
|
123
|
+
}) {
|
|
124
|
+
const resolvedId = address ? para.findWalletByAddress(address, { type: ["EVM"] }).id : walletId;
|
|
125
|
+
return new ParaEthersSigner(para, provider, resolvedId, messageSigningTimeoutMs);
|
|
126
|
+
}
|
|
117
127
|
export {
|
|
118
|
-
ParaEthersSigner
|
|
128
|
+
ParaEthersSigner,
|
|
129
|
+
createParaEthersSigner
|
|
119
130
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
|
-
import ParaCore from '@getpara/core-sdk';
|
|
2
|
+
import ParaCore, { type CreateParaSignerBaseOptions } from '@getpara/core-sdk';
|
|
3
3
|
export declare class ParaEthersSigner extends ethers.AbstractSigner {
|
|
4
4
|
private para;
|
|
5
5
|
private currentWalletId;
|
|
@@ -25,3 +25,8 @@ export declare class ParaEthersSigner extends ethers.AbstractSigner {
|
|
|
25
25
|
signTransaction(tx: ethers.TransactionRequest): Promise<string>;
|
|
26
26
|
signTypedData(domain: ethers.TypedDataDomain, types: Record<string, Array<ethers.TypedDataField>>, value: Record<string, any>): Promise<string>;
|
|
27
27
|
}
|
|
28
|
+
export interface CreateParaEthersSignerOptions extends CreateParaSignerBaseOptions {
|
|
29
|
+
provider?: ethers.Provider | null;
|
|
30
|
+
messageSigningTimeoutMs?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function createParaEthersSigner({ para, address, provider, walletId, messageSigningTimeoutMs, }: CreateParaEthersSignerOptions): ParaEthersSigner;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/ethers-v6-integration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/core-sdk": "2.
|
|
5
|
+
"@getpara/core-sdk": "2.23.0"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"ethers": "^6.13.5",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist",
|
|
20
20
|
"package.json"
|
|
21
21
|
],
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "6e7d16e0f5ac1d63ba89f023919dee5c9eddda47",
|
|
23
23
|
"main": "dist/cjs/index.js",
|
|
24
24
|
"module": "dist/esm/index.js",
|
|
25
25
|
"peerDependencies": {
|