Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text

Questions with tag func

Questions with tag func

Tags
Sorting
Results
per page
Filter

   
2 Votes
1 Answers
6K Views
2 Votes 1 Answers 6K Views
Hello, I'm considering to move my projects from another blockchain to TON but I still don't understand how to handle the asynchronous part. One of my project...
one year ago
0 Votes
1 Answers
19K Views
0 Votes 1 Answers 19K Views
In general-purpose languages like Java it is possible to get server time by using things like System.currentTimeMills(). Is there a way to retrieve server ti...
2 years ago
0 Votes
2 Answers
12K Views
0 Votes 2 Answers 12K Views
How do we save an ordinary string in FunC? For example, how do you store the text "A" without making it a slice? --- > This question was imported from Telegr...
2 years ago
0 Votes
1 Answers
7K Views
0 Votes 1 Answers 7K Views
Some programming languages have built-in functions like is_int() helping to check quickly if a specific variable is of type integer or not. Is there somethin...
one year ago
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Programming languages often use 0 for "false" and -1 for "true". It works that way in FunC, too. But what about all the other numbers? Do they have a boolean...
one year ago
0 Votes
2 Answers
19K Views
0 Votes 2 Answers 19K Views
How do you hardcode an address in a smart contract? An example in both FunC would be helpful. https://t.me/tondev_eng/4099
0 Votes
1 Answers
19K Views
0 Votes 1 Answers 19K Views
I see that there is a touch method in the wallet v4 contract: https://github.com/ton-blockchain/wallet-contract/blob/main/func/wallet-v4-code.fc#L90 What exa...
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Is there any specific reason why single line comments in FunC start with ;; and not something more common like //? It feels very odd. --- > This question was...
2 years ago
0 Votes
1 Answers
17K Views
0 Votes 1 Answers 17K Views
How is a reference serialized (stored)? --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/9475
0 Votes
1 Answers
20K Views
0 Votes 1 Answers 20K Views
For some reason I can't parse commentary that I receive in a transaction. This commentary is specified when sending ton coins from a wallet to a smart contra...
2 years ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
In the Ston.fi core contract GitHub repository (https://github.com/ston-fi/dex-core), there is a line of FunC code as shown below: force_chain(WORKCHAIN, sen...
Howard Peng
10 × 1 Administrator
one year ago
1 Votes
0 Answers
19K Views
1 Votes 0 Answers 19K Views
In developing for blockchain it's important to save space, so it seems better to store the dates using 32-bit timestamps instead of 64-bit. But blockchain is...
2 years ago
0 Votes
1 Answers
16K Views
0 Votes 1 Answers 16K Views
Is it possible to call a function in a recursive way in FunC? If so, how exactly should I do it? I haven't found it in the FunC documentation, is it covered ...
2 years ago
0 Votes
1 Answers
4K Views
0 Votes 1 Answers 4K Views
There are different approaches to division: * using floating-point numbers (so 23 / 4 = 5.75) * mathematical rounding (23 / 4 = 6 since it's the closest inte...
one year ago
0 Votes
1 Answers
17K Views
0 Votes 1 Answers 17K Views
What is the right way to concatenate strings? I've tried this but didn't succeed: .store_slice("start test " + VAR1 + " finish text") --- > This question was...
2 years ago
0 Votes
1 Answers
22K Views
0 Votes 1 Answers 22K Views
I want to deploy a new smart contract that I've written. Where can I read how the gas cost of deploying the smart contract in TON is calculated? Is there a c...
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
In general-purpose languages there often is some form of try. Is there anything like that in FunC I could use to validate data in msg_body? > This question w...
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Do I get it right that there is no implementation of a floating-point numbers type such as float in FunC? --- > This question was imported from Telegram Chat...
2 years ago
0 Votes
1 Answers
16K Views
0 Votes 1 Answers 16K Views
I've been trying to do the following using the uncons function, but it doesn't destructure as I expect it to: (var l, var rvalues) = uncons(values); --- > Th...
2 years ago
0 Votes
0 Answers
8K Views
0 Votes 0 Answers 8K Views
Why is it that during the TonCLI run_tests procedure, already defined comes up even with only having 2 procedures in test file? The error is as follows: [ 1]...
2 years ago
0 Votes
0 Answers
6K Views
0 Votes 0 Answers 6K Views
On TON, everything is a cell, and a slice is a cell opened up for reading. But can a slice contain another slice inside? --- > This question was imported fro...
one year ago
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Some programming languages let assign a variable the result of a logical expression. In FunC that could look like this: int enough? = (s.slice_bits() >= flag...
one year ago
1 Votes
2 Answers
19K Views
1 Votes 2 Answers 19K Views
I've heard from the TON Spanish DevChat that there exists "Ten Lessons for learning FunC". Are those video lessons? --- > This question was imported from Tel...
2 years ago
5 Votes
2 Answers
23K Views
5 Votes 2 Answers 23K Views
There's a lot of setup for a project to implement a smart contract in FunC for TON blockchain (ton.org). Is there a good practice setup project that provides...
Tal Kol
359 × 3 Administrator
2 years ago
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Are there functions for working with dates in FunC? Is it possible to get the current date or something like that? --- > This question was imported from Tele...
2 years ago
0 Votes
1 Answers
15K Views
0 Votes 1 Answers 15K Views
I remember there was a function equal_slices in stdlib for comparing two slices, but now at compilation time I get an error saying such a function does not e...
one year ago
0 Votes
2 Answers
13K Views
0 Votes 2 Answers 13K Views
As far as I understand, code in FunC language compiles to Fift, and then from Fift code the resulting bag of cells is generated. Could I make my code more co...
2 years ago
0 Votes
1 Answers
19K Views
0 Votes 1 Answers 19K Views
We have a project written in Solidity. How much effort would it take to move such a project to TON? Does it mean a total rewrite from scratch in FunC, or is ...
2 years ago
7 Votes
2 Answers
26K Views
7 Votes 2 Answers 26K Views
I'm developing a smart contract for TON blockchain in FunC and I'm trying to find a bug in my code. I'm trying to debug the issue and will appreciate somethi...
Tal Kol
359 × 3 Administrator
2 years ago
Show more results questions