-
Notifications
You must be signed in to change notification settings - Fork 15
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
CSUB-304 CSUB-322 CSUB-315 Task-Scheduler for Creditcoin #773
Conversation
cbc2ebf
to
ea19fc5
Compare
For full LLVM coverage report click here! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs rebase to resolve the conflicts but other than that it looks good to me.
…Task's implementations + leak transfer's inner_hash for testing
501ae3b
to
92f81c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First few comments, I'm not done reviewing the new code so I'll re-review once I'm back
92f81c1
to
cc11c6d
Compare
Codecov Report
@@ Coverage Diff @@
## feature/CSUB-264 #773 +/- ##
===================================================
Coverage ? 79.40%
===================================================
Files ? 64
Lines ? 10230
Branches ? 0
===================================================
Hits ? 8123
Misses ? 2107
Partials ? 0 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
* Connect task-scheduler interface * move IntoBounded to extensions * migrate `PendingTasks` storage * remove make id functions in favor of From impl * types: transfers * types: CollectedCoins * fix duplicated id constructors * mocked runtime * Authority Interface * port nonce tests * updated legacy transfers now use the new task-scheduler + remove old Task's implementations + leak transfer's inner_hash for testing * fix `register_transfer_ocw_fail_to_send` * use task-scheduler in creditcoin's mocked runtime * port `offchain_signed_tx_works` * `remove_authority_works_for_root() fix`+ `add_authority_works_for_root` * port `offchain_worker_logs_error_when_transfer_validation_errors` * port `effective_guard_lifetime_until_task_expiration` * port `completed_oversubscribed_tasks_are_skipped` * port `ocw_retries` * port` task_deadline_oversubscription` * port `offchain_worker_should_log_and_forget_guard_when_task_is_already_handled` * rename `duplicate_retry_fail_and_succeed` * change keystore id to 'gots' * move task-scheduler * Benchmarks * Update pallets/offchain-task-scheduler/src/ocw/tests.rs Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> * remove unused code * consistent weight update in `migrate` Co-authored-by: Alexander Todorov <alex.todorov@gluwa.com> Update creditcoin-js interface format
Description of proposed changes:
Reopen #656 just in case it fixes CI.
Practical tips for PR review & merge: