1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
//! 
//!
//! <h1 align="center">Blueprint SDK</h1>
//!
//! <p align="center"><em>A comprehensive toolkit for building, deploying, and managing blueprints on the Tangle Network.</em></p>
//!
//! <p align="center">
//! <a href="https://github.com/tangle-network/blueprint/actions"><img src="https://img.shields.io/github/actions/workflow/status/tangle-network/blueprint/ci.yml?branch=main&logo=github" alt="Build Status"></a>
//! <a href="https://github.com/tangle-network/blueprint/releases"><img src="https://img.shields.io/github/v/release/tangle-network/blueprint?sort=semver&filter=blueprint-sdk-*&display_name=release" alt="Latest Release"></a>
//! <a href="https://github.com/tangle-network/blueprint/blob/main/LICENSE"><img src="https://img.shields.io/crates/l/blueprint-sdk" alt="License"></a>
//! <a href="https://discord.com/invite/cv8EfJu3Tn"><img src="https://img.shields.io/discord/833784453251596298?label=Discord" alt="Discord"></a>
//! <a href="https://t.me/tanglenet"><img src="https://img.shields.io/endpoint?color=neon&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Ftanglenet" alt="Telegram"></a>
//! </p>
//!
//! ## Overview
//!
//! Blueprints are Infrastructure-as-Code templates that allow developers to quickly build crypto services. The Blueprint SDK
//! comes equipped with a variety of tools, from event listeners and p2p networking to flexible keystores, allowing you to rapidly
//! prototype distributed systems. With these tools, developers can get started building anything from oracles to bridge
//! security systems, zk prover networks, AI agent orchestration systems. Deploy these applications on the [Tangle Network], [Eigenlayer], or natively.
//!
//! We also have a [documentation site](https://docs.tangle.tools/) on all things Tangle to help you get started.
//!
//! [Tangle Network]: https://tangle.tools
//! [Eigenlayer]: https://eigenlayer.xyz
//!
//! ## Features
//!
//! ## Logging Targets
//!
//! The SDK is split into multiple logging targets to make debugging different components easier.
//! When testing, by default, only `ERROR`, `WARN`, and `INFO` logs will be printed. This can be controlled
//! with the [RUST_LOG] environment variable.
//!
//! An example use-case would be setting `RUST_LOG=tangle-consumer=trace` to determine the cause of a failing
//! job submission.
//!
//! ### Producers
//!
//! * `evm-polling-producer` - [`PollingProducer`]
//! * `tangle-producer` - [`TangleProducer`]
//!
//! ### Consumers
//!
//! * `tangle-consumer` - [`TangleConsumer`]
//!
//! ### Runner
//!
//! * `blueprint-runner` - [`BlueprintRunner`]
//! * `blueprint-router` - [`Router`]
//! * `blueprint-rejection` - All [`Job`] call failures
//!
//! ### Other
//!
//! * `tangle-node` - The stdout of a local Anvil/Tangle node
//! * These are spawned by `cargo tangle blueprint run --protocol tangle` when targeting local testnets.
//! * `build-output` - The stderr of `cargo build` when deploying with [`cargo tangle`]
//! * By default, the output of `cargo build` is hidden. If diagnosing a build error, use `RUST_LOG=build-output=debug`.
//!
//! [RUST_LOG]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
//! [`PollingProducer`]: evm::producer::PollingProducer
//! [`TangleProducer`]: tangle::producer::TangleProducer
//! [`TangleConsumer`]: tangle::consumer::TangleConsumer
//! [`BlueprintRunner`]: runner::BlueprintRunner
//! [`cargo tangle`]: https://docs.rs/cargo_tangle
// == Core utilities ==
// Expose the core module to the outside world
pub use blueprint_core as core;
pub use *;
/// Core cryptographic primitives and utilities
pub use blueprint_crypto as crypto;
pub use blueprint_clients as clients;
pub use blueprint_contexts as contexts;
pub use blueprint_keystore as keystore;
pub use blueprint_qos as qos;
pub use blueprint_std as std;
pub use tokio;
pub use Error;
/// Re-export the core extractors from the `blueprint_core` crate.
/// Blueprint execution and runtime utilities
pub use blueprint_runner as runner;
/// Blueprint authentication proxy and utilities
pub use blueprint_auth as auth;
pub use AuthContext;
/// Manager <-> service communication bridge
pub use blueprint_manager_bridge as bridge;
pub use blueprint_router as router;
pub use Router;
// == Protocol-specific utilities ==
pub use alloy;
pub use *;
pub use *;
pub use eigensdk;
// == Development utilities ==
/// Testing utilities and helpers
// Build utilities
/// Build-time utilities for blueprint compilation
// x402 payment gateway
/// x402 payment gateway for cross-chain job settlement.
///
/// Enables operators to accept payments in any supported token on any supported
/// chain (Base, Ethereum, Solana, etc.) and translate them into job executions.
// Webhook producer for external HTTP event triggers
/// Webhook producer for triggering jobs from external HTTP events.
///
/// Enables blueprints to receive webhooks from external services (TradingView,
/// exchange APIs, monitoring systems, etc.) and convert them into job executions.
// TEE (Trusted Execution Environment) support
/// TEE (Trusted Execution Environment) support for confidential compute.
///
/// Provides attestation verification, key exchange, and middleware for
/// running blueprints in TEE environments (AWS Nitro, Azure CVM, GCP
/// Confidential Space, Intel TDX, AMD SEV-SNP).
// Remote cloud deployment providers
/// Remote cloud deployment providers for Blueprint instances
/// Networking utilities for blueprints
pub use blueprint_stores as stores;