Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

smartcontractkit/cre-sdk-typescript

Repository files navigation

Build decentralized workflows that combine off-chain computation with on-chain execution using the Chainlink Runtime Environment (CRE) SDK.

What is CRE?

The Chainlink Runtime Environment enables developers to create workflows that:

  • Fetch data from external APIs with built-in consensus
  • Interact with blockchains across multiple networks
  • Coordinate complex operations with triggers and scheduling
  • Aggregate results from multiple data sources reliably

Perfect for building price feeds, automated trading strategies, cross-chain applications, and any workflow requiring reliable off-chain computation with on-chain execution.

Package Structure

This monorepo contains:

Examples

📅 Scheduled Tasks

// Execute every 5 minutesconstcron=newcre.capabilities.CronCapability();cron.trigger({schedule:"0 */5 * * * *"});

🌐 API Data Fetching

// Fetch with built-in consensus across nodesconstprice=awaitcre.runInNodeMode(fetchPriceData,consensusMedianAggregation())(config);

⛓️ Blockchain Integration

// Read/write to any EVM chainconstevmClient=newcre.capabilities.EVMClient(undefined,BigInt("5009297550715157269")// Ethereum Sepolia);

Key Features

  • 🔄 Multi-Node Consensus - Aggregate data from multiple sources reliably
  • ⚡ Cross-Chain Support - Work with 200+ blockchain networks
  • 📊 Built-in Aggregation - Median, mean, and custom consensus mechanisms
  • 🛡️ Type Safety - Full TypeScript support with Zod validation
  • 🎯 Event-Driven - Cron triggers, HTTP webhooks, and custom events
  • 🔗 Viem Integration - Native support for Ethereum interactions

Use Cases

🏦 DeFi Applications

  • Automated yield farming strategies
  • Cross-chain arbitrage bots
  • Dynamic rebalancing portfolios
  • Liquidation protection systems

📊 Data Oracles

  • Custom price feeds with multiple sources
  • Weather data aggregation
  • Sports scores and betting odds
  • Real-world asset tokenization data

🔗 Cross-Chain Operations

  • Bridge monitoring and alerts
  • Multi-chain governance voting
  • Cross-chain token transfers
  • Unified liquidity management

Contributing & Development

This monorepo uses:

  • Bun - Package manager and TypeScript runtime
  • Biome - Formatting and linting
  • Javy - WebAssembly compilation

Setup for Contributors

# Clone with submodules (for protobuf definitions)git clone --recursive https://github.com/smartcontractkit/cre-sdk-typescriptcd cre-sdk-typescript# Install dependenciesbun install# Build everythingbun build

Available Scripts

# Developmentbun build# Build all packages using turbobun check# Format and lint code using biomebun format# Format code using biomebun lint# Lint code using biomebun typecheck# Type check all packages# Package-specific builds (run from packages/cre-sdk/)bun generate:proto# Generate types from protobufbun generate:chain-selectors# Update chain selector typesbun generate:sdk# Generate all SDK types and code

For detailed development setup, see individual package READMEs:

Submodules

This project uses Git submodules for external dependencies:

# Clone with submodulesgit clone --recursive https://github.com/smartcontractkit/cre-sdk-typescript# Or initialize submodules after cloninggit submodule update --init --recursive# Update submodules to latestgit submodule update --remote

Current submodules:

  • chainlink-protos - Protocol buffer definitions

License

See LICENSE in individual package directories.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp