-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow ups to https://github.com/paritytech/subxt/pull/294 #309
Comments
With the current api it's hard to get transaction finality notifications. enum TransactionStatus {
InPool
InBlock(Hash)
Finalized
Retracted
} |
Yes indeed, @seunlanlege, something like that would be good. If you have time, could you open an issue for it to flesh out and discuss a possible API. |
Given how much has changed since this, I'll close this for now. If anything in here matters to anybody, please open separate issues for each concern and we'll address them there |
As discussed with @dvdplm @jsdw and @insipx last week, we should aim to merge #294 as soon as possible in an incomplete state, then continue work on it on the
master
branch with smaller PRs to complete the remaining todos.Here is an unordered and non-exhaustive list of the code todos (these can be promoted and fleshed out in separate issues as required). We need to further triage these to decide what we require before making a release.
todos extracted from code:
Rust
code items from the decoratedmod
. At the moment they will be erased. Possibly by implementingToTokens
onItemMod
. 6306b9f Retain Rust code items frommod
decorated withsubxt
attribute #346Config
runtime types as part of mod annotated withsubxt
macro.subxt/codegen/src/api/mod.rs
Line 227 in 5dd6cf9
Config
runtime types as part of mod annotated withsubxt
macro #347Extra
implementation for additional signed data, or auto-generate from the metadata. At the moment this is hardcoded in the macro generated code.subxt/codegen/src/api/mod.rs
Line 245 in fc30e90
Extra
#331AccountData
storage type is hardcoded, which is required for fetching the nonce for constructing theExtra
data for an Extrinsic. It assumes the presence of the system pallet and that theAccountData
type has a nonce field. So we should consider whether this should be made configurable, or at least detect if thesystem
pallet is not present with thatStorage
entry. Currently we are assuming it is always there (note: also true of DispatchError).subxt/codegen/src/api/mod.rs
Line 248 in 63bb5ea
frame_system::AccountData
#348Box
typesubxt/codegen/src/types/type_def.rs
Line 203 in 63641b4
Box
types scale-info#82PR feedback
Extracted to #419
Misc
Documentation and Testing
Refactoring and code cleanup
codegen/types/type_def
andcodegen/struct_def
for generating composite types. Refactor duplication for generation of composite fields #328codegen
module.Client
now? I removed lots of pass throughrpc
methods there, maybe it can be removed/refactored away.Phase
andWrapperTypeOpaque
. This is to avoid depending on big heavy crates just to use one or two types that are fairly static. These could be grouped together in their own files, so it is clear they have been copied. Further, we could possibly even test whether they are still compatible with the original types by using thescale-info
metadata fetched from a running test node.API improvements.
API construction
Currently relies on using some types generated by the macro to construct the runtime API, which is not very user friendly. How can we improve this?
The text was updated successfully, but these errors were encountered: