Skip to content

Commit

Permalink
update firestore.rules. (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz authored Oct 21, 2022
1 parent 52e6d68 commit 84b2a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions demos/firebase-streams-ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Required Google Cloud services:
4. Run the ngrok to forward requests from an internet address to your localhost:
* `cd functions`
* `yarn run ngrok`
5. Determine the **public webook URL**. The URL has hostname and port from the ngrok, and the path from the local webhook URL. This URL will be needed in the next step.\
5. Determine the **public webhook URL**. The URL has hostname and port from the ngrok, and the path from the local webhook URL. This URL will be needed in the next step.\
For example: `https://baa0-89-151-39-84.ngrok.io/moralis-x6/us-central1/ext-moralis-streams-webhook`
6. We need to add some streams to see the demo in action. Open the Moralis admin panel and add below streams.
* **ERC20 Transfers** stream:
Expand Down Expand Up @@ -63,11 +63,7 @@ rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /moralis/events/{name}/{id} {
allow read;
allow write: if false;
}
match /moralis/txs/{name}/{id} {
match /moralis/{collectionType}/{collectionName}/{id} {
allow read;
allow write: if false;
}
Expand Down
6 changes: 1 addition & 5 deletions demos/firebase-streams-ext/firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /moralis/events/{name}/{id} {
allow read;
allow write: if false;
}
match /moralis/txs/{name}/{id} {
match /moralis/{collectionType}/{collectionName}/{id} {
allow read;
allow write: if false;
}
Expand Down

1 comment on commit 84b2a4e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 66%
66.56% (219/329) 50.61% (41/81) 68.05% (49/72)
auth Coverage: 97%
97.94% (143/146) 90.9% (20/22) 100% (42/42)
core Coverage: 89%
90.14% (567/629) 75.79% (119/157) 83.72% (108/129)
evm-api Coverage: 82%
80.72% (469/581) 17.57% (58/330) 66.32% (197/297)
evm-utils Coverage: 36%
36.68% (343/935) 39.17% (105/268) 28.26% (91/322)
sol-api Coverage: 75%
76.1% (86/113) 47.36% (9/19) 53.19% (25/47)
sol-utils Coverage: 82%
81.18% (82/101) 66.66% (12/18) 85.71% (30/35)
streams Coverage: 82%
82.72% (383/463) 64% (64/100) 72.72% (96/132)

Please sign in to comment.