diff --git a/src/data/20.spawn-process.ts b/src/data/20.spawn-process.ts index 755b4a0..29f2017 100644 --- a/src/data/20.spawn-process.ts +++ b/src/data/20.spawn-process.ts @@ -4,7 +4,7 @@ export default { prevRoute: "10-connect-wallet", route: "20-spawn-process", nextRoute: "30-hello-ao", - title: "Time to bootup a process!", + title: "Time to bootup a process! 💡", content: ` A process in AO is like a smart contract that's alive. diff --git a/src/data/30.hello-ao.ts b/src/data/30.hello-ao.ts index e11bc08..35579d5 100644 --- a/src/data/30.hello-ao.ts +++ b/src/data/30.hello-ao.ts @@ -4,7 +4,7 @@ export default { prevRoute: "20-spawn-process", route: "30-hello-ao", nextRoute: "40-calculate", - title: "Hello AO!", + title: "Hello AO! 🤩", content: ` In the previous exercise, you spawned a process. Now it's time to write some code for it. diff --git a/src/data/40.calculate.ts b/src/data/40.calculate.ts index c2a0c89..eea23db 100644 --- a/src/data/40.calculate.ts +++ b/src/data/40.calculate.ts @@ -4,7 +4,7 @@ export default { prevRoute: "30-hello-ao", route: "40-calculate", nextRoute: "50-variables", - title: "Let's Calculate!", + title: "Let's Calculate! 🧮", content: ` Just like we printed something before, we can also do mathematical operations on AO using LUA diff --git a/src/data/60.messaging.ts b/src/data/60.messaging.ts index 8334637..278c0ed 100644 --- a/src/data/60.messaging.ts +++ b/src/data/60.messaging.ts @@ -3,7 +3,7 @@ import { TExerciseData } from "@/types"; export default { prevRoute: "50-variables", route: "60-messaging", - nextRoute: "70-my-inbox", + nextRoute: "70-morpheus", title: "Sending Messages 💬", content: ` Now that you know how to print stuff, do basic calculations and make variables, diff --git a/src/data/70.morpheus.ts b/src/data/70.morpheus.ts new file mode 100644 index 0000000..116aedc --- /dev/null +++ b/src/data/70.morpheus.ts @@ -0,0 +1,46 @@ +import { TExerciseData } from "@/types"; + +export default { + prevRoute: "60-messaging", + route: "70-morpheus", + nextRoute: "80-my-inbox", + title: "Reb pill or blue pill? 💊", + content: ` + +*"This is your last chance. After this, there is no turning back. You take the blue pill - +the story ends, you wake up in your bed and believe whatever you want to believe. You take +the red pill - you stay in Wonderland and I show you how deep the rabbit hole goes"* + +--- + +# TASK + +1. Use the process ID provided below and store it as a variable called "Morpheus". + +\`wu_tAUDUveetQZpcN8UxHt51d9dyUkI4Z-MfQV8LnUU\` + +2. Send a message to Morpheus + +\`Send({ Target = Morpheus, Data = "Morpheus?" })\` + +3. You will receive a reply from Morpheus. Print the message. + +--- + +`, + defaultCode: `-- Declare the variable Morpheus below this line +Morpheus = ... + +Send({ + Target = Morpheus, + Data = "Wake up Neo!" +}) + +-- After you get a message from Morpheus +-- Comment the above code and run the following: +-- Inbox[#Inbox].Data +`, + expectedResult: "I am here. You are finally awake. Are you ready to see how far the rabbit hole goes?", + fromId: "SELF", + validateTimestamp: false, +} as TExerciseData; diff --git a/src/data/70.inbox.ts b/src/data/80.inbox.ts similarity index 92% rename from src/data/70.inbox.ts rename to src/data/80.inbox.ts index ce16d5f..b94b043 100644 --- a/src/data/70.inbox.ts +++ b/src/data/80.inbox.ts @@ -1,9 +1,9 @@ import { TExerciseData } from "@/types"; export default { + prevRoute: "70-morpheus", + route: "80-my-inbox", nextRoute: "/", - route: "70-my-inbox", - prevRoute: "60-messaging", title: "Checking Inbox 📥", content: ` So we know how to send messages, but how do we check what messages we have received? diff --git a/src/data/index.ts b/src/data/index.ts index b558f63..acb1a4a 100644 --- a/src/data/index.ts +++ b/src/data/index.ts @@ -7,5 +7,6 @@ export default { "40-calculate": require("@/data/40.calculate").default, "50-variables": require("@/data/50.variables").default, "60-messaging": require("@/data/60.messaging").default, - "70-my-inbox": require("@/data/70.inbox").default, + "70-morpheus": require("@/data/70.morpheus").default, + "80-my-inbox": require("@/data/80.inbox").default, } as { [foo: string]: TExerciseData }; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 30981d5..1cb2ee1 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -7,20 +7,23 @@ export default function Home() { return (