⛓️Oracle

This installation is exclusive to those who installed it from me. Those who install it elsewhere may get errors.

➑️Install Oracle

cd $HOME
rm -rf slinky
git clone https://github.com/skip-mev/slinky.git
cd slinky
git checkout v1.0.12
make build
mv build/slinky /usr/local/bin/
cd

➑️Create a service

echo "export W_PORT="119"" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo tee /etc/systemd/system/slinkyd.service > /dev/null <<EOF
[Unit]
Description=Warden Slinky Oracle
After=network-online.target

[Service]
User=$USER
ExecStart=$(which slinky) --market-map-endpoint 127.0.0.1:${W_PORT}90 --port ${W_PORT}80
Restart=on-failure
RestartSec=10
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

➑️Let's start

sudo systemctl daemon-reload
sudo systemctl enable slinkyd
sudo systemctl start slinkyd

➑️Logs

journalctl -fu slinkyd --no-hostname

➑️Warden oracle settings

nano /root/.warden/config/app.toml

At the bottom of app.toml, your oracle settings should be as shown below.

sudo systemctl daemon-reload && sudo systemctl restart wardend && sudo systemctl restart slinkyd
sudo journalctl -u wardend -f -o cat

➑️Check

curl localhost:${W_PORT}80/slinky/oracle/v1/prices | jq

Last updated