flow-core-contracts
flow-core-contracts copied to clipboard
Cadence smart contracts that define core functionality of the Flow protocol
This PR adds a minimal version of a service event to upgrade the protocol state version (see also https://github.com/onflow/flow-go/pull/5428). This is a Cadence 1.0 compatible port of https://github.com/onflow/flow-core-contracts/pull/411. There is...
### Problem ATM this repo is not tagged when used in things like flowkit ### Steps to Reproduce Nothing ### Acceptance Criteria When this repo is used in a tagged...
### Issue To Be Solved Currently, the transactions to update weights for fees just save values directly to storage. These should be resource functions with proper input validation. ### Suggest...
### Issue To Be Solved There is a lot of code in the staking contract (`FlowIDTableStaking`) that iterates through a node's delegators and does something. This could be better. [Example](https://github.com/onflow/flow-core-contracts/blob/stable-cadence/contracts/FlowIDTableStaking.cdc#L1026-L1043)...
ref: https://github.com/onflow/flow-go/issues/5858 This is intended to work together with this FVM PR https://github.com/onflow/flow-go/pull/5908 which is already deployed on testnet, so this can be deployed when it is ready. This imports...
rebase of https://github.com/onflow/flow-core-contracts/pull/301 against the `stable-cadence` branch, closes https://github.com/onflow/flow-core-contracts/issues/426 Adds a PoP parameter to the `addNodeRecord` method in the staking contract. In the `NodeRecord` init function, PoP is verified against...
## Context (based on the old private repo issue https://github.com/dapperlabs/flow-go/issues/6284) Proof of possession of the staking private key (PoP) is a required info from all staking nodes, to prevent BLS...
This is a part of https://github.com/onflow/flow-go/pull/6004
### Issue To Be Solved The `FlowToken.TokensDeposited` and `FlowToken.TokensWithdrawn` events take up unnecessary computation and space in transaction results now that the `FungibleToken` standard events exist. They should be removed...
Based on https://github.com/onflow/flow-core-contracts/pull/425 Moved to a new branch because of Git issues Adds a PoP parameter to the `addNodeRecord` method in the staking contract. In the `NodeRecord` init function, PoP...