Skip to content

Commit

Permalink
fix(store): align Store event names between IStoreWrite and StoreCore (
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs authored Aug 3, 2023
1 parent 8fcd82e commit 5c965a9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-hats-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/store": patch
---

Align Store events parameter naming between IStoreWrite and StoreCore
6 changes: 3 additions & 3 deletions packages/store/abi/StoreCore.sol/StoreCore.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -49,7 +49,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -80,7 +80,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down
6 changes: 3 additions & 3 deletions packages/store/src/StoreCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ library StoreCore {
using TableId for bytes32;

// note: the preimage of the tuple of keys used to index is part of the event, so it can be used by indexers
event StoreSetRecord(bytes32 tableId, bytes32[] key, bytes data);
event StoreSetField(bytes32 tableId, bytes32[] key, uint8 schemaIndex, bytes data);
event StoreDeleteRecord(bytes32 tableId, bytes32[] key);
event StoreSetRecord(bytes32 table, bytes32[] key, bytes data);
event StoreSetField(bytes32 table, bytes32[] key, uint8 schemaIndex, bytes data);
event StoreDeleteRecord(bytes32 table, bytes32[] key);
event StoreEphemeralRecord(bytes32 table, bytes32[] key, bytes data);

/**
Expand Down
6 changes: 3 additions & 3 deletions packages/world/abi/StoreCore.sol/StoreCore.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -49,7 +49,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -80,7 +80,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down
6 changes: 3 additions & 3 deletions packages/world/abi/src/StoreCore.sol/StoreCore.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -49,7 +49,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down Expand Up @@ -80,7 +80,7 @@
{
"indexed": false,
"internalType": "bytes32",
"name": "tableId",
"name": "table",
"type": "bytes32"
},
{
Expand Down

0 comments on commit 5c965a9

Please sign in to comment.