Shawn Tabrizi
1df4561676
Weight v1.5 Follow Ups ( #12155 )
...
* update api
* update
* remove unused
* remove `one` api
* fix unused
* fmt
* add saturating accrue
* remove `Weight::new()`
* use some macros
* div makes no sense
* Update weight_v2.rs
* missed some
* more patch
* fixes
* more fixes
* more fix
* more fix
* Update frame/support/src/weights/weight_v2.rs
* not needed
* fix weight file
2022-09-01 17:48:03 +00:00
Muharem Ismailov
d8e951758c
Alliance pallet: add force_set_members instead of init_members function ( #11997 )
...
* Alliance pallet: add force_set_members instead of init_members function
* benchmark with witness data
* remove invalid limit for clear
* Apply suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Revert "remove invalid limit for clear"
This reverts commit dba54e3071b63bfea908087aef213f4640e3ccbf.
* compile constructor only for test
* Update comments for force_set_members
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
* benchmark - founders count range
* Revert "benchmark - founders count range"
This reverts commit aad16796f8dfed48079fb7f587b8f5b59382cda6.
* witness members count instead votable members count
* update the doc
* use decode_len for witness data checks
* change witness data member count to voting member count; update clear limits
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
* merge master
* fixes after merge master
* revert to cb3e63
* disband alliance and return deposits
* revert debug changes
* weights
* update docs
* update test comments
* Apply Joe suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* rename event from AllianceDisband to AllianceDisbanded
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: command-bot <>
2022-09-01 10:31:32 +00:00
Shawn Tabrizi
30951822ba
Weight v1.5: Opaque Struct ( #12138 )
...
* initial idea
* update frame_support
* update a bunch more
* add ord
* adjust RuntimeDbWeight
* frame_system builds
* re-export
* frame_support tests pass
* frame_executive compile
* frame_executive builds
* frame_system tests passing
* pallet-utility tests pass
* fix a bunch of pallets
* more
* phragmen
* state-trie-migration
* scheduler and referenda
* pallet-election-provider-multi-phase
* aura
* staking
* more
* babe
* balances
* bunch more
* sudo
* transaction-payment
* asset-tx-payment
* last pallets
* fix alliance merge
* fix node template runtime
* fix pallet-contracts cc @athei
* fix node runtime
* fix compile on runtime-benchmarks feature
* comment
* fix frame-support-test
* fix more tests
* weight regex
* frame system works
* fix a bunch
* more
* more
* more
* more
* more
* more fixes
* update templates
* fix contracts benchmarks
* Update lib.rs
* Update lib.rs
* fix ui
* make scalar saturating mul const
* more const functions
* scalar div
* refactor using constant functions
* move impl
* fix overhead template
* use compactas
* Update lib.rs
2022-08-31 11:26:13 +00:00
Muharem Ismailov
b74fba5dac
Alliance pallet: retirement notice call ( #11970 )
...
* Alliance pallet: retirement notice
* add alliance pallet to benchmark list for dev chain
* fix type
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
* link weight generated by bench for retirement_notice method
* migration to clear UpForKicking storage prefix
* rename migration from v1 to v0_to_v1
* Apply suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* rename `retirement-notice to give-retirement-notice
* Apply suggestions from code review
Co-authored-by: Squirrel <gilescope@gmail.com >
* review fixes: update doc, saturating add, BlockNumber type alias
* add suffix to duratin consts *_IN_BLOCKS
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
* add negative tests (#11995 )
* add negative tests
* remove tests powerless asserts checking against announcment origin
* assert bad origin from announcement origin checks
Co-authored-by: muharem <ismailov.m.h@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
2022-08-29 16:02:23 +00:00
Doordashcon
d46f6f0d34
Replace T::AccountId with <T::Lookup as StaticLookup>::Source ( #11670 )
...
* initial
* update
* update
* update
* cargo fmt
* update
* update benchmarks
* AccountIdLookupOf<T>
* cargo fmt
* fix conflits
* cargo fmt
* update
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-08-18 09:30:46 +00:00
Squirrel
a68a80fbae
declone and close the door ( #12035 )
...
* declone and close the door
* cargo fmt
* remove brackets
2022-08-15 19:38:36 +00:00
joe petrowski
3bb68baa87
Require Alliance Initialisation Before Joining ( #11917 )
...
* require alliance initialisation before joining
* use noop
* make one definition of initialization
* rename event
* add todo comment
* update doc
2022-07-29 10:56:08 +00:00
Xiliang Chen
5788461196
pallet alliance ( #11112 )
...
* Add pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update multihash/cid and format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless deps
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add pallet-alliance into node runtime
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix has_identity
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooMantBlacklist Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooLongWebsiteUrlLength Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add remove_announcement
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Derive pallet_identity::Config and Fix test/benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add part weight for call of pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove pallet_identity Config trait
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix propose arguments
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo fmt
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking of add_blacklist/remove_blacklist
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for init_members
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for propose/vote/veto
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove some useless
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some compile issue
* more fix
* all checks
* refactor
* refactor event
* refactor
* cleanup
* cleanup
* fix benchmarking
* fix warning
* fmt
* fix benchmarks
* with storage info
* fmt
* add new config
* fix benchmarks
* fix
* fmt
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improvements
* fix
* update docs
* rename events, errors, and functions
* make kicking events clearer
* fix
* fix tests
* fix tests
* fix runtime
* fix build
* remove unneeded change
* remove Candidate role from Alliance
* fmt grumbles
* update lock
* update recursion limit
* benchmarks
* convert-try
* benchmark assertions
* fmt ,
* cargo lock
* Update frame/alliance/src/benchmarking.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* add docs to public interfaces
* Apply suggestions from code review
Co-authored-by: Squirrel <gilescope@gmail.com >
* fix build (node)
* review
* use EitherOfDiverse
* update cargo toml
* make all dispatch class Normal
* change blacklist to unscrupulous
* formatting
* fmt oops
* rename benchmarking unscrupulous account creator
Co-authored-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
2022-06-10 18:39:26 +00:00