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 0.1.0-alpha.32 to 0.1.0

dist/cjs/light-account/abis/LightAccountAbi.d.ts

6

./dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatorMode = exports.KernelBaseValidator = exports.KernelAccountProvider = exports.KernelSmartContractAccount = exports.KernelFactoryAbi = exports.KernelAccountAbi = void 0;
exports.getDefaultLightAccountFactory = exports.LightSmartContractAccount = exports.ValidatorMode = exports.KernelBaseValidator = exports.KernelAccountProvider = exports.KernelSmartContractAccount = exports.KernelFactoryAbi = exports.KernelAccountAbi = void 0;
var KernelAccountAbi_js_1 = require("./kernel-zerodev/abis/KernelAccountAbi.js");

@@ -15,2 +15,6 @@ Object.defineProperty(exports, "KernelAccountAbi", { enumerable: true, get: function () { return KernelAccountAbi_js_1.KernelAccountAbi; } });

Object.defineProperty(exports, "ValidatorMode", { enumerable: true, get: function () { return base_js_1.ValidatorMode; } });
var account_js_2 = require("./light-account/account.js");
Object.defineProperty(exports, "LightSmartContractAccount", { enumerable: true, get: function () { return account_js_2.LightSmartContractAccount; } });
var utils_js_1 = require("./light-account/utils.js");
Object.defineProperty(exports, "getDefaultLightAccountFactory", { enumerable: true, get: function () { return utils_js_1.getDefaultLightAccountFactory; } });
//# sourceMappingURL=index.js.map

@@ -9,1 +9,3 @@ export { KernelAccountAbi } from "./kernel-zerodev/abis/KernelAccountAbi.js";

export type { KernelBaseValidatorParams } from "./kernel-zerodev/validator/base.js";
export { LightSmartContractAccount } from "./light-account/account.js";
export { getDefaultLightAccountFactory } from "./light-account/utils.js";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatorMode = exports.KernelBaseValidator = exports.KernelAccountProvider = exports.KernelSmartContractAccount = exports.KernelFactoryAbi = exports.KernelAccountAbi = void 0;
exports.getDefaultLightAccountFactory = exports.LightSmartContractAccount = exports.ValidatorMode = exports.KernelBaseValidator = exports.KernelAccountProvider = exports.KernelSmartContractAccount = exports.KernelFactoryAbi = exports.KernelAccountAbi = void 0;
var KernelAccountAbi_js_1 = require("./kernel-zerodev/abis/KernelAccountAbi.js");

@@ -15,2 +15,6 @@ Object.defineProperty(exports, "KernelAccountAbi", { enumerable: true, get: function () { return KernelAccountAbi_js_1.KernelAccountAbi; } });

Object.defineProperty(exports, "ValidatorMode", { enumerable: true, get: function () { return base_js_1.ValidatorMode; } });
var account_js_2 = require("./light-account/account.js");
Object.defineProperty(exports, "LightSmartContractAccount", { enumerable: true, get: function () { return account_js_2.LightSmartContractAccount; } });
var utils_js_1 = require("./light-account/utils.js");
Object.defineProperty(exports, "getDefaultLightAccountFactory", { enumerable: true, get: function () { return utils_js_1.getDefaultLightAccountFactory; } });
//# sourceMappingURL=index.js.map

13

dist/cjs/kernel-zerodev/account.d.ts
import { BaseSmartContractAccount, type BaseSmartAccountParams, type BatchUserOperationCallData, type SmartAccountSigner } from "@alchemy/aa-core";
import type { Address } from "abitype";
import { type FallbackTransport, type Hex, type Transport } from "viem";

@@ -7,3 +6,2 @@ import { KernelBaseValidator } from "./validator/base.js";

owner: SmartAccountSigner;
factoryAddress: Address;
index?: bigint;

@@ -14,17 +12,16 @@ defaultValidator: KernelBaseValidator;

