Oracle Setup
Compiling binary programs
cd $HOME
git clone https://github.com/skip-mev/slinky.git && cd slinky
git checkout v0.4.3
make buildAfter the compilation is complete, the slinky program will be generated in the ./build folder of the current directory.
Add the program to the systemd daemon
cat > /etc/systemd/system/slinkyd.service <<EOF
[Unit]
Description=slinky
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/slinky
ExecStart=$HOME/slinky/build/slinky --oracle-config-path ./config/core/oracle.json --market-map-endpoint 0.0.0.0:9090
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOFIf you customized the port when configuring the validator, please check whether your grpc port is 9090. If not, you need to modify the ExecStart parameter above. You can check how the address = in the [grpc] field in this configuration file ~/.initia/config/app.toml is defined.
Add the auto-start and start it
Modify the validator configuration to enable the oracle
Restart the validator to make the new configuration file take effect
Wait a moment and check whether the log is normal.
Check if the oracle is normal
Normal log output:

Or

Last updated