feat(relayer): цена SOL из NATS + WS-раздача + деплой-артефакты
deploy-contract / deploy-contract (release) Failing after 3m34s
deploy-contract / deploy-contract (release) Failing after 3m34s
priceSource больше не рандомит: цена берётся из NATS (market.price.solusdt), конверсия строка->целое x1e8 без float. Шлюз раздаёт цену по WS (/ws, нормализация /api/... -> /...) — фронт просто выводит её. Добавлены Dockerfile и helm-чарт для деплоя в k3s.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
name: 'images.binom.pw/smart/updown-relayer'
|
||||
pullPolicy: IfNotPresent
|
||||
tag: ''
|
||||
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
port: 8895
|
||||
|
||||
ingress:
|
||||
host: ''
|
||||
enabled: false
|
||||
|
||||
smart:
|
||||
rpcUrl: 'http://192.168.76.181:8899'
|
||||
programId: '9ALsnxXNzDBv3mokngCHbruRTWUZiWR7pf7vswS1fCpf'
|
||||
tokenMint: '8dpXNUgWN4m8ohhi6dkVqw4XezbDF7oKDSgnbf2VKjQJ'
|
||||
adminKeypair: '/app/secrets/admin-keypair.json'
|
||||
allowAirdrop: true
|
||||
minAmount: 100000000
|
||||
maxAmount: 10000000000
|
||||
multiplierBps: 13000
|
||||
expirySeconds: 15
|
||||
startBalance: 10000000000
|
||||
|
||||
nats:
|
||||
url: 'nats://192.168.88.93:4222'
|
||||
priceSubject: 'market.price.solusdt'
|
||||
|
||||
keystorePath: '/app/data/.gateway-bettors.json'
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 1Gi
|
||||
storageClassName: local-path
|
||||
|
||||
resources: {}
|
||||
Reference in New Issue
Block a user