@tokenops/sdk 2.0.0-alpha.2 → 2.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +39 -3
  2. package/README.md +11 -5
  3. package/dist/{chunk-PZZK3O3S.cjs → chunk-4AWQJQXY.cjs} +391 -43
  4. package/dist/{chunk-SPLNGUFF.js → chunk-4IB4IY5Y.js} +1 -1
  5. package/dist/{chunk-A4DCEE33.js → chunk-6HCT4QIX.js} +11 -10
  6. package/dist/{chunk-MM5BV5CS.cjs → chunk-6XOAYDC6.cjs} +4 -4
  7. package/dist/{chunk-FEDX7B6T.cjs → chunk-AHU2HMNE.cjs} +3 -3
  8. package/dist/{chunk-IGO5XSPS.js → chunk-BPIVVCSQ.js} +2 -2
  9. package/dist/{chunk-X7WBPCEU.js → chunk-BXX5TETM.js} +375 -27
  10. package/dist/{chunk-GADGBQJO.js → chunk-GCJFAY4X.js} +2 -2
  11. package/dist/{chunk-IUKKNJ2R.cjs → chunk-GKYZQJGP.cjs} +7 -7
  12. package/dist/{chunk-3YHBO2DL.cjs → chunk-IEKTGJ4J.cjs} +2 -2
  13. package/dist/{chunk-UHHMVBLU.cjs → chunk-JVNJSDQ4.cjs} +2 -2
  14. package/dist/{chunk-VW356KR3.js → chunk-LEYYG4RF.js} +126 -3
  15. package/dist/{chunk-PYYSB5ZN.js → chunk-NGU4JYIR.js} +1 -1
  16. package/dist/{chunk-FT5H2Q7Y.cjs → chunk-PG3WXT3K.cjs} +11 -10
  17. package/dist/{chunk-44YJPMQC.js → chunk-PK6Q6J5F.js} +1 -1
  18. package/dist/{chunk-EBLBPUPI.cjs → chunk-TND5NDV7.cjs} +18 -10
  19. package/dist/{chunk-EYDA6Q6C.js → chunk-U3TBQRT7.js} +10 -2
  20. package/dist/{chunk-WJMEBBU7.js → chunk-WRWRA4TN.js} +1 -1
  21. package/dist/{chunk-FHWSBGWE.cjs → chunk-YABHXJNH.cjs} +5 -5
  22. package/dist/{chunk-AREQJHKA.cjs → chunk-YTIYTV4K.cjs} +129 -2
  23. package/dist/core/addresses.d.ts +4 -4
  24. package/dist/core/errors.d.ts +1 -1
  25. package/dist/fhe-airdrop/abis/airdrop-base.d.ts +19 -0
  26. package/dist/fhe-airdrop/abis/ecdsa.d.ts +19 -0
  27. package/dist/fhe-airdrop/abis/factory.d.ts +113 -0
  28. package/dist/fhe-airdrop/abis/merkle.d.ts +19 -0
  29. package/dist/fhe-airdrop/advanced/index.cjs +4 -4
  30. package/dist/fhe-airdrop/advanced/index.js +1 -1
  31. package/dist/fhe-airdrop/advanced/react/index.cjs +110 -80
  32. package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -0
  33. package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -0
  34. package/dist/fhe-airdrop/advanced/react/index.js +34 -5
  35. package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +2 -1
  36. package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +4 -3
  37. package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +9 -7
  38. package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +6 -5
  39. package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +2 -1
  40. package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +5 -3
  41. package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +33 -0
  42. package/dist/fhe-airdrop/airdrop-base.d.ts +47 -8
  43. package/dist/fhe-airdrop/constants.d.ts +9 -1
  44. package/dist/fhe-airdrop/ecdsa.d.ts +13 -0
  45. package/dist/fhe-airdrop/errors.d.ts +59 -0
  46. package/dist/fhe-airdrop/factory.d.ts +62 -22
  47. package/dist/fhe-airdrop/guards.d.ts +87 -2
  48. package/dist/fhe-airdrop/index.cjs +67 -55
  49. package/dist/fhe-airdrop/index.d.cts +3 -3
  50. package/dist/fhe-airdrop/index.d.ts +3 -3
  51. package/dist/fhe-airdrop/index.js +4 -4
  52. package/dist/fhe-airdrop/react/index.cjs +237 -177
  53. package/dist/fhe-airdrop/react/index.d.cts +4 -1
  54. package/dist/fhe-airdrop/react/index.d.ts +4 -1
  55. package/dist/fhe-airdrop/react/index.js +72 -15
  56. package/dist/fhe-airdrop/react/keys.d.ts +8 -0
  57. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +11 -4
  58. package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -0
  59. package/dist/fhe-airdrop/react/useRefreshComplianceBalance.d.ts +36 -0
  60. package/dist/fhe-airdrop/react/useResolveGasFee.d.ts +30 -0
  61. package/dist/fhe-airdrop/types.d.ts +13 -0
  62. package/dist/fhe-disperse/index.cjs +21 -21
  63. package/dist/fhe-disperse/index.js +2 -2
  64. package/dist/fhe-disperse/react/index.cjs +22 -22
  65. package/dist/fhe-disperse/react/index.js +3 -3
  66. package/dist/fhe-vesting/advanced/index.cjs +5 -5
  67. package/dist/fhe-vesting/advanced/index.js +3 -3
  68. package/dist/fhe-vesting/advanced/react/index.cjs +7 -7
  69. package/dist/fhe-vesting/advanced/react/index.js +4 -4
  70. package/dist/fhe-vesting/index.cjs +8 -8
  71. package/dist/fhe-vesting/index.js +2 -2
  72. package/dist/fhe-vesting/react/index.cjs +114 -114
  73. package/dist/fhe-vesting/react/index.js +3 -3
  74. package/dist/index.cjs +18 -18
  75. package/dist/index.js +1 -1
  76. package/dist/testnet-faucet/index.cjs +14 -14
  77. package/dist/testnet-faucet/index.js +2 -2
  78. package/dist/testnet-faucet/react/index.cjs +8 -8
  79. package/dist/testnet-faucet/react/index.js +3 -3
  80. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkEBLBPUPI_cjs = require('../../../chunk-EBLBPUPI.cjs');
