Pharos 백서

Pharos

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 18쪽 중 6쪽

haros supports oracle solutions for different data and integration needs. Refer to the pages below for setup and usage: * Supra DORA Pull Oracle * Chainlink Data Streams # Chainlink Data Feeds ## Overview Chainlink provides secure and decentralized oracle services used across the blockchain ecosystem. On Pharos, Chainlink Data Streams enables developers to access high-frequency off-chain data with low latency, making it suitable for advanced financial and data-intensive applications. ## Network Configuration Chainlink Data Streams is available on Pacific Mainnet with the following configuration: ### Verifier Proxy | Network | Address | | --------------- | ------------------------------------------ | | Pacific Mainnet | 0xa094978891512268f4a4a4641B8da1A2a3E3BEB7 | ## When to Use Chainlink Data Streams Chainlink Data Streams is typically used for: * High-frequency price data and market feeds * Low-latency applications such as trading and derivatives * Advanced DeFi protocols requiring real-time data updates * Use cases where data freshness and speed are critical ## Integration Notes * Designed for applications that require faster and more frequent data updates compared to traditional oracle models * Ensure your contracts are configured to use the correct verifier proxy * Suitable for performance-sensitive and data-intensive use cases ## Documentation For detailed integration guides and implementation details: <https://docs.chain.link/data-streams> ## Next Steps * Integrate Data Streams into your smart contracts * Validate data flows and performance for your use case * Combine with other infrastructure such as RPC and indexing for full application workflows # Chainlink Push Engine Feeds ## Overview Pharos has deployed Chainlink self-managed price feeds using the Chainlink Runtime Environment (CRE). A CRE workflow periodically fetches price data from the Chainlink Data Streams API, checks deviation and heartbeat thresholds, and pushes updates on-chain to a central cache contract. Each price pair has a dedicated proxy contract that exposes the standard Chainlink Data Feeds interface, allowing any on-chain consumer to read the latest price via `latestAnswer()`. ## Common Settings | Parameter | Value | | ---------------------------- | ------------ | | Decimals | 18 | | PriceFeed DeviationThreshold | 0.5 | | PriceFeed Heartbeat | 3600 seconds | ## PriceFeed 2.0 > **Note:** Self-Managed Feeds are pull-based and do not use a round-based aggregation model. As a result: > > * `roundId` and `answeredInRound` are always `0`. There are no OCR aggregation rounds — prices are written directly by CRE workflows. > * `startedAt` and `updatedAt` both return the observation timestamp of the latest report. They are identical and do not represent distinct lifecycle events of a round. > **Note:** When consuming price data from the cache, always verify that the returned data is sufficiently fresh for your use case. > > Use `latestAnswerTimestampForFeed` (or `latestReportTimestamp` on the proxy) to retrieve the timestamp alongside the answer. > **Note:** The stored timestamp reflects the **observations timestamp** of the report — the time at which the price was observed by the Chainlink DON — not the time the transaction was included on-chain. Compare this value against the current block timestamp and enforce a maximum acceptable staleness threshold appropriate for your application. ## Pacific Mainnet | Pair | Feed ID | Contract Address | | --------------------- | ------------------------------------------------------------------ | ------------------------------------------ | | SelfManagedFeedsCache | All feeds | 0xd9F00c86ced2De92F6B7152b0492cb28edc4B5a8 | | PROS/USD | 0x0003f73a1abb2eec1ecdde915c659cbb8f0cbb030156b75dd401fbfd5281e246 | 0x371Ed36aEe5bFFbED1A2aa9b7deD7F4EB30F5466 | | BTC/USD | 0x00039d9e45394f473ab1f050a1b963e6b05351e52d71e507509ada0c95ed75b8 | 0x8b5DB228Fbccf588f08B073C235254aCb6791D36 | | ETH/USD | 0x000362205e10b3a147d02792eccee483dca6c7b44ecce7012cb8c6e0b68b3ae9 | 0x1Ed3e8CdC173363593BfAD9bF77aa2A0e7351DB8 | | WETH/USD | Same as ETH/USD | Same as ETH/USD | | WBTC/USD | 0x00034a95e798013fd8bc6ac56707488e1c4622e5dffa9f3c2fe99f8105b4fa5b | 0x518B75ab24251Db9c34c7173f62FBa6E773598CC | | USDT/USD | 0x0003a910a43485e0685ff5d6d366541f5c21150f0634c5b14254392d1a1c06db | 0x525D92D6Caa35060B4D5e3deDa6F52BdA3804618 | | USDC/USD | 0x00038f83323b6b08116d1614cf33a9bd71ab5e0abf0c9f1b783a74a43e7bd992 | 0x3f882C4F2836b1e5C5278ff2B9FccE2502A35C5d | | LINK/USD | 0x00036d7a1251e3f67d6658466b5e9e7fe8418af7feac9567ff322bff95cc2401 | 0x0644220E991a78Bf900648ce59211695cA47c480 | | BNB/USD | 0x000335fd3f3ffa06cfd9297b97367f77145d7a5f132e84c736cc471dd98621fe | 0x481Ecd48683ed2dD249d888Ab71B29D7b951B999 | | SOL/USD | 0x0003b778d3f6b2ac4991302b89cb313f99a42467d6c9c5f96f57c29c0d2bc24f | 0xdABF88CF4d4d2963631C7d69c394A83af2930983 | | XRP/USD | 0x0003c16c6aed42294f5cb4741f6e59ba2d728f0eae2eb9e6d3f555808c59fc45 | 0x22AeEADe5afFbd25F9F2b40f186aCf003E478FB0 | | WSRUSD/RUSD | 0x0007c129e624689953a2636c014531b2f0bd0c15f9a22211f53023354f309fa6 | 0xb5779919e2F183e59A34140331F7779cbFF1d1BC | | SYZUSD/YZUSD | 0x0007690a1667f3978924aa34b16a46ab12fcaae1b012c2f348905cb8299f58b7 | 0x36Aff5A272c80B3222c0C9138f2D43c7FAE2F372 | | STRUSD/TRUSD | 0x00074de84889ebc1ae6505e72281365430ba0ccf73dfaea09c6036bb1199739f | 0xbeD4692E83F7a2b51bDF8357085769dC87cA8E7d | ## Atlantic Testnet | Pair | Feed ID | Contract Address | | --------------------- | ------------------------------------------------------------------ | ------------------------------------------ | | SelfManagedFeedsCache | All feeds | 0x388c44D3B59d7e89582Caa6Fc475f282a0725480 | | PROS/USD | 0x00037de4af3cb4fd0d82eed58a43ec144809f7fa7b4c6508eb628ad6d4d8b363 | 0x14d427B112aD61B18E4b1ACdB2893987EB483760 | | BTC/USD | 0x00037da06d56d083fe599397a4769a042d63aa73dc4ef57709d31e9971a5b439 | 0x5bcff8e4f4C02b5a3192A96DF4Eb5BB0Afdc36f0 | | ETH/USD | 0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782 | 0x72A7c93b90fEbAA9fD53ded20411Fbb09eA72D03 | | WETH/USD | Same as ETH/USD | Same as ETH/USD | | WBTC/USD | 0x0003986bae710e410e6a6ec824db9ac91f97f6dd47fc5b28d028c14e825c5891 | 0xA5b7Fa94b22588f7E6df28f3F242b81e84DBE9Ef | | USDT/USD | 0x00032874077216155926e26c159c1c20a572921371d9de605fe9633e48d136f9 | 0xc5e5b55352c5a6b50Bc9F8e192948D9F51523649 | | USDC/USD | 0x0003dc85e8b01946bf9dfd8b0db860129181eb6105a8c8981d9f28e00b6f60d9 | 0x70dcf7caD4D5C54e9b4f7286Cd5a2794b93B038a | | LINK/USD | 0x00036fe43f87884450b4c7e093cd5ed99cac6640d8c2000e6afc02c8838d0265 | 0x58DDd6596605f550db5ce1892867ecEA7Db5CDDC | | BNB/USD | 0x000387d7c042a9d5c97c15354b531bd01bf6d3a351e190f2394403cf2f79bde9 | 0x0D030427DFFe9644121429bD0CE6260EbeE5CEC6 | | SOL/USD | 0x0003d338ea2ac3be9e026033b1aa601673c37bab5e13851c59966f9f820754d6 | 0xbb4b916035F28757e1fFC303CC81a1A29536F8F9 | | XRP/USD | 0x00035e3ddda6345c3c8ce45639d4449451f1d5828d7a70845e446f04905937cd | 0x731bF4Fbb91A47cf795f87b8E12148Cdd1a3FEBa | | WSRUSD/RUSD | 0x000706ad7092fdc2310335a82828efe1d4c0220e5bf0fc46100da431f3433743 | 0x045fE9F80ac65c2702985a889A6a500D9fA20897 | | SYZUSD/YZUSD | 0x00070d19efa92f43763e29a8c444be98d19bf9c7487fb6e62ab5be7adb8ba896 | 0x3aca4c56afc1BA3CfF9C8f8e9911798ad82F538A | | STRUSD/TRUSD | 0x00074185003a58896a9e79b81bcfb4ab3212924f4dbb75629d795143ab967e06 | 0x9A648AC8B1bB657C64A73d9912e816973a998552 | ## Contract Interface ```solidity /// @notice Get the latest answer function latestAnswer() external view returns (int256); /// @notice Get the latest answer function latestTimestamp() external view returns (uint256); /// @return feedId The Feed ID associated with this proxy function getFeedId() external view returns (bytes32 feedId); ``` # Supra ## Overview Supra provides high-performance oracle services that deliver real-time price feeds and external data to decentralized applications. On Pharos, Supra’s DORA Pull Oracle is deployed on Pacific Mainnet and Atlantic Testnet, enabling smart contracts to securely fetch off-chain data directly from the oracle network. ## Network Deployment The DORA Pull Oracle is available on Pacific Mainnet and Atlantic Testnet with the following contracts: ### Pacific Mainnet Contracts | Contract | Address | | -------- | ------------------------------------------ | | Storage | 0x58e158c74DF7Ad6396C0dcbadc4878faC9e93d57 | | Pull | 0x16f70cAD28dd621b0072B5A8a8c392970E87C3dD | ### Atlantic Testnet Contracts | Contract | Address | | -------- | ------------------------------------------ | | Storage | 0xaa2f56843Cec7840F0C106F0202313d8d8CB13d6 | | Pull | 0x443A0f4Da5d2fdC47de3eeD45Af41d399F0E5702 | ## When to Use Supra Supra is typically used for: * Fetching real-time price feeds * Building DeFi applications (lending, trading, derivatives) * Powering RWA protocols that depend on external data * Triggering smart contract logic based on off-chain inputs ## Integration Notes * The DORA Pull model allows contracts to request data directly from the oracle * Ensure your contract is configured to interact with the correct oracle contract addresses * Suitable for applications requiring reliable and up-to-date data feeds ## Documentation For detailed integration guides and supported features: <https://docs.supra.com/oracles> *** ## Next Steps * Integrate the DORA Pull Oracle into your smart contracts * Test oracle data flows on Mainnet and Testnet * Combine with other infrastructure such as RPC and indexing for full application workflows # Cross Chain Infrastructure ## Overview Cross-chain infrastructure enables applications on Pharos to interact with other blockchain networks. It allows developers to move assets, send messages, and build applications that operate across multiple ecosystems. For developers building multi-chain applications or integrating external liquidity and users, cross-chain infrastructure is a key component. ## What You Can Do with Cross-Chain Infrastructure * Transfer assets between networks * Send messages across chains * Build omnichain applications * Access liquidity and users from other ecosystems * Coordinate logic across multiple chains ## Why It Matters Modern applications often extend beyond a single blockchain. Cross-chain infrastructure allows Pharos-based applications to integrate with other networks, improving composability and expanding reach. ## Available Solutions Pharos supports cross-chain solutions for asset transfers and messaging. Refer to the pages below for setup and usage: * Chainlink CCIP * Circle CCTP * LayerZero # Chainlink CCIP Chainlink CCIP enables secure cross-chain messaging and token transfers between supported blockchains. On Pharos, CCIP allows developers to build applications that interact with multiple networks, including cross-chain DeFi protocols, token bridges, and omnichain applications. ## Supported Lanes The following cross-chain lanes are currently available: * Pharos ↔ Ethereum * Pharos ↔ Jovay * Pharos ↔ Polygon * Pharos ↔ Base ## Network Configuration Chainlink CCIP is available on Pacific Mainnet with the following configuration: ### Core Parameters | Parameter | Value | | --------------- | ------------------------------------------ | | Chain Selector | 7801139999541420232 | | Router Contract | 0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297 | ## When to Use CCIP Chainlink CCIP is typically used for: * Cross-chain token transfers * Sending messages between smart contracts on different chains * Building omnichain applications * Integrating liquidity and users from other ecosystems ## Integration Notes * Use the Router contract to initiate cross-chain messages and token transfers * Ensure correct configuration of chain selectors and destination chains * Suitable for applications requiring secure and standardized cross-chain communication ## Documentation For detailed integration guides and supported configurations: <https://docs.chain.link/ccip/directory/mainnet/chain/pharos-mainnet> ## Next Steps * Configure your contracts to interact with the CCIP Router * Test cross-chain messaging and transfers * Combine with other infrastructure such as RPC and oracles for full application workflows # Circle CCTP ## Overview Circle’s Cross-Chain Transfer Protocol (CCTP) enables secure transfer of USDC across blockchains using a native burn-and-mint mechanism. On Pharos, CCTP allows developers to move USDC between supported networks without relying on traditional bridges or wrapped tokens. Unlike lock-and-mint bridges, CCTP burns USDC on the source chain and mints native USDC on the destination chain, ensuring a 1:1 transfer with no liquidity fragmentation. ## Contract Addresses CCTP smart contract addresses for Pharos. For contract interfaces and method signatures, see [Contract Interfaces](https://developers.circle.com/cctp/references/contract-interfaces). Full contract source code is [available on GitHub](https://github.com/circlefin/evm-cctp-contracts). ### Pacific Mainnet Contracts #### TokenMessengerV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ---------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Pharos** | 31 | [`0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d`](https://pharos.socialscan.io/address/0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d) | #### MessageTransmitterV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ---------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Pharos** | 31 | [`0x81D40F21F12A8F0E3252Bccb954D722d4c464B64`](https://pharos.socialscan.io/address/0x81D40F21F12A8F0E3252Bccb954D722d4c464B64) | #### TokenMinterV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ---------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Pharos** | 31 | [`0xfd78EE919681417d192449715b2594ab58f5D002`](https://pharos.socialscan.io/address/0xfd78EE919681417d192449715b2594ab58f5D002) | #### MessageV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ---------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Pharos** | 31 | [`0xec546b6B005471ECf012e5aF77FBeC07e0FD8f78`](https://pharos.socialscan.io/address/0xec546b6B005471ECf012e5aF77FBeC07e0FD8f78) | ### Atlantic Testnet Contracts #### TokenMessengerV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ------------------ | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | **Pharos Testnet** | 31 | [`0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA`](https://pharos-testnet.socialscan.io/address/0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA) | #### MessageTransmitterV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ------------------ | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | **Pharos Testnet** | 31 | [`0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275`](https://pharos-testnet.socialscan.io/address/0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275) | #### TokenMinterV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ------------------ | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | **Pharos Testnet** | 31 | [`0xb43db544E2c27092c107639Ad201b3dEfAbcF192`](https://pharos-testnet.socialscan.io/address/0xb43db544E2c27092c107639Ad201b3dEfAbcF192) | #### MessageV2 | Blockchain | [Domain](https://developers.circle.com/cctp/concepts/supported-chains-and-domains#domain-identifiers) | Address | | ------------------ | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | **Pharos Testnet** | 31 | [`0xbaC0179bB358A8936169a63408C8481D582390C4`](https://pharos-testnet.socialscan.io/address/0xbaC0179bB358A8936169a63408C8481D582390C4) | ## Message Passing Cross-Chain Transfer Protocol (CCTP) uses generalized message passing to facilitate the native burning and minting of USDC across supported blockchains, also known as [domains](https://developers.circle.com/cctp/cctp-supported-blockchains#cctp-supported-domains). Message passing is a three-step process: 1. An onchain component on the source domain emits a message. 2. Circle’s offchain attestation service signs the message. 3. The onchain component at the destination domain receives the message, and forwards the message body to the specified recipient. ## For Pharos The relationship between CCTP’s onchain components and Circle’s offchain Attestation Service is illustrated below for a burn-and-mint of USDC between EVM-compatible domains: <figure><img src="https://3298017099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNmFp0ycownpuaUNf2xeE%2Fuploads%2Fgit-blob-88adb19fd9106d932c803ff23a49caee5f6fb513%2Fcctp.png?alt=media" alt=""><figcaption></figcaption></figure> On Pharos, the onchain component for crosschain burning and minting is called `TokenMessengerV2`, which is built on top of `MessageTransmitterV2`, an onchain component for generalized message passing. In the diagram, a token depositor calls the [TokenMessengerV2#depositForBurn](https://github.com/circlefin/evm-cctp-contracts/blob/63ab1f0ac06ce0793c0bbfbb8d09816bc211386d/src/v2/TokenMessengerV2.sol#L158) function to deposit a native token (such as USDC), which delegates to the TokenMinterV2 contract to burn the token. The `TokenMessengerV2` contract then sends a message via the [MessageTransmitterV2#sendMessage](https://github.com/circlefin/evm-cctp-contracts/blob/63ab1f0ac06ce0793c0bbfbb8d09816bc211386d/src/v2/MessageTransmitterV2.sol#L143) function. After [sufficient block confirmations](https://developers.circle.com/cctp/required-block-confirmations), Circle’s offchain attestation service, Iris, signs the message. An API consumer must query this attestation and submits it onchain to the destination domain’s [MessageTransmitterV2#receiveMessage](https://github.com/circlefin/evm-cctp-contracts/blob/63ab1f0ac06ce0793c0bbfbb8d09816bc211386d/src/v2/MessageTransmitterV2.sol#L206) function. To send an arbitrary message, directly call [MessageTransmitterV2#sendMessage](https://github.com/circlefin/evm-cctp-contracts/blob/63ab1f0ac06ce0793c0bbfb
프로젝트로 돌아가기