Niklas Adolfsson
f363f77a60
chore: fix clippy lints ( #1882 )
2024-12-10 13:08:40 +01:00
Niklas Adolfsson
f5e9ce0d2c
remove substrate compat ( #1850 )
...
* remove substrate compat
* add hacky example
* simplify substrate-compat example
* simplify substrate-compat example
* cargo fmt
* fix build
* add more examples
* fix nit
* fix test build
* Update subxt/examples/substrate_compat_signer.rs
Co-authored-by: James Wilson <james@jsdw.me >
* keep only polkadot signer example
* remove more substrate compat related stuff
* fix example
* link to substrate signer example in book
* Update subxt/src/book/usage/transactions.rs
* Update subxt/src/book/usage/transactions.rs
* address grumbles
* fix nits
---------
Co-authored-by: James Wilson <james@jsdw.me >
2024-11-27 16:46:38 +01:00
James Wilson
057c847474
Fix unstable-light-client + ChainHeadBackend tx events ( #1865 )
...
* Fix unstable-light-client + ChainHeadBackend tx events
* Add note that Broadcasted event should no longer be returned at all
* fmt
2024-11-13 15:26:11 +01:00
James Wilson
f861adf5f0
When native feature is enabled, we need polkadot-sdk/std for eg examples to work ( #1864 )
2024-11-13 10:59:01 +00:00
paritytech-subxt-pr-maker[bot]
cb9571d7a6
Update Artifacts (auto-generated) ( #1860 )
...
* Update Artifacts (auto-generated)
* fix assethub example
* update Cargo.lock for wasm tests
* cargo fmt
* fix subxt cli tests
* disable failing wasm tests
* add issue link for disabled test
---------
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-11-11 18:34:02 +01:00
PG Herveou
251a925da2
fix ( #1843 )
2024-10-26 02:26:43 +02:00
Niklas Adolfsson
dc0795b3b9
move fetch metadata to a separate crate subxt_utils_fetchmetadata ( #1829 )
...
* macros: feature-gate jsonrpsee/fetch metadata url
* make CI happy
* Update codegen/src/error.rs
* extract `fetch-metdata` to separate crate
* add missing license headers
* introduce subxt-utils crate
* add missing files
* codegen: remove unused hex crate
* fix test build
* move subxt_utils -> subxt_utils_fetchmetadata
* cargo fmt
* runtime-path -> runtime-metadata-path
* Update utils/fetch-metadata/src/lib.rs
2024-10-24 14:45:39 +01:00
James Wilson
15cf58f723
Make it clearer which extrinsic failed to decode ( #1835 )
...
* Add an extrinsic index to decode errors so that we know which extrinsic failed
* Fix subxt::BlockError to align with subxt_core::BlockError
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-10-23 18:03:32 +02:00
Niklas Adolfsson
9b5523e4b0
chore(deps): bump scale family crates, primitive-types and impl-serde ( #1832 )
...
* chore(deps): bump scale-encode and scale-decode
* Update Cargo.toml
* Update Cargo.toml
* Update Cargo.toml
* update Cargo.lock
* bump scale-typegen
* use primitive_types::H256
* cargo fmt
* remove old darling hack
2024-10-22 19:23:38 +02:00
Niklas Adolfsson
418bd88e62
chore(deps): replace instant with web-time ( #1830 )
...
* chore(deps): replace `instant` with `web-time`
Close https://github.com/paritytech/subxt/issues/1597
* fix build
* fix build v2
* cargo fmt
2024-10-22 15:54:54 +02:00
Niklas Adolfsson
0e86993cd7
deps: use polkadot-sdk umbrella crate ( #1786 )
...
* deps: unify usage of polkadot-sdk crates
* cargo fmt
* fix macro crate
* make tests compile
* fix more nits
* fix doc tests
* fix more nits
* more nits
* core: remove polkadot-sdk/std
* cargo fmt
* remove polkadot-sdk/std by default
* Update metadata/Cargo.toml
* remove more std
* Update Cargo.toml
2024-10-11 14:19:11 +02:00
Niklas Adolfsson
5bf1756394
chainhead backend: notify subscribers when the backend is closed ( #1817 )
...
* FollowEvent::stop include backend closed or not
* simplify code: enum variant BackendClosed
* check both stopped and backend closed
* simplify hacky code
* remove old test
* Update subxt/src/backend/chain_head/follow_stream_driver.rs
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/follow_stream_driver.rs
2024-10-11 11:14:50 +02:00
Niklas Adolfsson
8f3c0b44fb
stabilize reconnecting-rpc-client ( #1803 )
...
* stabilize reconnecting-rpc-client
* fix build
* remove missed unstable stuff
2024-10-03 20:03:16 +02:00
Niklas Adolfsson
3807b29f36
rpc: stabilize chainhead backend ( #1802 )
...
* rpc: stabilize ChainHeadBackend
* remove noise from example
* add missing features
* make tests compile
* make tests compile v2
* revert stop event
* feature-gate runtime
* Update subxt/Cargo.toml
* add docsrs feature stuff
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/mod.rs
2024-10-03 18:14:38 +02:00
Pavlo Khrystenko
7f9a1a17c0
derive serialize on more types ( #1797 )
...
* derive serialize on more types
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-10-03 11:15:09 +02:00
Niklas Adolfsson
cbf05d1999
fix: error message on rpc errors ( #1804 )
2024-10-01 20:01:07 +02:00
James Wilson
b5209a162e
Use frame-decode for core extrinsic decode logic ( #1785 )
...
* WIP using frame-decode for core extrinsic decode logic
* fmt
* Fix dependabot config
* clippy
* tidy some imports
* Fix a couple of tests
* Update to frame-decode 0.0.7
* fix docs
* Decode exts earlier to avoid doing it every iter/find step
* frame-decode to 0.1.0
* fmt
* clippy
* fix wasm example
* doc test fixes
* Fix test
* Fix a couple of subxt_core tests
2024-10-01 11:21:51 +01:00
Niklas Adolfsson
72db833def
reconn-rpc-client: parse URL before connecting ( #1789 )
...
* reconn-rpc-client: parse URL before connecting
It was hard to figure whether one simply entered a faulty URL
and it tried to reconnect according to the retry policy.
With this change we first parse url and then try to reconnect.
This will detect invalid directly instead of waiting for the retry
to complete.
* clippy fix
* wasm: &str -> Url
2024-09-30 16:40:20 +02:00
Pavlo Khrystenko
8f2c92f0ef
add reconnecting tests for unstable_backend ( #1765 )
...
* add tests for unstable_backend
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-09-30 00:03:11 +02:00
Alexandru Vasile
2471aefe3b
clippy: Remove unneeded ?Sized bound and replace never type with () ( #1758 )
...
* storage: Remove ?Sized bound
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* backend: Use () instead of !
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* backend: Return directly
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-09-06 17:14:40 +02:00
Pavlo Khrystenko
b8735e5782
Add tests for legacy Backend impl ( #1751 )
...
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-09-06 11:26:22 +02:00
Niklas Adolfsson
e4f6f08eb7
fix: nits in tests ( #1750 )
...
* fix: nits in tests
* fix filter nit
2024-09-02 14:13:27 +02:00
Pavlo Khrystenko
3866737b29
Add support for generating metadata from runtime wasm files ( #1720 )
...
closes #1660
2024-09-02 11:07:50 +02:00
Niklas Adolfsson
374193ac31
examples: fix reconnecting logging target ( #1733 )
2024-08-28 19:51:53 +02:00
Niklas Adolfsson
4bc27d4977
refactor: replace reconnecting-jsonrpsee-ws-client with subxt-reconnecting-rpc-client ( #1705 )
...
* feat: add native subxt rpc reconn client
* add jsonrpsee dep to reconnecting-client
* Update subxt/src/backend/rpc/reconnecting_rpc_client/tests.rs
* fix grumbles
* add simple wasm test for reconnecting client
* fix test build
* cargo fmt
* remove reconnect apis
* Update testing/wasm-rpc-tests/tests/wasm.rs
* Update subxt/src/backend/rpc/reconnecting_rpc_client/tests.rs
* Update subxt/src/backend/rpc/reconnecting_rpc_client/tests.rs
2024-08-27 15:18:06 +02:00
James Wilson
83ef8a9f13
Allow tx payloads to be boxed ( #1690 )
...
* Allow tx payloads to be boxed
* Add example of boxed payloads
* explicit box import
* box import at top
* cargo fmt
2024-07-29 17:10:49 +01:00
Niklas Adolfsson
39d130ec69
chore: make it possible override clippy all ( #1698 )
...
* chore: make it possible override `clippy all`
* chore: fix clippy lints
* Update Cargo.toml
2024-07-29 17:43:33 +02:00
James Wilson
c3267ed488
Add hash method to ExtrinsicDetails ( #1676 )
...
* Add hash method to ExtrinsicDetails
* fix test
2024-07-22 13:54:32 +01:00
James Wilson
75bb9b8354
Allow PartialExtrinsic to be held across await points ( #1658 )
...
* Allow PartialTransaction to be held across await points, and example to prove it
* Add comment to tx_parital example
* Fix book link
2024-06-26 13:23:26 +01:00
Niklas Adolfsson
4fcabe211d
chore(deps): bump jsonrpsee from 0.22.5 to 0.23.1 ( #1656 )
...
* chore(deps): bump jsonrpsee from 0.22.5 to 0.23.1
* bump reconnecting-rpc-client dep
2024-06-25 18:05:45 +02:00
Pavlo Khrystenko
5a5c5fc382
Add 20-byte account id to subxt_core ( #1638 )
...
* Add accountId20 impl to subxt_core
closes #1576
2024-06-19 13:31:04 +02:00
James Wilson
dd343be1f3
Add a basic version of the CheckMetadataHash signed extension ( #1590 )
...
* Add a basic version of the CheckMetadataHash signed extension
* update example too
* encode None to signer payload when no hash provided
* Enable decoding txs using CheckMetadataHash, too
* Tidy up decoding CheckMetadataHash
2024-05-23 11:54:53 +02:00
James Wilson
8c6452e22a
Prep for 0.36.0 release ( #1587 )
...
* Prep for 0.36.0 release
* Stabilise unstabvle backend notes
* Make clearer that RPC methods dont retry
2024-05-16 16:37:20 +01:00
Niklas Adolfsson
bec896d91a
rpc: add full support reconnecting rpc client ( #1505 )
...
* add simple reconnecting rpc client
* initial retryable calls
* add reconnecting backend
* add reconnecting example for unstable backend
* add todo what isn't working
* FollowStream: restart on reconn
* naive fix: fetch sub_id in stream_headers
* cleanup
* remove resubscribe APIs
* cleanup and remove many wrapper streams
* remove retry backend
* legacy rpc: make it retryable
* unstable rpc: make it retryable
* fix nits
* support wasm as well
* remove deadcode
* address grumbles
* revert rpc methods
* don't create a subscription per block
* get rid off retry logic in subxt rpc
* Update subxt/Cargo.toml
* Update subxt/src/backend/legacy/mod.rs
* Update subxt/src/backend/legacy/mod.rs
* remove outdated comments
* fix bad merge
* Fix reconnecting RPC client and update dependencies
* add back retry logic and remove `finito`
* fix nits
* cleanup
* add hack for race when reconnecting
* backend: emit Stop event DisconnectWillRecoonect
* merge reconnecting client examples
* add fn retry_stream
* cleanup
* add all features from reconnecting-rpc-client
* fix build
* remove needless retry for fetch_storage
* StorageFetchDescendantKeysStream handle disconnect err
* dont retry transactions
* fetch subscription ID from FollowStreamMsg
* fix nits
* Update subxt/src/backend/legacy/mod.rs
* Update subxt/src/backend/legacy/mod.rs
* add reconn to StorageItems stream
* StorageFetchDescendantKeysStreamchore: retry storage call
* RetryStream: emit DisconnectWillReconnect msg
* runtime subscriptions ignore DisconnectWillReconn
* Update subxt/examples/setup_reconnecting_rpc_client.rs
* Update subxt/src/client/online_client.rs
* Update subxt/src/client/online_client.rs
* Add custom stream wrapper for finalized blocks
* add missing retry block
* clippy
* clippy again
* cleanup
* remove duplicate logic
* fix more grumbles
* Update subxt/examples/setup_reconnecting_rpc_client.rs
Co-authored-by: James Wilson <james@jsdw.me >
* simplify the example
* remove pin-project dep
* remove duplicate retry logic
* remove extra code
* specify trait bounds for retry api
* simplify the example
* fix weird Poll::Pending return
* fix nit in poll impl
* remove needless paths
* make retry_stream pub and add doc examples
* Update subxt/src/backend/utils.rs
---------
Co-authored-by: James Wilson <james@jsdw.me >
2024-05-08 15:12:54 +02:00
Alexandru Vasile
a5d94a4b8b
metadata: Fix cargo clippy ( #1574 )
...
* metadata: Fix cargo clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt/backend: Fix clone clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Use clone into
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-05-06 10:11:39 +02:00
James Wilson
bc079e7c98
Update deps to use scale-type-resolver 0.2 ( #1565 )
...
* Updates for scale-type-resolver 0.2
* show that we can check the name too now
* Bump versions and fix WrapperKeepOpaque name check
2024-04-30 08:45:39 +01:00
Niklas Adolfsson
25193d75af
add frontier/ethereum example ( #1557 )
...
* add ethereum example
The ethereum config doesn't work with the default PolkadotConfig which
this shows how to do.
Tested with a frontier node
* address grumbles
* Update subxt/examples/tx_basic_frontier.rs
* Update subxt/examples/tx_basic_frontier.rs
2024-04-26 16:18:19 +02:00
dependabot[bot]
f470638db4
build(deps): bump reconnecting-jsonrpsee-ws-client from 0.3.0 to 0.4.1 ( #1548 )
...
Bumps [reconnecting-jsonrpsee-ws-client](https://github.com/niklasad1/reconnecting-jsonrpsee-ws-client ) from 0.3.0 to 0.4.1.
- [Release notes](https://github.com/niklasad1/reconnecting-jsonrpsee-ws-client/releases )
- [Changelog](https://github.com/niklasad1/reconnecting-jsonrpsee-ws-client/blob/master/CHANGELOG.md )
- [Commits](https://github.com/niklasad1/reconnecting-jsonrpsee-ws-client/commits/v0.4.1 )
---
updated-dependencies:
- dependency-name: reconnecting-jsonrpsee-ws-client
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>
2024-04-22 09:48:52 +02:00
Alexandru Vasile
33a891b9da
Stabilize transactionWatch methods ( #1539 )
...
* Stabilize transactionWatch
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Keep consistency in naming method class
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-04-20 14:31:05 +02:00
Alexandru Vasile
c57df0845c
Stabilize transactionBroadcast methods ( #1540 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-04-20 13:58:58 +02:00
Snoppy
2bf782581b
chore: fix typos and link broken ( #1541 )
...
Signed-off-by: snoppy <michaleli@foxmail.com >
2024-04-19 14:50:04 +02:00
Alexandru Vasile
c124e17336
Stabilize chainHead methods ( #1538 )
...
* Stabilize chainHead methods
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Rename fn snake case
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* docs: Fix documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-04-19 11:27:50 +02:00
James Wilson
ac606cf625
Rename traits to remove T suffix ( #1535 )
...
* Rename traits to renmove T suffix
* Fix doc links
* Fix straggler doc links
2024-04-16 16:35:14 +01:00
James Wilson
1e111ea9db
Make subxt-core ready for publishing ( #1508 )
...
* Move Extrinsic decoding things to subxt_core and various tidy-ups
* A couple more fixes and fmt
* first pass moving tx logic to subxt_core
* cargo fmt
* fix wasm example
* clippy
* more clippy
* WIP Adding examples and such
* Move storage functionality more fully to subxt_core and nice examples for storage and txs
* Add example for events
* consistify how addresses/payloads are exposed in subxt-core and add runtime API fns
* Add runtime API core example
* fmt
* remove scale-info patch
* Add a little to the top level docs
* swap args around
* clippy
* cargo fmt and fix wasm-example
* doc fixes
* no-std-ise new subxt-core additions
* alloc, not core
* more no-std fixes
* A couple more fixes
* Add back extrinsic decode test
2024-04-15 15:20:11 +01:00
James Wilson
9765ad067a
Remove dupe storage item if we get one back, to be compatible with Smoldot + legacy RPCs ( #1534 )
...
* Remove dupe storage item if we get one back, to be compatibel with Smoldot + legacy RPCs
* remove commented-out code
2024-04-15 11:42:08 +01:00
Alexandru Vasile
c07ee0cd7f
storage_type: Strip key proper hash and entry bytes (32 instead of 16) ( #1522 )
...
* storage_type: Strip key proper hash and entry bytes (32 instead of 16)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage_type: Fix typo
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage/tests: Check keys decode properly and don't cause errors
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update testing/integration-tests/src/full_client/storage/mod.rs
Co-authored-by: James Wilson <james@jsdw.me >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
2024-04-09 14:08:36 +03:00
Alexandru Vasile
b31131d21d
testing: Prepare light client testing with substrate binary and add subxt-test macro ( #1507 )
...
* testing: Add long running light client flag and cfg aliases
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Expose clients depending on feature flags
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Use unstable backend for light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable flaky lightclient tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Add long runnnig step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Revert "subxt: Use unstable backend for light client"
This reverts commit ea6f3cc58b .
* ci: Long running tests for 60 mins
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Use 16 cores for light-client testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Isolate light-client testing to save CI minutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Retry on Tx::Dropped for lightclinet only
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Wait for more blocks for the lightclient init
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Use unstable backend for light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable legacy RPC tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable sudo and contracts tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Retry constructing lightclient on read-proof errors
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable tx dynamic test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Timeout for tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Add timeout 800 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro/tests: Adjust subxt-test proc-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Rename crate to subxt-test-proc-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use default subxt-proc-macro timeout
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* light-client: Remove println
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Remove tokio as dependency, use it only for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Chagne default timeout to 6 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Add env timeout variable
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Add subxt env var for controling test timeouts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests/tx-retries: Retry on `Non node available` error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Use unstable backend for testing lightclient
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Remove old lightclient object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Adjust for the new interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* backend/rpc: Allow older version of the initialized event
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rpc/tests: Check initialized decodes correctly
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Reset workflow
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove unused dep
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove gitmerge old file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove unused dep
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rename proc-macro to subxt-test-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Remove txretries for lightclient
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Wait for 5 blocks for the lightclient full testing suite
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Group imports
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Rename const value
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-04-08 11:34:20 +03:00
hanghuge
827a35de34
chore: remove repetitive words ( #1519 )
...
Signed-off-by: hanghuge <cmoman@outlook.com >
2024-04-08 08:54:22 +02:00
Tadeo Hepperle
a0cb14aa4f
subxt-core crate (#1466 )
...
* start migrating, broken
* first iteration of updating
* fmt and clippy
* add Composite<u32> decoding via scale value patch
* bump scale type gen versions
* fix decoding with new scale decode
* compiling with changed deps
* core utils, condig, client, metadata
* core crate compiling
* signer crate no once lock
* add core to no-std-tests, change imports
* broken commit, start pulling everything together in subxt
* port more things to subxt
* events in core crate, extrinsics sadly much more difficult
* almost all examples pass again
* dynamic values fix in examples
* fix no std issue and fmt
* remove unused dependencies
* fix lightclient impl
* runtime version refactor
* formatting and addressing nits
* more comments addressed
* update wasm example and no-std-signer tests
* other nits and error impl on signer errors
* fix feature flag
* fix runtime version refactor
* fix doc links
* fix integration tests
* fix feature flag gated client state
* fix native feature in CI
* fix lightclient utils
* make imports more lean in subxt-core
* integrate changes from subxt-core imports into subxt
* other changes in subxt simplify imports more
* fix and docs
* doc false for cli
* fix clippy
* remove events block hash in tests
* codegen no-std support in generated code
* export alloc crate for no-std codegen
* fix doc test
* implement James comments
* remove std traits, use core traits instead
* address nits
* remove unusued dep in no-std tests
* fix Box import in no_std
* sp-crypto-hashing instead of sp-core-hashing
* bump scale-typegen, add no std codegen tests
* fix some things
* replace unmaintained derivative with derive_where to remove non-canonical warnings
* fmt
* remove unused dep
* fix deps
* update artifacts to fix type ID mismatches
* bump to latest scale-typegen
---------
Co-authored-by: James Wilson <james@jsdw.me >
2024-03-27 08:55:08 +00:00
Alexandru Vasile
92c1ba7f66
unstable_rpc: Add transactionBroadcast and transactionStop ( #1497 )
...
* unstable_rpc: Add transactionBroadcast and transactionStop
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Check transactionBroadcast works
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Enable default feature for subxt-signer
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Increase number of blocks to look for
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix clippy for unneed let binds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/backend/unstable/rpc_methods.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* tests: Adjust txBroadcast test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Add test for txStop
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Ignore compact encoded lenght prefix
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-03-26 17:14:54 +02:00