Skip to content

Commit

Permalink
docs: fixes (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
HIOXOIH authored Aug 13, 2023
1 parent cca3b46 commit 8e753bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/pages/store/advanced-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default mudConfig({
schema: {
amount: "uint32",
receiver: "bytes32",
}
},
ephemeral: true,
},
},
Expand Down
10 changes: 5 additions & 5 deletions docs/pages/store/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ tables: {
},
keySchema: {
key1: "uint256",
key2: "string"
}
key2: "string",
},
},
}
```
Expand All @@ -109,8 +109,8 @@ tables: {
x: "uint32",
y: "uint32",
stringField: "string",
uintArray: "uint256"
}
uintArray: "uint256",
},
},
}
```
Expand Down Expand Up @@ -139,7 +139,7 @@ tables: {
value1: "uint32",
value2: "uint32",
},
keySchema: {}
keySchema: {},
},
}
```
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/store/reading-and-writing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ uint256[] memory fooArray = new uint256[](1);
uint256[] memory barArray = new uint256[](2);
barArray[0] = 69;
barArray[1] = 85;
fooArray[0] = 42
fooArray[0] = 42;
// args: key, foo, bar, fooArray, staticArray
MyTable.set(keccak256("some.key"), 45, false, fooArray, barArray);
```
Expand All @@ -53,9 +53,9 @@ MyTable.setFoo(keccak256("some.key"), 33);
MyTable.setBar(keccak256("some.key"), false);
// Setting fooArray
uint256[] memory fooArray = new uint256[](3);
fooArray[0] = 42
fooArray[1] = 15
fooArray[2] = 3
fooArray[0] = 42;
fooArray[1] = 15;
fooArray[2] = 3;
MyTable.setFooArray(keccak256("some.key"), fooArray);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/store/spec.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Aside } from "../../components/Aside";

## Standard events with enough information for Indexers to reconstruct the state

When a record or a single field is edited, or when a record is deleted, Store emits a standard event with enough information for off-chain actors to reconstruct the new version of the Store with even-sourcing.
When a record or a single field is edited, or when a record is deleted, Store emits a standard event with enough information for off-chain actors to reconstruct the new version of the Store with event-sourcing.

```solidity
event StoreSetRecord(uint256 tableId, bytes32[] key, bytes data);
Expand Down

0 comments on commit 8e753bf

Please sign in to comment.