Socket
Socket
Sign inDemoInstall

@alchemy/aa-accounts

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alchemy/aa-accounts - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

dist/cjs/plugindefs/multi-owner/config.js

@@ -11,3 +11,3 @@ "use strict";

addresses: {
[chains_1.sepolia.id]: "0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB",
[chains_1.sepolia.id]: "0xB76734F322b9f2C8F1dA934252dED3bC3C25b109",
},

@@ -14,0 +14,0 @@ chain: chains_1.sepolia,

@@ -10,3 +10,3 @@ "use strict";

addresses: {
[chains_1.sepolia.id]: "0x4FCDe5A446208a20A1539FC425832334bc8360Fb",
[chains_1.sepolia.id]: "0x360b59D3D922fe6b015257390b35E7dBA8632A50",
},

@@ -13,0 +13,0 @@ chain: chains_1.sepolia,

@@ -12,4 +12,8 @@ "use strict";

const signWith712Wrapper = async (msg) => {
const { readEip712Domain } = plugin_js_1.MultiOwnerPlugin.accountMethods(acct);
const [, name, version, chainId, verifyingContract, salt] = await readEip712Domain();
const [, name, version, chainId, , salt] = await acct.rpcProvider.readContract({
abi: plugin_js_1.MultiOwnerPluginAbi,
address: plugin_js_1.MultiOwnerPlugin.meta.addresses[acct.rpcProvider.chain.id],
functionName: "eip712Domain",
account: await acct.getAddress(),
});
return owner.signTypedData({

@@ -20,3 +24,3 @@ domain: {

salt,
verifyingContract,
verifyingContract: await acct.getAddress(),
version,

@@ -23,0 +27,0 @@ },

@@ -7,3 +7,3 @@ "use strict";

const addresses = {
11155111: '0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB',
11155111: '0xB76734F322b9f2C8F1dA934252dED3bC3C25b109',
};

@@ -10,0 +10,0 @@ const MultiOwnerPlugin_ = {

@@ -7,3 +7,3 @@ "use strict";

const addresses = {
11155111: '0x4FCDe5A446208a20A1539FC425832334bc8360Fb',
11155111: '0x360b59D3D922fe6b015257390b35E7dBA8632A50',
};

@@ -10,0 +10,0 @@ const TokenReceiverPlugin_ = {

@@ -16,4 +16,4 @@ "use strict";

return excludeDefaultTokenReceiverPlugin
? "0xFD14c78640d72f73CC88238E2f7Df3273Ee84043"
: "0x22322E35c1850F26DD54Ed8F59a27C1c79847A15";
? "0xC69731F267760466663470256A7ba28F79eDC4d6"
: "0x852B3a676684031Cb77b69B50D8d7879f4c4807d";
case chains_1.mainnet.id:

@@ -20,0 +20,0 @@ case chains_1.goerli.id:

@@ -8,3 +8,3 @@ import { parseAbiParameters } from "viem";

addresses: {
[sepolia.id]: "0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB",
[sepolia.id]: "0xB76734F322b9f2C8F1dA934252dED3bC3C25b109",
},

@@ -11,0 +11,0 @@ chain: sepolia,

@@ -7,3 +7,3 @@ import { sepolia } from "viem/chains";

addresses: {
[sepolia.id]: "0x4FCDe5A446208a20A1539FC425832334bc8360Fb",
[sepolia.id]: "0x360b59D3D922fe6b015257390b35E7dBA8632A50",
},

@@ -10,0 +10,0 @@ chain: sepolia,

import { hashMessage, hashTypedData, hexToBytes, isBytes, } from "viem";
import { MultiOwnerPlugin } from "../plugins/multi-owner/plugin.js";
import { MultiOwnerPlugin, MultiOwnerPluginAbi, } from "../plugins/multi-owner/plugin.js";
export const WrapWith712SignerMethods = (acct) => {

@@ -9,4 +9,8 @@ const owner = acct.getOwner();

const signWith712Wrapper = async (msg) => {
const { readEip712Domain } = MultiOwnerPlugin.accountMethods(acct);
const [, name, version, chainId, verifyingContract, salt] = await readEip712Domain();
const [, name, version, chainId, , salt] = await acct.rpcProvider.readContract({
abi: MultiOwnerPluginAbi,
address: MultiOwnerPlugin.meta.addresses[acct.rpcProvider.chain.id],
functionName: "eip712Domain",
account: await acct.getAddress(),
});
return owner.signTypedData({

@@ -17,3 +21,3 @@ domain: {

salt,
verifyingContract,
verifyingContract: await acct.getAddress(),
version,

@@ -20,0 +24,0 @@ },

@@ -8,3 +8,3 @@ import { getContract, encodeFunctionData, encodeAbiParameters, } from 'viem';

const addresses = {
11155111: '0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB',
11155111: '0xB76734F322b9f2C8F1dA934252dED3bC3C25b109',
};

@@ -11,0 +11,0 @@ const MultiOwnerPlugin_ = {

@@ -8,3 +8,3 @@ import { getContract, encodeFunctionData, encodeAbiParameters, } from 'viem';

const addresses = {
11155111: '0x4FCDe5A446208a20A1539FC425832334bc8360Fb',
11155111: '0x360b59D3D922fe6b015257390b35E7dBA8632A50',
};

@@ -11,0 +11,0 @@ const TokenReceiverPlugin_ = {

@@ -13,4 +13,4 @@ import { encodeAbiParameters, encodeFunctionData, encodeFunctionResult, keccak256, parseAbiParameters, } from "viem";

return excludeDefaultTokenReceiverPlugin
? "0xFD14c78640d72f73CC88238E2f7Df3273Ee84043"
: "0x22322E35c1850F26DD54Ed8F59a27C1c79847A15";
? "0xC69731F267760466663470256A7ba28F79eDC4d6"
: "0x852B3a676684031Cb77b69B50D8d7879f4c4807d";
case mainnet.id:

@@ -17,0 +17,0 @@ case goerli.id:

{
"name": "@alchemy/aa-accounts",
"version": "2.3.0",
"version": "2.3.1",
"description": "A collection of ERC-4337 compliant smart contract account interfaces",

@@ -75,7 +75,7 @@ "author": "Alchemy",

"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
"gitHead": "b49bb250d9e0ca297bd03f1afceacdb06ac72bf4",
"gitHead": "a48aa035b555fce1ddaf2284b05b532ecbb88e06",
"dependencies": {
"@alchemy/aa-core": "^2.3.0",
"@alchemy/aa-core": "^2.3.1",
"viem": "^1.21.4"
}
}

@@ -10,3 +10,3 @@ import { parseAbiParameters } from "viem";

addresses: {
[sepolia.id]: "0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB",
[sepolia.id]: "0xB76734F322b9f2C8F1dA934252dED3bC3C25b109",
},

@@ -13,0 +13,0 @@ chain: sepolia,

@@ -9,3 +9,3 @@ import { sepolia } from "viem/chains";

addresses: {
[sepolia.id]: "0x4FCDe5A446208a20A1539FC425832334bc8360Fb",
[sepolia.id]: "0x360b59D3D922fe6b015257390b35E7dBA8632A50",
},

@@ -12,0 +12,0 @@ chain: sepolia,

@@ -9,3 +9,6 @@ import type { SignTypedDataParams } from "@alchemy/aa-core";

} from "viem";
import { MultiOwnerPlugin } from "../plugins/multi-owner/plugin.js";
import {
MultiOwnerPlugin,
MultiOwnerPluginAbi,
} from "../plugins/multi-owner/plugin.js";
import type { SignerMethods } from "./types";

@@ -21,7 +24,11 @@

const signWith712Wrapper = async (msg: Hash): Promise<`0x${string}`> => {
const { readEip712Domain } = MultiOwnerPlugin.accountMethods(acct);
// TODO: right now this is hard coded to one Plugin address, but we should make this configurable somehow
const [, name, version, chainId, , salt] =
await acct.rpcProvider.readContract({
abi: MultiOwnerPluginAbi,
address: MultiOwnerPlugin.meta.addresses[acct.rpcProvider.chain.id],
functionName: "eip712Domain",
account: await acct.getAddress(),
});
const [, name, version, chainId, verifyingContract, salt] =
await readEip712Domain();
return owner.signTypedData({

@@ -32,3 +39,3 @@ domain: {

salt,
verifyingContract,
verifyingContract: await acct.getAddress(),
version,

@@ -35,0 +42,0 @@ },

@@ -31,3 +31,3 @@ import {

const addresses = {
11155111: "0x90d4f511c9Ca2B1694eA2A1629130B430853aBeB" as Address,
11155111: "0xB76734F322b9f2C8F1dA934252dED3bC3C25b109" as Address,
} as Record<number, Address>;

@@ -34,0 +34,0 @@

@@ -31,3 +31,3 @@ import {

const addresses = {
11155111: "0x4FCDe5A446208a20A1539FC425832334bc8360Fb" as Address,
11155111: "0x360b59D3D922fe6b015257390b35E7dBA8632A50" as Address,
} as Record<number, Address>;

@@ -34,0 +34,0 @@

@@ -51,4 +51,4 @@ import type {

return excludeDefaultTokenReceiverPlugin
? "0xFD14c78640d72f73CC88238E2f7Df3273Ee84043" // MultiOwnerMSCAFactory
: "0x22322E35c1850F26DD54Ed8F59a27C1c79847A15";
? "0xC69731F267760466663470256A7ba28F79eDC4d6" // MultiOwnerMSCAFactory
: "0x852B3a676684031Cb77b69B50D8d7879f4c4807d";
case mainnet.id:

@@ -55,0 +55,0 @@ case goerli.id:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc