Releases: connectplatform/daarion
Releases · connectplatform/daarion
rc-0.9alpha
Files and Functions:
-
DAARION.sol: ERC-20 token contract with burnable, pausable, and sales tax features.
- initialize: Initializes the contract.
- transfer: Handles token transfers with optional tax.
- transferFrom: Transfers tokens from one account to another with optional tax.
- _transferWithTax: Internal function to handle taxed transfers.
- setSalesTax: Sets the sales tax rate.
- setWallet1: Sets the wallet1 address.
- excludeFromTax: Excludes an account from the sales tax.
- includeInTax: Includes an account for the sales tax.
- mint: Mints new tokens.
- burn: Burns tokens from the owner's balance.
- pause: Pauses all token transfers.
- unpause: Unpauses token transfers.
-
DAAR.sol: ERC-20 token contract with burnable features, transaction fee, and role-based access control.
- initialize: Initializes the contract.
- transfer: Handles token transfers with a transaction fee.
- transferFrom: Handles token transfer with a fee from one account to another.
- setTransactionFee: Sets the transaction fee rate.
- setWalletD: Sets the walletD address.
- excludeFromFee: Excludes an account from the transaction fee.
- includeInFee: Includes an account in the transaction fee.
- setDistributor: Grants the
DISTRIBUTOR_ROLE. - setAPRDistributor: Grants the
APR_DISTRIBUTOR_ROLE. - distributeDAAR: Distributes tokens with a fee mechanism.
- mint: Mints new tokens.
- burn: Burns tokens from the owner's balance.
-
APRStaking.sol: Manages staking and rewards with APR.
- initialize: Initializes the staking contract.
- stake: Stakes tokens.
- unstake: Unstakes tokens.
- calculateRewards: Calculates staking rewards.
- claimRewards: Claims earned rewards.
- setAPR: Sets the APR.
- pause: Pauses staking operations.
- unpause: Unpauses staking operations.
-
DAARDistributor.sol: Manages token distribution over time or immediately.
- initialize: Initializes the distributor contract.
- distribute: Distributes tokens to recipients.
- setDistributionDuration: Sets the distribution duration.
- pause: Pauses token distributions.
- unpause: Unpauses token distributions.
Key Modules:
- Access Control: Role-based permissions.
- Token Burning: Extends functionality for burning tokens.
- Staking and Rewards: Supports staking with reward calculations.
- Token Distribution: Manages timed or immediate distribution of tokens.
- Upgradeable Patterns: Compatible with proxy deployments for upgrades.
Full Changelog: https://github.com/connectplatform/daarion/commits/rc-0.9alpha