-
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.
chore: change namings and solidity version
- Loading branch information
1 parent
4bd0984
commit c9f11f6
Showing
6 changed files
with
29 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
}, | ||
"solidity.compileUsingRemoteVersion": "v0.8.26+commit.8a97fa7a" | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -1,42 +1,31 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.25; | ||
pragma solidity 0.8.26; | ||
|
||
import {IApplicationManager} from "./IApplicationManager.sol"; | ||
|
||
contract ApplicationManager is IApplicationManager { | ||
mapping(uint => Application) private applications_; | ||
uint private nextApplicationId_; | ||
mapping(uint => Application) private applications; | ||
uint private nextApplicationId; | ||
|
||
constructor() {} | ||
|
||
function nextApplicationId() external view returns (uint) { | ||
return nextApplicationId_; | ||
function getNextApplicationId() external view returns (uint) { | ||
return nextApplicationId; | ||
} | ||
|
||
function createApplication(Application memory _application) external { | ||
applications_[nextApplicationId_] = _application; | ||
emit ApplicationCreated( | ||
nextApplicationId_, | ||
applications_[nextApplicationId_] | ||
); | ||
nextApplicationId_++; | ||
function createApplication(Application memory application) external { | ||
applications[nextApplicationId] = application; | ||
emit ApplicationCreated(nextApplicationId, applications[nextApplicationId]); | ||
nextApplicationId++; | ||
} | ||
|
||
function updateApplication( | ||
uint _id, | ||
Application memory _application | ||
) external override {} | ||
function updateApplication(uint id, Application memory application) external override {} | ||
|
||
function deleteApplication(uint _id) external override {} | ||
function deleteApplication(uint id) external override {} | ||
|
||
function getApplication( | ||
uint _id | ||
) external view returns (Application memory) { | ||
return applications_[_id]; | ||
function getApplication(uint id) external view returns (Application memory) { | ||
return applications[id]; | ||
} | ||
|
||
function getApplications( | ||
uint _start, | ||
uint _limit | ||
) external override returns (Application[] memory application) {} | ||
function getApplications(uint start, uint limit) external override returns (Application[] memory application) {} | ||
} |
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