This project is mirrored from https://github.com/paritytech/ink.git. Pull mirroring updated .
  1. 19 Nov, 2019 1 commit
  2. 10 Oct, 2019 1 commit
  3. 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
  4. 16 Aug, 2019 2 commits
    • Hero Bird's avatar
      [core] ext_call PR followup and refinements (#171) · ecd609d5
      Hero Bird authored
      * [core] ext_call PR followup and refinements
      
      * [core] add call_invoke and call_evaluate to api.rs
      
      * [core] extract call method (#172)
      ecd609d5
    • taskooh's avatar
      Implement ext_call in ink! (#133) · 1228905c
      taskooh authored
      * import ext_call to trait and add function to generate input_data of ext_call
      
      remove #[allow(unused)] from ext_call()
      
      implment call_invoke and call_evaluate
      
      fix format
      
      call_invoke and call_evaluate returns Return<_,CallError>
      
      fixed
      
      * fix format and change return type of test_env
      
      * [core] implement CallError as struct and add call_return field to text_env
      
      * fix trivial and remove lang/src/encode_input_data
      
      * [core] use map_err while handling Result<>
      1228905c
  5. 15 Aug, 2019 1 commit
  6. 09 Aug, 2019 1 commit
    • Andrew Jones's avatar
      [*] parity-codec -> parity-scale-codec (#164) · 9525f2f5
      Andrew Jones authored
      * [*] parity-codec -> parity-scale-codec
      
      * [core, model] Decode impls Option -> Result
      
      * [core] typed_cell load expect successful Decode
      
      * [core] Option to Result, remove redundant combinator
      
      * [model] Option to Result
      
      * [*] abbreviate parity-scale-codec
      
      * [core] fix dummy Call Decode impl
      9525f2f5
  7. 30 Jul, 2019 1 commit
    • Andrew Jones's avatar
      Implement `ext_dispatch_call` (#124) · 49f221bd
      Andrew Jones authored
      * [core] Add AccountId to EnvTypes
      
      * [core] Add calls mod, plus WIP tests
      
      * [core] Balance transfer call roundtrip works
      
      * [core] Add ext_dispatch_call
      
      * [core] Implement ext_dispatch_call
      
      * [examples] Add example lang contract for ext_dispatch_call
      
      * [examples] WIP: implement example lang contract for ext_dispatch_call
      
      * [examples] complete basic implementation of dispatching Balances Call
      
      * srml-contracts -> srml-contract
      
      * [core] remove unsafe from dispatch_call api fn
      
      * [core] Add docs to dispatch_call
      
      * [core] Add missing trait bound to account index
      
      * [core] Some todos
      
      * [core] Rename dispatch_call to dispatch_raw_call on Env trait
      
      * [lang] Add AccountIndex type alias
      
      * [model] add strongly type dispatch call to EnvHandler
      
      * [*] specify latest parity-codec version, same as substrate
      
      * [core] fix call roundtrip tests
      
      * [lang] fix tests
      
      * [core] fix wasm build
      
      * [core] fix std build
      
      * [core] move call type serialization tests
      
      * [core] test Call serialization roundtrip
      
      * [core] use node_runtime for Call serialization roundtrip
      
      * [core] remove unused dependencies
      
      * [core] remove unused substrate dependencies
      
      * [core] change default Balance to u128, matching substrate
      
      * [core] introduce Address type for balance calls
      
      * [core] fix Balances transfer serialization test
      
      * [core] add Address serialization tests
      
      * [ci] install wasm-gc for building substrate dev deps
      
      * [ci] move wasm-gc installation after wasm target added
      
      * [examples] get the calls example compiling
      
      * [CI] add temporary check for debugging ci build
      
      * [CI] restore wasm-gc to install section and remove temp version check
      
      * [CI] temporarily depend on substrate branch to test build fix
      
      * [CI] remove temp substrate branch, build issue fixed
      
      * [core] use std feature instead of test-env for EnvTypes
      
      * [core] remove Call types, moved to ink-types-node-runtime
      
      * [core] remove AccountIndex from EnvTypes
      
      * [core] remove AccountIndex from lang codegen
      
      * [core] fix unused for std
      
      * [CI] remove wasm-gc from travis build
      
      * [CI] remove AccountIndex type alias from codegen
      
      * parity-codec version 4.1.1 -> 4.1
      
      * [core] ext_dispatch_call docs
      
      * [core] describe in comment what will happen if decoding fails
      
      * [model] implement suggestion of Into<Call>
      
      * rustfmt
      
      * rustfmt again
      
      * rustfmt again again
      
      * [examples] deleted calls example - moved to ink_types_node_runtime
      
      * [core] use into in api::dispatch_call
      
      * [core] make Call empty enum and use test-env feature for EnvTypes
      
      * [core] remove unused Call enum
      
      * [core] add comments explaining rationale for test-env
      
      * [core] missing period
      
      * [core] add comments
      
      * [core] add space in comment
      
      * [core] add comment to Call decode impl
      
      * [core] make dispatched_calls a DoubleEndedIterator
      
      * [core] add missing doc comment
      
      * [core] add comment explaining Decode requirement
      
      * [core] doc comment and DoubleEndedIterator
      49f221bd
  8. 24 Jul, 2019 1 commit
    • Hero Bird's avatar
      Enhance Flush (#136) · b66ab319
      Hero Bird authored
      * [core] Enhance Flush trait to make it work with SyncCell and SyncChunk
      
      * apply rustfmt
      b66ab319
  9. 17 Jul, 2019 1 commit
  10. 14 Jul, 2019 1 commit
  11. 10 Jul, 2019 2 commits
  12. 24 Jun, 2019 1 commit
    • Andrew Jones's avatar
      Contract Runtime Types (#108) · efe69028
      Andrew Jones authored
      * [model] Make EnvHandler generic over Env
      
      * [core] Remove api env functions
      
      * [core] Remove default srml types, separate EnvStorage trait
      
      * [core] Remove TryFrom bounds
      
      * [core, examples] Convert incrementer to use NodeRuntime types
      
      * [examples] Ignore duplicate wasm runtime lang items
      
      * [examples] Tidy up incrementer example
      
      * [core] Add Hash constraint for AccountId
      
      * [examples] Convert model ERC20 example
      
      * [lang, examples] Generate env type aliases, convert ERC20 example
      
      * [types] Add pre-baked node-runtime types lib
      
      * [examples] Convert core/incrementer to use node-runtime-types
      
      * [examples] Convert lang/erc20 to use node-runtime-types
      
      * [examples] Convert model/erc20 to use node-runtime-types
      
      * [types, examples] Rename node-runtime to node_runtime
      
      * [types] Add default contract environment types
      
      * [types] Rename type crates
      
      * [types, core] Move default types back to core
      
      * [examples] Convert flipper example to use default types
      
      * [core] Fix up test_env
      
      * [core] Fix syn Errors after merge
      
      * [core] Temporarily suppress unused errors in test_env
      
      * [tests] Fix up test compilation
      
      * [tests] Remove unused test code overrides
      
      * [core] Make SrmlEnvStorage enum
      
      * [core] Fix empty enum
      
      * Use Debug impl of AccountId
      
      * [model] Remove stray license template line
      
      * [lang] Replace Env type alias with explicit type
      
      * [core, tests] Store raw bytes in TestEnv data
      
      * [model] Fix tests
      
      * [examples] Add missing env import
      
      * [core] Remove Hash + Copy constraints
      
      * [core] Replace unwrap with expect
      
      * [core] Remove unused import
      
      * [lang] Fix missing Env type param for test-env
      
      * [examples] Construct AccountId in tests by decoding bytes
      
      * [examples] set_caller helper function
      
      * [core, examples] Extract TestEnv events, no type param required
      
      * [core, examples] Restore `r#return` api call
      
      * [examples] Use from impl for AccountId
      
      * [core. lang] Encode concrete env type in contract
      
      * [lang] Fix lang failure tests
      
      * [examples] Fix lang incrementer example
      
      * [lang] Fix up events test
      
      * [lang] Increase recursion limit for lang test
      
      * [lang] Encapsulate env types in module and use alias for ContractEnv
      
      * [lang] Fix remaining lang tests
      
      * [examples] Move node runtime types to separate repo
      
      * [lang] Make types public and prefix ContractEnv alias
      
      * [lang] Remove ContractEnv alias, inline type
      
      * [fix] Remove types/node_runtime from workspace
      
      * [lang] Use fully qualified ContractEnv, fix lang tests
      
      * [examples] Fix events lang example
      
      * [lang, examples] Convert erc20 example to use new ink-types-node-runtime
      
      * [docs, template, examples] Add missing EnvTypes declaration
      
      * [lang] Add super import to types mod
      
      * [examples] use DefaultSrmlTypes in erc20 example
      
      * [examples] Use ink-types-node-runtime lib
      
      * [examples] Use remote git dependency
      
      * [core] remove unused reexport
      
      * [core] update docs
      
      * [examples] Fix core incrementer example
      
      * [lang] Move 'env' type alias to test module
      
      * Revert "[lang] Move 'env' type alias to test module"
      
      This reverts commit 8f73f37b
      
      * [lang] use Env trait to allow calling methods from type alias
      
      * [lang] Fix lang codegen tests
      
      * [lang] Use inner attr for EnvTypes instead of type alias
      
      * [lang] Add some tests for parsing env types meta attr
      
      * [lang] Pass EnvHandler type to fix compile error after merge
      
      * [core] Add extra trait bounds to EnvTypes
      
      * [core] EnvTypes test-env feature
      
      * [examples] Reference master ink! in anticipation of merge
      
      * [core] Docs and pub(self)
      
      * [examples] Convert to AccountId::from
      
      * [lang] Revert recursion limit
      
      * [core] Make ContractEnv pub again
      
      * [lang] remove env type alias
      
      * [core] restore test env emitted_events method
      
      * [core] missing T
      
      * [core] emitted_events missing type parameter
      
      * [examples] update env usage in erc20
      
      * [examples] update env usage in other lang examples
      
      * [examples] fix up core examples
      
      * [examples] fix up model examples
      
      * [core] fix import
      
      * [core] phantom marker grumble
      
      * [core] comment grumble
      
      * [core] return Iterator from emitted_events
      
      * [lang] remove commented out code
      
      * [core] remove redundant allow_unused
      
      * [examples] use DefaultSrmlTypes for erc20 example
      efe69028
  13. 23 May, 2019 1 commit
    • Hero Bird's avatar
      Major clean up of ink! codebase (#99) · fa906cad
      Hero Bird authored
      * [ink] Update rust-toolchain from 2019-04-20 to 2019-05-21
      
      * [core,lang] Update & fix Cargo information
      
      * [chores] Update rustfmt version to the current toolchain
      
      * [core] Clean up, fix some warnings
      
      * [core] Remove unneeded dependency
      
      * [core] Ignore return value of Key ops
      
      Fixes a warning
      
      * [core,model] Adjust warning level
      
      * [lang] Minor rustfmt run
      
      * [ink] Add topics to events
      
      For now, ink! will simply leave topics slice empty.
      
      * [core] Add ext_gas_left, ext_gas_price and ext_value_transferred bindings
      
      * [core] Clean up some code by dedup
      
      * [core] Further code clean up
      
      * [core] Simplify SrmlEnv::load impl
      fa906cad
  14. 14 May, 2019 1 commit
  15. 09 May, 2019 1 commit
  16. 24 Apr, 2019 1 commit
  17. 22 Apr, 2019 2 commits
  18. 18 Apr, 2019 2 commits
  19. 17 Apr, 2019 9 commits
  20. 11 Apr, 2019 1 commit
  21. 13 Mar, 2019 1 commit
  22. 06 Mar, 2019 1 commit
  23. 27 Feb, 2019 1 commit
  24. 19 Feb, 2019 1 commit
  25. 06 Feb, 2019 1 commit
  26. 15 Jan, 2019 1 commit
  27. 08 Jan, 2019 2 commits