Typefully

MorpheusVM: The Choice is Yours

Avatar

Share

 • 

2 years ago

 • 

View on X

I've been asked dozens of times over the last few months to create a minimal demo of using the #Avalanche HyperSDK. Today, I'm excited to share our "Morpheus Example": github.com/ava-labs/hypersdk/pull/258 #HyperSDKJournal
First ... yes, I am obsessed with The Matrix: youtube.com/watch?v=zE7PKRjrid4
"Morpheus Examples" are a minimal glimpse (simple transfers) into what is possible with some new technology/paradigm (HyperSDK). They should be just enough to give "Neo" (you) just enough to make a choice: go down the rabbit hole or turn back to what is known?
The new MorpheusVM (github.com/ava-labs/hypersdk/tree/main/examples/morpheusvm) does one thing and one thing only: native token transfers between simple accounts. (Nice byproduct of this simplicity is that it also makes for a great template VM now!)
Over the next few weeks, we'll make the MorpheusVM simpler by abstracting hundreds of lines of code to shared packages (for easier use in other HyperVMs): * github.com/ava-labs/hypersdk/issues/263 * github.com/ava-labs/hypersdk/issues/264 * github.com/ava-labs/hypersdk/issues/265
We'll also work to condense some of the packages (which typically only have 10-50 LOC) to make the codebase "less daunting"/easier to keep track of in your head from the outset. We decided to keep the structure this way initially because it is useful when in complex VMs.
Please leave a comment on the MorpheusVM discussion if you have any questions/suggestions! github.com/ava-labs/hypersdk/discussions/271
When you do decide to take the "red pill", make sure to check out the "intermediate" example next (TokenVM): twitter.com/_patrickogrady/status/1629281061934071808
You can read the unrolled version of this thread here: typefully.com/_patrickogrady/XAfwswF
Avatar

patrickogrady.xyz

@_patrickogrady

founder @commonwarexyz || previously @avalabs @coinbase @stanford || opinions are my own and will probably change