- Mar 29, 2019
-
-
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
-
Gav Wood authored
* Clean up session key rotation * Fix build * Bump version * Introduce feature to balances. * Move staking locking logic over to central point * ^^^ rest * First part of assimilation * More assimilation * More assimilation * Fix most tests * Fix build * Move Balances to new locking system * :q! * Bump runtime version * Build runtime * Convenience function * Test fix. * Whitespace * Improve type legibility. * Fix comment. * More tests. * More tests. * Bump version * Caps * Whitespace * Whitespace * Remove unneeded function.
-
- Mar 05, 2019
-
-
Hero Bird authored
* Make use of parity-codec "derive" crate feature * Bump impl_version * Update wasm files and Cargo.lock files * Transferred to parity_codec derive feature for the rest of the crates * Update wasm binaries and lock files * Update core and node wasm binaries
-
- Mar 01, 2019
-
-
Bastian Köcher authored
* Update parity-codec/-derive to 3.1 * Update wasm stuff
-
- Feb 26, 2019
-
-
thiolliere authored
* replace some encode by using_encoded * update runtime * improve readibility
-
- Feb 21, 2019
-
-
Jordan Beauchamp authored
* Let StorageDoubleMap use borrowed key types * Bump impl version
-
Stanislav Tkach authored
-
- Feb 19, 2019
-
-
thiolliere authored
* remove amount associated * make a new trait to bound some arithmetics to balances or assets: It also remove arithmetic bounds of srml-support::traits::Currency. To update your code then use srml_support::traits::ArithmeticType like: `type Currency: ArithmeticType + Currency<Self::AccountId, Balance=BalanceOf<Self>>; ` with `type BalanceOf<T> = <<T as Trait>::Currency as ArithmeticType>::Type; ` * improve decl_storage when it explicit serde bound: basically don't try to be smarter than rust and just use where clause.
-
- Feb 15, 2019
-
-
Xiliang Chen authored
* 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.
-
- Feb 10, 2019
-
-
Gav Wood authored
* Vesting. * Vesting stuff. * Add new wasm blobs * Bump runtime version * Update lock * Fix tests * Bump version
-
- Feb 09, 2019
-
-
Stanislav Tkach authored
-
- Feb 08, 2019
-
-
thiolliere authored
* decouple balances from some module by creating a new traits in support/traits * improve decl_event
-
Tomasz Drwięga authored
* Add transaction skipping. * Update runtime.
-
- Feb 07, 2019
-
-
Jordan Beauchamp authored
* Expose block random seed and timestamp to contract ABI * Add tests * Bump spec version
-
- Jan 30, 2019
-
-
Benjamin Kampmann authored
Went through the TODOs, removed a bunch, which are outdated or nothing more than a regular comment, documented a bunch more as actual tickets and made them FIXMEs and unified their structure (`FIXME #TICKETNO DESC` for local tickets, `FIXME: DESC LINK` for external tickets) for easier in-editor support. Further more remove unnecessary remarks and related old code that I noticed in that instance.
-
- Jan 28, 2019
-
-
thiolliere authored
* update codec * use new codec * update grandpa code * build .lock and binaries
-
- Jan 25, 2019
-
-
Gav Wood authored
* Additional externs for ecdsa recovery and keccak * Update core/executor/src/wasm_executor.rs Co-Authored-By: gavofyork <[email protected]> * Update core/executor/src/wasm_executor.rs Co-Authored-By: gavofyork <[email protected]> * Fix grumble * Grumble.
-
- Jan 24, 2019
-
-
Sergei Pepyakin authored
* Fix imports. * Remove redundant binding * Clean extern crates. * Add comment * Re-export macros from prelude * Build fixes * Update core/sr-std/src/lib.rs Co-Authored-By: pepyakin <[email protected]>
-
- Jan 23, 2019
-
-
thiolliere authored
-
- Jan 22, 2019
-
-
thiolliere authored
* impl #[codec(compact)] for param * update modules * test all and build runtime * Update srml/support/src/dispatch.rs Co-Authored-By: thiolliere <[email protected]> * Update srml/support/src/dispatch.rs Co-Authored-By: thiolliere <[email protected]> * delete wip comment * update param to use #[compact] instead of Cmpact<> * fmt * impl metadata * test metadata * add compact attr test * script buid * update test
-
Sergei Pepyakin authored
* WIP * Use system::Origin::Signed as an origin * Add a vm test for ext_dispatch_call * Take fee for dispatching a Call # Conflicts: # node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm * Clean & Rebuild # Conflicts: # node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm * Dispatch call test. * Rebuild the runtime. * Fix the length of the buffer. * Rebuild binaries.
-
- Jan 21, 2019
-
-
Sergei Pepyakin authored
* Disallow importing `gas` function * Update srml/contract/src/wasm/prepare.rs Co-Authored-By: pepyakin <[email protected]>
-
Sergei Pepyakin authored
-
- Jan 19, 2019
-
-
Sergei Pepyakin authored
* Add gas_left, gas_price and balance externalities * Add a value_transferred externality
-
- Jan 17, 2019
-
-
Sergei Pepyakin authored
* Move prepare under code. * Schedule update * CodeHash * create takes code_hash * pass mem def and use code in vm::execute * Actually save and load code * Use T::Hash as CodeHash * Explicit entrypoint name * Return code_hash and deposit an Event * Charge for deployed code with gas. * ImportSatisfyCheck and FunctionImplProvider * Progress. * Use new infrastructure for checking imports * Rename entrypoint to entrypoint_name * Use strings instead of a Error enum * Clean * WIP * Fix macro_define_env test. * Fix vm code tests. * Remove tests for now. * Fix borked merge * Fix build for wasm * fmt * Scaffolding for abstracting vm. * Hook up execution to exec layer. * Fix vm tests. * Use schedule directly in WasmLoader * Implement test language. * Add input_data test. * Max depth test * ext_caller * Simplify test. * Add TODO * Some tests and todos. * top_level * Clean. * Restore a couple of integration tests. * Add a few comments. * Add ext_address runtime call. * Deduplicate caller/self_account * Add not_exists test. * Change bool to TransferCause. * Add address tests. * Remove output_buf from parameter. * return from start fn. * Smart gas meter * Tracing * Fix prepare tests. * Code moving * Add ExecFeeToken * Use tokens everywhere. * Make it compile in no_std. * Lift all test requirements to TestAuxiliaries * A minor clean * First create tests * Remove unneeded TODO * Docs. * Code shuffling * Rename create → instantiate * Add test address. * Code shuffling * Add base_fee tests. * rejig the code * Add some comments * on_finalise comment * Move event deposit further * Update Cargo.lock * Use crates.io version of pwasm-utils * Format todo comments * Fix formatting * Comments * EmptyOutputBuf and OutputBuf split. * Restore code_hash * Fix node-executor. * Fix typo * Fix fmt * Update srml/contract/src/account_db.rs Co-Authored-By: pepyakin <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: pepyakin <[email protected]> * Line wraps * Wrapping macros * Add _ prefix * Grumbles * Doc updates. * Update srml/contract/src/wasm/mod.rs Co-Authored-By: pepyakin <[email protected]> * Update srml/contract/src/lib.rs Co-Authored-By: pepyakin <[email protected]> * Add comment * Use saturation to signal overflow * Add prepare_test! macro * Require deploy function. * Add entry point tests * Add comment. * Rename code → code_cache to better describe * Get rid of weird match! * Recompile binaries * Add comments * refuse_instantiate_with_value_below_existential_deposit * Little fix * Make test more complete * Clean * Add integration test for instantiation * Rebuild runtime. * Add some tests. * Attach an issue to a TODO * Attach another issue * Apply suggestions from code review Co-Authored-By: pepyakin <[email protected]> * Update srml/contract/src/exec.rs Co-Authored-By: pepyakin <[email protected]> * Update srml/contract/src/exec.rs Co-Authored-By: pepyakin <[email protected]> * Recompile node_runtime
-
thiolliere authored
* impl Compact<> and HasCompact for Permill Perbill * update parity-codec to 2.2 * add Cargo.lock * add lock and build for runtime * rebuild Cargo.lock after rebase
-
- Jan 16, 2019
-
-
Gav Wood authored
* 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
-
- Jan 14, 2019
-
-
Sergei Pepyakin authored
-
- Jan 11, 2019
-
-
Xiliang Chen authored
* Move double map to support and generalize it * add docs back * reduces the number of required allocations
-
- Dec 22, 2018
-
-
Bastian Köcher authored
* 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
-
- Dec 16, 2018
-
-
Sergei Pepyakin authored
-
- Dec 13, 2018
-
-
Sergei Pepyakin authored
* s/account ID/address * Add a note about CODE_CALLER * Comment tests.
-