Skip to content
Snippets Groups Projects
  1. Jan 29, 2024
    • Hugo Trentesaux's avatar
      refac add_cert (!230) · 629c5b9d
      Hugo Trentesaux authored
      * review poka
      
      complete comment
      
      * review poka
      
      remove fixme tests
      
      * update metadata after rebase
      
      * I do not know why these tests did not run locally
      
      * update membership weights
      
      * fix benchmarks also with true runtime
      
      * fix tests
      
      * update runtime
      
      * update benchmarks
      
      * split add and renew cert
      
      remove issuer in add_cert
      and more refac
      the code compiles
      
      * clean up errors and mini refac
      629c5b9d
    • Cédric Moreau's avatar
      Resolve "Give IdtyStatus directly in genesis" (!233) · bb06959e
      Cédric Moreau authored
      * review(#162): `identity_revokes_on` is more accurate
      
      * fix(#162): also make Genesis identity expire at the time expected by G1
      
      * fix(#162): clippy 3
      
      * fix(#162): clippy 2
      
      * fix(#162): clippy
      
      * fix(#162): autorevocation scheduling for Genesis
      
      * fix(#162): cucumber tests
      
      * fix(#162): replace `active` by actual identity status
      bb06959e
  2. Jan 24, 2024
    • Cédric Moreau's avatar
      Resolve #176 "PromotedToSmith is issued even for Smith" (!232) · ad20da54
      Cédric Moreau authored
      * fix(#176): last certification does postpone expiry
      
      * test(#176): reveal that last smith certification does not postpone expiry
      
      * fix(#176): clippy
      
      * fix(#176): ExpiresOn is now correctly updated for Pending smiths
      
      * test(#176): show that ExpiresOn is not correctly updated for Pending smiths
      
      * refac(#176): move SmithCertAdded event closer to its storage updates + add docs
      
      * fix(#176): expiration should be postponed only for Pending smiths
      
      * test(#176): reveal that a ceritification on a online smith is bugged
      
      * fix(#176): review: comment
      
      * fix(#176): avoid emitting SmithMembershipAdded twice
      
      * test(#176): reveal bug
      ad20da54
  3. Jan 23, 2024
  4. Jan 22, 2024
    • Cédric Moreau's avatar
      Improvements for smith-members (!228) · 55d51237
      Cédric Moreau authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * refac(#173): harmonize InvitationSent
      
      * refac(#173): update metadata.scale + docs
      
      * refac(#173): harmonize *MembershipAdded and *MembershipRemoved
      
      * refac(#173): harmonize *CertAdded and *CertRemoved
      
      * feat(#173): docstring for calls
      
      * feat(#173): add SmithCertificationRemoved event
      
      * feat(#173): rename CertificationReceived to SmithCertificationAdded
      55d51237
  5. Jan 17, 2024
    • Hugo Trentesaux's avatar
      automatically claim membership (!219) · 79eed31c
      Hugo Trentesaux authored
      * increase node spawn timeout to avoid failure
      
      * add points in docstrings
      
      * review
      
      * add missing constant annotation
      
      and update doc
      
      * detail integration test
      
      * comments
      
      * update metadata
      
      * refac certification checks
      
      * clean up error messages and namings
      
      * automatic membership after distance eval
      
      add more details to idty creation test
      
      cargo check ok
      
      add integration test and fix behavior
      
      fix benchmarks for renaming
      
      cargo check ok
      
      cargo test ok
      
      add certification count check
      
      update benchmarks
      
      update distance setup handler
      
      fix weight info
      
      update metadata and generated doc
      
      fix cucumber
      
      distance pallet unit test stub
      
      update metadata and generate doc after rebase
      
      make membership claim no-op an error
      
      update metadata with new error
      
      wip
      
      add comments
      
      add membership renewal antispam
      
      and clean up pending membership parameters
      
      test it
      
      not compatible with keeping distance result
      
      change renewal antispam
      
      metadata
      
      fix param for other runtimes
      
      fix e2e test
      
      remove membership calls
      
      adjust integration tests accordingly
      
      update metadata
      
      fix cucumber
      
      clean up benchmarks and other tests
      
      wip
      79eed31c
  6. Jan 16, 2024
    • Benjamin Gallois's avatar
      Weight to fee conversion (!227) · ec57c932
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix chain spec
      
      * fix automatic weights documentation
      
      * fix weights include
      
      * regenerate weights
      
      * refactor cargo alias with constant-fees feature
      
      * add constant fee model for testing
      
      * regenerate weights
      
      * fix benchmark with non constant fees
      
      * fix weight to fee factor
      
      * prepare length to fee logic
      
      * prepare weight to fee logic
      ec57c932
  7. Jan 15, 2024
    • Cédric Moreau's avatar
      smith-members (!217) · 244f2523
      Cédric Moreau authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * rebase: update metadata.scale
      
      * review: replace `expect` by `if let Some`
      
      * review: lost membership is to be handled by `OnMembershipEventHandler`
      
      * feat(smith-members): review: docstring
      
      * feat(smith-members): review: auteur
      
      * fix(smith-members): test
      
      * clean(smith-members): dead code
      
      * feat(smith-members): disable certification replay
      
      * refac(smith-members): prefix "on_" for handlers
      
      * fix(smith-members): clippy again
      
      * fix(smith-members): clippy
      
      * feat(smith-members): benchmarks
      
      * fix(smith-members): clippy for benchmarking
      
      * refac(smith-members): u32 / usize
      
      * refac(smith-members): cleaner code for smith invitation
      
      * refac(smith-members): wrong TODO
      
      * refac(smith-members): SmithInactivityMaxDuration
      
      * refac(smith-members): remove comment TODO
      
      * refac(smith-members): authority-members OnBlacklistedMember is no more used
      
      * refac(smith-members): authority-members OnRemovedMember is no more used
      
      * fix(smith-members): remove some TODO
      
      * refac(smith-members): remove Instance1 for WoT
      
      * refac(smith-members): remove IsSubWoT
      
      * test(smith-members): non-applicable tests
      
      * test(smith-members): test_revoke_idty
      
      * test(smith-members): test_smith_member_can_revoke_its_idty
      
      * test(smith-members): change_owner_key
      
      * feat(smith-members): replace smith-wot by smith-members
      
      * feat(smith-members): only online smiths can invite/certify other smiths
      
      * feat(smith-members): only WoT members can be invited
      
      * feat(smith-members): check IsWoTMember
      
      * feat(smith-members): refac error names + fix cert on excluded
      
      * feat(smith-members): events
      
      * feat(smith-members): clippy
      
      * feat(smith-members): refact: constants
      
      * feat(smith-members): max stock of certifications per smith
      
      * feat(smith-members): smith account can be excluded, not deleted
      
      * feat(smith-members): refact: renaming
      
      * feat(smith-members): refact: provide_is_member
      
      * feat(smith-members): refact: check_* and do_* functions
      
      * feat(smith-members): remove CertsByReceiver (all in Smiths)
      
      * feat(smith-members): weird things
      
      * feat(smith-members): blacklisting stub
      
      * feat(smith-members): smith expires_on
      
      * feat(smith-members): remove Counted
      
      * feat(smith-members): accept_invitation
      
      * feat(smith-members): invite_smith + certify
      244f2523
  8. Jan 10, 2024
  9. Jan 09, 2024
  10. Jan 08, 2024
    • Pascal Engélibert's avatar
      embed distance oracle in duniter with subcommand (!225) · b524c5c4
      Pascal Engélibert authored
      * feat: embed distance oracle in duniter with subcommand
      b524c5c4
    • Benjamin Gallois's avatar
      Automatic weights documentation (!222) · 23c25376
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix no weight
      
      * add const documentation
      
      * refactor error handling
      
      * refactor doc generation
      
      * refactor using if let chaining
      
      * add generic constructor
      
      * add automatic max block weight from metadata
      
      * remove all unwrap
      
      * update docs
      
      * add extrinsic base weight overhead
      
      * update metadata
      
      * fix readability
      
      * add weights to doc
      
      * fix  weight analyzer
      
      * add max_block_weight
      
      * add to workspace
      
      * rework as a lib
      
      * update all weights
      
      * fix overhead benchmark
      
      * add relative weight
      
      * fix weight evaluation with complexity parameters
      
      * add weights computation from weight files
      23c25376
  11. Jan 05, 2024
  12. Dec 23, 2023
  13. Dec 20, 2023
  14. Dec 18, 2023
  15. Dec 15, 2023
    • Hugo Trentesaux's avatar
      refac membership (!215) · 6b598084
      Hugo Trentesaux authored
      * delete notes.txt file
      
      * update notes with links to issues
      
      * update comment according to #159
      
      * doc idtystatus in readme
      
      * update weightinfo and benchmarks accordingly
      
      * add benchmark
      
      * remove remove_identity_consumers
      
      * remove force_remove_identity call
      
      * fix todo in test
      
      * update doc
      
      - remove request_membership
      - remove validate_identity
      
      * fix tests according to new MembershipRemovalReason
      
      * add membership removal reasons
      
      and clean up membership internal functions
      
      * remove check_remove_identity
      
      * build live tests
      
      (but no current network to check them against)
      
      * clippy :man_facepalming:
      
      * add wot tests related to issue #136
      
      * refac certification creation checks
      
      * refac identity creation checks
      
      * test benchmark ok
      
      * more precise error messages
      
      * check benchmarks ok
      
      * cargo cucumber ok
      
      * cargo test workspace ok
      
      * cargo test workspace quasi ok
      
      * cargo check all tests
      
      * cargo check all
      
      * remove IdtyEvent change owner key
      
      * remove removal other reason
      
      * refac revocation and removal reason
      
      * wip
      
      * refac
      
      * refac scheduling (tests ok)
      
      * add *Period
      
      * cargo test identity ok
      
      * remove IdtyEvent::Validated
      
      * cargo test wot ok
      
      * cargo test wot ok
      
      (one fails but fot the good reason)
      
      * cargo test membership ok
      
      * cargo check wot tests
      
      * cargo check identity tests
      
      * cargo check membership tests
      
      * also remove validate trait
      
      * remove validate_identity
      
      * refac identity status to allow more fine-grain control
      
      * remove unused trait
      
      * cargo check ok
      
      * remove indentity confirmation constraints
      
      * remove request from membership primitives
      
      * remove request_membership from lib.rs
      6b598084
  16. Dec 09, 2023
  17. Dec 08, 2023
    • Benjamin Gallois's avatar
      Harmonize and document events errors and calls (!200) · 6cf445b5
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix clippy errors
      
      * add Invalid case in distance status
      
      * fix events pallet-membership
      
      * fix events pallet-certification
      
      * update docs
      
      * update metadata and docs
      
      * refactor errors pallet-distance
      
      * fix distance error naming pallet duniter-wot
      
      * add pallet membership documentation
      
      * refactor acquisition and renewal pallet-membership
      
      * refactor expiration and revokation pallet-membership
      
      * refactor calls pallet-identity
      
      * add pallet standard guidelines
      
      * refactor events struct pallet-membership
      
      * add events pallet-distance
      
      * refactor documentation pallet-quota
      
      * fix pallet-quota features
      
      * refactor documentation pallet-provide-randomness
      
      * refactor documentation pallet-oneshot-account
      
      * refactor documentation pallet-offences
      
      * refactor documentation pallet-membership
      
      * refactor documentation pallet-identity
      
      * refactor documentation pallet-duniter-wot
      
      * refactor documentation pallet-duniter-account
      
      * refactor documentation pallet-distance
      
      * refactor documentation pallet-certification
      
      * refactor documentation pallet-authority-members
      
      * refactor error naming pallet-provide-randomness
      
      * remove unused errors pallet-membership
      
      * remove unused errors pallet-identity
      
      * refactor events and errors pallet-distance
      
      * refactor events and errors pallet-authority-members
      6cf445b5
    • Hugo Trentesaux's avatar
      Merge branch 'hugo-revert' into 'master' · 2e1d4abf
      Hugo Trentesaux authored
      revert benchmark removal in CI
      
      See merge request !211
      2e1d4abf
    • Hugo Trentesaux's avatar
      revert benchmark removal in CI (!211) · 8cd073e7
      Hugo Trentesaux authored
      * revert benchmark removal
      8cd073e7
  18. Dec 06, 2023
  19. Dec 01, 2023
  20. Nov 30, 2023
    • Benjamin Gallois's avatar
      Eliminate all Instances of `Weight::zero()` (!197) · cca16dbb
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * refactor functions naming for pallet-membership
      
      * refactor functions naming for pallet-certification
      
      * fix tests with runtime-benchmark feature
      
      * fix compilation with runtime-benchmarks feature
      
      * update documentation
      
      * remove handlers weights for pallet_membership
      
      * remove handlers weights for pallet_identity
      
      * remove handlers weights for pallet_certification
      
      * add best practices for benchmarking
      
      * add hooks benchmark pallet_universal_dividend
      
      * add missing benchmarks pallet_universal_dividend
      
      * update weights
      
      * fix pallet_provide_randomness on_initialize weight
      
      * fix pallet_identity weight::zero
      
      * fix pallet_membership weight::zero
      
      * fix pallet_certification weight::zero
      
      * fix pallet_authority_members weight::zero
      
      * fix pallet_identity weight::zero
      
      * fix pallet_membership weight::zero
      cca16dbb
    • Cédric Moreau's avatar
      Fix/clippy on mr (!208) · b4955fa8
      Cédric Moreau authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix: always run clippy on MR (except WIP)
      b4955fa8
    • Cédric Moreau's avatar
      fix: clippy · 1a34a8eb
      Cédric Moreau authored
      1a34a8eb
    • Cédric Moreau's avatar
  21. Nov 29, 2023
  22. Nov 28, 2023
Loading