upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf_ <fiatjaf@gmail.com>2026-04-13 10:10:49 -0300
committerGitHub <noreply@github.com>2026-04-13 10:10:49 -0300
commit98fdcd3e925b8d14984cb526df222049dbf16b7f (patch)
treecaf977347c62524895916abe516eeae56a3b1535
parent413b78454f2b08e4a58c4608d97e180da038b84d (diff)
i32->u32
Co-authored-by: Awiteb <a@4rs.nl>
-rw-r--r--5C.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/5C.md b/5C.md
index 218229c..6d9455a 100644
--- a/5C.md
+++ b/5C.md
@@ -182,7 +182,7 @@ Add an id to the `ids` filter. It must be a pointer to a 32-byte buffer.
182 182
183Same as `req_add_id` but with a hex-encoded id string. Length is assumed to be 64 characters. 183Same as `req_add_id` but with a hex-encoded id string. Length is assumed to be 64 characters.
184 184
185### `nostr.req_add_kind(req: i32, kind: i32) -> void` 185### `nostr.req_add_kind(req: i32, kind: u32) -> void`
186 186
187Add a kind integer to the `kinds` filter. 187Add a kind integer to the `kinds` filter.
188 188
@@ -196,15 +196,15 @@ Same as `req_add_tag` but the value is a pointer to the 32-byte binary buffer th
196 196
197Hosts may deduplicate filter values (authors, ids, kinds, and tag values) when the module adds the same value more than once via `req_add_*`. 197Hosts may deduplicate filter values (authors, ids, kinds, and tag values) when the module adds the same value more than once via `req_add_*`.
198 198
199### `nostr.req_set_limit(req: i32, limit: i32) -> void` 199### `nostr.req_set_limit(req: i32, limit: u32) -> void`
200 200
201Sets the `"limit"` attribute of the filter. 201Sets the `"limit"` attribute of the filter.
202 202
203### `nostr.req_set_since(req: i32, timestamp: i32) -> void` 203### `nostr.req_set_since(req: i32, timestamp: u32) -> void`
204 204
205Sets the `"since"` attribute of the filter. 205Sets the `"since"` attribute of the filter.
206 206
207### `nostr.req_set_until(req: i32, timestamp: i32) -> void` 207### `nostr.req_set_until(req: i32, timestamp: u32) -> void`
208 208
209Sets the `"until"` attribute of the filter. 209Sets the `"until"` attribute of the filter.
210 210
@@ -253,11 +253,11 @@ Returns a pointer to a 32-byte buffer containing the public key of the event aut
253 253
254Returns a pointer to a 64-character string containing the hex public key of the event author. 254Returns a pointer to a 64-character string containing the hex public key of the event author.
255 255
256### `nostr.event_get_kind(event_handle: i32) -> i32` 256### `nostr.event_get_kind(event_handle: i32) -> u32`
257 257
258Returns the kind integer directly. 258Returns the kind integer directly.
259 259
260### `nostr.event_get_created_at(event_handle: i32) -> i32` 260### `nostr.event_get_created_at(event_handle: i32) -> u32`
261 261
262Returns the unix timestamp directly. 262Returns the unix timestamp directly.
263 263
@@ -265,11 +265,11 @@ Returns the unix timestamp directly.
265 265
266Returns a pointer to a buffer containing the event content (follows the String Convention above). 266Returns a pointer to a buffer containing the event content (follows the String Convention above).
267 267
268### `nostr.event_get_tag_count(event_handle: i32) -> i32` 268### `nostr.event_get_tag_count(event_handle: i32) -> u32`
269 269
270Returns the total number of tags on this event. 270Returns the total number of tags on this event.
271 271
272### `nostr.event_get_tag_item_count(event_handle: i32, tag_index: i32) -> i32` 272### `nostr.event_get_tag_item_count(event_handle: i32, tag_index: i32) -> u32`
273 273
274Returns the number of items in the tag at `tag_index`; or `0` if such tag doesn't exist. 274Returns the number of items in the tag at `tag_index`; or `0` if such tag doesn't exist.
275 275