1.3.0 • Published 4 years ago

tezos-oracle v1.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 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

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago