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

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 (151) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +71 -35
  3. package/SUPPORT.md +1 -1
  4. package/dist/{chunk-NGU4JYIR.js → chunk-2ND7US2I.js} +1 -1
  5. package/dist/{chunk-U3TBQRT7.js → chunk-3ZSPRHR3.js} +55 -12
  6. package/dist/{chunk-BXX5TETM.js → chunk-67Q6KSVV.js} +4114 -3267
  7. package/dist/{chunk-JVNJSDQ4.cjs → chunk-6AYJRUGP.cjs} +7 -50
  8. package/dist/{chunk-AHU2HMNE.cjs → chunk-6FUHF73F.cjs} +5 -5
  9. package/dist/{chunk-NWFMBLSQ.js → chunk-7KY4K4PH.js} +1 -1
  10. package/dist/{chunk-YABHXJNH.cjs → chunk-ARZ5C3FS.cjs} +7 -7
  11. package/dist/{chunk-4IB4IY5Y.js → chunk-AX6MQAWU.js} +2 -2
  12. package/dist/{chunk-BPIVVCSQ.js → chunk-BSXEX2SH.js} +3 -3
  13. package/dist/{chunk-PK6Q6J5F.js → chunk-CHGY6B7L.js} +34 -81
  14. package/dist/{chunk-GKYZQJGP.cjs → chunk-DFK5GCJP.cjs} +55 -72
  15. package/dist/{chunk-4AWQJQXY.cjs → chunk-E4IV4M4E.cjs} +4126 -3279
  16. package/dist/{chunk-6HCT4QIX.js → chunk-GHGF65LN.js} +16 -13
  17. package/dist/{chunk-TWT3STIX.js → chunk-K3R27WX4.js} +8 -46
  18. package/dist/{chunk-GCJFAY4X.js → chunk-KJUNBOJQ.js} +52 -71
  19. package/dist/{chunk-6XOAYDC6.cjs → chunk-PO3A2AQX.cjs} +4 -4
  20. package/dist/{chunk-TND5NDV7.cjs → chunk-QHDMPT7I.cjs} +64 -19
  21. package/dist/{chunk-IEKTGJ4J.cjs → chunk-S47IBDTA.cjs} +36 -83
  22. package/dist/{chunk-UG5RKLU2.cjs → chunk-SUYBAF27.cjs} +1 -1
  23. package/dist/{chunk-WRWRA4TN.js → chunk-TWU7L5H7.js} +5 -48
  24. package/dist/{chunk-WJLECC22.cjs → chunk-UUSSWOPR.cjs} +9 -47
  25. package/dist/{chunk-YTIYTV4K.cjs → chunk-VHKMWWBA.cjs} +319 -40
  26. package/dist/{chunk-PG3WXT3K.cjs → chunk-YAL6JSAZ.cjs} +16 -13
  27. package/dist/{chunk-LEYYG4RF.js → chunk-YMWMIWBP.js} +315 -42
  28. package/dist/core/addresses.d.ts +4 -4
  29. package/dist/core/errors.d.ts +1 -1
  30. package/dist/core/index.d.ts +1 -0
  31. package/dist/core/pending.d.ts +57 -0
  32. package/dist/core/version.d.ts +1 -1
  33. package/dist/fhe/operators.d.ts +6 -5
  34. package/dist/fhe/types.d.ts +1 -1
  35. package/dist/fhe-airdrop/abis/airdrop-base.d.ts +81 -4
  36. package/dist/fhe-airdrop/abis/ecdsa.d.ts +101 -4
  37. package/dist/fhe-airdrop/abis/factory.d.ts +222 -4
  38. package/dist/fhe-airdrop/abis/merkle.d.ts +100 -4
  39. package/dist/fhe-airdrop/advanced/index.cjs +8 -4
  40. package/dist/fhe-airdrop/advanced/index.d.cts +1 -0
  41. package/dist/fhe-airdrop/advanced/index.d.ts +1 -0
  42. package/dist/fhe-airdrop/advanced/index.js +1 -1
  43. package/dist/fhe-airdrop/advanced/react/index.cjs +121 -143
  44. package/dist/fhe-airdrop/advanced/react/index.js +55 -77
  45. package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +3 -1
  46. package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +3 -1
  47. package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +2 -4
  48. package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +7 -7
  49. package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +3 -1
  50. package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +2 -1
  51. package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +3 -1
  52. package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +5 -4
  53. package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +3 -1
  54. package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +7 -3
  55. package/dist/fhe-airdrop/airdrop-base.d.ts +95 -10
  56. package/dist/fhe-airdrop/campaign.d.ts +37 -73
  57. package/dist/fhe-airdrop/compliance-clone.d.ts +21 -0
  58. package/dist/fhe-airdrop/constants.d.ts +3 -1
  59. package/dist/fhe-airdrop/ecdsa.d.ts +67 -27
  60. package/dist/fhe-airdrop/encryption.d.ts +19 -6
  61. package/dist/fhe-airdrop/errors.d.ts +77 -2
  62. package/dist/fhe-airdrop/factory-params.d.ts +2361 -0
  63. package/dist/fhe-airdrop/factory.d.ts +142 -68
  64. package/dist/fhe-airdrop/guards.d.ts +110 -31
  65. package/dist/fhe-airdrop/index.cjs +79 -59
  66. package/dist/fhe-airdrop/index.d.cts +11 -9
  67. package/dist/fhe-airdrop/index.d.ts +11 -9
  68. package/dist/fhe-airdrop/index.js +5 -5
  69. package/dist/fhe-airdrop/merkle-tree.d.ts +9 -9
  70. package/dist/fhe-airdrop/merkle.d.ts +32 -11
  71. package/dist/fhe-airdrop/react/_shared.d.ts +12 -6
  72. package/dist/fhe-airdrop/react/index.cjs +294 -258
  73. package/dist/fhe-airdrop/react/index.d.cts +16 -9
  74. package/dist/fhe-airdrop/react/index.d.ts +16 -9
  75. package/dist/fhe-airdrop/react/index.js +114 -110
  76. package/dist/fhe-airdrop/react/keys.d.ts +46 -7
  77. package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +6 -3
  78. package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +2 -2
  79. package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +8 -3
  80. package/dist/fhe-airdrop/react/useAirdropPause.d.ts +5 -0
  81. package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +4 -6
  82. package/dist/fhe-airdrop/react/useComplianceManager.d.ts +2 -2
  83. package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +1 -2
  84. package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +16 -11
  85. package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +23 -7
  86. package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +13 -8
  87. package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +27 -7
  88. package/dist/fhe-airdrop/react/useDedupMode.d.ts +16 -0
  89. package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +4 -3
  90. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +6 -4
  91. package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +15 -8
  92. package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +1 -1
  93. package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +5 -7
  94. package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +4 -1
  95. package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +3 -4
  96. package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +2 -1
  97. package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +5 -4
  98. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +4 -1
  99. package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +14 -3
  100. package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +18 -3
  101. package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +1 -1
  102. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +34 -13
  103. package/dist/fhe-airdrop/react/useRescueERC20.d.ts +3 -3
  104. package/dist/fhe-airdrop/react/useRescueNativeToken.d.ts +23 -0
  105. package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +5 -2
  106. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +4 -0
  107. package/dist/fhe-airdrop/react/useTokenOf.d.ts +29 -0
  108. package/dist/fhe-airdrop/react/useUnwrapRequest.d.ts +25 -0
  109. package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +4 -0
  110. package/dist/fhe-airdrop/roles.d.ts +82 -7
  111. package/dist/fhe-airdrop/types.d.ts +109 -14
  112. package/dist/fhe-disperse/errors.d.ts +3 -3
  113. package/dist/fhe-disperse/index.cjs +22 -22
  114. package/dist/fhe-disperse/index.d.cts +2 -1
  115. package/dist/fhe-disperse/index.d.ts +2 -1
  116. package/dist/fhe-disperse/index.js +3 -3
  117. package/dist/fhe-disperse/react/index.cjs +27 -25
  118. package/dist/fhe-disperse/react/index.d.cts +2 -1
  119. package/dist/fhe-disperse/react/index.d.ts +2 -1
  120. package/dist/fhe-disperse/react/index.js +8 -6
  121. package/dist/fhe-disperse/react/useDisperse.d.ts +6 -2
  122. package/dist/fhe-disperse/react/useRegister.d.ts +9 -3
  123. package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +7 -2
  124. package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +7 -2
  125. package/dist/fhe-disperse/singleton.d.ts +33 -19
  126. package/dist/fhe-disperse/types.d.ts +48 -8
  127. package/dist/fhe-vesting/advanced/index.cjs +6 -6
  128. package/dist/fhe-vesting/advanced/index.js +4 -4
  129. package/dist/fhe-vesting/advanced/react/index.cjs +9 -9
  130. package/dist/fhe-vesting/advanced/react/index.js +6 -6
  131. package/dist/fhe-vesting/factory.d.ts +31 -8
  132. package/dist/fhe-vesting/index.cjs +23 -23
  133. package/dist/fhe-vesting/index.d.cts +3 -2
  134. package/dist/fhe-vesting/index.d.ts +3 -2
  135. package/dist/fhe-vesting/index.js +4 -4
  136. package/dist/fhe-vesting/manager.d.ts +27 -2
  137. package/dist/fhe-vesting/react/index.cjs +126 -126
  138. package/dist/fhe-vesting/react/index.d.cts +3 -2
  139. package/dist/fhe-vesting/react/index.d.ts +3 -2
  140. package/dist/fhe-vesting/react/index.js +5 -5
  141. package/dist/fhe-vesting/react/useCreateManager.d.ts +16 -9
  142. package/dist/fhe-vesting/react/useCreateManagerAndGetAddress.d.ts +9 -5
  143. package/dist/fhe-vesting/react/useSplitVesting.d.ts +9 -3
  144. package/dist/index.cjs +18 -18
  145. package/dist/index.js +1 -1
  146. package/dist/testnet-faucet/faucet.d.ts +3 -0
  147. package/dist/testnet-faucet/index.cjs +15 -15
  148. package/dist/testnet-faucet/index.js +3 -3
  149. package/dist/testnet-faucet/react/index.cjs +9 -9
  150. package/dist/testnet-faucet/react/index.js +4 -4
  151. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkTND5NDV7_cjs = require('../../../chunk-TND5NDV7.cjs');
