Skip to content

FunC Cookbook Completion TrackerΒ #1

@Swafox

Description

@Swafox

List of all FunC Cookbook examples and their status of being wrapped into a runnable blueprint project πŸ‘‡

Basic Functionality βœ…

  • BlankProject
  • SimpleCounter
  • How to write an if statement
  • How to write a repeat loop
  • How to write a while loop
  • How to write a do until loop

Mathematics βœ…

  • How to raise number to the power of n
  • How to generate random number
  • Modulo operations
  • How to get current time

Sending Messages βœ…

  • How to build an internal message cell
  • How to contain a body as ref to an internal message cell
  • How to contain a body as slice to an internal message cell
  • How to send a simple message
  • How to send a message with an incoming account
  • How to send a message with the entire balance
  • How to send a message with a long text comment
  • Generate internal address (out of scope)
  • Generate external address (out of scope)

Comparison

  • How to determine if slice is empty
  • How to determine if slice is empty (doesn't have any bits, but may have refs)
  • How to determine if slice is empty (doesn't have any refs, but may have bits)
  • How to determine if cell is empty
  • How to determine if dict is empty
  • How to determine if tuple is empty
  • How to determine if lisp style list is empty
  • How to determine a state of the contract is empty
  • Determine if slices are equal
  • Determine if cells are equal

Type conversion

  • Resolving type X
  • How to convert string to int
  • How to convert int to string

Tuples

  • How to iterate tuples in both directions
  • Reversing tuples
  • Determine if tuples are equal
  • Iterating n-nested tuples
  • Basic operations with tuples

Dictionaries

  • How to store and load dictionary in local storage
  • How to iterate dictionaries
  • How to delete value from dictionaries

Miscellaneous

  • How to write own functions using asm keyword
  • How to throw errors
  • How to remove an item with a certain index from the list
  • How to get only data bits from a slice without refs
  • How to define your own modifying method
  • How to iterate cell tree recursively

stateInit

  • How to iterate through lisp style list
  • How to send a deploy message with stateInit only with stateInit and body
  • How to build a stateInit cell
  • How to calculate a contract address using stateInit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions