From cebd0b3a9c55d740b0b6c406f38b6b48fde54e20 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" Date: Tue, 16 Apr 2024 11:56:55 +0200 Subject: [PATCH 01/18] 1. Python SDK page updated. --- .../casper/developers/dapps/sdk/python-sdk.md | 231 ++---------------- 1 file changed, 24 insertions(+), 207 deletions(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 19cf9fa7c0..fca01decbf 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -1,236 +1,53 @@ # Python SDK -The [Python SDK](https://github.com/casper-network/casper-python-sdk) allows developers to interact with the Casper Node using Python 3.9+. This page covers various examples of using this SDK. +The [Python SDK](https://github.com/casper-network/casper-python-sdk) allows developers to interact with the Casper platform using Python 3.12+. ## Installation -To install the library, run: - ```bash - - pip3 install pycspr -``` - -## Tests - -You can find examples of testing this library with python scripts in the `test` directory. To run the tests, we recommend the *pytest* library: - -```bash - pytest ./tests -``` - -## Usage Examples - -In this section, we outline a couple of essential tasks you can accomplish with the Python SDK: - -* [Sending a transfer](#sending-a-transfer) between two purses -* [Staking](#staking) tokens with a validator - -For further examples, take a look at the [How-tos](https://github.com/casper-network/casper-python-sdk/tree/main/how_tos). - -### Sending a transfer - -This example shows you how to define and transfer funds between purses on a Casper network. Replace the *path_to_cp2_account_key* in the code below with the receiver's account public key. - -```python - import os - import pathlib - import random - import typing - - import pycspr - from pycspr.client import NodeClient - from pycspr.client import NodeConnectionInfo - from pycspr.crypto import KeyAlgorithm - from pycspr.types import PrivateKey - from pycspr.types import Deploy - from pycspr.types import PublicKey - - # path to cp1 secret key - defaults to NCTL user 1. - path_to_cp1_secret_key = pathlib.Path(os.getenv("NCTL")) / "assets" / "net-1" / "users" / "user-1" / "secret_key.pem" - - # type of cp1 secret key - defaults to ED25519. - type_of_cp1_secret_key = KeyAlgorithm.ED25519.name, - - # path to cp2 account key - defaults to NCTL user 2. - path_to_cp2_account_key = pathlib.Path(os.getenv("NCTL")) / "assets" / "net-1" / "users" / "user-2" / "public_key_hex" - - # name of target chain - defaults to NCTL chain. - chain_name = "casper-net-1" - - # host address of target node - defaults to NCTL node 1. - node_host = "localhost" - - # Node API JSON-RPC port - defaults to 11101 @ NCTL node 1. - node_port_rpc = 11101 - - def _main(node_host, node_port_rpc, path_to_cp1_secret_key, type_of_cp1_secret_key,path_to_cp2_account_key, chain_name): - """Main entry point. - :param args: Parsed command line arguments. - """ - # Set node client. - client = _get_client(node_host, node_port_rpc) - - # Set counter-parties. - cp1, cp2 = _get_counter_parties(path_to_cp1_secret_key, type_of_cp1_secret_key,path_to_cp2_account_key) - - # Set deploy. - deploy: Deploy = _get_deploy(chain_name, cp1, cp2) - - # Approve deploy. - deploy.approve(cp1) - - # Dispatch deploy to a node. - client.deploys.send(deploy) - - #If deploy is successful send the indication - print(f"Deploy dispatched to node [{node_host}]: {deploy.hash.hex()}") - - - def _get_client(node_host, node_port_rpc) -> NodeClient: - """Returns a pycspr client instance. - """ - return NodeClient(NodeConnectionInfo( - host=node_host, - port_rpc=node_port_rpc, - )) - - - def _get_counter_parties(path_to_cp1_secret_key, type_of_cp1_secret_key,path_to_cp2_account_key) -> typing.Tuple[PrivateKey, PublicKey]: - """Returns the 2 counter-parties participating in the transfer. - """ - cp1 = pycspr.parse_private_key( - path_to_cp1_secret_key, - type_of_cp1_secret_key, - ) - cp2 = pycspr.parse_public_key( - path_to_cp2_account_key - ) - - return cp1, cp2 - - - def _get_deploy(chain_name, cp1: PrivateKey, cp2: PublicKey) -> Deploy: - """Returns transfer deploy to be dispatched to a node. - """ - # Set standard deploy parameters. - deploy_params = pycspr.create_deploy_parameters( - account = cp1, - chain_name = chain_name - ) - - # Set deploy. - deploy = pycspr.create_native_transfer( - params = deploy_params, - amount = int(2.5e9), - target = cp2.account_hash, - correlation_id = random.randint(1, 1e6) - ) - - return deploy - - - # Entry point. - if __name__ == '__main__': - _main(node_host, node_port_rpc, path_to_cp1_secret_key, type_of_cp1_secret_key, path_to_cp2_account_key, chain_name) +pip3 install pycspr ``` -### Staking - -This example shows you how to define and stake funds with a validator. +## How To's -```python +The following set of How To's cover the full SDK feature set & are designed to be run against a [CCTL](https://github.com/casper-network/cctl) network. - import os - import pathlib +### Cryptography - import pycspr - from pycspr.client import NodeClient - from pycspr.client import NodeConnectionInfo - from pycspr.crypto import KeyAlgorithm - from pycspr.types import Deploy - from pycspr.types import PrivateKey +* [How To: Apply a checksum ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_apply_a_checksum.py) - # path to cp1 secret key - defaults to NCTL user 1. - path_to_validator_secret_key = pathlib.Path(os.getenv("NCTL")) / "assets" / "net-1" / "users" / "user-1" / "secret_key.pem" +* [How To: Create Key Pairs ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_create_key_pairs.py) - # type of cp1 secret key - defaults to ED25519. - type_of_validator_secret_key = KeyAlgorithm.ED25519.name +* [How To: Hash data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_hash_data.py) - # path to session code wasm binary - defaults to NCTL bin/eco/add_bid.wasm. - path_to_wasm = pathlib.Path(os.getenv("NCTL")) / "assets" / "net-1" / "bin" / "auction" / "add_bid.wasm" +* [How To: Sign data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_sign_data.py) - # amount to stake, i.e. bond, into the network. - amount = int(2.5e9) +### Deploys - # amount to charge delegators for service provision. - delegation_rate = 2 +* [How To: Transfer funds between 2 accounts ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_transfer.py) - # name of target chain - defaults to NCTL chain. - chain_name = "casper-net-1" +* [How To: Delegate funds to a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_delegate.py) - # host address of target node - defaults to NCTL node 1. - node_host = "localhost" +* [How To: Undelegate funds from a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_undelegate.py) - # Node API JSON-RPC port - defaults to 11101 @ NCTL node 1. - node_port_rpc = 11101 +* [How To: Stake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_stake.py) - def _main(node_host, node_port_rpc, path_to_validator_secret_key, type_of_validator_secret_key, chain_name, amount, delegation_rate, path_to_wasm): - """Main entry point. - :param args: Parsed command line arguments. - """ - # Set node client. - client: NodeClient = _get_client(node_host, node_port_rpc) +* [How To: Unstake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_unstake.py) - # Set validator key. - validator: PrivateKey = pycspr.parse_private_key( - path_to_validator_secret_key, - type_of_validator_secret_key, - ) +### Smart Contracts - # Set deploy. - deploy: Deploy = _get_deploy(validator, chain_name, amount, delegation_rate, path_to_wasm) +* [How To: Install a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_install.py) - # Approve deploy. - deploy.approve(validator) +* [How To: Invoke a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_invoke.py) - # Dispatch deploy to a node. - client.deploys.send(deploy) +* [How To: Query a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_query.py) - print(f"Deploy dispatched to node [{node_host}]: {deploy.hash.hex()}") +### Node APIs +* [How To: Use REST API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rest_client.py) - def _get_client(node_host, node_port_rpc) -> NodeClient: - """Returns a pycspr client instance. - """ - return NodeClient(NodeConnectionInfo( - host = node_host, - port_rpc = node_port_rpc, - )) +* [How To: Use RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rpc_client.py) +* [How To: Use Speculative RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_speculative_rpc_client.py) - def _get_deploy(validator: PrivateKey, chain_name, amount, delegation_rate, path_to_wasm) -> Deploy: - """Returns delegation deploy to be dispatched to a node. - """ - # Set standard deploy parameters. - deploy_params = pycspr.create_deploy_parameters( - account = validator, - chain_name = chain_name - ) - - # Set deploy. - deploy = pycspr.create_validator_auction_bid( - params = deploy_params, - amount = amount, - delegation_rate = delegation_rate, - public_key = validator.as_public_key(), - path_to_wasm = path_to_wasm - ) - - return deploy - - - # Entry point. - if __name__ == '__main__': - _main(node_host, node_port_rpc, path_to_validator_secret_key, type_of_validator_secret_key, chain_name, amount, delegation_rate, path_to_wasm) -``` +* [How To: Use SSE API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_sse_client.py) From 9e9477b3c022e4b9d5a68b6fb90354d51568f7e4 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:48:31 +0200 Subject: [PATCH 02/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index fca01decbf..7130f211f7 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -10,7 +10,7 @@ pip3 install pycspr ## How To's -The following set of How To's cover the full SDK feature set & are designed to be run against a [CCTL](https://github.com/casper-network/cctl) network. +The following set of How To's cover the full SDK feature set and are designed to be run against a [CCTL](https://github.com/casper-network/cctl) network. ### Cryptography From 2f7757d6ca706a3120771a9590ee9164a63aae72 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:21 +0200 Subject: [PATCH 03/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 7130f211f7..44dd50e413 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -14,7 +14,7 @@ The following set of How To's cover the full SDK feature set and are designed to ### Cryptography -* [How To: Apply a checksum ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_apply_a_checksum.py) +* [How To: Apply a checksum](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_apply_a_checksum.py) * [How To: Create Key Pairs ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_create_key_pairs.py) From 83505bdfa7d4dda2360e17df836ac9d92e4180f9 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:30 +0200 Subject: [PATCH 04/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 44dd50e413..2e0993597a 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -16,7 +16,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Apply a checksum](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_apply_a_checksum.py) -* [How To: Create Key Pairs ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_create_key_pairs.py) +* [How To: Create Key Pairs](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_create_key_pairs.py) * [How To: Hash data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_hash_data.py) From f5fbe3ce5baf7df298d9f09c27682dda5a2a7fed Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:37 +0200 Subject: [PATCH 05/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 2e0993597a..17ceb0e767 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -18,7 +18,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Create Key Pairs](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_create_key_pairs.py) -* [How To: Hash data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_hash_data.py) +* [How To: Hash data](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_hash_data.py) * [How To: Sign data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_sign_data.py) From 95cbb6af6ae5d22613eebc5344523e1eb4172c7d Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:49 +0200 Subject: [PATCH 06/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 17ceb0e767..64cceb51b0 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -50,4 +50,4 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Use Speculative RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_speculative_rpc_client.py) -* [How To: Use SSE API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_sse_client.py) +* [How To: Use SSE API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_sse_client.py) From 5bab2ff7c8469f0ddf2ec195a1013b74e6d31282 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:55 +0200 Subject: [PATCH 07/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 64cceb51b0..42b090438e 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -20,7 +20,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Hash data](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_hash_data.py) -* [How To: Sign data ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_sign_data.py) +* [How To: Sign data](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/crypto/how_to_sign_data.py) ### Deploys From e91632b88cf214f12e4395878bc59104f739e34b Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:02 +0200 Subject: [PATCH 08/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 42b090438e..233b28c201 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -40,7 +40,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Invoke a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_invoke.py) -* [How To: Query a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_query.py) +* [How To: Query a smart contract](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_query.py) ### Node APIs From 20f7e17e64629bb0af790e2d79c1cf5f0a61e5a9 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:07 +0200 Subject: [PATCH 09/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 233b28c201..4abbe983f0 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -44,7 +44,7 @@ The following set of How To's cover the full SDK feature set and are designed to ### Node APIs -* [How To: Use REST API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rest_client.py) +* [How To: Use REST API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rest_client.py) * [How To: Use RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rpc_client.py) From e1a58f7e4f10d89cd5d78440839be94bbc370989 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:14 +0200 Subject: [PATCH 10/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 4abbe983f0..99b923aec3 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -46,7 +46,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Use REST API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rest_client.py) -* [How To: Use RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rpc_client.py) +* [How To: Use RPC API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rpc_client.py) * [How To: Use Speculative RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_speculative_rpc_client.py) From c8f296f67703b2910b94ad4882ce40a0dd2624ff Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:26 +0200 Subject: [PATCH 11/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 99b923aec3..512b0a7d3f 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -24,7 +24,7 @@ The following set of How To's cover the full SDK feature set and are designed to ### Deploys -* [How To: Transfer funds between 2 accounts ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_transfer.py) +* [How To: Transfer funds between 2 accounts](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_transfer.py) * [How To: Delegate funds to a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_delegate.py) From 4f30b5ae12c47dc61c893c3bb379dee39ef15a5b Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:33 +0200 Subject: [PATCH 12/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 512b0a7d3f..f46aa0fb61 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -48,6 +48,6 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Use RPC API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_rpc_client.py) -* [How To: Use Speculative RPC API ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_speculative_rpc_client.py) +* [How To: Use Speculative RPC API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_speculative_rpc_client.py) * [How To: Use SSE API](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/node_apis/how_to_use_sse_client.py) From f1b5c5306c9b4759edc24bd57448e8cf1a19ddd8 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:48 +0200 Subject: [PATCH 13/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index f46aa0fb61..2a59af6a8b 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -36,7 +36,7 @@ The following set of How To's cover the full SDK feature set and are designed to ### Smart Contracts -* [How To: Install a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_install.py) +* [How To: Install a smart contract](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_install.py) * [How To: Invoke a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_invoke.py) From 7ea2e78658b66d242c3f035d07d5b1ac4b1d1181 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:50:58 +0200 Subject: [PATCH 14/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 2a59af6a8b..08e0224239 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -26,7 +26,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Transfer funds between 2 accounts](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_transfer.py) -* [How To: Delegate funds to a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_delegate.py) +* [How To: Delegate funds to a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_delegate.py) * [How To: Undelegate funds from a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_undelegate.py) From 80ccd3025f0d0fd8ba3b5cbf2e3acb202aeff3cb Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:51:10 +0200 Subject: [PATCH 15/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 08e0224239..e6d5ba5a21 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -28,7 +28,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Delegate funds to a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_delegate.py) -* [How To: Undelegate funds from a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_undelegate.py) +* [How To: Undelegate funds from a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_undelegate.py) * [How To: Stake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_stake.py) From c040b5eb76fe1ea2c95d362302be78d9f0f223f9 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:51:20 +0200 Subject: [PATCH 16/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index e6d5ba5a21..e6bdf69427 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -30,7 +30,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Undelegate funds from a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_undelegate.py) -* [How To: Stake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_stake.py) +* [How To: Stake funds as a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_stake.py) * [How To: Unstake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_unstake.py) From a45f24b20f940dbb7b0193234b023b46d6f7c113 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:51:30 +0200 Subject: [PATCH 17/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index e6bdf69427..9cf6c2d7c4 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -32,7 +32,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Stake funds as a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_stake.py) -* [How To: Unstake funds as a validator ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_unstake.py) +* [How To: Unstake funds as a validator](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/deploys/how_to_unstake.py) ### Smart Contracts From f3819435faf45e5099d48f2b55536ddde69a4f43 Mon Sep 17 00:00:00 2001 From: "Mark A. Greenslade" <1267479+asladeofgreen@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:51:40 +0200 Subject: [PATCH 18/18] Update source/docs/casper/developers/dapps/sdk/python-sdk.md Co-authored-by: Iulia Popescu --- source/docs/casper/developers/dapps/sdk/python-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/casper/developers/dapps/sdk/python-sdk.md b/source/docs/casper/developers/dapps/sdk/python-sdk.md index 9cf6c2d7c4..436a773011 100644 --- a/source/docs/casper/developers/dapps/sdk/python-sdk.md +++ b/source/docs/casper/developers/dapps/sdk/python-sdk.md @@ -38,7 +38,7 @@ The following set of How To's cover the full SDK feature set and are designed to * [How To: Install a smart contract](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_install.py) -* [How To: Invoke a smart contract ?](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_invoke.py) +* [How To: Invoke a smart contract](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_invoke.py) * [How To: Query a smart contract](https://github.com/casper-network/casper-python-sdk/blob/main/how_tos/smart_contracts/how_to_query.py)