This project contains TypeScript code for interacting with the MultiECDSAValidator smart contract from the Kernel smart contract through User Operations using ABIs and various utility functions.
abis.ts: Contains the ABI definitions for interacting with the Kernel and MultiECDSAValidator smart contracts.enableOwner.ts: Script to enable a new owner for the sending Kernel through the MultiECDSAValidator contract.disableOwner.ts: Script to disable an existing owner for the sending Kernel through the MultiECDSAValidator contract.common.ts: Contains common utilities and functions used across the project.
- Clone the repository.
- Install dependencies with
yarn. - Configure the environment variables in a
.envfile based on the.env.example.
Use ts-node or compile the TypeScript files to JavaScript and then run using Node.js.
ts-node enableOwner.ts
ts-node disableOwner.ts