-
Notifications
You must be signed in to change notification settings - Fork 6
Update everything to m2.5 contracts #224
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
f5c2ad4
update everything to m2.5 contracts (tests not yet run)
juliangruber db7d1af
use new `PiecesAdded` event
juliangruber dabf118
`prettier --write`
juliangruber 13f9978
fix sql
juliangruber f0c9678
progress
juliangruber 54aecb5
integrate more service registry stuff (untested)
juliangruber 08200d9
fix migration
juliangruber f8a8a41
more works
juliangruber 03241a8
fix provider pkey, fix missing awaits
juliangruber 0168274
fix remove upper case address support
juliangruber 1384a3a
storage tests pass
juliangruber 4450ab6
fix product removed handler
juliangruber c8dcf47
fix more input validation rules
juliangruber beea997
fix rpc mock
juliangruber b79d36b
fix test assertions
juliangruber 424a0ad
fix provider pkey (continued)
juliangruber c851be8
remove outdated tests
juliangruber f7bb3b7
fix property names
juliangruber e5f6409
fix mixed case address tests
juliangruber 16b609c
fix rpc mock
juliangruber f25eaa8
fix header name
juliangruber 410be5a
fix retrieval test
juliangruber e1c031a
clean up
juliangruber 18fe8be
remove more mixed case handling
juliangruber 1ded92c
add `ProviderRemoved` event handler
juliangruber 610d2dd
clean up
juliangruber e8bf57e
magic number
juliangruber e13e227
clean up
juliangruber 04e7697
clean up
juliangruber d6d97cf
ensure all goldsky addresses are lower case
juliangruber b818563
`beneficiary` -> `beneficiary_address`
juliangruber fe23d99
`storage_provider` -> `storage_provider_address`
juliangruber 5051b8b
`payer` -> `payer_address`
juliangruber 61df23d
`payee` -> `payee_address`
juliangruber 4edb623
`FilecoinWarmStorageService` -> `FWSS`
juliangruber 5750b14
`DataSetSats` -> `DataSetStats`
juliangruber aa9b749
restore mixed case address handling
juliangruber 2f8b592
add index
juliangruber 36a4fc4
fix lower case on write not read
juliangruber e0dd92b
change query to update
juliangruber 826ad3d
Update retriever/lib/store.js
juliangruber 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
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,47 @@ | ||
| DROP TABLE provider_urls; | ||
| DROP TABLE indexer_proof_set_rails; | ||
| DROP TABLE indexer_proof_sets; | ||
| DROP TABLE indexer_roots; | ||
| DROP TABLE proof_set_stats; | ||
| DROP TABLE retrieval_logs; | ||
|
|
||
| CREATE TABLE providers ( | ||
| id TEXT NOT NULL, | ||
| beneficiary_address TEXT NOT NULL, | ||
| service_url TEXT, | ||
| PRIMARY KEY (id) | ||
| ); | ||
|
juliangruber marked this conversation as resolved.
|
||
| CREATE INDEX providers_beneficiary_address ON providers(beneficiary_address); | ||
|
|
||
| CREATE TABLE data_sets ( | ||
| id TEXT NOT NULL, | ||
| storage_provider_address TEXT, | ||
| payer_address TEXT, | ||
| payee_address TEXT, | ||
| with_cdn BOOLEAN, | ||
| total_egress_bytes_used INTEGER NOT NULL DEFAULT 0, | ||
| PRIMARY KEY (id) | ||
| ); | ||
|
juliangruber marked this conversation as resolved.
|
||
|
|
||
| CREATE TABLE pieces ( | ||
| id TEXT NOT NULL, | ||
| data_set_id TEXT NOT NULL, | ||
| cid TEXT NOT NULL, | ||
| PRIMARY KEY (id, data_set_id) | ||
| ); | ||
| CREATE INDEX pieces_cid ON pieces(cid); | ||
|
|
||
| CREATE TABLE retrieval_logs ( | ||
| id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
| timestamp DATETIME NOT NULL, | ||
| data_set_id TEXT, | ||
| storage_provider_address TEXT, | ||
| client_address TEXT NOT NULL, | ||
| response_status INTEGER, | ||
| egress_bytes INTEGER, | ||
| cache_miss BOOLEAN, | ||
| fetch_ttfb INTEGER, | ||
| worker_ttfb INTEGER, | ||
| request_country_code TEXT, | ||
| fetch_ttlb INTEGER | ||
| ); | ||
|
juliangruber marked this conversation as resolved.
|
||
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.
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.
I would suggest adding a
activecolumn to the providers table as providers can haveisActivefield inside the struct.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.
I don't see any events for this state change, do you know when we would update this field?