Skip to content

Commit

Permalink
Framework update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Sep 8, 2023
1 parent a14de93 commit 03899ea
Show file tree
Hide file tree
Showing 54 changed files with 1,308 additions and 2,489 deletions.
88 changes: 17 additions & 71 deletions dex/farm-with-locked-rewards/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 69 additions & 64 deletions dex/farm-with-locked-rewards/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,76 +10,81 @@
// Total number of exported functions: 64

#![no_std]
#![feature(alloc_error_handler, lang_items)]

// Configuration that works with rustc < 1.73.0.
// TODO: Recommended rustc version: 1.73.0 or newer.
#![feature(lang_items)]

multiversx_sc_wasm_adapter::allocator!();
multiversx_sc_wasm_adapter::panic_handler!();

multiversx_sc_wasm_adapter::endpoints! {
farm_with_locked_rewards
(
enterFarm
claimRewards
exitFarm
calculateRewardsForGivenPosition
mergeFarmTokens
startProduceRewards
endProduceRewards
setPerBlockRewardAmount
getRewardPerShare
getRewardReserve
getFarmingTokenId
getRewardTokenId
getPerBlockRewardAmount
getLastRewardBlockNonce
getDivisionSafetyConstant
setLockingScAddress
setLockEpochs
getLockingScAddress
getLockEpochs
registerFarmToken
getFarmTokenId
getFarmTokenSupply
addToPauseWhitelist
removeFromPauseWhitelist
pause
resume
getState
addAdmin
removeAdmin
updateOwnerOrAdmin
getPermissions
addSCAddressToWhitelist
removeSCAddressFromWhitelist
isSCAddressWhitelisted
set_penalty_percent
set_minimum_farming_epochs
set_burn_gas_limit
getPenaltyPercent
getMinimumFarmingEpoch
getBurnGasLimit
getPairContractManagedAddress
setBoostedYieldsRewardsPercentage
collectUndistributedBoostedRewards
getBoostedYieldsRewardsPercentage
getAccumulatedRewardsForWeek
getFarmSupplyForWeek
getRemainingBoostedRewardsToDistribute
getUndistributedBoostedRewards
setBoostedYieldsFactors
getBoostedYieldsFactors
getCurrentWeek
getFirstWeekStartEpoch
getLastActiveWeekForUser
getUserEnergyForWeek
getLastGlobalUpdateWeek
getTotalRewardsForWeek
getTotalEnergyForWeek
getTotalLockedTokensForWeek
updateEnergyForUser
getCurrentClaimProgress
setEnergyFactoryAddress
getEnergyFactoryAddress
callBack
init => init
enterFarm => enter_farm_endpoint
claimRewards => claim_rewards_endpoint
exitFarm => exit_farm_endpoint
calculateRewardsForGivenPosition => calculate_rewards_for_given_position
mergeFarmTokens => merge_farm_tokens_endpoint
startProduceRewards => start_produce_rewards_endpoint
endProduceRewards => end_produce_rewards_endpoint
setPerBlockRewardAmount => set_per_block_rewards_endpoint
getRewardPerShare => reward_per_share
getRewardReserve => reward_reserve
getFarmingTokenId => farming_token_id
getRewardTokenId => reward_token_id
getPerBlockRewardAmount => per_block_reward_amount
getLastRewardBlockNonce => last_reward_block_nonce
getDivisionSafetyConstant => division_safety_constant
setLockingScAddress => set_locking_sc_address
setLockEpochs => set_lock_epochs
getLockingScAddress => locking_sc_address
getLockEpochs => lock_epochs
registerFarmToken => register_farm_token
getFarmTokenId => farm_token
getFarmTokenSupply => farm_token_supply
addToPauseWhitelist => add_to_pause_whitelist
removeFromPauseWhitelist => remove_from_pause_whitelist
pause => pause
resume => resume
getState => state
addAdmin => add_admin_endpoint
removeAdmin => remove_admin_endpoint
updateOwnerOrAdmin => update_owner_or_admin_endpoint
getPermissions => permissions
addSCAddressToWhitelist => add_sc_address_to_whitelist
removeSCAddressFromWhitelist => remove_sc_address_from_whitelist
isSCAddressWhitelisted => is_sc_address_whitelisted
set_penalty_percent => set_penalty_percent
set_minimum_farming_epochs => set_minimum_farming_epochs
set_burn_gas_limit => set_burn_gas_limit
getPenaltyPercent => penalty_percent
getMinimumFarmingEpoch => minimum_farming_epochs
getBurnGasLimit => burn_gas_limit
getPairContractManagedAddress => pair_contract_address
setBoostedYieldsRewardsPercentage => set_boosted_yields_rewards_percentage
collectUndistributedBoostedRewards => collect_undistributed_boosted_rewards
getBoostedYieldsRewardsPercentage => boosted_yields_rewards_percentage
getAccumulatedRewardsForWeek => accumulated_rewards_for_week
getFarmSupplyForWeek => farm_supply_for_week
getRemainingBoostedRewardsToDistribute => remaining_boosted_rewards_to_distribute
getUndistributedBoostedRewards => undistributed_boosted_rewards
setBoostedYieldsFactors => set_boosted_yields_factors
getBoostedYieldsFactors => get_boosted_yields_factors
getCurrentWeek => get_current_week
getFirstWeekStartEpoch => first_week_start_epoch
getLastActiveWeekForUser => get_last_active_week_for_user_view
getUserEnergyForWeek => get_user_energy_for_week_view
getLastGlobalUpdateWeek => last_global_update_week
getTotalRewardsForWeek => total_rewards_for_week
getTotalEnergyForWeek => total_energy_for_week
getTotalLockedTokensForWeek => total_locked_tokens_for_week
updateEnergyForUser => update_energy_for_user
getCurrentClaimProgress => current_claim_progress
setEnergyFactoryAddress => set_energy_factory_address
getEnergyFactoryAddress => energy_factory_address
)
}

multiversx_sc_wasm_adapter::async_callback! { farm_with_locked_rewards }
Loading

0 comments on commit 03899ea

Please sign in to comment.