-
Notifications
You must be signed in to change notification settings - Fork 361
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
Improve async docstrings #2478
Improve async docstrings #2478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls apply suggestions and add arguments in AsyncSubstrateInterface class
otherwise LGTM
era: Specify mortality in blocks in follow format: | ||
{'period': [amount_blocks]} If omitted the extrinsic is immortal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
era: Specify mortality in blocks in follow format: | |
{'period': [amount_blocks]} If omitted the extrinsic is immortal | |
era: Specify mortality in blocks in follow format: {'period': [amount_blocks]} If omitted the extrinsic is immortal |
auto_discover: Whether to automatically discover the type_registry presets based on the chain name and | ||
typer registry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto_discover: Whether to automatically discover the type_registry presets based on the chain name and | |
typer registry | |
auto_discover: Whether to automatically discover the type_registry presets based on the chain name and typer registry |
use_remote_preset: When True preset is downloaded from Github master, otherwise use files from local | ||
installed scalecodec package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use_remote_preset: When True preset is downloaded from Github master, otherwise use files from local | |
installed scalecodec package | |
use_remote_preset: When True preset is downloaded from Github master, otherwise use files from local installed scalecodec package |
block_hash: the hash of the block — only supply this if not supplying the block | ||
hash in the params, and not reusing the block hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block_hash: the hash of the block — only supply this if not supplying the block | |
hash in the params, and not reusing the block hash | |
block_hash: the hash of the block — only supply this if not supplying the block hash in the params, and not reusing the block hash |
call_params: This is a dict containing the params of the call. e.g. | ||
`{'dest': 'EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk', 'value': 1000000000000}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call_params: This is a dict containing the params of the call. e.g. | |
`{'dest': 'EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk', 'value': 1000000000000}` | |
call_params: This is a dict containing the params of the call. e.g. `{'dest': 'EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk', 'value': 1000000000000}` |
keypair: Keypair of the sender, does not have to include private key because no valid signature is | ||
required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keypair: Keypair of the sender, does not have to include private key because no valid signature is | |
required | |
keypair: Keypair of the sender, does not have to include private key because no valid signature is required |
max_results: the maximum of results required, if set the query will stop fetching results when number is | ||
reached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max_results: the maximum of results required, if set the query will stop fetching results when number is | |
reached | |
max_results: the maximum of results required, if set the query will stop fetching results when number is reached |
ignore_decoding_errors: When set this will catch all decoding errors, set the item to None and continue | ||
decoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore_decoding_errors: When set this will catch all decoding errors, set the item to None and continue | |
decoding | |
ignore_decoding_errors: When set this will catch all decoding errors, set the item to None and continue decoding |
reuse_block_hash: use True if you wish to make the query using the last-used block hash. Do not mark True | ||
if supplying a block_hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse_block_hash: use True if you wish to make the query using the last-used block hash. Do not mark True | |
if supplying a block_hash | |
reuse_block_hash: use True if you wish to make the query using the last-used block hash. Do not mark True if supplying a block_hash |
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
b0c024e
to
be3c228
Compare
Improves the docstrings for async_substrate_interface