-
Notifications
You must be signed in to change notification settings - Fork 20
368 move sql schema to distinct file #586
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
Changes from 1 commit
0ec2268
43d1b28
075273e
768bf09
09bf1ac
f2cac17
d8ecf1b
68a7841
d34c8f7
6a47f6b
2058f0a
295568e
8a7047f
3cf914e
550c46e
f22a780
e6c0e43
acf7bce
eaf23d2
5a0306b
27c0e68
0ac19fa
33515b4
f1c2c50
8865af4
1eb1bf9
cf47fad
7b9167c
9355411
505b3eb
11fa1bc
6d9c6ca
b9c2f7a
1586797
31b8048
d9154eb
b66b803
a12fe00
7803d3c
0360208
94f733a
92d0201
ea0dbdc
d02bfee
df19f2d
6a38f0c
c94126b
6bf4cfc
7560704
5ab70f3
f6d17d2
bb07118
db54d3b
ffab8cd
3881bac
e5f8f64
37ebf6a
4832f03
46e1c2b
f5891cb
b5811da
06ae9df
d05f9d1
4ec9a14
b092d3d
8dd8800
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,6 @@ | |
| :copyright: (c) 2013-present by Abhinav Singh and contributors. | ||
| :license: BSD, see LICENSE for more details. | ||
| """ | ||
| import logging | ||
|
|
||
| from solana.publickey import PublicKey | ||
| from .proxy import entry_point | ||
|
|
@@ -17,17 +16,19 @@ | |
| from .indexer.indexer import run_indexer | ||
| from proxy.db.creation import run_dbcreation | ||
|
|
||
| logger = logging.getLogger('neon') | ||
|
|
||
| if __name__ == '__main__': | ||
| solana_url = os.environ['SOLANA_URL'] | ||
| evm_loader_id = os.environ['EVM_LOADER'] | ||
| logger.info(f"Will run with SOLANA_URL={solana_url}; EVM_LOADER={evm_loader_id}") | ||
| print(f"Will run with SOLANA_URL={solana_url}; EVM_LOADER={evm_loader_id}") | ||
|
|
||
| airdropper_mode = os.environ.get('AIRDROPPER_MODE', 'False').lower() in [1, 'true', 'True'] | ||
| indexer_mode = os.environ.get('INDEXER_MODE', 'False').lower() in [1, 'true', 'True'] | ||
| dbcreation_mode = os.environ.get('DBCREATION_MODE', 'False').lower() in [1, 'true', 'True'] | ||
|
|
||
| if airdropper_mode: | ||
| if dbcreation_mode: | ||
| print("Will run in db creation mode") | ||
|
||
| run_dbcreation() | ||
| elif airdropper_mode: | ||
| print("Will run in airdropper mode") | ||
| pyth_mapping_account = PublicKey(os.environ['PYTH_MAPPING_ACCOUNT']) | ||
| faucet_url = os.environ['FAUCET_URL'] | ||
|
|
@@ -40,14 +41,15 @@ | |
| max_conf = float(os.environ.get('MAX_CONFIDENCE_INTERVAL', 0.02)) | ||
|
|
||
| run_airdropper(solana_url, | ||
| evm_loader_id, | ||
| pyth_mapping_account, | ||
| faucet_url, | ||
| wrapper_whitelist, | ||
| neon_decimals, | ||
| pp_solana_url, | ||
| max_conf) | ||
| elif indexer_mode: | ||
| logger.info("Will run in indexer mode") | ||
| run_indexer(solana_url) | ||
| print("Will run in indexer mode") | ||
| run_indexer(solana_url, evm_loader_id) | ||
| else: | ||
| entry_point() | ||
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.
postgresql-clientdepends onpostgresql-client-common, that's why it'll be installed automaticallyThere 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.
fixed