Skip to content

Commit 9d6d356

Browse files
committed
chore: add encode stop service data function
1 parent e1663dd commit 9d6d356

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/toolshed/src/core/subgraph-service.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ export function encodeCollectQueryFeesData(rav: RAV, signature: string, tokensTo
3333
[{ rav, signature }, tokensToCollect],
3434
)
3535
}
36+
37+
export function encodeStopServiceData(allocationId: string) {
38+
return ethers.AbiCoder.defaultAbiCoder().encode(
39+
['address'],
40+
[allocationId],
41+
)
42+
}

0 commit comments

Comments
 (0)