-
Notifications
You must be signed in to change notification settings - Fork 0
Dev -> main #89
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
Prometheo
wants to merge
486
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev -> main #89
Changes from all commits
Commits
Show all changes
486 commits
Select commit
Hold shift + click to select a range
0a78f1a
handle pot config update (#37)
Prometheo e52f2d9
New nadabot index (#34)
Prometheo f6745dc
add chains app & Chain model (#41)
lachlanglen fab5381
default to NEAR chain when creating new account
lachlanglen 8040b0b
add debug logging to handler.py for memory usage & timing
lachlanglen d6d54d7
add additional debug logs for streamer processing time
lachlanglen 80831d5
remove BlockHeight db write in cache_block_height
lachlanglen 0bea04f
set cache key in asyncio task
lachlanglen b5f8cfe
remove excess debug logs
lachlanglen 1da5fd2
add BlockHeight record update back
lachlanglen 602fa99
add debug log
lachlanglen 1efa815
create util function for common price fetching (#43)
Prometheo 8b6f650
handle zero net amount and migration script (#45)
Prometheo da77c50
add coingecko_id to token admin
lachlanglen 167bc4d
make coingecko_id nullable
lachlanglen 2b57240
add blank=True to nullable Token fields for admin
lachlanglen b78e822
fix payouts paid_at not being set
lachlanglen 5fc8134
save pot.all_paid_out
lachlanglen 317d311
change account to id (#51)
Prometheo f713408
Whitelist deployer index (#54)
Prometheo a3e861b
api endpoint for pot factories (#55)
Prometheo 0832134
get cooldown end while setting oayout (#58)
Prometheo f43324d
use default PageNumberPagination (#59)
lachlanglen ec9bb25
factory update configs (#60)
Prometheo 8c2b249
remove caching of blockheight (just save in db) (#61)
lachlanglen 9514e49
add asyncio handling of blockheight saving (#62)
lachlanglen d73321d
add block_timestamp to BlockHeightAdmin
lachlanglen aacaf29
add balnk field to nullable fields (#63)
Prometheo b789482
customize pagination size (#65)
Prometheo f5dc1f7
use id to assign response admin (#66)
Prometheo cf5ced4
pot config update (#64)
Prometheo 8e4a8b0
get all list registrations for an account (#68)
Prometheo fdc3079
Fix payout challenge indexing (#67)
Prometheo d46d9a8
fix cooldown update in pot method (#69)
Prometheo 8f00c7d
replace unserializable timestamp (#72)
Prometheo ba61d8e
Merge branch 'dev' into testnet
lachlanglen c5d69df
Merge branch 'main' into dev
lachlanglen f8a42ee
fix handling new list and acct creation
Prometheo 8006ee0
Merge pull request #75 from PotLock/fix-new-list-and-acct-create
Prometheo 0f84a02
Merge pull request #76 from PotLock/dev
Prometheo 8c4e4e7
fix creating projects
Prometheo 1b7644e
Merge pull request #77 from PotLock/dev
Prometheo a0ee8e1
fix project creation activity
Prometheo 8de7254
Merge pull request #78 from PotLock/dev
Prometheo 985d1ef
add preview link cors regex
Prometheo 568e8ef
models for grant picks indexing on stellar
Prometheo a3556fc
fix testnet pot deployment, add cors allow
Prometheo 322db1a
Merge pull request #82 from PotLock/dev
Prometheo fa92f2b
fix: update cors origins
Prometheo f9398a9
fix config and pot
Prometheo 472dcc8
Merge pull request #84 from PotLock/dev
Prometheo d874fde
whitelist bos local
Prometheo d221a34
add bos to cors
Prometheo f98d52f
Merge pull request #85 from PotLock/dev
Prometheo de52767
feat: stellar indexing for grantpicks...
Prometheo a61d175
fix: comment hardcoded start block
Prometheo ead9805
Merge pull request #86 from PotLock/grantpick
Prometheo d1401ac
feat: add api endpoint for rounds, projects and votes
Prometheo 8b14697
fix: stellar event ingesting
Prometheo a09cda3
add filtering and sorting to rounds list
Prometheo 6418d57
update ledger always
Prometheo 44ff64e
use ledger timestamp
Prometheo 0dc2907
list improvement and stellar token price
Prometheo f3f4346
fix log error
Prometheo 7447f70
add contact serializer to rounds
Prometheo 7518252
add project stats, whitelist grantpicks
Prometheo 34a5a5e
endpoint for user upvoted lists, add pairs to vote
Prometheo 40b60b8
remove upvote
Prometheo 3a4a31d
remove caching from lists
Prometheo 5e3f19a
add reg count to list details
Prometheo f01709e
use onchain id for lists route
Prometheo 9abb172
filter appllication by status
Prometheo 8856e60
update admins from event and update cors
Prometheo 16ae0a3
fix update list
Prometheo 87c8282
fix async iteration
Prometheo cbabcb0
prepare prod scripts
Prometheo 672e55e
Merge pull request #90 from PotLock/testnet
Prometheo 441b2ea
remove file copy flow
Prometheo a31064d
Merge pull request #92 from PotLock/testnet
Prometheo ffdb806
point to correct s3
Prometheo 613d542
Merge pull request #94 from PotLock/testnet
Prometheo 37eedb4
update allowed host
Prometheo 3c4a14c
Merge pull request #96 from PotLock/testnet
Prometheo 3a63572
configure sample rate for sentry
Prometheo 89bfed4
Merge pull request #98 from PotLock/testnet
Prometheo ab258d3
return from job if no contract
Prometheo cdcd590
Merge pull request #100 from PotLock/testnet
Prometheo 251c52e
index near grantpicks
Prometheo 2ff3dd7
get chain by name:
Prometheo c31a00b
change id to name:
Prometheo 49f770b
use name for chain
Prometheo be2820c
use onchain id for project get
Prometheo 2611037
get round details for chain:
Prometheo bbeb310
fix chain id indexing
Prometheo b06976c
sort round by chain, add constraint to round
Prometheo d375258
fix stellar status indexing
Prometheo c3afe35
serialize project
Prometheo 140259e
default ture to near vault
Prometheo 461b071
fix vote url
Prometheo 6f99880
fix round complete..
Prometheo 59da2ec
fix vote api endpoint
Prometheo c3db34f
use id for near project
Prometheo d808e68
parse vote event
Prometheo dfb2658
fix payout creation
Prometheo 1dbdf61
filter by search param
Prometheo 08899f3
Merge pull request #110 from PotLock/testnet
Prometheo 33937b6
api endpoint for json data
Prometheo 94682d5
fix import
Prometheo 1939f6f
change model field type and add search
Prometheo eefd51e
fix search
Prometheo da8c6a0
fix query param:
Prometheo e2c28e4
fix query param name
Prometheo 69f83f5
add staging to factory pattern
Prometheo 86e91a2
Merge pull request #114 from PotLock/testnet
Prometheo 5f233b3
fix regex for pot factory
Prometheo ea61abe
Merge pull request #115 from PotLock/testnet
Prometheo 23d9f67
get data from dict
Prometheo 6efe7e4
Merge pull request #116 from PotLock/testnet
Prometheo d27087b
cors enable staging
Prometheo 527b498
Merge pull request #117 from PotLock/testnet
Prometheo 23828c8
discern similar contract methods
Prometheo 3369e36
Merge pull request #118 from PotLock/testnet
Prometheo 734d659
fix project stat
Prometheo 235489a
fix filter param
Prometheo cd7b9c4
change stellar testnet contracts
Prometheo 82c1bf4
change static pub key due to testnet reset
Prometheo 6fdb8f6
add chain to roundds
Prometheo 31804c4
update response sample
Prometheo 819abea
rounds by account:
Prometheo 0d8846f
Merge pull request #120 from PotLock/testnet
Prometheo bb1c761
celery config to fix memory usage
Prometheo 566502e
Merge pull request #122 from PotLock/testnet
Prometheo 95edb93
move to settings
Prometheo e238b57
Merge pull request #124 from PotLock/testnet
Prometheo 0c2ba9f
remove celery conf variables
Prometheo 4ae4d10
Merge pull request #126 from PotLock/testnet
Prometheo ab226ba
add review_notes to application
Prometheo 76b466b
pick reviewer id
Prometheo e7f37e2
Merge pull request #129 from PotLock/testnet
Prometheo 8c8ab90
get voter's staking balance
Prometheo 578016a
Merge pull request #132 from PotLock/testnet
Prometheo 3b70b50
merge account data and snapshot data
Prometheo b779272
Merge pull request #134 from PotLock/testnet
Prometheo 51feb33
fix check logic
Prometheo d4669ec
Merge pull request #136 from PotLock/testnet
Prometheo 88c7bea
get voters from contract and add caching
Prometheo fb90a57
Merge pull request #138 from PotLock/testnet
Prometheo cdd1f73
fix schema param:
Prometheo ea3ab99
Merge pull request #140 from PotLock/testnet
Prometheo 2257688
fix api schema for doc
Prometheo fbecb39
Merge pull request #142 from PotLock/testnet
Prometheo 9185295
separate endpoint for list and detail
Prometheo 7c9483d
Merge pull request #144 from PotLock/testnet
Prometheo 23390e3
increase max page size
Prometheo a8de5ca
Merge pull request #146 from PotLock/testnet
Prometheo 3c15d77
add filter by admin to list
Prometheo 778ed69
Merge pull request #148 from PotLock/testnet
Prometheo a2ba5da
add is human param
Prometheo 98f1d82
Merge pull request #150 from PotLock/testnet
Prometheo 4fe7bba
add type
Prometheo 57da50f
Merge pull request #151 from PotLock/testnet
Prometheo a88c3ed
use select and prefetch related
Prometheo 99682da
Merge pull request #153 from PotLock/testnet
Prometheo 4b86935
optimize list fetching query
Prometheo e695012
add cache
Prometheo c6c8b27
remove annotate
Prometheo d52160b
Merge pull request #155 from PotLock/testnet
Prometheo 1408581
add list_id to serializer
Prometheo 9636456
Merge pull request #157 from PotLock/testnet
Prometheo 303e860
update schema:
Prometheo c5929ad
Merge pull request #159 from PotLock/testnet
Prometheo 07a9f21
get details at height
Prometheo 2406f52
Merge pull request #161 from PotLock/testnet
Prometheo ac140ea
change block height
Prometheo 48a0bc2
Merge pull request #163 from PotLock/testnet
Prometheo 42cba5b
Update pyproject.toml
Prometheo dfc62a2
fix lake framework
Prometheo 72c24be
fix config netowrk
Prometheo 6018172
Merge pull request #166 from PotLock/testnet
Prometheo 5e41759
make endpoint for reclaim proof
Prometheo 5d660fc
change contract address
Prometheo e63cb54
get use_whitelist of default to false
Prometheo a4c2589
make model changes
Prometheo 91da988
default use_vault to flse
Prometheo 07f1c62
cors allow
Prometheo a1ea9e9
Merge pull request #168 from PotLock/testnet
Prometheo 623fc48
use re
Prometheo 0ee7b3d
Merge pull request #170 from PotLock/testnet
Prometheo 63a85f0
add approved projects from review
Prometheo 15ba094
remove payout address from grantpicks
Prometheo a9c6922
add approved application to projects
Prometheo 02a3383
use project owner account instance
Prometheo 82c81c5
add minimum_deposit
Prometheo 44e0e38
change stellar testnet address
Prometheo 20f871e
starting ledger
Prometheo 1a96c3f
change contract:
Prometheo dfa7c76
change contract address
Prometheo 7bd3ab3
change contract id
Prometheo a3978d8
upgrade stellar sdk
Prometheo 7ccd5eb
update stellar address
Prometheo 94bf1e8
index campaigns
Prometheo 8b2a160
Merge pull request #171 from PotLock/campaign-indexing
Prometheo d688f0f
Merge pull request #172 from PotLock/testnet
Prometheo c7fa558
add script to backfil
Prometheo bc3ccf5
Merge pull request #173 from PotLock/backfil-script
Prometheo c5b9d24
Merge pull request #174 from PotLock/testnet
Prometheo 09d4594
feat: implement filters
Prometheo 700a538
Merge pull request #175 from PotLock/testnet
Prometheo 482f8c7
update campaign totals
Prometheo 768e453
campaign id tla
Prometheo 087d462
Merge pull request #176 from PotLock/testnet
Prometheo 6a4907e
add status field
Prometheo 6aaae06
Merge pull request #177 from PotLock/testnet
Prometheo 13a9b9f
stellar update
Prometheo 74c0e35
pick address from env
Prometheo 24a5dfd
Merge pull request #178 from PotLock/testnet
Prometheo fe97729
change stellar mainnet rpc
Prometheo bf4c280
Merge pull request #179 from PotLock/testnet
Prometheo 79cc8d8
add asyncio wait for to tackle task execution hanging
Prometheo ebb7f6a
Merge pull request #180 from PotLock/testnet
Prometheo 3c8bb8a
lax timeout
Prometheo b24c327
Merge pull request #182 from PotLock/testnet
Prometheo 69a6b37
allow app to dev:
Prometheo 378ea96
Merge pull request #183 from PotLock/testnet
Prometheo 41fdf96
change applications project to actual grantpicks project
Prometheo e651c61
create application for approved projects by owner
Prometheo 2e193ab
index lists on stellar
Prometheo 5061ac0
add chain to serializer
Prometheo 504efcc
fetch list detail by chain and id
Prometheo a4ded25
make chain query param for list deets
Prometheo 4a9a375
filter by chain name
Prometheo b78a6d0
fix susbcription:
Prometheo 707b33f
make video url optional
Prometheo 27cc912
list registration
Prometheo f2684cf
filter with chain name
Prometheo 18e01d2
fix list update on stellar
Prometheo 7f60e0f
extend cors
Prometheo 5a20bba
extend cors
Prometheo 3f2ba37
fix get or create
Prometheo 8bcab7a
add onchain id to list reg
Prometheo 9f9f2da
replace public address
Prometheo 98e8df1
add list reg update
Prometheo bc6a349
add model constraint
Prometheo 23a1b02
addd logging
Prometheo 114a7cc
addd logging
Prometheo 0feae39
fix list reg updte
Prometheo c10ed44
Merge pull request #184 from PotLock/testnet
Prometheo 2fd8090
fix: remove caching
Prometheo 6295826
fix campaign delete
Prometheo 19cbea7
Merge pull request #185 from PotLock/testnet
Prometheo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Prod deploy to EC2 on Push | ||
|
|
||
| on: | ||
| push: | ||
| branches: [prod] | ||
|
|
||
| env: | ||
| AWS_REGION: "us-east-1" | ||
|
|
||
| # Permission can be added at job level or workflow level | ||
| permissions: | ||
| id-token: write # This is required for requesting the JWT | ||
| contents: read # This is required for actions/checkout | ||
| jobs: | ||
| DeployToCodeDeploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Git clone the repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Configure AWS credentials | ||
| uses: aws-actions/[email protected] | ||
| with: | ||
| role-to-assume: arn:aws:iam::471112976510:role/GitHubAction-AssumeRoleWithAction | ||
| role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
| aws-region: ${{ env.AWS_REGION }} | ||
|
|
||
| # - name: Generate appspec.yml for prod | ||
| # run: cp appspec.yml appspec.yml | ||
|
|
||
| - name: Set environment variables | ||
| id: vars | ||
| run: | | ||
| echo "DATETIME=$(date +'%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV | ||
| echo "FILENAME=django-indexer-prod-${DATETIME}.zip" >> $GITHUB_ENV | ||
| echo "S3_BUCKET=django-indexer-prod" >> $GITHUB_ENV | ||
|
|
||
| - name: Create zip of repository | ||
| run: zip -r "${{ env.FILENAME }}" . | ||
|
|
||
| - name: Upload repository to S3 | ||
| run: aws s3 cp "${{ env.FILENAME }}" "s3://${{ env.S3_BUCKET }}/" | ||
|
|
||
| - name: Create CodeDeploy Deployment | ||
| id: deploy | ||
| run: | | ||
| aws deploy create-deployment \ | ||
| --application-name django-indexer \ | ||
| --deployment-group-name django-indexer-prod \ | ||
| --deployment-config-name CodeDeployDefault.AllAtOnce \ | ||
| --s3-location bucket=${{ env.S3_BUCKET }},bundleType=zip,key=${{ env.FILENAME }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update GitHub Actions checkout version.
The
actions/checkout@v3version is outdated as flagged by static analysis. Update to a newer version to ensure compatibility with the latest GitHub Actions runner.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)