0.0.1 • Published 5 months ago
@dedust/apiary-v1 v0.0.1
Apiary Protocol V1
Contracts for jettons distribution.
Scenarios
Rewards claiming
Steps:
- anybody sends
claim
message that containsuser_addr
whom reward should be claims andproof
to a Pool - Pool verifies if
proof
has the same hash as a stored one in the Pool and sendsclaim_request
to an DistributionAccount - DistributionAccount calculates the difference between incoming
total_reward
andtotal_paid
(the last one is stored in account) and sends apayout_request
back to a Pool - Pool sends
transfer
message to a jetton wallet to send jettons touser_addr
Development
Running tests
yarn test
Licensing
The primary license for Apiary V1 is the Business Source License 1.1 (BUSL-1.1
), see LICENSE
.
Other Exceptions
contracts/imports/stdlib.fc
is licensed underLGPL-2.1-or-later
(as indicated in its SPDX header), seeLICENSE.LGPL
.- All files in
tests
remain unlicensed (as indicated in their SPDX headers).
Copyright
Scaleton Labs LLC © 2023
0.0.1
5 months ago