The Wayback Machine - https://web.archive.org/web/20200917232529/https://github.com/smartcontractkit/synth-index-coinpaprika-adapter
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Chainlink External Adapter for Synthetix's Index (CoinPaprika)

This adapter pulls the indexes for Synthetix's index synths, retrieves the current market price for each asset from CoinPaprika, and calculates a weighted index.

Install

yarn

Test

yarn test

Create the zip

zip -r cl-synth-index-coinpaprika.zip .

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-synth-index-coinpaprika.zip file
  • Handler should remain index.handler
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-synth-index-coinpaprika.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.