4
- require('../../../chunk-4AWQJQXY.cjs');
5
- require('../../../chunk-YTIYTV4K.cjs');
3
+ var chunkQHDMPT7I_cjs = require('../../../chunk-QHDMPT7I.cjs');
4
+ require('../../../chunk-E4IV4M4E.cjs');
5
+ require('../../../chunk-VHKMWWBA.cjs');
6
6
  require('../../../chunk-FAXIIH5R.cjs');
7
- require('../../../chunk-UG5RKLU2.cjs');
7
+ require('../../../chunk-SUYBAF27.cjs');
8
8
  require('../../../chunk-MVDQMV25.cjs');
9
- require('../../../chunk-PG3WXT3K.cjs');
9
+ require('../../../chunk-YAL6JSAZ.cjs');
10
10
  require('../../../chunk-JK4XMMKM.cjs');
11
11
  require('../../../chunk-66IHPTOK.cjs');
12
12
  var chunk67OV5CX2_cjs = require('../../../chunk-67OV5CX2.cjs');
@@ -15,36 +15,36 @@ 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 } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
18
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
19
19
  return reactQuery.useQuery({
20
20
  ...args.query,
21
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
22
- chainId,
23
- address: resolvedAddress,
24
- fn: "predictEcdsaAirdropAddress",
25
- args: [mode, deployer, userSalt]
26
- }),
21
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.predictEcdsaAddress(
22
+ { chainId, address: resolvedAddress },
23
+ mode,
24
+ deployer,
25
+ userSalt
26
+ ),
27
27
  queryFn: () => client.predictEcdsaAirdropAddress({ params, mode, deployer, userSalt }),
