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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file createx-0.1.1.tar.gz.
File metadata
- Download URL: createx-0.1.1.tar.gz
- Upload date:
- Size: 200.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd537fd2d759d3869e73078062a6fc050876d16bfebf7f7039be5becc7893626
|
|
| MD5 |
ca063bd58655e944720927aa6419f00a
|
|
| BLAKE2b-256 |
ac79503ed8c7090f8e1bf97e9896ad23d3f1bd7026ee75c0c76aa8a04e779fc2
|
Provenance
The following attestation bundles were made for createx-0.1.1.tar.gz:
Publisher:
publish.yaml on ApeWorX/createx-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
createx-0.1.1.tar.gz -
Subject digest:
cd537fd2d759d3869e73078062a6fc050876d16bfebf7f7039be5becc7893626 - Sigstore transparency entry: 708017433
- Sigstore integration time:
-
Permalink:
ApeWorX/createx-py@1a0f8bd52735bffdf4dd2bfc239745ea9e41a7b2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ApeWorX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1a0f8bd52735bffdf4dd2bfc239745ea9e41a7b2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file createx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: createx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab04e5ab7b13edac4c9a394955801686bf303391d7751c27f2abc0a4b04ac17e
|
|
| MD5 |
bf6ebf713927e67981f668c743c622d9
|
|
| BLAKE2b-256 |
75f828db686ca49770e0e2c027e4326ccf01b4499f952271ec959a9b2ddf4638
|
Provenance
The following attestation bundles were made for createx-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on ApeWorX/createx-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
createx-0.1.1-py3-none-any.whl -
Subject digest:
ab04e5ab7b13edac4c9a394955801686bf303391d7751c27f2abc0a4b04ac17e - Sigstore transparency entry: 708017436
- Sigstore integration time:
-
Permalink:
ApeWorX/createx-py@1a0f8bd52735bffdf4dd2bfc239745ea9e41a7b2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ApeWorX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1a0f8bd52735bffdf4dd2bfc239745ea9e41a7b2 -
Trigger Event:
release
-
Statement type: