-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(database): using mongo instead of postgres.
- Loading branch information
Showing
31 changed files
with
281 additions
and
688 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 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,9 @@ | ||
# Pactus | ||
WRAPTO_PACTUS_WALLET_PASSWORD= | ||
|
||
# Polygon | ||
WRAPTO_POLYGON_PRIVATE_KEY= | ||
|
||
# Database | ||
WRAPTO_MONGO_URI= | ||
|
This file contains 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 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,28 @@ | ||
environment: dev # or prod. | ||
|
||
logger: | ||
file_name: wrapto.log | ||
log_level: info | ||
targets: | ||
- console | ||
- file | ||
max_size: 100 | ||
max_backups: 10 | ||
compress: true | ||
|
||
pactus: | ||
wallet_path: /path/to/wallet | ||
lock_address: pc1zgp0x33hehvczq6dggs04gywfqpzl9fea5039gh | ||
rpc_url: https://rpc.pactus.example.com | ||
|
||
polygon: | ||
contract_address: 0x2f77E0afAEE06970Bf860B8267b5aFECFFF6F216 | ||
rpc_url: https://rpc.polygon.example.com | ||
|
||
database: | ||
db_name: wrapto | ||
connection_timeout_in_ms: 5000 | ||
query_timeout_in_ms: 3000 | ||
|
||
http: | ||
port: ":8080" |
This file contains 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 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 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,8 @@ | ||
package database | ||
|
||
type Config struct { | ||
URI string | ||
DBName string `yaml:"db_name"` | ||
ConnectionTimeout int16 `yaml:"connection_timeout_in_ms"` | ||
QueryTimeout int16 `yaml:"query_timeout_in_ms"` | ||
} |
Oops, something went wrong.