Xiliang Chen
168e9df7e2
make impl_outer_origin default to use frame_system ( #6695 )
2020-07-21 15:47:08 +00:00
Xiliang Chen
8f4329823a
allow to specify schedule time as a relative value ( #6578 )
...
* allow to specify schedule time as a relative value
* bump version
* line width
* fix benchmarks
* rename and updates
2020-07-15 05:19:21 +00:00
Xiliang Chen and Gavin Wood
e1d0f84c67
Allow specify schedule dispatch origin ( #6387 )
...
* allow specify schedule dispatch origin
* fix tests
* use caller origin for scheduled
* fix tests
* line width
* check origin for cancel
* line width
* fix some issues for benchmarking
* fix doc test
* another way to constraint origin
* fix build issues
* fix cancel
* line width
* fix benchmarks
* bump version
* enable runtime upgrade
* add migration code and test
* Update frame/scheduler/src/lib.rs
Co-authored-by: Gavin Wood <github@gavwood.com >
* expose migration method
* add notes
* bump version
* remove on_runtime_upgrade
* fix test
Co-authored-by: Gavin Wood <github@gavwood.com >
2020-07-02 15:05:15 +02:00
Xiliang Chen
dd3333f8b4
Implement Contains for pallet-membership ( #6518 )
...
* implement Contains for pallet-membership
* bump version
2020-06-26 15:37:45 +02:00
Xiliang Chen
7d30ae7ba8
add system_dryRun ( #6300 )
...
* add system_dryRun
* fix build error
* delete unneeded code
* return ApplyExtrinsicResult directly
* line width
* mark dry run unsafe
* line width
* fix test
* add test
* update comment
2020-06-16 22:51:03 +02:00
Xiliang Chen
6547d7a09a
Allow ExistentialDeposit = 0 ( #6185 )
...
* Allow ExistentialDeposit = 0
* there are better ways to check is an account exists
* fix StorageMapShim
* test account events and fix some bugs
2020-06-02 17:22:21 +02:00
Xiliang Chen
c46b2020f2
fix lstrip in biguint ( #6151 )
...
* add failing test for multiply_by_rational
* fix BigUint
* fix length
* bump version
* merge tests
2020-05-27 10:18:53 +02:00
Xiliang Chen
efae379676
make calls public ( #6109 )
2020-05-22 09:04:20 +02:00
Xiliang Chen
339b09002b
add missing features for runtime-benchmarks ( #5833 )
2020-04-30 11:55:18 +02:00
Xiliang Chen
fbc4e7f055
fix Fixed64 ( #5784 )
...
* fix fixed64
* improve
* bump version
2020-04-26 19:39:16 +02:00
Xiliang Chen
74bc141f4f
expose constants for identity pallet ( #5783 )
...
* expose constants
* bump version
2020-04-25 15:17:53 +02:00
Xiliang Chen
7dcff4c1e2
emit TipClosed event on success tip payout ( #5656 )
...
* emit TipClosed event on success tip payout
* test for events
* bump version
2020-04-17 10:37:00 +02:00
Xiliang Chen and Shawn Tabrizi
d1261d3482
Introduce Fixed128 from ORML to sp_arithmetic ( #5614 )
...
* add fixed128
* fix build
* re-export
* fix test
* saturating_pow
* Update primitives/arithmetic/src/fixed128.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-04-14 10:07:59 +02:00
Xiliang Chen
35b5cdd29b
serialize partial_fee into string ( #4898 )
...
* serialize partial_fee into string
* implement deserialize
* bump version
2020-02-12 13:16:00 +01:00
Xiliang Chen
febb6e29b2
add state_getKeysPaged ( #4718 )
...
* add storage_getNextKey
* RPC storage_getKeysPages
* respect count
* use iterator
* improve
* add tests
* improve
* add doc comments
* Make prefix optional
* update error
* improve
2020-02-04 10:44:40 +01:00
Xiliang Chen
b72ba98b97
make compute_fee public ( #4669 )
2020-01-18 09:22:43 +01:00
Xiliang Chen
20ce6c120c
remove unused safe-mix dependency ( #4656 )
2020-01-17 09:16:20 +01:00
Xiliang Chen
507909c3be
Improve PaysFee trait and dispatch info logic in utility module ( #4606 )
...
* pass target to PaysFee trait and allow batch call to be free if all its calls are free
* bump version
* fix error
2020-01-13 08:48:34 +01:00
Xiliang Chen
901dff5d14
use generated ModuleToIndex type ( #4495 )
2019-12-24 16:16:19 +01:00
Xiliang Chen and Kian Paimani
04571d958b
PaysFee for DispatchInfo ( #4165 )
...
* Add PaysFee trait
* bump version
* Apply suggestions from code review
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* line width
* Apply suggestions from code review
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix test
* fix test
* fix test
2019-11-25 14:42:51 +08:00
Xiliang Chen
3d4bee6cd6
add div and checked_div to Fixed64 ( #4136 )
...
* add div and checked_div to Fixed64
* add more tests
* div by zero is div by zero
2019-11-19 22:33:29 +01:00
Xiliang Chen
f7ee9ab235
Fix node-template ( #3924 )
...
* fix node-template
Use MultiSignature to maintain compatibility with substrate-node
Reset version to 1
Remove unused const
* fix chain_spec
* line width
2019-10-27 12:54:41 +01:00
Xiliang Chen
bf1786b628
remove unused file ( #3851 )
2019-10-18 12:58:04 +02:00
34c7338211
Decouple randomness-collective-flip ( #3792 )
...
* Abstract Randomness trait
* bump version
* fix doc test
* simpify code a bit
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix tests
2019-10-10 12:41:42 +02:00
Xiliang Chen and Bastian Köcher
2c77262c8f
expose module errors into metadata ( #3752 )
...
* expose module errors into metadata
* it checks
* Tests for error metadata
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* remove inherent errors from metadata
* bump version
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/support/src/error.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-10-08 11:30:16 +02:00
Xiliang Chen
67a4bc4bdd
Minor fixes ( #3751 )
...
* fix warning
* use compact for balance type
* bump version
2019-10-03 03:16:07 +02:00
Xiliang Chen
d4650c4739
refactor contracts to use Time trait ( #3717 )
...
* refactor contracts to use Time trait
* bump version
2019-09-28 19:07:21 +02:00
Xiliang Chen
294d172187
fix inconsistency in block time ( #3603 )
2019-09-12 10:21:21 +02:00
Xiliang Chen
9dc9e51063
Fix node template build issue ( #3570 )
...
* fix unused var warning
* fix node-tempalte build issue
2019-09-07 12:53:11 +02:00
Xiliang Chen
da03850eed
add Copy to Moment type ( #3476 )
...
* add Copy to Moment type
* bump version
* add Copy to support::Traits::Time::Moment and removed few clones
2019-08-25 12:57:31 +02:00
Xiliang Chen
0f0df9850a
add post_dispatch ( #3229 )
...
* add post_dispatch
* Update traits.rs
* Update checked_extrinsic.rs
* Update traits.rs
* Update traits.rs
* fix build issue
* update runtime version
* fix test build issue
2019-08-08 09:56:04 +02:00
b3dd034cce
GenericAsset module ( #2790 )
...
* added generic asset module
* Update srml/generic-asset/Cargo.toml
* Update srml/generic-asset/Cargo.toml
* revert Cargo.lock changes
* cleanup line width
* rename srml_support to support
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* update comments
* more docs
* update Cargo.lock
* fix tests
* update headers and fix missing events
* Update srml/generic-asset/Cargo.toml
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* fix issues
* avoid duplicated code
* fix build issue
* cleanup Cargo.toml
* update based on reviews
* remove not used method
* update parity-codec version
* fix test build issue
* update Cargo.lock
* update with latest substrate changes
* refactor PermissionVersions encoding
2019-07-11 16:36:48 +02:00
Xiliang Chen
55937d1f08
Update libp2p addresses in readme ( #2616 )
2019-05-17 12:04:05 +01:00
Xiliang Chen
57164aa747
Remove As trait bound from Currency::Balance ( #2205 )
...
* remove As<64> bond
* Currency trait refactor
* bump spec version
2019-05-09 09:40:28 +02:00
Xiliang Chen
ef142722e3
Pass RunCmd to user ( #2425 )
2019-05-01 20:08:17 +02:00
Xiliang Chen
c4cbfb355c
Move scripts to scripts folder and update readme ( #2331 )
...
* Move scripts to scripts folder and update readme
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update node-template/README.md
Co-Authored-By: xlc <xlchen1291@gmail.com >
* remove release flag
2019-04-23 08:50:31 +02:00
Xiliang Chen
72a1c6298e
handle not found error in purge-chain ( #2274 )
2019-04-14 14:57:56 +02:00
Xiliang Chen
19d77cbc23
update authers for rest of the node-template cargo.toml files ( #2242 )
2019-04-10 10:26:29 +02:00
Xiliang Chen
cb766e5f5d
update name and authors to placeholder text for node-template ( #2222 )
...
* update name and authors to placeholder text
* revert package name change
2019-04-09 07:22:20 +02:00
Xiliang Chen
cb7a8161f5
code cleanup ( #2206 )
2019-04-04 16:55:55 +02:00
Xiliang Chen
ea868b6e30
allow trailling comma in decl_event ( #2117 )
...
* allow trailling comma in decl_event
* Update srml/support/src/event.rs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update srml/support/src/event.rs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update srml/support/src/event.rs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update srml/support/src/event.rs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update srml/support/src/event.rs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* bump version and update wasm
2019-03-29 08:19:35 +01:00
Xiliang Chen
36d90ff272
expose linked map info to metadata ( #2037 )
...
* expose linked map info to metadata
* Make it non breaking change
* another way
* change to option 1
* bump metadata version
* fix test
* bump version and update wasm
2019-03-23 11:17:29 +01:00
Xiliang Chen
fafffdb771
Transaction Fee Module ( #1648 )
...
* wip
* Split bytes fee charging and charging by amount into different traits.
* Move to edition 2018.
* Implemented charge fee traits for fees module.
* Implemented 'on_finalise' for fee module.
* Updated fees finalize impl.
* Renaming and documentation update.
* Added overflow & underflow check for fee calculation.
* Added mock and unit tests for fee module.
* More unit tests for fees module.
* Fixed srml-executive unit tests.
* Remove transaction base/bytes fee from balances module, fix unit tests.
* fix compile error
* Fixed unit test.
* Minor fixes.
* Bump spec version.
* Bump spec version.
* Updated fees module and runtime wasm.
* Fees module code style improvement; updated runtime wasm.
* Bump spec and impl version.
2019-02-15 11:21:38 +01:00
Xiliang Chen
623775ad96
enable dns transport ( #1433 )
2019-01-15 11:23:32 +01:00
Xiliang Chen
0e569e6bf2
new state api state_getKeys to expose storage keys ( #1380 )
2019-01-11 12:51:19 +01:00
Xiliang Chen
bf51b8a5ad
Move double map to support module and generalize it ( #1379 )
...
* Move double map to support and generalize it
* add docs back
* reduces the number of required allocations
2019-01-11 11:44:15 +01:00
Xiliang Chen
eb3503b0c7
expose peer information via rpc ( #1362 )
...
* expose peer information via rpc
* fixes tests
* cleanup
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Update docs
Co-Authored-By: xlc <xlchen1291@gmail.com >
* Add missing docs
* keep original type for PeerInfo best_hash/best_number
* cleanup
* Update mod.rs
2019-01-09 12:18:24 +01:00