You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds HCA-aware `Event.sender` to the Omnigraph API alongside the existing `Event.from`. For ENSv2 events that emit an explicit `sender`/`owner`/`account`/ERC1155 `operator` argument, `Event.sender` is set from that argument (the HCA Smart Account address, if used) and falls back to `tx.from` otherwise. Adds a `sender` filter to `EventsWhereInput`. `Account.events` now filters by `sender` (HCA-aware) instead of `tx.from`. Documents HCA-aware semantics on `Domain.owner`, `Registration.registrant`/`unregistrant`, and `*.PermissionsUser.user`.
"If this is an ENSv1Domain, this is the effective owner of the Domain. If this is an ENSv2Domain, this is the on-chain owner address (the HCA account address if used).",
Copy file name to clipboardExpand all lines: apps/ensapi/src/omnigraph-api/schema/event.ts
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -95,12 +95,23 @@ EventRef.implement({
95
95
// Event.from
96
96
//////////////
97
97
from: t.field({
98
-
description: "Identifies the sender of the Transaction within which this Event was emitted.",
98
+
description:
99
+
"Identifies the sender of the Transaction within which this Event was emitted (`tx.from`). Never HCA-aware — always the EOA/relayer that submitted the transaction. Use `Event.sender` for the HCA-aware actor.",
99
100
type: "Address",
100
101
nullable: false,
101
102
resolve: (parent)=>parent.from,
102
103
}),
103
104
105
+
////////////////
106
+
// Event.sender
107
+
////////////////
108
+
sender: t.field({
109
+
description: "The HCA account address if used, otherwise Transaction.from.",
110
+
type: "Address",
111
+
nullable: false,
112
+
resolve: (parent)=>parent.sender,
113
+
}),
114
+
104
115
////////////
105
116
// Event.to
106
117
////////////
@@ -160,7 +171,7 @@ EventRef.implement({
160
171
161
172
/**
162
173
* Shared filter for events connections. Used by Domain.events, Resolver.events, Permissions.events,
163
-
* and Account.events (which excludes `from` since it's implied).
174
+
* and Account.events (which excludes `sender` since it's implied).
description: "The Unregistrant of a Registration, if exists.",
154
+
description:
155
+
"The Unregistrant of a Registration, if exists. For ENSv2 Registrations, the protocol-emitted unregistrant address (the HCA account address if used).",
0 commit comments