Luke Schoen
5fe4c4591d
Documentation for assets module ( #1945 )
...
* WIP - SRML Assets Module README
* docs: Tweaks for consistency
* docs: Add missing newline
* review-fix: Remove non-SRML trait dependencies
* review-fix: Replace const with let
* review-fix: Remove use of compact in signature
* review-fix: Change const to let since cannot use result of function call
* fix: Add backticks around type and mention type it derives from
* review-fix: Update variable names since changed to lowercase since using let
* fix: Change type to bold instead of code
* review-fix: Update Asset module
* refactor: Consistent bullet points. Remove whitespace between items
* review-fix: Remove useless blah
* review-fix: Remove Storage Items
* review-fix: Remove Types
* review-fix: Remove duplicate instructions
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* Update srml/assets/src/lib.rs
Co-Authored-By: ltfschoen <ltfschoen@users.noreply.github.com >
* review-fix: Remove since will be replaced after macro expansion #2068 as per comment
* review-fix: Move Goals within overview
* fix: Fix indentation
* style and a few minor changes
* remove Events
* capitalization
* docs: Reword the Goals to remove mention of cold wallets based on discussion with Joe
* Wording
* Update lib.rs
* Update lib.rs
* Update lib.rs
2019-04-23 18:59:17 +01:00
thiolliere
571d094313
improve docs ( #2068 )
...
* improve decl_storage instance doc
* use decl_event doc accordignly
* automate doc and while allow to extend it on event
* some missed ones
* Update srml/example/src/lib.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Update srml/support/procedural/src/storage/transformation.rs
2019-03-26 14:35:57 +01:00
cheme
dd47be51c3
Switch contract storage to child trie ( #2002 )
2019-03-22 18:01:06 +01:00
Bastian Köcher
7927054f86
Update copyrights to 2019 ( #1932 )
2019-03-06 15:04:28 +01:00
Stanislav Tkach
ca69ad4c30
Migrate smrl-treasury and srml-upgrade-key to the 2018 edition ( #1725 )
2019-02-09 18:06:20 +01:00
Stanislav Tkach
1cb02c318b
Migrate srml-assets, srml-aura, srml-balances and srml-consens to the 2018 edition ( #1633 )
2019-02-05 18:26:58 +01:00
thiolliere
2492931944
compact param in calls ( #1499 )
...
* impl #[codec(compact)] for param
* update modules
* test all and build runtime
* Update srml/support/src/dispatch.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Update srml/support/src/dispatch.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* delete wip comment
* update param to use #[compact] instead of Cmpact<>
* fmt
* impl metadata
* test metadata
* add compact attr test
* script buid
* update test
2019-01-22 14:42:13 +01:00
Gav Wood
c9f047fe84
Split Indices module from Balances ( #1404 )
...
* Indices module
* Remove indices stuff from balances
* Rejob node, move Lookup into system.
* Fix up some modules.
* Fix democracy tests
* Fix staking tests
* Fix more tests
* Final test fixes
* Bump runtime versions
* Assets uses compact dispatchers
* Contracts module uses indexed addressing
* Democracy has more compact encoding
* Example now demonstrates compact eencoding
* Sudo uses indexed address
* Upgrade key also uses indexed lookups
* Assets more compact types.
* Fix test
* Rebuild runtime, whitespace
* Remove TOODs
* Remove TODOs
* Add a couple of tests back to balances.
* Update lib.rs
* Update lib.rs
2019-01-16 15:57:19 +01:00
Bastian Köcher
d15cc63370
Make deposit_event work with none generic events ( #1309 )
...
* Make `deposit_event` work with none generic events
`fn deposit_event() = default` will now be used for none generic events
`fn deposit_event<T>() = default` is now for generic events.
* Update wasm files
* Fixes some spelling mistakes
* Update wasm and fix new module
2018-12-22 17:37:05 +01:00
Luke Schoen
b2ce2f4bd9
Update SRML Assets: add total supply query, refactor with specific tests ( #1185 )
...
* Update SRML Assets: add total supply query, refactor with specific unit tests, update assertions
* Add feature and tests to allow querying total supply
* Add assertion and tests to ensure that transfer amount is greater than or equal to one unit
* Replace broad `it_works` function test with various specific unit tests
* Fix `destroy` function by moving assertion before the action
* Fix typos `Transfered` should be `Transferred`, `requried` should be `required`
* Reference: https://hackmd.io/nr6kPD2sR4urmljtvHs0CQ?view#Assets-Module
* refactor: Order imports alphabetically
* review-fix: Replace non-zero check with shorter equivalent
* review-fix: Restore order of non-zero assertion and destroy account
* Update lib.rs
2018-12-14 08:32:59 +01:00
Bastian Köcher
acf1b77bcd
Make decl_module not require a return type for functions ( #1230 )
...
If no return type is specified, `Result` is added and
`Ok(())` is returned by default.
Closes : #1182
2018-12-10 13:36:37 +01:00
Gav Wood
57b2896332
Remove unneeded Serde requirements ( #1076 )
...
* Remove superfluous serde requirements.
* Try to ensure hash is serde
* Fixups
* Building again
* Attempt to reenable Block (doesn't build)
* Fixes compilation for node cli
* Fixes test compilation
* Fix wasm
* Fix tests
* Remove unneeded changes
* Fix up comments
* Reenable some code
* Compile error when origin misused.
* Remove unnecessary includes of `serde_derive`
* Cleanups
2018-11-12 18:40:18 +01:00
Wei Tang
b21de8a0b5
Support multi trie in genesis generation ( #958 )
...
* Support multi trie in genesis generation
* Fix merge issues
2018-11-01 09:30:03 +01:00
Bastian Köcher
d3f2a00793
Multiple improvements to the decl_module! macro ( #953 )
...
* General `decl_module` improvements
* Make `deposit_event` implementable by `decl_module!`
* Make `decl_module!` implement calls directly
* Regenerate the wasm file after master rebase
2018-10-26 12:34:25 +02:00
Bastian Köcher
1ba73e0e88
Make decl_module! implement OnFinalise ( #947 )
2018-10-23 09:58:15 +02:00
Gav Wood
583c24f017
Add Assets module ( #925 )
...
* Add Assets module
* Fixes
* Fix
* Update comments
* Support `GenesisConfig` without any fields
Fixes : #923
* Do not generate an empty `GenesisConfig`, instead generate no `GenesisConfig`
2018-10-20 12:43:00 +02:00