From fdcb0a9581ee7bd9af395a6e44c78579c5434177 Mon Sep 17 00:00:00 2001 From: Leslie Owusu-Appiah Date: Sat, 21 Sep 2024 12:16:43 +0100 Subject: [PATCH] chore: removed profanity from test script --- README.md | 30 ++++++++++-------------------- scripts/send-message-test.ts | 10 +++++++--- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index b4553d6..fc7343a 100644 --- a/README.md +++ b/README.md @@ -4,34 +4,27 @@ > A rough companion MVP to [this ARC](https://github.com/algorandfoundation/ARCs/issues/86). > See the Current Message Format section. - - Note that this MVP directly queries a [free indexer hosted by AlgoNode](https://algonode.io/). In the proposal I suggest an additional layer, an aggregation layer that would handle filtering, recommendation, caching, etc; that would in turn feed the UI-layer. - ## Quickstart ### Requirements -This project uses [Bun](https://bun.sh/) as a fast, all-in-one TypeScript development environment. - +This project uses [Bun](https://bun.sh/) as a fast, all-in-one TypeScript development environment. ### Development - `bun run dev` - Visit `http://localhost:5173/` - ### Build - `bun run build` - `bun run preview` - Static builds of Edaga are hosted on [Render](https://render.com/) at [https://edaga-27kn.onrender.com/](https://edaga-27kn.onrender.com/). - ## TODO > See [our issues](./issues) for all TODOs @@ -43,15 +36,14 @@ Static builds of Edaga are hosted on [Render](https://render.com/) at [https://e - [x] Add a "reply" button that shortcuts into the text field - [ ] Add up-voting (👍) and down-voting (👎) messages - ## Message Format -To interact with this message board you need to send ***0*** (ZERO) ALGO transaction to a specific address with a message in the note field. That message needs to be formatted in a specific way. Note that it is a ZERO ALGO transaction. You will ***never be asked to send ALGO to ANYONE***. At most you can choose to spend a higher transaction fee, to show how "strongly" you feel about something; but that transaction fee is recycled through the Algorand protocol. +To interact with this message board you need to send **_0_** (ZERO) ALGO transaction to a specific address with a message in the note field. That message needs to be formatted in a specific way. Note that it is a ZERO ALGO transaction. You will **_never be asked to send ALGO to ANYONE_**. At most you can choose to spend a higher transaction fee, to show how "strongly" you feel about something; but that transaction fee is recycled through the Algorand protocol. > [!IMPORTANT] -This app is currently set to testnet +> This app is currently set to testnet -The specific address is controlled by Hash: [K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI](https://testnet.explorer.perawallet.app/address/K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI). +The specific address is controlled by Hash: [K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI](https://testnet.explorer.perawallet.app/address/K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI). > [!WARNING] > Once again, do NOT send any ALGO. Specify `0` (ZERO) ALGO. @@ -60,33 +52,31 @@ At this stage of the project we are making use of the Algorand indexer's API, wh To post a message will cost you, at least, `0.001` ALGO. - ### To Post to ALL: -- `ARC00-0;a;;{Your Nickname};{Your Message}` -- E.g: `ARC00-0;a;;HMD2V;Hello World!` +- `ARC00-0;a;;{Your Nickname};{Your Message}` + - Example: `ARC00-0;a;;HMD2V;Hello World!` -Note that while you can pick whatever handle you want, your address will of course be unique and identifiable. +Note that while you can pick whatever handle you want, your address will of course be unique and identifiable. But feel free to try and imposter someone! ### To Post to Topic: - `ARC00-0;t;{The Topic};{Your Nickname};{Your Message}` -- E.g.: `ARC00-0;t;cooking;HMD2V;I made the loveliest pasta today` + - Example: `ARC00-0;t;cooking;HMD2V;I made the loveliest pasta today` Note that the topic name will be case-sensitive. ### To Respond to a Previous Transaction X: - `ARC00-0;r;{Transaction ID for X};{Your Reply}` -- E.g.: `ARC00-0;r;PZSXOYGMX36BAFU5MRPT6FGP5LTNWM63FT642UNT3ZOUTLTHI3KQ;SomeOtherPerson;Hello HMD2V, hope you're doing well!` + - Example: `ARC00-0;r;PZSXOYGMX36BAFU5MRPT6FGP5LTNWM63FT642UNT3ZOUTLTHI3KQ;SomeOtherPerson;Hello HMD2V, hope you're doing well!` You can also "upvote" or "downvote" someone: - :+1:`ARC00-0;l;{Transaction ID for X};{Your Nickname}` - :-1: `ARC00-0;d;{Transaction ID for X};{Your Nickname}` -- E.g.: `ARC00-0;d;PZSXOYGMX36BAFU5MRPT6FGP5LTNWM63FT642UNT3ZOUTLTHI3KQ;Hater` - + - Example: `ARC00-0;d;PZSXOYGMX36BAFU5MRPT6FGP5LTNWM63FT642UNT3ZOUTLTHI3KQ;Hater` ## Etymology diff --git a/scripts/send-message-test.ts b/scripts/send-message-test.ts index 90b293f..002fb11 100644 --- a/scripts/send-message-test.ts +++ b/scripts/send-message-test.ts @@ -16,13 +16,17 @@ const senderAccount = algosdk.mnemonicToSecretKey(senderMnemonic); // TODO - Change to Edaga receiver account address const receiverAddress = "EDAGATRNROXUSQELAWC3LGKYFNPD6HGJ23OSF7UJJVRLUF4FM7HN53SJS4"; - // "K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI"; +// "K22E7O64EMVMBVPUQ53VVXN2U4WCYL7XN6PHOYMNNEBSNM6RMMKJZ3OAMI"; // const receiverAddress = senderAddress; const amount = 0; -// const note = new Uint8Array(Buffer.from("ARC00-0;a;;LeslieOA;Hello humans 👋🏾")); -const note = new Uint8Array(Buffer.from("ARC00-0;r;YUTVKJA5JQ4X3KTQE64G6K47L6UP3BX6X6MEYG3QGORZSJF74X6Q;Disrespectful;FUCKING. BASTARD.")); +// const note = new Uint8Array(Buffer.from("ARC00-0;a;;FrequentPoster;Hello humans 👋🏾")); +const note = new Uint8Array( + Buffer.from( + "ARC00-0;r;YUTVKJA5JQ4X3KTQE64G6K47L6UP3BX6X6MEYG3QGORZSJF74X6Q;ReplyGuy;Replying to your message" + ) +); const sendTransaction = async () => { try {