4
- require('../../../chunk-PZZK3O3S.cjs');
5
- require('../../../chunk-AREQJHKA.cjs');
3
+ var chunkTND5NDV7_cjs = require('../../../chunk-TND5NDV7.cjs');
4
+ require('../../../chunk-4AWQJQXY.cjs');
5
+ require('../../../chunk-YTIYTV4K.cjs');
6
6
  require('../../../chunk-FAXIIH5R.cjs');
7
7
  require('../../../chunk-UG5RKLU2.cjs');
8
8
  require('../../../chunk-MVDQMV25.cjs');
9
- require('../../../chunk-FT5H2Q7Y.cjs');
9
+ require('../../../chunk-PG3WXT3K.cjs');
10
10
  require('../../../chunk-JK4XMMKM.cjs');
11
11
  require('../../../chunk-66IHPTOK.cjs');
12
12
  var chunk67OV5CX2_cjs = require('../../../chunk-67OV5CX2.cjs');
@@ -15,10 +15,10 @@ var reactQuery = require('@tanstack/react-query');
15
15
 
16
16
  function usePredictEcdsaAirdropAddress(args) {
17
17
  const { params, mode, deployer, userSalt, ...base } = args;
18
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
18
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
19
19
  return reactQuery.useQuery({
20
20
  ...args.query,
21
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
21
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
22
22
  chainId,
23
23
  address: resolvedAddress,
24
24
  fn: "predictEcdsaAirdropAddress",
@@ -30,10 +30,10 @@ function usePredictEcdsaAirdropAddress(args) {
30
30
  }
31
31
  function usePredictMerkleAirdropAddress(args) {
32
32
  const { params, mode, deployer, userSalt, ...base } = args;
33
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
33
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
34
34
  return reactQuery.useQuery({
35
35
  ...args.query,
36
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
36
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
37
37
  chainId,
38
38
  address: resolvedAddress,
39
39
  fn: "predictMerkleAirdropAddress",
@@ -44,7 +44,7 @@ function usePredictMerkleAirdropAddress(args) {
44
44
  });
45
45
  }
46
46
  function useClearCompliancePolicy(options = {}) {
47
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
47
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
48
48
  const queryClient = reactQuery.useQueryClient();
49
49
  return reactQuery.useMutation({
50
50
  mutationFn: async (args) => {
@@ -56,10 +56,10 @@ function useClearCompliancePolicy(options = {}) {
56
56
  onSuccess: (_hash, variables) => {
57
57
  const scope = { chainId, address: resolvedAddress };
58
58
  void queryClient.invalidateQueries({
59
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
59
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
60
60
  });
61
61
  void queryClient.invalidateQueries({
62
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
62
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
63
63
  ...scope,
64
64
  fn: "effectiveDelegateToCompliance",
65
65
  args: [variables.creator]
@@ -69,7 +69,7 @@ function useClearCompliancePolicy(options = {}) {
69
69
  });
70
70
  }
71
71
  function useClearUpgradeabilityPolicy(options = {}) {
72
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
72
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
73
73
  const queryClient = reactQuery.useQueryClient();
74
74
  return reactQuery.useMutation({
75
75
  mutationFn: async (args) => {
@@ -81,23 +81,23 @@ function useClearUpgradeabilityPolicy(options = {}) {
81
81
  onSuccess: (_hash, variables) => {
82
82
  const scope = { chainId, address: resolvedAddress };
83
83
  void queryClient.invalidateQueries({
84
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
84
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
85
85
  ...scope,
86
86
  fn: "effectiveUpgradeable",
87
87
  args: [variables.creator]
88
88
  })
89
89
  });
90
90
  void queryClient.invalidateQueries({
91
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
91
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
92
92
  });
93
93
  void queryClient.invalidateQueries({
94
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.preflightCreateAll(scope)
94
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
95
95
  });
96
96
  }
97
97
  });
98
98
  }
99
99
  function useDisableCustomFee(options = {}) {
100
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
100
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
101
101
  const queryClient = reactQuery.useQueryClient();
102
102
  return reactQuery.useMutation({
103
103
  mutationFn: async ({ creator, account }) => {
@@ -108,14 +108,17 @@ function useDisableCustomFee(options = {}) {
108
108
  },
109
109
  onSuccess: (_hash, variables) => {
110
110
  void queryClient.invalidateQueries({
111
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
111
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
112
+ });
113
+ void queryClient.invalidateQueries({
114
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
112
115
  });
113
116
  }
114
117
  });
115
118
  }
116
119
  function useEcdsaInitCodeHash(args) {
117
120
  const { params, mode, ...base } = args;
118
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
121
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
119
122
  return reactQuery.useQuery({
120
123
  ...args.query,
121
124
  // `params` is omitted for the same reason the predict hooks omit it: the
@@ -123,7 +126,7 @@ function useEcdsaInitCodeHash(args) {
123
126
  // implementation pointer, which is what this read reports) moves the
124
127
  // result. If a future factory version makes params hash-affecting, this
125
128
  // key has to grow with it.
126
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
129
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
127
130
  chainId,
128
131
  address: resolvedAddress,
129
132
  fn: "getEcdsaInitCodeHash",
@@ -134,10 +137,10 @@ function useEcdsaInitCodeHash(args) {
134
137
  });
135
138
  }
136
139
  function useFactoryComplianceDelegate(args = {}) {
137
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
140
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
138
141
  return reactQuery.useQuery({
139
142
  ...args.query,
140
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
143
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
141
144
  chainId,
142
145
  address: resolvedAddress,
143
146
  fn: "complianceDelegate",
@@ -149,10 +152,10 @@ function useFactoryComplianceDelegate(args = {}) {
149
152
  }
150
153
  function useFactoryCompliancePolicy(args = {}) {
151
154
  const { creator, ...base } = args;
152
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
155
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
153
156
  return reactQuery.useQuery({
154
157
  ...args.query,
155
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.compliancePolicy({ chainId, address: resolvedAddress }, creator),
158
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy({ chainId, address: resolvedAddress }, creator),
156
159
  queryFn: async () => {
157
160
  const [policy, effective] = await Promise.all([
158
161
  client.getCompliancePolicy(creator),
@@ -169,16 +172,16 @@ function useFactoryCompliancePolicy(args = {}) {
169
172
  }
170
173
  function useFactoryCustomFee(args = {}) {
171
174
  const { creator, ...base } = args;
172
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
175
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
173
176
  return reactQuery.useQuery({
174
177
  ...args.query,
175
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, creator),
178
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, creator),
176
179
  queryFn: () => client.getCustomFee(creator),
177
180
  enabled: Boolean(client && creator && (args.query?.enabled ?? true))
178
181
  });
179
182
  }
180
183
  function useFactoryGrantRole(options = {}) {
181
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
184
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
182
185
  const queryClient = reactQuery.useQueryClient();
183
186
  return reactQuery.useMutation({
184
187
  mutationFn: async (args) => {
@@ -190,29 +193,29 @@ function useFactoryGrantRole(options = {}) {
190
193
  onSuccess: (_hash, variables) => {
191
194
  const scope = { chainId, address: resolvedAddress };
192
195
  void queryClient.invalidateQueries({
193
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
196
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
194
197
  });
195
198
  void queryClient.invalidateQueries({
196
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
199
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
197
200
  });
198
201
  }
199
202
  });
200
203
  }
201
204
  function useFactoryHasRole(args = {}) {
202
205
  const { role, holder, ...base } = args;
203
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
206
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
204
207
  return reactQuery.useQuery({
205
208
  ...args.query,
206
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryHasRole({ chainId, address: resolvedAddress }, role, holder),
209
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole({ chainId, address: resolvedAddress }, role, holder),
207
210
  queryFn: () => client.hasRole({ role, holder }),
208
211
  enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
209
212
  });
210
213
  }
211
214
  function useFactoryImplementations(args = {}) {
212
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
215
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
213
216
  return reactQuery.useQuery({
214
217
  ...args.query,
215
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress }),
218
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress }),
216
219
  queryFn: async () => {
217
220
  const [ecdsa, merkle, complianceManager] = await Promise.all([
218
221
  client.ecdsaImplementation(),
@@ -225,7 +228,7 @@ function useFactoryImplementations(args = {}) {
225
228
  });
226
229
  }
227
230
  function useFactoryRenounceRole(options = {}) {
228
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
231
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
229
232
  const queryClient = reactQuery.useQueryClient();
230
233
  return reactQuery.useMutation({
231
234
  mutationFn: async (args) => {
@@ -236,15 +239,15 @@ function useFactoryRenounceRole(options = {}) {
236
239
  },
237
240
  onSuccess: (_hash, variables) => {
238
241
  const scope = { chainId, address: resolvedAddress };
239
- void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryHasRoleAll(scope) });
242
+ void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRoleAll(scope) });
240
243
  void queryClient.invalidateQueries({
241
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
244
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
242
245
  });
243
246
  }
244
247
  });
245
248
  }
246
249
  function useFactoryRevokeRole(options = {}) {
247
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
250
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
248
251
  const queryClient = reactQuery.useQueryClient();
249
252
  return reactQuery.useMutation({
250
253
  mutationFn: async (args) => {
@@ -256,22 +259,22 @@ function useFactoryRevokeRole(options = {}) {
256
259
  onSuccess: (_hash, variables) => {
257
260
  const scope = { chainId, address: resolvedAddress };
258
261
  void queryClient.invalidateQueries({
259
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
262
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
260
263
  });
261
264
  void queryClient.invalidateQueries({
262
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
265
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
263
266
  });
264
267
  }
265
268
  });
266
269
  }
267
270
  function useFactoryRoleConstants(args = {}) {
268
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
271
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
269
272
  return reactQuery.useQuery({
270
273
  // A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
271
274
  staleTime: Infinity,
272
275
  ...args.query,
273
276
  // `fn` label is unique to this hook, so it stays inline rather than in keys.ts.
274
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
277
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
275
278
  chainId,
276
279
  address: resolvedAddress,
277
280
  fn: "factoryRoleConstants",
@@ -304,10 +307,10 @@ function useFactoryRoleConstants(args = {}) {
304
307
  }
305
308
  function useFactoryRoleMembers(args = {}) {
306
309
  const { role, ...base } = args;
307
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
310
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
308
311
  return reactQuery.useQuery({
309
312
  ...args.query,
310
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.factoryRoleMembers({ chainId, address: resolvedAddress }, role),
313
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers({ chainId, address: resolvedAddress }, role),
311
314
  queryFn: async () => {
312
315
  const [members, count] = await Promise.all([
313
316
  client.getRoleMembers(role),
@@ -320,10 +323,10 @@ function useFactoryRoleMembers(args = {}) {
320
323
  }
321
324
  function useFactoryUpgradeabilityPolicy(args = {}) {
322
325
  const { creator, ...base } = args;
323
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
326
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
324
327
  return reactQuery.useQuery({
325
328
  ...args.query,
326
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.upgradeabilityPolicy({ chainId, address: resolvedAddress }, creator),
329
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy({ chainId, address: resolvedAddress }, creator),
327
330
  queryFn: async () => {
328
331
  const [defaultUpgradeable, policy, effective] = await Promise.all([
329
332
  client.defaultUpgradeable(),
@@ -342,11 +345,11 @@ function useFactoryUpgradeabilityPolicy(args = {}) {
342
345
  }
343
346
  function useMerkleInitCodeHash(args) {
344
347
  const { params, mode, ...base } = args;
345
- const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
348
+ const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
346
349
  return reactQuery.useQuery({
347
350
  ...args.query,
348
351
  // `params` omitted deliberately — see useEcdsaInitCodeHash for why.
349
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
352
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
350
353
  chainId,
351
354
  address: resolvedAddress,
352
355
  fn: "getMerkleInitCodeHash",
@@ -357,7 +360,7 @@ function useMerkleInitCodeHash(args) {
357
360
  });
358
361
  }
359
362
  function useSetComplianceDelegate(options = {}) {
360
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
363
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
361
364
  const queryClient = reactQuery.useQueryClient();
362
365
  return reactQuery.useMutation({
363
366
  mutationFn: async (args) => {
@@ -368,7 +371,7 @@ function useSetComplianceDelegate(options = {}) {
368
371
  },
369
372
  onSuccess: () => {
370
373
  void queryClient.invalidateQueries({
371
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
374
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
372
375
  chainId,
373
376
  address: resolvedAddress,
374
377
  fn: "complianceDelegate",
@@ -379,7 +382,7 @@ function useSetComplianceDelegate(options = {}) {
379
382
  });
380
383
  }
381
384
  function useSetComplianceManagerImpl(options = {}) {
382
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
385
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
383
386
  const queryClient = reactQuery.useQueryClient();
384
387
  return reactQuery.useMutation({
385
388
  mutationFn: async (args) => {
@@ -390,13 +393,13 @@ function useSetComplianceManagerImpl(options = {}) {
390
393
  },
391
394
  onSuccess: () => {
392
395
  void queryClient.invalidateQueries({
393
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress })
396
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress })
394
397
  });
395
398
  }
396
399
  });
397
400
  }
398
401
  function useSetCompliancePolicy(options = {}) {
399
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
402
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
400
403
  const queryClient = reactQuery.useQueryClient();
401
404
  return reactQuery.useMutation({
402
405
  mutationFn: async (args) => {
@@ -408,10 +411,10 @@ function useSetCompliancePolicy(options = {}) {
408
411
  onSuccess: (_hash, variables) => {
409
412
  const scope = { chainId, address: resolvedAddress };
410
413
  void queryClient.invalidateQueries({
411
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
414
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
412
415
  });
413
416
  void queryClient.invalidateQueries({
414
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
417
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
415
418
  ...scope,
416
419
  fn: "effectiveDelegateToCompliance",
417
420
  args: [variables.creator]
@@ -421,7 +424,7 @@ function useSetCompliancePolicy(options = {}) {
421
424
  });
422
425
  }
423
426
  function useSetCustomFee(options = {}) {
424
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
427
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
425
428
  const queryClient = reactQuery.useQueryClient();
426
429
  return reactQuery.useMutation({
427
430
  mutationFn: async ({ creator, gasFee, account }) => {
@@ -432,13 +435,16 @@ function useSetCustomFee(options = {}) {
432
435
  },
433
436
  onSuccess: (_hash, variables) => {
434
437
  void queryClient.invalidateQueries({
435
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
438
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
439
+ });
440
+ void queryClient.invalidateQueries({
441
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
436
442
  });
437
443
  }
438
444
  });
439
445
  }
440
446
  function useSetDefaultDelegateToCompliance(options = {}) {
441
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
447
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
442
448
  const queryClient = reactQuery.useQueryClient();
443
449
  return reactQuery.useMutation({
444
450
  mutationFn: async (args) => {
@@ -449,20 +455,20 @@ function useSetDefaultDelegateToCompliance(options = {}) {
449
455
  },
450
456
  onSuccess: () => {
451
457
  void queryClient.invalidateQueries({
452
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({
458
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({
453
459
  chainId,
454
460
  address: resolvedAddress,
455
461
  fn: "effectiveDelegateToCompliance"
456
462
  })
457
463
  });
458
464
  void queryClient.invalidateQueries({
459
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.compliancePolicyAll({ chainId, address: resolvedAddress })
465
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicyAll({ chainId, address: resolvedAddress })
460
466
  });
461
467
  }
462
468
  });
463
469
  }
464
470
  function useSetDefaultGasFee(options = {}) {
465
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
471
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
466
472
  const queryClient = reactQuery.useQueryClient();
467
473
  return reactQuery.useMutation({
468
474
  mutationFn: async ({ gasFee, account }) => {
@@ -473,13 +479,36 @@ function useSetDefaultGasFee(options = {}) {
473
479
  },
474
480
  onSuccess: () => {
475
481
  void queryClient.invalidateQueries({
476
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
482
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
483
+ });
484
+ void queryClient.invalidateQueries({
485
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
486
+ });
487
+ }
488
+ });
489
+ }
490
+ function useSetMaxGasFee(options = {}) {
491
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
492
+ const queryClient = reactQuery.useQueryClient();
493
+ return reactQuery.useMutation({
494
+ mutationFn: async ({ maxGasFee, account }) => {
495
+ if (!client) {
496
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxGasFee", "factory");
497
+ }
498
+ return client.setMaxGasFee(maxGasFee, account);
499
+ },
500
+ onSuccess: () => {
501
+ void queryClient.invalidateQueries({
502
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
503
+ });
504
+ void queryClient.invalidateQueries({
505
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
477
506
  });
478
507
  }
479
508
  });
480
509
  }
481
510
  function useSetDefaultUpgradeable(options = {}) {
482
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
511
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
483
512
  const queryClient = reactQuery.useQueryClient();
484
513
  return reactQuery.useMutation({
485
514
  mutationFn: async (args) => {
@@ -491,19 +520,19 @@ function useSetDefaultUpgradeable(options = {}) {
491
520
  onSuccess: () => {
492
521
  const scope = { chainId, address: resolvedAddress };
493
522
  void queryClient.invalidateQueries({
494
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ ...scope, fn: "effectiveUpgradeable" })
523
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "effectiveUpgradeable" })
495
524
  });
496
525
  void queryClient.invalidateQueries({
497
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.upgradeabilityPolicyAll(scope)
526
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicyAll(scope)
498
527
  });
499
528
  void queryClient.invalidateQueries({
500
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.preflightCreateAll(scope)
529
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
501
530
  });
502
531
  }
503
532
  });
504
533
  }
505
534
  function useSetEcdsaImplementation(options = {}) {
506
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
535
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
507
536
  const queryClient = reactQuery.useQueryClient();
508
537
  return reactQuery.useMutation({
509
538
  mutationFn: async ({ implementation, account }) => {
@@ -514,21 +543,21 @@ function useSetEcdsaImplementation(options = {}) {
514
543
  },
515
544
  onSuccess: () => {
516
545
  const scope = { chainId, address: resolvedAddress };
517
- void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.implementations(scope) });
546
+ void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations(scope) });
518
547
  void queryClient.invalidateQueries({
519
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getEcdsaInitCodeHash" })
548
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getEcdsaInitCodeHash" })
520
549
  });
521
550
  void queryClient.invalidateQueries({
522
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictEcdsaAirdropAddress" })
551
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictEcdsaAirdropAddress" })
523
552
  });
524
553
  void queryClient.invalidateQueries({
525
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.preflightCreateAll(scope)
554
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
526
555
  });
527
556
  }
528
557
  });
529
558
  }
530
559
  function useSetFeeCollector(options = {}) {
531
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
560
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
532
561
  const queryClient = reactQuery.useQueryClient();
533
562
  return reactQuery.useMutation({
534
563
  mutationFn: async ({ feeCollector, account }) => {
@@ -539,13 +568,13 @@ function useSetFeeCollector(options = {}) {
539
568
  },
540
569
  onSuccess: () => {
541
570
  void queryClient.invalidateQueries({
542
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
571
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
543
572
  });
544
573
  }
545
574
  });
546
575
  }
547
576
  function useSetMerkleImplementation(options = {}) {
548
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
577
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
549
578
  const queryClient = reactQuery.useQueryClient();
550
579
  return reactQuery.useMutation({
551
580
  mutationFn: async ({ implementation, account }) => {
@@ -556,21 +585,21 @@ function useSetMerkleImplementation(options = {}) {
556
585
  },
557
586
  onSuccess: () => {
558
587
  const scope = { chainId, address: resolvedAddress };
559
- void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.implementations(scope) });
588
+ void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations(scope) });
560
589
  void queryClient.invalidateQueries({
561
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getMerkleInitCodeHash" })
590
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getMerkleInitCodeHash" })
562
591
  });
563
592
  void queryClient.invalidateQueries({
564
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictMerkleAirdropAddress" })
593
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictMerkleAirdropAddress" })
565
594
  });
566
595
  void queryClient.invalidateQueries({
567
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.preflightCreateAll(scope)
596
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
568
597
  });
569
598
  }
570
599
  });
571
600
  }
572
601
  function useSetUpgradeabilityPolicy(options = {}) {
573
- const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
602
+ const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
574
603
  const queryClient = reactQuery.useQueryClient();
575
604
  return reactQuery.useMutation({
576
605
  mutationFn: async (args) => {
@@ -582,17 +611,17 @@ function useSetUpgradeabilityPolicy(options = {}) {
582
611
  onSuccess: (_hash, variables) => {
583
612
  const scope = { chainId, address: resolvedAddress };
584
613
  void queryClient.invalidateQueries({
585
- queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
614
+ queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
586
615
  ...scope,
587
616
  fn: "effectiveUpgradeable",
588
617
  args: [variables.creator]
589
618
  })
590
619
  });
591
620
  void queryClient.invalidateQueries({
592
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
621
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
593
622
  });
594
623
  void queryClient.invalidateQueries({
595
- queryKey: chunkEBLBPUPI_cjs.airdropKeys.preflightCreateAll(scope)
624
+ queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
596
625
  });
597
626
  }
598
627
  });
@@ -625,5 +654,6 @@ exports.useSetDefaultGasFee = useSetDefaultGasFee;
625
654
  exports.useSetDefaultUpgradeable = useSetDefaultUpgradeable;
626
655
  exports.useSetEcdsaImplementation = useSetEcdsaImplementation;
627
656
  exports.useSetFeeCollector = useSetFeeCollector;
657
+ exports.useSetMaxGasFee = useSetMaxGasFee;
628
658
  exports.useSetMerkleImplementation = useSetMerkleImplementation;
629
659
  exports.useSetUpgradeabilityPolicy = useSetUpgradeabilityPolicy;
@@ -31,6 +31,7 @@ export { useSetCompliancePolicy, type SetCompliancePolicyArgs } from "./useSetCo
31
31
  export { useSetCustomFee, type SetCustomFeeArgs } from "./useSetCustomFee.js";
32
32
  export { useSetDefaultDelegateToCompliance, type SetDefaultDelegateToComplianceArgs, } from "./useSetDefaultDelegateToCompliance.js";
33
33
  export { useSetDefaultGasFee, type SetDefaultGasFeeArgs } from "./useSetDefaultGasFee.js";
34
+ export { useSetMaxGasFee, type SetMaxGasFeeArgs } from "./useSetMaxGasFee.js";
34
35
  export { useSetDefaultUpgradeable, type SetDefaultUpgradeableArgs, } from "./useSetDefaultUpgradeable.js";
35
36
  export { useSetEcdsaImplementation, type SetEcdsaImplementationArgs, } from "./useSetEcdsaImplementation.js";
36
37
  export { useSetFeeCollector, type SetFeeCollectorArgs } from "./useSetFeeCollector.js";
@@ -31,6 +31,7 @@ export { useSetCompliancePolicy, type SetCompliancePolicyArgs } from "./useSetCo
31
31
  export { useSetCustomFee, type SetCustomFeeArgs } from "./useSetCustomFee.js";
32
32
  export { useSetDefaultDelegateToCompliance, type SetDefaultDelegateToComplianceArgs, } from "./useSetDefaultDelegateToCompliance.js";
33
33
  export { useSetDefaultGasFee, type SetDefaultGasFeeArgs } from "./useSetDefaultGasFee.js";
34
+ export { useSetMaxGasFee, type SetMaxGasFeeArgs } from "./useSetMaxGasFee.js";
34
35
  export { useSetDefaultUpgradeable, type SetDefaultUpgradeableArgs, } from "./useSetDefaultUpgradeable.js";
35
36
  export { useSetEcdsaImplementation, type SetEcdsaImplementationArgs, } from "./useSetEcdsaImplementation.js";
36
37
  export { useSetFeeCollector, type SetFeeCollectorArgs } from "./useSetFeeCollector.js";
@@ -1,10 +1,10 @@
1
- import { useMemoAirdropFactoryClient, airdropQueryKey, airdropKeys, airdropQueryKeyPrefix } from '../../../chunk-EYDA6Q6C.js';
2
- import '../../../chunk-X7WBPCEU.js';
3
- import '../../../chunk-VW356KR3.js';
1
+ import { useMemoAirdropFactoryClient, airdropQueryKey, airdropKeys, airdropQueryKeyPrefix } from '../../../chunk-U3TBQRT7.js';
2
+ import '../../../chunk-BXX5TETM.js';
3
+ import '../../../chunk-LEYYG4RF.js';
4
4
  import '../../../chunk-ZWXJTBZO.js';
5
5
  import '../../../chunk-NWFMBLSQ.js';
6
6
  import '../../../chunk-4RAAATVY.js';
7
- import '../../../chunk-A4DCEE33.js';
7
+ import '../../../chunk-6HCT4QIX.js';
8
8
  import '../../../chunk-ZA673I3O.js';
9
9
  import '../../../chunk-KWFFIJYX.js';
10
10
  import { MissingClientError } from '../../../chunk-QBJ7O2B4.js';
@@ -105,6 +105,9 @@ function useDisableCustomFee(options = {}) {
105
105
  return client.disableCustomFee(creator, account);
106
106
  },
107
107
  onSuccess: (_hash, variables) => {
108
+ void queryClient.invalidateQueries({
109
+ queryKey: airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
110
+ });
108
111
  void queryClient.invalidateQueries({
109
112
  queryKey: airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
110
113
  });
@@ -429,6 +432,9 @@ function useSetCustomFee(options = {}) {
429
432
  return client.setCustomFee(creator, gasFee, account);
430
433
  },
431
434
  onSuccess: (_hash, variables) => {
435
+ void queryClient.invalidateQueries({
436
+ queryKey: airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
437
+ });
432
438
  void queryClient.invalidateQueries({
433
439
  queryKey: airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
434
440
  });
@@ -470,12 +476,35 @@ function useSetDefaultGasFee(options = {}) {
470
476
  return client.setDefaultGasFee(gasFee, account);
471
477
  },
472
478
  onSuccess: () => {
479
+ void queryClient.invalidateQueries({
480
+ queryKey: airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
481
+ });
473
482
  void queryClient.invalidateQueries({
474
483
  queryKey: airdropKeys.fees({ chainId, address: resolvedAddress })
475
484
  });
476
485
  }
477
486
  });
478
487
  }
488
+ function useSetMaxGasFee(options = {}) {
489
+ const { client, resolutionError, chainId, resolvedAddress } = useMemoAirdropFactoryClient(options);
490
+ const queryClient = useQueryClient();
491
+ return useMutation({
492
+ mutationFn: async ({ maxGasFee, account }) => {
493
+ if (!client) {
494
+ throw resolutionError ?? new MissingClientError("useSetMaxGasFee", "factory");
495
+ }
496
+ return client.setMaxGasFee(maxGasFee, account);
497
+ },
498
+ onSuccess: () => {
499
+ void queryClient.invalidateQueries({
500
+ queryKey: airdropKeys.fees({ chainId, address: resolvedAddress })
501
+ });
502
+ void queryClient.invalidateQueries({
503
+ queryKey: airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
504
+ });
505
+ }
506
+ });
507
+ }
479
508
  function useSetDefaultUpgradeable(options = {}) {
480
509
  const { client, resolutionError, chainId, resolvedAddress } = useMemoAirdropFactoryClient(options);
481
510
  const queryClient = useQueryClient();
@@ -596,4 +625,4 @@ function useSetUpgradeabilityPolicy(options = {}) {
596
625
  });
597
626
  }
598
627
 
599
- export { useClearCompliancePolicy, useClearUpgradeabilityPolicy, useDisableCustomFee, useEcdsaInitCodeHash, useFactoryComplianceDelegate, useFactoryCompliancePolicy, useFactoryCustomFee, useFactoryGrantRole, useFactoryHasRole, useFactoryImplementations, useFactoryRenounceRole, useFactoryRevokeRole, useFactoryRoleConstants, useFactoryRoleMembers, useFactoryUpgradeabilityPolicy, useMerkleInitCodeHash, usePredictEcdsaAirdropAddress, usePredictMerkleAirdropAddress, useSetComplianceDelegate, useSetComplianceManagerImpl, useSetCompliancePolicy, useSetCustomFee, useSetDefaultDelegateToCompliance, useSetDefaultGasFee, useSetDefaultUpgradeable, useSetEcdsaImplementation, useSetFeeCollector, useSetMerkleImplementation, useSetUpgradeabilityPolicy };
628
+ export { useClearCompliancePolicy, useClearUpgradeabilityPolicy, useDisableCustomFee, useEcdsaInitCodeHash, useFactoryComplianceDelegate, useFactoryCompliancePolicy, useFactoryCustomFee, useFactoryGrantRole, useFactoryHasRole, useFactoryImplementations, useFactoryRenounceRole, useFactoryRevokeRole, useFactoryRoleConstants, useFactoryRoleMembers, useFactoryUpgradeabilityPolicy, useMerkleInitCodeHash, usePredictEcdsaAirdropAddress, usePredictMerkleAirdropAddress, useSetComplianceDelegate, useSetComplianceManagerImpl, useSetCompliancePolicy, useSetCustomFee, useSetDefaultDelegateToCompliance, useSetDefaultGasFee, useSetDefaultUpgradeable, useSetEcdsaImplementation, useSetFeeCollector, useSetMaxGasFee, useSetMerkleImplementation, useSetUpgradeabilityPolicy };