Skip to content
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

Add account, nonce, and user schemas, and mock Postgres #285

Merged
merged 28 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6016786
Clean up aws-helpers workspace
shanejearley Mar 7, 2023
6540640
Add schema provider to data workspace
shanejearley Mar 8, 2023
d2c09ca
Add pg to schema provider
shanejearley Mar 8, 2023
99ba0d3
Export column property types
shanejearley Mar 8, 2023
c25c3d1
Add snapshots to account schema
shanejearley Mar 8, 2023
d0af4fb
Put sql output option behind flag
shanejearley Mar 8, 2023
b4b764b
Remove unused zx imports
shanejearley Mar 8, 2023
8641c9c
Add sample connection and query
shanejearley Mar 9, 2023
2c8ecdb
Add database schema docs
shanejearley Mar 10, 2023
3af8805
Update schema table in @casimir/data
shanejearley Mar 10, 2023
4b4dbef
Add template seed script
shanejearley Mar 10, 2023
119da42
Add clean flag
shanejearley Mar 10, 2023
7b24703
Add created_at to User and Account schemas
shanejearley Mar 10, 2023
5671ec4
Add clean script
shanejearley Mar 10, 2023
cebbe26
Clean up function naming
shanejearley Mar 11, 2023
3420a36
Fix typo in type import
shanejearley Mar 11, 2023
6e75a71
Add items to snapshots
shanejearley Mar 12, 2023
2627d3f
Update dev script flag options
shanejearley Mar 13, 2023
b04c6d2
Add seed flag to postgres script
shanejearley Mar 13, 2023
ade81e3
Clean up dev script and defaults
shanejearley Mar 13, 2023
f22ef0e
Update seed script and auto-clean docker
shanejearley Mar 13, 2023
680f6c5
Clean up postgres script
shanejearley Mar 13, 2023
fb4c1a1
Add lib DOM to cdk
shanejearley Mar 13, 2023
89037ab
Move clean to one-time at start of dev script
shanejearley Mar 13, 2023
55ffa1f
Add clean back to postgres script options
shanejearley Mar 14, 2023
8c12bd5
Remove unnecessary import
ccali11 Mar 14, 2023
6b9dda8
Fix ordering of postgres clean, table generation, and start
shanejearley Mar 14, 2023
a57a3bb
Remove two console logs
ccali11 Mar 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@
"semi": ["error", "never"],
"vue/multi-word-component-names": "off",
"quotes": ["error", "single"]
}
},
"ignorePatterns": [
"contracts/**/scripts/resources",
"scripts/**/resources",
"cdk.out",
"*.js"
]
}
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ npm run dev

> 🚩 This will also preconfigure the application environment with the AWS credentials for the `consensus-networks-dev` profile (set AWS_PROFILE="some-other-name" in a [.env](.env) if you want to override).

**All options:**

| Flag | Description | Default | Example |
| --- | --- | --- | --- |
| `--app` | Which app to run | web | --app=landing |
| `--clean` | Whether to clean the local database | true | --clean=false |
| `--emulate` | Whether to use local wallet emulators | false | --emulate=ethereum |
| `--fork` | Which live Ethereum network to fork locally | goerli | --fork=mainnet |
| `--mock` | Whether to mock services | true | --mock=false |
| `--network` | Which live Ethereum network to use | goerli | --network=mainnet |

**Example commands:**

For fullstack changes – run the development server and mock the local backend services.

```zsh
Expand All @@ -80,12 +93,6 @@ Emulate a Trezor hardware wallet. You also need to make sure to add [these prere
npm run dev --trezor
```

Expose any servers running on local ports using local tunnel.

```zsh
npm run dev --external
```

The commands above apply to any package in the [apps](apps/) directory. While the default app is [@casimir/web](apps/web/), you can specify others by passing a subcommand to `npm run dev`.

```zsh
Expand Down Expand Up @@ -191,7 +198,7 @@ npm install -D some-dev-dependency --workspace @casimir/workspace-name

## 📊 Data

Data schemas, data operations/workflows, and analytics and ML notebooks are stored in the [common/data/] directory (also namespaced as the @casimir/data npm workspace). See the [Data Contribution Guide](common/data/README.md) for detailed usage instructions.
Data schemas, data operations/workflows, and analytics and ML notebooks are stored in the [common/data] directory (also namespaced as the @casimir/data npm workspace). See the [@casimir/data README](common/data/README.md) for detailed usage instructions.

## Layout

Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/composables/ledger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import EthersLedgerSigner from '@casimir/ethers-ledger-signer'
import BitcoinLedgerSigner from '@casimir/bitcoin-ledger-signer'
import { BitcoinLedgerSigner, EthersLedgerSigner } from '@casimir/wallets'
import { ethers } from 'ethers'
import { TransactionInit } from '@/interfaces/TransactionInit'
import { MessageInit } from '@/interfaces/MessageInit'
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/composables/ssv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useLedger from './ledger'
import useTrezor from './trezor'
import useWalletConnect from './walletConnect'
import { ProviderString } from '@casimir/types'
import { Pool } from '@casimir/types/src/interfaces/Pool'
import { Pool } from '@casimir/types'

/** SSV Manager contract */
let ssvManager: SSVManager
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/composables/trezor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EthersTrezorSigner from '@casimir/ethers-trezor-signer'
import { EthersTrezorSigner } from '@casimir/wallets'
import useEthers from '@/composables/ethers'
import useEnvironment from '@/composables/environment'
import { ethers } from 'ethers'
Expand Down
20 changes: 0 additions & 20 deletions common/aws-helpers/package.json

This file was deleted.

265 changes: 0 additions & 265 deletions common/aws-helpers/src/index.ts

This file was deleted.

Loading