Skip to content

Rewards #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
49a5a97
rename package
owenkellogg Oct 21, 2022
b49fe83
Receive github webhook url
owenkellogg Oct 21, 2022
9fd078f
Save Github Webhook in Database
owenkellogg Oct 21, 2022
b952fea
API to list webhooks received in database
owenkellogg Oct 21, 2022
d50cdf9
Work on Github Auth. Better build with Dockerfile
owenkellogg Oct 21, 2022
5b10b25
specify real domain for swagger
owenkellogg Oct 21, 2022
d7a6099
Notify Rocket Chat on New Issue
owenkellogg Oct 22, 2022
5239e75
Post Github Webhooks On Blockchain
owenkellogg Oct 25, 2022
493b98a
Website
owenkellogg Oct 31, 2022
d95c105
website for powco.dev
owenkellogg Oct 31, 2022
4842adc
Auto-post all webhooks to blockchain
owenkellogg Nov 4, 2022
59d0ec9
next ui
1aristotelis Nov 28, 2022
ce41445
Merge pull request #1 from EggDao/master
owenkellogg Nov 29, 2022
4f197f2
Merge branch 'master' of github.com:pow-co/powco.dev
owenkellogg Nov 29, 2022
5953171
add rankings + bugfixes
1aristotelis Nov 30, 2022
00bdcea
Merge branch 'master' of github.com:pow-co/powco.dev
owenkellogg Dec 1, 2022
408058c
Store Github Auth Callbacks in Database
owenkellogg Dec 1, 2022
0e61604
Change Swagger Docs Route to /api from /
owenkellogg Dec 4, 2022
5a94656
Post to blockchain upon webhook in handler
owenkellogg Dec 4, 2022
0b45711
Remove web-ui from git
owenkellogg Dec 4, 2022
c6a588f
make tuning panel work + nav by org & repo
1aristotelis Dec 4, 2022
6975d69
fix ui github issue card
1aristotelis Dec 4, 2022
0a4c699
Merge branch 'master' of github.com:pow-co/powco.dev
owenkellogg Dec 4, 2022
68cea58
add out/ directory to gitignore
owenkellogg Dec 4, 2022
baaaf87
Sync github issues periodically from api
owenkellogg Dec 8, 2022
5b79f01
Merge pull request #13 from pow-co/octokit
owenkellogg Dec 8, 2022
67e61b3
API for Github Issues by Org or Repo
owenkellogg Dec 8, 2022
c62f90c
Handle Webhook Function
owenkellogg Dec 8, 2022
2babf93
(fix #16) add error boundaries if API is down
1aristotelis Dec 9, 2022
b280c95
Rank all repos and orgs by boostpow either separately or together.
owenkellogg Dec 12, 2022
3e96e0a
Merge branch 'master' of github.com:pow-co/powco.dev
owenkellogg Dec 12, 2022
749f66a
Stream boostpow proofs into database for indexing
owenkellogg Dec 12, 2022
7f77142
Simplify Powco.Dev CircleCI Deploy
owenkellogg Dec 12, 2022
08e81a2
Close issues once they are closed
owenkellogg Dec 12, 2022
c950cde
superboost
1aristotelis Dec 12, 2022
d1fe6e5
Publish new GithubWebhook messages to AMQP
owenkellogg Dec 13, 2022
871e518
Merge branch 'master' of github.com:pow-co/powco.dev
owenkellogg Dec 13, 2022
d7c8200
Export required actor interface keys from actor module
owenkellogg Dec 13, 2022
c660f7d
Actor to mark issues as closed
owenkellogg Dec 13, 2022
197367a
Export actor configuration for completed issues
owenkellogg Dec 13, 2022
a91936d
Default to only showing open issues
owenkellogg Dec 13, 2022
33edd4b
add web-ui/.next to gitignore
1aristotelis Dec 14, 2022
acbcf0c
updates
1aristotelis Dec 14, 2022
b5c259a
closed issues
1aristotelis Dec 15, 2022
98dd828
hide dependabot
1aristotelis Dec 17, 2022
c70cba1
dynamic satoshi value for superboost
1aristotelis Dec 17, 2022
3f61757
Correct start_date query param for rankings APi
owenkellogg Dec 28, 2022
232ff83
[wip] github issues as RUN NFTs
owenkellogg Dec 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
55 changes: 4 additions & 51 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,23 @@
version: 2.1
jobs:

build:
docker:
- image: circleci/node:14
- image: circleci/postgres:9.5-postgis
environment:
POSTGRES_USER: postgres
POSTGRES_DB: database
POSTGRES_PASSWORD: "letmein"
- image: rabbitmq:3
steps:
- checkout
- run:
name: Install Dependencies
command: npm install
- run:
name: Run Main Tests
command: npm test
- run:
name: Report Code Coverage
command: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
- run:
name: Tag and Release New Version
command: npx semantic-release


build_docker:
docker:
- image: circleci/node:12
- image: circleci/node:16
steps:
- checkout
- setup_remote_docker
- run:
name: Build docker image
command: docker build -t $DOCKER_REPO:$CIRCLE_BRANCH .
command: docker build -t proofofwork/powco.dev:$CIRCLE_BRANCH .
- run:
name: Push to Docker Hub
command: |
docker login --username $DOCKER_USER --password $DOCKER_PASSWORD
docker push $DOCKER_REPO:$CIRCLE_BRANCH

deploy:
machine: true
steps:
- run:
name: Deploy to Web Servers
command: ssh $DEPLOY_HOST "$DEPLOY_COMMAND"

docker push proofofwork/powco.dev:$CIRCLE_BRANCH

workflows:
version: 2
build_and_deploy:
jobs:
- build
- build_docker:
requires:
- build
- deploy:
requires:
- build_docker
filters:
branches:
only:
- master

- build_docker
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ get402.json
*.swp
dist/
.rabbi/config.json
.runcache/
web-ui/.next/
web-ui/node_modules
web-ui/out
powco-dev.2022-10-21.private-key.pem
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/

RUN npm install -g typescript
RUN npm install -g ts-node
RUN npm install

# Bundle app source
COPY . /usr/src/app

RUN npm run build
CMD npm start

RUN npm link

CMD rabbi start
16 changes: 16 additions & 0 deletions __tests__/github_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

import { listIssues } from '../src/github'

import { expect } from './utils'

describe("Github", () => {

it("should list the issues for this repo", async () => {

let issues = await listIssues()

expect(issues).to.be.an('array')

})

})
1 change: 0 additions & 1 deletion config/config.json

This file was deleted.

Empty file added handleWebhook.ts
Empty file.
26 changes: 26 additions & 0 deletions import_repo_issues.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

import { importRepoIssues } from './src/github'

async function main() {


try {

const result = await importRepoIssues({ org: 'pow-co', repo: 'powco.dev' })

console.log(result)


} catch(error) {

console.error(error)


}

process.exit(0)

}

main()

23 changes: 23 additions & 0 deletions market.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const Run = require('run-sdk');

import { Negociation } from './src/jigs/negociation'

export default async function main() {

const run = new Run({ network: 'mock' })

//@ts-ignore
const negociation = new Negociation({
org: 'pow-co',
repo: 'powco.dev',
issue_id: 1
})

console.log(negociation)

}

if (require.main === module) {

main()
}
Loading