Amar Singh
f9f1ac2515
make threshold pub instead of pub crate ( #12814 )
2022-12-05 13:14:43 +01:00
Amar Singh
8fef631a95
Make public is_passing and ReferendumStatus ( #12667 )
...
* init
* clean
* remove manual getter for ReferendumStatus in favor of changing pub crate to pub for ReferendumStatus DecidingStatus Deposit types
* rm status getters because fields are pub now
2022-11-15 10:37:12 +01:00
49397d9a79
Mock epoch index and randomness in SproofBuilder (for testing) ( #1594 )
...
* minimal babe randomness in sproof builder
* fix indexing
* fix index and clean comment
* use current para block for epoch and randomness
* epoch is para block randomness is relay block
* fix
* make more configurable but keep defaults
* fix export
* fix
* flatten
* better field names
* Update primitives/parachain-inherent/src/mock.rs
* Update primitives/parachain-inherent/src/mock.rs
* FMT
* FIX
* fmt
* Update primitives/parachain-inherent/src/mock.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-08 10:38:56 +02:00
Amar Singh
db5fdc6eff
Add epoch index to RelayStateSproofBuilder (for testing) ( #1419 )
...
* insert zero epoch index into relay sproof
* fix
2022-07-29 00:41:23 +02:00
Amar Singh and Bastian Köcher
bac71feb01
Make functionality to read relay state proof entries public ( #1135 )
...
* add read entry and read optional entry to RelayChainStateProof pub methods
* rm toolchain
* docs
* Update pallets/parachain-system/src/relay_state_snapshot.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-04-11 10:45:59 +02:00
Amar Singh
1297d77c51
Add epoch index to well known keys ( #5259 )
...
* add epoch index to well known keys
* fmt
2022-04-06 18:22:07 +02:00
Amar Singh
6608d61a61
Add babe randomness to relay state proof ( #1083 )
...
* add new babe keys to relay storage proof
* persist relay state proof and make pub super to expose to runtime
* use sp trie StorageProof instead of sp state machine Storage Proof
* fmt
2022-03-17 11:02:59 +01:00
Amar Singh and Bastian Köcher
22a7fad75f
Add babe randomness to well known keys ( #5030 )
...
* add babe randomness storage keys to well known keys
* Update primitives/src/v1/mod.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-03-10 19:00:57 +00:00
77489c3107
Improve errors for generate_solution_type macro ( #9553 )
...
* add more errors for check attributes in npos elections solution type
* revert local env
* return Ok false if there are no attributes
* fmt
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
* improve span by giving extra attribute, nightly fmt
* fix test to test new error msg
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-08-26 01:32:25 +00:00
Amar Singh and Keith Yeung
6718e10f20
Make xcm-simulator async with more tests ( #3618 )
...
* make xcm simulator async
* fmt
* nightly fmt
* Update xcm/xcm-simulator/example/src/parachain.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* accept keith review suggestion
* master.into
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-08-17 21:48:28 +00:00
Amar Singh
c4446f62ae
fix rust docs for remove storage prefix and take storage item ( #9544 )
2021-08-12 06:51:31 +02:00
Amar Singh
27d4177f93
fix private event enum error message ( #9506 )
2021-08-06 08:37:48 +00:00
Amar Singh
43edf2d9ad
done ( #9494 )
2021-08-05 10:55:18 +02:00
Amar Singh
9ced906450
remove unused events and errors in democracy ( #9502 )
2021-08-05 08:22:51 +00:00
Amar Singh
90e6d318c7
Add unit tests to pallet-xcm ( #3539 )
...
* init
* reserve transfer asset unit test
* happy path tests for all dispatchables and can teleport assets to self surprisingly enough
* better tests
* minimize mock
* clean
* test send xcm failure when router blocks
* rm numbers to prefer variables
* clean
* test execute with local effects
* rm local env stuff
* copyrights
* fix merge conflict
* appease spellcheck
* fmt
* address review comments
* clean constants
* fmt
2021-08-03 11:07:30 +00:00
Amar Singh
5b3fa6f7f6
add accountkey20 conversion impls ( #2576 )
2021-03-07 17:54:30 -04:00
Amar Singh and Bastian Köcher
92cde30078
Test is_inherent_required ( #8002 )
...
* ()
* master.into()
* Update frame/support/src/inherent.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* address comment
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-01-29 16:40:46 +01:00
Amar Singh
0d2a794d48
done ( #6673 )
2020-07-19 16:12:04 +02:00
Amar Singh
bf4e5d4d2c
add ios to cfg gates in client/service ( #6622 )
...
* done
* sysinfo should not be not android
* add back sysinfo dep to satisfy web wasm ci
2020-07-09 21:01:49 +02:00
Amar Singh
4bbfaa9c8f
docs: add srml readme, clarify comment in staking ( #3151 )
...
* add srml readme, nit on staking/lib.rs
* increase impl version, not spec version
* change back impl
2019-07-21 15:22:11 +02:00
a757dfb222
Transaction Fee Multiplier ( #2854 )
...
* added fee calculations; need some type conversions
* cleaned up make_payment and other stuff
* rename vars to compile
* add WeightToFee type
* clean test files after new type added to balances
* fmting
* fix balance configs in tests
* more fixing mocks and tests
* more comprehensive block weight limit test
* fix compilation errors
* more srml/executive tests && started fixing node/executor tests
* new fee multiplier; still overflows :(
* perbill at the end attempt; needs to be changed
* clean fmting, rename some vars
* new PoC implementation.
* test weight_to_fee range and verify functionality
* 12 of 15 tests in node executor are passing
* 1 test failing; big_block imports are failing for wrong reasons
* Update srml/executive/src/lib.rs
Co-Authored-By: Kian Peymani <Kianenigma@users.noreply.github.com >
* Some cleanup.
* consolidate tests in runtime impls
* clean and condition executive for stateful fee range test
* remove comments to self
* Major cleanup.
* More cleanup.
* Fix lock files.
* Fix build.
* Update node-template/runtime/Cargo.toml
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Per-block update.
* nit.
* Update docs.
* Fix contracts test.
* Stateful fee update.
* Update lock files.
* Update node/runtime/src/impls.rs
* Revamped again with fixed64.
* fix cargo file.
* nits.
* Some cleanup.
* Some nits.
* Fix build.
* Bump.
* Rename to WeightMultiplier
* Update node/executor/src/lib.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Add weight to election module mock.
* Fix build.
* finalize merge
* Update srml/system/src/lib.rs
* Bring back fees.
* Some nits.
* Code shifting for simplicity.
* Fix build + more tests.
* Update weights.rs
* Update core/sr-primitives/src/weights.rs
* Update lib.rs
* Fix test build
2019-07-19 14:21:05 +02:00
Amar Singh
6b3cb78a48
Documentation for Aura Consensus Extension ( #2074 )
2019-04-16 17:46:03 +02:00
Amar Singh
b1f9c31f21
Documentation for consensus module ( #2043 )
...
* first try
* resolve description of grandpa and add links to relevant docs
* Update srml/consensus/src/lib.rs
Co-Authored-By: AmarRSingh <asinghchrony@protonmail.com >
* Can do a relative link here
* Update srml/consensus/src/lib.rs
Co-Authored-By: AmarRSingh <asinghchrony@protonmail.com >
* Update srml/consensus/src/lib.rs
Co-Authored-By: AmarRSingh <asinghchrony@protonmail.com >
* Update srml/consensus/src/lib.rs
Co-Authored-By: AmarRSingh <asinghchrony@protonmail.com >
* formatting/style/semantics
* missed conflict
* style
* Update srml/consensus/src/lib.rs
* Update srml/consensus/src/lib.rs
2019-03-29 17:41:36 +01:00