Skip to content

Commit

Permalink
chore: removed profanity from test script
Browse files Browse the repository at this point in the history
  • Loading branch information
LeslieOA committed Sep 21, 2024
1 parent 0939976 commit fdcb0a9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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

Expand Down
10 changes: 7 additions & 3 deletions scripts/send-message-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fdcb0a9

Please sign in to comment.