@pear-protocol/symmio-client 0.2.40 → 0.2.43
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/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -13
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +87 -61
- package/dist/react/index.d.ts +87 -61
- package/dist/react/index.js +392 -265
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +392 -267
- package/dist/react/index.mjs.map +1 -1
- package/dist/react/{provider-BoNiSPy9.d.mts → provider-CMBaM64o.d.mts} +3 -2
- package/dist/react/{provider-BoNiSPy9.d.ts → provider-CMBaM64o.d.ts} +3 -2
- package/dist/react/provider.d.mts +1 -1
- package/dist/react/provider.d.ts +1 -1
- package/dist/react/provider.js +3 -1
- package/dist/react/provider.js.map +1 -1
- package/dist/react/provider.mjs +3 -1
- package/dist/react/provider.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isAddress, encodeFunctionData } from 'viem';
|
|
2
|
+
import { SiweMessage } from 'siwe';
|
|
2
3
|
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __export = (target, all) => {
|
|
@@ -24416,19 +24417,17 @@ function createSiweMessage(params) {
|
|
|
24416
24417
|
const expirationTime = new Date(
|
|
24417
24418
|
Date.now() + 30 * 24 * 60 * 60 * 1e3
|
|
24418
24419
|
).toISOString();
|
|
24419
|
-
const message =
|
|
24420
|
-
|
|
24421
|
-
params.address,
|
|
24422
|
-
|
|
24423
|
-
params.
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
`Expiration Time: ${expirationTime}`
|
|
24431
|
-
].join("\n");
|
|
24420
|
+
const message = new SiweMessage({
|
|
24421
|
+
domain: params.domain,
|
|
24422
|
+
address: params.address,
|
|
24423
|
+
statement: params.statement,
|
|
24424
|
+
chainId: params.chainId,
|
|
24425
|
+
nonce: params.nonce,
|
|
24426
|
+
version,
|
|
24427
|
+
uri: params.uri,
|
|
24428
|
+
issuedAt,
|
|
24429
|
+
expirationTime
|
|
24430
|
+
}).prepareMessage();
|
|
24432
24431
|
return { message, issuedAt, expirationTime };
|
|
24433
24432
|
}
|
|
24434
24433
|
async function getNonce(chainId, subAccount) {
|