TON Dev Chat
"params": {
"source": "
owner wallet",
"valid_until":16721116
33,
"messages": [{
"address":"
nft address",
"amount":"68568779",
// strange amount, how it calculates?
"payload":"te6cckEBAQEAVQAApV/MPRQAAAAAAAAAAIAJbHMqtRChqxPdhONruHmDbIW0
234234234234/JKIkpbAB1yAyuxOOygw/zFrDV0iSDZdyS0uM+
sadfaAFSDFasdfd45rsdfa=="
// what is it? How it generates?
}]
}
(0x10,6)
. Others using store_uint(0x18,6)
# FunC lessons without installing anything to your operating system
## Disclaimer
Unfortunately *anything* means that you should have docker installation able to access your local filesystem (or its part) with volume mounts. You should do it yourself anyhow.
## Environment preparation
pw
d``:/code -v toncli:/root/.config trinketer22/func_docker'
Use all commands as described in lessons.
https://testnet.toncenter.com/
for that? I will check the docs for that.
getWalletInformation
?
getTransactions
ton://transfer/....
didn't react to anything sofar
ton://transfer/
... was something about TG application will not allow use it for Android.getTransactions
on my Postman, but my bot does return 404 on the exact same URL? Both request are made from my local machine. https://testnet.toncenter.com/api/v2/getTransactions?api_key=:key&address=EQCfM-fy18pnCQOvlWFUAbsC02S9CDMVc74f56104R9aQOoz
next_item_index
.
response_destination
and new_owner
?
Collection contract
itself.
ReportStaticData(0x8b771735)
Cell
data type in TypeScrip?
ton
package to turn .json data to a Cell format? 😁😁😁
C:\Users\yuria\AppData\Local\toncli\toncli\test-libs\__init__.func:1:1: error: cannot open source file `address_helpers.func`
#include "address_helpers.func";
address_helpers.func
is there in the parent dirupdate_libs
.
recv_internal
function:() recv_internal (int balance, int msg_value, cell in_msg_full, slice in_msg_body) {With the following test case:
(slice sender_address, _) = parse_sender_address(in_msg_full);
slice owner_address = load_data();
var msg = begin_cell()
.store_uint(0x10, 6)
.store_slice(owner_address)
.store_grams(0)
.store_uint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1)
.store_slice(sender_address)
.store_ref(begin_cell().store_slice(in_msg_body).end_cell())
.end_cell();
send_raw_message(msg, 64);
}
int __test_fwd_message() {
slice owner_addr = get_owner_addr();
slice sender_addr = get_owner_addr();
set_owner_addr(owner_addr);
cell in_msg_body = begin_cell()
.store_uint(10, 4) ;; 1010
.end_cell();
cell in_msg_full = begin_cell()
.store_uint(0x6, 4) ;; 0110
.store_slice(sender_addr)
.end_cell();
var (int gas_used, _) = invoke_method(
recv_internal,
[12345, 10, in_msg_full, in_msg_body.begin_parse()]
);
slice actions = get_actions();
actions~load_ref();
int prefix = actions~load_uint(32);
throw_unless(100, prefix == 0x0ec3c86d);
int flag = actions~load_uint(8);
throw_unless(101, flag == 64);
cell msg = actions~load_ref();
slice cs = msg.begin_parse();
cs~skip_bits(6);
slice dest_addr = cs~load_msg_addr();
throw_unless(102, equal_slices(dest_addr, owner_addr));
int grams = cs~load_grams();
~dump(grams);
;;throw_unless(103, grams > 0); FAILS
cs~skip_bits(1 + 4 + 4 + 64 + 32 + 1 + 1);
slice sender_addr = cs~load_msg_addr();
throw_unless(104, equal_slices(sender_addr, sender_addr));
slice fwd_msg_body = (cs~load_ref()).begin_parse();
int fwd_msg_value = fwd_msg_body~load_uint(4);
throw_unless(105, fwd_msg_value == 10);
return gas_used;
}
int msg_value
), it doesn't pass the test. Anyone know the problem?
impure
modifier when setting data
LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state
error on sendBoc Transactionton://
links...failed to download proof link: [Error : 651 : no nodes]trying to run lite server node got this error how to fix?
[ 0][t 2][2023-01-04 14:45:29.056498924][dht.cpp:545][!localid] Check `node.addr_list().size() > 0` failed
[ethjs-unit] while converting number 0.02409668633681344 to wei, too many decimal places
for payment linksmode' = mode + 1 means that the sender wants to pay transfer fees separately
org.ton.wallets.v3.r2
🤔
0x76A797A59Ba2C17726896976B7B3747BfD1d220f
toncli
couldn't find the func
executable.ton-compiler
or func-js
and compile on the fly.
seqno
is increased by one to prevent reply attacks.seqno
, which makes the wallet reject the message.
seqno
:)
seqno
ton_api::pk_ed25519::ID
. Where i can get it?utils
folder:./utils/generate-random-id --mode keys
fiftlib.zip
there, seem to give you a valid file hosted on the website it-selffiftlib
, more info about environment setup here.
randomize_lt
can still be predicted before sending message to your contract.
pytonlib
to fetch masterchain
blocks - then get the transactions of that block, but I don't get all of the transactions that I can see in https://tonwhales.com/explorer/block/<SEQ_NUM>
.get-provider-params <address>
),get-provider-address-list
which will do something like search somewhere idk or something like this.fift.exe -V
in directory where it's located (ton-win-binaries).
echo %ERRORLEVEL%
(this command outputs exit code of previous command).
Transfer
method I implement already on Tact.....
Transfer
?mainnet
in the 12.2022 Update.bounceable
flag, then the bounce message is guaranteed to be sent.
mode & 2 == 0
, then either the full transaction fails or this outgoing message is sent.client.services.configs.getConfigs()
in ton library, but in new version is removed.