From 8e753bfbe8b58001adc25b9af9b73bd96162ed15 Mon Sep 17 00:00:00 2001 From: Plamer <115217442+HIOXOIH@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:04:31 +0800 Subject: [PATCH] docs: fixes (#1289) --- docs/pages/store/advanced-features.mdx | 2 +- docs/pages/store/config.mdx | 10 +++++----- docs/pages/store/reading-and-writing.mdx | 8 ++++---- docs/pages/store/spec.mdx | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/pages/store/advanced-features.mdx b/docs/pages/store/advanced-features.mdx index 8aac5dc6cd..8b060f22fd 100644 --- a/docs/pages/store/advanced-features.mdx +++ b/docs/pages/store/advanced-features.mdx @@ -51,7 +51,7 @@ export default mudConfig({ schema: { amount: "uint32", receiver: "bytes32", - } + }, ephemeral: true, }, }, diff --git a/docs/pages/store/config.mdx b/docs/pages/store/config.mdx index 8399b00bba..386ac9e79b 100644 --- a/docs/pages/store/config.mdx +++ b/docs/pages/store/config.mdx @@ -92,8 +92,8 @@ tables: { }, keySchema: { key1: "uint256", - key2: "string" - } + key2: "string", + }, }, } ``` @@ -109,8 +109,8 @@ tables: { x: "uint32", y: "uint32", stringField: "string", - uintArray: "uint256" - } + uintArray: "uint256", + }, }, } ``` @@ -139,7 +139,7 @@ tables: { value1: "uint32", value2: "uint32", }, - keySchema: {} + keySchema: {}, }, } ``` diff --git a/docs/pages/store/reading-and-writing.mdx b/docs/pages/store/reading-and-writing.mdx index 9e0cc75cb3..3d22b5513f 100644 --- a/docs/pages/store/reading-and-writing.mdx +++ b/docs/pages/store/reading-and-writing.mdx @@ -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); ``` @@ -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); ``` diff --git a/docs/pages/store/spec.mdx b/docs/pages/store/spec.mdx index a5625ba904..cda5631000 100644 --- a/docs/pages/store/spec.mdx +++ b/docs/pages/store/spec.mdx @@ -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);