0.0.15 • Published 3 days ago

@actalink/modules v0.0.15

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 days ago

Use validation module with actalink SDK

import { SmartAccount, type SmartAccountConfig } from "@actalink/sdk";
import { addMinutes, getCurrentTimestamp, ScheduleopValidationModule } from "@actalink/modules";

const config: SmartAccountConfig = {
  chainId,
  provider,
  owner: wallet,
  bundlerUrl: "<bundler URL>",
  paymasterUrl: "<paymaster URL>"
};

const smartWallet = new SmartAccount(config);

const validationClient = new ScheduleopValidationModule({
  chainId,
  provider,
  owner: wallet,
  bundlerUrl: "<bundler URL>",
  paymasterUrl: "https://goerli-paymaster.acta.link", // Supported paymaster for ScheduleopValidationModule
});
const executionTimes = [
  addMinutes(getCurrentTimestamp(), { amount: 5 }),
  addMinutes(getCurrentTimestamp(), { amount: 7 }),
];
const userOpHashes = await validationClient.createScheduleOps(
  "<Address of contract which we are interacting with.For ERC20 payments use ERC20 contract address.>",
  transferData,
  0n,
  2, // number of times to repeat the payments
  [...executionTimes] // array of execution times in miliseconds
)
0.0.15

3 days ago

0.0.11

5 days ago

0.0.12

4 days ago

0.0.14

4 days ago

0.0.10

10 days ago

0.0.9

18 days ago

0.0.8

1 month ago

0.0.7

1 month ago

0.0.6

1 month ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

3 months ago

0.0.2

3 months ago