Skip to content

Commit e4a704a

Browse files
authored
Merge branch 'main' into candlestick-api
2 parents 95fd440 + 9aa9f3c commit e4a704a

File tree

16 files changed

+1033
-51
lines changed

16 files changed

+1033
-51
lines changed

public/files/json/feeds-tron-mainnet.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,5 +531,45 @@
531531
"quoteAssetClic": "USD_FX"
532532
},
533533
"decimals": 18
534+
},
535+
{
536+
"compareOffchain": "",
537+
"contractAddress": "TLixA99kEdH9Fx52iL5nJJobUMQSpU22Sv",
538+
"contractType": "",
539+
"contractVersion": 6,
540+
"decimalPlaces": null,
541+
"ens": null,
542+
"formatDecimalPlaces": null,
543+
"healthPrice": "",
544+
"heartbeat": 86400,
545+
"history": true,
546+
"multiply": "100000000",
547+
"name": "USD1 / USD",
548+
"pair": ["USD1", "USD"],
549+
"path": "usd1-usd",
550+
"proxyAddress": "TKWUPnc9SLijWKxDAN7CdMmiJr1bXvHUHd",
551+
"threshold": 0.3,
552+
"valuePrefix": "",
553+
"assetName": "World Liberty Financial USD",
554+
"feedCategory": "medium",
555+
"feedType": "Crypto",
556+
"docs": {
557+
"assetClass": "Crypto",
558+
"assetSubClass": "Stablecoin",
559+
"baseAsset": "USD1",
560+
"baseAssetClic": "USD1_CR",
561+
"blockchainName": "Tron",
562+
"clicProductName": "USD1/USD-RefPrice-DF-Tron-001",
563+
"deliveryChannelCode": "DF",
564+
"marketHours": "Crypto",
565+
"productSubType": "Reference",
566+
"productType": "Price",
567+
"productTypeCode": "RefPrice",
568+
"quoteAsset": "USD",
569+
"quoteAssetClic": "USD_FX",
570+
"underlyingAsset": "USD",
571+
"underlyingAssetClic": "USD_FX"
572+
},
573+
"decimals": 8
534574
}
535575
]

public/files/json/feeds-tron-testnet.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,5 +334,29 @@
334334
"feedType": "",
335335
"docs": {},
336336
"decimals": 18
337+
},
338+
{
339+
"compareOffchain": "",
340+
"contractAddress": "TQWKSBtbcuiWsXaw9cfWZ7zEcWZZHaLe8V",
341+
"contractType": "",
342+
"contractVersion": 6,
343+
"decimalPlaces": null,
344+
"ens": null,
345+
"formatDecimalPlaces": null,
346+
"healthPrice": "",
347+
"heartbeat": 86400,
348+
"history": true,
349+
"multiply": "100000000",
350+
"name": "USD1 / USD",
351+
"pair": ["USD1", "USD"],
352+
"path": "usd1-usd",
353+
"proxyAddress": "TD5ZGYdWgqR4PrJ3pozktD96uxTkLVPyft",
354+
"threshold": 0.3,
355+
"valuePrefix": "",
356+
"assetName": "",
357+
"feedCategory": "",
358+
"feedType": "",
359+
"docs": {},
360+
"decimals": 8
337361
}
338362
]

public/samples/DataStreams/StreamsUpkeep.sol

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ contract StreamsUpkeep is ILogAutomation, StreamsLookupCompatibleInterface {
6161
error InvalidReportVersion(uint16 version); // Thrown when an unsupported report version is provided to verifyReport.
6262

6363
/**
64-
* @dev Represents a data report from a Data Streams stream for v3 schema (crypto streams).
64+
* @dev Represents a data report from a Data Streams stream for v3 schema (used for crypto and DEX State Price streams).
6565
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
66+
* `bid`, and `ask` values are not available for DEX State Price streams.
6667
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
6768
*/
6869
struct ReportV3 {
@@ -73,8 +74,8 @@ contract StreamsUpkeep is ILogAutomation, StreamsLookupCompatibleInterface {
7374
uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK.
7475
uint32 expiresAt; // Latest timestamp where the report can be verified onchain.
7576
int192 price; // DON consensus median price (8 or 18 decimals).
76-
int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals).
77-
int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals).
77+
int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals). Note: not available for DEX State Price streams.
78+
int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals). Note: not available for DEX State Price streams.
7879
}
7980

8081
/**

public/samples/DataStreams/StreamsUpkeepRegistrar.sol

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ contract StreamsUpkeepRegistrar is
8888
AutomationRegistrarInterface public immutable i_registrar;
8989

9090
/**
91-
* @dev Represents a data report from a Data Streams feed for v3 schema (crypto feeds).
92-
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the feed.
91+
* @dev Represents a data report from a stream for v3 schema (crypto and DEX State Price streams).
92+
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
93+
* `bid`, and `ask` values are not available for DEX State Price streams.
9394
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
9495
*/
9596
struct ReportV3 {
@@ -100,8 +101,8 @@ contract StreamsUpkeepRegistrar is
100101
uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK.
101102
uint32 expiresAt; // Latest timestamp where the report can be verified onchain.
102103
int192 price; // DON consensus median price (8 or 18 decimals).
103-
int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals).
104-
int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals).
104+
int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals). Note: not available for DEX State Price streams.
105+
int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals). Note: not available for DEX State Price streams.
105106
}
106107

107108
/**

0 commit comments

Comments
 (0)