-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding kernel account and service to project (#49)
* adding kernel account and service to project adding permissionless and updating viem changing balance indicator to use kernel account * replacing SimpleAccountClientService with KernelAccountClientService everywhere adding execute call oto kernelaccount * use external RPC URLs * getting kernel fulfill working * fixing tests * comment --------- Co-authored-by: Carlos Febres <cfebres@eco.com>
- Loading branch information
1 parent
73ea0cd
commit b3f9c03
Showing
29 changed files
with
662 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** | ||
* The exeute abi, used to execute a transaction on the kernel smart account | ||
*/ | ||
export const KernelExecuteAbi = [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: 'address', | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'value', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'data', | ||
type: 'bytes', | ||
}, | ||
{ | ||
internalType: 'enum Operation', | ||
name: '', | ||
type: 'uint8', | ||
}, | ||
], | ||
name: 'execute', | ||
outputs: [], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'address', | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'value', | ||
type: 'uint256', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'data', | ||
type: 'bytes', | ||
}, | ||
], | ||
internalType: 'struct Call[]', | ||
name: 'calls', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
name: 'executeBatch', | ||
outputs: [], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
] as const | ||
|
||
/** | ||
* The init abi, used to initialise kernel account | ||
*/ | ||
export const KernelInitAbi = [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: 'contract IKernelValidator', | ||
name: '_defaultValidator', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: '_data', | ||
type: 'bytes', | ||
}, | ||
], | ||
name: 'initialize', | ||
outputs: [], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
] as const |
Oops, something went wrong.