Billions of $ are transitioned every day through a piece of code.

This piece of code is a Smart Contract

Smart Contracts 101: simplified explanation 👇🧵 Image
1. Smart Contracts?

Smart Contracts are some lines of code written to run a set of commands according to agreed conditions between two parties.

Instead of physical contracts, these ones are digital and live in the Blockchain.

What is Blockchain?
2. Code?

Smart contracts are built by a set of functions and variables.

This set will create an agreement between what a user does and what he receives.

...⬇️
3. Example

One of the use cases will be the minting of NFTs.

A Contract with a mint will have a set of functions that when called will trade coins (the price) for an NFT (the good).

It will then store that you own that NFT ID Image
4. Base Concept

The main idea behind a Smart Contract is to create digital trust.

In an era where our life is digital, we need some way to trust the other side.

In the past physical contracts would do that.

Now a smart contract will deal with the trust, automating it.

...⬇️
5. But how do I trust it?

First, it's code, not depending on a human

Second, as it lives on the blockchain it's public, you can read it and audit it.

For example:

- etherscan.io/address/0xbc4c…
6. How do I write it?

First, you shall use a language that is ready to create Smart Contracts.

For example:

- Solidity

- Rust

- Javascript

- Vyper

- ...
7. Look into standards

A lot was already written Smart Contract wise.

You've probably heard about ERC20 and ERC721.

These are some examples of standards that you can look into to have a base to create your own, or even use and build on top of it.
8. Let's start writing!

Choose your language and just look into the documentation and start writing and testing.

Here are some starting points:

- solidity-by-example.org

- docs.solana.com/developing/cli…
That's it for today friends - thanks for reading.

Follow me @here_is_abrams
to learn more about:

• Web3 Dev
• The journey of a Web3 Dev
Let's do a deep dive into Smart Contracts

#ship30 #day4

typeshare.co/joaoabrams/pos…

• • •

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

Keep Current with João (aka Abrams) 🧱, 🚀, 🚢

João (aka Abrams) 🧱, 🚀, 🚢 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 @here_is_abrams

Mar 5
Web3 Full-stack Devs. make $150,000+ a year.

Still, most people don't know where to start.

7 things to MASTER your journey - today👇🧵
1. HTML and CSS

The first languages to master to build the frontend.

See this as the backbone of any web page and the first step a User sees anytime he/she searches for a website.

Where to learn:

freecodecamp.org/learn/responsi…
2. Javascript

The most used language on the Web and the so-called "brain".

Learn how to create the frontend and backend logic providing the experience you want the most to your Use.

Where to learn:

freecodecamp.org/news/learn-jav…
Read 11 tweets
Jan 22
WTF is Blockchain for Devs?

Do you want to understand technically what is this buzzword you are hearing every day? Well...

Blockchain: The basis of everything. ⬇️🧵
1. Definition

Blockchain is a technology of decentralized database that stores data in a permanent and violation proof way.

Let's deconstruct this 🧱...⬇️
2. Analogy

You can see a Blockchain as a linked list, where all of the next values are linked to the previous one.

You can also see it as a Public database. Where every interaction and account will be stored, and it can be verified by anyone in the world.

Let's dig deeper ⛏️⬇️
Read 16 tweets
Jan 18
Are you launching your own NFT Smart Contract?

Do you want it to be the most effective?

Here are some tips so you can achieve it, a thread 🧵
1. Exploitability 📊

A lot of big projects have been exploited until now, from leaked metadata to bad testing on the smart contract.

Here are some examples for you to search:

- Loot
- Meebits
- CryptoPunks
- MoonCatRescue

You can see their contracts to have an idea.
2. Reduce Exploitability on your contract 📜

- Store your media files and metadata safely. Study the storage and don’t share the URLs;

- Check your smart contract public and private functions;

- Check public functions and validate if they just do the minimum required;

... ⬇️
Read 13 tweets
Jan 15
5 months ago I knew nothing about Web3, today I am leaving Deloitte to go full into this world.

This was my journey 🏃🚶🏃, a thread 🧵
1. 5 months ago I was a non-believer, like the majority of society.
Like my family and friends

I believed in the idea that:
- NFT were glorified JPGs.
- Crypto was for investments and illegal things.
- Blockchain was something that was somewhere.
- dApps??
2. Everything was buzzwords 🆕 that sometimes appeared on the news.

I just continued every single day making my things.

I was content with what I was doing. But not fully accomplished.

Just going with the flow 🌊
Read 13 tweets
Jan 11
Want to learn even more about the Web3 Rabbit Hole?

I curated this list of GitHubs that collect a huge number of resources.

Thank you to all creators and contributors! I will tag as many as I can. ❤️
(Tag if you know them)

9 Awesome Github List Pages ⬇️
Awesome Solidity - Thank you @bkrem_ and contributors

To learn more about Solidity.

List of:
- Resources
- Libraries
- Tools
- Plugins
- Languages
- And much more

github.com/bkrem/awesome-…
@bkrem_ Awesome web3 - Thank you @joincolony and contributors

To learn more about tools and libraries to build your dApps.

List of:
- Other GitHub
- Web3 libraries
- Decentralized databases and applications
- more resources

github.com/JoinColony/awe…
Read 13 tweets
Jan 8
Want to become a Web3 Developer but have no Tech foundations?

I've curated the path so you can land your dream job as a Web3 Dev.

Here's how 🧵
0.1. Quick tips:

- Don't get lost in tutorial hell, do one course and if you feel okay go ahead, don't lose yourself on this step.

- In the programming world the more projects you do the more comfortable you will be.

- Start small and then go big.

Now let's start! 🥳
1. The basics:

First of all, you will need to understand the basics.
This is the foundation for all your future knowledge.⬇️
Read 21 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!

:(