Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
wip: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Jun 24, 2024
1 parent 6e4f8a7 commit dec229a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions pages/book/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
},
types: 'Type system overview',
integers: 'Integers',
cells: 'Cells, Builders, Slices',
maps: 'Maps',
'structs-and-messages': 'Structs and Messages',
optionals: 'Optionals',
Expand Down
43 changes: 43 additions & 0 deletions pages/book/cells.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Cells, Builders, Slices

import { Callout } from 'nextra/components'

{/* TODO: Move the content over from drafts */}
{/* TODO: Change every link for Cell, Builder, Slice */}

## Cells

{/* TODO */}

## Builders

{/* TODO */}

## Slices

{/* TODO */}

## Serialization

{/* TODO */}

### Serialization types

{/*
TODO:
1. bytes32
2. bytes64
3. remaining (for Slices only)
*/}

<Callout>
Read more on serialization here: [Compatibility with FunC](/book/func#convert-serialization)
</Callout>

## Operations

{/* TODO: showcase the construction and parsing side by side, using the Builder and a Slice */}

{/* TODO: add a simplified parsing version via .toCell() and .fromCell() references */}
2 changes: 1 addition & 1 deletion pages/book/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Tact supports a number of primitive data types that are tailored for smart contr
* [`Int{:tact}`][ints] — all numbers in Tact are $257$-bit signed integers, but [smaller representations](/book/integers#serialization) can be used to reduce storage costs.
* [`Bool{:tact}`](#booleans) — classical boolean with `true{:tact}` and `false{:tact}` values.
* `Address{:tact}` — standard [smart contract address](https://docs.ton.org/learn/overviews/addresses#address-of-smart-contract) in TON Blockchain.
* `Slice{:tact}`, `Cell{:tact}`, `Builder{:tact}` — low-level primitives of TON VM.
* [`Cell{:tact}`](/book/cells#cells), [`Builder{:tact}`](/book/cells#builders), [`Slice{:tact}`](/book/cells#slices) — low-level primitives of TON VM.
* `String{:tact}` — represents text strings in TON VM.
* `StringBuilder{:tact}` — helper type that allows you to concatenate strings in a gas-efficient way.

Expand Down

0 comments on commit dec229a

Please sign in to comment.