Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ permissions:
contents: read

env:
ARCH_KIT_VERSION: 0.1.7
ARCH_KIT_VERSION: 0.1.8
ANZA_VERSION: v3.1.9
CARGO_TERM_COLOR: always

Expand Down
148 changes: 95 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "arch-kit"
version = "0.1.7"
version = "0.1.8"
edition = "2024"
rust-version = "1.85"
rust-version = "1.89"
description = "Command-line toolkit for developing, deploying, and interacting with Arch Network programs"
repository = "https://github.com/Arch-Network/arch-kit"
license = "MIT"
Expand All @@ -20,16 +20,16 @@

[dependencies]
aes-gcm = { version = "0.11.1", default-features = false, features = ["aes", "alloc"] }
apl-associated-token-account = { version = "=0.10.0", features = ["no-entrypoint"] }
apl-token = { version = "=0.10.0", features = ["no-entrypoint"] }
arch_sdk = "=0.10.0"
apl-associated-token-account = { version = "=0.12.0", features = ["no-entrypoint"] }
apl-token = { version = "=0.12.0", features = ["no-entrypoint"] }
arch_sdk = "=0.12.0"
arch-satellite-lang-idl = { version = "=0.31.5", features = ["build"] }
base64 = "0.22"
bitcoin = "=0.32.7"
bs58 = "0.5"
clap = { version = "4.5", features = ["derive", "env"] }

Check warning on line 30 in Cargo.toml

View workflow job for this annotation

GitHub Actions / Initialize and Deploy

unused build dependency `indexmap`
flate2 = "1.1"

Check warning on line 31 in Cargo.toml

View workflow job for this annotation

GitHub Actions / Initialize and Deploy

unused build dependency `proc-macro-crate`
hex = "0.4"

Check warning on line 32 in Cargo.toml

View workflow job for this annotation

GitHub Actions / Initialize and Deploy

unused build dependency `unicode-segmentation`
hkdf = "0.12"
include_dir = "0.7"
minijinja = "2"
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
`arch-kit` is a CLI for generating Arch keys, deploying programs, publishing
canonical on-chain IDLs, and inspecting APL tokens.

arch-kit targets Arch Network 0.12 (`arch_sdk`, `apl-token`, and
`apl-associated-token-account` 0.12.0). Arch 0.12 reset the chain and removed
account UTXO anchoring and transaction rollback status from RPC responses, so
use arch-kit 0.1.7 or earlier only against pre-0.12 nodes.

## Install

Install the published crate with Cargo:
Expand Down Expand Up @@ -40,7 +45,7 @@ with the reusable workflow:
```yaml
jobs:
deploy:
uses: Arch-Network/arch-kit/.github/workflows/deploy-program.yml@v0.1.7
uses: Arch-Network/arch-kit/.github/workflows/deploy-program.yml@v0.1.8
with:
program-path: program
bitcoin-network: testnet
Expand Down Expand Up @@ -185,7 +190,9 @@ The destination must not exist. The command creates a Satellite program whose
declared ID is derived from the supplied program key. Its `say_hello`
instruction requires a user signer and logs `Hello <USER_BASE58_PUBKEY>`; the
signature constraint uses the custom error defined in `src/error.rs`. The
secret key is read only and is not copied into the project.
generated project depends on `arch-satellite-lang` 0.34.0, which builds on
`arch_program` 0.12.0. The secret key is read only and is not copied into the
project.

Build the generated program from its project directory, or pass its manifest
path explicitly:
Expand Down
9 changes: 3 additions & 6 deletions src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub(crate) fn run(config: &Config, args: Args) -> Result<()> {
Ok(())
}

// SDK 0.10.0 skips account creation whenever the program account exists, even
// SDK 0.12.0 skips account creation whenever the program account exists, even
// when it is an empty System account created by an earlier funding transfer.
fn prepare_program_account(
config: &Config,
Expand Down Expand Up @@ -258,13 +258,10 @@ fn prepare_program_account(
)?;
let txid = client.send_transaction(transaction)?;
let processed = client.wait_for_processed_transaction(&txid)?;
if processed.status != Status::Processed || !processed.rollback_status.is_applied() {
if processed.status != Status::Processed {
return Err(CliError::TransactionFailed {
action: format!("program account assignment ({txid})"),
status: format!(
"{:?}, rollback={:?}",
processed.status, processed.rollback_status
),
status: format!("{:?}", processed.status),
});
}
let assigned = client.read_account_info(program)?;
Expand Down
Loading