1. May 19, 2022
  2. May 18, 2022
  3. May 11, 2022
  4. May 06, 2022
    • Andrew Jones's avatar
      Display `H256` instances in events as hex encoded string (#550) · 1dab046b
      Andrew Jones authored
      * Fix comment
      
      * Remove some unnecessary path prefixes
      
      * Allow custom encoding OR decoding, add tests
      
      * Fmt
      
      * Register custom type decoder for contract event transcoder
      1dab046b
    • Andrew Jones's avatar
      Fix `--dry-run` error deserialization and report error details (#534) · 2961428c
      Andrew Jones authored
      * Update metadata, derive Deserialize for runtime error types
      
      * Add error details to dry run instantiate
      
      * Factor out common method for reporting dry-run error
      
      * Report module error details on upload dry-run
      
      * Report module error details for call dry-run
      
      * Move printing result back to callers
      
      * Update subxt
      
      * Fix for new subxt and satisfy clippy
      
      * Update to `subxt` master
      
      * Use latest subxt release
      2961428c
  5. May 05, 2022
    • Andrew Jones's avatar
      Allow hex literals for unsigned integers (#547) · 0215f1b3
      Andrew Jones authored
      * WIP in hex literals
      
      * Convert bytes to seqs
      
      * Fmt
      
      * Warnings
      
      * Add transcode hex literal test
      
      * Fix Hex construction trim leading 0x
      
      * Fix custom account id transcode test
      
      * Fix uint hex literal transcoder test
      0215f1b3
  6. Apr 26, 2022
  7. Apr 12, 2022
    • Andrew Jones's avatar
      Use rustfmt config from `ink!` 🦑 (#505) · cfd55bd6
      Andrew Jones authored
      * Copy ink rustfmt config
      
      * inkify
      
      * Add editorconfig
      
      * Fmt
      
      * Fmt
      
      * Fmt
      cfd55bd6
    • Sasha Gryaznov's avatar
      Add `decode` command for event, message and constructor data decoding (#481) · bce9301c
      Sasha Gryaznov authored
      * add contract call data to debug log
      
      * [REVERT!] some debug data to dig into an error
      
      * save
      
      * decode cmd works for both event and message
      
      save: +output tuned
      
      +decoder for message data and specifier of type to DecodeCommand
      
      removed redundant args to decode cmd
      
      * remove some debugging prints
      
      This reverts commit 1375fee8
      
      .
      
      * test fixed
      
      * use util decode_hex()
      
      * moved decode cmd to root (it's not an extrinsic)
      
      * e2e test for decoding message data
      
      * add decoding event to the same e2e test
      
      * Update src/cmd/decode.rs
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      
      * added constructor data decoder
      
      * ci fixes
      
      * lil test update
      
      * Partially revert "lil test update" (mainfest fixes)
      
      This reverts commit 1f24d5be.
      
      * Build before test, and test --release
      
      * Revert "Build before test, and test --release"
      
      This reverts commit 7f6ef5ee
      
      .
      
      * Move decode test to an integration test
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      bce9301c
  8. Apr 08, 2022
  9. Apr 05, 2022
  10. Mar 28, 2022
  11. Mar 18, 2022
  12. Mar 11, 2022
  13. Mar 09, 2022
  14. Mar 03, 2022
  15. Feb 25, 2022
  16. Feb 23, 2022
    • Michael Müller's avatar
      Add ink! linting MVP stage (#431) · 836acbff
      Michael Müller authored
      
      
      * Add ink! linting MVP stage
      
      * CI: cache cargo installations; update versions
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarSergejs Kostjucenko <[email protected]>
      
      * Update changelog
      
      * Check if `dylint` requirements are installed
      
      * Make `clippy` happy
      
      * Make tests happy
      
      * Make `LICENSE` symlink
      
      * Make error handling and panic's consistent
      
      * Improve code structure
      
      * Remove unneeded `--workspace`
      
      * Fix `mapping-two-constructor` test file
      
      * Simplify `Option<Vec<_>>` to `Vec`
      
      * Generalize unsetting of env variables in `invoke_cargo`
      
      * Move special case of `dylint` verbosity to call site
      
      * Keep calm and return an `Err`
      
      * Move checking for `dylint-link` to `build.rs`
      
      * Add `ink_linting/Cargo.lock`
      
      * Move `bool_to_exit_code` inline
      
      * Add test for non-fully-qualified path call of `initialize_contract`
      
      * Fix panic when no manifest path was supplied
      
      * Improve structure of `build.rs`
      
      * Make linting error message non-blaming
      
      * Remove incorrect note on not detecting indirections
      
      * Make `clippy` happy
      
      * Impprove text
      
      * Build `ink_linting` with `--locked`
      
      * Fix path separators for Windows CI
      
      * Revert "Fix path separators for Windows CI"
      
      This reverts commit b5998313.
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Revert me: Debug failing Windows CI
      
      * Use `which` for detecting `dylint-link` installation
      
      * Remove `DYLINT_DRIVER_PATH`
      
      * Add `--lib`
      
      * Revert "Remove `DYLINT_DRIVER_PATH`"
      
      This reverts commit d0d209fe
      
      .
      
      * Use temporary `DYLINT_DRIVER_PATH` path during tests
      
      * Give `template` variable a speaking name
      
      Co-authored-by: CI system <>
      Co-authored-by: default avatarSergejs Kostjucenko <[email protected]>
      836acbff
  17. Feb 18, 2022
  18. Feb 17, 2022
  19. Feb 16, 2022
    • Andrew Jones's avatar
      Interact with contracts: upload, instantiate and call commands (#79) · 4195197c
      Andrew Jones authored
      * WIP display all events
      
      * Clean up and generalize displaying events
      
      * Fix multiple event new lines
      
      * Fmt
      
      * Create wrapper types for Display, derive Debug for originals
      
      * Control indentation of pretty printing
      
      * Indent events display
      
      * More tuning of runtime events pretty printing
      
      * Fmt
      
      * Use Display impls for printing events
      
      * Add DisplayTransferEvent
      
      * Namespace events
      
      * Add CodeStored and Instantiated events
      
      * Refactor Deploy command and use verbosity for events display
      
      * Fix up string message return
      
      * Code hash LowerHex and println after events
      
      * Use LowerHex api for Bytes
      
      * Parse code hash with 0x prefix
      
      * Fmt
      
      * Spawn canvas node for integration test
      
      * Increment attempts
      
      * Get the test running with spawned canvas node
      
      * Instantiate deploy works with manual node
      
      * Test works locally and cleans up temp dir
      
      * Fmt
      
      * Fix duplicate import
      
      * Build before testing so cargo-contract bin available for testing
      
      * Separate line for build
      
      * Extract decode_hex util fn
      
      * WIP failing Literal tests for SS58 account ids
      
      * Upgrade to nom 0.6
      
      * Use nom error in custom error, impl FromStr
      
      * Fmt
      
      * Update lockfile after merge
      
      * Make TryFrom take reference for verbosity conversion
      
      * Fix parsing literals
      
      * Plumbing for custom encoders
      
      * Implement AccountId32 custom encoder
      
      * Refactor: extract env types
      
      * Test for encoding ss58 literal
      
      * Fmt and add back failing struct test
      
      * Use AccountId type in test
      
      * TEMP: Use github dependencies of scale-info and ink
      
      * Err for 256 bit ints
      
      * Use new registry type enumeration
      
      * Extract type lookup and introduce Encoder
      
      * WIP: extract Transcoder and implement env type decoding
      
      * Implement env type decoding, removes generic Input.
      
      Custom env decoders are trait objects so can't have generic type parameters on its decode method.
      
      * Fix AccountId decoding, add some debug logging
      
      * Test for different AccountId aliasing
      
      * Passing tests for AccountId encoding and fmt
      
      * Update scale-info and ink deps, patch ink deps for now
      
      * Update scale-info and ink deps, patch ink deps for now
      
      * Remove extrinsics feature
      
      * Dependencies
      
      * More deps
      
      * Cargo.lock
      
      * Cargo.lock
      
      * WIP upgrading to latest subxt and scale-info
      
      * More upgrading to latest subxt
      
      * Fix more errors
      
      * Fix up extrinsic commands
      
      * Refactor transcoder decode, handle Compact
      
      * Refactor transcoder encode, initial compact support
      
      * Fmt
      
      * Fix metadata file loading
      
      * Constructor arg rename
      
      * Enable tokio
      
      * Make instantiate work
      
      * Update contracts runtime from substrate-contracts-node
      
      * Fix warnings and add todo
      
      * Update subxt
      
      * Add missing import
      
      * Use explicit substrate branch to match subxt import
      
      * Remove sp_rpc dependency
      
      * Remove sp_rpc dependency
      
      * Use metadata to decode events
      
      * Fmt
      
      * Pretty print events
      
      * WIP custom transcoders for events
      
      * Custom transcoders for events working
      
      * Fix some warnings
      
      * Slim down bat dependency
      
      * Decode contract events
      
      * Use correct field for instantiated contract account
      
      * Fix warnings
      
      * Fix multiple line warning
      
      * Update contracts RPC types
      
      * Fmt
      
      * Fix deploy contract account
      
      * Use ink! master branch
      
      * Oops
      
      * Remove patches
      
      * Bump ink deps to rc6
      
      * Update to latest subxt
      
      * Update to latest subxt
      
      * Fix errors after subxt update
      
      * Fix instantiate_with_code.rs
      
      * Update subxt
      
      * Add deserializing context
      
      * Fmt
      
      * Expose public metadata fields
      
      * Implement full metadata decoding
      
      * Cargo.lock
      
      * Update calls to work with storage_gas_limit from https://github.com/paritytech/substrate/pull/10082
      
      
      
      * Cargo.lock
      
      * Update to latest subxt
      
      * Fmt
      
      * WIP unify instantiate command
      
      * Fix call command errors
      
      * Main warning unused result
      
      * Call and instantiate warns and errors and fmt
      
      * Update to ink rc7
      
      * Default to local contract wasm if none specified
      
      * Change instantiate endowment to value
      
      * Use latest subxt branch
      
      * Update to latest subxt
      
      * Unify call and instantiate arg names
      
      * Instantiate and call args consistency
      
      * Add todo comment for encoding message args
      
      * Refactor, tidy up call and instantiate
      
      * Display decoded contract event separately
      
      * Register env types with and without aliases
      
      * Add pretty print flag
      
      * WIP add upload
      
      * Wiring up upload code extrinsic
      
      * Download latest contracts node metadata
      
      * Wire up upload command and WIP manifest path
      
      * in! default features and cargo update
      
      * Add manifest path argument for extrinsics
      
      * Only fetch crate metadata once
      
      * Fmt
      
      * Cargo upgrade
      
      * Update substrate dependencies
      
      * Pretty print code upload dry run values
      
      * Extract name value println macro
      
      * Print code hash from upload extrinsic
      
      * Refactor upload code command
      
      * Pretty print instantiate results
      
      * Add salt arg to instantiate command
      
      * WIP custom events display, removes big bat dep
      
      * Extract method for printing RPC contract result
      
      * Ugly printing of events
      
      * Fix contract event decoding
      
      * Fmt
      
      * Pretty print event fields
      
      * Only print event fields if verbose
      
      * More event prettification
      
      * Fmt
      
      * Resolve some todos
      
      * Remove some code comments, moved to follow ups in PR
      
      * Refactor: extract compact encoding function
      
      * Fix storage_deposit_limit and add todo re: compact primitives
      
      * Add todo re: compact primitives
      
      * Cargo.lock
      
      * Use released substrate crates and subxt master
      
      * Fix encoding compact, inline for each uint
      
      * Fix encoding compact, inline for each uint
      
      * Add extrinsics markdown outline
      
      * Dynamic compact encoding
      
      * Replace bitvec todos with errs, added follow up in PR
      
      * Remove todo about friendly encoding error, add to PR follow ups
      
      * Rename codec to scale for test contract, fix some transcoding tests
      
      * Attempt to fix linking with __ink_generate_metadata
      
      * Update to ink rc8
      
      * Add test for out of order composite fields
      
      * Update ink metadata version
      
      * Update ink metadata types and methods
      
      * Fix metadata error message
      
      * Add std feature to fix test compilation with inline contract
      
      * Fix out of order struct fields
      
      * Improve encoding of field error message
      
      * Fmt imports
      
      * Rename TypeLookupId to TypeLookup
      
      * Remove alias matching for custom env type transcoding
      
      * Fix variant encoding for maps and out of order fields
      
      * Add failing test & impl for compact struct transcoding
      
      * Use released version of pallet-contracts primitives
      
      * WIP attempting to fix compact struct transcoding
      
      * Fix compact struct decoding
      
      * Add todo for integration test
      
      * Renamed SconParseError
      
      * Failing test for invalid integer
      
      * Use nom-supreme for combinators, error handling
      
      * Use released subxt
      
      * Refactor integer parsing
      
      * Refactor char parsing
      
      * Refactor seq parsing
      
      * Refactor tuple parsing
      
      * Refactor unit tuple parsing
      
      * Refactor map parsing
      
      * Refactor bytes parsing
      
      * Remove final nom `map` free function usage
      
      * Use some postfix recognizes
      
      * Remove final recognize combinator
      
      * Use postfix value combinator
      
      * Use opt postfix combinator
      
      * Move entry point and top level parser to the top of the file
      
      * Inline some string parsers
      
      * Inline some local helper functions
      
      * Fix failing integer tests
      
      * Fix Rust ident parsing
      
      * Fix up integration test
      
      * Make clippy happy
      
      * Fmt
      
      * Clippy clippy clippy
      
      * Ignore integration test for CI
      
      * Support parsing underscore separators for integer literals
      
      * + sign prefix parses to signed int
      
      * Allow underscores for balance CLI args
      
      * Add helper function for handling runtime errors
      
      * Add helper function for displaying runtime module errors
      
      * Elide lifetime
      
      * Add some basic module level docs for transcoding
      
      * Improve error message where metadata file not found
      
      * Adding common args section to extrinsics.md
      
      * Move --dry-run to extrinisic opts and more docs
      
      * Move --storage-deposit-limit to ExtrinsicOpts, move ExtrinsicOpts to extrinsics.
      
      * Add instantiate docs
      
      * Add call docs
      
      * Update Extrinsics docs
      
      * Update Cargo.toml
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * Don't wait for finalization before displaying transaction success
      
      * Update docs/extrinsics.md
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * Remove static error detail lookup, since it may be inaccurate if the target chain differs
      
      * CLIPPY
      
      * Print debug message lines
      
      * Display not Debug return value
      
      * Fmt
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      4195197c
  20. Feb 14, 2022
  21. Jan 20, 2022
  22. Jan 18, 2022
  23. Dec 20, 2021
  24. Dec 17, 2021
  25. Nov 29, 2021
  26. Nov 16, 2021
  27. Nov 08, 2021
    • achimcc's avatar
      Offline flag (#356) · 90813a5f
      achimcc authored
      * add offline flag to build mode
      
      * add network enum and interpret --offline flag
      
      * support offline flag for metadata generation
      
      * cargo fmt
      
      * cargo clippy
      
      * fix tests
      90813a5f
  28. Aug 12, 2021
    • Michael Müller's avatar
      Release v0.14.0 (#327) · 7bbc95ce
      Michael Müller authored
      * Add log output
      
      * Add #326 to changelog
      
      * Bump version
      
      * Fix changelog
      v0.14.0
      7bbc95ce
    • Hernando Castano's avatar
      Add option for JSON formatted output (#324) · 259b716e
      Hernando Castano authored
      
      
      * Spit out JSON results at the end of a build
      
      * Mark `--output_json` as conflicting with `--verbose`
      
      * Override verbosity to `quiet` when outputting JSON
      
      * Update tests to include `OutputType` param
      
      * Temporarily please Clippy
      
      * Add some logging
      
      This is gonna fail, but I want to see what the CI has to say.
      
      * Remove TODO so that format CI step passes
      
      * Return result from `serialize_json`
      
      * Make JSON test a sanity check
      
      * Mention this PR in the CHANGELOG
      
      * Implement `Default` for a few build options
      
      * Address Clippy's `too_many_arguments` lint
      
      * Use `ExecuteArgs` in tests
      
      * Make `manifest_path` field public instead
      
      Clippy was complaining about `dead_code` when building
      in non-test mode, so I'm going with this instead.
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarMichael Müller <[email protected]>
      
      * Sanity check `BuildResult'` JSON serialized form
      
      * Add `execute()` test back
      
      * Import `OutputType` in tests
      
      Co-authored-by: default avatarMichael Müller <[email protected]>
      259b716e
    • Alexander Theißen's avatar
      Do not strip out panic messages in debug builds (#326) · 7bc60974
      Alexander Theißen authored
      * Do not strip out panic messages in debug builds
      
      * Build code_only test in release mode
      7bc60974
  29. Aug 04, 2021
  30. Aug 03, 2021
    • Michael Müller's avatar
      Fix path issue for Windows (#313) · c76ffc6a
      Michael Müller authored
      * Run tests for Windows
      
      * Add test to reproduce error
      
      * Canonicalize paths in test
      
      * Revert me: Run only necessary tests
      
      * Join `Path`'s to avoid OS-specific separators
      
      * Revert me: Debug output
      
      * Fix workflow
      
      * Revert me: Debugging
      
      * Windows debugging
      
      * More debugging
      
      * Debugging
      
      * Debugging
      
      * Add nightly
      
      * Debugging
      
      * Debugging
      
      * Debugging
      
      * Debugging
      
      * Debugging
      
      * Fix commands
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Debug path
      
      * Remove eprintln's
      
      * Test should fail
      
      * Test should run
      
      * Test should run
      
      * Restore Windows testing
      
      * Apply `cargo fmt`
      
      * Fix default
      
      * Remove debug stuff
      
      * Run tests only `master`
      
      * Update changelog
      c76ffc6a