Alexandru Vasile
3c2d78a416
Use sp-metadata-ir from substrate to work with metadata
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-04-11 19:53:14 +03:00
Alexandru Vasile
073aea90da
metadata: Move validation hashing to dedicated file
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-04-10 16:41:38 +03:00
Alexandru Vasile
dd89dd6b3c
Enable V15 unstable metadata in frame-metadata
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-04-10 16:35:57 +03:00
Alexandru Vasile
8af6a4038e
Update frame-metadata to v15.1.0
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-04-10 16:23:39 +03:00
Tadeo Hepperle
a69b3e45e7
wait_for_finalized behavior if the tx dropped, usurped or invalid ( #897 )
...
* consider dropped, invalid and usurped as finalized
* test structure
* unit tests
* move tests to tx_progress file
* integrate pr review comments
* integrate pr review comments (including revert)
2023-04-06 13:23:56 +02:00
Alexandru Vasile
8a7c17289a
Metadata: Retain a subset of metadata pallets ( #879 )
...
* Update cargo.lock to use scale-info v2.4.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Retain only a subset of the metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Generate top level Event
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Only retain DispatchError
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Export just the retain method
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Retain pallets
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Do not include extrinsic metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* retain: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* test-runtime: Generate per pallet metadata and rs file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ui-tests: Check per metadata generated files
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Revert "test-runtime: Generate per pallet metadata and rs file"
This reverts commit 725a2e5f8339a795892dbbd2df19e49330ae3a9b.
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ui-tests: Adjust path to metadata file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ui-tests: Change drop order to keep `PalletMetadata` around
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update metadata/src/retain.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* retain: Keep extrinsic type
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Introduce `MetadataSource`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Use `MetadataSource` helper
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Use `FileOrUrl` flatten command argument
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* retain: Do not include generic type params in retained metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust subxt to scale-info v2.5.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update scaleinfo to v2.5.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove deprecated fn
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* benches: Use inner fields of scale info
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* address nits, and strip RuntimeCall type instead of trying to filter out use of it for better overall wins/clarity
* fix UI test
* move utils out of commands folder and fix clippy etc
* address nits
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
2023-04-04 16:16:51 +01:00
James Wilson
c08eb6c8f1
Update scale-info to 2.5.0 ( #896 )
...
* Upodate scale-info to 2.5.0
* A couple more clippy fixes
* more deprecation things that appeared
2023-04-03 12:52:25 +01:00
dependabot[bot]
34f0521fd2
Bump serde from 1.0.158 to 1.0.159 ( #891 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.158 to 1.0.159.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 11:54:51 +01:00
dependabot[bot]
9d40391261
Bump tokio from 1.26.0 to 1.27.0 ( #893 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.26.0...tokio-1.27.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 11:00:16 +01:00
dependabot[bot]
afa0f8b399
Bump proc-macro2 from 1.0.54 to 1.0.55 ( #894 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.54 to 1.0.55.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.54...1.0.55 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:53:25 +01:00
dependabot[bot]
851ce208ed
Bump serde_json from 1.0.94 to 1.0.95 ( #895 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.94 to 1.0.95.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.94...v1.0.95 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:53:04 +01:00
James Wilson
a2b8dde5e6
Add 'Static' type and improve type substitution codegen to accept it ( #886 )
...
* Add Static type which defers to Encode/Decode and impls EncodeAsType/DecodeAsType
* rename to static_type and impl Deref/Mut
* Improve type substitution in codegen so that concrete types can be swapped in
* A couple of comment tweaks and no need for a macro export
* Extend type substitution logic to work recursively on destination type
* cargo fmt
* Fix a couple of comments
* update ui test outpuot
* Add docs and missing_docs lint
* Add test for replacing multiple of Ident
* Update codegen/src/error.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* update copyright year and fix ui test
* simplify another error
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-03-31 16:56:19 +01:00
dependabot[bot]
42bcddeecb
Bump baptiste0928/cargo-install from 1 to 2 ( #880 )
...
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install ) from 1 to 2.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases )
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md )
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 11:52:47 +01:00
dependabot[bot]
d23e36454c
Bump proc-macro2 from 1.0.52 to 1.0.54 ( #881 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.52 to 1.0.54.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.52...1.0.54 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 11:29:27 +01:00
dependabot[bot]
6b08b6869d
Bump regex from 1.7.1 to 1.7.3 ( #883 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.1 to 1.7.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.7.1...1.7.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 12:22:11 +02:00
dependabot[bot]
3f67b2c307
Bump scale-info from 2.3.1 to 2.4.0 ( #884 )
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/compare/v2.3.1...v2.4.0 )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 10:45:42 +01:00
James Wilson
b5194be5a2
Improve Dispatch Errors ( #878 )
...
* better dispatch errors
* dry_run to use same DispatchError
* fix dry_run_fails; use correct transfer amount
* Hide ModuleError impl and avoid pulling details from metadata unless user needs them
* fix tests
* actually fix the tests (hopefully..)
* Add a couple more DispatchError test cases
* Add a comment about where the error was copied from
* Also expose a way to obtain the raw module error data
* Remove redundant variant prefixes
* explicit lifetime on From<str> for clarity
* fmt
2023-03-23 09:50:44 +00:00
James Wilson
7c252fccf7
cargo fmt with stable defaults ( #876 )
2023-03-21 16:53:47 +00:00
James Wilson
c63ff6ec6d
Use scale-encode and scale-decode to encode and decode based on metadata ( #842 )
...
* WIP EncodeAsType and DecodeAsType
* remove silly cli experiment code
* Get things finally compiling with EncodeAsType and DecodeAsType
* update codegen test and WrapperKeepOpaque proper impl (in case it shows up in codegen)
* fix tests
* accomodate scale-value changes
* starting to migrate to EncodeAsType/DecodeAsType
* static event decoding and tx encoding to use DecodeAsFields/EncodeAsFields
* some tidy up and add decode(skip) attrs where needed
* fix root event decoding
* #[codec(skip)] will do, and combine map_key stuff into storage_address since it's all specific to that
* fmt and clippy
* update Cargo.lock
* remove patched scale-encode
* bump scale-encode to 0.1 and remove unused dep in testing crate
* update deps and use released scale-decode
* update scale-value to latest to remove git branch
* Apply suggestions from code review
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
* remove sorting in derives/attr generation; spit them out in order given
* re-add derive sorting; it's a hashmap
* StaticTxPayload and DynamicTxPayload rolled into single Payload struct
* StaticStorageAddress and DynamicStorageAddress into single Address struct
* Fix storage address byte retrieval
* StaticConstantAddress and DynamicConstantAddress => Address
* Simplify storage codegen to fix test
* Add comments
* Alias to RuntimeEvent rather than making another, and prep for substituting call type
* remove unnecessary clone
* Fix docs and failing UI test
* root_bytes -> to_root_bytes
* document error case in StorageClient::address_bytes()
---------
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
2023-03-21 15:31:13 +00:00
Piotr Mikołajczyk
c9527abaa8
Generate only runtime types ( #845 )
...
* Typos
* Add new macro parameter. Refactor.
* Code generation
* Inline `runtime_types` module
* Documentation
* Can't inline so easily
* Example
* Remove leftover
* Improve clarity of the example
2023-03-21 14:44:14 +00:00
dependabot[bot]
29a4a48dcc
Bump thiserror from 1.0.39 to 1.0.40 ( #866 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-21 13:14:52 +00:00
dependabot[bot]
44970891de
Bump clap from 4.1.8 to 4.1.11 ( #869 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.1.8 to 4.1.11.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.8...v4.1.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-21 13:14:30 +00:00
James Wilson
4f1d9b98f8
Fix tests against nightly Substrate ( #873 )
...
* variant change in latest codegen
* fmt
2023-03-21 13:02:59 +00:00
Piotr Mikołajczyk
2fb7dfd2bf
Fix integration test for balances ( #871 )
...
* Fix integration test
* Fix extrinsic encoding
* Units
* comment out dry_run and transfer_error
* fmt
* imports
* imports
---------
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-20 15:28:09 +00:00
James Wilson
ae63d3d4cc
Support deserializing block number in header from hex or number ( #863 )
...
* test deserializing block number from hex or number
* cargo fmt
2023-03-18 09:53:34 +01:00
James Wilson
f2b03d8f2a
Expose signer payload to allow external signing ( #861 )
...
* create_partial et al to expose the signer payload and call data just prior to being signed
* remove unnecessary Result
* fmt, make it easier to pass in signature bytes, and add a test for this flow
* remove unnecessary deref
2023-03-15 13:28:08 +00:00
Alexandru Vasile
de247f9891
artifacts: Remove polkadot_tmp.scale artifact ( #860 )
...
* artifacts: Remove polkadot_tmp.scale
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* gitignore: Ignore anything from artifacts but `polkadot.scale`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* gitignore: Revert artifacts rule
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-03-13 18:57:19 +02:00
dependabot[bot]
cf7975c1a4
Bump futures from 0.3.26 to 0.3.27 ( #856 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.26 to 0.3.27.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.26...0.3.27 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-13 13:38:19 +01:00
dependabot[bot]
184f85fb26
Bump serde from 1.0.152 to 1.0.155 ( #857 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.155.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.155 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-13 13:38:03 +01:00
dependabot[bot]
656e696bc8
Bump darling from 0.14.3 to 0.14.4 ( #858 )
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.3...v0.14.4 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-13 13:37:48 +01:00
dependabot[bot]
86a6f4161d
Bump proc-macro2 from 1.0.51 to 1.0.52 ( #855 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-13 13:37:20 +01:00
Alexandru Vasile
a02aa20a41
testing: Fix clippy ( #859 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-03-13 12:06:13 +00:00
Niklas Adolfsson
d4545de8cf
fix: re-export sp_core and sp_runtime ( #853 )
2023-03-10 10:25:49 +01:00
dependabot[bot]
d425b3baa7
Bump wasmtime from 6.0.0 to 6.0.1 ( #852 )
...
* Bump wasmtime from 6.0.0 to 6.0.1
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v6.0.0...v6.0.1 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
* revert rand downgrade
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-03-09 13:31:12 +01:00
dependabot[bot]
2fc3f03349
Bump thiserror from 1.0.38 to 1.0.39 ( #850 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.39 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 13:13:42 +02:00
dependabot[bot]
f8399ca81f
Bump trybuild from 1.0.77 to 1.0.79 ( #849 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.77 to 1.0.79.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.77...1.0.79 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 12:48:41 +02:00
dependabot[bot]
f2595df507
Bump serde_json from 1.0.93 to 1.0.94 ( #846 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.94 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 12:48:24 +02:00
dependabot[bot]
9ed042812f
Bump tokio from 1.25.0 to 1.26.0 ( #847 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.25.0...tokio-1.26.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 12:48:08 +02:00
dependabot[bot]
159e1be10b
Bump clap from 4.1.7 to 4.1.8 ( #848 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.7...v4.1.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 12:47:47 +02:00
Alexandru Vasile
a7b45ef1d1
codegen: Add codegen error ( #841 )
...
* codegen: Add codegen error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Use codegen error instead of aborts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Remove `proc-macro-error` dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro/subxt: Transform codegen error into compile_error!
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Pretty printing for `CodegenError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update cargo.lock
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust testing for codegen error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Fix documentation example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Export `CodegenError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Use collect::<Result<_>, _>()
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Adjust comment regarding error printing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Improve error messages
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-03-03 19:57:46 +02:00
Alexandru Vasile
5320ca9d55
codegen: Opt out of documentation ( #843 )
...
* codegen: Opt-out for API documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Add `--no-docs` flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Check no documentation was generated
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update cargo.lock
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust testing for the new codegen API
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Ensure `subxt` macro does not contain documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Expose documentation flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* expose_documentation => generate_docs
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-02 21:35:02 +02:00
Piotr Mikołajczyk
1c5faf3f8f
Bump Substrate dependencies ( #840 )
2023-02-28 11:00:15 +01:00
dependabot[bot]
924acedf6e
Bump Swatinem/rust-cache from 2.2.0 to 2.2.1 ( #839 )
...
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/Swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Swatinem/rust-cache/compare/359a70e43a0bb8a13953b04a90f76428b4959bb6...6fd3edff6979b79f87531400ad694fb7f2c84b1f )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 10:00:10 +00:00
dependabot[bot]
61457ea873
Bump syn from 1.0.107 to 1.0.109 ( #838 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.107 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...1.0.109 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 10:55:56 +01:00
Michael Müller
529fd8a1ef
Add ink! as a user of subxt ( #837 )
...
* Add ink! as a user of `subxt`
* Update README.md
2023-02-24 14:59:37 +01:00
Qinxuan Chen
af00f68962
chore: use workspace inheritance for package info ( #832 )
...
* chore: use workspace inheritance for package info
* add rust-version field into workspace package
* .workspace = true
---------
Co-authored-by: James Wilson <james@jsdw.me >
2023-02-21 11:53:32 +00:00
dependabot[bot]
7a2df22312
Bump clap from 4.1.4 to 4.1.6 ( #830 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.1.4 to 4.1.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.4...v4.1.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-21 11:23:52 +00:00
Léa Narzis
6d3c377c16
bump version 0.27.1 ( #827 )
v0.27.1
2023-02-15 17:45:47 +00:00
Léa Narzis
0c7f850549
Add find_last for block types ( #825 )
...
* add find_last for block types
* fix pres for find_last for block types
2023-02-14 17:46:29 +00:00
James Wilson
7b0e06cf8a
Release v0.27.0 ( #824 )
...
* Bump substrate deps
* Bump to 0.27.0
* update changelog
* Clone and Debug on TxPayload types
* move item to Changed
* remove chore entirely
v0.27.0
2023-02-13 16:13:17 +00:00