Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions abis/ISmartAccount.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"name": "controller",
"type": "address"
}
],
"name": "OverrideUpdated",
"name": "ExecutionControllerUpdated",
"type": "event"
},
{
Expand Down
36 changes: 28 additions & 8 deletions abis/SmartAccount.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,14 @@
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"name": "controller",
"type": "address"
}
],
"name": "OverrideUpdated",
"name": "ExecutionControllerUpdated",
"type": "event"
},
{
Expand Down Expand Up @@ -441,6 +435,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chargedParticles",
"type": "address"
}
],
"name": "setChargedParticles",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "executionController",
"type": "address"
}
],
"name": "setExecutionController",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
36 changes: 28 additions & 8 deletions abis/SmartAccountBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,14 @@
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"name": "controller",
"type": "address"
}
],
"name": "OverrideUpdated",
"name": "ExecutionControllerUpdated",
"type": "event"
},
{
Expand Down Expand Up @@ -436,6 +430,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chargedParticles",
"type": "address"
}
],
"name": "setChargedParticles",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "executionController",
"type": "address"
}
],
"name": "setExecutionController",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
60 changes: 40 additions & 20 deletions abis/SmartAccountTimelocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,31 @@
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "lockedUntil",
"type": "uint256"
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "controller",
"type": "address"
}
],
"name": "LockUpdated",
"name": "ExecutionControllerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"type": "address"
"internalType": "uint256",
"name": "lockedUntil",
"type": "uint256"
}
],
"name": "OverrideUpdated",
"name": "LockUpdated",
"type": "event"
},
{
Expand Down Expand Up @@ -509,6 +503,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chargedParticles",
"type": "address"
}
],
"name": "setChargedParticles",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "executionController",
"type": "address"
}
],
"name": "setExecutionController",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
16 changes: 10 additions & 6 deletions deploy/Setup_ChargedParticles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ const Setup_ChargedParticles: DeployFunction = async (hre: HardhatRuntimeEnviron
// Load ChargedParticles
const chargedParticles: ChargedParticles = await ethers.getContract('ChargedParticles');
const chargedParticlesAddress = await chargedParticles.getAddress();
// console.log(` -- Charged Particles Address: ${chargedParticlesAddress}`);
console.log(` -- Charged Particles Address: ${chargedParticlesAddress}`);

// Load SmartAccountController_Example1
const controller: SmartAccountController_Example1 = await ethers.getContract('SmartAccountController_Example1');
const controllerAddress = await controller.getAddress();
// console.log(` -- Execution Controller Address: ${controllerAddress}`);
console.log(` -- Execution Controller Address: ${controllerAddress}`);

// Set Default Execution Controller
await performTx(
await chargedParticles.setDefaultExecutionController(controllerAddress),
' -- Default Execution Controller Set for SmartAccounts!'
);
const setController = await chargedParticles.setDefaultExecutionController(controllerAddress);
console.log(setController)

await setController.wait()
// await performTx(
// await chargedParticles.setDefaultExecutionController(controllerAddress),
// ' -- Default Execution Controller Set for SmartAccounts!'
// );
};
export default Setup_ChargedParticles;

Expand Down
1 change: 1 addition & 0 deletions deployments/sepolia/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11155111
Loading