1.0.0 • Published 10 months ago

@storknetwork/stork_pyth_adapter v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Stork Pyth Adapter

This contract is a light wrapper around the Stork EVM contract which conforms to Pyth's IPyth interface.

Integrate with Your Solidity Contracts

  1. Install the Stork Pyth Adapter npm package in your project
npm i @storknetwork/stork_pyth_adapter
  1. Import the Stork Pyth Adapter contract into your solidity contract using:
import "@storknetwork/stork_pyth_adapter/contracts/StorkPythAdapter.sol";
  1. Create a StorkPythAdapter contract. This object takes in the contract address of Stork's contract on this chain:
storkPythAdapter = new StorkPythAdapter(storkContract);

You can see a simple working example of a Solidity contract using this here.

Publish to npm

  1. update the package.json version
  2. npm login
  3. npm publish --access public
1.0.0

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago