diff --git a/README.md b/README.md index ca1a139..2d71540 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ # robonomics-interface -This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using Robonomics. +This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using Robonomics Polkadot Parachain. + +> [!WARNING] +> Starting from 2.0 the default websocket is changed to `wss://polkadot.rpc.robonomics.network/`. +> Use `wss://kusama.rpc.robonomics.network/` for Kusama Parachain. Robonomics project: https://robonomics.network/ -Robonomics parachain dapp: https://parachain.robonomics.network/ +Robonomics parachain dapp: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot.rpc.robonomics.network%2F#/explorer Documentation: https://airalab.github.io/robonomics-interface/ _______ diff --git a/docs/source/index.rst b/docs/source/index.rst index 8f7e9e7..3e454be 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,11 +1,11 @@ Welcome to robonomics-interface's documentation! ================================================ -*This is a simple wrapper over https://github.com/polkascan/py-substrate-interface used to facilitate writing code for -applications using Robonomics.* +*This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using +Robonomics Polkadot Parachain. Kusama Parachain is also supported.* **Robonomics project:** https://robonomics.network/ -**Robonomics parachain dapp** https://parachain.robonomics.network/ +**Robonomics parachain dapp** https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot.rpc.robonomics.network%2F#/explorer .. toctree:: diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 189440d..76e194c 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -24,7 +24,7 @@ Initialization account = Account() By default, you will only be able to fetch Chainstate info from -`Robonomics Kusama parachain `_ +`Robonomics Polkadot parachain `_ and use :ref:`PubSub ` and :ref:`ReqRes ` patterns. You can specify another ``remote_ws`` (e.g. local), ``seed`` to sign extrinsics, custom ``type_registry`` and ``crypto_type``. @@ -40,7 +40,7 @@ Service Functions +++++++++++++++++ As have been said, when initiating :ref:`account` instance without a seed, you will be able to read any -Chainstate info from the Robonomics Kusama parachain. This is possible by some dedicated below-mentioned classes and a +Chainstate info from the Robonomics Polkadot parachain. This is possible by some dedicated below-mentioned classes and a ``ServiceFunctions``'s method ``chainstate_query`` allowing user to execute any query. .. code-block:: python diff --git a/pyproject.toml b/pyproject.toml index 92b8b54..19c4cc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "robonomics-interface" -version = "1.6.3" -description = "Robonomics wrapper over https://github.com/polkascan/py-substrate-interface created to facilitate programming with Robonomics" +version = "2.0.0" +description = "This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using Robonomics Polkadot Parachain." authors = ["Pavel Tarasov "] license = "Apache-2.0" diff --git a/robonomicsinterface/classes/account.py b/robonomicsinterface/classes/account.py index 9c2a345..ba8d7b6 100644 --- a/robonomicsinterface/classes/account.py +++ b/robonomicsinterface/classes/account.py @@ -31,7 +31,7 @@ def __init__( as a parameter. :param seed: Account seed (mnemonic or raw) as a key to sign transactions. - :param remote_ws: Node url. Default node address is "wss://kusama.rpc.robonomics.network". Another address may + :param remote_ws: Node url. Default node address is "wss://polkadot.rpc.robonomics.network". Another address may be specified (e.g. "ws://127.0.0.1:9944" for local node). :param type_registry: Types used in the chain. Defaults are the most frequently used in Robonomics. :param crypto_type: Use KeypairType.SR25519 or KeypairType.ED25519 cryptography for generating the Keypair. diff --git a/robonomicsinterface/classes/chain_utils.py b/robonomicsinterface/classes/chain_utils.py index b264906..ada45fa 100644 --- a/robonomicsinterface/classes/chain_utils.py +++ b/robonomicsinterface/classes/chain_utils.py @@ -25,7 +25,7 @@ def __init__( """ Initiate ChainUtils class with node address passed as an argument. - :param remote_ws: Node url. Default node address is "wss://kusama.rpc.robonomics.network". Another address may + :param remote_ws: Node url. Default node address is "wss://polkadot.rpc.robonomics.network". Another address may be specified (e.g. "ws://127.0.0.1:9944" for local node). :param type_registry: Types used in the chain. Defaults are the most frequently used in Robonomics. diff --git a/robonomicsinterface/constants.py b/robonomicsinterface/constants.py index 8bcbd67..46a24f8 100644 --- a/robonomicsinterface/constants.py +++ b/robonomicsinterface/constants.py @@ -1,4 +1,4 @@ -REMOTE_WS = "wss://kusama.rpc.robonomics.network" +REMOTE_WS = "wss://polkadot.rpc.robonomics.network/" TYPE_REGISTRY = { "types": { "Record": "Vec", diff --git a/robonomicsinterface/robonomics_interface_io.py b/robonomicsinterface/robonomics_interface_io.py index c0aa020..f1531d6 100644 --- a/robonomicsinterface/robonomics_interface_io.py +++ b/robonomicsinterface/robonomics_interface_io.py @@ -44,7 +44,7 @@ def read() -> None: type=str, default=constants.REMOTE_WS, help="Node websocket address used to connect to any node. E.g. local is ws://127.0.0.1:9944. Default is " - "wss://kusama.rpc.robonomics.network", + "wss://polkadot.rpc.robonomics.network", ) @click.option("-s", type=str, required=True, help="Account seed in mnemonic/raw form.") def datalog(input_string: sys.stdin, remote_ws: str, s: str) -> None: @@ -71,7 +71,7 @@ def datalog(input_string: sys.stdin, remote_ws: str, s: str) -> None: type=str, default=constants.REMOTE_WS, help="Node websocket address used to connect to any node. E.g. local is ws://127.0.0.1:9944. Default is " - "wss://kusama.rpc.robonomics.network", + "wss://polkadot.rpc.robonomics.network", ) @click.option("-s", type=str, required=True, help="Account seed in mnemonic/raw form.") @click.option("-r", type=str, required=True, help="Target account ss58_address.") @@ -94,7 +94,7 @@ def launch(command: sys.stdin, remote_ws: str, s: str, r: str) -> None: type=str, default=constants.REMOTE_WS, help="Node websocket address used to connect to any node. E.g. local is ws://127.0.0.1:9944. Default is " - "wss://kusama.rpc.robonomics.network", + "wss://polkadot.rpc.robonomics.network", ) @click.option("-r", type=str, help="Target account ss58_address.") def datalog(remote_ws: str, r: str) -> None: @@ -112,7 +112,7 @@ def datalog(remote_ws: str, r: str) -> None: type=str, default=constants.REMOTE_WS, help="Node websocket address used to connect to any node. E.g. local is ws://127.0.0.1:9944. Default is " - "wss://kusama.rpc.robonomics.network", + "wss://polkadot.rpc.robonomics.network", ) @click.option("-r", type=str, help="Target account ss58_address.") def launch(remote_ws: str, r: str) -> None: