Commit Graph

41 Commits

Author SHA1 Message Date
Alec LaLonde
cf2c1438ca Fixed migration handler (#274) 2021-01-14 19:39:26 -07:00
Alec LaLonde
5534ff1a45 Renamed player columns to be consistent snake_case (#262) 2021-01-06 22:08:58 -07:00
Alec LaLonde
c4a2b38484 Renamed table names to be consistent snake_case (#255) 2021-01-04 23:18:29 -07:00
dan13ram
566be91206 updated backend to read 3box collectiblesFavorite (#221)
* updated backend to read 3box collectiblesFavorite

* removed unneccesary '?'
2020-12-16 07:12:58 +05:30
Hammad Jutt
1c7dbe8dab Setup Image Optimization (#146)
* Implement user auth on web

* Setup Image Optimization

* Add favicon

* Add IMGIX_TOKEN to render.yaml
2020-10-12 10:56:55 -06:00
Hammad Jutt
e6ab0cfe78 Fix schema types in migrate script (#143) 2020-10-09 23:50:19 -06:00
Hammad Jutt
13d5967f92 Improve 3Box profile data (#142) 2020-10-09 23:49:58 -06:00
Hammad Jutt
de71feadde Update backend to use enum tables + fix migration trigger (#141)
* Setup prettier-ignore and add more instructions on running backend

* Dont throw error when updating verified accounts

* Migrate account-type to use tables instead of native enum

* Migrate enneagram_type to use table instead of native enum

* Update schema and front end for new enum tables

* Fix type errors
2020-10-09 22:16:15 -06:00
Hammad Jutt
ab8782cf28 Fix handler for SourceCred migration (#108)
Was breaking before due to unique key conflicts because sourceCredIdentity IDs have potential to change around.
2020-09-06 18:59:48 -06:00
Hammad Jutt
13ab1eef2f Setup Trigger to fetch verified accounts from 3box when ETH address gets updated or user gets inserted 2020-08-21 23:04:26 -06:00
Hammad Jutt
caca26b1ce Add Remote Schema for DAOHaus / Moloch Dao memberships
Uses the ethereum address of a specific player to fetch the Moloch DAOs that player is a member of
2020-08-21 10:57:31 -06:00
Hammad Jutt
d0b581d308 Fix getBoxProfile resolver for players with no ETH address 2020-08-17 01:40:03 -06:00
Hammad Jutt
e39aa189e3 Implement Player Ranks 2020-08-16 01:52:20 -06:00
Hammad Jutt
c27c77eb74 Setup handler to migrate SC ledger accounts to Database Players 2020-08-16 01:45:27 -06:00
Hammad Jutt
bcb69ad307 Simplify type defs for backend config.ts (#69) 2020-08-15 14:04:10 -06:00
Hammad Jutt
7e0e42a2ff Generate Typesafe SDK for Hasura in Backend (#68) 2020-08-15 02:26:29 -06:00
Hammad Jutt
dbe4f046d8 Update dependencies and fix updateBoxProfile handler.ts 2020-08-05 01:45:56 -06:00
Hammad Jutt
d26150e90d Reformat files and update yarn.lock 2020-08-04 21:09:51 -06:00
Hammad Jutt
d0662178f3 Setup codegen for backend resolvers and improve 3Box types 2020-08-04 21:09:51 -06:00
Pacien Boisson
790a0cc78c using a remote schema instead of an action for getBoxProfile 2020-08-04 21:09:51 -06:00
Pacien Boisson
a60aa62a94 add ethereumAddress to getBoxProfile 2020-08-04 21:09:51 -06:00
Pacien Boisson
2212579662 get3BoxProfile handler 2020-08-04 21:09:51 -06:00
Hammad Jutt
c2b8ad307e Refromat files and fix config 2020-08-04 20:29:08 -06:00
Pacien Boisson
84a76ad2fe Correct authentication webhook and frontend with ethereum_address in Player 2020-08-04 20:29:08 -06:00
Pacien Boisson
9cdfa26a78 lint 2020-08-04 20:29:08 -06:00
Pacien Boisson
7b3b6c2f82 Add ethereum_address to Player model in order to get the box profile 2020-08-04 20:29:08 -06:00
Pacien Boisson
6e0f0c9b66 using a remote schema instead of an action for getBoxProfile 2020-08-04 20:29:08 -06:00
Pacien Boisson
af728ac53d add ethereumAddress to getBoxProfile 2020-08-04 20:29:08 -06:00
Pacien Boisson
8c4df7e547 get3BoxProfile handler 2020-08-04 20:29:08 -06:00
Pacien Boisson
08a4b90d95 Update models (#33)
* Remove unused models

* add new props into Player model

* Added props to Guild

* Setting guild type as a foreign-key reference

* Use foreign table for skills

* Seed data

* prettier
2020-07-27 10:08:48 +02:00
Hammad Jutt
cf3c3f7474 Reformat code 2020-07-13 11:19:48 -06:00
Hammad Jutt
30c9ee5e19 Fix all linting errors 2020-07-13 11:19:48 -06:00
Hammad Jutt
18adfa46d2 Reformat all existing code 2020-07-13 11:11:04 -06:00
Hammad Jutt
26c9bfa134 Cleanup / simplify package.json scripts and names 2020-07-13 11:06:24 -06:00
Hammad Jutt
5de1a5eba5 Simplify Render config 2020-07-12 11:41:52 -06:00
Hammad Jutt
063c8f91db Setup deployment config for Render 2020-07-12 11:41:52 -06:00
Hammad Jutt
675c0e0046 Update Hasura to 1.3 beta and setup actions codegen 2020-07-06 01:55:27 -06:00
Pacien Boisson
899335594a [WIP] Fix docker with lerna (#8)
* trying to fix Backend docker image with lerna

* fix dockerfile CMD

* Fix Dockerfile build

* Fix 3box types

Co-authored-by: Hammad Jutt <jutt@ualberta.ca>
2020-06-08 00:49:39 -06:00
Pacien Boisson
214f3f65c2 3box profiles (#9)
* Fix auth

* Added 3box profile info

* Added player names in list

* Added hasura action to fetch verified accounts on 3Box

* Added usernames

* fix router
2020-05-13 02:02:21 -06:00
Pacien Boisson
7747ff69d0 Architecture update (#7)
* Fix errors with profile_rank ENUM

* Upgrade to Hasura 1.2.1

* Rename Profile to Account

* Common JS package

* rm app-react/lib/did

* Better login management
2020-05-08 21:54:00 +02:00
Pacien Boisson
c684b9d836 Base architecture (#1)
* Hasura and base models

* Added role public SELECT permissions

* Added role player UPDATE permissions

* basic backend api

* Added SELECT permissions for player

* Update backend to typescript

* init app-react

* Add apollo

* graphql-codegen not working well...

* Added web3 to web app

* connecting frontend with web3

* Auth webhook verifies eth signature

* Update frontend to fetch player_id
2020-04-16 10:20:15 +02:00