beemdvp.xrd Profile picture
Nov 23 7 tweets 4 min read
For my #NFT #DeFi #rustlang #scrypto challenge, I've created a #decentralized freelance platform! Here are my learnings from them all!🧵👇
github.com/radixdlt/scryp…
1. For authorization, its okay to use one badge for multiple components. You can think of authorization as a login to a service/platform you have in real life. Unless you have another whole service, just use one badge!
2. When creating protected methods, its also okay to use admin rights for components to store. This gives the flexibility that the component is able to call other component methods as well as an admin user (should you want to ofc)
3. A pattern I've been creating is you can relate an NFT to another NFT by storing the Non Fungible ID. For example, I have a unique NFT Contractor identity and I've picked up Work NFT, The Work NFT gets updated with the assigned contractor being the Contractor NFT ID
5. Testing #scrypto wasnt too bad an experience as I initially thought. The tricky parts were being able to understand how you can query the SubstateStore. It was tricky but you can use examples from resim to see how you can query specific resources/components/vaults
6. Try to keep in mind frontend requirements when you'd like to represent data. Its important to make your component eligible to be queried easily. This influences what you should store for users in a vault or what resources should be soulbound
Thats it, that's all I've got! If I've got your curiosity piqued and you're thinking what the hell is #scrypto? Its a #rustlang based #smartcontract language for #DeFi 👇👇👇
docs.radixdlt.com/main/scrypto/i…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with beemdvp.xrd

beemdvp.xrd Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @beemdvp

Nov 23
So why do I think #Scrypto will ultimately take over the #rustlang #smartcontract race? Here are my thoughts 🧵
1. Non Fungible and Fungible resources are known first hand by the engine and #scrypto. This is HUGE. You dont need to design behaviors of mint, burn, transfer. They are NOT contracts. These are RESOURCES. This is TRUE native asset first #smartcontract
2. Authorization is built in as a concept and comes in 2 forms. These are simply Fungible/Non Fungible resources. These resources can be used as a form of authorization. In #scrypto, we call them a Proof. Why do we need them? Direct mapping of address => some data is UNSAFE
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(