viem 2.15.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +28 -0
- package/README.md +17 -11
- package/_cjs/actions/public/verifyHash.js +21 -3
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js +3 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.js +3 -1
- package/_cjs/actions/public/verifyTypedData.js.map +1 -1
- package/_cjs/chains/definitions/zetachain.js +6 -0
- package/_cjs/chains/definitions/zetachain.js.map +1 -1
- package/_cjs/chains/definitions/zetachainAthensTestnet.js +6 -0
- package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zircuitTestnet.js +27 -0
- package/_cjs/chains/definitions/zircuitTestnet.js.map +1 -0
- package/_cjs/chains/index.js +3 -1
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/index.js +10 -4
- package/_cjs/experimental/index.js.map +1 -1
- package/_cjs/experimental/solady/actions/signMessage.js +40 -0
- package/_cjs/experimental/solady/actions/signMessage.js.map +1 -0
- package/_cjs/experimental/solady/actions/signTypedData.js +83 -0
- package/_cjs/experimental/solady/actions/signTypedData.js.map +1 -0
- package/_cjs/experimental/solady/decorators/solady.js +16 -0
- package/_cjs/experimental/solady/decorators/solady.js.map +1 -0
- package/_cjs/experimental/solady/types.js +3 -0
- package/_cjs/experimental/solady/types.js.map +1 -0
- package/_cjs/index.js +11 -3
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/index.js +7 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js +2 -12
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/signature/hashTypedData.js +3 -1
- package/_cjs/utils/signature/hashTypedData.js.map +1 -1
- package/_cjs/{experimental/erc6492 → utils/signature}/isErc6492Signature.js +1 -1
- package/_cjs/utils/signature/isErc6492Signature.js.map +1 -0
- package/_cjs/{experimental/erc6492 → utils/signature}/parseErc6492Signature.js +1 -1
- package/_cjs/utils/signature/parseErc6492Signature.js.map +1 -0
- package/_cjs/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.js +2 -2
- package/_cjs/utils/signature/serializeErc6492Signature.js.map +1 -0
- package/_cjs/utils/signature/toPrefixedMessage.js +20 -0
- package/_cjs/utils/signature/toPrefixedMessage.js.map +1 -0
- package/_esm/actions/public/getTransactionCount.js +1 -1
- package/_esm/actions/public/verifyHash.js +27 -3
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js +3 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +3 -1
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/chains/definitions/zetachain.js +6 -0
- package/_esm/chains/definitions/zetachain.js.map +1 -1
- package/_esm/chains/definitions/zetachainAthensTestnet.js +6 -0
- package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_esm/chains/definitions/zircuitTestnet.js +24 -0
- package/_esm/chains/definitions/zircuitTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/index.js +12 -3
- package/_esm/experimental/index.js.map +1 -1
- package/_esm/experimental/solady/actions/signMessage.js +84 -0
- package/_esm/experimental/solady/actions/signMessage.js.map +1 -0
- package/_esm/experimental/solady/actions/signTypedData.js +182 -0
- package/_esm/experimental/solady/actions/signTypedData.js.map +1 -0
- package/_esm/experimental/solady/decorators/solady.js +27 -0
- package/_esm/experimental/solady/decorators/solady.js.map +1 -0
- package/_esm/experimental/solady/types.js +2 -0
- package/_esm/experimental/solady/types.js.map +1 -0
- package/_esm/index.js +4 -0
- package/_esm/index.js.map +1 -1
- package/_esm/utils/index.js +3 -0
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js +2 -12
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/signature/hashTypedData.js +2 -2
- package/_esm/utils/signature/hashTypedData.js.map +1 -1
- package/_esm/{experimental/erc6492 → utils/signature}/isErc6492Signature.js +1 -1
- package/_esm/utils/signature/isErc6492Signature.js.map +1 -0
- package/_esm/{experimental/erc6492 → utils/signature}/parseErc6492Signature.js +1 -1
- package/_esm/utils/signature/parseErc6492Signature.js.map +1 -0
- package/_esm/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.js +2 -2
- package/_esm/utils/signature/serializeErc6492Signature.js.map +1 -0
- package/_esm/utils/signature/toPrefixedMessage.js +16 -0
- package/_esm/utils/signature/toPrefixedMessage.js.map +1 -0
- package/_types/actions/public/getTransactionCount.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts +6 -2
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/chains/definitions/zetachain.d.ts +6 -8
- package/_types/chains/definitions/zetachain.d.ts.map +1 -1
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts +6 -8
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zircuitTestnet.d.ts +33 -0
- package/_types/chains/definitions/zircuitTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/index.d.ts +30 -3
- package/_types/experimental/index.d.ts.map +1 -1
- package/_types/experimental/solady/actions/signMessage.d.ts +71 -0
- package/_types/experimental/solady/actions/signMessage.d.ts.map +1 -0
- package/_types/experimental/solady/actions/signTypedData.d.ts +125 -0
- package/_types/experimental/solady/actions/signTypedData.d.ts.map +1 -0
- package/_types/experimental/solady/decorators/solady.d.ts +183 -0
- package/_types/experimental/solady/decorators/solady.d.ts.map +1 -0
- package/_types/experimental/solady/types.d.ts +7 -0
- package/_types/experimental/solady/types.d.ts.map +1 -0
- package/_types/index.d.ts +4 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/utils/index.d.ts +3 -0
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +1 -3
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/signature/hashTypedData.d.ts +9 -0
- package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
- package/_types/{experimental/erc6492 → utils/signature}/isErc6492Signature.d.ts +1 -1
- package/_types/utils/signature/isErc6492Signature.d.ts.map +1 -0
- package/_types/{experimental/erc6492 → utils/signature}/parseErc6492Signature.d.ts +1 -1
- package/_types/utils/signature/parseErc6492Signature.d.ts.map +1 -0
- package/_types/utils/signature/serializeErc6492Signature.d.ts.map +1 -0
- package/_types/utils/signature/toPrefixedMessage.d.ts +7 -0
- package/_types/utils/signature/toPrefixedMessage.d.ts.map +1 -0
- package/actions/public/getTransactionCount.ts +1 -1
- package/actions/public/verifyHash.ts +31 -4
- package/actions/public/verifyMessage.ts +10 -1
- package/actions/public/verifyTypedData.ts +4 -0
- package/chains/definitions/zetachain.ts +6 -0
- package/chains/definitions/zetachainAthensTestnet.ts +6 -0
- package/chains/definitions/zircuitTestnet.ts +24 -0
- package/chains/index.ts +1 -0
- package/errors/version.ts +1 -1
- package/experimental/index.ts +33 -3
- package/experimental/solady/actions/signMessage.ts +151 -0
- package/experimental/solady/actions/signTypedData.ts +280 -0
- package/experimental/solady/decorators/solady.ts +232 -0
- package/experimental/solady/types.ts +7 -0
- package/index.ts +22 -0
- package/package.json +3 -3
- package/utils/index.ts +18 -0
- package/utils/signature/hashMessage.ts +3 -23
- package/utils/signature/hashTypedData.ts +2 -2
- package/{experimental/erc6492 → utils/signature}/isErc6492Signature.ts +1 -1
- package/{experimental/erc6492 → utils/signature}/parseErc6492Signature.ts +1 -1
- package/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.ts +2 -2
- package/utils/signature/toPrefixedMessage.ts +27 -0
- package/_cjs/experimental/erc6492/isErc6492Signature.js.map +0 -1
- package/_cjs/experimental/erc6492/parseErc6492Signature.js.map +0 -1
- package/_cjs/experimental/erc6492/serializeErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/isErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/parseErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/serializeErc6492Signature.js.map +0 -1
- package/_types/experimental/erc6492/isErc6492Signature.d.ts.map +0 -1
- package/_types/experimental/erc6492/parseErc6492Signature.d.ts.map +0 -1
- package/_types/experimental/erc6492/serializeErc6492Signature.d.ts.map +0 -1
- /package/_types/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.d.ts +0 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# viem
|
2
2
|
|
3
|
+
## 2.16.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2424](https://github.com/wevm/viem/pull/2424) [`4b929790`](https://github.com/wevm/viem/commit/4b9297901e925e3e469822d8fe722bbcefb376ed) Thanks [@jxom](https://github.com/jxom)! - Stabilized ERC-6492 utilities:
|
8
|
+
|
9
|
+
- `isErc6492Signature`
|
10
|
+
- `parseErc6492Signature`
|
11
|
+
- `serializeErc6492Signature`
|
12
|
+
|
13
|
+
These utilities are no longer experimental, and can be imported from the `viem` entrypoint.
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- [`a2b2c523`](https://github.com/wevm/viem/commit/a2b2c523e49baec7d1e425e2d64f3f9cdbaaf83b) Thanks [@tmm](https://github.com/tmm)! - Bumped ABIType
|
18
|
+
|
19
|
+
- [#2427](https://github.com/wevm/viem/pull/2427) [`38dc6a03`](https://github.com/wevm/viem/commit/38dc6a037c6d6358b3bb620db4406b9bd39620be) Thanks [@Phillip-Kemper](https://github.com/Phillip-Kemper)! - Added Zircuit Testnet
|
20
|
+
|
21
|
+
- [#2413](https://github.com/wevm/viem/pull/2413) [`99ed745b`](https://github.com/wevm/viem/commit/99ed745ba28d912cdad86d6a1718968c8da4c7c0) Thanks [@jxom](https://github.com/jxom)! - **Experimental:** Added [Solady flavoured ERC-1271](https://github.com/Vectorized/solady/blob/678c9163550810b08f0ffb09624c9f7532392303/src/accounts/ERC1271.sol) `signMessage` & `signTypedData` for Smart Accounts that implement (or conform to) [Solady's `ERC1271.sol`](https://github.com/Vectorized/solady/blob/678c9163550810b08f0ffb09624c9f7532392303/src/accounts/ERC1271.sol#L110-L180).
|
22
|
+
|
23
|
+
- [#2426](https://github.com/wevm/viem/pull/2426) [`01086ad9`](https://github.com/wevm/viem/commit/01086ad924f2d15f076f1a27434df1d88e9d3323) Thanks [@EvanYan1024](https://github.com/EvanYan1024)! - Added multicall3 to zetachain mainnet and testnet
|
24
|
+
|
25
|
+
## 2.15.1
|
26
|
+
|
27
|
+
### Patch Changes
|
28
|
+
|
29
|
+
- [`d8e44f7`](https://github.com/wevm/viem/commit/d8e44f7df36cd405b00d76438e9100d82cdd5ed6) Thanks [@jxom](https://github.com/jxom)! - Bumped `ws` dependency.
|
30
|
+
|
3
31
|
## 2.15.0
|
4
32
|
|
5
33
|
### Minor Changes
|
package/README.md
CHANGED
@@ -126,7 +126,7 @@ Check out the following places for more viem-related content:
|
|
126
126
|
<img alt="WalletConnect logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/walletconnect-light.svg" width="auto" height="50">
|
127
127
|
</picture>
|
128
128
|
</a>
|
129
|
-
<a href="https://zksync.io
|
129
|
+
<a href="https://zksync.io">
|
130
130
|
<picture>
|
131
131
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zksync-dark.svg">
|
132
132
|
<img alt="zksync logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zksync-light.svg" width="auto" height="50">
|
@@ -162,31 +162,25 @@ Check out the following places for more viem-related content:
|
|
162
162
|
<img alt="Privy logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/privy-light.svg" width="auto" height="50">
|
163
163
|
</picture>
|
164
164
|
</a>
|
165
|
-
<a href="https://
|
166
|
-
<picture>
|
167
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-dark.svg">
|
168
|
-
<img alt="Spruce logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-light.svg" width="auto" height="50">
|
169
|
-
</picture>
|
170
|
-
</a>
|
171
|
-
<a href="https://pancakeswap.finance/">
|
165
|
+
<a href="https://pancakeswap.finance">
|
172
166
|
<picture>
|
173
167
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-dark.svg">
|
174
168
|
<img alt="pancake logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-light.svg" width="auto" height="50">
|
175
169
|
</picture>
|
176
170
|
</a>
|
177
|
-
<a href="https://celo.org
|
171
|
+
<a href="https://celo.org">
|
178
172
|
<picture>
|
179
173
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-dark.svg">
|
180
174
|
<img alt="celo logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-light.svg" width="auto" height="50">
|
181
175
|
</picture>
|
182
176
|
</a>
|
183
|
-
<a href="https://pimlico.io
|
177
|
+
<a href="https://pimlico.io">
|
184
178
|
<picture>
|
185
179
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-dark.svg">
|
186
180
|
<img alt="pimlico logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-light.svg" width="auto" height="50">
|
187
181
|
</picture>
|
188
182
|
</a>
|
189
|
-
<a href="https://zora.co
|
183
|
+
<a href="https://zora.co">
|
190
184
|
<picture>
|
191
185
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-dark.svg">
|
192
186
|
<img alt="zora logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-light.svg" width="auto" height="50">
|
@@ -210,6 +204,18 @@ Check out the following places for more viem-related content:
|
|
210
204
|
<img alt="syndicate logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/syndicate-light.svg" width="auto" height="50">
|
211
205
|
</picture>
|
212
206
|
</a>
|
207
|
+
<a href="https://reservoir.tools">
|
208
|
+
<picture>
|
209
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/reservoir-dark.svg">
|
210
|
+
<img alt="reservoir logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/reservoir-light.svg" width="auto" height="50">
|
211
|
+
</picture>
|
212
|
+
</a>
|
213
|
+
<a href="https://brave.com">
|
214
|
+
<picture>
|
215
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/brave-dark.svg">
|
216
|
+
<img alt="brave logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/brave-light.svg" width="auto" height="50">
|
217
|
+
</picture>
|
218
|
+
</a>
|
213
219
|
|
214
220
|
## Contributing
|
215
221
|
|
@@ -9,9 +9,13 @@ const isBytesEqual_js_1 = require("../../utils/data/isBytesEqual.js");
|
|
9
9
|
const isHex_js_1 = require("../../utils/data/isHex.js");
|
10
10
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
11
11
|
const getAction_js_1 = require("../../utils/getAction.js");
|
12
|
+
const isErc6492Signature_js_1 = require("../../utils/signature/isErc6492Signature.js");
|
13
|
+
const serializeErc6492Signature_js_1 = require("../../utils/signature/serializeErc6492Signature.js");
|
12
14
|
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
13
15
|
const call_js_1 = require("./call.js");
|
14
|
-
|
16
|
+
const getCode_js_1 = require("./getCode.js");
|
17
|
+
async function verifyHash(client, parameters) {
|
18
|
+
const { address, factory, factoryData, hash, signature, ...rest } = parameters;
|
15
19
|
const signatureHex = (() => {
|
16
20
|
if ((0, isHex_js_1.isHex)(signature))
|
17
21
|
return signature;
|
@@ -19,14 +23,28 @@ async function verifyHash(client, { address, hash, signature, ...callRequest })
|
|
19
23
|
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
20
24
|
return (0, toHex_js_1.bytesToHex)(signature);
|
21
25
|
})();
|
26
|
+
const wrappedSignature = await (async () => {
|
27
|
+
if (!factory && !factoryData)
|
28
|
+
return signatureHex;
|
29
|
+
if ((0, isErc6492Signature_js_1.isErc6492Signature)(signatureHex))
|
30
|
+
return signatureHex;
|
31
|
+
const bytecode = await (0, getAction_js_1.getAction)(client, getCode_js_1.getCode, 'getCode')({ address });
|
32
|
+
if (bytecode)
|
33
|
+
return signatureHex;
|
34
|
+
return (0, serializeErc6492Signature_js_1.serializeErc6492Signature)({
|
35
|
+
address: factory,
|
36
|
+
data: factoryData,
|
37
|
+
signature: signatureHex,
|
38
|
+
});
|
39
|
+
})();
|
22
40
|
try {
|
23
41
|
const { data } = await (0, getAction_js_1.getAction)(client, call_js_1.call, 'call')({
|
24
42
|
data: (0, encodeDeployData_js_1.encodeDeployData)({
|
25
43
|
abi: abis_js_1.universalSignatureValidatorAbi,
|
26
|
-
args: [address, hash,
|
44
|
+
args: [address, hash, wrappedSignature],
|
27
45
|
bytecode: contracts_js_1.universalSignatureValidatorByteCode,
|
28
46
|
}),
|
29
|
-
...
|
47
|
+
...rest,
|
30
48
|
});
|
31
49
|
return (0, isBytesEqual_js_1.isBytesEqual)(data ?? '0x0', '0x1');
|
32
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"verifyHash.js","sourceRoot":"","sources":["../../../actions/public/verifyHash.ts"],"names":[],"mappings":";;;AAIA,qDAAwE;AACxE,+D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EAAE,WAAY;YAClB,SAAS,EAAE,YAAY;SACxB,CAAC,CAAA;IACJ,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,wBAAS,EAC9B,MAAM,EACN,cAAI,EACJ,MAAM,CACP,CAAC;YACA,IAAI,EAAE,IAAA,sCAAgB,EAAC;gBACrB,GAAG,EAAE,wCAA8B;gBACnC,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC;gBACvC,QAAQ,EAAE,kDAAmC;aAC9C,CAAC;YACF,GAAG,IAAI;SACqB,CAAC,CAAA;QAE/B,OAAO,IAAA,8BAAY,EAAC,IAAI,IAAI,KAAK,EAAE,KAAK,CAAC,CAAA;IAC3C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gCAAkB,EAAE,CAAC;YAIxC,OAAO,KAAK,CAAA;QACd,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC;AA3DD,gCA2DC"}
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.verifyMessage = void 0;
|
4
4
|
const hashMessage_js_1 = require("../../utils/signature/hashMessage.js");
|
5
5
|
const verifyHash_js_1 = require("./verifyHash.js");
|
6
|
-
async function verifyMessage(client, { address, message, signature, ...callRequest }) {
|
6
|
+
async function verifyMessage(client, { address, message, factory, factoryData, signature, ...callRequest }) {
|
7
7
|
const hash = (0, hashMessage_js_1.hashMessage)(message);
|
8
8
|
return (0, verifyHash_js_1.verifyHash)(client, {
|
9
9
|
address,
|
10
|
+
factory: factory,
|
11
|
+
factoryData: factoryData,
|
10
12
|
hash,
|
11
13
|
signature,
|
12
14
|
...callRequest,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":";;;AAaA,yEAAkE;AAElE,mDAIwB;AA+BjB,KAAK,UAAU,aAAa,CACjC,MAAiC,EACjC,
|
1
|
+
{"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":";;;AAaA,yEAAkE;AAElE,mDAIwB;AA+BjB,KAAK,UAAU,aAAa,CACjC,MAAiC,EACjC,EACE,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,GAAG,WAAW,EACU;IAE1B,MAAM,IAAI,GAAG,IAAA,4BAAW,EAAC,OAAO,CAAC,CAAA;IACjC,OAAO,IAAA,0BAAU,EAAC,MAAM,EAAE;QACxB,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC;AApBD,sCAoBC"}
|
@@ -4,10 +4,12 @@ exports.verifyTypedData = void 0;
|
|
4
4
|
const hashTypedData_js_1 = require("../../utils/signature/hashTypedData.js");
|
5
5
|
const verifyHash_js_1 = require("./verifyHash.js");
|
6
6
|
async function verifyTypedData(client, parameters) {
|
7
|
-
const { address, signature, message, primaryType, types, domain, ...callRequest } = parameters;
|
7
|
+
const { address, factory, factoryData, signature, message, primaryType, types, domain, ...callRequest } = parameters;
|
8
8
|
const hash = (0, hashTypedData_js_1.hashTypedData)({ message, primaryType, types, domain });
|
9
9
|
return (0, verifyHash_js_1.verifyHash)(client, {
|
10
10
|
address,
|
11
|
+
factory: factory,
|
12
|
+
factoryData: factoryData,
|
11
13
|
hash,
|
12
14
|
signature,
|
13
15
|
...callRequest,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../actions/public/verifyTypedData.ts"],"names":[],"mappings":";;;AAQA,6EAG+C;AAC/C,mDAIwB;AA6BjB,KAAK,UAAU,eAAe,CAKnC,MAAgC,EAChC,UAA6D;IAE7D,MAAM,EACJ,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,EACX,KAAK,EACL,MAAM,EACN,GAAG,WAAW,EACf,GAAG,UAAuC,CAAA;IAC3C,MAAM,IAAI,GAAG,IAAA,gCAAa,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IACnE,OAAO,IAAA,0BAAU,EAAC,MAAM,EAAE;QACxB,OAAO;QACP,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC;
|
1
|
+
{"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../actions/public/verifyTypedData.ts"],"names":[],"mappings":";;;AAQA,6EAG+C;AAC/C,mDAIwB;AA6BjB,KAAK,UAAU,eAAe,CAKnC,MAAgC,EAChC,UAA6D;IAE7D,MAAM,EACJ,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EACP,WAAW,EACX,KAAK,EACL,MAAM,EACN,GAAG,WAAW,EACf,GAAG,UAAuC,CAAA;IAC3C,MAAM,IAAI,GAAG,IAAA,gCAAa,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IACnE,OAAO,IAAA,0BAAU,EAAC,MAAM,EAAE;QACxB,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC;AA5BD,0CA4BC"}
|
@@ -15,6 +15,12 @@ exports.zetachain = (0, defineChain_js_1.defineChain)({
|
|
15
15
|
http: ['https://zetachain-evm.blockpi.network/v1/rpc/public'],
|
16
16
|
},
|
17
17
|
},
|
18
|
+
contracts: {
|
19
|
+
multicall3: {
|
20
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
21
|
+
blockCreated: 1632781,
|
22
|
+
},
|
23
|
+
},
|
18
24
|
blockExplorers: {
|
19
25
|
default: {
|
20
26
|
name: 'ZetaScan',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zetachain.js","sourceRoot":"","sources":["../../../chains/definitions/zetachain.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,SAAS,GAAiB,IAAA,4BAAW,EAAC;IACjD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qDAAqD,CAAC;SAC9D;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,gCAAgC;SACtC;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"zetachain.js","sourceRoot":"","sources":["../../../chains/definitions/zetachain.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,SAAS,GAAiB,IAAA,4BAAW,EAAC;IACjD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qDAAqD,CAAC;SAC9D;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,gCAAgC;SACtC;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
|
@@ -15,6 +15,12 @@ exports.zetachainAthensTestnet = (0, defineChain_js_1.defineChain)({
|
|
15
15
|
http: ['https://zetachain-athens-evm.blockpi.network/v1/rpc/public'],
|
16
16
|
},
|
17
17
|
},
|
18
|
+
contracts: {
|
19
|
+
multicall3: {
|
20
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
21
|
+
blockCreated: 2715217,
|
22
|
+
},
|
23
|
+
},
|
18
24
|
blockExplorers: {
|
19
25
|
default: {
|
20
26
|
name: 'ZetaScan',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zetachainAthensTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/zetachainAthensTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,sBAAsB,GAAiB,IAAA,4BAAW,EAAC;IAC9D,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,0BAA0B;IAChC,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,OAAO;KAChB;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,4DAA4D,CAAC;SACrE;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,uCAAuC;SAC7C;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"zetachainAthensTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/zetachainAthensTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,sBAAsB,GAAiB,IAAA,4BAAW,EAAC;IAC9D,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,0BAA0B;IAChC,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,OAAO;KAChB;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,4DAA4D,CAAC;SACrE;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,uCAAuC;SAC7C;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.zircuitTestnet = void 0;
|
4
|
+
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
+
exports.zircuitTestnet = (0, defineChain_js_1.defineChain)({
|
6
|
+
id: 48899,
|
7
|
+
name: 'Zircuit Testnet',
|
8
|
+
nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
|
9
|
+
rpcUrls: {
|
10
|
+
default: {
|
11
|
+
http: ['https://zircuit1.p2pify.com'],
|
12
|
+
},
|
13
|
+
},
|
14
|
+
blockExplorers: {
|
15
|
+
default: {
|
16
|
+
name: 'Zircuit Explorer',
|
17
|
+
url: 'https://explorer.zircuit.com',
|
18
|
+
},
|
19
|
+
},
|
20
|
+
contracts: {
|
21
|
+
multicall3: {
|
22
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
23
|
+
blockCreated: 6040287,
|
24
|
+
},
|
25
|
+
},
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=zircuitTestnet.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"zircuitTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/zircuitTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,cAAc,GAAiB,IAAA,4BAAW,EAAC;IACtD,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,6BAA6B,CAAC;SACtC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,kBAAkB;YACxB,GAAG,EAAE,8BAA8B;SACpC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;CACF,CAAC,CAAA"}
|
package/_cjs/chains/index.js
CHANGED
@@ -5,7 +5,7 @@ exports.iotexTestnet = exports.iotex = exports.fuseSparknet = exports.fuse = exp
|
|
5
5
|
exports.merlin = exports.mantleTestnet = exports.mantleSepoliaTestnet = exports.mantle = exports.mantaTestnet = exports.mantaSepoliaTestnet = exports.manta = exports.mandala = exports.mainnet = exports.lycan = exports.luksoTestnet = exports.lukso = exports.localhost = exports.liskSepolia = exports.lisk = exports.lineaTestnet = exports.lineaSepolia = exports.lineaGoerli = exports.linea = exports.lightlinkPhoenix = exports.lightlinkPegasus = exports.l3xTestnet = exports.l3x = exports.kromaSepolia = exports.kroma = exports.klaytnBaobab = exports.klaytn = exports.kcc = exports.kavaTestnet = exports.kava = exports.kakarotSepolia = exports.inEVM = exports.immutableZkEvmTestnet = exports.immutableZkEvm = exports.holesky = exports.hederaPreviewnet = exports.hederaTestnet = exports.hedera = exports.haqqTestedge2 = exports.haqqMainnet = exports.harmonyOne = exports.hardhat = exports.ham = exports.gnosisChiado = exports.gnosis = exports.goerli = exports.gobi = exports.karura = exports.jbcTestnet = exports.jbc = void 0;
|
6
6
|
exports.qTestnet = exports.qMainnet = exports.pulsechainV4 = exports.pulsechain = exports.polygonZkEvmTestnet = exports.polygonZkEvmCardona = exports.polygonZkEvm = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.plumeTestnet = exports.plinga = exports.phoenix = exports.pgnTestnet = exports.pgn = exports.playfiAlbireo = exports.palmTestnet = exports.palm = exports.otimDevnet = exports.oortMainnetDev = exports.opBNBTestnet = exports.opBNB = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.okc = exports.oasisTestnet = exports.oasys = exports.nexilix = exports.nexi = exports.neonMainnet = exports.neonDevnet = exports.nautilus = exports.morphSepolia = exports.moonriver = exports.moonbeamDev = exports.moonbeam = exports.moonbaseAlpha = exports.modeTestnet = exports.mode = exports.mintSepoliaTestnet = exports.mevTestnet = exports.mev = exports.metisGoerli = exports.metis = exports.meterTestnet = exports.meter = exports.metalL2 = exports.metachainIstanbul = exports.metachain = void 0;
|
7
7
|
exports.taikoTestnetSepolia = exports.taikoKatla = exports.taikoJolnir = exports.taikoHekla = exports.taiko = exports.taraxa = exports.syscoinTestnet = exports.syscoin = exports.stratis = exports.shibarium = exports.shardeumSphinx = exports.spicy = exports.songbirdTestnet = exports.songbird = exports.skaleTitanTestnet = exports.skaleTitan = exports.skaleRazor = exports.skaleNebulaTestnet = exports.skaleNebula = exports.skaleHumanProtocol = exports.skaleExorde = exports.skaleEuropaTestnet = exports.skaleEuropa = exports.skaleCryptoColosseum = exports.skaleCryptoBlades = exports.skaleCalypsoTestnet = exports.skaleCalypso = exports.skaleBlockBrawlers = exports.shimmerTestnet = exports.shimmer = exports.sepolia = exports.seiDevnet = exports.sei = exports.scrollSepolia = exports.scroll = exports.satoshiVMTestnet = exports.satoshiVM = exports.sapphireTestnet = exports.sapphire = exports.saigon = exports.rss3Sepolia = exports.rss3 = exports.rootstockTestnet = exports.rootstock = exports.ronin = exports.rolluxTestnet = exports.rollux = exports.reyaNetwork = exports.redstone = exports.redbellyTestnet = void 0;
|
8
|
-
exports.zoraTestnet = exports.zoraSepolia = exports.zora = exports.zkSyncTestnet = exports.zkSyncSepoliaTestnet = exports.zkSyncLocalNode = exports.zkSyncInMemoryNode = exports.zkSync = exports.zkFairTestnet = exports.zkFair = exports.zilliqaTestnet = exports.zilliqa = exports.zhejiang = exports.zetachainAthensTestnet = exports.zetachain = exports.yooldoVerseTestnet = exports.yooldoVerse = exports.xdcTestnet = exports.xdc = exports.xaiTestnet = exports.xai = exports.xLayer = exports.x1Testnet = exports.xLayerTestnet = exports.wemixTestnet = exports.wemix = exports.wanchainTestnet = exports.wanchain = exports.vechain = exports.thunderTestnet = exports.thaiChain = exports.tenet = exports.telosTestnet = exports.telos = exports.telcoinTestnet = exports.taraxaTestnet = void 0;
|
8
|
+
exports.zircuitTestnet = exports.zoraTestnet = exports.zoraSepolia = exports.zora = exports.zkSyncTestnet = exports.zkSyncSepoliaTestnet = exports.zkSyncLocalNode = exports.zkSyncInMemoryNode = exports.zkSync = exports.zkFairTestnet = exports.zkFair = exports.zilliqaTestnet = exports.zilliqa = exports.zhejiang = exports.zetachainAthensTestnet = exports.zetachain = exports.yooldoVerseTestnet = exports.yooldoVerse = exports.xdcTestnet = exports.xdc = exports.xaiTestnet = exports.xai = exports.xLayer = exports.x1Testnet = exports.xLayerTestnet = exports.wemixTestnet = exports.wemix = exports.wanchainTestnet = exports.wanchain = exports.vechain = exports.thunderTestnet = exports.thaiChain = exports.tenet = exports.telosTestnet = exports.telos = exports.telcoinTestnet = exports.taraxaTestnet = void 0;
|
9
9
|
var acala_js_1 = require("./definitions/acala.js");
|
10
10
|
Object.defineProperty(exports, "acala", { enumerable: true, get: function () { return acala_js_1.acala; } });
|
11
11
|
var ancient8_js_1 = require("./definitions/ancient8.js");
|
@@ -577,4 +577,6 @@ var zoraSepolia_js_1 = require("./definitions/zoraSepolia.js");
|
|
577
577
|
Object.defineProperty(exports, "zoraSepolia", { enumerable: true, get: function () { return zoraSepolia_js_1.zoraSepolia; } });
|
578
578
|
var zoraTestnet_js_1 = require("./definitions/zoraTestnet.js");
|
579
579
|
Object.defineProperty(exports, "zoraTestnet", { enumerable: true, get: function () { return zoraTestnet_js_1.zoraTestnet; } });
|
580
|
+
var zircuitTestnet_js_1 = require("./definitions/zircuitTestnet.js");
|
581
|
+
Object.defineProperty(exports, "zircuitTestnet", { enumerable: true, get: function () { return zircuitTestnet_js_1.zircuitTestnet; } });
|
580
582
|
//# sourceMappingURL=index.js.map
|
package/_cjs/chains/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../chains/index.ts"],"names":[],"mappings":";;;;;;;;AAGA,mDAA8C;AAArC,iGAAA,KAAK,OAAA;AACd,yDAAoD;AAA3C,uGAAA,QAAQ,OAAA;AACjB,uEAAkE;AAAzD,qHAAA,eAAe,OAAA;AACxB,mDAA8C;AAArC,iGAAA,KAAK,OAAA;AACd,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,yDAAoD;AAA3C,uGAAA,QAAQ,OAAA;AACjB,qEAAgE;AAAvD,mHAAA,cAAc,OAAA;AACvB,iEAA4D;AAAnD,+GAAA,YAAY,OAAA;AACrB,mDAA8C;AAArC,iGAAA,KAAK,OAAA;AACd,6DAAwD;AAA/C,2GAAA,UAAU,OAAA;AACnB,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,uEAAkE;AAAzD,qHAAA,eAAe,OAAA;AACxB,iEAA4D;AAAnD,+GAAA,YAAY,OAAA;AACrB,+EAA0E;AAAjE,6HAAA,mBAAmB,OAAA;AAC5B,qDAAgD;AAAvC,mGAAA,MAAM,OAAA;AACf,mEAA8D;AAArD,iHAAA,aAAa,OAAA;AACtB,uDAAkD;AAAzC,qGAAA,OAAO,OAAA;AAChB,2DAAsD;AAA7C,yGAAA,SAAS,OAAA;AAClB,mEAA8D;AAArD,iHAAA,aAAa,OAAA;AACtB,uDAAkD;AAAzC,qGAAA,OAAO,OAAA;AAChB,iDAA4C;AAAnC,+FAAA,IAAI,OAAA;AACb,6DAAwD;AAA/C,2GAAA,UAAU,OAAA;AACnB,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,iDAA4C;AAAnC,+FAAA,IAAI,OAAA;AACb,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,uFAAkF;AAAzE,qIAAA,uBAAuB,OAAA;AAChC,uFAAkF;AAAzE,qIAAA,uBAAuB,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FAA4E;AAAnE,+HAAA,oBAAoB,OAAA;AAC7B,mEAA8D;AAArD,iHAAA,aAAa,OAAA;AACtB,iDAA4C;AAAnC,+FAAA,IAAI,OAAA;AACb,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,+DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,qEAAgE;AAAvD,mHAAA,cAAc,OAAA"}
|
package/_cjs/errors/version.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.walletActionsErc7715 = exports.issuePermissions = exports.serializeErc6492Signature = exports.isErc6492Signature = exports.parseErc6492Signature = exports.walletActionsEip5792 = exports.writeContracts = exports.showCallsStatus = exports.getCallsStatus = exports.sendCalls = exports.getCapabilities = void 0;
|
3
|
+
exports.soladyActions = exports.signTypedData = exports.signMessage = exports.walletActionsErc7715 = exports.issuePermissions = exports.serializeErc6492Signature = exports.isErc6492Signature = exports.parseErc6492Signature = exports.walletActionsEip5792 = exports.writeContracts = exports.showCallsStatus = exports.getCallsStatus = exports.sendCalls = exports.getCapabilities = void 0;
|
4
4
|
var getCapabilities_js_1 = require("./eip5792/actions/getCapabilities.js");
|
5
5
|
Object.defineProperty(exports, "getCapabilities", { enumerable: true, get: function () { return getCapabilities_js_1.getCapabilities; } });
|
6
6
|
var sendCalls_js_1 = require("./eip5792/actions/sendCalls.js");
|
@@ -13,14 +13,20 @@ var writeContracts_js_1 = require("./eip5792/actions/writeContracts.js");
|
|
13
13
|
Object.defineProperty(exports, "writeContracts", { enumerable: true, get: function () { return writeContracts_js_1.writeContracts; } });
|
14
14
|
var eip5792_js_1 = require("./eip5792/decorators/eip5792.js");
|
15
15
|
Object.defineProperty(exports, "walletActionsEip5792", { enumerable: true, get: function () { return eip5792_js_1.walletActionsEip5792; } });
|
16
|
-
var parseErc6492Signature_js_1 = require("
|
16
|
+
var parseErc6492Signature_js_1 = require("../utils/signature/parseErc6492Signature.js");
|
17
17
|
Object.defineProperty(exports, "parseErc6492Signature", { enumerable: true, get: function () { return parseErc6492Signature_js_1.parseErc6492Signature; } });
|
18
|
-
var isErc6492Signature_js_1 = require("
|
18
|
+
var isErc6492Signature_js_1 = require("../utils/signature/isErc6492Signature.js");
|
19
19
|
Object.defineProperty(exports, "isErc6492Signature", { enumerable: true, get: function () { return isErc6492Signature_js_1.isErc6492Signature; } });
|
20
|
-
var serializeErc6492Signature_js_1 = require("
|
20
|
+
var serializeErc6492Signature_js_1 = require("../utils/signature/serializeErc6492Signature.js");
|
21
21
|
Object.defineProperty(exports, "serializeErc6492Signature", { enumerable: true, get: function () { return serializeErc6492Signature_js_1.serializeErc6492Signature; } });
|
22
22
|
var issuePermissions_js_1 = require("./erc7715/actions/issuePermissions.js");
|
23
23
|
Object.defineProperty(exports, "issuePermissions", { enumerable: true, get: function () { return issuePermissions_js_1.issuePermissions; } });
|
24
24
|
var erc7715_js_1 = require("./erc7715/decorators/erc7715.js");
|
25
25
|
Object.defineProperty(exports, "walletActionsErc7715", { enumerable: true, get: function () { return erc7715_js_1.walletActionsErc7715; } });
|
26
|
+
var signMessage_js_1 = require("./solady/actions/signMessage.js");
|
27
|
+
Object.defineProperty(exports, "signMessage", { enumerable: true, get: function () { return signMessage_js_1.signMessage; } });
|
28
|
+
var signTypedData_js_1 = require("./solady/actions/signTypedData.js");
|
29
|
+
Object.defineProperty(exports, "signTypedData", { enumerable: true, get: function () { return signTypedData_js_1.signTypedData; } });
|
30
|
+
var solady_js_1 = require("./solady/decorators/solady.js");
|
31
|
+
Object.defineProperty(exports, "soladyActions", { enumerable: true, get: function () { return solady_js_1.soladyActions; } });
|
26
32
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":";;;AACA,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,+DAKuC;AADrC,yGAAA,SAAS,OAAA;AAEX,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,yEAM4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAGtB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":";;;AACA,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,+DAKuC;AADrC,yGAAA,SAAS,OAAA;AAEX,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,yEAM4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAGtB,wFASoD;AADlD,iIAAA,qBAAqB,OAAA;AAEvB,kFASiD;AAD/C,2HAAA,kBAAkB,OAAA;AAEpB,gGASwD;AADtD,yIAAA,yBAAyB,OAAA;AAG3B,6EAI8C;AAD5C,uHAAA,gBAAgB,OAAA;AAElB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAGtB,kEAKwC;AADtC,6GAAA,WAAW,OAAA;AAEb,sEAK0C;AADxC,iHAAA,aAAa,OAAA;AAEf,2DAIsC;AADpC,0GAAA,aAAa,OAAA"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.signMessage = void 0;
|
4
|
+
const parseAccount_js_1 = require("../../../accounts/utils/parseAccount.js");
|
5
|
+
const getEip712Domain_js_1 = require("../../../actions/public/getEip712Domain.js");
|
6
|
+
const signTypedData_js_1 = require("../../../actions/wallet/signTypedData.js");
|
7
|
+
const account_js_1 = require("../../../errors/account.js");
|
8
|
+
const getAction_js_1 = require("../../../utils/getAction.js");
|
9
|
+
const toPrefixedMessage_js_1 = require("../../../utils/signature/toPrefixedMessage.js");
|
10
|
+
async function signMessage(client, parameters) {
|
11
|
+
const { account: account_ = client.account, factory, factoryData, message, verifier, } = parameters;
|
12
|
+
if (!account_)
|
13
|
+
throw new account_js_1.AccountNotFoundError({
|
14
|
+
docsPath: '/experimental/solady/signMessage',
|
15
|
+
});
|
16
|
+
const account = (0, parseAccount_js_1.parseAccount)(account_);
|
17
|
+
const domain = await (async () => {
|
18
|
+
if (parameters.verifierDomain)
|
19
|
+
return parameters.verifierDomain;
|
20
|
+
const { domain: { salt, ...domain }, } = await (0, getAction_js_1.getAction)(client, getEip712Domain_js_1.getEip712Domain, 'getEip712Domain')({
|
21
|
+
address: verifier,
|
22
|
+
factory,
|
23
|
+
factoryData,
|
24
|
+
});
|
25
|
+
return domain;
|
26
|
+
})();
|
27
|
+
return (0, getAction_js_1.getAction)(client, signTypedData_js_1.signTypedData, 'signTypedData')({
|
28
|
+
account,
|
29
|
+
domain,
|
30
|
+
types: {
|
31
|
+
PersonalSign: [{ name: 'prefixed', type: 'bytes' }],
|
32
|
+
},
|
33
|
+
primaryType: 'PersonalSign',
|
34
|
+
message: {
|
35
|
+
prefixed: (0, toPrefixedMessage_js_1.toPrefixedMessage)(message),
|
36
|
+
},
|
37
|
+
});
|
38
|
+
}
|
39
|
+
exports.signMessage = signMessage;
|
40
|
+
//# sourceMappingURL=signMessage.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../../experimental/solady/actions/signMessage.ts"],"names":[],"mappings":";;;AAEA,6EAAsE;AACtE,mFAGmD;AACnD,+EAAwE;AAGxE,2DAAiE;AAMjE,8DAAuD;AACvD,wFAAiF;AAgF1E,KAAK,UAAU,WAAW,CAK/B,MAAyC,EACzC,UAA2D;IAE3D,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,OAAO,EACP,WAAW,EACX,OAAO,EACP,QAAQ,GACT,GAAG,UAAU,CAAA;IAEd,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,iCAAoB,CAAC;YAC7B,QAAQ,EAAE,kCAAkC;SAC7C,CAAC,CAAA;IACJ,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAA;IAEtC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAC/B,IAAI,UAAU,CAAC,cAAc;YAAE,OAAO,UAAU,CAAC,cAAc,CAAA;QAC/D,MAAM,EACJ,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAC5B,GAAG,MAAM,IAAA,wBAAS,EACjB,MAAM,EACN,oCAAe,EACf,iBAAiB,CAClB,CAAC;YACA,OAAO,EAAE,QAAS;YAClB,OAAO;YACP,WAAW;SACZ,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACf,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,IAAA,wBAAS,EACd,MAAM,EACN,gCAAa,EACb,eAAe,CAChB,CAAC;QACA,OAAO;QACP,MAAM;QACN,KAAK,EAAE;YACL,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SACpD;QACD,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,QAAQ,EAAE,IAAA,wCAAiB,EAAC,OAAO,CAAC;SACrC;KACF,CAAC,CAAA;AACJ,CAAC;AArDD,kCAqDC"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.signTypedData = void 0;
|
4
|
+
const parseAccount_js_1 = require("../../../accounts/utils/parseAccount.js");
|
5
|
+
const getEip712Domain_js_1 = require("../../../actions/public/getEip712Domain.js");
|
6
|
+
const signTypedData_js_1 = require("../../../actions/wallet/signTypedData.js");
|
7
|
+
const account_js_1 = require("../../../errors/account.js");
|
8
|
+
const encodePacked_js_1 = require("../../../utils/abi/encodePacked.js");
|
9
|
+
const size_js_1 = require("../../../utils/data/size.js");
|
10
|
+
const toHex_js_1 = require("../../../utils/encoding/toHex.js");
|
11
|
+
const getAction_js_1 = require("../../../utils/getAction.js");
|
12
|
+
const hashTypedData_js_1 = require("../../../utils/signature/hashTypedData.js");
|
13
|
+
const typedData_js_1 = require("../../../utils/typedData.js");
|
14
|
+
async function signTypedData(client, parameters) {
|
15
|
+
const { account: account_ = client.account, domain, factory, factoryData, message, primaryType, types, verifier, } = parameters;
|
16
|
+
if (!account_)
|
17
|
+
throw new account_js_1.AccountNotFoundError({
|
18
|
+
docsPath: '/experimental/solady/signTypedData',
|
19
|
+
});
|
20
|
+
const account = (0, parseAccount_js_1.parseAccount)(account_);
|
21
|
+
const { domain: verifierDomain, fields, extensions, } = await (async () => {
|
22
|
+
if (parameters.verifierDomain && parameters.fields && parameters.extensions)
|
23
|
+
return {
|
24
|
+
domain: parameters.verifierDomain,
|
25
|
+
fields: parameters.fields,
|
26
|
+
extensions: parameters.extensions,
|
27
|
+
};
|
28
|
+
return (0, getAction_js_1.getAction)(client, getEip712Domain_js_1.getEip712Domain, 'getEip712Domain')({
|
29
|
+
address: verifier,
|
30
|
+
factory,
|
31
|
+
factoryData,
|
32
|
+
});
|
33
|
+
})();
|
34
|
+
const signature = await (0, getAction_js_1.getAction)(client, signTypedData_js_1.signTypedData, 'signTypedData')({
|
35
|
+
account,
|
36
|
+
domain,
|
37
|
+
types: {
|
38
|
+
...types,
|
39
|
+
TypedDataSign: [
|
40
|
+
{ name: 'contents', type: primaryType },
|
41
|
+
{ name: 'fields', type: 'bytes1' },
|
42
|
+
{ name: 'name', type: 'string' },
|
43
|
+
{ name: 'version', type: 'string' },
|
44
|
+
{ name: 'chainId', type: 'uint256' },
|
45
|
+
{ name: 'verifyingContract', type: 'address' },
|
46
|
+
{ name: 'salt', type: 'bytes32' },
|
47
|
+
{ name: 'extensions', type: 'uint256[]' },
|
48
|
+
],
|
49
|
+
},
|
50
|
+
primaryType: 'TypedDataSign',
|
51
|
+
message: {
|
52
|
+
contents: message,
|
53
|
+
fields,
|
54
|
+
extensions,
|
55
|
+
...verifierDomain,
|
56
|
+
},
|
57
|
+
});
|
58
|
+
const hashedDomain = (0, hashTypedData_js_1.hashStruct)({
|
59
|
+
data: domain ?? {},
|
60
|
+
types: {
|
61
|
+
EIP712Domain: (0, typedData_js_1.getTypesForEIP712Domain)({ domain }),
|
62
|
+
},
|
63
|
+
primaryType: 'EIP712Domain',
|
64
|
+
});
|
65
|
+
const hashedContents = (0, hashTypedData_js_1.hashStruct)({
|
66
|
+
data: message,
|
67
|
+
types: types,
|
68
|
+
primaryType,
|
69
|
+
});
|
70
|
+
const encodedType = (0, hashTypedData_js_1.encodeType)({
|
71
|
+
primaryType,
|
72
|
+
types: types,
|
73
|
+
});
|
74
|
+
return (0, encodePacked_js_1.encodePacked)(['bytes', 'bytes32', 'bytes32', 'bytes', 'uint16'], [
|
75
|
+
signature,
|
76
|
+
hashedDomain,
|
77
|
+
hashedContents,
|
78
|
+
(0, toHex_js_1.stringToHex)(encodedType),
|
79
|
+
(0, size_js_1.size)((0, toHex_js_1.stringToHex)(encodedType)),
|
80
|
+
]);
|
81
|
+
}
|
82
|
+
exports.signTypedData = signTypedData;
|
83
|
+
//# sourceMappingURL=signTypedData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../../experimental/solady/actions/signTypedData.ts"],"names":[],"mappings":";;;AAGA,6EAAsE;AACtE,mFAGmD;AACnD,+EAA0F;AAG1F,2DAAiE;AAOjE,wEAAiE;AACjE,yDAAkD;AAClD,+DAA8D;AAC9D,8DAAuD;AACvD,gFAGkD;AAClD,8DAAqE;AA2I9D,KAAK,UAAU,aAAa,CAOjC,MAAyC,EACzC,UAKC;IAED,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,MAAM,EACN,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,EACX,KAAK,EACL,QAAQ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EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;aAC1C;SACF;QACD,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE;YACP,QAAQ,EAAE,OAAc;YACxB,MAAM;YACN,UAAU;YACV,GAAI,cAAsB;SAC3B;KACF,CAAC,CAAA;IAGF,MAAM,YAAY,GAAG,IAAA,6BAAU,EAAC;QAC9B,IAAI,EAAE,MAAM,IAAI,EAAE;QAClB,KAAK,EAAE;YACL,YAAY,EAAE,IAAA,sCAAuB,EAAC,EAAE,MAAM,EAAE,CAAC;SAClD;QACD,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAA;IACF,MAAM,cAAc,GAAG,IAAA,6BAAU,EAAC;QAChC,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAY;QACnB,WAAW;KACZ,CAAC,CAAA;IACF,MAAM,WAAW,GAAG,IAAA,6BAAU,EAAC;QAC7B,WAAW;QACX,KAAK,EAAE,KAAY;KACpB,CAAC,CAAA;IAGF,OAAO,IAAA,8BAAY,EACjB,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,EAClD;QACE,SAAS;QACT,YAAY;QACZ,cAAc;QACd,IAAA,sBAAW,EAAC,WAAW,CAAC;QACxB,IAAA,cAAI,EAAC,IAAA,sBAAW,EAAC,WAAW,CAAC,CAAC;KAC/B,CACF,CAAA;AACH,CAAC;AAlHD,sCAkHC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.soladyActions = void 0;
|
4
|
+
const signMessage_js_1 = require("../actions/signMessage.js");
|
5
|
+
const signTypedData_js_1 = require("../actions/signTypedData.js");
|
6
|
+
function soladyActions(parameters = {}) {
|
7
|
+
const { verifier } = parameters;
|
8
|
+
return (client) => {
|
9
|
+
return {
|
10
|
+
signMessage: (parameters) => (0, signMessage_js_1.signMessage)(client, { verifier, ...parameters }),
|
11
|
+
signTypedData: (parameters) => (0, signTypedData_js_1.signTypedData)(client, { verifier, ...parameters }),
|
12
|
+
};
|
13
|
+
};
|
14
|
+
}
|
15
|
+
exports.soladyActions = soladyActions;
|
16
|
+
//# sourceMappingURL=solady.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"solady.js","sourceRoot":"","sources":["../../../../experimental/solady/decorators/solady.ts"],"names":[],"mappings":";;;AAKA,8DAIkC;AAClC,kEAIoC;AAuMpC,SAAgB,aAAa,CAC3B,aAAgD,EAAE;IAElD,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAA;IAC/B,OAAO,CAKL,MAAyC,EACP,EAAE;QACpC,OAAO;YACL,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE,CAC1B,IAAA,4BAAW,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,CAAC;YAClD,aAAa,EAAE,CAAC,UAAU,EAAE,EAAE,CAC5B,IAAA,gCAAa,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,GAAI,UAAkB,EAAE,CAAC;SAC9D,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAlBD,sCAkBC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../experimental/solady/types.ts"],"names":[],"mappings":""}
|