export declare class KernelSmartContractAccount<TTransport extends Transport | FallbackTransport = Transport> extends BaseSmartContractAccount<TTransport> {
private owner;
private readonly factoryAddress;
protected owner: SmartAccountSigner;
private readonly index;
private defaultValidator;
private validator;
constructor(params: KernelSmartAccountParams);
constructor(params: KernelSmartAccountParams<TTransport>);
getDummySignature(): Hex;
encodeExecute(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected getAccountInitCode(): Promise<Hex>;
encodeExecuteDelegate(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(_txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signWithEip6492(msg: string | Uint8Array): Promise<Hex>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected encodeExecuteAction(target: Hex, value: bigint, data: Hex, code: number): Hex;
protected getAccountInitCode(): Promise<Hex>;
protected getFactoryInitCode(): Promise<Hex>;
}

@@ -21,8 +21,2 @@ "use strict";

});
Object.defineProperty(this, "factoryAddress", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "index", {

@@ -48,3 +42,2 @@ enumerable: true,

this.owner = params.owner;
this.factoryAddress = params.factoryAddress;
this.defaultValidator = params.defaultValidator;

@@ -64,7 +57,4 @@ this.validator = params.validator ?? params.defaultValidator;

}
async encodeExecuteDelegate(target, value, data) {
return this.encodeExecuteAction(target, value, data, 1);
}
async encodeBatchExecute(_txs) {
const multiSendData = (0, viem_1.concatHex)(_txs.map((tx) => (0, utils_js_1.encodeCall)(tx)));
async encodeBatchExecute(txs) {
const multiSendData = (0, viem_1.concatHex)(txs.map((tx) => (0, utils_js_1.encodeCall)(tx)));
return (0, viem_1.encodeFunctionData)({

@@ -76,2 +66,12 @@ abi: MultiSendAbi_js_1.MultiSendAbi,

}
signMessage(msg) {
const formattedMessage = typeof msg === "string" ? (0, viem_1.toBytes)(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
async getAccountInitCode() {
return (0, viem_1.concatHex)([this.factoryAddress, await this.getFactoryInitCode()]);
}
async encodeExecuteDelegate(target, value, data) {
return this.encodeExecuteAction(target, value, data, 1);
}
async signWithEip6492(msg) {

@@ -92,6 +92,2 @@ try {

}
signMessage(msg) {
const formattedMessage = typeof msg === "string" ? (0, viem_1.toBytes)(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
encodeExecuteAction(target, value, data, code) {

@@ -104,5 +100,2 @@ return (0, viem_1.encodeFunctionData)({

}
async getAccountInitCode() {
return (0, viem_1.concatHex)([this.factoryAddress, await this.getFactoryInitCode()]);
}
async getFactoryInitCode() {

@@ -115,3 +108,3 @@ try {

this.defaultValidator.getAddress(),
await this.defaultValidator.getOwner(),
await this.defaultValidator.getOwnerAddress(),
this.index,

@@ -118,0 +111,0 @@ ],

@@ -23,2 +23,3 @@ "use strict";

const owner = {
signerType: "kernel-zerodev",
signMessage: async (msg) => ownerAccount.signMessage({

@@ -43,3 +44,7 @@ message: { raw: (0, viem_1.toHex)(msg) },

});
const provider = new provider_js_1.KernelAccountProvider(config.rpcProvider, config.entryPointAddress, config.chain);
const provider = new provider_js_1.KernelAccountProvider({
rpcProvider: config.rpcProvider,
entryPointAddress: config.entryPointAddress,
chain: config.chain,
});
function connect(index, owner = mockOwner) {

@@ -46,0 +51,0 @@ return provider.connect((_provider) => account(index, owner));

import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core";
export declare class MockSigner implements SmartAccountSigner {
signerType: string;
getAddress(): Promise<Address>;

@@ -4,0 +5,0 @@ signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>;

@@ -5,2 +5,10 @@ "use strict";

class MockSigner {
constructor() {
Object.defineProperty(this, "signerType", {
enumerable: true,
configurable: true,
writable: true,
value: "mock"
});
}
getAddress() {

@@ -7,0 +15,0 @@ return Promise.resolve("0x48D4d3536cDe7A257087206870c6B6E76e3D4ff4");

@@ -18,4 +18,4 @@ import { type Hex } from "viem";

getAddress(): Hex;
getOwner(): Promise<Hex>;
getOwnerAddress(): Promise<Hex>;
signMessageWithValidatorParams(userOpHash: Uint8Array | string | Hex): Promise<Hex>;
}

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

}
async getOwner() {
async getOwnerAddress() {
return this.owner.getAddress();

@@ -40,0 +40,0 @@ }

@@ -9,1 +9,3 @@ export { KernelAccountAbi } from "./kernel-zerodev/abis/KernelAccountAbi.js";

export type { KernelBaseValidatorParams } from "./kernel-zerodev/validator/base.js";
export { LightSmartContractAccount } from "./light-account/account.js";
export { getDefaultLightAccountFactory } from "./light-account/utils.js";

@@ -6,2 +6,4 @@ export { KernelAccountAbi } from "./kernel-zerodev/abis/KernelAccountAbi.js";

export { KernelBaseValidator, ValidatorMode, } from "./kernel-zerodev/validator/base.js";
export { LightSmartContractAccount } from "./light-account/account.js";
export { getDefaultLightAccountFactory } from "./light-account/utils.js";
//# sourceMappingURL=index.js.map
import { BaseSmartContractAccount, type BaseSmartAccountParams, type BatchUserOperationCallData, type SmartAccountSigner } from "@alchemy/aa-core";
import type { Address } from "abitype";
import { type FallbackTransport, type Hex, type Transport } from "viem";

@@ -7,3 +6,2 @@ import { KernelBaseValidator } from "./validator/base.js";

owner: SmartAccountSigner;
factoryAddress: Address;
index?: bigint;

@@ -14,17 +12,16 @@ defaultValidator: KernelBaseValidator;

export declare class KernelSmartContractAccount<TTransport extends Transport | FallbackTransport = Transport> extends BaseSmartContractAccount<TTransport> {
private owner;
private readonly factoryAddress;
protected owner: SmartAccountSigner;
private readonly index;
private defaultValidator;
private validator;
constructor(params: KernelSmartAccountParams);
constructor(params: KernelSmartAccountParams<TTransport>);
getDummySignature(): Hex;
encodeExecute(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected getAccountInitCode(): Promise<Hex>;
encodeExecuteDelegate(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(_txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signWithEip6492(msg: string | Uint8Array): Promise<Hex>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected encodeExecuteAction(target: Hex, value: bigint, data: Hex, code: number): Hex;
protected getAccountInitCode(): Promise<Hex>;
protected getFactoryInitCode(): Promise<Hex>;
}

@@ -18,8 +18,2 @@ import { BaseSmartContractAccount, } from "@alchemy/aa-core";

});
Object.defineProperty(this, "factoryAddress", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "index", {

@@ -45,3 +39,2 @@ enumerable: true,

this.owner = params.owner;
this.factoryAddress = params.factoryAddress;
this.defaultValidator = params.defaultValidator;

@@ -61,7 +54,4 @@ this.validator = params.validator ?? params.defaultValidator;

}
async encodeExecuteDelegate(target, value, data) {
return this.encodeExecuteAction(target, value, data, 1);
}
async encodeBatchExecute(_txs) {
const multiSendData = concatHex(_txs.map((tx) => encodeCall(tx)));
async encodeBatchExecute(txs) {
const multiSendData = concatHex(txs.map((tx) => encodeCall(tx)));
return encodeFunctionData({

@@ -73,2 +63,12 @@ abi: MultiSendAbi,

}
signMessage(msg) {
const formattedMessage = typeof msg === "string" ? toBytes(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
async getAccountInitCode() {
return concatHex([this.factoryAddress, await this.getFactoryInitCode()]);
}
async encodeExecuteDelegate(target, value, data) {
return this.encodeExecuteAction(target, value, data, 1);
}
async signWithEip6492(msg) {

@@ -89,6 +89,2 @@ try {

}
signMessage(msg) {
const formattedMessage = typeof msg === "string" ? toBytes(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
encodeExecuteAction(target, value, data, code) {

@@ -101,5 +97,2 @@ return encodeFunctionData({

}
async getAccountInitCode() {
return concatHex([this.factoryAddress, await this.getFactoryInitCode()]);
}
async getFactoryInitCode() {

@@ -112,3 +105,3 @@ try {

this.defaultValidator.getAddress(),
await this.defaultValidator.getOwner(),
await this.defaultValidator.getOwnerAddress(),
this.index,

@@ -115,0 +108,0 @@ ],

@@ -8,3 +8,3 @@ import {} from "@alchemy/aa-core";

import { KernelBaseValidator, ValidatorMode } from "../validator/base.js";
import { RPC_URL, API_KEY, OWNER_MNEMONIC } from "./constants.js";
import { API_KEY, OWNER_MNEMONIC, RPC_URL } from "./constants.js";
import { MockSigner } from "./mocks/mock-signer.js";

@@ -23,2 +23,3 @@ describe("Kernel Account Tests", () => {

const owner = {
signerType: "kernel-zerodev",
signMessage: async (msg) => ownerAccount.signMessage({

@@ -43,3 +44,7 @@ message: { raw: toHex(msg) },

});
const provider = new KernelAccountProvider(config.rpcProvider, config.entryPointAddress, config.chain);
const provider = new KernelAccountProvider({
rpcProvider: config.rpcProvider,
entryPointAddress: config.entryPointAddress,
chain: config.chain,
});
function connect(index, owner = mockOwner) {

@@ -46,0 +51,0 @@ return provider.connect((_provider) => account(index, owner));

import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core";
export declare class MockSigner implements SmartAccountSigner {
signerType: string;
getAddress(): Promise<Address>;

@@ -4,0 +5,0 @@ signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>;

export class MockSigner {
constructor() {
Object.defineProperty(this, "signerType", {
enumerable: true,
configurable: true,
writable: true,
value: "mock"
});
}
getAddress() {

@@ -3,0 +11,0 @@ return Promise.resolve("0x48D4d3536cDe7A257087206870c6B6E76e3D4ff4");

@@ -18,4 +18,4 @@ import { type Hex } from "viem";

getAddress(): Hex;
getOwner(): Promise<Hex>;
getOwnerAddress(): Promise<Hex>;
signMessageWithValidatorParams(userOpHash: Uint8Array | string | Hex): Promise<Hex>;
}

@@ -34,3 +34,3 @@ import { concatHex } from "viem";

}
async getOwner() {
async getOwnerAddress() {
return this.owner.getAddress();

@@ -37,0 +37,0 @@ }

@@ -9,2 +9,4 @@ export { KernelAccountAbi } from "./kernel-zerodev/abis/KernelAccountAbi.js";

export type { KernelBaseValidatorParams } from "./kernel-zerodev/validator/base.js";
export { LightSmartContractAccount } from "./light-account/account.js";
export { getDefaultLightAccountFactory } from "./light-account/utils.js";
//# sourceMappingURL=index.d.ts.map
import { BaseSmartContractAccount, type BaseSmartAccountParams, type BatchUserOperationCallData, type SmartAccountSigner } from "@alchemy/aa-core";
import type { Address } from "abitype";
import { type FallbackTransport, type Hex, type Transport } from "viem";

@@ -7,3 +6,2 @@ import { KernelBaseValidator } from "./validator/base.js";

owner: SmartAccountSigner;
factoryAddress: Address;
index?: bigint;

@@ -14,18 +12,17 @@ defaultValidator: KernelBaseValidator;

export declare class KernelSmartContractAccount<TTransport extends Transport | FallbackTransport = Transport> extends BaseSmartContractAccount<TTransport> {
private owner;
private readonly factoryAddress;
protected owner: SmartAccountSigner;
private readonly index;
private defaultValidator;
private validator;
constructor(params: KernelSmartAccountParams);
constructor(params: KernelSmartAccountParams<TTransport>);
getDummySignature(): Hex;
encodeExecute(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected getAccountInitCode(): Promise<Hex>;
encodeExecuteDelegate(target: Hex, value: bigint, data: Hex): Promise<Hex>;
encodeBatchExecute(_txs: BatchUserOperationCallData): Promise<`0x${string}`>;
signWithEip6492(msg: string | Uint8Array): Promise<Hex>;
signMessage(msg: Uint8Array | string): Promise<Hex>;
protected encodeExecuteAction(target: Hex, value: bigint, data: Hex, code: number): Hex;
protected getAccountInitCode(): Promise<Hex>;
protected getFactoryInitCode(): Promise<Hex>;
}
//# sourceMappingURL=account.d.ts.map
import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core";
export declare class MockSigner implements SmartAccountSigner {
signerType: string;
getAddress(): Promise<Address>;

@@ -4,0 +5,0 @@ signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>;

@@ -18,5 +18,5 @@ import { type Hex } from "viem";

getAddress(): Hex;
getOwner(): Promise<Hex>;
getOwnerAddress(): Promise<Hex>;
signMessageWithValidatorParams(userOpHash: Uint8Array | string | Hex): Promise<Hex>;
}
//# sourceMappingURL=base.d.ts.map
{
"name": "@alchemy/aa-accounts",
"version": "0.1.0-alpha.32",
"version": "0.1.0",
"description": "A collection of ERC-4337 compliant smart contract account interfaces",

@@ -42,3 +42,3 @@ "author": "Alchemy",

"devDependencies": {
"@alchemy/aa-core": "^0.1.0-alpha.32",
"@alchemy/aa-core": "^0.1.0",
"typescript": "^5.0.4",

@@ -63,6 +63,6 @@ "typescript-template": "*",

"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
"gitHead": "224b58219bc2ab66f1e71e39a7272a304dc8c510",
"gitHead": "282f897bc4dcb9c1c91c272d991766fb7963417a",
"dependencies": {
"viem": "^1.5.3"
"viem": "^1.16.2"
}
}

@@ -19,1 +19,5 @@ // Add you exports here, make sure to export types separately from impls and use the `type` keyword when exporting them

export type { KernelBaseValidatorParams } from "./kernel-zerodev/validator/base.js";
//light-account exports
export { LightSmartContractAccount } from "./light-account/account.js";
export { getDefaultLightAccountFactory } from "./light-account/utils.js";

@@ -9,2 +9,4 @@ import type {

export class MockSigner implements SmartAccountSigner {
signerType = "mock";
getAddress(): Promise<Address> {

@@ -11,0 +13,0 @@ return Promise.resolve("0x48D4d3536cDe7A257087206870c6B6E76e3D4ff4");

@@ -7,3 +7,2 @@ import {

} from "@alchemy/aa-core";
import type { Address } from "abitype";
import { parseAbiParameters } from "abitype";

@@ -25,2 +24,3 @@ import {

import { KernelBaseValidator, ValidatorMode } from "./validator/base.js";
import type { KernelUserOperationCallData } from "./types.js";

@@ -31,3 +31,2 @@ export interface KernelSmartAccountParams<

owner: SmartAccountSigner;
factoryAddress: Address;
index?: bigint;

@@ -41,4 +40,3 @@ defaultValidator: KernelBaseValidator;

> extends BaseSmartContractAccount<TTransport> {
private owner: SmartAccountSigner;
private readonly factoryAddress: Address;
protected owner: SmartAccountSigner;
private readonly index: bigint;

@@ -48,7 +46,6 @@ private defaultValidator: KernelBaseValidator;

constructor(params: KernelSmartAccountParams) {
constructor(params: KernelSmartAccountParams<TTransport>) {
super(params);
this.index = params.index ?? 0n;
this.owner = params.owner;
this.factoryAddress = params.factoryAddress;
this.defaultValidator = params.defaultValidator!;

@@ -70,15 +67,7 @@ this.validator = params.validator ?? params.defaultValidator!;

async encodeExecuteDelegate(
target: Hex,
value: bigint,
data: Hex
): Promise<Hex> {
return this.encodeExecuteAction(target, value, data, 1);
}
override async encodeBatchExecute(
_txs: BatchUserOperationCallData
txs: BatchUserOperationCallData
): Promise<`0x${string}`> {
const multiSendData: `0x${string}` = concatHex(
_txs.map((tx) => encodeCall(tx))
txs.map((tx: KernelUserOperationCallData) => encodeCall(tx))
);

@@ -92,2 +81,19 @@ return encodeFunctionData({

signMessage(msg: Uint8Array | string): Promise<Hex> {
const formattedMessage = typeof msg === "string" ? toBytes(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
protected async getAccountInitCode(): Promise<Hex> {
return concatHex([this.factoryAddress, await this.getFactoryInitCode()]);
}
async encodeExecuteDelegate(
target: Hex,
value: bigint,
data: Hex
): Promise<Hex> {
return this.encodeExecuteAction(target, value, data, 1);
}
async signWithEip6492(msg: string | Uint8Array): Promise<Hex> {

@@ -115,7 +121,2 @@ try {

signMessage(msg: Uint8Array | string): Promise<Hex> {
const formattedMessage = typeof msg === "string" ? toBytes(msg) : msg;
return this.validator.signMessageWithValidatorParams(formattedMessage);
}
protected encodeExecuteAction(

@@ -133,5 +134,2 @@ target: Hex,

}
protected async getAccountInitCode(): Promise<Hex> {
return concatHex([this.factoryAddress, await this.getFactoryInitCode()]);
}

@@ -145,3 +143,3 @@ protected async getFactoryInitCode(): Promise<Hex> {

this.defaultValidator.getAddress(),
await this.defaultValidator.getOwner(),
await this.defaultValidator.getOwnerAddress(),
this.index,

@@ -148,0 +146,0 @@ ],

@@ -9,2 +9,4 @@ import type {

export class MockSigner implements SmartAccountSigner {
signerType = "mock";
getAddress(): Promise<Address> {

@@ -11,0 +13,0 @@ return Promise.resolve("0x48D4d3536cDe7A257087206870c6B6E76e3D4ff4");

@@ -1,4 +0,15 @@

import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core";
import type {
Address,
Hex,
SignTypedDataParams,
SmartAccountSigner,
} from "@alchemy/aa-core";
export class MockSignerValidator implements SmartAccountSigner {
signerType = "mock-validator";
signTypedData(params: SignTypedDataParams): Promise<`0x${string}`> {
return Promise.resolve("0xMOCK_SIGN_TYPED_DATA");
}
getAddress(): Promise<Address> {

@@ -5,0 +16,0 @@ return Promise.resolve("0xabcfC3DB1e0f5023F5a4f40c03D149f316E6A5cc");

@@ -36,3 +36,3 @@ import { concatHex, type Hex } from "viem";

async getOwner(): Promise<Hex> {
async getOwnerAddress(): Promise<Hex> {
return this.owner.getAddress();

@@ -39,0 +39,0 @@ }

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

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