Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dfip",
"dilisense",
"ebics",
"firo",
"firstname",
"forex",
"frankencoin",
Expand Down
4 changes: 0 additions & 4 deletions infrastructure/bicep/container-groups/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
Container Instances are:

- hb-deuro-usdt: Hummingbot (dEURO/USDT)
- hb-deuro-btc: Hummingbot (dEURO/BTC)
- hb-deps-usdt: Hummingbot (dEPS/USDT)
- hb-deps-btc: Hummingbot (dEPS/BTC)

### Fileshare

Expand All @@ -28,9 +26,7 @@ There is an entrypoint script in the container to setup the individual environme
Connect to the running container:

- az container exec --resource-group rg-dfx-api-dev --name ci-dfx-hb-deuro-usdt-dev --exec-command /bin/bash
- az container exec --resource-group rg-dfx-api-dev --name ci-dfx-hb-deuro-btc-dev --exec-command /bin/bash
- az container exec --resource-group rg-dfx-api-dev --name ci-dfx-hb-deps-usdt-dev --exec-command /bin/bash
- az container exec --resource-group rg-dfx-api-dev --name ci-dfx-hb-deps-btc-dev --exec-command /bin/bash

Start the Hummingbot within the container:

Expand Down
4 changes: 1 addition & 3 deletions infrastructure/bicep/container-groups/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ API_NAME="api"
environmentOptions=("loc" "dev" "prd")

# "hb-deuro-usdt": Hummingbot (dEURO/USDT)
# "hb-deuro-btc": Hummingbot (dEURO/BTC)
# "hb-deps-usdt": Hummingbot (dEPS/USDT)
# "hb-deps-btc": Hummingbot (dEPS/BTC)
instanceNameOptions=("hb-deuro-usdt" "hb-deuro-btc" "hb-deps-usdt" "hb-deps-btc")
instanceNameOptions=("hb-deuro-usdt" "hb-deps-usdt")

# --- ARGUMENTS --- #
DOCKER_USERNAME=
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 19 additions & 0 deletions infrastructure/config/docker/docker-compose-firo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'firo'

services:
firod:
image: firoorg/firod:0.14.15.2
restart: unless-stopped
volumes:
- ./volumes/firo:/home/firod/.firo
ports:
- '8168:8168'
- '8888:8888'
healthcheck:
test: firo-cli -conf=/home/firod/.firo/firo.conf getblockchaininfo || exit 1
start_period: 120s
interval: 30s
timeout: 60s
retries: 10
command: >
-conf=/home/firod/.firo/firo.conf
26 changes: 26 additions & 0 deletions infrastructure/config/firo/firo.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Firo Full Node Configuration (DFX Integration)
# Based on firoorg/firo v0.14.15.2 source code

# Server
server=1
listen=1
daemon=0
logtimestamps=1

# RPC
rpcuser=[RPC_USER]
rpcpassword=[RPC_PASSWORD]
rpcport=8888
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0

# Indexes
txindex=1
addressindex=0
timestampindex=0
spentindex=0

# Performance
dbcache=1024
maxconnections=125
rpcthreads=8
40 changes: 40 additions & 0 deletions migration/1771337617394-AddChargebackAsset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* @typedef {import('typeorm').MigrationInterface} MigrationInterface
* @typedef {import('typeorm').QueryRunner} QueryRunner
*/

