Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: wakuext messages #6084

Open
45 tasks
churik opened this issue Nov 12, 2024 · 0 comments
Open
45 tasks

Tests: wakuext messages #6084

churik opened this issue Nov 12, 2024 · 0 comments

Comments

@churik
Copy link
Member

churik commented Nov 12, 2024

Prerequisites:

  • user has chat and messages in particular states

Methods:
Here’s the list of methods along with their explanations:

  • wakuext_chatMessages

    • Retrieves messages from a specific chat, supporting pagination with a cursor and limit.
  • wakuext_messageByMessageID

    • Retrieves a message using its unique message ID.
  • wakuext_firstUnseenMessageID

    • Retrieves the ID of the first unseen message in a specific chat.
  • wakuext_allMessagesFromChatWhichMatchTerm

    • Retrieves all messages from a chat that match a given search term, with an option for case sensitivity.
  • wakuext_allMessagesFromChatsAndCommunitiesWhichMatchTerm

    • Retrieves all messages from specified chats and communities that match a given search term, with an option for case sensitivity.
  • wakuext_chatPinnedMessages

    • Retrieves pinned messages from a specific chat, supporting pagination with a cursor and limit.
  • wakuext_statusUpdates

    • Retrieves the latest status updates.
  • wakuext_upsertSwitcherCard

    • Creates or updates a switcher card based on the provided request.
  • wakuext_deleteSwitcherCard

    • Deletes a switcher card using its ID.
  • wakuext_switcherCards

    • Retrieves all switcher cards.
  • wakuext_startMessenger

    • Starts the messenger service.
  • wakuext_setUserStatus

    • Sets the user's status and optionally a custom text.
  • wakuext_deleteMessage

    • Deletes a message using its ID.
  • wakuext_deleteMessagesByChatID

    • Deletes all messages from a specific chat using its ID.
  • wakuext_chatMessages

    • Retrieves messages from a specific chat, supporting pagination with a cursor and limit.
  • wakuext_messageByMessageID

    • Retrieves a message using its unique message ID.
  • wakuext_firstUnseenMessageID

    • Retrieves the ID of the first unseen message in a specific chat.
  • wakuext_allMessagesFromChatWhichMatchTerm

    • Retrieves all messages from a chat that match a given search term, with an option for case sensitivity.
  • wakuext_allMessagesFromChatsAndCommunitiesWhichMatchTerm

    • Retrieves all messages from specified chats and communities that match a given search term, with an option for case sensitivity.
  • wakuext_chatPinnedMessages

    • Retrieves pinned messages from a specific chat, supporting pagination with a cursor and limit.
  • wakuext_statusUpdates

    • Retrieves the latest status updates.
  • wakuext_upsertSwitcherCard

    • Creates or updates a switcher card based on the provided request.
  • wakuext_deleteSwitcherCard

    • Deletes a switcher card using its ID.
  • wakuext_switcherCards

    • Retrieves all switcher cards.
  • wakuext_startMessenger

    • Starts the messenger service.
  • wakuext_setUserStatus

    • Sets the user's status and optionally a custom text.
  • wakuext_deleteMessage

    • Deletes a message using its ID.
  • wakuext_deleteMessagesByChatID

    • Deletes all messages from a specific chat using its ID.
  • wakuext_updateMessageOutgoingStatus

    • Updates the outgoing status of a message using its ID and new status.
  • wakuext_sendChatMessage

    • Sends a chat message based on the provided message details.
  • wakuext_reSendChatMessage

    • Resends a chat message using its message ID.
  • wakuext_sendChatMessages

    • Sends multiple chat messages based on the provided message details.
  • wakuext_sendOneToOneMessage

    • Sends a one-to-one message based on the specified request.
  • wakuext_sendGroupChatMessage

    • Sends a message to a group chat based on the provided request.
  • wakuext_editMessage

    • Edits a previously sent message based on the provided request details.
  • wakuext_deleteMessageAndSend

    • Deletes a message using its ID and sends a new message in its place.
  • wakuext_deleteMessageForMeAndSync

    • Deletes a message for the user and synchronizes the action across devices using the chat ID and message ID.
  • wakuext_sendPinMessage

    • Sends a pinned message based on the provided pin message details.

Tx messages (not sure where they exist)

Here’s the list of methods starting with wakuext_ along with their explanations:

  • wakuext_requestTransaction

    • Requests a transaction specifying the chat ID, value, contract, and address.
  • wakuext_requestAddressForTransaction

    • Requests an address for a transaction based on the chat ID, sender's address, value, and contract.
  • wakuext_declineRequestAddressForTransaction

    • Declines a request for an address for a transaction using the message ID.
  • wakuext_declineRequestTransaction

    • Declines a transaction request using the message ID.
  • wakuext_acceptRequestAddressForTransaction

    • Accepts a request for an address for a transaction by specifying the message ID and address.
  • wakuext_sendTransaction

    • Sends a transaction specifying the chat ID, value, contract, transaction hash, and signature.
  • wakuext_acceptRequestTransaction

    • Accepts a transaction request using the transaction hash, message ID, and signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant