Skip to content

Commit

Permalink
Merge branch 'main' into feat-instrument-brovider-calls
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Jan 24, 2024
2 parents d5f8f2b + d34f08c commit 6e538c0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
interval: 'weekly'
allow:
- dependency-name: '@snapshot-labs/*'
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ Valid values are:
- `flaggedLinks`
- `flaggedIps`
- `flaggedAddresses`
- `flaggedProposalTitleKeywords`
- `flaggedProposalBodyKeywords`
- `verifiedTokens`

You can pass multiple list, separated by a comma.
Expand Down
2 changes: 0 additions & 2 deletions src/lib/moderationList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const FIELDS = new Map<keyof MODERATION_LIST, Record<string, string>>([
['flaggedLinks', { action: 'flag', type: 'link' }],
['flaggedIps', { action: 'flag', type: 'ip' }],
['flaggedAddresses', { action: 'flag', type: 'address' }],
['flaggedProposalTitleKeywords', { action: 'flag', type: 'proposalTitleKeyword' }],
['flaggedProposalBodyKeywords', { action: 'flag', type: 'proposalBodyKeyword' }],
['verifiedTokens', { file: 'verifiedTokens.json' }]
]);

Expand Down
8 changes: 0 additions & 8 deletions test/e2e/__snapshots__/moderation.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ exports[`GET /api/moderation when list params is empty returns all the list 1`]
"https://facebook.com",
"https://gogle.com",
],
"flaggedProposalBodyKeywords": [
"claim drop",
"token",
],
"flaggedProposalTitleKeywords": [
"hello",
"test string",
],
"verifiedTokens": {
"test": {
"value": "a",
Expand Down
8 changes: 0 additions & 8 deletions test/fixtures/moderation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ export const SqlFixtures: Record<string, any[]> = {
{ action: 'flag', type: 'address', value: '0x0001', created: 100 },
{ action: 'flag', type: 'address', value: '0x0002', created: 100 }
],
flaggedProposalTitleKeyword: [
{ action: 'flag', type: 'proposalTitleKeyword', value: 'hello', created: 100 },
{ action: 'flag', type: 'proposalTitleKeyword', value: 'test string', created: 100 }
],
flaggedProposalBodyKeyword: [
{ action: 'flag', type: 'proposalBodyKeyword', value: 'claim drop', created: 100 },
{ action: 'flag', type: 'proposalBodyKeyword', value: 'token', created: 100 }
],
flaggedIps: [
{
action: 'flag',
Expand Down
8 changes: 0 additions & 8 deletions test/unit/lib/__snapshots__/moderationList.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ exports[`moderationList returns all fields by default 1`] = `
"https://gogle.com",
"https://facebook.com",
],
"flaggedProposalBodyKeywords": [
"claim drop",
"token",
],
"flaggedProposalTitleKeywords": [
"hello",
"test string",
],
"verifiedTokens": {
"test": {
"value": "a",
Expand Down

0 comments on commit 6e538c0

Please sign in to comment.