-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from xWerk/chore/rebranding
Update terminology in accordance with the rebranding
- Loading branch information
Showing
73 changed files
with
915 additions
and
1,112 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.26; | ||
|
||
import { BaseScript } from "./Base.s.sol"; | ||
import { Space } from "../src/Space.sol"; | ||
import { StationRegistry } from "./../src/StationRegistry.sol"; | ||
|
||
/// @notice Deploys an instance of {Space} and enables initial module(s) | ||
contract DeploySpace is BaseScript { | ||
function run( | ||
address initialAdmin, | ||
StationRegistry stationRegistry, | ||
uint256 stationId, | ||
address[] memory initialModules | ||
) public virtual broadcast returns (Space space) { | ||
// Get the number of total accounts created by the `initialAdmin` deployer | ||
uint256 totalAccountsOfAdmin = stationRegistry.totalAccountsOfSigner(initialAdmin); | ||
|
||
// Construct the ABI-encoded data to be passed to the `createAccount` method | ||
bytes memory data = abi.encode(totalAccountsOfAdmin, stationId, initialModules); | ||
|
||
// Deploy a new {Space} smart account through the {StationRegistry} account factory | ||
space = Space(payable(stationRegistry.createAccount(initialAdmin, data))); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.