-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
196 additions
and
117 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.24; | ||
|
||
import { IStoreErrors } from "./IStoreErrors.sol"; | ||
import { IStoreData } from "./IStoreData.sol"; | ||
import { IStoreRegistration } from "./IStoreRegistration.sol"; | ||
|
||
interface IStore is IStoreData, IStoreRegistration {} | ||
interface IStore is IStoreData, IStoreRegistration, IStoreErrors {} |
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,21 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.24; | ||
|
||
import { ResourceId } from "./ResourceId.sol"; | ||
|
||
interface IStoreErrors { | ||
// Errors include a stringified version of the tableId for easier debugging if cleartext tableIds are used | ||
error Store_TableAlreadyExists(ResourceId tableId, string tableIdString); | ||
error Store_TableNotFound(ResourceId tableId, string tableIdString); | ||
error Store_InvalidResourceType(bytes2 expected, ResourceId resourceId, string resourceIdString); | ||
|
||
error Store_InvalidStaticDataLength(uint256 expected, uint256 received); | ||
error Store_InvalidBounds(uint256 start, uint256 end); | ||
error Store_IndexOutOfBounds(uint256 length, uint256 accessedIndex); | ||
error Store_InvalidKeyNamesLength(uint256 expected, uint256 received); | ||
error Store_InvalidFieldNamesLength(uint256 expected, uint256 received); | ||
error Store_InvalidValueSchemaLength(uint256 expected, uint256 received); | ||
error Store_InvalidValueSchemaStaticLength(uint256 expected, uint256 received); | ||
error Store_InvalidValueSchemaDynamicLength(uint256 expected, uint256 received); | ||
error Store_InvalidSplice(uint40 startWithinField, uint40 deleteCount, uint40 fieldLength); | ||
} |
Oops, something went wrong.