-
Notifications
You must be signed in to change notification settings - Fork 1
Smart contracts
Slava Ruckis edited this page Sep 10, 2019
·
1 revision
- GenericERC20.sol - handles payments with erc20 tokens.
- MerchantDealsHistory.sol - stores hashes of Deal conditions together with the parties' reputation for each deal. This contract enables to see the evolution of the trust rating of both parties.
- MerchantWallet.sol - serves as a public Merchant profile with the merchant's profile info, payment settings, and latest reputation value. Also accepts payments for orders.
- MonethaGateway.sol - forwards funds from the order payment to the merchant's wallet and collects the Monetha fee.
- MonethaSupportedTokens.sol - stores all erc20 tokens supported by Monetha.
- PaymentProcessor.sol - handles payment and order processing with Trust and Reputation. Each Merchant has one PaymentProcessor contract.
- PrivatePaymentProcessor.sol - handles the cheap method for payment and order processing with Trust and Reputation. Each Merchant has one PrivatePaymentProcessor contract.
You can find more information about the decentralized payment layer in the payment-contracts repository.
- IMonethaVoucher.sol - stores the total number of vouchers in the shared pool.
- MonethaClaimHandler.sol - handles claim (dispute) creation, acceptance, resolution and confirmation for deals.
- MonethaTokenHoldersProgram.sol - allows holders of MTH tokens to stake tokens in the contract once a month and receive Monetha vouchers proportionally to their stake. 1/3 of Monetha's revenue will be transferred to this contract to buy Monetha vouchers for the participants.
- MonethaUsers.sol - stores basic user information, i.e. the nickname and reputation score.
- MonethaUsersClaimHandler.sol - a calling contract used to update the storage contract MonethaUsersClaimStorage.
- MonethaUsersClaimStorage.sol - a storage contract used by MonethaUsersClaimHandler to update and delete user claims.
- MonethaVoucher.sol - handles the voucher logic.
You can find more information about the decentralized loyalty program in the loyalty-contracts repository.
You can find more information about the decentralized reputation framework in the reputation-contracts repository.