Skip to main content

Starknet Simple Deploy

Overview

Starknet Simple Deploy is a Python package designed to simplify the process of deploying StarkNet smart contracts. It provides a set of APIs that abstract away the complexities involved in the deployment process, making it more accessible for developers of all skill levels. It utilizes API's from https://github.com/software-mansion/starknet.py

Features

  • Simplified Deployment: Decalre and Deploy StarkNet smart contracts with minimal setup and configuration.
  • Configurable: Supports custom deployment configurations through DeployerConfig.
  • Write Deployment Data: Supports ability to write data to a json file throug ContractDataWriter.
  • Async Support: Fully asynchronous API for efficient contract deployment.
  • Error Handling: Designed to gracefully handle deployment errors and provide clear feedback.

Installation

To install Starknet Simple Deploy, run the following command in your terminal:

pip install starknet-simple-deploy

Quick Start

Here's a quick example to get you started with deploying a StarkNet smart contract:


from starknet_simple_deploy import (
    DeclareContract,
    DeployContract, 
    DeployerConfig, 
    ContractDataWriter, 
    InitializeContractData,

)
from starknet_simple_deploy.utils import get_abi


deployer_config = DeployerConfig.get_config(deploy_env, chain).init_account()
initialized_contract = InitializeContractData(contract_name="MyContract")
casm_class_hash, compiled_contract, sierra_class_hash = initialized_contract.read_contract_file_data()
declared_contract = DeclareContract(
    deployer_config,
    casm_class_hash,
    compiled_contract,
    sierra_class_hash
)
declared_contract = await declared_contract.get_contract()
deployer = DeployContract(
    declared_contract,
    deployer_config,
    sierra_class_hash,
    constructor_args={
        "oracle_address": deployed_oracle_contract.address,
        "contract_class_hash": sierra_class_hash
    }
)
deployed_contract = await deployer.deploy()
ContractDataWriter.write_data(
    deploy_env=args.deploy_env, 
    abi=get_abi(declared_contract),
    chain_id=deployer_config.chain_id,
    contract_name="MyContract", 
    address = deployed_contract.address
)

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.

License

Starknet Simple Deploy is released under the MIT License.

Support

If you have any questions or encounter any issues, please open an issue on the GitHub repository, and we'll do our best to assist you.

Metadata

Release files for starknet-simple-deploy 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starknet-simple-deploy 0.1.4
File Size Uploaded Provenance Actions
starknet-simple-deploy-0.1.4.tar.gz 7.1 kB Without provenance Details for starknet-simple-deploy-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for starknet-simple-deploy 0.1.4
File Interpreter ABI Platform Actions
starknet_simple_deploy-0.1.4-py3-none-any.whl Python 3 none any Details for starknet_simple_deploy-0.1.4-py3-none-any.whl

Total release size: 14.9 kB

Release files / starknet-simple-deploy-0.1.4.tar.gz

Download URL starknet-simple-deploy-0.1.4.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29454c8bdc04225f7af6b919ac083f770402bcec0f55737c441f52ba835d8baa
BLAKE2b-256 checksum
How to use checksums
d46bdfd748e22c27148aa589091abaf019e6f208e1ec3c296efc74c41f5e8890
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / starknet_simple_deploy-0.1.4-py3-none-any.whl

Download URL starknet_simple_deploy-0.1.4-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0703f5b8aefc477321dde2ed141b93883c2a938304ba1ef835f9585fdae9822
BLAKE2b-256 checksum
How to use checksums
532e06c849f0782a9b4c1b268de419983d7c1d91ce105a78bccad90259f02301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for starknet-simple-deploy 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page