Contracts for jettons distribution.
npm install @dedust/apiary-v1Contracts for jettons distribution.
Steps:
1. anybody sends claim message that contains user_addr whom reward should be claims and proof to a Pool
2. Pool verifies if proof has the same hash as a stored one in the Pool and sends claim_request to an DistributionAccount
3. DistributionAccount calculates the difference between incoming total_reward and total_paid (the last one is stored in account) and sends a payout_request back to a Pool
4. Pool sends transfer message to a jetton wallet to send jettons to user_addr
``shell`
yarn test
The primary license for Apiary V1 is the Business Source License 1.1 (BUSL-1.1), see LICENSE.
- contracts/imports/stdlib.fc is licensed under LGPL-2.1-or-later (as indicated in its SPDX header), see LICENSE.LGPL.tests` remain unlicensed (as indicated in their SPDX headers).
- All files in
Scaleton Labs LLC © 2023