Skip to content

Instantly share code, notes, and snippets.

View allquantor's full-sized avatar
:shipit:
.

Ivan Morozov allquantor

:shipit:
.
View GitHub Profile

Integration Engineering Exercise: Vela.Exchange Data Pipeline

Objective

The goal of this exercise is to demonstrate your ability to integrate a decentralized platform, specifically vela.exchange, into our existing data pipeline. Your task is to ensure that every trade and other relevant information from vela.exchange is captured and stored in our database.

Understanding Our Architecture

Before you begin, familiarize yourself with our current infrastructure, which is outlined below. Understanding the flow of data and the structure of our database tables is crucial for the successful completion of this exercise.

-- Constants
local GAME_TIME = 1000 * 60 * 15 -- 15 minutes game time in milliseconds
local TOKEN_ADDR = "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc" -- Testnet cred token contract
-- Game state
local GameState = {
Treasury = 0, -- The balance of testnet cred in the round
Timeout = 0, -- The time when the game ends
LastSender = nil, -- State of the last sender
}
-- Constants
GAME_TIME = 1000 * 60 * 15 -- 15 minutes game time in milliseconds
TOKEN_ADDR = "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc" -- Testnet cred token contract
TOKEN_MINIMUM = 10000 -- 10 $CRED
-- Game state
GameState = {
Treasury = 0, -- The balance of testnet cred in the round
Timeout = 0, -- The time when the game ends
LastSender = nil, -- State of the last sender
-- Constants
GAME_TIME = 1000 * 60 * 15 -- 15 minutes game time in milliseconds
TOKEN_ADDR = "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc" -- Testnet cred token contract
TOKEN_MINIMUM = 10000 -- 10 $CRED
-- Game state
GameState = {
Treasury = 0, -- The balance of testnet cred in the round
Timeout = 0, -- The time when the game ends
LastSender = nil, -- State of the last sender