- May 23, 2019
-
-
Sergei Pepyakin authored
* Initial implementation. * Rename random_seed to random * Update rustdocs * Update COMPLEXITY.md * Fix comment. * Limit the size of subject. * Bump the runtime version. * Fix doc * Update node/runtime/src/lib.rs Co-Authored-By: thiolliere <[email protected]>
-
- May 22, 2019
-
-
Gavin Wood authored
* Start to remove the `As` bound on `SimpleArtithmetic` This just introduces standard numeric bounds, assuming a minimum of `u32`. Also included is a saturating from/into trait allowing ergonomic infallible conversion when you don't care if it saturates. * Remove As from Balances trait * Remove As from Aura module * Remove As from Babe module * Expunge `As` from contract * Council module * Democracy * Finality tracker * Grandpa * First bit of indices * indices * Line lengths * session * system * Staking * Square up all other uses of As. * RHD update * Fix build/test * Remove As trait * line widths * Remove final As ref * Update srml/staking/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update core/client/src/cht.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update core/client/db/src/light.rs Co-Authored-By: Bastian Köcher <[email protected]> * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * whitespace * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> Co-Authored-By: André Silva <[email protected]> * Bring back u32 check for number on CLI
-
- May 15, 2019
-
-
thiolliere authored
-
- May 14, 2019
-
-
Sergei Pepyakin authored
* Introduce an IndexedEvent * Plumb topics through the Ext interface. * Add topics to ext_deposit_event * Charging for events. * Check the number of topics. * Check for duplicate topics. * Bump API version. * Move derive(*Eq) under test. * Use sorting for finding duplicates.
-
- May 13, 2019
-
-
Sergei Pepyakin authored
* Sketch of indexed events. * Get EventIndex by holding another variable. * Add some docs. * Use DoubleMap to store reverse topic index * Implement StorageDoubleMap::append * Use append for EventTopics. * Refactor. * Avoid `mutate` * Docs. * Add topics to EventRecord * Update tests. * Rebuild. * Bump version. * Event topics test. * Mix in BlockNumber to distinguish updates * Fix srml-system test. * Post merge fixes. * Comments/TODO.
-
- May 10, 2019
-
-
André Silva authored
* bump crates to v2.0.0 * fix crate authors * bump node runtime spec_version * remove unused import for no-std
-
thiolliere authored
* first impl * rename origin::inherent to none * fix * fix * Apply suggestions from code review Co-Authored-By: thiolliere <[email protected]> * comment * better error * doc * (add unsigned module
🤦 ) * doc * fix * implement for node-template as well * add validated unsigned to executor * fix * fix * bump version * testing xt * remove extraneous logic * licence * impl test
-
- May 07, 2019
-
-
thiolliere authored
* actually update deduct_block when paying rent * add test * remove println * same block call test * bump version
-
- May 04, 2019
-
-
Andrew Jones authored
* Default rent allowance to max_value * Bump spec version * Fix exec test * Address grumbles * Make test comment less specific * Default rent_allowance to max_value in exec * Check default balance on creation * Check default balance in deploy * Use hex constant Co-Authored-By: ascjones <[email protected]> * More specific code const Co-Authored-By: ascjones <[email protected]> * Update srml/contract/src/tests.rs Co-Authored-By: ascjones <[email protected]> * Update srml/contract/src/tests.rs Co-Authored-By: ascjones <[email protected]> * Update srml/contract/src/tests.rs Co-Authored-By: ascjones <[email protected]>
-
- May 02, 2019
-
-
Sergey Pepyakin authored
-
- Apr 30, 2019
-
-
* Add `pub` to functions in Contract module This is to support a wrapper module which will add an access control layer to the SRML Contract module. * Remove `pub` from `on_finalize`
-
* first partial implementation * update rent allowance * fmt Co-Authored-By: thiolliere <[email protected]> * remove comments * reward surcharge claims * remove rent allowance in param + code_hash changed * Fix bug * fix tests * fmt * impl getter setter rent allowance * fmt Co-Authored-By: thiolliere <[email protected]> * comments * doc + be->le * doc * doc * fix improve fast return * renamings * rename + COMPLEXITY * COMPLEXITY * add test * etrinsic claim surcharge delay configurable * comment addressed * move and rewrite of pay_rent * remove child trie * fmt * use derive * arithmetic operation * fix * fix storage root + checked_mul + test * WIP: test * WIP * add tests and fix * fmt * typo and doc suggestions Co-Authored-By: thiolliere <[email protected]> * WIP * address some comments divide tests + some docs * use br_table * remove unused function * Bump the runtime version * insert_with * Add some comments. * Refactor * Shuffle and fix comments * More comment fixes. * dues limited * Add comment * Handicap * Docs. * Apply suggestions from code review Co-Authored-By: pepyakin <[email protected]> * Coalesce block_passed in a block * Fix build * Paid → Ok * match → if * Imrpove handicap description
-
- Apr 29, 2019
-
-
thiolliere authored
* store contract keys with blake2_256 * bump version
-
- Apr 26, 2019
-
-
Michael Müller authored
* Fix typos * Align properly * Update core/consensus/slots/src/lib.rs Co-Authored-By: cmichi <[email protected]> * Update core/network/src/test/mod.rs Co-Authored-By: cmichi <[email protected]> * Update core/finality-grandpa/src/communication/mod.rs Co-Authored-By: cmichi <[email protected]> * Update core/consensus/common/src/import_queue.rs Co-Authored-By: cmichi <[email protected]>
-
- Apr 25, 2019
-
-
Stanislav Tkach authored
-
- Apr 23, 2019
-
-
Sergei Pepyakin authored
* core/primitives * sr-primitives * sr-primitives * srml-treasury * substrate-executor * substrate-keystore * network-libp2p * substrate-service * srml-system * substrate-rpc * sr-version * substrate-telemetry * substrate-test-runtime * substrate-transaction-pool * node-template-runtime * node-primitives * srml-consensus * srml-contract * srml-democracy * srml-finality-tracker * srml-grandpa * srml-metadata * srml-support * Clean * Update locks
-
Sergei Pepyakin authored
* Intro `ChildStorageKey` for checked child keys * Get rid of Into in Externalities trait * Use Cow in ChildStorageKey * Fix tests for state-machine. * Clean * child_storage_root always return a value * Don't return Option from Ext::child_storage_root * Return 42 in child_storage_root * Return CHILD_STORAGE_KEY_PREFIX from trie id gen * Bump spec and impl version. * Require `:default:` in `is_child_trie_key_valid` * Add `default:` prefix. * Introduce `into_owned` for `ChildStorageKey`. * Add documentation. * Fix state-machine tests * Remove outdated TODO I check out with Emeric and he is ok with that * child_storage_root is infailable * Nit * Move assert after check. * Apply suggestions from @DemiMarie-parity Co-Authored-By: pepyakin <[email protected]> * Formatting nit in core/executor/src/wasm_executor.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Formatting nits from @thiolliere
-
- Apr 19, 2019
-
-
Sergei Pepyakin authored
* Validate module before storing it in code_cache. * Bump version.
-
- Apr 17, 2019
-
-
* opening and closing links * sudo example compiles * add Aura after it was merged to master * remove extern crate line
-
- Apr 16, 2019
-
-
thiolliere authored
* Fix contract child usage * bump implementation version
-
thiolliere authored
* resolve child trie usage * update locks * increase version * fix test * Revert "update locks" This reverts commit 6f537458b39df4a3bf05a311253986f29289f391.
-
joe petrowski authored
* timestamp * balances * balances-remove-short-example * system * sudo (+missing period in balances) * contract * staking * fix unclear definition in balances * update after review * update genesis-config-sudo link Co-Authored-By: joepetrowski <[email protected]> * genesis
-
- Apr 11, 2019
-
-
Andrew Jones authored
* Implement `ext_println` in contract runtime * Only allow contracts to import `ext_println` on dev chains * Configure dev chain to allow contracts with `ext_println` * Increment spec version * Docs * Rename config to the more specific enable_println
-
- Apr 06, 2019
-
-
Andrew Jones authored
* Reject validation of contract with unknown exports * Validate imports eagerly * Increment spec version
-
- Apr 03, 2019
-
-
Andrew Jones authored
-
Andrew Jones authored
* Replace Vec<u8> with [u8; 32] for contract storage key * Read storage keys from sandbox memory into fixed size buffer * Increment `impl_version`
-
thiolliere authored
* implement contract events * update runtime * renaming * update test code hash * improve complexity details * add deposit event base cost * add test * Revert "add deposit event base cost" This reverts commit 58ec010c0f4f4f0e16935ad41da32aedd17a8c57. * update test * Revert "update test" This reverts commit 6fe61a593ccf0d41f09a0b97472b28ed8751a999. * Revert "Revert "add deposit event base cost"" This reverts commit 145e8a9bac15313a4c380aa66b94fd4d36fa3f6d. * Fix format a bit
-
- Apr 02, 2019
-
-
thiolliere authored
* use parity-codec-derive from parity-codec everywhere * codec v3.2 -> v3.3 * skip phantom when deriving event * fix decl_module call * update impl version of node + builds
-
- Apr 01, 2019
-
-
thiolliere authored
* refactor * fix accountinfo creation + impl mem_stored * add comment * improve syntax Co-Authored-By: thiolliere <[email protected]> * rename current_mem_stored -> storage_size * more explaination + more readable code * bump impl version of node + builds * delete builds
-
Gav Wood authored
* Bump versionb globally * Rebuild and fix * Rename fixes * Rebuild * Minor fix and code formatting for validator election * Fix tests * More test fixes * Fix several bugs in phragmen elections. * Rebuild, remove pointless closures
-
- Mar 29, 2019
-
-
joe petrowski authored
* all the ise * forgot a misspelling * a few more replacements * bump impl * rollback and fixes * bump impl again * Add aliases for RPC * Update on_demand.rs
-
Nicole Zhu authored
* Add: documentation for srml_contract, per @sergeis comments. TODO: make concise and add usage example * Fix: minor spelling and grammar * Add: Revisions to the doc clarification from @Sergei on trx revert behavior * Edit: added spacing btw function list for better readability * Remove: usage create contract example todo later * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Edit: explained max gas limit revert behavior in greater detail * Edit: incorporated first round of PRs, mostly syntax/styling * Edit: incorporated Sergeis mental model, terms, and added usage examples * Fix: staking module is no longer closely related to contract. Balances now manages the reaping of accounts * Minor cleanup of links/text that are not ready to be shown * Update srml/contract/src/lib.rs made more concise Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Minor edits from PR * Explained contract creation in more detail, fixed PR suggestions * Linted according to contri guidelines * Created a notable scenarios section, unlisted public functions in lieu of a direct link to the module * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/tests.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: nczhu <[email protected]> * minor commit after pr feedback * s/codehash/code_hash for consistency
-
- Mar 28, 2019
-
-
thiolliere authored
* decouple contract from balance * update impls and builds * set fees in contract module * builds
-
- Mar 26, 2019
-
-
joe petrowski authored
* comment updates * added rustdoc and readme * clarified LockableCurrency trait * Currency trait rustdocs * fixed typo * fixed suggestions round 1 * UpdateBalanceOutcome docs (open for discussion) * rm description of enum, consolidation, rm ReclaimRebate * type clarification, examples overhaul, adoc formatting * adoc to md * format change for rustdoc * update links and fix typos * typos and links * updates according to comments * new example * small clarifications * trait implementation section * missing ``` * small changes, ready for review * line width update * small tweaks * Update srml/balances/src/lib.rs Co-Authored-By: joepetrowski <[email protected]> * Update srml/balances/src/lib.rs Co-Authored-By: joepetrowski <[email protected]> * Update srml/balances/src/lib.rs Co-Authored-By: joepetrowski <[email protected]> * Update srml/balances/src/lib.rs Co-Authored-By: joepetrowski <[email protected]> * Update lib.rs * address review by thiolliere * remove common warning * Update docs * updated srml example
-
- Mar 23, 2019
-
-
Gav Wood authored
-
- Mar 22, 2019
-
-
cheme authored
-
- Mar 20, 2019
-
-
* Be a little safer with total issuance. * PairT instead of _Pair * Remove rev causing upset * Remove fees stuff. * Fix build (including tests) * Update runtime, bump version * Fix * Handle gas refunds properly. * Rename identifier ala #2025 * Address grumbles * New not-quite-linear-typing API * Slimmer API * More linear-type test fixes * Fix tests * Tidy * Fix some grumbles * Keep unchecked functions private * Remove another less-than-safe currency function and ensure that contracts module can never create cash. * Address a few grumbles and fix tests
-
- Mar 15, 2019
-
-
thiolliere authored
* first implementation * remove done comment * origin done * impl log for instance * impl inherent for instance * Fix wasm build + full example build this requires parity codec implements codec for core::marker::PhantomData * patch parity-codec link to github branch * improve internal names and fix instance prefix * Fix in macros * add test modules for support this allow to test for construct_runtime as well. The reason to have put that in another crate is: * if we put test in `tests/` dir of srml/support then decl_storage fails to get srml-support access because it believes it is inside srml-support crate and so derive access to `quote!{ crate }` but this is wrong (and I don't see any way to prevent that, and it only bother us so I don't think that matters that much) * if we put test inside lib.rs then contruct_runtime cannot be used because it call some macros that are defined with macros (decl_outer_event and decl_outer_origin) and thus rustc complains. * defaultinstance to its own struct to avoid errors * enforce <T, I> for Event and Config, impl test * add origin, log, inherent to test * test more code generation * basic storage test * fix typo * rename a few imports and field * delete wip test in example and runtime * change default prefix to make it backward compatible with test * rename Instance to I and Instantiable to Instance note: the name of generic parameter I is only enforce by decl_module! and this could be rewritten * doc * clean old TODOs * update parity-codec to 3.2 * update node impl version + builds * fix warning * fix unrelated grandpa test * refactor code
-
- Mar 13, 2019
-
-
Gav Wood authored
* Rijig to Ristretto * Rebuild wasm * adds compatibility test with the wasm module * Add Ed25519-BIP39 support * Bump subkey version * Update CLI output * New keys. * Standard phrase/password/path keys. * Subkey uses S-URI for secrets * Move everything to use new HDKD crypto. * Test fixes * Ignore old test vector. * fix the ^^ old test vector. * Fix tests * Test fixes * Cleanups * Fix broken key conversion logic in grandpa CC @rphmeier * Remove legacy Keyring usage * Traitify `Pair` * Replace Ed25519AuthorityId with ed25519::Public * Expunge Ed25519AuthorityId type! * Replace Sr25519AuthorityId with sr25519::Public * Remove dodgy crypto type-punning conversions * Fix some tests * Avoid trait * Deduplicate DeriveJunction string decode * Remove cruft code * Fix test * Minor removals * Build fix * Subkey supports sign and verify * Inspect works for public key URIs * Remove more crypto type-punning * Fix typo * Fix tests
-
- Mar 06, 2019
-
-
Bastian Köcher authored
-