1.3.0 • Published 6 years ago

tezos-oracle v1.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Oracle Client

This is client software for reading / writing from the BTC / USD oracle. The following contracts are hardcoded:

Usage

Pre-requisites

Install the dependencies of the project and ts-node (allows direct execution of typescript).

$ npm i
$ npm i -g ts-node

Retrieve a BTC / USD Price

The following will output a closing price of BTC at a given timestamp. The data is read from KT1XjYrm3AX5Ptw2ZKXTPYE5ZDFWprfdihKb.

$ ts-node src/get-btc-usd-price.ts

Oracle Data:
BTC / USD Price: [object Object]
As of: 2020-03-29T10:53:00Z

Update the BTC / USD Price

The following will output a command to run in tezos-client to update the storage. Data is written to KT1DiFg6TxLgsCFAFmLgc9mBBUdE7TRnQzMG.

$ ts-node src/update-price.ts
<Run given command>

TODO

  • Pass contract as a param
1.3.0

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.10

6 years ago

0.0.11

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.3

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago