chore: upgrade viem to 2.19.3 and cleanup redundant imports (#4023)
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
The PR updates `viem` to version 2.19.3 and removes a constant from `constants.ts`.
### Detailed summary
- Updated `viem` dependency to version 2.19.3
- Removed `universalSignatureValidatorAbi` constant from `constants.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
"js-awe": "^1.0.65",
|
||||
"tinybench": "^2.6.0",
|
||||
"typescript": "5.5.4",
|
||||
"viem": "2.19.2"
|
||||
"viem": "2.19.3"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "biome format ./src --write",
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
"mipd": "0.0.7",
|
||||
"node-libs-browser": "2.2.1",
|
||||
"uqr": "0.1.2",
|
||||
"viem": "2.19.2"
|
||||
"viem": "2.19.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@aws-sdk/client-lambda": "^3",
|
||||
|
||||
@@ -1,27 +1,2 @@
|
||||
export const ERC_6492_MAGIC_VALUE =
|
||||
"0x6492649264926492649264926492649264926492649264926492649264926492" as const;
|
||||
|
||||
// returns either 0x1 (valid) or 0x0 (invalid)
|
||||
export const universalSignatureValidatorAbi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: "address",
|
||||
name: "_signer",
|
||||
type: "address",
|
||||
},
|
||||
{
|
||||
internalType: "bytes32",
|
||||
name: "_hash",
|
||||
type: "bytes32",
|
||||
},
|
||||
{
|
||||
internalType: "bytes",
|
||||
name: "_signature",
|
||||
type: "bytes",
|
||||
},
|
||||
],
|
||||
stateMutability: "nonpayable",
|
||||
type: "constructor",
|
||||
},
|
||||
] as const;
|
||||
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
type Signature,
|
||||
encodeDeployData,
|
||||
serializeSignature,
|
||||
universalSignatureValidatorAbi,
|
||||
universalSignatureValidatorByteCode,
|
||||
} from "viem";
|
||||
import type { Chain } from "../chains/types.js";
|
||||
@@ -12,7 +13,6 @@ import { getRpcClient } from "../rpc/rpc.js";
|
||||
import { fromBytes } from "../utils/encoding/from-bytes.js";
|
||||
import { type Hex, isHex } from "../utils/encoding/hex.js";
|
||||
import { toBytes } from "../utils/encoding/to-bytes.js";
|
||||
import { universalSignatureValidatorAbi } from "./constants.js";
|
||||
import { isErc6492Signature } from "./is-erc6492-signature.js";
|
||||
import { serializeErc6492Signature } from "./serialize-erc6492-signature.js";
|
||||
|
||||
|
||||
Generated
+11
-11
Reference in New Issue
Block a user