Questions tagged [everscale]
35
questions
1
vote
1
answer
21
views
Inspecting Storage Slots in Everscale Smart Contracts
I'm trying to figure out how to inspect the contents of storage slots in Everscale smart contracts. In Solidity, it's straightforward to map variables to storage slots and view them, but I can't find ...
0
votes
0
answers
19
views
When i tried to build the contract npx locklift build Getting the below error
When i tried to build the contract
npx locklift build
Getting the below error
[ERROR] path: /home/user/venom/hello-venom/contracts/Sample.tsol, contractFile: Sample. error: /bin/sh: 1: /home/user/....
1
vote
1
answer
37
views
Which way of initializing a mapping item consumes less gas in T-Sol?
I am currently in the process of creating a smart contract on T-Sol that will require periodic additions of new elements to a mapping. If these elements are not already present in the mapping, they ...
1
vote
1
answer
22
views
What format config.tvc or how to get it?
tvm_linker test --help | grep config
--config <CONFIG> Imports config parameters from a config contract TVC
What format or how to get it?
I tried like this:
tvmos -c em.json config --...
0
votes
1
answer
103
views
everwallet sendMessage: Parameter count mismatch
Can somebody explain why i got this error ?
I use this plugin https://github.com/broxus/everscale-inpage-provider
when I use this script
public async getEverWalletTransaction(
recipient: string,
...
0
votes
1
answer
151
views
Delete element in the middle of mapping
I need to delete an item in the middle of the Everscale solidity mapping containing struct:
struct Example {
string data;
uint64 validFrom;
uint64 valiUntil;
}
mapping(uint64 => ...
1
vote
1
answer
113
views
I gettting error when create project by locklift
I have installed locklift by following comand:
npm install --save-dev locklift
then i trying to create project by
npx locklift init -f
or getting version by
npx locklift --version
and always ...
0
votes
1
answer
54
views
Changing the versions of the compiler
Maybe someone faced such a problem? I tried to change versions of the compiler, after changing 1 time it accumulates without errors, it crashes again with the same error. Tried 0.64.0, 0.63.0, 0.62.0, ...
0
votes
1
answer
37
views
Mapping from old contract to the new one
trying somehow move mapping to upgrade after vm.resetStorage().
Put one into the cell and try to:
wallets_mapping = abi.decode(
wallets_mapping_cell,
(mapping(address => BalanceWalletStruct))
);
It ...
0
votes
1
answer
111
views
Everscale blockchain. difference between tvm.rawReserve and tvm.accept
I can't find in any way what is the difference between tvm.rawReserve(address(this).balance, 0) и tvm.accept()?
0
votes
1
answer
49
views
Problems with deploying first smart contracts
Good day everyone!
I'm trying to deploy the first smart contracts according to the helloWorld manuals, but I'm getting an error please see the snippet. Tell me, please, what can be done about this? ...
0
votes
1
answer
25
views
Giver deployment issues
my software started saying my giver is not deployed, but it is deployed, obviously.
I guess this is about endpoints. Could you please help me wrap my head around what's to be fixed? THx a lot!
everdev ...
0
votes
1
answer
26
views
What are the Net.ton.dev Endpoints?
What are the standard endpoints for "net.ton.dev" are working?
Through tonos-cli, for instance.
Thanks!
1
vote
2
answers
56
views
How to get funID?
need help to get the correct funcID. I've Tried many ways. Will be glad to get your help.
Thanks!
slugSha256() {
slug=$(echo -n "$1" | sha256sum | cut -d' ' -f1)
echo -n $((16#"${...
1
vote
1
answer
17
views
How to avoid connection errors?
we encountering a 401 error on connecting to the main-net.
What is the way to avoid this error? We've already created a project on the dashboard and have added the Authorisation.
Thanks!
3
votes
1
answer
105
views
I am having problem installing everdev tool
does anyone have such mistakes running command. I try it on to Cent OS servers and have different errors. On first servers related to access problem describing in EVER docs, but on the enother server ...
2
votes
3
answers
104
views
How can I send an internal message by link from Surf in DeBot?
I follow this instruction to call smart contracts from DeBot using the message argument in the Surf URI:
https://tonlabs.notion.site/For-developers-f347bd4095f74c9d9e2bd313c666905d
It works ok, but it ...
1
vote
1
answer
67
views
How DeBots recognize a value for external message
Please help me understand how DeBot understands which value to attach to an external message. In my Debot contract, I have an interface:
interface SafeAccount {
function sendTransaction(address ...
1
vote
2
answers
610
views
How to run functions which accept structs as input parameters from tondev?
For example, I have a function
function addClaimers(ClaimItemImport[] claimItems) onlyOwner external
and the ClaimItemImport struct looks as follows:
struct ClaimItemImport {
uint128 balance;
...
1
vote
3
answers
240
views
How to deploy a smartcontract and make a transfer from it in Everscale blockchain
I found this quickstart guide on how to do it locally. But there is no information about on how I can deploy my smartcontract to devnet or mainnet.
So I changed endpoint:
const client = new TonClient({...
1
vote
1
answer
89
views
Everscale blockchain: dev wallet setup
I'm learning ton blockchain development, and I want to deploy the first contract to the net.ton.dev.
I follow this instruction
https://docs.ton.dev/86757ecb2/p/94921e-multisignature-wallet-management-...
0
votes
0
answers
68
views
NaCl support in the Everscale compiler api
I wonder if there is NaCl support in smart contracts? It doesn't matter which compiler, Solidity, cpp and etc.
2
votes
1
answer
383
views
What is the TL-B scheme in ton-solidity and how to use it?
This question is about ton-solidity language of Everscale blockchain smart contracts.
Sometimes, I see the code relative to TL-B scheme. For example, like this:
function getInvokeMessage(address ...
1
vote
1
answer
99
views
Pass contract's code and data to another contract via CLI
Working on contract fabric, starting with the sample.
TvmCell stateInit = tvm.buildStateInit(templateCode, templateData);
code and data are TvmCells of a template contract and must be passed as ...
1
vote
1
answer
131
views
How to call run-local function from debot?
How to call run-local (without sending a message) function of another contract from debot? For example, for getting a public variable.
1
vote
1
answer
187
views
How to get the value 3 on the first request without await?
In this case, if there was an opportunity to use await, then there would be no reason to create a question, but await is not recommended to be used in contracts:
Note: This feature was designed to be ...
2
votes
2
answers
433
views
How to return mapping in ton-solidity contracts?
Can I return a mapping in a function of ton-solidity contracts?
I need something like this.
function func() public returns((address=>someStruct) myMapping)
1
vote
2
answers
77
views
tondev "Error: Param params (tuple) expect name at ..." when with payload param
I am using tondev and trying to call the function with payload param:
tondev contract run Wallet sendTransaction --input "dest: 0x5074b87aa1ece77b28f652ccd43db00b83c20da606529d2fdf7bb0f4ce9704a3, ...
0
votes
1
answer
987
views
Error with <string>.append() in ton-solidity: Different number of components on the left hand side (1) than on the right hand side (0)
My code for concatenating 2 strings is pretty simple:
string baseUrl = "http://localhost:8080/";
string url = baseUrl.append(url_secret);
But I have got an error:
Error: Different number of ...
1
vote
1
answer
116
views
Everscale tonos-cli. Can't deploy a contract. Error: failed to create inbound message: Encode deploy message failed: Wrong parameters count
I can't deploy compiled free ton solidity smartcontract through tonos-cli.
> tonos-cli deploy Hello.tvc tonos-cli.conf.json
Config: /ton/solidity_deploy/hello/tonos-cli.conf.json
Input arguments:
...
3
votes
1
answer
256
views
Everscale Solidity. How to work with responsible functions? How to wait for callback?
Free Everscale Solidity. How to work with responsible functions?
How to wait for callback in correct way and check the contract execution result from sdk?
For example I have the contracts (which does ...
0
votes
1
answer
88
views
Everscale-Solidity. How to get hash from data encoded into cell? tvm.hash analogue?
Free TON Solidity. How to get hash from data encoded into cell?
tvm.hash() analogue?
0
votes
1
answer
156
views
Everscale Solidity error by timeout: code: 3025 Contract execution was terminated with error
Free TON Solidity code or execution error. Can't understand my mistake, I already compact the code to the minimum:
cat ./SimpleStorage.sol
pragma solidity >=0.6.0;
contract SimpleStorage {
...
0
votes
1
answer
62
views
What is the difference between debot fetch and debot start?
I have few different options in the command line: fetch and start. What is the difference between them?
1
vote
1
answer
221
views
Incorrect result of sha256 of a string in a Everscale Solidity smart contract
I would like to compute the sha256 of a string in a Free TON-Solidity contract, I do it by storing the string in a TvmBuilder and then passing it as a TvmSlice to sha256(), but the result is not ...