Skip to content

Commit

Permalink
update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Aug 16, 2023
1 parent 1816eb5 commit 3ce006c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .changeset/modern-hornets-jam.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"create-mud": patch
---

- BREAKING: `Store`'s internal schema table is now a normal table instead of using special code paths. It is renamed to Tables, and the table ID changed from `mudstore:schema` to `mudstore:Tables`
- BREAKING: `Store`'s `registerSchema` and `setMetadata` are combined into a single `registerTable` method. This means metadata (key names, field names) is immutable and indexers can create tables with this metadata when a new table is registered on-chain.
- `Store`'s internal schema table is now a normal table instead of using special code paths. It is renamed to Tables, and the table ID changed from `mudstore:schema` to `mudstore:Tables`
- `Store`'s `registerSchema` and `setMetadata` are combined into a single `registerTable` method. This means metadata (key names, field names) is immutable and indexers can create tables with this metadata when a new table is registered on-chain.

```diff
- function registerSchema(bytes32 table, Schema schema, Schema keySchema) external;
Expand All @@ -23,8 +23,8 @@
+ ) external;
```

- BREAKING: `World`'s `registerTable` method is updated to match the `Store` interface, `setMetadata` is removed
- BREAKING: The `getSchema` method is renamed to `getValueSchema` on all interfaces
- `World`'s `registerTable` method is updated to match the `Store` interface, `setMetadata` is removed
- The `getSchema` method is renamed to `getValueSchema` on all interfaces
```diff
- function getSchema(bytes32 table) external view returns (Schema schema);
+ function getValueSchema(bytes32 table) external view returns (Schema valueSchema);
Expand Down

0 comments on commit 3ce006c

Please sign in to comment.