1. 30 Oct, 2019 1 commit
  2. 29 Oct, 2019 1 commit
  3. 25 Oct, 2019 2 commits
  4. 24 Oct, 2019 3 commits
    • Andrew Jones's avatar
      [cli] fix `new` command tests, pass in optional target dir (#197) · 59867455
      Andrew Jones authored
      * [cli] use temp dir for `cargo contract new` tests
      
      * [cli] pass in temp dir to build command
      
      * [cli] rustfmt
      
      * [cli] remove some spaces
      
      * [cli] rustfmt
      
      * [cli] fix unused warnings
      
      * [cli] TEMPORARY: see if test works on CI without nightly flag
      
      * [cli] build: check if nightly toolchain is the default
      
      * [cli] TEMPORARY: dump cargo output of build command test
      
      * [cli] TEMPORARY: fix error in las commit
      
      * [cli] TEMPORARY: add some diagnostics to see if .cargo/config is there
      
      * [cli] TEMPORARY: use cat
      
      * [cli] fix merge compilation error
      
      * [cli] change ls and cat commands to current_dir
      
      * [cli] fix troubleshooting logging
      
      * [cli] TEMPORARY: comment out RUSTFLAGS for troubleshooting
      
      * [cli] add link-dead-code args to top level .cargo/config
      
      Avoids RUSTFLAGS env var overriding contract project's rust flags
      
      * [cli] revert temporary CI build troubleshooting
      
      * [cli] make rustflags not target specific
      
      * [cli] only link-dead-code in CI
      
      * [cli] TEMP: output .cargo/config
      
      * [cli] printf instead of echo
      
      * [ci] create cargo config in $CARGO_HOME instead of workspace root
      
      * [ci] fix cargo_home path
      
      * [ci] overwrite rather than append cargo home config
      
      * [ci] restore original RUSTFLAGS, ignore failing build test
      
      * [ci] remove stray echo
      59867455
    • Michael Müller's avatar
      47cf6f5e
    • Michael Müller's avatar
      d218509f
  5. 23 Oct, 2019 1 commit
    • Michael Müller's avatar
      [abi] Improve JSON encoding of selectors + layout key (#207) · 48fb16f0
      Michael Müller authored
      * Export selector as hex string
      
      To have an unambiguous exported representation.
      The previously used `u32` can be interpreted
      differently depending on the endianness of the
      target system.
      
      * Improve JSON encoding of Key `layout` in Metadata
      
      * Add tests for selector serialization
      
      * Encode selector as [u8; 4]
      
      * Remove unused import
      
      * Satisfy rustfmt check
      
      * Improve messages! macro
      
      * Convert tabs to spaces.
      * Replace `DELIMITER` with `@delimiter`.
      * Improve comments.
      
      * Improve comment
      
      * Ensure old ABI format stays the same
      
      * Reduce code duplication by introducing selector_to_expr()
      
      * Satisfy rustfmt
      48fb16f0
  6. 15 Oct, 2019 1 commit
  7. 04 Oct, 2019 5 commits
    • Andrew Jones's avatar
      [cli] deploy command (#131) · e5d03264
      Andrew Jones authored
      * [cli] construct put_code extrinsic
      
      * [cli] fetch current account nonce
      
      * [cli] submit extrinsic skeleton
      
      * [cli] submit extrinsic compiles and works?
      
      * [cli] refactor futures
      
      * [cli] extract substrate rpc module
      
      * [cli] Encapsulate rpc calls in struct
      
      * [cli] extract rpc call methods
      
      * [cli] temporarily add patch for client pub/sub
      
      * [cli] generic Hash
      
      * [cli] back to explicit H256
      
      * [cli] update parity-codec
      
      * [cli] add methods to submit and watch, and fetch events
      
      * [cli] update to paritytech jsonrpc repo patch
      
      * [cli] switch to ws transport
      
      * [cli] WIP: return extrinsic result with code hash
      
      * [cli] subscribe to block events
      
      * [cli] use jsonrpc 12.1 rather than crates,io patch
      
      * [cli] add logging for troubleshooting
      
      * [cli] deserialize OpaqueExtrinsic properly, logging for ext hash
      
      * [cli] still trying to get the Events for the block
      
      * [cli] log events storage key for debugging
      
      * [cli] refactor: function to extract extrinsic events
      
      * [cli] move extract code hash to deploy
      
      * ignore rust-toolchain file used for local builds
      
      * Update to new extrinsic format with extra
      
      * Fix signature with extra
      
      * Make System Events subscription work
      
      * Refactor EventRecord decoding
      
      * Extract code hash from events
      
      * rustfmt
      
      * Refactor: extract functions from Author
      
      * Remove stuff from .gitignore which could go in .git/info/exclude
      
      * Remove ws::connect unwraps
      
      * Pass in url from cli flag
      
      * Combine all rpc interfaces
      
      * Consistency in log messages
      
      * Expand short arg names
      
      * rustfmt
      
      * Comments and refactoring
      
      * rustfmt
      
      * Pass in secret in from command line
      
      * Change default url to ws
      
      * Add integration test (not passing yet) for deploy command
      
      * Extracted substrate extrinsic RPC to subxt
      
      * Get it working with subxt
      
      * [cli] update to latest subxt
      
      * [cli] convert to new subxt
      
      * [cli] add CheckVersion to SignedExtra type
      
      * Use latest version of subxt with dynamic events
      
      * [cli] cargo fmt
      
      * [cli] deploy: remove dependency on node-runtime!
      
      * [cli] use assert_matches in test
      
      * [cli] reuse crate metadata fn from build command to get wasm path
      
      * [cli] add comments
      
      * [cli] remove unused dependencies
      
      * [cli] remove more unused dependencies
      
      * [cli] Use static method
      
      * [cli] doc comments
      
      * [cli] rename surl -> suri
      
      * [cli] move Runtime defintion to subxt, reduce direct substrate deps
      
      * [cli] rustfmt
      e5d03264
    • Denis_P's avatar
      Merge pull request #196 from paritytech/create_ci · 89dca458
      Denis_P authored
      Gitlab CI
      89dca458
    • Denis_P's avatar
      CI is ready · 0613c044
      Denis_P authored
      0613c044
    • Denis_P's avatar
      Merge branch 'master' into create_ci · 7a655e55
      Denis_P authored
      7a655e55
    • Hero Bird's avatar
      Implementation of ink_env 2.0 (#195) · 4107f98d
      Hero Bird authored
      * [core] initial implementation of new env module
      
      * [core] add SRML implementations for some more Env trait methods
      
      * [core] replace SmallVec with Vec since it isn't ready yet
      
      * [core] add license header to ret_code.rs
      
      * [core] take generic buffer params &mut instead of by value
      
      * [core] add implementation of create_contract for SRML env
      
      * [core] remove unused SmallVec imports
      
      * [core] implement deposit_event for SRML contracts env
      
      * [core] implement invoke_runtime for SRML contract env
      
      * [core] adjust invoke_runtime at trait level
      
      * [core] implement restore_to for SRML contracts env
      
      * [core] fix minor warnings and formatting issues
      
      * [core] refactoring and clean ups
      
      Output is no longer a contract property since it was too hard to make it work properly and efficiently.
      
      * [core] add initial version of EnvAccess
      
      * [core] add runtime checks to EnvAccess for input and output
      
      * [core] GetProperty and SetProperty no longer return Result
      
      * [core] introduce macro to remove some duplicate code in EnvAccess
      
      * [core] make buffer always the first argument in Env
      
      * [core] some minor clean ups
      
      * [core] implement {get,set,clear}_contract_storage for EnvAccess
      
      * [core] make assert_not_yet_returned and set_has_interacted private fns
      
      * [core] implement EnvAccess::random
      
      * [core] implement EnvAccess::println
      
      * [core] implement EnvAccess::{invoke_contract, eval_contract, create_contract}
      
      * [core] refactor module imports and exports
      
      * [core] add DynEnv utility
      
      * [core] move EnvAccess{Mut} into their own sub-module
      
      * [core] improve docs and add docs where they were missing
      
      * [core] add Default impl for EnvAccess
      
      * [core] add DynEnv
      
      * [core] greatly improve module docs
      
      * [core] remove some warning-errors that were too strict
      
      * [core] introduce initial implementation of test env
      
      * [core] initial Storage implementation for TestEnv
      
      * [core] improve module documentation
      
      * [core] continue implementation of TestEnv
      
      * [core] improve byte_utils docs for negate_bytes
      
      * [core] add new DefaultSrmlTypes implementation
      
      * [core] continue initial TestEnv implementation
      
      * [core] add TypedEncoded utility that we might use in TestEnvInstance
      
      * [core] enhance TypedEncoded utility
      
      * [core] add Debug impl for Storage and Entry
      
      * [core] implement the TestEnvInstance part of TestEnv
      
      This is the part that actually holds the data in a generic fashion and is controlled later on by the TestEnv through thread_local storage.
      
      * [core] remove unnecessary imports
      
      * [core] remove unnecessary derive impls for some marker types
      
      * [core] greatly improve doc comment of TestEnvInstance
      
      * [core] implement Clone, PartialEq, Eq and Hash for any TypedEncoded<M>
      
      * [ci] update Travis CI rust version: nightly-2019-08-30 -> nightly-2019-09-25
      
      * [core] include TestEnv or SrmlEnv conditionally exclusively
      
      * [core] apply rust fmt
      
      * [core] use Input::remaining_len to optimize scale::Decode impl for CallData
      
      * [core] align usage of PhantomData
      
      * [core] resolve call/create TODOs
      
      * [core] fix minor doc issues
      
      * [core] add a note to Env::println to make users aware of it being a debug utility
      
      * [core] apply rust fmt
      
      * [core] add Debug impl to Storage and Entry
      
      * [core] add PartialOrd and Ord impl to TypedEncoded
      
      * [core] split TestEnv TypedEncoded types into their own module
      
      * [core] add an account database for the TestEnv
      
      * [core] move impl_get_property_for next to its macro definition
      
      * [core] enhance test::AccountsDb
      
      * [core] make fields in TestEnvInstance pub
      
      * [core] fix some mod re-exports
      
      * [core] improve AccountsDb get and get_mut interface
      
      * [core] add TypedEncoded::{assign, try_assign} methods
      
      * [core] add 'static to all EnvTypes associated types
      
      * [core] add initial implementation of accessor for TestEnvInstance
      
      * [core] rename some fields in instance.rs
      
      * [core] implement the rest of the properties getters and setters for TestEnv
      
      * [core] move Input property getter into macro
      
      * [core] add initial stubs for Env impl of TestEnv
      
      * [core] slightly improve property getters
      
      * [core] implement Env::get_contract_storage for TestEnv
      
      * [ci] update nightly-2019-09-25 -> nightly-2019-10-03
      
      * [core] improve Storage::write by using Entry API
      
      * [core] silence warning of unused buffer in Env impl for TestEnv
      
      * [core] implement Env::set_contract_storage for TestEnv
      
      * [core] impl Env::clear_contract_storage for TestEnv
      
      * [core] add dev-comments for implementations of many Env methods for TestEnv
      
      These need some explanation since they partly contradict the off-chain nature of the TestEnv.
      
      * [core] implement Env::random for TestEnv
      
      * [core] improve dev-comment for Env::create_contract
      
      * [core] implement Env::output for TestEnv
      
      * [core] add AccountIdGen to TestEnvInstance
      
      * [core] add records to test environment module
      
      Used for later use in recording implementations of Env for TestEnv.
      
      * [core] apply rustfmt
      
      * [core] fix some warnings
      
      * [core] add constructors for records
      
      * [core] make record constructors pub
      
      * [core] apply rustfmt
      
      * [core] implement Env::{invoke_contract, eval_contract} for TestEnv
      
      * [core] implement restoration and runtime invokation records
      
      * [core] implement Env::{emit_event, invoke_runtime, restore_to} for TestEnv
      
      * [core] implement AccountsDb::insert
      
      * [core] implement Env::create_contract for TestEnv
      
      * [core] add doc-comment for test environment module
      
      * [core] fix copy/paste error in accessor.rs
      
      * [core] add initialization routines to TestEnvInstance
      
      * [core] make use of TypedEncoded in record.rs
      
      * [core] re-export concrete Env impls as EnvImpl
      
      * [core] make most of the test environment definitions publicly visible
      
      * [core] apply rustfmt
      
      * [core] fix 2 compile errors in no_std mode
      
      * [core] add doc-comments to all test sub-modules
      
      * [core] add doc-comments to EnvImpl type alias
      
      * [core] add initial implementation of TestEnv::try_initialize
      
      * [core] add dev-notes to SrmlEnv
      
      * [ci] update travis nightly usage nightly-2019-10-03 -> nightly-2019-10-04
      4107f98d
  8. 03 Oct, 2019 2 commits
  9. 02 Oct, 2019 15 commits
  10. 01 Oct, 2019 1 commit
  11. 30 Sep, 2019 3 commits
    • Denis_P's avatar
      try wo kcov · 4255b766
      Denis_P authored
      4255b766
    • Denis_P's avatar
      create ci, test run · 45b9c2dc
      Denis_P authored
      45b9c2dc
    • Michael Müller's avatar
      Deprecate CellChunkAlloc for DynAlloc (#186) · d92462b3
      Michael Müller authored
      * Replace CellChunkAlloc with DynAlloc
      
      * Remove CellChunkAlloc
      
      * Satisfy linter
      
      * Replace CellChunkAlloc with DynAlloc
      
      * Remove CellChunkAlloc
      
      * Satisfy linter
      
      * Do not initialize env for each call
      
      * Fix typo
      
      * Remove tests which panick while panicking
      
      These tests test for panicks. The issue is that
      the `Drop` implementation for `BitVec` will be
      called during the unwinding, this `Drop`
      implementation will try to access uninitialized
      fields and panick as well.
      d92462b3
  12. 25 Sep, 2019 1 commit
    • Sergey Pepyakin's avatar
      Implement the build command (#192) · 53fa4d58
      Sergey Pepyakin authored
      * [cli] Implement the build command
      
      * [cli] Remove all build.sh scripts
      
      * [cli] Restore build-all.sh
      
      * Fix the test.
      
      * Strip custom sections
      
      * Add some testing.
      
      * Strip name and reloc sections as well
      53fa4d58
  13. 21 Sep, 2019 1 commit
  14. 19 Sep, 2019 1 commit
    • Hero Bird's avatar
      ink abi v0.2 (#190) · 0f249fa4
      Hero Bird authored
      
      
      * [abi] add some missing exports to ink_abi
      
      * [abi] add missing docs
      
      * [abi] replace vec![] with Vec::new()
      
      * [abi] add ConstructorSpec + glue code
      
      * [abi] add ConstructorSpecBuilder::done
      
      * [abi] remove old DeployHandlerSpec
      
      * [abi] bump derive_more version 0.14 -> 0.15
      
      * [abi] move Missing struct above state module
      
      * [abi] apply rust fmt
      
      * [abi] add TypeSpec as a new wrapper around type with optional display names
      
      * [abi] make EventParamSpec use new TypeSpec
      
      * [abi] finish integrating the new TypeSpec into specification structs
      
      * [abi] update abi_derive dependencies syn, quote and proc_macro to 1.0
      
      * fix minor spelling in docs
      
      Co-Authored-By: Andrew Jones's avatarAndrew Jones <ascjones@gmail.com>
      
      * [abi] refactor ContractSpecBuilder
      
      * [abi] apply rust fmt
      
      * [lang] implement new ink_abi API for ink_lang
      
      * [lang] apply rust fmt
      
      * [lang] implement display name support
      
      * [lang] adjust compile time tests to new ink_abi codegen
      0f249fa4
  15. 16 Sep, 2019 1 commit
  16. 30 Aug, 2019 1 commit
    • Hero Bird's avatar
      Add call infrastructure to ink_lang (#175) · 9cf5a571
      Hero Bird authored
      * [core] add initial call builder implementation
      
      * [core] add setters to CallBuilder
      
      * [core] fix invalid mod import in no_std
      
      * [lang] initial remote call implementation for ink_lang
      
      * [examples] add ink-as-dependency crate feature to erc20 token contract
      
      * [core] move calls and call error definitions
      
      * [core] add ext_create support
      
      * [*] apply rustfmt
      
      * [core] expose ReturnType publicly
      
      * [core] add ext_create impl on the SRML interfacing side
      
      * [core] fix minor invalid module import
      
      * [lang] split CallEnhancer into mut and immutable versions
      
      * [lang] forward to call enhancers from short-version of remote calling
      
      * [core] improve create builder to return the contract directly
      
      * [lang] simplify env types code generation
      
      * [lang] add create call builder code generation
      
      * [lang] improve code gen by altering spans of the generated code
      
      * [examples] add ink-as-dependency to all lang examples
      
      * [cli] add ink-as-dependency to smart contract template
      
      * [lang] fix code gen bug with forwarding references
      
      * [lamg] move impls out of const item
      
      It seems that inherent impls shouldn't be put inside a const item.
      
      * [core] impl Default for Hash
      
      * [lang] add Flush, scale::{Encode, Decode} for contracts as dependencies
      
      * [examples] add example to call remote smart contracts
      
      * [examples] remove invalid test code from delegator contract
      
      * [abi] fix warning about suffixed tuple indices
      
      * [lang] fix bug in generate-abi codegen for deploy handler with multiple args
      
      * [lang] derive from type_metadata::Metadata for contract structs
      
      * [examples] ran cargo fmt
      
      * [examples] derive type_metadata::Metadata for Which
      
      * [examples] make code hashes deploy inputs for delegator contract
      
      * [core] rename gas_cost to gas_limit
      
      * [core] remove parts that got re-introduced accidentally upon merge
      
      * [examples] add a README to the delegator contract
      
      * [examples] restructure delegator project structure
      
      * [examples] fix Cargo.toml of delegator
      
      * [lang] fix bug that ink-as-dependency derives Metadata for the state struct
      
      * [lang] add getter for account_id of ink-as-dependency state structs
      
      * [examples] adjust Delegator contract to make it work with old ABI generator
      
      * [lang] import FromAccountId
      
      * [examples] provide a build.sh script to deploy delegator contract
      
      * [readme] add section about wabt and wasm-utils tools
      
      * [readme] add off-chain test for the example smart contract
      
      * [examples] add .value call to contract create calls of delegator
      
      * [*] use fix-serialization branch of type-metadata
      
      * [*] use type-metadata master branch again (PR was merged)
      
      * [lang] update the noop compile test
      
      * [lang] simplified the noop compile test doc comments
      
      * [lang] fix compiletest for Flipper contract
      
      * [lang] fix compile tests for incrementer contract
      
      * [lang] fix compile tests for Events contract
      
      * [scripts] do not check the Delegator for now (needs special treatment)
      
      * [ci] update rust version from nightly-2019-08-13 to nightly-2019-08-30
      
      * [examples] restructure delegator contract project structure
      
      * [scripts] make check-examples script simpler again after delegator refactoring
      
      * [examples] clean up Delegator contract
      
      * [examples] improve build guidance of Delegator contract
      9cf5a571