Skip to content

Commit

Permalink
Merge pull request #1 from rarimo/feature/base
Browse files Browse the repository at this point in the history
Base implementation
  • Loading branch information
violog authored Feb 6, 2024
2 parents 6c41174 + fc8668e commit d39a7d1
Show file tree
Hide file tree
Showing 94 changed files with 14,080 additions and 147 deletions.
1 change: 0 additions & 1 deletion .github/workflows/actions_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ on:
push:
branches:
- 'main'
- 'feature/base'

jobs:
converge:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Builds the docs and deploys to GitHub pages
#
# https://github.com/actions/setup-node
# Using https://github.com/marketplace/actions/deploy-to-github-pages
name: Deploy to Github pages

on:
workflow_dispatch:
push:
branches:
- main
- master

jobs:
deploy_pages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'

- run: |
cd ./docs
npm install
npm run build
- run: touch docs/.nojekyll
- name: Deploy docs 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/web_deploy # The folder the action should deploy.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.vscode/
.idea/
config.*.yaml
docker-compose.yaml
docs/node_modules
docs/web_deploy
vendor/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-alpine as buildbase
FROM golang:1.21-alpine as buildbase

RUN apk add git build-base

Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,3 @@ use `docker run ` with `-p 8080:80` to expose port 80 to 8080
### Database
For services, we do use ***PostgresSQL*** database.
You can [install it locally](https://www.postgresql.org/download/) or use [docker image](https://hub.docker.com/_/postgres/).


### Third-party services


## Contact

Responsible
The primary contact for this project is [//]: # (TODO: place link to your telegram and email)
51 changes: 50 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ log:
disable_sentry: true

db:
url: db_url
url: postgres://points:points@localhost:5432/points?sslmode=disable

listener:
addr: :8000
Expand All @@ -14,3 +14,52 @@ cop:
upstream: "http://..."
service_name: rarime-points-svc
service_port: 80

event_types:
types:
- name: get_poh
title: Get PoH credential
reward: 50
description: Lorem ipsum dolor sit amet
frequency: one-time
expires_at: 2020-01-01T00:00:00Z
- name: daily_login
title: Daily login
reward: 5
frequency: daily
description: Lorem ipsum dolor sit amet
- name: verify_proof
title: Verify proof {:id}
reward: 10
frequency: unlimited
description: Lorem ipsum dolor sit amet
no_auto_open: true

auth:
addr: http://rarime-auth

broadcaster:
addr: "http://broadcaster"
sender_account: "rarimo15hcd6tv7pe8hk2re7hu0zg0aphqdm2dtjrs0ds"

withdrawal:
point_price_urmo: 100

sbt_check:
networks:
- name: polygon
rpc: https://your-rpc
contract: 0x...
request_timeout: 5s
start_from_block: 48984542
block_window: 3
max_blocks_per_request: 5000
- name: ethereum
rpc: https://your-rpc
contract: 0x...
request_timeout: 5s
- name: disabled_sample
disabled: true
rpc: https://your-rpc
contract: 0x...
request_timeout: 5s
Loading

0 comments on commit d39a7d1

Please sign in to comment.