1. Mar 17, 2020
    • Arkadiy Paronyan's avatar
      d383b0dd
    • Alexander Theißen's avatar
      Add `ext_terminate` (#5234) · b3627955
      Alexander Theißen authored
      With this patch forward this will be the only way for
      a contract to destroy itself. This patch therefore changes
      the semantics of all other contract initiated balance
      transfers to fail if they would bring the caller below the
      existential deposit.
      b3627955
    • Max Inden's avatar
      client/network/src/protocol: Refactor Prometheus metric logic (#5266) · 3e3a82d6
      Max Inden authored
      * client/network/src/protocol: Start Prometheus metric help with capital
      
      * client/network/src/protocol: Differentiate metric status as label
      
      Prometheus query language is powerful through its multi-dimensional data
      model. Metric names are hirarchical whereas labels enable data to become
      multi-dimensional.
      
      Exposing the justification of finality-proof status as a label allows
      for more powerful queries.
      
      * client/network/src/protocol: Remove 'Total' from non counter metric help
      
      The word 'total' is reserved for accumulating counters. Counters have to
      be monotonically increasing. `obsolete_requests` can decrease, thereby
      it is defined as a `Gauge` and not a `Counter`.
      
      For more details on metric naming see
      https://prometheus.io/docs/practices/naming/
      3e3a82d6
  2. Mar 16, 2020
  3. Mar 15, 2020
    • Bastian Köcher's avatar
      Move runtime upgrade to `frame-executive` (#5197) · 064ca16f
      Bastian Köcher authored
      * Move runtime upgrade to `frame-executive`
      
      Instead of storing the runtime upgraded in the space of `frame-system`,
      this moves it to `frame-executive`. We also start storing the
      `spec_version` and `impl_version` the last runtime upgrade was applied.
      
      This scheme has multiple advantages:
      - We don't need to make sure that runtime upgrade was set.
      - This will work in the future when we want to test a runtime upgrade,
      because the `on_runtime_upgrade` will be executed automatically when the
      runtime changes.
      
      * Move `LAST_RUNTIME_UPGRADE` key to `frame-executive`
      
      * Add some more documentation
      
      * Make sure `spec_version` always increases between runtime upgrades
      
      * Fix test
      
      * Upgrade `parity-multiaddr` to fix compilation
      
      * Also check if the `spec_name` changed
      
      * Remove `RuntimeUpgraded` storage entry
      
      * Don't run on genesis
      064ca16f
    • Shawn Tabrizi's avatar
      Fix genesis bug in bench db (#5253) · 2c0fdb50
      Shawn Tabrizi authored
      2c0fdb50
  4. Mar 14, 2020
    • s3krit's avatar
      Create release-tagging github action (#5225) · 31e84afb
      s3krit authored
      * Create release-tagging github action
      
      Uses an action that I forked, which I retain control of for now. Can probably move it to the paritytech repo at some point
      
      * Remove 'prereleased' trigger
      
      `published` action is triggered whether the release is a pre-release or not.
      
      * Update release-tagging.yml
      
      * Remove superfluous cmment
      31e84afb
    • Max Inden's avatar
      client/finality-grandpa: Add Prometheus metrics to GossipValidator (#5237) · dd194a4c
      Max Inden authored
      * client/finality-grandpa: Add Prometheus metrics to GossipValidator
      
      Instrument finality grandpa `GossipValidator` exposing count of messages
      validated by message type and message action.
      
      ```
      \# HELP substrate_finality_grandpa_communication_gossip_validator_messages Number of messages validated by the finality grandpa gossip validator.
      \# TYPE substrate_finality_grandpa_communication_gossip_validator_messages counter
      substrate_finality_grandpa_communication_gossip_validator_messages{action="discard",message="neighbor"} 39
      substrate_finality_grandpa_communication_gossip_validator_messages{action="keep",message="vote"} 28
      ```
      
      * client/finality-grandpa: Add None as Prometheus registry in tests
      
      * client/finality-granpda/src/communication: Refactor metric registration
      dd194a4c
    • Alexander Theißen's avatar
      Add ext_transfer call (#5169) · ac73bdc8
      Alexander Theißen authored
      
      
      * contracts: Add ext_transfer call
      
      This call allows contracts to send balance to any account
      contract or not. Previously, the only way to do that was
      though ext_call.
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * The define_env! macro does not allow for trailing comma
      
      * Update frame/contracts/src/exec.rs
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * Bump spec version
      
      * Do not use nested gas meter
      
      * Use explicit 0 or 1 as return value
      
      * Remove superflous intermediate binding
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      ac73bdc8
    • Kian Paimani's avatar
      4da1756b
    • Shawn Tabrizi's avatar
      Assign unique storage names to pallets. (#5010) · 7e2db298
      Shawn Tabrizi authored
      
      
      * Assign unique storage names to pallets.
      
      * Bump spec
      
      * Upgrade logic for finality tracker (untested)
      
      * Logic for migrating Identity (untested)
      
      * Logic for migrating transaction-payment
      
      * Fix tests
      
      * Fix `decl_storage` build
      
      * Contract -> Contracts
      
      * Update Cargo.lock
      
      * bump spec
      
      * update migration
      
      * Fix merge error
      
      * Migration for contracts
      
      * Remove serde
      
      * Remove some illegal spaces and Options
      
      * Fix types in identity.
      
      * Minor variable rename
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      7e2db298
  5. Mar 13, 2020
  6. Mar 12, 2020
  7. Mar 11, 2020
  8. Mar 10, 2020