Closed PolyProgrammist closed 1 year ago
Isn't it just a highload wallet with telegram bot linking?
Isn't it just a highload wallet with telegram bot linking?
Not quite, main goal is to create bullet-proof solution. In case of using highload wallet bot backend should track each message to highload wallet and check if transaction is complete. It's quite a problem if server goes down or there is a bug in backed code.
@PolyProgrammist suggest's solution that will take only one transaction from user wallet that will initiate recursive process of sending coins which will not depend on any backend or offchain infrastructure.
@PolyProgrammist btw: i think coin's amount in JSON should be string since we can face some problems with float's in JS.
Smart contract should be deployed with addresses in data cell. Initial cell should contain three addresses along with a link to next cell
I guess you should just have Address -> coins map in contract data, you just delete ones that are send per each transaction
Why do we even need external messages for this contract? Deployment will be done through ton connect 2.0 via internal message. And then contract will start the payment process immediately with the data from stateinit.
In general this footstep looks useful. Are you sure about using Tact language for this contract?
Why do we even need external messages for this contract? Deployment will be done through ton connect 2.0 via internal message. And then contract will start the payment process immediately with the data from stateinit.
we dont
In general this footstep looks useful. Are you sure about using Tact language for this contract?
Yeah, this will be one of first production ready product's done using Tact
@PolyProgrammist Were you going to take up this footstep, or did you just come up with an idea?
@PolyProgrammist Were you going to take up this footstep, or did you just come up with an idea?
I can do it most likely. Discussing it with @Naltox Naltox
@Naltox @Gusarich could you please approve or comment? Ready to do this
@PolyProgrammist Were you going to take up this footstep, or did you just come up with an idea?
Smart contract language changed to func. What do you think?
Update: after some discussion with @PolyProgrammist we came up that it would be better to write this contract on FunC, since gas usage is important and Tact has some overhead
@PolyProgrammist told us that he won't complete this Footstep.
I'd like to complete this Footstep.
Hi guys! Sorry, I can't take this footstep. Please feel free to take it
Completed the smart contract & script & tests in repository:
I'll implement the Telegram bot soon.
I've also edited the description of this Footstep a little bit.
Telegram bot is done.
@Naltox can you please review it?
There were many adjustments, improvements and fixes to the bot and the contract. It's currently on the final stage of the review. 👀
LGTM!
A reform of the TON Footsteps collection mint is currently underway, which may result in increased SBT receipt times. Please accept our apologies.
However, the cash equivalent reward has already been received by the performer.
TON Footstep SBT was minted!
Feel free to utilize the @ton_mass_payments_bot.
Thank you all. 💯
@Gusarich, I've encountered an issue where I can't re-link my wallet. Let's add the option to connect a new wallet.
Summary
Bot that sends toncoins to several addresses using smart contract
Context
The bot and smart contract is needed to simplify massive sending. Usages are:
Goals
The bot should accept json file that contains a dictionary from address to number of toncoins to send to this address
JSON example
CSV example:
TG message example:
User needs to connect to the bot via ton connect 2.0 with tonkeeper. Then they need to provide the file with description of addresses and number of tons to send for each address. After that they should approve transaction to send toncoins from their wallet to smart contract. Smart contract will send the coins to addresses from file.
Other details:
Smart contract language: Func Tests will be on: blueprint & sandbox
Deliverables
Definition of Done
Reward
Total: $1000