Releases: onflow/flow-core-contracts
Releases · onflow/flow-core-contracts
Store Approved Node IDs in contract
Store Approved Node IDs in contract
Add config check to FlowEpoch constructor
Add config check to FlowEpoch constructor
Epoch Transactions
Updates old transactions and adds new transactions to support Flow Epochs.
FlowIDTableStaking
- breaking change:: Updates the
end_epoch.cdc
andpay_rewards.cdc
transactions to use the new calculate and pay methods.
FlowClusterQC
- Adds transactions and scripts to test, interact with, and query the clusterQC
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210113-quorum-certificate.md
FlowDKG
- Adds transactions and scripts to test, interact with, and query the DKG
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210322-dkg.md
FlowEpoch
- Adds transactions and scripts to test, interact with, and query the epoch smart contract
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210607-epoch.md
FlowStakingCollection
Breaking Changes
- Adds machine account creation to node registration transaction
- Updates setup staking collection transaction to include machine account field.
- Adds machine account info to transfer node transaction.
- See staking collection docs here: https://flow-docs-git-feature-epochs-onflow.vercel.app/staking/staking-collection/
LockedTokens
- No changes for locked tokens transactions
StakingProxy
- No changes for staking proxy transactions
Epoch Smart Contracts
This release contains updates to many of the core contracts to support Epochs.
FlowIDTableStaking.cdc
- Verifies staking and networking keys with the cadence crypto API
- Changes reward payment to calculate rewards separately from paying them
FlowClusterQC
- Adds the clusterQC contract, which facilitates cluster quorum certificate generation.
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210113-quorum-certificate.md
FlowDKG
- Adds the DKG contract, which initializes the random beacon for the new epoch.
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210322-dkg.md
FlowEpoch
- Adds the epoch contract, which acts as state machine to manage the epoch phases, including the staking auction, clusterQC, and DKG.
- See FLIP here: https://github.com/onflow/flow/blob/josh/epochflip/flips/20210607-epoch.md
FlowStakingCollection
- Updates the staking collection to support epochs
- Adds machine account creation to node registration
- See staking collection docs here: https://flow-docs-git-feature-epochs-onflow.vercel.app/staking/staking-collection/
LockedTokens
- Adds a
borrowNode
function to the LockedTokenManager resource to better facilitate the staking collection functionality
StakingProxy
- Adds a pre-condition to check nodeID length
lib/go/templates/v0.7.2
lib/go/contracts/v0.7.2
🛠 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
🛠 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
andGenerateGetDelegatorInfoFromAddressScript
(#91) - Reorganize staking templates (#92)
- Add transaction to change payout and end epoch at the same time:
GenerateEndEpochChangePayoutScript
(#91)