0.0.1 • Published 5 months ago

@dedust/apiary-v1 v0.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
5 months ago

Apiary Protocol V1

Contracts for jettons distribution.

Scenarios

Rewards claiming

Rewards claiming

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

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 under LGPL-2.1-or-later (as indicated in its SPDX header), see LICENSE.LGPL.
  • All files in tests remain unlicensed (as indicated in their SPDX headers).

Copyright

Scaleton Labs LLC © 2023

0.0.1

5 months ago