Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: MMD-1309 10-to-1 - Off-chain workers #238

Draft
wants to merge 37 commits into
base: luke/rewards-allowance-new
Choose a base branch
from

Commits on Oct 22, 2021

  1. comment out println

    ltfschoen committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a849024 View commit details
    Browse the repository at this point in the history
  2. refactor dependencies

    ltfschoen committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a58164f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. wip

    ltfschoen committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    2ce1c14 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. wip

    ltfschoen committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    a7bb57c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3c2e33 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2021

  1. wip

    ltfschoen committed Nov 6, 2021
    Configuration menu
    Copy the full SHA
    dba8e71 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Update pallets/mining/rewards-allowance/src/lib.rs

    Co-authored-by: Xiliang Chen <xlchen1291@gmail.com>
    ltfschoen and xlc committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    edd9734 View commit details
    Browse the repository at this point in the history
  2. wip

    ltfschoen committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    88500f3 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Configuration menu
    Copy the full SHA
    df24da1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f7c362e View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Configuration menu
    Copy the full SHA
    e52f252 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Configuration menu
    Copy the full SHA
    9ad33cd View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. Configuration menu
    Copy the full SHA
    75631cc View commit details
    Browse the repository at this point in the history
  2. wip

    ltfschoen committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    3653ab2 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Configuration menu
    Copy the full SHA
    ca94095 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    32ac4b9 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

  1. wip

    resolved errors that i was getting in the logsoffchain_workers error fetching mpower  and offchain_workers error unknown transaction type  , which appears to because i needed to change the GRACE_PERIOD to a shorter period of say 10 seconds instead of 1 minute
    
    i also only had a single account Alice in the chain_spec as a value for cooling_off_period_days_remaining, but I also needed Bob since, and because in the hard-coded mpower data response from the API i had two accounts with an mpower value, but they accidently both had Alice’s public key hex, so it was using the same account when iterating over multiple miners.
    
    i also wasn’t providing the correct value for the account id to the function set_mpower_of_account_for_date (i was providing the unsigned account id instead of the account id property i’d added as mpower_data_item.account_id_registered_dhx_miner
    
    i checked that i could successfully check on-chain storage for MPowerForAccountForDate` by providing the start of a current date that had been stored, and the public key (hex) value that was provided for the account id in the API response (even though we’re storing the key as Vec<u8> it still fetches it correctly in the UI
    
    change to store accounts as public keys Vec<u8> instead of AccountId
    ltfschoen committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    1deca20 View commit details
    Browse the repository at this point in the history
  2. add extrinsic change_mpower_of_account_for_date. change to ensure_roo…

    …t so only Sudo or governance may change
    ltfschoen committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    d4d5d6e View commit details
    Browse the repository at this point in the history
  3. only storage mpower for account for date from api if that account/dat…

    …e does not already exist in storage
    ltfschoen committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    86cab12 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. wip

    ltfschoen committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    be9828c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15eafe9 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. wip - fix challenge period

    ltfschoen committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    b732e51 View commit details
    Browse the repository at this point in the history
  2. wip

    ltfschoen committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    18f919a View commit details
    Browse the repository at this point in the history
  3. fix

    ltfschoen committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    28e6955 View commit details
    Browse the repository at this point in the history
  4. wip

    ltfschoen committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    d4280c8 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. wip

    ltfschoen committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    3076eda View commit details
    Browse the repository at this point in the history
  2. wip

    ltfschoen committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    d99afd4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cce66c0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b75288c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c0c8a04 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Configuration menu
    Copy the full SHA
    0fbd3ec View commit details
    Browse the repository at this point in the history
  2. change to min. mpower of 1

    ltfschoen committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    1171540 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. wip

    ltfschoen committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    49c8908 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. wip

    ltfschoen committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    897494a View commit details
    Browse the repository at this point in the history
  2. wip

    ltfschoen committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    7b8c7e0 View commit details
    Browse the repository at this point in the history
  3. wip

    ltfschoen committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    eadb462 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. wip

    ltfschoen committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    1e9585f View commit details
    Browse the repository at this point in the history