Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Sep 18, 2023
1 parent 915d45e commit ce03439
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .changeset/few-papayas-leave.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
+ uint40 deleteCount,
+ bytes memory data
+ ) external;

+ function onAfterSpliceStaticData(
+ bytes32 tableId,
+ bytes32[] memory keyTuple,
+ uint48 start,
+ uint40 deleteCount,
+ bytes memory data
+ ) external;

+ function onBeforeSpliceDynamicData(
+ bytes32 tableId,
+ bytes32[] memory keyTuple,
Expand All @@ -51,7 +51,7 @@
+ bytes memory data,
+ PackedCounter encodedLengths
+ ) external;

+ function onAfterSpliceDynamicData(
+ bytes32 tableId,
+ bytes32[] memory keyTuple,
Expand All @@ -63,7 +63,7 @@
+ ) external;
}
```

- All `calldata` parameters on the `IStoreHook` interface were changed to `memory`, since the functions are called with `memory` from the `World`.

- `IStore` exposes two new functions: `spliceStaticData` and `spliceDynamicData`.
Expand All @@ -75,15 +75,15 @@

```solidity
interface IStore {
// Splice data in the static part of the record
// Splice data in the static part of the record
function spliceStaticData(
bytes32 tableId,
bytes32[] calldata keyTuple,
uint48 start,
uint40 deleteCount,
bytes calldata data
) external;
// Splice data in the dynamic part of the record
function spliceDynamicData(
bytes32 tableId,
Expand All @@ -95,4 +95,3 @@
) external;
}
```

0 comments on commit ce03439

Please sign in to comment.