Skip to content

Releases: razor-network/oracle-node

v0.1.61

13 Sep 12:08
0c0527c
Compare
Choose a tag to compare
v0.1.61 Pre-release
Pre-release

Bug fixes for median calculation.

unstable-v0.1.6

09 Sep 07:11
065909a
Compare
Choose a tag to compare
unstable-v0.1.6 Pre-release
Pre-release

This is a dev release to support the v0.1.6 version of contracts.

v0.1.53

20 Aug 21:30
5f9890b
Compare
Choose a tag to compare
Add docker support. (#141)

* Add docker support.

* Update readme

* Update Dockerfile. Image now consumes 12mb.

* Update readme

* cleanup Dockerfile

* Add publish workflow

* Fix config

* Clean config

* Clean config

v0.1.52

20 Aug 08:54
2436697
Compare
Choose a tag to compare
Deploy (#150)

* Updated addresses

* Update addresses

v0.1.51

20 Aug 07:21
a232af3
Compare
Choose a tag to compare
Updated addresses (#149)

v0.1.5

20 Aug 07:20
978bcdf
Compare
Choose a tag to compare
Update fetching of addresses from addresses.json (#120)

* Added addresses.json file

* Added AssignAddressesFromJSON() function

* Added getters for deployed addresses

* Made changes according to new getters

* Capitalized GetParametersAddress() function

* Ran gofmt

* Changed path to 'addresses.json'

* minor changes

* Moved addresses.json to dir deployed_addresses

v0.1.31

10 Aug 11:18
42820a3
Compare
Choose a tag to compare
  • Fixed asset ID ordering bug

v0.1.3

09 Aug 10:44
69e7d6b
Compare
Choose a tag to compare
  • Influence Mechanism
  • Import feature
  • Wait time

Added support for v0.1.1 on @razor-network/contracts

26 Jul 12:40
d7f4117
Compare
Choose a tag to compare
Remove fee from createJob and createCollection. (#73)

* Remove fee from createJob and createCollection.

Previously, createJob and createCollection functions in smart contract were payable, but since it was removed, sending ether while calling those functions was throwing gas error. This is fixed in this commit.

Signed-off-by: Ashish Mishra <ashish10677@gmail.com>

* Update README.

Signed-off-by: Ashish Mishra <ashish10677@gmail.com>

v0.1.0

23 Jun 10:26
d7f4117
Compare
Choose a tag to compare

Installation

Prerequisites

  • Golang 1.15 or later must be installed.
  • Latest stable version of node is required.
  • Silicon chip-based Mac users must go for node 15.3.0+
  • geth and abigen should be installed. (Skip this step if you don't want to fetch the bindings and build from scratch)

Building the source

  1. Run npm install to install the node dependencies.

  2. Run npm run build to build the binary. While building the binary, supply the provider RPC URL and the gas multiplier.

  3. If you want to build from scratch i.e., by fetching the smart contract bindings as well, run npm run build-all instead of npm run build.

    Note: To build from scratch, geth and abigen must be installed in your system.

  4. The binary will be generated at build/bin.

Commands

Go to the build/bin directory where the razor binary is generated.

cd build/bin

Create Account

Create an account using the create command. You'll be asked to enter a password that'll be used to encrypt the keystore file.

$ ./razor create

Example:

$ ./razor create
Password: 

Stake

If you have a minimum of 1000 razors in your account, you can stake those using the stake command.

$ ./razor stake --address <address> --amount <amount>

Example:

$ ./razor stake --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c --amount 1000

Vote

You can start voting once you've staked some razors

$ ./razor vote --address <address>

Example:

$ ./razor vote --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c

Unstake

If you wish to withdraw your funds, you can run the unstake command followed by the withdraw command.

$ ./razor unstake --address <address>

Example:

$ ./razor unstake --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c

Withdraw

Once unstake has been called, you can withdraw your funds using the withdraw command

$ ./razor withdraw --address <address>

Example:

$ ./razor withdraw --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c

Transfer

Transfers razor to other accounts.

$ ./razor transfer --amount <amount> --to <transfer_to_address> --from <transfer_from_address>

Example:

$ ./razor transfer --amount 100 --to 0x91b1E6488307450f4c0442a1c35Bc314A505293e --from 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c

Create Job

You can create new jobs using creteJob command.

$ ./razor createJob --url <URL> --selector <selector_comma_seperated> --name <name> --fee <fee_to_lock> --address <address>

Example:

$ ./razor createJob --url https://www.alphavantage.co/query\?function\=GLOBAL_QUOTE\&symbol\=MSFT\&apikey\=demo --selector "Global Quote,05. price" --fee 100 --name msft --repeat false --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c

Set Config

The config is set while the build is generated, but if you need to change your provider or the gas multiplier, you can use the setconfig command.

$ ./razor setconfig --provider <rpc_provider> --gasmultiplier <multiplier_value>

Example:

$ ./razor setconfig --provider https://infura/v3/matic --gasmultiplier 1.5