0.5.1-pre.004

This commit is contained in:
2026-08-09 22:52:37 +02:00
parent 6151bb25e7
commit ec07ddbd80
53 changed files with 989 additions and 886 deletions

View File

@@ -1,5 +1,5 @@
// file: ks-pipeline-demo-scenarios/src/solana.rs
// version: 12
// version: 13
//! Devnet Solana execution orchestration with canonical post-validation.
@@ -1332,21 +1332,21 @@ mod tests {
#[tokio::test]
async fn optional_devnet_system_transfer_from_env() {
if std::env::var("KB_DEVNET_EXECUTION_TEST").ok().as_deref()
if std::env::var("KS_DEVNET_EXECUTION_TEST").ok().as_deref()
!= std::option::Option::Some("1")
{
return;
}
let database_url = match std::env::var("KB_POSTGRES_TEST_URL") {
let database_url = match std::env::var("KS_SECRET_POSTGRES_TEST_URL") {
std::result::Result::Ok(value) => value,
std::result::Result::Err(error) => {
panic!("KB_POSTGRES_TEST_URL is required: {error}");
panic!("KS_SECRET_POSTGRES_TEST_URL is required: {error}");
},
};
let mut profile = example_devnet_profile();
profile.database.backend = "postgres".to_string();
profile.database.postgres.url = database_url;
if let std::result::Result::Ok(directory) = std::env::var("KB_DEVNET_WALLET_DIR") {
if let std::result::Result::Ok(directory) = std::env::var("KS_DEVNET_WALLET_DIR") {
profile.wallet.wallet_dir = directory;
}
let pool = match ks_onchain_transport::HttpEndpointPool::from_profile(&profile) {
@@ -1374,11 +1374,11 @@ mod tests {
std::result::Result::Err(error) => panic!("recipient alias failed: {error}"),
};
let recipient_wallet = ks_wallet::TemporaryWallet::generate(recipient_alias);
let transfer_lamports = std::env::var("KB_DEVNET_TRANSFER_LAMPORTS")
let transfer_lamports = std::env::var("KS_DEVNET_TRANSFER_LAMPORTS")
.ok()
.and_then(|value| return value.parse::<u64>().ok())
.unwrap_or(1_000_000);
let airdrop_lamports = std::env::var("KB_DEVNET_AIRDROP_LAMPORTS")
let airdrop_lamports = std::env::var("KS_DEVNET_AIRDROP_LAMPORTS")
.ok()
.and_then(|value| return value.parse::<u64>().ok())
.unwrap_or(100_000_000);