Skip to main content

Ape-based Python SDK for CreateX

Project description

Overview

Ape-based SDK for working with CreateX.

Usage

Command Line

The primary way to use the createx package is through the provided CLI. You can use this command alongside any ape project to deploy your contracts to a deterministic location.

By default, this uses the CreateX library to deploy using msg.sender and/or chainid redeploy protection, with a customizable salt:

$ createx deploy MyContract --deployer my-wallet --no-redeploy-protection --salt my-salt
INFO:     Confirmed 0xc5af...6c2c (total fees paid = 1838467000000000)
Deployed 0x02168191c1BbBEc53c6b7c1b5Ed0ddf83D76A837

For more info, check out here.

We also provide a utility for "mining" an address using a specific number of leading zeros, or matching a pattern (similar to createXcrunch):

$ createx mine dep@v1:MyContract --deployer ... --leading-zeros 1
Found '0x0082fA6c17B8A25F99d60513b8683434666a7C44' after 835 iterations using salt: 184d662996b122cf1846c7

You can then re-use this salt to get the same value on multiple chains:

$ createx address dep@v1:MyContract --deployer ... --salt 184d662996b122cf1846c7
0x0082fA6c17B8A25F99d60513b8683434666a7C44

$ createx deploy dep@v1:MyContract --deployer ... --salt 184d662996b122cf1846c7
INFO:     Confirmed 0x54f6...bd26 (total fees paid = 1838419000000000)
Deployed 0x0082fA6c17B8A25F99d60513b8683434666a7C44

As a Library

You can also use this in your projects to configure deterministic deployments more easily on CreateX's 170+ supported chains:

from createx import CreateX

my_contract = createx.deploy(project.MyContract, salt="something", sender=me)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

createx-0.1.0.tar.gz (200.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

createx-0.1.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file createx-0.1.0.tar.gz.

File metadata

  • Download URL: createx-0.1.0.tar.gz
  • Upload date:
  • Size: 200.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for createx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 334c9ee586306f676ea1d3f4c8b03d0081802eebd5f1082b88ae2fa51ceb4132
MD5 092d9bc7e94165869f73df3e32837ca7
BLAKE2b-256 6793d8b7ab948b88d32e1595f75db80da596fca6e9e0758b6b8abdeaa46a67fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for createx-0.1.0.tar.gz:

Publisher: publish.yaml on ApeWorX/createx-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file createx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: createx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for createx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f971ced33cee5efa1c94ebf28d25c7fc7570aa1e4f7c4bc9b3af68409450928f
MD5 5ab70e53b563bedafbb60ff2891e38f9
BLAKE2b-256 79546809aa73f554cd7a699146203b3ce19dfb47ab9b98f08dfe741f5675149d

See more details on using hashes here.

Provenance

The following attestation bundles were made for createx-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on ApeWorX/createx-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page