Fuel Dev Rel

@fuel

The best dev rel team in crypto

Public team

Joined on Jan 27, 2023

  • Adding Submodules Make a new git repo and add an initial commit if you don't have one already. Add another git repo as a submodule with git submodule add <github-repo-link> Now that repo will be iniside of your repo 🤯 (You still need to commit these changes).
     Like  Bookmark
  • Let's build an indexer for our Sway Store marketplace. Setup Dependencies If you don't already have it installed, you can install postgres with homebrew using the command below: brew install postgres Make sure you are using the nightly version of Rust rustup install nightly
     Like  Bookmark
  • Introduction why make an indexer what does it do what we will build what is the difference between an indexing service and an index Setup & Dependencies Writing the Indexer Deploying
     Like  Bookmark
  • Overview If you know JavaScript, you can effectively learn how to build fullstack dapps (decentralized applications) on Fuel with Sway. In this guide, you will learn how to build a full-stack dapp on Fuel from scratch. Let's take a look at what you'll be building! Introduction In the Sway guide, you learned how to write a smart contract for the sway-farm game. Now, you need a frontend for your game that can interact with your contract.
     Like  Bookmark
  • Sway Changes StorageMap .get() method returns Option<> type Previously StorageMaps would return a 0 value of the correct type if no value was set for a given key. Now, this method returns an Option type, which can be either Some(value) or None. Solution: Use the unwrap_or() method to unwrap the value or return a default value if None is found. Must use #[payable] for payable functions If you expect to receive assets in a function call, you must use the payable annotation. You can add it to a storage annotation like this: #[storage(read, write), payable].
     Like  Bookmark
  • Fuel 101 (@vish) GraphQL API (@Vish)make a block explorer, practice understanding fuel 101 toolchain guide / dev setup (?) sway contract (@cami) farming game where users can buy seeds with custom game tokens, plant them, harvest food and sell them for game tokens testing with rust (@sarah)
     Like  Bookmark
  • Introduction The Rust SDK is the recommended method for testing anything built in Sway. If you're new to Rust, don't worry! This guide will take you from 0 to confidently building tests in Rust. Rust Basics Installation If you don't already have rustup installed, and you're on macOS, Linux, or another Unix-like OS, you can install it with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh You can find other installation methods here.
     Like  Bookmark
  • Introduction This tutorial uses React, but the SDK works with any TypeScript application. Dev Setup Create a new react app with typescript Install the fuels sdk and wallet: npm install fuels @fuel-wallet/sdk Contract typegen
     Like  Bookmark
  • GraphQL is a powerful tool for frontend developers in building efficient and performant UI experiences. Fuel Labs has a GraphQL API that lets you interact with the data on the Fuel Network. This step-by-step GraphQL guide will help you get up-to-speed with GraphQL and learn how to use the Fuel GraphQL endpoint. Key Take-aways: What is GraphQL & Why you should use it Introduction to Fuel GraphQL API Implementing Network Explorer functionality in your dapp Advanced Concepts GraphQL Best Practices
     Like  Bookmark
  • What is Fuel? Fuel is the fastest execution layer for the modular blockchain stack. Fuel delivers maximum security and the highest flexible throughput for decentralized applications, with a focus on a superior developer experience. Overview Before learning about Fuel's technology stack, let's understand the premise of Fuel as a modular execution layer and its role in scaling Ethereum. The Modular Blockchain Paradigm The blockchain space is moving away from the traditional monolithic design, towards a new design paradigm called Modular Blockchains to achieve massive scalability. Let's understand what modular blockchains are, what are the fundamental differences between monolithic and modular designs, and why do we need modular blockchains.
     Like  Bookmark
  • If you know JavaScript, you can quickly learn to build full-stack dapps, or decentralized applications, on Fuel with Sway. Once you learn some Sway fundamentals, you'll be ready to start building your own dapp. What is Sway? Sway is a strongly-typed programming language based on Rust used to write smart contracts on the Fuel blockchain. It inherits Rust's performance, control, and safety to use in a blockchain virtual machine environment optimized for gas costs and contract safety. Sway is backed by a powerful compiler and toolchain that work to abstract away complexities and ensure that your code is working, safe, and performant. Part of what makes Sway so unique is the fantastic suite of tools surrounding it that help you turn a contract into a full-stack dapp: 📚 Sway Standard Library: A native library of helpful types and methods.
     Like  Bookmark
  • Congratulations! :tada: You have created a team workspace, where all team members collaborate on their shared notes. Team roles and note permission All members in the workspace have read access to every note in it. Only writers and admins have write access, and only admins can delete a team note. Team members receive notifications when someone else edit or mention them in a team note. Team members are all considered Owners to notes in the workspace when configuring note permissions.
     Like  Bookmark
  • Sway Ideas Ctrl C's ideas: Generative NFTs Compression algorithms like DEFLATE Custom elliptic curve operations Off-chain orderbook matching via predicates
     Like  Bookmark
  • Packages are used to build, test, and share crates. They can contain multiple crates. Crates are modules that product a library or executable (a file with code in it) Modules organize code and handle privacy. A module is basically a container for related code. Modules can be nested inside other modules.
     Like  Bookmark
  • Address An address is a cryptographic hash representing an identity of either a wallet, contract address, or a predicate root. AssetId An AssetId is a unique address for an on-chain asset. It is defined as the root of the bytecode of the contract minting the asset. Base Asset The base asset is the underlying asset needed to perform any transactions on a blockchain. It is used to pay gas for transactions. On Ethereum, the base asset is ETH. Block
     Like  Bookmark
  • This guide is meant for developers who are somewhat familiar with Solidity and interested in learning Sway. It compares one-to-one examples of the syntax and common methdods used in Solidity and Sway contracts. You don't need to be a pro Solidity developer, but you should have some understanding of programming and blockchain basics. Hello World We can start with a "Hello World" example. Here is what this looks like in Solidity: Solidity: Contracts in Solidity always start with two things:
     Like  Bookmark