Skip to content

Instantly share code, notes, and snippets.

2025-09-15T13:49:55.328988Z INFO crates/ev-core/src/lib.rs:136: [🫀 Core] ♻ Found a non-finished executing signal (#ca5ffc4a-d6ae-4395-9006-4e340ef0d86b) in the DB, resuming execution...
2025-09-15T13:49:55.329079Z INFO crates/ev-core/src/signals_executor.rs:111: [🫀 Core] 👨‍🏭 Executing [ENTRY] signal VesuExtendedEth (id: ca5ffc4a-d6ae-4395-9006-4e340ef0d86b)
2025-09-15T13:49:55.329180Z INFO crates/ev-execution/src/lib.rs:78: [🤖 Execution] ⏳ Action Exchange(ChaseOrderNeutralWithAvnu)...
2025-09-15T13:49:55.677133Z DEBUG /home/akhercha/.cargo/registry/src/registry.devnet.pragma.build-87b7ac297a47ddb9/guillotine-0.1.3/src/lib.rs:66: generating price adjustor for asset ETH on exchange EXTENDED
2025-09-15T13:50:04.144641Z DEBUG /home/akhercha/.cargo/registry/src/registry.devnet.pragma.build-87b7ac297a47ddb9/guillotine-0.1.3/src/lib.rs:155: 📊 OrderController created for order 655a0507-e710-4590-ae13-7709de8eb808 - initial size: 0.0870748600849651947908509155
2025-09-15T13:50:04.144768Z DEBUG /home/akhercha/.cargo

[2025-09-13 16:16:15,148] ERROR:pragma_sdk.common.fetchers.fetcher_client.fetcher_client:Fetcher 2 (OkxFetcher) failed: Client failed with code -32602. Message: Invalid params. Data: {'reason': 'missing field: "contract_address"'} [2025-09-13 16:16:15,246] ERROR:pragma_sdk.common.fetchers.fetcher_client.fetcher_client:Fetcher 11 (LbankFetcher) failed: Client failed with code -32602. Message: Invalid params. Data: {'reason': 'missing field: "contract_address"'} [2025-09-13 16:16:16,103] INFO:pragma_sdk.common.fetchers.fetcher_client.fetcher_client:Gathered all results in 1.81s INFO:price_pusher.core.poller:🔄 POLLER: Successfully fetched 95 new entries! [2025-09-13 16:16:32,150] ERROR:pragma_sdk.common.fetchers.fetcher_client.fetcher_client:Fetcher 11 (LbankFetcher) failed: Client failed with code -32602. Message: Invalid params. Data: {'reason': 'missing field: "contract_address"'} [2025-09-13 16:16:32,286] ERROR:pragma_sdk.common.fetchers.fetcher_client.fetcher_client:Fetcher 2 (OkxFetcher) failed: Client fai

This file has been truncated, but you can view the full file.
{
"sierra_program": [
"0x1",
"0x7",
"0x0",
"0x2",
"0xc",
"0x1",
"0x1022",
"0xfde",
{
"swapType": "aggregator",
"requestId": "d34f4316-2f48-4a0f-952c-f5583c5a90dc",
"inAmount": "10000000000",
"outAmount": "108917469",
"otherAmountThreshold": "103575172",
"swapMode": "ExactIn",
"slippageBps": 500,
"priceImpactPct": "0",
"routePlan": [
{
"inputMint": "So11111111111111111111111111111111111111112",
"inAmount": "1000000000",
"outputMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"outAmount": "10912871",
"otherAmountThreshold": "10858307",
"swapMode": "ExactIn",
"slippageBps": 50,
"platformFee": null,
"priceImpactPct": "0",
use anyhow::ensure;
use f256::f256;
use rand::Rng;
use reqwest::Client;
use serde_json::Value;
use solvers::starknet::avnu::fetch_avnu_quotes;
use std::str::FromStr;
use std::{future::Future, pin::Pin};
fn u128_from_hex(hex_str: &str) -> anyhow::Result<u128> {
use.std::math::u64
proc.entry_to_price
drop drop swap.1 drop
end
proc.prepare_array_in_ram
push.0.22.0.0.0 mem_storew dropw
push.0.44.0.0.1 mem_storew dropw
push.0.55.0.0.2 mem_storew dropw
#! Swaps two elements stored in the ram at index (i, j).
#! Input is taken from the stack, example:
#! => [i, j]
proc.swap_ram
dup
# => [i, i, j]
push.0.0.0.0 movup.4 mem_loadw
# => [mem_i, i, j]
movup.5 dup push.0.0.0.0 movup.4 mem_loadw
# => [mem_j, j, mem_i, i]
#! Swaps two elements stored in the ram at index (i, j).
#! Input is taken from the stack, example:
#! => [i, j]
proc.swap_ram
dup
# => [i, i, j]
push.0.0.0.0 movup.4 mem_loadw
# => [mem_i, i, j]
movup.5 dup push.0.0.0.0 movup.4 mem_loadw
# => [mem_j, j, mem_i, i]
use miden_crypto::{hash::rpo::RpoDigest, Felt, Word, ZERO};
use miden_lib::transaction::TransactionKernel;
use miden_objects::{
accounts::{Account, AccountId, StorageMap, StorageSlot},
transaction::TransactionScript,
vm::AdviceInputs,
Digest,
};
use miden_tx::{