Skip to content

Instantly share code, notes, and snippets.

View vovilonn's full-sized avatar
🤑

Vovilonn vovilonn

🤑
View GitHub Profile
@vovilonn
vovilonn / aurum_test_payloads.md
Created March 29, 2026 18:03
Тестовые JSON пейлоады для запроса на indexer POST /indexer-webhook/process-stream

Примеры событий стрима Aurum Loans

Эндпоинт: /indexer-webhook/process-stream

Ниже приведены реальные примеры payload’ов, которые приходят из QuickNode Streams после фильтрации.

1. Создание лоан реквеста

{

MagnetDiamond (diamond/*) — изменения

Основано на коммитах: b3edafc8, 2abec817, ac7b63b4, 0ba91c91.

Reinvest P2: поддержка «бесплатного» режима

  • reinvestP2(...) теперь принимает дополнительный параметр isFree.
  • Если isFree=true, реинвест P2 выполняется без списания средств и без распределений:
    • не вызывается расчёт/списание стоимости реинвеста,
  • не записывается значение для реферальных распределений,

MagnetBonuses.sol — изменения

Основано на коммитах: d78fd3d9, ac7b63b4, b3edafc8.

Депозиты и покупка уровней

  • Депозит теперь поддерживает раздельную покупку уровней для P1 и P2: вместо одного targetLevel используются targetLevelP1 и targetLevelP2 (также обновлён previewDeposit).
  • Обновлены события Deposit и DepositActivated: теперь в них передаются старые/новые уровни отдельно для P1 и P2.
  • Валидация целевых уровней стала строже:
    • нельзя вызывать депозит с обоими целевыми уровнями 0;

Изменения в системе Boost (BoostLib / BoostFacet) — описание для аудита

Дата: 2026-01-18

1. Область изменений (scope)

Изменения затрагивают модуль «Boost» в diamond-архитектуре (facet + библиотека-хранилище) и связанные артефакты.

1.1. Основные изменённые контракты

jockerbet-backend | App started at port: 3000
jockerbet-backend | getGoalServeEvents AxiosError: Request failed with status code 500
jockerbet-backend | at settle (/opt/app/node_modules/axios/dist/node/axios.cjs:1900:12)
jockerbet-backend | at IncomingMessage.handleStreamEnd (/opt/app/node_modules/axios/dist/node/axios.cjs:2944:11)
jockerbet-backend | at IncomingMessage.emit (node:events:525:35)
jockerbet-backend | at endReadableNT (node:internal/streams/readable:1358:12)
jockerbet-backend | at processTicksAndRejections (node:internal/process/task_queues:83:21) {
jockerbet-backend | code: 'ERR_BAD_RESPONSE',
jockerbet-backend | config: {
jockerbet-backend | transitional: {
This file has been truncated, but you can view the full file.
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [NestFactory] Starting Nest application...
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +49ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] TelegrafModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] HttpModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 1
This file has been truncated, but you can view the full file.
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [NestFactory] Starting Nest application...
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +49ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] TelegrafModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] HttpModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms
arbitration-bot | [Nest] 1 - 11/23/2022, 12:11:59 AM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms
arbitration-bot | [Nest] 1 - 11
redis | 1:C 10 Nov 2022 16:19:37.068 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 10 Nov 2022 16:19:37.068 # Redis version=7.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 10 Nov 2022 16:19:37.068 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis | 1:M 10 Nov 2022 16:19:37.069 * monotonic clock: POSIX clock_gettime
redis | 1:M 10 Nov 2022 16:19:37.073 * Running mode=standalone, port=6379.
redis | 1:M 10 Nov 2022 16:19:37.073 # Server initialized
redis | 1:M 10 Nov 2022 16:19:37.073 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis | 1:M 10 Nov 2022 16:19:37.084 * Ready to accept connections
rq
Building wheels for collected packages: backports.zoneinfo, bs4, cffi, Pillow, python-multipart, websockets
Building wheel for backports.zoneinfo (pyproject.toml): started
Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
/tmp/pip-build-env-0fxtolgt/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
arbitration-service | WiredTigerRecordStore::insertRecord :: caused by :: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.
arbitration-service | koronapay download: 499.117ms
arbitration-service | koronapay transform: 4.067ms
arbitration-service | koronapay transaction: 205.205ms
arbitration-service | koronapay rates updated 2022-11-08T12:53:03.398Z
arbitration-service | unistream download: 4.952s
arbitration-service | unistream transform: 0.071ms
arbitration-service | unistream transaction: 42.893ms
arbitration-service | unistream rates updated 2022-11-08T12:53:12.279Z
arbitration-service | koronapay download: 779.79ms