28
28
  enabled: Boolean(client && (args.query?.enabled ?? true))
29
29
  });
30
30
  }
31
31
  function usePredictMerkleAirdropAddress(args) {
32
32
  const { params, mode, deployer, userSalt, ...base } = args;
33
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
33
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
34
34
  return reactQuery.useQuery({
35
35
  ...args.query,
36
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
37
- chainId,
38
- address: resolvedAddress,
39
- fn: "predictMerkleAirdropAddress",
40
- args: [mode, deployer, userSalt]
41
- }),
36
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.predictMerkleAddress(
37
+ { chainId, address: resolvedAddress },
38
+ mode,
39
+ deployer,
40
+ userSalt
41
+ ),
42
42
  queryFn: () => client.predictMerkleAirdropAddress({ params, mode, deployer, userSalt }),
43
43
  enabled: Boolean(client && (args.query?.enabled ?? true))
44
44
  });
45
45
  }
46
46
  function useClearCompliancePolicy(options = {}) {
47
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
47
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
48
48
  const queryClient = reactQuery.useQueryClient();
49
49
  return reactQuery.useMutation({
50
50
  mutationFn: async (args) => {
@@ -56,20 +56,17 @@ function useClearCompliancePolicy(options = {}) {
56
56
  onSuccess: (_hash, variables) => {
57
57
  const scope = { chainId, address: resolvedAddress };
58
58
  void queryClient.invalidateQueries({
59
- queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
59
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
60
60
  });
61
61
  void queryClient.invalidateQueries({
62
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
63
- ...scope,
64
- fn: "effectiveDelegateToCompliance",
65
- args: [variables.creator]
66
- })
62
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveDelegateToCompliance(scope, variables.creator)
67
63
  });
64
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope) });
68
65
  }
