0.1.5-alpha.4 • Published 6 months ago
@actalink/modules v0.1.5-alpha.4
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
)
Testing modules
Deploy DecodeHelper contract
cd packages/contracts-v1
forge create src/lib/DecodeHelper.sol:DecodeHelper --rpc-url http://127.0.0.1:8545/ --private-key=$PRIVATE_KEY --via-ir
Compile contracts with DecodeHelper library
forge build --via-ir --libraries src/lib/DecodeHelper.sol:DecodeHelper:<decodeHelper deployed address>
0.1.4-alpha.0
7 months ago
0.1.4-alpha.1
7 months ago
0.1.4-alpha.2
7 months ago
0.1.5-alpha.2
6 months ago
0.1.5-alpha.1
6 months ago
0.1.5-alpha.0
6 months ago
0.1.5-alpha.4
6 months ago
0.1.5-alpha.3
6 months ago
0.1.4
7 months ago
0.1.3
9 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.1.0
12 months ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.14
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago