![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
redstone-api-extended
Advanced tools
Extended javascript library for fetching data from Redstone ecosystem
This is an extended version of redstone-api.
It adds the oracle
module, allowing to fetch data packages from decentralized cache layer (including redstone-cache-layer nodes and streamr network) and use it in Blockchain Smart Contracts with tools like redstone-evm-connector.
npm install redstone-api-extended
yarn add redstone-api-extended
// Using Node.js `require()`
const redstone = require('redstone-api-extended');
// Using ES6 imports
import redstone from 'redstone-api-extended';
// Get package for all symbols
const dataPackage = await redstone.oracle.getFromDataFeed("redstone-avalanche-prod");
// Get package for one symbol
const dataPackage = await redstone.oracle.getFromDataFeed("redstone-avalanche-prod", "ETH");
const dataPackage = redstone.oracle.getDefaultDataSourcesConfig("redstone-stocks");
// Get with custom data sources config
const dataPackage = await redstone.oracle.get({
"sources": [
{
"type": "streamr",
"streamrEndpointPrefix": "0x981bdA8276ae93F567922497153de7A5683708d3/redstone-oracle",
"disabledForSinglePrices": false,
"evmSignerAddress": "0x981bdA8276ae93F567922497153de7A5683708d3"
},
{
"type": "cache-layer",
"url": "https://api.redstone.finance",
"providerId": "TEHhCDWy-vGmPSZsYJyM0aP_MM4xESgyIZdf5mVODzg",
"evmSignerAddress": "0x981bdA8276ae93F567922497153de7A5683708d3"
},
{
"type": "cache-layer",
"url": "https://api.redstone.finance",
"providerId": "ll8DlO4xMwHK7gIMsbnOnN7Jg8Sl674Ls4G0aBfHCyk",
"evmSignerAddress": "0x3BEFDd935b50F172e696A5187DBaCfEf0D208e48"
},
{
"type": "cache-layer",
"url": "https://vwx3eni8c7.eu-west-1.awsapprunner.com",
"providerId": "TEHhCDWy-vGmPSZsYJyM0aP_MM4xESgyIZdf5mVODzg",
"evmSignerAddress": "0x981bdA8276ae93F567922497153de7A5683708d3"
}
],
"valueSelectionAlgorithm": "first-valid",
"timeoutMilliseconds": 10000,
"maxTimestampDiffMilliseconds": 150000,
"preVerifySignatureOffchain": true
});
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
Extended javascript library for fetching data from Redstone ecosystem
We found that redstone-api-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.