69
66
  });
70
67
  }
71
68
  function useClearUpgradeabilityPolicy(options = {}) {
72
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
69
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
73
70
  const queryClient = reactQuery.useQueryClient();
74
71
  return reactQuery.useMutation({
75
72
  mutationFn: async (args) => {
@@ -81,23 +78,19 @@ function useClearUpgradeabilityPolicy(options = {}) {
81
78
  onSuccess: (_hash, variables) => {
82
79
  const scope = { chainId, address: resolvedAddress };
83
80
  void queryClient.invalidateQueries({
84
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
85
- ...scope,
86
- fn: "effectiveUpgradeable",
87
- args: [variables.creator]
88
- })
81
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveUpgradeable(scope, variables.creator)
89
82
  });
90
83
  void queryClient.invalidateQueries({
91
- queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
84
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
92
85
  });
93
86
  void queryClient.invalidateQueries({
94
- queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
87
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope)
95
88
  });
96
89
  }
97
90
  });
98
91
  }
99
92
  function useDisableCustomFee(options = {}) {
100
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
93
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
101
94
  const queryClient = reactQuery.useQueryClient();
102
95
  return reactQuery.useMutation({
103
96
  mutationFn: async ({ creator, account }) => {
@@ -108,17 +101,20 @@ function useDisableCustomFee(options = {}) {
108
101
  },
109
102
  onSuccess: (_hash, variables) => {
110
103
  void queryClient.invalidateQueries({
111
- queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
104
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
112
105
  });
113
106
  void queryClient.invalidateQueries({
114
- queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
107
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
108
+ });
109
+ void queryClient.invalidateQueries({
110
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
115
111
  });
116
112
  }
117
113
  });
118
114
  }
119
115
  function useEcdsaInitCodeHash(args) {
120
116
  const { params, mode, ...base } = args;
121
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
117
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
122
118
  return reactQuery.useQuery({
123
119
  ...args.query,
124
120
  // `params` is omitted for the same reason the predict hooks omit it: the
@@ -126,36 +122,26 @@ function useEcdsaInitCodeHash(args) {
126
122
  // implementation pointer, which is what this read reports) moves the
127
123
  // result. If a future factory version makes params hash-affecting, this
128
124
  // key has to grow with it.
129
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
130
- chainId,
131
- address: resolvedAddress,
132
- fn: "getEcdsaInitCodeHash",
133
- args: [mode]
134
- }),
125
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.ecdsaInitCodeHash({ chainId, address: resolvedAddress }, mode),
135
126
  queryFn: () => client.getEcdsaInitCodeHash({ params, mode }),
136
127
  enabled: Boolean(client && (args.query?.enabled ?? true))
137
128
  });
138
129
  }
139
130
  function useFactoryComplianceDelegate(args = {}) {
140
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
131
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(args);
141
132
  return reactQuery.useQuery({
142
133
  ...args.query,
143
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
144
- chainId,
145
- address: resolvedAddress,
146
- fn: "complianceDelegate",
147
- args: []
148
- }),
134
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceDelegate({ chainId, address: resolvedAddress }),
149
135
  queryFn: () => client.complianceDelegate(),
150
136
  enabled: Boolean(client && (args.query?.enabled ?? true))
151
137
  });
152
138
  }