/**
* @class
* @implements {MigrationInterface}
*/
module.exports = class AddChargebackAsset1771337617394 {
name = 'AddChargebackAsset1771337617394'

/**
* @param {QueryRunner} queryRunner
*/
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "bank_tx_return" ADD "inputAmount" float`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" ADD "inputAsset" nvarchar(256)`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" ADD "chargebackReferenceAmount" float`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" ADD "chargebackAsset" nvarchar(256)`);
await queryRunner.query(`ALTER TABLE "buy_fiat" ADD "chargebackReferenceAmount" float`);
await queryRunner.query(`ALTER TABLE "buy_fiat" ADD "chargebackAsset" nvarchar(256)`);
await queryRunner.query(`ALTER TABLE "buy_crypto" ADD "chargebackReferenceAmount" float`);
await queryRunner.query(`ALTER TABLE "buy_crypto" ADD "chargebackAsset" nvarchar(256)`);
}

/**
* @param {QueryRunner} queryRunner
*/
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "buy_crypto" DROP COLUMN "chargebackAsset"`);
await queryRunner.query(`ALTER TABLE "buy_crypto" DROP COLUMN "chargebackReferenceAmount"`);
await queryRunner.query(`ALTER TABLE "buy_fiat" DROP COLUMN "chargebackAsset"`);
await queryRunner.query(`ALTER TABLE "buy_fiat" DROP COLUMN "chargebackReferenceAmount"`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" DROP COLUMN "chargebackAsset"`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" DROP COLUMN "chargebackReferenceAmount"`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" DROP COLUMN "inputAsset"`);
await queryRunner.query(`ALTER TABLE "bank_tx_return" DROP COLUMN "inputAmount"`);
}
}
1 change: 1 addition & 0 deletions migration/seed/asset.csv
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,4 @@ id,name,type,buyable,sellable,chainId,sellCommand,dexName,category,blockchain,un
113,BTC,Coin,TRUE,TRUE,,,BTC,Public,Bitcoin,Bitcoin/BTC,Bitcoin,FALSE,,87278.97353,FALSE,11,68819.65463,FALSE,FALSE,FALSE,FALSE,BTC,,TRUE,0,0,74099.1069,TRUE
112,BNB,Coin,TRUE,TRUE,0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c,,BNB,Public,BinanceSmartChain,BinanceSmartChain/BNB,Binance Coin,FALSE,601,833.1583387,FALSE,36,656.9471065,FALSE,FALSE,FALSE,FALSE,Other,18,FALSE,0,0,707.34435,TRUE
111,ETH,Coin,TRUE,TRUE,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,ETH,Public,Ethereum,Ethereum/ETH,Ether,FALSE,1,2922.079246,FALSE,6,2304.065646,FALSE,FALSE,FALSE,FALSE,Other,18,TRUE,0,0,2480.82045,TRUE
409,FIRO,Coin,TRUE,TRUE,,,FIRO,Public,Firo,Firo/FIRO,,FALSE,,1.5,FALSE,,1.35,FALSE,FALSE,FALSE,FALSE,Other,8,FALSE,0,0,1.4,TRUE
28 changes: 10 additions & 18 deletions rest-client/dfx-api.http
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Authorization: Bearer {{authToken}}

@authToken = {{login.response.body.accessToken}}

PUT {{url}}/v1/buyCrypto/refVolumes
PUT {{url}}/v1/buyCrypto/refVolumes?start=xxx&end=yyy
Authorization: Bearer {{authToken}}

###
Expand Down Expand Up @@ -295,9 +295,14 @@ Authorization: Bearer {{authToken}}

@authToken = {{login.response.body.accessToken}}

PUT {{url}}/v1/kyc/admin/step/xxx/ident
PUT {{url}}/v1/kyc/admin/step/xxx
content-type: application/json
Authorization: Bearer {{authToken}}

{
"status": "Completed"
}

###

@authToken = {{login.response.body.accessToken}}
Expand Down Expand Up @@ -355,22 +360,9 @@ Authorization: Bearer {{authToken}}

{
"address": "xxx",
"blockchain": "Cardano"
}

###

@authToken = {{login.response.body.accessToken}}

POST {{url}}/v1/alchemy/syncTransactions
content-type: application/json
Authorization: Bearer {{authToken}}

{
"blockchain": "Polygon",
"fromBlock": 63869127,
"toBlock": 63869127,
"address": "0x..."
"blockchain": "Ethereum",
"fromBlock": 24525738,
"toBlock": 24525740
}

###
Expand Down
Loading
Loading