|
1 | | -import type { Address, Hex, PublicClient } from 'viem'; |
| 1 | +import type { Address, Hex, Client } from 'viem'; |
2 | 2 |
|
3 | 3 | import { getDelegationHashOffchain } from '../delegation'; |
4 | 4 | import * as ERC20PeriodTransferEnforcer from '../DelegationFramework/ERC20PeriodTransferEnforcer'; |
@@ -114,13 +114,13 @@ function getEnforcerAddress({ |
114 | 114 | /** |
115 | 115 | * Get available amount for ERC20 period transfer enforcer. |
116 | 116 | * |
117 | | - * @param client - The viem public client. |
| 117 | + * @param client - The viem client. |
118 | 118 | * @param environment - The delegator environment. |
119 | 119 | * @param params - The parameters for the ERC20 period transfer enforcer. |
120 | 120 | * @returns Promise resolving to the period transfer result. |
121 | 121 | */ |
122 | 122 | export async function getErc20PeriodTransferEnforcerAvailableAmount( |
123 | | - client: PublicClient, |
| 123 | + client: Client, |
124 | 124 | environment: DeleGatorEnvironment, |
125 | 125 | params: CaveatEnforcerParams, |
126 | 126 | ): Promise<PeriodTransferResult> { |
@@ -151,13 +151,13 @@ export async function getErc20PeriodTransferEnforcerAvailableAmount( |
151 | 151 | /** |
152 | 152 | * Get available amount for ERC20 streaming enforcer. |
153 | 153 | * |
154 | | - * @param client - The viem public client. |
| 154 | + * @param client - The viem client. |
155 | 155 | * @param environment - The delegator environment. |
156 | 156 | * @param params - The parameters for the ERC20 streaming enforcer. |
157 | 157 | * @returns Promise resolving to the streaming result. |
158 | 158 | */ |
159 | 159 | export async function getErc20StreamingEnforcerAvailableAmount( |
160 | | - client: PublicClient, |
| 160 | + client: Client, |
161 | 161 | environment: DeleGatorEnvironment, |
162 | 162 | params: CaveatEnforcerParams, |
163 | 163 | ): Promise<StreamingResult> { |
@@ -187,13 +187,13 @@ export async function getErc20StreamingEnforcerAvailableAmount( |
187 | 187 | /** |
188 | 188 | * Get available amount for multi-token period enforcer. |
189 | 189 | * |
190 | | - * @param client - The viem public client. |
| 190 | + * @param client - The viem client. |
191 | 191 | * @param environment - The delegator environment. |
192 | 192 | * @param params - The parameters for the multi-token period enforcer. |
193 | 193 | * @returns Promise resolving to the period transfer result. |
194 | 194 | */ |
195 | 195 | export async function getMultiTokenPeriodEnforcerAvailableAmount( |
196 | | - client: PublicClient, |
| 196 | + client: Client, |
197 | 197 | environment: DeleGatorEnvironment, |
198 | 198 | params: CaveatEnforcerParams, |
199 | 199 | ): Promise<PeriodTransferResult> { |
@@ -224,13 +224,13 @@ export async function getMultiTokenPeriodEnforcerAvailableAmount( |
224 | 224 | /** |
225 | 225 | * Get available amount for native token period transfer enforcer. |
226 | 226 | * |
227 | | - * @param client - The viem public client. |
| 227 | + * @param client - The viem client. |
228 | 228 | * @param environment - The delegator environment. |
229 | 229 | * @param params - The parameters for the native token period transfer enforcer. |
230 | 230 | * @returns Promise resolving to the period transfer result. |
231 | 231 | */ |
232 | 232 | export async function getNativeTokenPeriodTransferEnforcerAvailableAmount( |
233 | | - client: PublicClient, |
| 233 | + client: Client, |
234 | 234 | environment: DeleGatorEnvironment, |
235 | 235 | params: CaveatEnforcerParams, |
236 | 236 | ): Promise<PeriodTransferResult> { |
@@ -260,13 +260,13 @@ export async function getNativeTokenPeriodTransferEnforcerAvailableAmount( |
260 | 260 | /** |
261 | 261 | * Get available amount for native token streaming enforcer. |
262 | 262 | * |
263 | | - * @param client - The viem public client. |
| 263 | + * @param client - The viem client. |
264 | 264 | * @param environment - The delegator environment. |
265 | 265 | * @param params - The parameters for the native token streaming enforcer. |
266 | 266 | * @returns Promise resolving to the streaming result. |
267 | 267 | */ |
268 | 268 | export async function getNativeTokenStreamingEnforcerAvailableAmount( |
269 | | - client: PublicClient, |
| 269 | + client: Client, |
270 | 270 | environment: DeleGatorEnvironment, |
271 | 271 | params: CaveatEnforcerParams, |
272 | 272 | ): Promise<StreamingResult> { |
@@ -302,7 +302,7 @@ export async function getNativeTokenStreamingEnforcerAvailableAmount( |
302 | 302 | */ |
303 | 303 | export const caveatEnforcerActions = |
304 | 304 | ({ environment }: { environment: DeleGatorEnvironment }) => |
305 | | - (client: PublicClient) => ({ |
| 305 | + (client: Client) => ({ |
306 | 306 | /** |
307 | 307 | * Get available amount for ERC20 period transfer enforcer. |
308 | 308 | * |
|
0 commit comments