Kernel constructor
Kernel(
- EthPrivateKey credentials,
- String rpcUrl, {
- IPresetBuilderOpts? opts,
Implementation
Kernel(
this.credentials,
String rpcUrl, {
IPresetBuilderOpts? opts,
}) : super() {
final web3client = Web3Client.custom(BundlerJsonRpcProvider(
rpcUrl,
http.Client(),
).setBundlerRpc(
opts?.overrideBundlerRpc,
));
entryPoint = EntryPoint(
address: opts?.entryPoint ?? EthereumAddress.fromHex(ERC4337.ENTRY_POINT),
client: web3client,
);
eCDSAKernelFactory = ECDSAKernelFactory(
address: opts!.factoryAddress!,
client: web3client,
);
initCode = '0x';
nonceKey = opts.nonceKey ?? BigInt.zero;
multisend = Multisend(
address: EthereumAddress.fromHex(Addresses.AddressZero),
client: web3client,
);
proxy = kernel_impl.Kernel(
address: EthereumAddress.fromHex(Addresses.AddressZero),
client: web3client,
);
}