Skip to content

Commit

Permalink
Testnet (#28)
Browse files Browse the repository at this point in the history
* add deploy-testnet.yml

* add testnet deployment workflow & appspec

* testnet workflow debugging

* upload appspec as artifact

* upload zipped codebase to s3 in workflow

* continue working on after_install_testnet

* separate watchtower log groups by django env

* add testnet potlock TLA to indexer handler

* add POTLOCK_TLA to settings

* add dev.potlock.io and test-dev.potlock.io to allowed hosts

* remove admin dashboard edit access

* remove admin edit permission for all models

* add timestamp to deployment zip filename

* add env vars to deploy-testnet

* add after_install_dev script

* add after_install debug logs

* handle testnet potfactory & pot contract patterns

* test throttle rate

* update throttling to 100/minute

* update readme with API urls
  • Loading branch information
lachlanglen authored Jun 4, 2024
1 parent 224125b commit 2e159f9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
- [Steps to run:](#steps-to-run)
- [Env vars example](#env-vars-example)
- [API Basics](#api-basics)
- [Base URL](#base-url)
- [Authorization](#authorization)
- [Error Responses](#error-responses)
- [Pagination](#pagination)
- [Base URL](#base-url)
- [Authorization](#authorization)
- [Error Responses](#error-responses)
- [Pagination](#pagination)
- [API Endpoints](#api-endpoints)
- [`Account` endpoints](#account-endpoints)
- [✅ Get all accounts: `GET /accounts` (paginated)](#-get-all-accounts-get-accounts-paginated)
Expand Down Expand Up @@ -52,6 +52,7 @@
- If for some reason this doesn't kill any active celery tasks, run `ps auxww | grep 'celery' | grep -v grep` and kill resulting PIDs

Extra commands that might come in useful:

- Purge celery queue (`celery -A base purge`)

### Env vars example
Expand All @@ -77,13 +78,14 @@ export PL_SENTRY_DSN=

#### Base URL

`/api/v1/`
**dev (mainnet):** `https://dev.potlock.io/api/v1/`
**testnet:** `https://test-dev.potlock.io/api/v1/`

#### Authorization

This is a public, read-only API and as such does not currently implement authentication or authorization.

Rate limits of (FILL THIS IN) are enforced to ensure service for all users.
Rate limits of 100 requests/min are enforced to ensure service for all users.

#### Error Responses

Expand Down

0 comments on commit 2e159f9

Please sign in to comment.