Tadeo Hepperle
40339b3415
add no_default_substitutions to the macro and cli ( #936 )
2023-04-27 15:59:57 +01:00
James Wilson
464b4432cf
Move all deps to workspace toml ( #932 )
...
* Move all deps to workspace toml
* cargo fmt and codec 3.4, removing now unneeded 'full' feature
* add wasm-tests to workspace and fix subxt inheritng
* cargo fmt
* wasm-test thing can't be in workspace so revert that
* remove unwanted target dir from wasm-tests
2023-04-26 10:31:59 +01:00
Piotr Mikołajczyk
d3e20e993b
Opt out from default derives and attributes ( #925 )
...
* No default derives
* Clippy
* Clippy
* Review
* Review
* Typo
2023-04-24 14:01:21 +01:00
dependabot[bot]
ef804de4ce
Bump clap from 4.2.2 to 4.2.4 ( #924 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.2 to 4.2.4.
- [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.2.2...v4.2.4 )
---
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-04-24 09:52:58 +01:00
Alexandru Vasile
59d195d4ad
metadata: Use v15 internally ( #912 )
...
* Update frame-metadata to v15.1.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Enable V15 unstable metadata in frame-metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Move validation hashing to dedicated file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use sp-metadata-ir from substrate to work with metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Revert using sp-metadata-ir in favor of conversion to v15
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Convert v14 to v15
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Use v15 for validation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Use v15 for codegen
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata/bench: Use v15
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust to v15 metadata
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Improve documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* force CI
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Use HASH_LEN
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadta: Remove `LatestRuntimeMetadata` type alias
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Remove `metadata_to_latest` to avoid pancis
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-04-20 17:59:28 +03:00
dependabot[bot]
aec1cc52c1
Bump clap from 4.2.1 to 4.2.2 ( #915 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.1 to 4.2.2.
- [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.2.1...v4.2.2 )
---
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-04-17 12:38:53 +03:00
dependabot[bot]
62dce16efa
Bump serde_json from 1.0.95 to 1.0.96 ( #914 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.95...v1.0.96 )
---
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-17 12:38:46 +03:00
James Wilson
2a4da618a0
Release 0.28 ( #906 )
...
* wip changelog
* Bump versions and write changelog for 0.28
* typo and wee tweaks
2023-04-12 09:34:59 +01: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
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]
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
James Wilson
7c252fccf7
cargo fmt with stable defaults ( #876 )
2023-03-21 16:53:47 +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]
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
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]
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
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
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 )
2023-02-15 17:45:47 +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
2023-02-13 16:13:17 +00:00
dependabot[bot]
0fd3b9afb4
Bump serde_json from 1.0.92 to 1.0.93 ( #822 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.92...v1.0.93 )
---
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-02-13 11:48:03 +00:00
dependabot[bot]
45bfe6866d
Bump serde_json from 1.0.91 to 1.0.92 ( #813 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.91...v1.0.92 )
---
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-02-06 11:11:36 +00:00
dependabot[bot]
d7ad96aec7
Bump clap from 4.1.3 to 4.1.4 ( #809 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.1.3 to 4.1.4.
- [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.3...v4.1.4 )
---
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-01-30 10:21:18 +00:00
dependabot[bot]
d820ab81f5
Bump tokio from 1.24.2 to 1.25.0 ( #808 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.2 to 1.25.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits/tokio-1.25.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-01-30 10:21:06 +00:00
James Wilson
ce0a82e322
Remove unneeded Config bounds and BlockNumber associated type ( #804 )
...
* remove unneeded Config bounds and BlockNumber associated type
* clippy and fmt
2023-01-27 14:01:47 +00:00
James Wilson
d92352ad73
Prep for releasing 0.26.0 ( #802 )
...
* Prep for releasing 0.26.0
* link to new RPC spec
2023-01-24 16:55:27 +00:00
Igor Matuszewski
977f2a3333
Allow for remapping type parameters in type substitutions ( #735 )
...
* feat!: Allow for remapping type parameters in type substitutions
* chore: cargo fmt
* chore: cargo clippy
* chore: Remove some old code
* a little tidy
* address comment nit
Co-authored-by: James Wilson <james@jsdw.me >
2023-01-19 10:49:57 +00:00
James Wilson
08d6640a6c
Expose version info in CLI tool with build-time obtained git hash ( #787 )
...
* version info with built-time obtained git hash
* clippy
* rerun-if-changed properly and handle git command failing
* cargo fmt
2023-01-17 17:29:12 +00:00
Francisco Miguel García
a80d6cfd30
Add --derive-for-type to cli ( #708 )
...
* Add `--derive-for-type` to cli
* Remove clippy warnings
2022-11-23 15:25:32 +00:00
Igor Matuszewski
523534464f
Add and adapt a publish.sh utility script from jsonrpsee ( #723 )
...
* refactor: Explicitly indicate which crates should be published
* chore: Add a convenience publish.sh script
* Update scripts/publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update scripts/publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* fix: Don't use unsupported -P flag in BSD grep in publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-11-23 12:30:13 +01:00
Niklas Adolfsson
428bc35ed8
chore: prep release v0.25 ( #717 )
...
* bump versions 0.25
* update changelog
* adjust RELEASE.md
* fix weird formatting
* rephrase bad english
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-11-16 16:10:31 +01:00
Niklas Adolfsson
14e8e6f6b6
add wasm support ( #700 )
...
* get started
* make it work again
* make it compile again
* Use async-wasm-feature of jsonrpsee from the master branch
* Ensure we enable JS feature of getrandom for the wasm target
* Update subxt/src/lib.rs
* update jsonrpsee
* fix CI
* cargo fmt
* fix wasm test
* fix grumbles
* exclude wasm-tests from workspace
To avoid leaking `jsonrpsee-web` feature into the workspace
Co-authored-by: Igor Matuszewski <xanewok@gmail.com >
2022-11-14 11:45:21 +00:00
James Wilson
d03e599684
Add runtime_metadata_url to pull metadata directly from a node ( #689 )
...
* Allow metadata to be pulled directly from a node with runtime_metadata_url
* Update docs
* https too, and abstract out block_on fn
* tweak a comment in the example
2022-10-19 11:07:12 +01:00
Andrew Jones
6cfd3bb511
Upgrade clap to v4 ( #678 )
2022-10-03 18:40:06 +01:00
James Wilson
4722028ce7
Refactor CLI tool to give room for growth ( #667 )
...
* refactor CLI commands for easier expansion
* add license headers
* cargo fmt
2022-09-27 12:29:34 +01:00
Michael Müller
f115ff975c
Allow specifying the subxt crate path for generated code ( #664 )
...
* Allow specifying the `subxt` crate path for generated code
* Make `clippy` happy
* Add documentation
* Improve optics
* Remove custom crate path test
* Implement comments
* Update comment
* Make `crate_path` property instead of argument
* Remove unnecessary derives
* Remove `Default` impls in favor of explicit constructors
* Remove unnecessary `into`
* Update codegen/src/types/mod.rs
Co-authored-by: Andrew Jones <ascjones@gmail.com >
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2022-09-27 11:41:36 +01:00
James Wilson
75e383dfcf
Prep for 0.24 release ( #663 )
...
* Bump versions and update changelog
* tweak text
* merge a couple of related changelog entries
2022-09-22 17:16:04 +01:00
James Wilson
a3ea12663e
Update version, tweak docs, and write up changelog ( #616 )
2022-08-11 15:04:50 +01:00
dependabot[bot]
6a2aabc2a6
Update jsonrpsee requirement from 0.14.0 to 0.15.1 ( #603 )
...
Updates the requirements on [jsonrpsee](https://github.com/paritytech/jsonrpsee ) to permit the latest version.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.14.0...v0.15.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-01 10:31:18 +01:00
James Wilson
c55b7ba3e3
dual license ( #590 )
2022-06-28 14:09:41 +01:00
Alexandru Vasile
f97b8963f5
Add support for ws in subxt-cli ( #579 )
...
* cli: Support ws or wss connection via jsonrpsee
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Handle `http` connections via `ureq`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Use Jsonrpsee HTTP client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Remove `node.to_string()` calls
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2022-06-24 15:50:27 +03:00
Alexandru Vasile
c07b9e4be8
Release v0.22.0 ( #574 )
...
* Bump versions to `v0.22.0`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add missing crates for releasing chore
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog message & remove non-user facing PRs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me >
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: James Wilson <james@jsdw.me >
2022-06-20 17:07:38 +03:00
Alexandru Vasile
e3732e354f
Add subxt documentation ( #546 )
...
* Documentation for cli crate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify calls generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify events generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify constants generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify storage generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add lib documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Remove `-f bytes` as this is the default
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt/client: Add examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lib_doc: Add documentation to dedicated file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Link documentation from file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add more documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add Storage example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add rpc documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Add documentation for errors
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add documentation for the `extrinsic` module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add documentation for `events` module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add `Static Metadata Validation` section
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add `Runtime Updates` section
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix link to documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* readme: Remove hardcoded versions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move documentation to dedicated folder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Spaces between examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* More details for `types_mod_ident`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add note for RuntimeGenerator
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update codegen/src/api/constants.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/metadata/metadata_type.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/storage.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix cargo clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update call example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add example for fetching constants
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Link to examples in subxt.md
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/constants.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/constants.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update subxt/src/extrinsic/mod.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update subxt/src/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update examples/examples/balance_transfer.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/extrinsic/mod.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/rpc.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/updates.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update docs example with `PolkadotExtrinsicParams`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Remove extrinsic extra documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Remove similar transfer example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
2022-06-14 14:23:02 +03:00