From 210a0860f4efa59730e700e88ad4355531f2a077 Mon Sep 17 00:00:00 2001 From: Hsin-Min Lin <46518318+andy78644@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:43:43 +0800 Subject: [PATCH] [docs] Update EventFilter type in guide documentation (#20782) ## Description Update EventFilter type in guide documentation ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: --- docs/content/guides/developer/sui-101/using-events.mdx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/content/guides/developer/sui-101/using-events.mdx b/docs/content/guides/developer/sui-101/using-events.mdx index dce9ac24efbc2..ba8a0a0ab7f34 100644 --- a/docs/content/guides/developer/sui-101/using-events.mdx +++ b/docs/content/guides/developer/sui-101/using-events.mdx @@ -244,15 +244,13 @@ To filter the events returned from your queries, use the following data structur | Query | Description | JSON-RPC Parameter Example | | ----------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `All` | All events | `{"All": []}` | +| `All` | All events | `{"All": []}` | +| `Any` | Events emitted from any of the given filter | `{"Any": SuiEventFilter[]}` | | `Transaction` | Events emitted from the specified transaction | `{"Transaction":"DGUe2TXiJdN3FI6MH1FwghYbiHw+NKu8Nh579zdFtUk="}` | | `MoveModule` | Events emitted from the specified Move module | `{"MoveModule":{"package":"", "module":"nft"}}` | | `MoveEventModule` | Events emitted, defined on the specified Move module. | `{"MoveEventModule": {"package": "", "module": "nft"}}` | -| `MoveEvent` | Move struct name of the event | `{"MoveEvent":"::nft::MintNFTEvent"}` | -| `EventType` | Type of event described in Events section | `{"EventType": "NewObject"}` | +| `MoveEventType` | Move struct name of the event | `{"MoveEventType":"::nft::MintNFTEvent"}` | | `Sender` | Query by sender address | `{"Sender":"0x008e9c621f4fdb210b873aab59a1e5bf32ddb1d33ee85eb069b348c234465106"}` | -| `Recipient` | Query by recipient | `{"Recipient":{"AddressOwner":"0xa3c00467938b392a12355397bdd3d319cea5c9b8f4fc9c51b46b8e15a807f030"}}` | -| `Object` | Return events associated with the given object | `{"Object":"0x727b37454ab13d5c1dbb22e8741bff72b145d1e660f71b275c01f24e7860e5e5"}` | | `TimeRange` | Return events emitted in [start_time, end_time] interval | `{"TimeRange":{"startTime":1669039504014, "endTime":1669039604014}}` | ### Query events in Rust