153
139
  function useFactoryCompliancePolicy(args = {}) {
154
140
  const { creator, ...base } = args;
155
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
141
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
156
142
  return reactQuery.useQuery({
157
143
  ...args.query,
158
- queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy({ chainId, address: resolvedAddress }, creator),
144
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.compliancePolicy({ chainId, address: resolvedAddress }, creator),
159
145
  queryFn: async () => {
160
146
  const [policy, effective] = await Promise.all([
161
147
  client.getCompliancePolicy(creator),
@@ -172,16 +158,16 @@ function useFactoryCompliancePolicy(args = {}) {
172
158
  }
173
159
  function useFactoryCustomFee(args = {}) {
174
160
  const { creator, ...base } = args;
175
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
161
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
176
162
  return reactQuery.useQuery({
177
163
  ...args.query,
178
- queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, creator),
164
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, creator),
179
165
  queryFn: () => client.getCustomFee(creator),
180
166
  enabled: Boolean(client && creator && (args.query?.enabled ?? true))
181
167
  });
182
168
  }
183
169
  function useFactoryGrantRole(options = {}) {
184
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
170
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
185
171
  const queryClient = reactQuery.useQueryClient();
186
172
  return reactQuery.useMutation({
187
173
  mutationFn: async (args) => {
@@ -193,29 +179,29 @@ function useFactoryGrantRole(options = {}) {
193
179
  onSuccess: (_hash, variables) => {
194
180
  const scope = { chainId, address: resolvedAddress };
195
181
  void queryClient.invalidateQueries({
196
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
182
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
197
183
  });
198
184
  void queryClient.invalidateQueries({
199
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
185
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
200
186
  });
201
187
  }
202
188
  });
203
189
  }
204
190
  function useFactoryHasRole(args = {}) {
205
191
  const { role, holder, ...base } = args;
206
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
192
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
207
193
  return reactQuery.useQuery({
208
194
  ...args.query,
209
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole({ chainId, address: resolvedAddress }, role, holder),
195
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryHasRole({ chainId, address: resolvedAddress }, role, holder),
210
196
  queryFn: () => client.hasRole({ role, holder }),
211
197
  enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
212
198
  });
213
199
  }
214
200
  function useFactoryImplementations(args = {}) {
215
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
201
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(args);
216
202
  return reactQuery.useQuery({
217
203
  ...args.query,
218
- queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress }),
204
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress }),
219
205
  queryFn: async () => {
220
206
  const [ecdsa, merkle, complianceManager] = await Promise.all([
221
207
  client.ecdsaImplementation(),
@@ -228,7 +214,7 @@ function useFactoryImplementations(args = {}) {
228
214
  });
229
215
  }
230
216
  function useFactoryRenounceRole(options = {}) {
231
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
217
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
232
218
  const queryClient = reactQuery.useQueryClient();
233
219
  return reactQuery.useMutation({
234
220
  mutationFn: async (args) => {
@@ -239,15 +225,15 @@ function useFactoryRenounceRole(options = {}) {
239
225
  },
240
226
  onSuccess: (_hash, variables) => {
241
227
  const scope = { chainId, address: resolvedAddress };
242
- void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRoleAll(scope) });
228
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryHasRoleAll(scope) });
243
229
  void queryClient.invalidateQueries({
244
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
230
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
245
231
  });
246
232
  }
247
233
  });
248
234
  }
249
235
  function useFactoryRevokeRole(options = {}) {
250
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
236
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
251
237
  const queryClient = reactQuery.useQueryClient();
252
238
  return reactQuery.useMutation({
253
239
  mutationFn: async (args) => {
@@ -259,22 +245,22 @@ function useFactoryRevokeRole(options = {}) {
259
245
  onSuccess: (_hash, variables) => {
260
246
  const scope = { chainId, address: resolvedAddress };
261
247
  void queryClient.invalidateQueries({
262
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
248
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryHasRole(scope, variables.role, variables.holder)
263
249
  });
264
250
  void queryClient.invalidateQueries({
265
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
251
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryRoleMembers(scope, variables.role)
266
252
  });
267
253
  }
268
254
  });
269
255
  }
270
256
  function useFactoryRoleConstants(args = {}) {
271
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
257
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(args);
272
258
  return reactQuery.useQuery({
273
259
  // A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
274
260
  staleTime: Infinity,
275
261
  ...args.query,
276
262
  // `fn` label is unique to this hook, so it stays inline rather than in keys.ts.
277
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
263
+ queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
278
264
  chainId,
279
265
  address: resolvedAddress,
280
266
  fn: "factoryRoleConstants",
@@ -307,10 +293,10 @@ function useFactoryRoleConstants(args = {}) {
307
293
  }
308
294
  function useFactoryRoleMembers(args = {}) {
309
295
  const { role, ...base } = args;
310
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
296
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
311
297
  return reactQuery.useQuery({
312
298
  ...args.query,
313
- queryKey: chunkTND5NDV7_cjs.airdropKeys.factoryRoleMembers({ chainId, address: resolvedAddress }, role),
299
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.factoryRoleMembers({ chainId, address: resolvedAddress }, role),
314
300
  queryFn: async () => {
315
301
  const [members, count] = await Promise.all([
316
302
  client.getRoleMembers(role),
@@ -323,10 +309,10 @@ function useFactoryRoleMembers(args = {}) {
323
309
  }
324
310
  function useFactoryUpgradeabilityPolicy(args = {}) {
325
311
  const { creator, ...base } = args;
326
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
312
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
327
313
  return reactQuery.useQuery({
328
314
  ...args.query,
329
- queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy({ chainId, address: resolvedAddress }, creator),
315
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.upgradeabilityPolicy({ chainId, address: resolvedAddress }, creator),
330
316
  queryFn: async () => {
331
317
  const [defaultUpgradeable, policy, effective] = await Promise.all([
332
318
  client.defaultUpgradeable(),
@@ -345,22 +331,17 @@ function useFactoryUpgradeabilityPolicy(args = {}) {
345
331
  }
346
332
  function useMerkleInitCodeHash(args) {
347
333
  const { params, mode, ...base } = args;
348
- const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
334
+ const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
349
335
  return reactQuery.useQuery({
350
336
  ...args.query,
351
337
  // `params` omitted deliberately — see useEcdsaInitCodeHash for why.
352
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
353
- chainId,
354
- address: resolvedAddress,
355
- fn: "getMerkleInitCodeHash",
356
- args: [mode]
357
- }),
338
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleInitCodeHash({ chainId, address: resolvedAddress }, mode),
358
339
  queryFn: () => client.getMerkleInitCodeHash({ params, mode }),
359
340
  enabled: Boolean(client && (args.query?.enabled ?? true))
360
341
  });
361
342
  }
362
343
  function useSetComplianceDelegate(options = {}) {
363
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
344
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
364
345
  const queryClient = reactQuery.useQueryClient();
365
346
  return reactQuery.useMutation({
366
347
  mutationFn: async (args) => {
@@ -371,18 +352,16 @@ function useSetComplianceDelegate(options = {}) {
371
352
  },
372
353
  onSuccess: () => {
373
354
  void queryClient.invalidateQueries({
374
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
375
- chainId,
376
- address: resolvedAddress,
377
- fn: "complianceDelegate",
378
- args: []
379
- })
355
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceDelegate({ chainId, address: resolvedAddress })
356
+ });
357
+ void queryClient.invalidateQueries({
358
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
380
359
  });
381
360
  }
382
361
  });
383
362
  }
384
363
  function useSetComplianceManagerImpl(options = {}) {
385
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
364
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
386
365
  const queryClient = reactQuery.useQueryClient();
387
366
  return reactQuery.useMutation({
388
367
  mutationFn: async (args) => {
@@ -393,13 +372,16 @@ function useSetComplianceManagerImpl(options = {}) {
393
372
  },
394
373
  onSuccess: () => {
395
374
  void queryClient.invalidateQueries({
396
- queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress })
375
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.implementations({ chainId, address: resolvedAddress })
376
+ });
377
+ void queryClient.invalidateQueries({
378
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
397
379
  });
398
380
  }
399
381
  });
400
382
  }
401
383
  function useSetCompliancePolicy(options = {}) {
402
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
384
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
403
385
  const queryClient = reactQuery.useQueryClient();
404
386
  return reactQuery.useMutation({
405
387
  mutationFn: async (args) => {
@@ -411,20 +393,17 @@ function useSetCompliancePolicy(options = {}) {
411
393
  onSuccess: (_hash, variables) => {
412
394
  const scope = { chainId, address: resolvedAddress };
413
395
  void queryClient.invalidateQueries({
414
- queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
396
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.compliancePolicy(scope, variables.creator)
415
397
  });
416
398
  void queryClient.invalidateQueries({
417
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
418
- ...scope,
419
- fn: "effectiveDelegateToCompliance",
420
- args: [variables.creator]
421
- })
399
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveDelegateToCompliance(scope, variables.creator)
422
400
  });
401
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope) });
423
402
  }
424
403
  });
425
404
  }
426
405
  function useSetCustomFee(options = {}) {
427
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
406
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
428
407
  const queryClient = reactQuery.useQueryClient();
429
408
  return reactQuery.useMutation({
430
409
  mutationFn: async ({ creator, gasFee, account }) => {
@@ -435,16 +414,19 @@ function useSetCustomFee(options = {}) {
435
414
  },
436
415
  onSuccess: (_hash, variables) => {
437
416
  void queryClient.invalidateQueries({
438
- queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
417
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
439
418
  });
440
419
  void queryClient.invalidateQueries({
441
- queryKey: chunkTND5NDV7_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
420
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.customFee({ chainId, address: resolvedAddress }, variables.creator)
421
+ });
422
+ void queryClient.invalidateQueries({
423
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
442
424
  });
443
425
  }
444
426
  });
445
427
  }
446
428
  function useSetDefaultDelegateToCompliance(options = {}) {
447
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
429
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
448
430
  const queryClient = reactQuery.useQueryClient();
449
431
  return reactQuery.useMutation({
450
432
  mutationFn: async (args) => {
@@ -455,20 +437,22 @@ function useSetDefaultDelegateToCompliance(options = {}) {
455
437
  },
456
438
  onSuccess: () => {
457
439
  void queryClient.invalidateQueries({
458
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({
440
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveDelegateToComplianceAll({
459
441
  chainId,
460
- address: resolvedAddress,
461
- fn: "effectiveDelegateToCompliance"
442
+ address: resolvedAddress
462
443
  })
463
444
  });
464
445
  void queryClient.invalidateQueries({
465
- queryKey: chunkTND5NDV7_cjs.airdropKeys.compliancePolicyAll({ chainId, address: resolvedAddress })
446
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.compliancePolicyAll({ chainId, address: resolvedAddress })
447
+ });
448
+ void queryClient.invalidateQueries({
449
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
466
450
  });
467
451
  }
468
452
  });
469
453
  }
470
454
  function useSetDefaultGasFee(options = {}) {
471
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
455
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
472
456
  const queryClient = reactQuery.useQueryClient();
473
457
  return reactQuery.useMutation({
474
458
  mutationFn: async ({ gasFee, account }) => {
@@ -479,16 +463,19 @@ function useSetDefaultGasFee(options = {}) {
479
463
  },
480
464
  onSuccess: () => {
481
465
  void queryClient.invalidateQueries({
482
- queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
466
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
467
+ });
468
+ void queryClient.invalidateQueries({
469
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
483
470
  });
484
471
  void queryClient.invalidateQueries({
485
- queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
472
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
486
473
  });
487
474
  }
488
475
  });
489
476
  }
490
477
  function useSetMaxGasFee(options = {}) {
491
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
478
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
492
479
  const queryClient = reactQuery.useQueryClient();
493
480
  return reactQuery.useMutation({
494
481
  mutationFn: async ({ maxGasFee, account }) => {
@@ -499,16 +486,19 @@ function useSetMaxGasFee(options = {}) {
499
486
  },
500
487
  onSuccess: () => {
501
488
  void queryClient.invalidateQueries({
502
- queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
489
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
503
490
  });
504
491
  void queryClient.invalidateQueries({
505
- queryKey: chunkTND5NDV7_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
492
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.resolvedGasFeeAll({ chainId, address: resolvedAddress })
493
+ });
494
+ void queryClient.invalidateQueries({
495
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll({ chainId, address: resolvedAddress })
506
496
  });
507
497
  }
508
498
  });
509
499
  }
510
500
  function useSetDefaultUpgradeable(options = {}) {
511
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
501
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
512
502
  const queryClient = reactQuery.useQueryClient();
513
503
  return reactQuery.useMutation({
514
504
  mutationFn: async (args) => {
@@ -520,19 +510,19 @@ function useSetDefaultUpgradeable(options = {}) {
520
510
  onSuccess: () => {
521
511
  const scope = { chainId, address: resolvedAddress };
522
512
  void queryClient.invalidateQueries({
523
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "effectiveUpgradeable" })
513
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveUpgradeableAll(scope)
524
514
  });
525
515
  void queryClient.invalidateQueries({
526
- queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicyAll(scope)
516
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.upgradeabilityPolicyAll(scope)
527
517
  });
528
518
  void queryClient.invalidateQueries({
529
- queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
519
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope)
530
520
  });
531
521
  }
532
522
  });
533
523
  }
534
524
  function useSetEcdsaImplementation(options = {}) {
535
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
525
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
536
526
  const queryClient = reactQuery.useQueryClient();
537
527
  return reactQuery.useMutation({
538
528
  mutationFn: async ({ implementation, account }) => {
@@ -543,21 +533,17 @@ function useSetEcdsaImplementation(options = {}) {
543
533
  },
544
534
  onSuccess: () => {
545
535
  const scope = { chainId, address: resolvedAddress };
546
- void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations(scope) });
547
- void queryClient.invalidateQueries({
548
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getEcdsaInitCodeHash" })
549
- });
550
- void queryClient.invalidateQueries({
551
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictEcdsaAirdropAddress" })
552
- });
536
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.implementations(scope) });
537
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.ecdsaInitCodeHashAll(scope) });
538
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.predictEcdsaAddressAll(scope) });
553
539
  void queryClient.invalidateQueries({
554
- queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
540
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope)
555
541
  });
556
542
  }
557
543
  });
558
544
  }
559
545
  function useSetFeeCollector(options = {}) {
560
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
546
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
561
547
  const queryClient = reactQuery.useQueryClient();
562
548
  return reactQuery.useMutation({
563
549
  mutationFn: async ({ feeCollector, account }) => {
@@ -568,13 +554,13 @@ function useSetFeeCollector(options = {}) {
568
554
  },
569
555
  onSuccess: () => {
570
556
  void queryClient.invalidateQueries({
571
- queryKey: chunkTND5NDV7_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
557
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.fees({ chainId, address: resolvedAddress })
572
558
  });
573
559
  }
574
560
  });
575
561
  }
576
562
  function useSetMerkleImplementation(options = {}) {
577
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
563
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
578
564
  const queryClient = reactQuery.useQueryClient();
579
565
  return reactQuery.useMutation({
580
566
  mutationFn: async ({ implementation, account }) => {
@@ -585,21 +571,17 @@ function useSetMerkleImplementation(options = {}) {
585
571
  },
586
572
  onSuccess: () => {
587
573
  const scope = { chainId, address: resolvedAddress };
588
- void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.implementations(scope) });
574
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.implementations(scope) });
575
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleInitCodeHashAll(scope) });
576
+ void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.predictMerkleAddressAll(scope) });
589
577
  void queryClient.invalidateQueries({
590
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "getMerkleInitCodeHash" })
591
- });
592
- void queryClient.invalidateQueries({
593
- queryKey: chunkTND5NDV7_cjs.airdropQueryKeyPrefix({ ...scope, fn: "predictMerkleAirdropAddress" })
594
- });
595
- void queryClient.invalidateQueries({
596
- queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
578
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope)
597
579
  });
598
580
  }
599
581
  });
600
582
  }
601
583
  function useSetUpgradeabilityPolicy(options = {}) {
602
- const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
584
+ const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
603
585
  const queryClient = reactQuery.useQueryClient();
604
586
  return reactQuery.useMutation({
605
587
  mutationFn: async (args) => {
@@ -611,17 +593,13 @@ function useSetUpgradeabilityPolicy(options = {}) {
611
593
  onSuccess: (_hash, variables) => {
612
594
  const scope = { chainId, address: resolvedAddress };
613
595
  void queryClient.invalidateQueries({
614
- queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
615
- ...scope,
616
- fn: "effectiveUpgradeable",
617
- args: [variables.creator]
618
- })
596
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveUpgradeable(scope, variables.creator)
619
597
  });
620
598
  void queryClient.invalidateQueries({
621
- queryKey: chunkTND5NDV7_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
599
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.upgradeabilityPolicy(scope, variables.creator)
622
600
  });
623
601
  void queryClient.invalidateQueries({
624
- queryKey: chunkTND5NDV7_cjs.airdropKeys.preflightCreateAll(scope)
602
+ queryKey: chunkQHDMPT7I_cjs.airdropKeys.preflightCreateAll(scope)
625
603
  });
626
604
  }
627
605
  });