Skip to content

Releases: onflow/flow-core-contracts

Store Approved Node IDs in contract

05 Aug 23:11
6e64b6a
Compare
Choose a tag to compare

Store Approved Node IDs in contract

05 Aug 23:13
6e64b6a
Compare
Choose a tag to compare

Add config check to FlowEpoch constructor

15 Jul 21:39
9a02fe9
Compare
Choose a tag to compare

Add config check to FlowEpoch constructor

15 Jul 21:40
9a02fe9
Compare
Choose a tag to compare

Epoch Transactions

13 Jul 16:46
935ba91
Compare
Choose a tag to compare

Updates old transactions and adds new transactions to support Flow Epochs.

FlowIDTableStaking

  • breaking change:: Updates the end_epoch.cdc and pay_rewards.cdc transactions to use the new calculate and pay methods.

FlowClusterQC

FlowDKG

FlowEpoch

FlowStakingCollection

Breaking Changes

LockedTokens

  • No changes for locked tokens transactions

StakingProxy

  • No changes for staking proxy transactions

Epoch Smart Contracts

13 Jul 16:00
935ba91
Compare
Choose a tag to compare

This release contains updates to many of the core contracts to support Epochs.

FlowIDTableStaking.cdc

FlowClusterQC

FlowDKG

FlowEpoch

FlowStakingCollection

LockedTokens

  • Adds a borrowNode function to the LockedTokenManager resource to better facilitate the staking collection functionality

StakingProxy

lib/go/templates/v0.7.2

21 Apr 18:11
6b5338c
Compare
Choose a tag to compare

🛠 Improvements

  • Added a script to get the total balance of an account including all staking objects and the (optional) locked accout. (#110)
  • Added a transaction to remove a delegator object from a locked account (#118)
  • Adds FlowStorageFees script to get the usable balance of an account (#154)

lib/go/contracts/v0.7.2

21 Apr 18:12
6b5338c
Compare
Choose a tag to compare

🛠 Improvements

  • Sets minimum default account balance to zero by default. (Tesnet and mainnet is 0.001 FLOW). (#107)
  • Upgrades to the locked tokens contract for staking assertions and remove stake functions. (#118)
  • Upgrades to the locked tokens contract subtract the account minimum balance when getting the locked token balance (#136)
  • Adds FlowStorageFees method to get the usable balance of an account (#154)
  • Updates the FungibleToken dependency to get the latest version of the interface with added pre-condition. (#167)

lib/go/templates/v0.6.0

11 Jan 21:18
Compare
Choose a tag to compare

🛠 Improvements

Staking Templates

  • Update register node transaction to create a public capability to get the accounts node or delegator IDs (#91)
  • Add scripts to query staking info for an account by address: GenerateGetNodeInfoFromAddressScript and GenerateGetDelegatorInfoFromAddressScript (#91)
  • Reorganize staking templates (#92)
  • Add transaction to change payout and end epoch at the same time: GenerateEndEpochChangePayoutScript (#91)

LockedTokens Templates

  • Add scripts for querying node or delegator info from locked accounts by address: GenerateGetLockedStakerInfoScript and GenerateGetLockedDelegatorInfoScript (#89)
  • Change withdraw rewards transactions for locked tokens that withdraw directly to the unlocked account. (#94)

lib/go/contracts/v0.6.0

11 Jan 21:17
Compare
Choose a tag to compare

🛠 Improvements

Staking Contract

  • Add ability to cancel unstaking request by submitting the stake_unstaked_tokens transaction (#88)
  • Added public interfaces to staking contract for querying node or delegator info by address (#91)