bazaar-watchdog

module
v0.0.0-...-e78d781 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: GPL-3.0

README

Bazaar watchdog

Bazaar watchdog continuously watches for on-chain Marketplace API offers which match the Bazaar JSON schema as well as incoming transactions which are sent to a saved Bazaar's payment ID.

Upon detecting a new Bazaar, watchdog strips the Base64 encoding and saves some information to the MongoDB database.

Upon detecting an incoming transaction of either native Zano, or the confidential asset 'Rackz', it will update the Bazaar's balance.

.env file

An example .env file for Bazaar watchdog

# MongoDB
MONGO_URI_DEV=mongodb://localhost:27017/bazaar

# Zano
ZANOD_URL="http://127.0.0.1:11211/json_rpc"
SIMPLEWALLET_URL="http://127.0.0.1:11212/json_rpc"

INSTANCE_NAME=bazaarx
INSTANCE_HASH=60a1c6607a4decfd9d854200c5b72041

# ASSET
ZANO_ASSET_ID=d6329b5b1f7c0805b5c345f4957554002a2f557845f64d7645dae0e051a6498a
RACKZ_ASSET_ID=f07f16c41dfff6082821d39562775936a9c4b6a7a207047ef036a0c896ec537f

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL