viem 2.40.1 → 2.40.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # viem
2
2
 
3
+ ## 2.40.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73f5e468b57862250529be1233c39dee7520df20`](https://github.com/wevm/viem/commit/73f5e468b57862250529be1233c39dee7520df20) Thanks [@jxom](https://github.com/jxom)! - Added `getAction` support to `verifyMessage` and `verifyTypedData`.
8
+
3
9
  ## 2.40.1
4
10
 
5
11
  ### Patch Changes
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.verifyMessage = verifyMessage;
4
+ const getAction_js_1 = require("../../utils/getAction.js");
4
5
  const hashMessage_js_1 = require("../../utils/signature/hashMessage.js");
5
6
  const verifyHash_js_1 = require("./verifyHash.js");
6
7
  async function verifyMessage(client, { address, message, factory, factoryData, signature, ...callRequest }) {
7
8
  const hash = (0, hashMessage_js_1.hashMessage)(message);
8
- return (0, verifyHash_js_1.verifyHash)(client, {
9
+ return (0, getAction_js_1.getAction)(client, verifyHash_js_1.verifyHash, 'verifyHash')({
9
10
  address,
10
11
  factory: factory,
11
12
  factoryData: factoryData,
@@ -1 +1 @@
1
- {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":";;AAkDA,sCAoBC;AAxDD,yEAAkE;AAClE,mDAIwB;AA+BjB,KAAK,UAAU,aAAa,CACjC,MAAgC,EAChC,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"}
1
+ {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":";;AAmDA,sCAwBC;AA9DD,2DAAoD;AAEpD,yEAAkE;AAClE,mDAIwB;AA+BjB,KAAK,UAAU,aAAa,CACjC,MAAgC,EAChC,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,wBAAS,EACd,MAAM,EACN,0BAAU,EACV,YAAY,CACb,CAAC;QACA,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.verifyTypedData = verifyTypedData;
4
+ const getAction_js_1 = require("../../utils/getAction.js");
4
5
  const hashTypedData_js_1 = require("../../utils/signature/hashTypedData.js");
5
6
  const verifyHash_js_1 = require("./verifyHash.js");
6
7
  async function verifyTypedData(client, parameters) {
7
8
  const { address, factory, factoryData, signature, message, primaryType, types, domain, ...callRequest } = parameters;
8
9
  const hash = (0, hashTypedData_js_1.hashTypedData)({ message, primaryType, types, domain });
9
- return (0, verifyHash_js_1.verifyHash)(client, {
10
+ return (0, getAction_js_1.getAction)(client, verifyHash_js_1.verifyHash, 'verifyHash')({
10
11
  address,
11
12
  factory: factory,
12
13
  factoryData: factoryData,
@@ -1 +1 @@
1
- {"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../actions/public/verifyTypedData.ts"],"names":[],"mappings":";;AA6CA,0CA4BC;AAjED,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"}
1
+ {"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../actions/public/verifyTypedData.ts"],"names":[],"mappings":";;AA8CA,0CAgCC;AAtED,2DAAoD;AACpD,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,wBAAS,EACd,MAAM,EACN,0BAAU,EACV,YAAY,CACb,CAAC;QACA,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.40.1';
4
+ exports.version = '2.40.2';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,4 @@
1
+ import { getAction } from '../../utils/getAction.js';
1
2
  import { hashMessage } from '../../utils/signature/hashMessage.js';
2
3
  import { verifyHash, } from './verifyHash.js';
3
4
  /**
@@ -13,7 +14,7 @@ import { verifyHash, } from './verifyHash.js';
13
14
  */
14
15
  export async function verifyMessage(client, { address, message, factory, factoryData, signature, ...callRequest }) {
15
16
  const hash = hashMessage(message);
16
- return verifyHash(client, {
17
+ return getAction(client, verifyHash, 'verifyHash')({
17
18
  address,
18
19
  factory: factory,
19
20
  factoryData: factoryData,
@@ -1 +1 @@
1
- {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAClE,OAAO,EAGL,UAAU,GACX,MAAM,iBAAiB,CAAA;AAoBxB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAgC,EAChC,EACE,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,GAAG,WAAW,EACU;IAE1B,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,UAAU,CAAC,MAAM,EAAE;QACxB,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAClE,OAAO,EAGL,UAAU,GACX,MAAM,iBAAiB,CAAA;AAoBxB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAgC,EAChC,EACE,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,GAAG,WAAW,EACU;IAE1B,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,SAAS,CACd,MAAM,EACN,UAAU,EACV,YAAY,CACb,CAAC;QACA,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { getAction } from '../../utils/getAction.js';
1
2
  import { hashTypedData, } from '../../utils/signature/hashTypedData.js';
2
3
  import { verifyHash, } from './verifyHash.js';
3
4
  /**
@@ -12,7 +13,7 @@ import { verifyHash, } from './verifyHash.js';
12
13
  export async function verifyTypedData(client, parameters) {
13
14
  const { address, factory, factoryData, signature, message, primaryType, types, domain, ...callRequest } = parameters;
14
15
  const hash = hashTypedData({ message, primaryType, types, domain });
15
- return verifyHash(client, {
16
+ return getAction(client, verifyHash, 'verifyHash')({
16
17
  address,
17
18
  factory: factory,
18
19
  factoryData: factoryData,
@@ -1 +1 @@
1
- {"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../actions/public/verifyTypedData.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,aAAa,GACd,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAGL,UAAU,GACX,MAAM,iBAAiB,CAAA;AAoBxB;;;;;;;;GAQG;AACH,MAAM,CAAC,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,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IACnE,OAAO,UAAU,CAAC,MAAM,EAAE;QACxB,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,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,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAEL,aAAa,GACd,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAGL,UAAU,GACX,MAAM,iBAAiB,CAAA;AAoBxB;;;;;;;;GAQG;AACH,MAAM,CAAC,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,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IACnE,OAAO,SAAS,CACd,MAAM,EACN,UAAU,EACV,YAAY,CACb,CAAC;QACA,OAAO;QACP,OAAO,EAAE,OAAQ;QACjB,WAAW,EAAE,WAAY;QACzB,IAAI;QACJ,SAAS;QACT,GAAG,WAAW;KACf,CAAC,CAAA;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = '2.40.1';
1
+ export const version = '2.40.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyMessage.d.ts","sourceRoot":"","sources":["../../../actions/public/verifyMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,K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,gDAAgD;IAChD,OAAO,EAAE,OAAO,CAAA;IAChB,8BAA8B;IAC9B,SAAS,EAAE,GAAG,GAAG,SAAS,GAAG,SAAS,CAAA;CACvC,CAAA;AAEH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAA;AAE/C,MAAM,MAAM,wBAAwB,GAChC,sBAAsB,GACtB,mBAAmB,GACnB,SAAS,CAAA;AAEb;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,KAAK,CAAC,SAAS,SAAS,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,WAAW,SAAS,MAAM,SAAS,GAAG,cAAc,EACpD,KAAK,SAAS,KAAK,GAAG,SAAS,EAE/B,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,UAAU,EAAE,yBAAyB,CAAC,SAAS,EAAE,WAAW,CAAC,GAC5D,OAAO,CAAC,yBAAyB,CAAC,CAyBpC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.40.1";
1
+ export declare const version = "2.40.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -11,6 +11,7 @@ import type {
11
11
  Signature,
12
12
  } from '../../types/misc.js'
13
13
  import type { Prettify } from '../../types/utils.js'
14
+ import { getAction } from '../../utils/getAction.js'
14
15
  import type { HashMessageErrorType } from '../../utils/signature/hashMessage.js'
15
16
  import { hashMessage } from '../../utils/signature/hashMessage.js'
16
17
  import {
@@ -60,7 +61,11 @@ export async function verifyMessage<chain extends Chain | undefined>(
60
61
  }: VerifyMessageParameters,
61
62
  ): Promise<VerifyMessageReturnType> {
62
63
  const hash = hashMessage(message)
63
- return verifyHash(client, {
64
+ return getAction(
65
+ client,
66
+ verifyHash,
67
+ 'verifyHash',
68
+ )({
64
69
  address,
65
70
  factory: factory!,
66
71
  factoryData: factoryData!,
@@ -6,6 +6,7 @@ import type { ErrorType } from '../../errors/utils.js'
6
6
  import type { Chain } from '../../types/chain.js'
7
7
  import type { ByteArray, Hex, Signature } from '../../types/misc.js'
8
8
  import type { TypedDataDefinition } from '../../types/typedData.js'
9
+ import { getAction } from '../../utils/getAction.js'
9
10
  import {
10
11
  type HashTypedDataErrorType,
11
12
  hashTypedData,
@@ -63,7 +64,11 @@ export async function verifyTypedData<
63
64
  ...callRequest
64
65
  } = parameters as VerifyTypedDataParameters
65
66
  const hash = hashTypedData({ message, primaryType, types, domain })
66
- return verifyHash(client, {
67
+ return getAction(
68
+ client,
69
+ verifyHash,
70
+ 'verifyHash',
71
+ )({
67
72
  address,
68
73
  factory: factory!,
69
74
  factoryData: factoryData!,
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.40.1'
1
+ export const version = '2.40.2'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.40.1",
4
+ "version": "2.40.2",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",