Skip to content

Commit d7b2e23

Browse files
feat: replace referrals plugin (#1257)
Co-authored-by: lightwalker.eth <126201998+lightwalker-eth@users.noreply.github.com>
1 parent 617ab00 commit d7b2e23

File tree

19 files changed

+28
-345
lines changed

19 files changed

+28
-345
lines changed

.changeset/free-sloths-add.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ensnode/ensnode-sdk": minor
3+
"ensindexer": minor
4+
---
5+
6+
Replace `referrals` plugin with new `registrars` plugin.

.changeset/legal-cats-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ensnode/ensnode-schema": minor
3+
---
4+
5+
Replace `referrals` schema with new `registrarActions` schema.

.changeset/smart-terms-sink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@docs/ensnode": minor
3+
---
4+
5+
Update API docs.

.github/workflows/test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
NAMESPACE: mainnet
110110
DATABASE_URL: postgresql://postgres:password@localhost:5432/postgres
111111
DATABASE_SCHEMA: public
112-
PLUGINS: subgraph,basenames,lineanames,threedns,protocol-acceleration,referrals,tokenscope
112+
PLUGINS: subgraph,basenames,lineanames,threedns,protocol-acceleration,registrars,tokenscope
113113
ENSRAINBOW_URL: https://api.ensrainbow.io
114114
ENSINDEXER_URL: http://localhost:42069
115115
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

apps/ensadmin/src/app/mock/config-api.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const ensIndexerPublicConfig = deserializeENSIndexerPublicConfig({
1515
"lineanames",
1616
"threedns",
1717
"protocol-acceleration",
18-
"referrals",
18+
"registrars",
1919
"tokenscope",
2020
],
2121
versionInfo: {

apps/ensadmin/src/app/mock/config-info/data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"lineanames",
2121
"threedns",
2222
"protocol-acceleration",
23-
"referrals",
23+
"registrars",
2424
"tokenscope"
2525
],
2626
"versionInfo": {
@@ -62,7 +62,7 @@
6262
"lineanames",
6363
"threedns",
6464
"protocol-acceleration",
65-
"referrals"
65+
"registrars"
6666
],
6767
"databaseSchemaName": "alphaSepoliaSchema0.34.0",
6868
"isSubgraphCompatible": false

apps/ensindexer/ponder/src/register-handlers.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import config from "@/config";
88
import { PluginName } from "@ensnode/ensnode-sdk";
99

1010
import attach_protocolAccelerationHandlers from "@/plugins/protocol-acceleration/event-handlers";
11-
import attach_ReferralHandlers from "@/plugins/referrals/event-handlers";
1211
import attach_RegistrarsHandlers from "@/plugins/registrars/event-handlers";
1312
import attach_BasenamesHandlers from "@/plugins/subgraph/plugins/basenames/event-handlers";
1413
import attach_LineanamesHandlers from "@/plugins/subgraph/plugins/lineanames/event-handlers";
@@ -41,11 +40,6 @@ if (config.plugins.includes(PluginName.ProtocolAcceleration)) {
4140
attach_protocolAccelerationHandlers();
4241
}
4342

44-
// Referrals Plugin
45-
if (config.plugins.includes(PluginName.Referrals)) {
46-
attach_ReferralHandlers();
47-
}
48-
4943
// Registrars Plugin
5044
if (config.plugins.includes(PluginName.Registrars)) {
5145
attach_RegistrarsHandlers();

apps/ensindexer/src/lib/referrals-helpers.ts

Lines changed: 0 additions & 121 deletions
This file was deleted.

apps/ensindexer/src/plugins/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { MergedTypes } from "@/lib/lib-helpers";
44

55
// Core-Schema-Indepdendent Plugins
66
import protocolAccelerationPlugin from "./protocol-acceleration/plugin";
7-
import referralsPlugin from "./referrals/plugin";
87
import registrarsPlugin from "./registrars/plugin";
98
// Subgraph-Schema Core Plugins
109
import basenamesPlugin from "./subgraph/plugins/basenames/plugin";
@@ -20,7 +19,6 @@ export const ALL_PLUGINS = [
2019
threednsPlugin,
2120
tokenScopePlugin,
2221
protocolAccelerationPlugin,
23-
referralsPlugin,
2422
registrarsPlugin,
2523
] as const;
2624

apps/ensindexer/src/plugins/referrals/event-handlers.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)