@boostxyz/sdk 0.0.0-alpha.8 → 1.1.0-alpha.22

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 (266) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.cjs.map +1 -1
  3. package/dist/Actions/Action.js +7 -7
  4. package/dist/Actions/ContractAction.d.ts +57 -14
  5. package/dist/Actions/ContractAction.d.ts.map +1 -1
  6. package/dist/Actions/ERC721MintAction.d.ts +50 -23
  7. package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
  8. package/dist/Actions/EventAction.cjs +1 -1
  9. package/dist/Actions/EventAction.cjs.map +1 -1
  10. package/dist/Actions/EventAction.d.ts +420 -45
  11. package/dist/Actions/EventAction.d.ts.map +1 -1
  12. package/dist/Actions/EventAction.js +15 -225
  13. package/dist/Actions/EventAction.js.map +1 -1
  14. package/dist/AllowLists/AllowList.cjs +1 -1
  15. package/dist/AllowLists/AllowList.cjs.map +1 -1
  16. package/dist/AllowLists/AllowList.d.ts +6 -4
  17. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  18. package/dist/AllowLists/AllowList.js +45 -23
  19. package/dist/AllowLists/AllowList.js.map +1 -1
  20. package/dist/AllowLists/OpenAllowList.d.ts +423 -0
  21. package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
  22. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  23. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  24. package/dist/AllowLists/SimpleAllowList.d.ts +123 -39
  25. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  26. package/dist/AllowLists/SimpleAllowList.js +75 -76
  27. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  28. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  29. package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
  30. package/dist/AllowLists/SimpleDenyList.d.ts +234 -13
  31. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  32. package/dist/AllowLists/SimpleDenyList.js +11 -200
  33. package/dist/AllowLists/SimpleDenyList.js.map +1 -1
  34. package/dist/Auth/PassthroughAuth.cjs +1 -1
  35. package/dist/Auth/PassthroughAuth.cjs.map +1 -1
  36. package/dist/Auth/PassthroughAuth.js +4 -4
  37. package/dist/Auth/PassthroughAuth.js.map +1 -1
  38. package/dist/Boost.cjs +1 -1
  39. package/dist/Boost.cjs.map +1 -1
  40. package/dist/Boost.d.ts +105 -14
  41. package/dist/Boost.d.ts.map +1 -1
  42. package/dist/Boost.js +137 -5
  43. package/dist/Boost.js.map +1 -1
  44. package/dist/BoostCore-BVZExPPu.js +1462 -0
  45. package/dist/BoostCore-BVZExPPu.js.map +1 -0
  46. package/dist/BoostCore-D-E-cnGI.cjs +3 -0
  47. package/dist/BoostCore-D-E-cnGI.cjs.map +1 -0
  48. package/dist/BoostCore.cjs +1 -2
  49. package/dist/BoostCore.cjs.map +1 -1
  50. package/dist/BoostCore.d.ts +759 -82
  51. package/dist/BoostCore.d.ts.map +1 -1
  52. package/dist/BoostCore.js +29 -1148
  53. package/dist/BoostCore.js.map +1 -1
  54. package/dist/BoostRegistry.cjs +1 -1
  55. package/dist/BoostRegistry.cjs.map +1 -1
  56. package/dist/BoostRegistry.d.ts +83 -28
  57. package/dist/BoostRegistry.d.ts.map +1 -1
  58. package/dist/BoostRegistry.js +170 -93
  59. package/dist/BoostRegistry.js.map +1 -1
  60. package/dist/Budgets/Budget.cjs +1 -1
  61. package/dist/Budgets/Budget.cjs.map +1 -1
  62. package/dist/Budgets/Budget.d.ts.map +1 -1
  63. package/dist/Budgets/Budget.js +2 -2
  64. package/dist/Budgets/Budget.js.map +1 -1
  65. package/dist/Budgets/ManagedBudget.cjs +1 -1
  66. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  67. package/dist/Budgets/ManagedBudget.d.ts +112 -192
  68. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  69. package/dist/Budgets/ManagedBudget.js +89 -290
  70. package/dist/Budgets/ManagedBudget.js.map +1 -1
  71. package/dist/Budgets/VestingBudget.d.ts +277 -91
  72. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  73. package/dist/Deployable/Contract.cjs +1 -1
  74. package/dist/Deployable/Contract.cjs.map +1 -1
  75. package/dist/Deployable/Contract.d.ts +4 -5
  76. package/dist/Deployable/Contract.d.ts.map +1 -1
  77. package/dist/Deployable/Contract.js +6 -8
  78. package/dist/Deployable/Contract.js.map +1 -1
  79. package/dist/Deployable/Deployable.cjs.map +1 -1
  80. package/dist/Deployable/Deployable.d.ts +1 -1
  81. package/dist/Deployable/Deployable.d.ts.map +1 -1
  82. package/dist/Deployable/Deployable.js +3 -5
  83. package/dist/Deployable/Deployable.js.map +1 -1
  84. package/dist/Deployable/DeployableTarget.cjs +1 -1
  85. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  86. package/dist/Deployable/DeployableTarget.d.ts +13 -13
  87. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  88. package/dist/Deployable/DeployableTarget.js +30 -27
  89. package/dist/Deployable/DeployableTarget.js.map +1 -1
  90. package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
  91. package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
  92. package/dist/Deployable/DeployableTargetWithRBAC.d.ts +179 -0
  93. package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
  94. package/dist/Deployable/DeployableTargetWithRBAC.js +222 -0
  95. package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
  96. package/dist/EventAction-BZt5cjbe.cjs +2 -0
  97. package/dist/EventAction-BZt5cjbe.cjs.map +1 -0
  98. package/dist/EventAction-C_-hJXWm.js +1541 -0
  99. package/dist/EventAction-C_-hJXWm.js.map +1 -0
  100. package/dist/Incentive-BhHaK3PZ.cjs +2 -0
  101. package/dist/Incentive-BhHaK3PZ.cjs.map +1 -0
  102. package/dist/Incentive-Cqg1w6wD.js +312 -0
  103. package/dist/Incentive-Cqg1w6wD.js.map +1 -0
  104. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  105. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  106. package/dist/Incentives/AllowListIncentive.d.ts +73 -21
  107. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
  108. package/dist/Incentives/AllowListIncentive.js +61 -36
  109. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  110. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  111. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  112. package/dist/Incentives/CGDAIncentive.d.ts +323 -26
  113. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  114. package/dist/Incentives/CGDAIncentive.js +73 -39
  115. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  116. package/dist/Incentives/ERC1155Incentive.d.ts +291 -43
  117. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  118. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  119. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  120. package/dist/Incentives/ERC20Incentive.d.ts +278 -33
  121. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  122. package/dist/Incentives/ERC20Incentive.js +79 -47
  123. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  124. package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +346 -420
  125. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
  126. package/dist/Incentives/ERC20VariableIncentive.d.ts +271 -32
  127. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  128. package/dist/Incentives/Incentive.cjs +1 -1
  129. package/dist/Incentives/Incentive.cjs.map +1 -1
  130. package/dist/Incentives/Incentive.d.ts +4 -4
  131. package/dist/Incentives/Incentive.d.ts.map +1 -1
  132. package/dist/Incentives/Incentive.js +16 -280
  133. package/dist/Incentives/Incentive.js.map +1 -1
  134. package/dist/Incentives/PointsIncentive.cjs +1 -1
  135. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  136. package/dist/Incentives/PointsIncentive.d.ts +89 -23
  137. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  138. package/dist/Incentives/PointsIncentive.js +66 -36
  139. package/dist/Incentives/PointsIncentive.js.map +1 -1
  140. package/dist/SimpleDenyList-BUR17Tt1.cjs +2 -0
  141. package/dist/SimpleDenyList-BUR17Tt1.cjs.map +1 -0
  142. package/dist/SimpleDenyList-CGaWjuld.js +132 -0
  143. package/dist/SimpleDenyList-CGaWjuld.js.map +1 -0
  144. package/dist/Validators/SignerValidator.cjs +1 -1
  145. package/dist/Validators/SignerValidator.cjs.map +1 -1
  146. package/dist/Validators/SignerValidator.d.ts +310 -17
  147. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  148. package/dist/Validators/SignerValidator.js +164 -36
  149. package/dist/Validators/SignerValidator.js.map +1 -1
  150. package/dist/Validators/Validator.cjs +1 -1
  151. package/dist/Validators/Validator.cjs.map +1 -1
  152. package/dist/Validators/Validator.d.ts +1 -1
  153. package/dist/Validators/Validator.js +2 -2
  154. package/dist/Validators/Validator.js.map +1 -1
  155. package/dist/claiming.cjs +2 -0
  156. package/dist/claiming.cjs.map +1 -0
  157. package/dist/claiming.d.ts +43 -0
  158. package/dist/claiming.d.ts.map +1 -0
  159. package/dist/claiming.js +17 -0
  160. package/dist/claiming.js.map +1 -0
  161. package/dist/componentInterfaces-BBCFkrZv.js +14 -0
  162. package/dist/componentInterfaces-BBCFkrZv.js.map +1 -0
  163. package/dist/componentInterfaces-DRI_dQ-P.cjs +2 -0
  164. package/dist/componentInterfaces-DRI_dQ-P.cjs.map +1 -0
  165. package/dist/deployments-DVXioW2i.cjs +2 -0
  166. package/dist/deployments-DVXioW2i.cjs.map +1 -0
  167. package/dist/deployments-oykLv3_Z.js +43 -0
  168. package/dist/deployments-oykLv3_Z.js.map +1 -0
  169. package/dist/deployments.json +44 -0
  170. package/dist/errors.cjs +1 -1
  171. package/dist/errors.cjs.map +1 -1
  172. package/dist/errors.d.ts +257 -21
  173. package/dist/errors.d.ts.map +1 -1
  174. package/dist/errors.js +183 -26
  175. package/dist/errors.js.map +1 -1
  176. package/dist/{generated-Cbv8zFkf.js → generated-CKt2yCQd.js} +3615 -1868
  177. package/dist/generated-CKt2yCQd.js.map +1 -0
  178. package/dist/generated-CyTNlOwM.cjs +3 -0
  179. package/dist/generated-CyTNlOwM.cjs.map +1 -0
  180. package/dist/index.cjs +1 -1
  181. package/dist/index.d.ts +9 -4
  182. package/dist/index.d.ts.map +1 -1
  183. package/dist/index.js +143 -126
  184. package/dist/index.js.map +1 -1
  185. package/dist/transfers.cjs +2 -0
  186. package/dist/transfers.cjs.map +1 -0
  187. package/dist/transfers.d.ts +198 -0
  188. package/dist/transfers.d.ts.map +1 -0
  189. package/dist/transfers.js +84 -0
  190. package/dist/transfers.js.map +1 -0
  191. package/dist/utils.cjs +1 -1
  192. package/dist/utils.cjs.map +1 -1
  193. package/dist/utils.d.ts +25 -1380
  194. package/dist/utils.d.ts.map +1 -1
  195. package/dist/utils.js +36 -648
  196. package/dist/utils.js.map +1 -1
  197. package/package.json +34 -10
  198. package/src/Actions/Action.test.ts +19 -17
  199. package/src/Actions/ContractAction.test.ts +14 -16
  200. package/src/Actions/ContractAction.ts +84 -22
  201. package/src/Actions/ERC721MintAction.test.ts +8 -8
  202. package/src/Actions/ERC721MintAction.ts +83 -30
  203. package/src/Actions/EventAction.test.ts +759 -113
  204. package/src/Actions/EventAction.ts +991 -116
  205. package/src/AllowLists/AllowList.test.ts +7 -7
  206. package/src/AllowLists/AllowList.ts +5 -3
  207. package/src/AllowLists/OpenAllowList.test.ts +40 -0
  208. package/src/AllowLists/OpenAllowList.ts +45 -0
  209. package/src/AllowLists/SimpleAllowList.test.ts +4 -4
  210. package/src/AllowLists/SimpleAllowList.ts +86 -65
  211. package/src/AllowLists/SimpleDenyList.test.ts +4 -4
  212. package/src/AllowLists/SimpleDenyList.ts +87 -126
  213. package/src/Auth/PassthroughAuth.test.ts +1 -1
  214. package/src/Auth/PassthroughAuth.ts +1 -1
  215. package/src/Boost.ts +147 -15
  216. package/src/BoostCore.test.ts +326 -278
  217. package/src/BoostCore.ts +425 -242
  218. package/src/BoostRegistry.test.ts +53 -0
  219. package/src/BoostRegistry.ts +168 -50
  220. package/src/Budgets/Budget.test.ts +2 -2
  221. package/src/Budgets/Budget.ts +1 -2
  222. package/src/Budgets/ManagedBudget.test.ts +82 -19
  223. package/src/Budgets/ManagedBudget.ts +106 -315
  224. package/src/Budgets/VestingBudget.test.ts +7 -7
  225. package/src/Budgets/VestingBudget.ts +110 -112
  226. package/src/Deployable/Contract.ts +5 -6
  227. package/src/Deployable/Deployable.ts +1 -1
  228. package/src/Deployable/DeployableTarget.ts +32 -21
  229. package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
  230. package/src/Incentives/AllowListIncentive.test.ts +7 -10
  231. package/src/Incentives/AllowListIncentive.ts +88 -30
  232. package/src/Incentives/CGDAIncentive.test.ts +11 -12
  233. package/src/Incentives/CGDAIncentive.ts +161 -37
  234. package/src/Incentives/ERC1155Incentive.test.ts +5 -16
  235. package/src/Incentives/ERC1155Incentive.ts +132 -51
  236. package/src/Incentives/ERC20Incentive.test.ts +15 -23
  237. package/src/Incentives/ERC20Incentive.ts +131 -46
  238. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
  239. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +324 -0
  240. package/src/Incentives/ERC20VariableIncentive.test.ts +12 -35
  241. package/src/Incentives/ERC20VariableIncentive.ts +118 -43
  242. package/src/Incentives/Incentive.test.ts +5 -2
  243. package/src/Incentives/Incentive.ts +7 -6
  244. package/src/Incentives/PointsIncentive.test.ts +26 -30
  245. package/src/Incentives/PointsIncentive.ts +110 -34
  246. package/src/Validators/SignerValidator.test.ts +9 -13
  247. package/src/Validators/SignerValidator.ts +437 -26
  248. package/src/Validators/Validator.test.ts +2 -2
  249. package/src/Validators/Validator.ts +1 -1
  250. package/src/claiming.ts +56 -0
  251. package/src/errors.ts +346 -22
  252. package/src/index.test.ts +118 -36
  253. package/src/index.ts +15 -7
  254. package/src/transfers.ts +284 -0
  255. package/src/utils.test.ts +2 -2
  256. package/src/utils.ts +61 -2061
  257. package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
  258. package/dist/componentInterfaces-CKCBwG16.cjs +0 -2
  259. package/dist/componentInterfaces-CKCBwG16.cjs.map +0 -1
  260. package/dist/componentInterfaces-DYkaxBda.js +0 -13
  261. package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
  262. package/dist/generated-BzszviNp.cjs +0 -3
  263. package/dist/generated-BzszviNp.cjs.map +0 -1
  264. package/dist/generated-Cbv8zFkf.js.map +0 -1
  265. package/src/Budgets/SimpleBudget.test.ts +0 -152
  266. package/src/Budgets/SimpleBudget.ts +0 -521
package/dist/BoostCore.js CHANGED
@@ -1,1151 +1,32 @@
1
- import { c as P, bd as k, be as G, bf as U, bg as W, bh as H, bi as Q, bj as J, bk as K, bl as X, bm as Y, bn as Z, bo as ff, bp as ef, bq as af, br as bf, bs as tf, bt as cf } from "./generated-Cbv8zFkf.js";
2
- import { getAccount as sf, waitForTransactionReceipt as nf } from "@wagmi/core";
3
- import { createClient as df, custom as rf, zeroAddress as w, zeroHash as o, parseEventLogs as of } from "viem";
4
- import { actionFromAddress as uf } from "./Actions/Action.js";
5
- import { EventAction as lf } from "./Actions/EventAction.js";
6
- import { allowListFromAddress as hf } from "./AllowLists/AllowList.js";
7
- import { SimpleAllowList as mf } from "./AllowLists/SimpleAllowList.js";
8
- import { SimpleDenyList as gf } from "./AllowLists/SimpleDenyList.js";
9
- import { PassthroughAuth as wf } from "./Auth/PassthroughAuth.js";
10
- import { Boost as $ } from "./Boost.js";
11
- import { budgetFromAddress as pf } from "./Budgets/Budget.js";
12
- import { ManagedBudget as Af } from "./Budgets/ManagedBudget.js";
13
- import { Deployable as yf } from "./Deployable/Deployable.js";
14
- import { AllowListIncentive as Cf } from "./Incentives/AllowListIncentive.js";
15
- import { CGDAIncentive as vf } from "./Incentives/CGDAIncentive.js";
16
- import { ERC20Incentive as _f } from "./Incentives/ERC20Incentive.js";
17
- import { incentiveFromAddress as If, ERC20VariableIncentive as Pf } from "./Incentives/Incentive.js";
18
- import { PointsIncentive as Bf } from "./Incentives/PointsIncentive.js";
19
- import { SignerValidator as Ff } from "./Validators/SignerValidator.js";
20
- import { validatorFromAddress as Rf } from "./Validators/Validator.js";
21
- import { DeployableUnknownOwnerProvidedError as Ef, BudgetMustAuthorizeBoostCore as Df, MustInitializeBudgetError as Vf, IncentiveNotCloneableError as Lf, BoostCoreNoIdentifierEmitted as $f } from "./errors.js";
22
- import { prepareBoostPayload as xf } from "./utils.js";
23
- import { simulateContract as Nf, writeContract as Mf } from "viem/actions";
24
- import { parseAccount as jf, getAddress as Sf } from "viem/utils";
25
- const Of = "0x60806040526544364c5bb0006004556103e860055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506103e8600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555034801561006e575f80fd5b506040516135683803806135688339818101604052810190610090919061029f565b61009f3361012660201b60201c565b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102dd565b61013461020260201b60201c565b156101ac577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561016e57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506101ff565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102338261020a565b9050919050565b5f61024482610229565b9050919050565b6102548161023a565b811461025e575f80fd5b50565b5f8151905061026f8161024b565b92915050565b61027e81610229565b8114610288575f80fd5b50565b5f8151905061029981610275565b92915050565b5f80604083850312156102b5576102b4610206565b5b5f6102c285828601610261565b92505060206102d38582860161028b565b9150509250929050565b61327e806102ea5f395ff3fe60806040526004361061014a575f3560e01c8063892b97f8116100b5578063d73792a91161006e578063d73792a9146103d0578063e21ff731146103fa578063eccc19a614610436578063f04e283e1461045e578063f2fde38b1461047a578063fee81cf4146104965761014a565b8063892b97f8146102e45780638da5cb5b1461030c5780638fe4f5231461033657806399d32fc414610352578063a92647dc1461037c578063b0e21e8a146103a65761014a565b806354d1f13d1161010757806354d1f13d146102365780635edb9eb014610240578063715018a61461026a578063730f9c57146102745780637b1039991461029057806384ae2bc6146102ba5761014a565b806313c8e2de1461014e578063256929621461018a5780632e75ab501461019457806339a51be5146101bc57806343bc42d3146101e657806346877b1a1461020e575b5f80fd5b348015610159575f80fd5b50610174600480360381019061016f91906122d2565b6104d2565b60405161018191906125c3565b60405180910390f35b6101926107ac565b005b34801561019f575f80fd5b506101ba60048036038101906101b591906122d2565b6107fd565b005b3480156101c7575f80fd5b506101d061080f565b6040516101dd91906125f2565b60405180910390f35b3480156101f1575f80fd5b5061020c60048036038101906102079190612635565b610834565b005b348015610219575f80fd5b50610234600480360381019061022f919061268a565b610867565b005b61023e6108b2565b005b34801561024b575f80fd5b506102546108eb565b60405161026191906126c4565b60405180910390f35b6102726108f6565b005b61028e6004803603810190610289919061273e565b610909565b005b34801561029b575f80fd5b506102a4610b9a565b6040516102b191906127f4565b60405180910390f35b3480156102c5575f80fd5b506102ce610bbf565b6040516102db919061281c565b60405180910390f35b3480156102ef575f80fd5b5061030a60048036038101906103059190612635565b610bd9565b005b348015610317575f80fd5b50610320610c0d565b60405161032d91906125f2565b60405180910390f35b610350600480360381019061034b9190612835565b610c35565b005b34801561035d575f80fd5b50610366610c4a565b60405161037391906126c4565b60405180910390f35b348015610387575f80fd5b50610390610c50565b60405161039d91906128d9565b60405180910390f35b3480156103b1575f80fd5b506103ba610c75565b6040516103c7919061281c565b60405180910390f35b3480156103db575f80fd5b506103e4610c8e565b6040516103f1919061281c565b60405180910390f35b348015610405575f80fd5b50610420600480360381019061041b91906128f2565b610c94565b60405161042d91906125c3565b60405180910390f35b348015610441575f80fd5b5061045c6004803603810190610457919061268a565b61164f565b005b6104786004803603810190610473919061268a565b61169a565b005b610494600480360381019061048f919061268a565b6116d8565b005b3480156104a1575f80fd5b506104bc60048036038101906104b7919061268a565b611701565b6040516104c991906126c4565b60405180910390f35b6104da612126565b5f82815481106104ed576104ec61293d565b5b905f5260205f209060080201604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156106da57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610691575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b5f6107b561171a565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b610805611724565b8060048190555050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61083c611724565b8060055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b61086f611724565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f8080549050905090565b6108fe611724565b6109075f61175b565b565b3068929eee149b4bd2126854036109275763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8087815481106109475761094661293d565b5b905f5260205f20906008020190506004543410156109a2575f346004546040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016109999392919061296a565b60405180910390fd5b6109ac8186611821565b806001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663703b690088888588886040518663ffffffff1660e01b8152600401610a109594939291906129f9565b6020604051808303815f875af1158015610a2c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a509190612a7a565b610a86576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806004018681548110610a9c57610a9b61293d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb1757cf8386866040518463ffffffff1660e01b8152600401610b0093929190612aa5565b6020604051808303815f875af1158015610b1c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b409190612a7a565b610b85578184846040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401610b7c93929190612aa5565b60405180910390fd5b503868929eee149b4bd2126855505050505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560089054906101000a900467ffffffffffffffff1681565b610be1611724565b80600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b610c43858585858533610909565b5050505050565b60045481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055f9054906101000a900467ffffffffffffffff1681565b61271081565b610c9c612126565b335f73ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610d90575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80826040518263ffffffff1660e01b8152600401610d4f91906125f2565b602060405180830381865afa158015610d6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8e9190612a7a565b155b15610dc7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403610de55763ab143c065f526004601cfd5b3068929eee149b4bd21268555f610e3e85858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505061198f565b806020019051810190610e519190612f35565b9050610e5f815f0151611a28565b5f8060018160018154018082558091505003905f5260205f2090600802019050816101000151816007015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550815f0151816003015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a0015160055f9054906101000a900467ffffffffffffffff16610f309190612fa9565b816005015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160c00151600560089054906101000a900467ffffffffffffffff16610f7f9190612fa9565b8160050160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160e001518160060181905550610fe67fe67157950000000000000000000000000000000000000000000000000000000083602001516001611b03565b815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110567fe2089f790000000000000000000000000000000000000000000000000000000083606001516001611b03565b816002015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110a88260800151835f0151611b25565b8160040190805190602001906110bf9291906121ec565b505f73ffffffffffffffffffffffffffffffffffffffff1682604001516020015173ffffffffffffffffffffffffffffffffffffffff16146111305761112b7f5912b89c0000000000000000000000000000000000000000000000000000000083604001516001611b03565b611219565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f5912b89c000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016111ab919061301e565b602060405180830381865afa1580156111c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111ea9190612a7a565b6111f4575f611218565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b5b816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660015f805490506112de9190613037565b7f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd8460040180549050856001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866002015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876003015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051611383949392919061306a565b60405180910390a480604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820180548060200260200160405190810160405280929190818152602001828054801561156d57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611524575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050935050503868929eee149b4bd21268555092915050565b611657611724565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116a2611724565b63389a75e1600c52805f526020600c2080544211156116c857636f5e88185f526004601cfd5b5f8155506116d58161175b565b50565b6116e0611724565b8060601b6116f557637448fbae5f526004601cfd5b6116fe8161175b565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611759576382b429005f526004601cfd5b565b611763611eef565b156117c8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b821781555061181e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f600454031561198b575f60045490505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146118e7575f61271067ffffffffffffffff168460050160089054906101000a900467ffffffffffffffff1667ffffffffffffffff166004546118a291906130ad565b6118ac919061311b565b905080826118ba9190613037565b91506118e5818473ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b61193f6002826118f7919061311b565b846007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b6119894760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b5050565b6060815115611a235760405190506020810160048301805184518501811983525b80861015611a09576001860195508551601f1a806119f9576001870196508651601f1a5f198652607f81116119e757600181013887395b6001607f821601860195505050611a04565b808553600185019450505b6119b0565b81835260208501840385525f845260208401604052505050505b919050565b611a527fea5ad34e0000000000000000000000000000000000000000000000000000000082611f10565b8073ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80336040518263ffffffff1660e01b8152600401611a8b91906125f2565b602060405180830381865afa158015611aa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aca9190612a7a565b611b00576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f611b12848460200151611f10565b611b1c8383612007565b90509392505050565b6060825167ffffffffffffffff811115611b4257611b41612ad9565b5b604051908082528060200260200182016040528015611b705781602001602082028036833780820191505090505b5090505f5b8351811015611ee857611bc67f5970a68900000000000000000000000000000000000000000000000000000000858381518110611bb557611bb461293d565b5b602002602001015160200151611f10565b838181518110611bd957611bd861293d565b5b60200260200101515f0151611c65577f5970a68900000000000000000000000000000000000000000000000000000000848281518110611c1c57611c1b61293d565b5b6020026020010151602001516040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611c5c92919061314b565b60405180910390fd5b611caa7f5970a68900000000000000000000000000000000000000000000000000000000858381518110611c9c57611c9b61293d565b5b60200260200101515f611b03565b828281518110611cbd57611cbc61293d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f828281518110611d0b57611d0a61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16634e7165a2868481518110611d4157611d4061293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611d6991906131b4565b5f60405180830381865afa158015611d83573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611dab91906131d4565b90505f815114611e3c578373ffffffffffffffffffffffffffffffffffffffff1663fa4ca9b1826040518263ffffffff1660e01b8152600401611dee91906131b4565b6020604051808303815f875af1158015611e0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e2e9190612a7a565b611e3b57611e3a61321b565b5b5b828281518110611e4f57611e4e61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663439fab91868481518110611e8557611e8461293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611ead91906131b4565b5f604051808303815f87803b158015611ec4575f80fd5b505af1158015611ed6573d5f803e3d5ffd5b50505050508080600101915050611b75565b5092915050565b5f90565b5f385f3884865af1611f0c5763b12d13eb5f526004601cfd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611fbf57508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a7836040518263ffffffff1660e01b8152600401611f7e919061301e565b602060405180830381865afa158015611f99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fbd9190612a7a565b155b156120035781816040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611ffa92919061314b565b60405180910390fd5b5050565b5f825f015161201a57826020015161203e565b61203d836020015173ffffffffffffffffffffffffffffffffffffffff166120c3565b5b9050825f0151801561204d5750815b156120bd578073ffffffffffffffffffffffffffffffffffffffff1663439fab9184604001516040518263ffffffff1660e01b815260040161208f91906131b4565b5f604051808303815f87803b1580156120a6575f80fd5b505af11580156120b8573d5f803e3d5ffd5b505050505b92915050565b5f6120ce5f836120d5565b9050919050565b5f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f090508061211c5763301164255f526004601cfd5b5f60215292915050565b6040518061012001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f67ffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b828054828255905f5260205f20908101928215612262579160200282015b82811115612261578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061220a565b5b50905061226f9190612273565b5090565b5b8082111561228a575f815f905550600101612274565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6122b18161229f565b81146122bb575f80fd5b50565b5f813590506122cc816122a8565b92915050565b5f602082840312156122e7576122e6612297565b5b5f6122f4848285016122be565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61233f61233a612335846122fd565b61231c565b6122fd565b9050919050565b5f61235082612325565b9050919050565b5f61236182612346565b9050919050565b61237181612357565b82525050565b5f61238182612346565b9050919050565b61239181612377565b82525050565b5f6123a182612346565b9050919050565b6123b181612397565b82525050565b5f6123c182612325565b9050919050565b5f6123d2826123b7565b9050919050565b6123e2816123c8565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f61241b82612346565b9050919050565b61242b81612411565b82525050565b5f61243c8383612422565b60208301905092915050565b5f602082019050919050565b5f61245e826123e8565b61246881856123f2565b935061247383612402565b805f5b838110156124a357815161248a8882612431565b975061249583612448565b925050600181019050612476565b5085935050505092915050565b5f67ffffffffffffffff82169050919050565b6124cc816124b0565b82525050565b6124db8161229f565b82525050565b5f6124eb826122fd565b9050919050565b6124fb816124e1565b82525050565b5f61012083015f8301516125175f860182612368565b50602083015161252a6020860182612388565b50604083015161253d60408601826123a8565b50606083015161255060608601826123d9565b50608083015184820360808601526125688282612454565b91505060a083015161257d60a08601826124c3565b5060c083015161259060c08601826124c3565b5060e08301516125a360e08601826124d2565b506101008301516125b86101008601826124f2565b508091505092915050565b5f6020820190508181035f8301526125db8184612501565b905092915050565b6125ec816124e1565b82525050565b5f6020820190506126055f8301846125e3565b92915050565b612614816124b0565b811461261e575f80fd5b50565b5f8135905061262f8161260b565b92915050565b5f6020828403121561264a57612649612297565b5b5f61265784828501612621565b91505092915050565b612669816124e1565b8114612673575f80fd5b50565b5f8135905061268481612660565b92915050565b5f6020828403121561269f5761269e612297565b5b5f6126ac84828501612676565b91505092915050565b6126be8161229f565b82525050565b5f6020820190506126d75f8301846126b5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126126fe576126fd6126dd565b5b8235905067ffffffffffffffff81111561271b5761271a6126e1565b5b602083019150836001820283011115612737576127366126e5565b5b9250929050565b5f805f805f8060a0878903121561275857612757612297565b5b5f61276589828a016122be565b965050602061277689828a016122be565b955050604061278789828a01612676565b945050606087013567ffffffffffffffff8111156127a8576127a761229b565b5b6127b489828a016126e9565b935093505060806127c789828a01612676565b9150509295509295509295565b5f6127de82612346565b9050919050565b6127ee816127d4565b82525050565b5f6020820190506128075f8301846127e5565b92915050565b612816816124b0565b82525050565b5f60208201905061282f5f83018461280d565b92915050565b5f805f805f6080868803121561284e5761284d612297565b5b5f61285b888289016122be565b955050602061286c888289016122be565b945050604061287d88828901612676565b935050606086013567ffffffffffffffff81111561289e5761289d61229b565b5b6128aa888289016126e9565b92509250509295509295909350565b5f6128c382612346565b9050919050565b6128d3816128b9565b82525050565b5f6020820190506128ec5f8301846128ca565b92915050565b5f806020838503121561290857612907612297565b5b5f83013567ffffffffffffffff8111156129255761292461229b565b5b612931858286016126e9565b92509250509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60608201905061297d5f8301866125e3565b61298a60208301856126b5565b61299760408301846126b5565b949350505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f6129d8838561299f565b93506129e58385846129af565b6129ee836129bd565b840190509392505050565b5f608082019050612a0c5f8301886126b5565b612a1960208301876126b5565b612a2660408301866125e3565b8181036060830152612a398184866129cd565b90509695505050505050565b5f8115159050919050565b612a5981612a45565b8114612a63575f80fd5b50565b5f81519050612a7481612a50565b92915050565b5f60208284031215612a8f57612a8e612297565b5b5f612a9c84828501612a66565b91505092915050565b5f604082019050612ab85f8301866125e3565b8181036020830152612acb8184866129cd565b9050949350505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612b0f826129bd565b810181811067ffffffffffffffff82111715612b2e57612b2d612ad9565b5b80604052505050565b5f612b4061228e565b9050612b4c8282612b06565b919050565b5f80fd5b5f612b5f826122fd565b9050919050565b5f612b7082612b55565b9050919050565b612b8081612b66565b8114612b8a575f80fd5b50565b5f81519050612b9b81612b77565b92915050565b5f81519050612baf81612660565b92915050565b5f80fd5b5f67ffffffffffffffff821115612bd357612bd2612ad9565b5b612bdc826129bd565b9050602081019050919050565b8281835e5f83830152505050565b5f612c09612c0484612bb9565b612b37565b905082815260208101848484011115612c2557612c24612bb5565b5b612c30848285612be9565b509392505050565b5f82601f830112612c4c57612c4b6126dd565b5b8151612c5c848260208601612bf7565b91505092915050565b5f60608284031215612c7a57612c79612ad5565b5b612c846060612b37565b90505f612c9384828501612a66565b5f830152506020612ca684828501612ba1565b602083015250604082015167ffffffffffffffff811115612cca57612cc9612b51565b5b612cd684828501612c38565b60408301525092915050565b5f67ffffffffffffffff821115612cfc57612cfb612ad9565b5b602082029050602081019050919050565b5f612d1f612d1a84612ce2565b612b37565b90508083825260208201905060208402830185811115612d4257612d416126e5565b5b835b81811015612d8957805167ffffffffffffffff811115612d6757612d666126dd565b5b808601612d748982612c65565b85526020850194505050602081019050612d44565b5050509392505050565b5f82601f830112612da757612da66126dd565b5b8151612db7848260208601612d0d565b91505092915050565b5f81519050612dce8161260b565b92915050565b5f81519050612de2816122a8565b92915050565b5f6101208284031215612dfe57612dfd612ad5565b5b612e09610120612b37565b90505f612e1884828501612b8d565b5f83015250602082015167ffffffffffffffff811115612e3b57612e3a612b51565b5b612e4784828501612c65565b602083015250604082015167ffffffffffffffff811115612e6b57612e6a612b51565b5b612e7784828501612c65565b604083015250606082015167ffffffffffffffff811115612e9b57612e9a612b51565b5b612ea784828501612c65565b606083015250608082015167ffffffffffffffff811115612ecb57612eca612b51565b5b612ed784828501612d93565b60808301525060a0612eeb84828501612dc0565b60a08301525060c0612eff84828501612dc0565b60c08301525060e0612f1384828501612dd4565b60e083015250610100612f2884828501612ba1565b6101008301525092915050565b5f60208284031215612f4a57612f49612297565b5b5f82015167ffffffffffffffff811115612f6757612f6661229b565b5b612f7384828501612de8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612fb3826124b0565b9150612fbe836124b0565b9250828201905067ffffffffffffffff811115612fde57612fdd612f7c565b5b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe4565b82525050565b5f6020820190506130315f83018461300f565b92915050565b5f6130418261229f565b915061304c8361229f565b925082820390508181111561306457613063612f7c565b5b92915050565b5f60808201905061307d5f8301876126b5565b61308a60208301866125e3565b61309760408301856125e3565b6130a460608301846125e3565b95945050505050565b5f6130b78261229f565b91506130c28361229f565b92508282026130d08161229f565b915082820484148315176130e7576130e6612f7c565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131258261229f565b91506131308361229f565b9250826131405761313f6130ee565b5b828204905092915050565b5f60408201905061315e5f83018561300f565b61316b60208301846125e3565b9392505050565b5f81519050919050565b5f61318682613172565b613190818561299f565b93506131a0818560208601612be9565b6131a9816129bd565b840191505092915050565b5f6020820190508181035f8301526131cc818461317c565b905092915050565b5f602082840312156131e9576131e8612297565b5b5f82015167ffffffffffffffff8111156132065761320561229b565b5b61321284828501612c38565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52600160045260245ffdfea2646970667358221220fb22934e0d9f7a8e32d07cd1f2621ea36204627afface45e5bc80aab6122bb7d64736f6c634300081a0033";
26
- function N(b) {
27
- const e = b.state.current, f = b.state.connections.get(e), a = f == null ? void 0 : f.accounts, c = a == null ? void 0 : a[0], t = b.chains.find((d) => d.id === (f == null ? void 0 : f.chainId)), s = b.state.status;
28
- switch (s) {
29
- case "connected":
30
- return {
31
- address: c,
32
- addresses: a,
33
- chain: t,
34
- chainId: f == null ? void 0 : f.chainId,
35
- connector: f == null ? void 0 : f.connector,
36
- isConnected: !0,
37
- isConnecting: !1,
38
- isDisconnected: !1,
39
- isReconnecting: !1,
40
- status: s
41
- };
42
- case "reconnecting":
43
- return {
44
- address: c,
45
- addresses: a,
46
- chain: t,
47
- chainId: f == null ? void 0 : f.chainId,
48
- connector: f == null ? void 0 : f.connector,
49
- isConnected: !!c,
50
- isConnecting: !1,
51
- isDisconnected: !1,
52
- isReconnecting: !0,
53
- status: s
54
- };
55
- case "connecting":
56
- return {
57
- address: c,
58
- addresses: a,
59
- chain: t,
60
- chainId: f == null ? void 0 : f.chainId,
61
- connector: f == null ? void 0 : f.connector,
62
- isConnected: !1,
63
- isConnecting: !0,
64
- isDisconnected: !1,
65
- isReconnecting: !1,
66
- status: s
67
- };
68
- case "disconnected":
69
- return {
70
- address: void 0,
71
- addresses: void 0,
72
- chain: void 0,
73
- chainId: void 0,
74
- connector: void 0,
75
- isConnected: !1,
76
- isConnecting: !1,
77
- isDisconnected: !0,
78
- isReconnecting: !1,
79
- status: s
80
- };
81
- }
82
- }
83
- function qf(b) {
84
- return b.state.chainId;
85
- }
86
- function M(b, e, f) {
87
- const a = b[e.name];
88
- if (typeof a == "function")
89
- return a;
90
- const c = b[f];
91
- return typeof c == "function" ? c : (t) => e(b, t);
92
- }
93
- const zf = "2.13.0", Tf = () => `@wagmi/core@${zf}`;
94
- var j = function(b, e, f, a) {
95
- if (f === "a" && !a)
96
- throw new TypeError("Private accessor was defined without a getter");
97
- if (typeof e == "function" ? b !== e || !a : !e.has(b))
98
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
99
- return f === "m" ? a : f === "a" ? a.call(b) : a ? a.value : e.get(b);
100
- }, B, S;
101
- class p extends Error {
102
- get docsBaseUrl() {
103
- return "https://wagmi.sh/core";
104
- }
105
- get version() {
106
- return Tf();
107
- }
108
- constructor(e, f = {}) {
109
- var t;
110
- super(), B.add(this), Object.defineProperty(this, "details", {
111
- enumerable: !0,
112
- configurable: !0,
113
- writable: !0,
114
- value: void 0
115
- }), Object.defineProperty(this, "docsPath", {
116
- enumerable: !0,
117
- configurable: !0,
118
- writable: !0,
119
- value: void 0
120
- }), Object.defineProperty(this, "metaMessages", {
121
- enumerable: !0,
122
- configurable: !0,
123
- writable: !0,
124
- value: void 0
125
- }), Object.defineProperty(this, "shortMessage", {
126
- enumerable: !0,
127
- configurable: !0,
128
- writable: !0,
129
- value: void 0
130
- }), Object.defineProperty(this, "name", {
131
- enumerable: !0,
132
- configurable: !0,
133
- writable: !0,
134
- value: "WagmiCoreError"
135
- });
136
- const a = f.cause instanceof p ? f.cause.details : (t = f.cause) != null && t.message ? f.cause.message : f.details, c = f.cause instanceof p && f.cause.docsPath || f.docsPath;
137
- this.message = [
138
- e || "An error occurred.",
139
- "",
140
- ...f.metaMessages ? [...f.metaMessages, ""] : [],
141
- ...c ? [
142
- `Docs: ${this.docsBaseUrl}${c}.html${f.docsSlug ? `#${f.docsSlug}` : ""}`
143
- ] : [],
144
- ...a ? [`Details: ${a}`] : [],
145
- `Version: ${this.version}`
146
- ].join(`
147
- `), f.cause && (this.cause = f.cause), this.details = a, this.docsPath = c, this.metaMessages = f.metaMessages, this.shortMessage = e;
148
- }
149
- walk(e) {
150
- return j(this, B, "m", S).call(this, this, e);
151
- }
152
- }
153
- B = /* @__PURE__ */ new WeakSet(), S = function b(e, f) {
154
- return f != null && f(e) ? e : e.cause ? j(this, B, "m", b).call(this, e.cause, f) : e;
155
- };
156
- class kf extends p {
157
- constructor() {
158
- super("Connector not connected."), Object.defineProperty(this, "name", {
159
- enumerable: !0,
160
- configurable: !0,
161
- writable: !0,
162
- value: "ConnectorNotConnectedError"
163
- });
164
- }
165
- }
166
- class Gf extends p {
167
- constructor({ address: e, connector: f }) {
168
- super(`Account "${e}" not found for connector "${f.name}".`), Object.defineProperty(this, "name", {
169
- enumerable: !0,
170
- configurable: !0,
171
- writable: !0,
172
- value: "ConnectorAccountNotFoundError"
173
- });
174
- }
175
- }
176
- class Uf extends p {
177
- constructor({ connectionChainId: e, connectorChainId: f }) {
178
- super(`The current chain of the connector (id: ${f}) does not match the connection's chain (id: ${e}).`, {
179
- metaMessages: [
180
- `Current Chain ID: ${f}`,
181
- `Expected Chain ID: ${e}`
182
- ]
183
- }), Object.defineProperty(this, "name", {
184
- enumerable: !0,
185
- configurable: !0,
186
- writable: !0,
187
- value: "ConnectorChainMismatchError"
188
- });
189
- }
190
- }
191
- async function O(b, e = {}) {
192
- let f;
193
- if (e.connector) {
194
- const { connector: n } = e, [u, g] = await Promise.all([
195
- n.getAccounts(),
196
- n.getChainId()
197
- ]);
198
- f = {
199
- accounts: u,
200
- chainId: g,
201
- connector: n
202
- };
203
- } else
204
- f = b.state.connections.get(b.state.current);
205
- if (!f)
206
- throw new kf();
207
- const a = e.chainId ?? f.chainId, c = await f.connector.getChainId();
208
- if (c !== f.chainId)
209
- throw new Uf({
210
- connectionChainId: f.chainId,
211
- connectorChainId: c
212
- });
213
- const t = f.connector;
214
- if (t.getClient)
215
- return t.getClient({ chainId: a });
216
- const s = jf(e.account ?? f.accounts[0]);
217
- s.address = Sf(s.address);
218
- const d = b.chains.find((n) => n.id === a), r = await f.connector.getProvider({ chainId: a });
219
- if (e.account && !f.accounts.some((n) => n.toLowerCase() === s.address.toLowerCase()))
220
- throw new Gf({
221
- address: s.address,
222
- connector: t
223
- });
224
- return df({
225
- account: s,
226
- chain: d,
227
- name: "Connector Client",
228
- transport: (n) => rf(r)({ ...n, retryCount: 0 })
229
- });
230
- }
231
- async function Wf(b, e) {
232
- const { abi: f, chainId: a, connector: c, ...t } = e;
233
- let s;
234
- e.account ? s = e.account : s = (await O(b, {
235
- chainId: a,
236
- connector: c
237
- })).account;
238
- const d = b.getClient({ chainId: a }), r = M(d, Nf, "simulateContract"), { result: n, request: u } = await r({ ...t, abi: f, account: s });
239
- return {
240
- chainId: d.chain.id,
241
- result: n,
242
- request: { __mode: "prepared", ...u, chainId: a }
243
- };
244
- }
245
- async function x(b, e) {
246
- const { account: f, chainId: a, connector: c, __mode: t, ...s } = e;
247
- let d;
248
- typeof f == "object" && f.type === "local" ? d = b.getClient({ chainId: a }) : d = await O(b, { account: f, chainId: a, connector: c });
249
- const { connector: r } = N(b);
250
- let n;
251
- if (t === "prepared" || r != null && r.supportsSimulation)
252
- n = s;
253
- else {
254
- const { request: A } = await Wf(b, {
255
- ...s,
256
- account: f,
257
- chainId: a
258
- });
259
- n = A;
260
- }
261
- return await M(d, Mf, "writeContract")({
262
- ...n,
263
- ...f ? { account: f } : {},
264
- chain: a ? { id: a } : null
265
- });
266
- }
267
- function Hf(b) {
268
- return b.address !== void 0 && typeof b.address == "object" ? (e, f) => {
269
- var s;
270
- const a = qf(e), c = N(e);
271
- let t;
272
- return f.chainId ? t = f.chainId : f.account && f.account === c.address || f.account === void 0 ? t = c.chainId : t = a, x(e, {
273
- ...f,
274
- ...b.functionName ? { functionName: b.functionName } : {},
275
- address: t ? (s = b.address) == null ? void 0 : s[t] : void 0,
276
- abi: b.abi
277
- });
278
- } : (e, f) => x(e, {
279
- ...f,
280
- ...b.address ? { address: b.address } : {},
281
- ...b.functionName ? { functionName: b.functionName } : {},
282
- abi: b.abi
283
- });
284
- }
285
- const Qf = "0xF4905b327904E5797840fd8cD7F300001a34122f";
286
- function Jf(b) {
287
- return b.address;
288
- }
289
- function Kf(b) {
290
- return b.registryAddress && b.protocolFeeReceiver;
291
- }
292
- class C0 extends yf {
293
- /**
294
- * Creates an instance of BoostCore.
295
- *
296
- * @constructor
297
- * @param {BoostCoreConfig} param0
298
- * @param {Config} param0.config
299
- * @param {?Account} [param0.account]
300
- * @param {({ address?: Address; } | { registryAddress: Address; protocolFeeReceiver: Address; })} param0....options
301
- */
302
- constructor({ config: e, account: f, ...a }) {
303
- Jf(a) && a.address ? super({ account: f, config: e }, a.address) : Kf(a) ? super({ account: f, config: e }, [
304
- a.registryAddress,
305
- a.protocolFeeReceiver
306
- ]) : super({ account: f, config: e }, Qf), this.abi = P;
307
- }
308
- /**
309
- * Create a new Boost.
310
- *
311
- * @public
312
- * @async
313
- * @param {CreateBoostPayload} _boostPayload
314
- * @param {?DeployableOptions} [_options]
315
- * @returns {Boost}
316
- */
317
- async createBoost(e, f) {
318
- var L;
319
- const a = this.assertValidAddress(), [c, t] = this.validateDeploymentConfig(
320
- e,
321
- f
322
- );
323
- let {
324
- budget: s,
325
- action: d,
326
- validator: r,
327
- allowList: n,
328
- incentives: u,
329
- protocolFee: g = 0n,
330
- referralFee: A = 0n,
331
- maxParticipants: F = 0n,
332
- owner: m
333
- } = c;
334
- const R = Hf({
335
- abi: P,
336
- functionName: "createBoost",
337
- address: this.address
338
- });
339
- if (!m && (m = ((L = this._account) == null ? void 0 : L.address) || sf(t.config).address || w, m === w))
340
- throw new Ef();
341
- let V = w;
342
- if (s.address) {
343
- if (V = s.address, !await s.isAuthorized(a))
344
- throw new Df(a);
345
- } else
346
- throw new Vf();
347
- let y = {
348
- instance: w,
349
- isBase: !0,
350
- parameters: o
351
- };
352
- if (d.address) {
353
- const i = d.address === d.base || d.isBase;
354
- y = {
355
- isBase: i,
356
- instance: d.address,
357
- parameters: i ? d.buildParameters(void 0, t).args.at(0) || o : o
358
- };
359
- } else
360
- y.parameters = d.buildParameters(void 0, t).args.at(0) || o, y.instance = d.base;
361
- let C = {
362
- instance: w,
363
- isBase: !0,
364
- parameters: o
365
- };
366
- if (r.address) {
367
- const i = r.address === r.base || r.isBase;
368
- C = {
369
- isBase: i,
370
- instance: r.address,
371
- parameters: i ? r.buildParameters(
372
- {
373
- signers: [m],
374
- validatorCaller: a
375
- },
376
- t
377
- ).args.at(0) || o : o
378
- };
379
- } else
380
- C.parameters = r.buildParameters(
381
- {
382
- signers: [m],
383
- validatorCaller: a
384
- },
385
- t
386
- ).args.at(0) || o, C.instance = r.base;
387
- let v = {
388
- instance: w,
389
- isBase: !0,
390
- parameters: o
391
- };
392
- if (n.address) {
393
- const i = n.address === n.base || n.isBase;
394
- v = {
395
- isBase: i,
396
- instance: n.address,
397
- parameters: i ? o : o
398
- };
399
- } else
400
- v.parameters = n.buildParameters(void 0, t).args.at(0) || o, v.instance = n.base;
401
- let _ = u.map(() => ({
402
- instance: w,
403
- isBase: !0,
404
- parameters: o
405
- }));
406
- for (let i = 0; i < u.length; i++) {
407
- const l = u.at(i);
408
- if (l.address) {
409
- const D = l.address === l.base || l.isBase;
410
- if (!D)
411
- throw new Lf(l);
412
- _[i] = {
413
- isBase: D,
414
- instance: l.address,
415
- parameters: D ? l.buildParameters(void 0, t).args.at(0) || o : o
416
- };
417
- } else
418
- _[i].parameters = l.buildParameters(void 0, t).args.at(0) || o, _[i].instance = l.base;
419
- }
420
- const q = {
421
- budget: V,
422
- action: y,
423
- validator: C,
424
- allowList: v,
425
- incentives: _,
426
- protocolFee: g,
427
- referralFee: A,
428
- maxParticipants: F,
429
- owner: m
430
- }, z = await R(t.config, {
431
- args: [xf(q)],
432
- ...this.optionallyAttachAccount(t.account)
433
- }), T = await nf(t.config, {
434
- hash: z
435
- }), I = of({
436
- abi: P,
437
- eventName: "BoostCreated",
438
- logs: T.logs
439
- }).at(0);
440
- let E = 0n;
441
- if (!I)
442
- throw new $f();
443
- E = I == null ? void 0 : I.args.boostIndex;
444
- const h = await this.readBoost(E);
445
- return new $({
446
- id: E,
447
- budget: s.at(h.budget),
448
- action: d.at(h.action),
449
- validator: r.at(h.validator),
450
- allowList: n.at(h.allowList),
451
- incentives: u.map(
452
- (i, l) => i.at(h.incentives.at(l))
453
- ),
454
- protocolFee: h.protocolFee,
455
- referralFee: h.referralFee,
456
- maxParticipants: h.maxParticipants,
457
- owner: h.owner
458
- });
459
- }
460
- /**
461
- * Claims one incentive from a given `Boost` by `boostId` and `incentiveId`
462
- *
463
- * @public
464
- * @async
465
- * @param {bigint} boostId
466
- * @param {bigint} incentiveId
467
- * @param {Address} address
468
- * @param {Hex} data
469
- * @param {?WriteParams<typeof boostCoreAbi, 'claimIncentive'>} [params]
470
- * @returns {unknown}
471
- */
472
- async claimIncentive(e, f, a, c, t) {
473
- return this.awaitResult(
474
- this.claimIncentiveRaw(e, f, a, c, t)
475
- );
476
- }
477
- /**
478
- * Claim an incentive for a Boost
479
- *
480
- * @public
481
- * @async
482
- * @param {bigint} boostId - The ID of the Boost
483
- * @param {bigint} incentiveId - The ID of the Incentive
484
- * @param {Address} address - The address of the referrer (if any)
485
- * @param {Hex} data- The data for the claim
486
- * @param {?WriteParams<typeof boostCoreAbi, 'claimIncentive'>} [params]
487
- * @returns {unknown}
488
- */
489
- async claimIncentiveRaw(e, f, a, c, t) {
490
- const { request: s, result: d } = await k(
491
- this._config,
492
- {
493
- address: this.assertValidAddress(),
494
- args: [e, f, a, c],
495
- ...this.optionallyAttachAccount(),
496
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
497
- ...t
498
- }
499
- );
500
- return { hash: await G(this._config, s), result: d };
501
- }
502
- /**
503
- * Claims one incentive for a given `Boost` on behalf of another user by `boostId` and `incentiveId`
504
- *
505
- * @public
506
- * @async
507
- * @param {bigint} boostId
508
- * @param {bigint} incentiveId
509
- * @param {Address} referrer
510
- * @param {Hex} data
511
- * @param {Address} claimant
512
- * @param {?WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>} [params]
513
- * @returns {unknown}
514
- */
515
- async claimIncentiveFor(e, f, a, c, t, s) {
516
- return this.awaitResult(
517
- this.claimIncentiveForRaw(
518
- e,
519
- f,
520
- a,
521
- c,
522
- t,
523
- s
524
- )
525
- );
526
- }
527
- /**
528
- * Claim an incentive for a Boost on behalf of another user
529
- *
530
- * @public
531
- * @async
532
- * @param {bigint} boostId - The ID of the Boost
533
- * @param {bigint} incentiveId - The ID of the Incentive
534
- * @param {Address} referrer - The address of the referrer (if any)
535
- * @param {Hex} data - The data for the claim
536
- * @param {Address} claimant - The address of the user eligible for the incentive payout
537
- * @param {?WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>} [params]
538
- * @returns {unknown}
539
- */
540
- async claimIncentiveForRaw(e, f, a, c, t, s) {
541
- const { request: d, result: r } = await U(
542
- this._config,
543
- {
544
- address: this.assertValidAddress(),
545
- args: [e, f, a, c, t],
546
- ...this.optionallyAttachAccount(),
547
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
548
- ...s
549
- }
550
- );
551
- return { hash: await W(this._config, d), result: r };
552
- }
553
- /**
554
- * Get a Boost by index, will return the raw on chain representation of a Boost.
555
- *
556
- * @public
557
- * @async
558
- * @param {bigint} id
559
- * @param {?ReadParams<typeof boostCoreAbi, 'getBoost'>} [params]
560
- * @returns {unknown}
561
- */
562
- async readBoost(e, f) {
563
- return H(this._config, {
564
- address: this.assertValidAddress(),
565
- args: [e],
566
- ...this.optionallyAttachAccount(),
567
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
568
- ...f
569
- });
570
- }
571
- /**
572
- * Get a Boost by index, will return a new {@link Boost} with correct target implementations instantiated, ie `(await core.getBoost(0n)).allowList instanceof SimpleAllowList` vs `SimpleDenyList`
573
- *
574
- * @public
575
- * @async
576
- * @param {(string | bigint)} _id
577
- * @param {?ReadParams<typeof boostCoreAbi, 'getBoost'>} [params]
578
- * @returns {unknown}
579
- */
580
- async getBoost(e, f) {
581
- let a;
582
- typeof e == "string" ? a = BigInt(e) : a = e;
583
- const {
584
- protocolFee: c,
585
- referralFee: t,
586
- maxParticipants: s,
587
- owner: d,
588
- ...r
589
- } = await this.readBoost(a, f), n = {
590
- config: this._config,
591
- account: this._account
592
- }, [u, g, A, F, m] = await Promise.all([
593
- uf(n, r.action),
594
- pf(n, r.budget),
595
- Rf(n, r.validator),
596
- hf(n, r.allowList),
597
- Promise.all(
598
- r.incentives.map(
599
- (R) => If(n, R)
600
- )
601
- )
602
- ]);
603
- return new $({
604
- id: a,
605
- action: u,
606
- budget: g,
607
- validator: A,
608
- allowList: F,
609
- incentives: m,
610
- protocolFee: c,
611
- referralFee: t,
612
- maxParticipants: s,
613
- owner: d
614
- });
615
- }
616
- /**
617
- * Retrieve the total number of deployed Boosts
618
- *
619
- * @public
620
- * @async
621
- * @param {?ReadParams<typeof boostCoreAbi, 'getBoostCount'>} [params]
622
- * @returns {Promise<bigint>}
623
- */
624
- async getBoostCount(e) {
625
- return Q(this._config, {
626
- address: this.assertValidAddress(),
627
- args: [],
628
- ...this.optionallyAttachAccount(),
629
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
630
- ...e
631
- });
632
- }
633
- /**
634
- * Checks if an address is authorized
635
- *
636
- * @public
637
- * @async
638
- * @param {Address} address
639
- * @param {?ReadParams<typeof boostCoreAbi, 'createBoostAuth'> &
640
- * ReadParams<typeof iAuthAbi, 'isAuthorized'>} [params]
641
- * @returns {Promise<boolean>}
642
- */
643
- async isAuthorized(e, f) {
644
- const a = await this.createBoostAuth();
645
- return J(this._config, {
646
- address: a,
647
- args: [e],
648
- ...this.optionallyAttachAccount(),
649
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
650
- ...f
651
- });
652
- }
653
- /**
654
- * Retrieve the address of the current creation auth provider.
655
- *
656
- * @public
657
- * @async
658
- * @param {?ReadParams<typeof boostCoreAbi, 'createBoostAuth'>} [params]
659
- * @returns {unknown}
660
- */
661
- async createBoostAuth(e) {
662
- return K(this._config, {
663
- address: this.assertValidAddress(),
664
- args: [],
665
- ...this.optionallyAttachAccount(),
666
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
667
- ...e
668
- });
669
- }
670
- /**
671
- * Replace the current auth scheme.
672
- *
673
- * @public
674
- * @async
675
- * @param {Auth} auth
676
- * @param {?WriteParams<typeof boostCoreAbi, 'setCreateBoostAuth'>} [params]
677
- * @returns {unknown}
678
- */
679
- async setCreateBoostAuth(e, f) {
680
- return this.awaitResult(
681
- this.setCreateBoostAuthRaw(e.assertValidAddress(), {
682
- ...f
683
- })
684
- );
685
- }
686
- /**
687
- * Set the createBoostAuth address
688
- *
689
- * @public
690
- * @async
691
- * @param {Address} address
692
- * @param {?WriteParams<typeof boostCoreAbi, 'setCreateBoostAuth'>} [params]
693
- * @returns {unknown}
694
- */
695
- async setCreateBoostAuthRaw(e, f) {
696
- const { request: a, result: c } = await X(
697
- this._config,
698
- {
699
- address: this.assertValidAddress(),
700
- args: [e],
701
- ...this.optionallyAttachAccount(),
702
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
703
- ...f
704
- }
705
- );
706
- return { hash: await Y(this._config, a), result: c };
707
- }
708
- /**
709
- * Get the protocol fee.
710
- *
711
- * @public
712
- * @async
713
- * @param {?ReadParams<typeof boostCoreAbi, 'protocolFee'>} [params]
714
- * @returns {unknown}
715
- */
716
- async protocolFee(e) {
717
- return Z(this._config, {
718
- address: this.assertValidAddress(),
719
- args: [],
720
- ...this.optionallyAttachAccount(),
721
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
722
- ...e
723
- });
724
- }
725
- /**
726
- * Get the protocol fee receiver.
727
- *
728
- * @public
729
- * @async
730
- * @param {?ReadParams<typeof boostCoreAbi, 'protocolFeeReceiver'>} [params]
731
- * @returns {unknown}
732
- */
733
- async protocolFeeReceiver(e) {
734
- return ff(this._config, {
735
- address: this.assertValidAddress(),
736
- args: [],
737
- ...this.optionallyAttachAccount(),
738
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
739
- ...e
740
- });
741
- }
742
- /**
743
- * Set the protocol fee receiver address. This function is only callable by the owner.
744
- *
745
- * @public
746
- * @async
747
- * @param {Address} address
748
- * @param {?WriteParams<typeof boostCoreAbi, 'setProtocolFeeReceiver'>} [params]
749
- * @returns {unknown}
750
- */
751
- async setProcolFeeReceiver(e, f) {
752
- return this.awaitResult(
753
- this.setProcolFeeReceiverRaw(e, {
754
- ...f
755
- })
756
- );
757
- }
758
- /**
759
- * Set the protocol fee receiver address. This function is only callable by the owner.
760
- *
761
- * @public
762
- * @async
763
- * @param {Address} address
764
- * @param {?WriteParams<typeof boostCoreAbi, 'setProtocolFeeReceiver'>} [params]
765
- * @returns {unknown}
766
- */
767
- async setProcolFeeReceiverRaw(e, f) {
768
- const { request: a, result: c } = await ef(
769
- this._config,
770
- {
771
- address: this.assertValidAddress(),
772
- args: [e],
773
- ...this.optionallyAttachAccount(),
774
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
775
- ...f
776
- }
777
- );
778
- return { hash: await af(
779
- this._config,
780
- a
781
- ), result: c };
782
- }
783
- /**
784
- * Get the claim fee.
785
- *
786
- * @public
787
- * @async
788
- * @param {?ReadParams<typeof boostCoreAbi, 'claimFee'>} [params]
789
- * @returns {unknown}
790
- */
791
- async claimFee(e) {
792
- return bf(this._config, {
793
- address: this.assertValidAddress(),
794
- args: [],
795
- ...this.optionallyAttachAccount(),
796
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
797
- ...e
798
- });
799
- }
800
- /**
801
- * Sets the claim fee.
802
- *
803
- * @public
804
- * @async
805
- * @param {bigint} claimFee
806
- * @param {?WriteParams<typeof boostCoreAbi, 'setClaimFee'>} [params]
807
- * @returns {unknown}
808
- */
809
- async setClaimFee(e, f) {
810
- return this.awaitResult(this.setClaimFeeRaw(e, f));
811
- }
812
- /**
813
- * Sets the claim fee.
814
- *
815
- * @public
816
- * @async
817
- * @param {bigint} claimFee
818
- * @param {?WriteParams<typeof boostCoreAbi, 'setClaimFee'>} [params]
819
- * @returns {unknown}
820
- */
821
- async setClaimFeeRaw(e, f) {
822
- const { request: a, result: c } = await tf(
823
- this._config,
824
- {
825
- address: this.assertValidAddress(),
826
- args: [e],
827
- ...this.optionallyAttachAccount(),
828
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
829
- ...f
830
- }
831
- );
832
- return { hash: await cf(this._config, a), result: c };
833
- }
834
- /**
835
- * Bound {@link PassthroughAuth} constructor that reuses the same configuration as the Boost Core instance.
836
- *
837
- * @example
838
- * ```ts
839
- * const auth = core.PassthroughAuth('0x') // is roughly equivalent to
840
- * const auth = new PassthroughAuth({ config: core._config, account: core._account }, '0x')
841
- * ```
842
- * @param {DeployablePayloadOrAddress<{}>} options
843
- * @param {?boolean} [isBase]
844
- * @returns {PassthroughAuth}
845
- */
846
- PassthroughAuth(e) {
847
- return new wf(
848
- { config: this._config, account: this._account },
849
- e
850
- );
851
- }
852
- // /**
853
- // * Bound {@link ContractAction} constructor that reuses the same configuration as the Boost Core instance.
854
- // *
855
- // * @example
856
- // * ```ts
857
- // * const action = core.ContractAction('0x') // is roughly equivalent to
858
- // * const action = new ContractAction({ config: core._config, account: core._account }, '0x')
859
- // * ```
860
- // * @param {DeployablePayloadOrAddress<ContractActionPayload>} options
861
- // * @param {?boolean} [isBase]
862
- // * @returns {ContractAction}
863
- // */
864
- // ContractAction(
865
- // options: DeployablePayloadOrAddress<ContractActionPayload>,
866
- // isBase?: boolean,
867
- // ) {
868
- // return new ContractAction(
869
- // { config: this._config, account: this._account },
870
- // options,
871
- // isBase,
872
- // );
873
- // }
874
- /**
875
- * Bound {@link EventAction} constructor that reuses the same configuration as the Boost Core instance.
876
- *
877
- * @example
878
- * ```ts
879
- * const action = core.EventAction('0x') // is roughly equivalent to
880
- * const action = new EventAction({ config: core._config, account: core._account }, '0x')
881
- */
882
- EventAction(e, f) {
883
- return new lf(
884
- { config: this._config, account: this._account },
885
- e,
886
- f
887
- );
888
- }
889
- // /**
890
- // * Bound {@link ERC721MintAction} constructor that reuses the same configuration as the Boost Core instance.
891
- // *
892
- // * @example
893
- // * ```ts
894
- // * const action = core.ERC721MintAction('0x') // is roughly equivalent to
895
- // * const action = new ERC721MintAction({ config: core._config, account: core._account }, '0x')
896
- // * ```
897
- // * @param {DeployablePayloadOrAddress<ERC721MintActionPayload>} options
898
- // * @param {?boolean} [isBase]
899
- // * @returns {ERC721MintAction}
900
- // */
901
- // ERC721MintAction(
902
- // options: DeployablePayloadOrAddress<ERC721MintActionPayload>,
903
- // isBase?: boolean,
904
- // ) {
905
- // return new ERC721MintAction(
906
- // { config: this._config, account: this._account },
907
- // options,
908
- // isBase,
909
- // );
910
- // }
911
- /**
912
- * Bound {@link SimpleAllowList} constructor that reuses the same configuration as the Boost Core instance.
913
- *
914
- * @example
915
- * ```ts
916
- * const list = core.SimpleAllowList('0x') // is roughly equivalent to
917
- * const list = new SimpleAllowList({ config: core._config, account: core._account }, '0x')
918
- * ```
919
- * @param {DeployablePayloadOrAddress<SimpleAllowListPayload>} options
920
- * @param {?boolean} [isBase]
921
- * @returns {SimpleAllowList}
922
- */
923
- SimpleAllowList(e, f) {
924
- return new mf(
925
- { config: this._config, account: this._account },
926
- e,
927
- f
928
- );
929
- }
930
- /**
931
- * Bound {@link SimpleDenyList} constructor that reuses the same configuration as the Boost Core instance.
932
- *
933
- * @example
934
- * ```ts
935
- * const list = core.SimpleDenyList('0x') // is roughly equivalent to
936
- * const list = new SimpleDenyList({ config: core._config, account: core._account }, '0x')
937
- * ```
938
- * @param {DeployablePayloadOrAddress<SimpleDenyListPayload>} options
939
- * @param {?boolean} [isBase]
940
- * @returns {SimpleDenyList}
941
- */
942
- SimpleDenyList(e, f) {
943
- return new gf(
944
- { config: this._config, account: this._account },
945
- e,
946
- f
947
- );
948
- }
949
- // /**
950
- // * Bound {@link SimpleBudget} constructor that reuses the same configuration as the Boost Core instance.
951
- // *
952
- // * @example
953
- // * ```ts
954
- // * const budget = core.SimpleBudget('0x') // is roughly equivalent to
955
- // * const budget = new SimpleBudget({ config: core._config, account: core._account }, '0x')
956
- // * ```
957
- // * @param {DeployablePayloadOrAddress<SimpleBudgetPayload>} options
958
- // * @returns {SimpleBudget}
959
- // */
960
- // SimpleBudget(options: DeployablePayloadOrAddress<SimpleBudgetPayload>) {
961
- // return new SimpleBudget(
962
- // { config: this._config, account: this._account },
963
- // options,
964
- // );
965
- // }
966
- /**
967
- * Bound {@link ManagedBudget} constructor that reuses the same configuration as the Boost Core instance.
968
- *
969
- * @example
970
- * ```ts
971
- * const budget = core.ManagedBudget('0x') // is roughly equivalent to
972
- * const budget = new ManagedBudget({ config: core._config, account: core._account }, '0x')
973
- * ```
974
- * @param {DeployablePayloadOrAddress<ManagedBudgetPayload>} options
975
- * @returns {ManagedBudget}
976
- */
977
- ManagedBudget(e) {
978
- return new Af(
979
- { config: this._config, account: this._account },
980
- e
981
- );
982
- }
983
- // /**
984
- // * Bound {@link VestingBudget} constructor that reuses the same configuration as the Boost Core instance.
985
- // *
986
- // * @example
987
- // * ```ts
988
- // * const budget = core.VestingBudget('0x') // is roughly equivalent to
989
- // * const budget = new VestingBudget({ config: core._config, account: core._account }, '0x')
990
- // * ```
991
- // * @param {DeployablePayloadOrAddress<VestingBudgetPayload>} options
992
- // * @returns {VestingBudget}
993
- // */
994
- // VestingBudget(options: DeployablePayloadOrAddress<VestingBudgetPayload>) {
995
- // return new VestingBudget(
996
- // { config: this._config, account: this._account },
997
- // options,
998
- // );
999
- // }
1000
- /**
1001
- * Bound {@link AllowListIncentive} constructor that reuses the same configuration as the Boost Core instance.
1002
- *
1003
- * @example
1004
- * ```ts
1005
- * const incentive = core.AllowListIncentive({ ... }) // is roughly equivalent to
1006
- * const incentive = new AllowListIncentive({ config: core._config, account: core._account }, { ... })
1007
- * ```
1008
- * @param {DeployablePayloadOrAddress<VestingBudgetPayload>} options
1009
- * @returns {VestingBudget}
1010
- */
1011
- AllowListIncentive(e) {
1012
- return new Cf(
1013
- { config: this._config, account: this._account },
1014
- e
1015
- );
1016
- }
1017
- /**
1018
- * Bound {@link CGDAIncentive} constructor that reuses the same configuration as the Boost Core instance.
1019
- *
1020
- * @example
1021
- * ```ts
1022
- * const incentive = core.CGDAIncentive({ ... }) // is roughly equivalent to
1023
- * const incentive = new CGDAIncentive({ config: core._config, account: core._account }, { ... })
1024
- * ```
1025
- * @param {CGDAIncentivePayload} options
1026
- * @returns {CGDAIncentive}
1027
- */
1028
- CGDAIncentive(e) {
1029
- return new vf(
1030
- { config: this._config, account: this._account },
1031
- e
1032
- );
1033
- }
1034
- /**
1035
- * Bound {@link ERC20Incentive} constructor that reuses the same configuration as the Boost Core instance.
1036
- *
1037
- * @example
1038
- * ```ts
1039
- * const incentive = core.ERC20Incentive({ ... }) // is roughly equivalent to
1040
- * const incentive = new ERC20Incentive({ config: core._config, account: core._account }, { ... })
1041
- * ```
1042
- * @param {ERC20IncentivePayload} options
1043
- * @returns {ERC20Incentive}
1044
- */
1045
- ERC20Incentive(e) {
1046
- return new _f(
1047
- { config: this._config, account: this._account },
1048
- e
1049
- );
1050
- }
1051
- // /**
1052
- // * Temporarily disabled until low level ABI encoding bugs are resolved
1053
- // * Bound {@link ERC1155Incentive} constructor that reuses the same configuration as the Boost Core instance.
1054
- // *
1055
- // * @experimental
1056
- // * @example
1057
- // * ```ts
1058
- // * const incentive = core.ERC1155Incentive({ ... }) // is roughly equivalent to
1059
- // * const incentive = new ERC1155Incentive({ config: core._config, account: core._account }, { ... })
1060
- // * ```
1061
- // * @param {ERC1155IncentivePayload} options
1062
- // * @returns {ERC1155Incentive}
1063
- // */
1064
- // ERC1155Incentive(options: ERC1155IncentivePayload) {
1065
- // return new ERC1155Incentive(
1066
- // { config: this._config, account: this._account },
1067
- // options,
1068
- // );
1069
- // }
1070
- /**
1071
- * Bound {@link PointsIncentive} constructor that reuses the same configuration as the Boost Core instance.
1072
- *
1073
- * @example
1074
- * ```ts
1075
- * const incentive = core.PointsIncentive({ ... }) // is roughly equivalent to
1076
- * const incentive = new PointsIncentive({ config: core._config, account: core._account }, { ... })
1077
- * ```
1078
- * @param {PointsIncentivePayload} options
1079
- * @returns {PointsIncentive}
1080
- */
1081
- PointsIncentive(e) {
1082
- return new Bf(
1083
- { config: this._config, account: this._account },
1084
- e
1085
- );
1086
- }
1087
- /**
1088
- * Bound {@link SignerValidator} constructor that reuses the same configuration as the Boost Core instance.
1089
- *
1090
- * @example
1091
- * ```ts
1092
- * const validator = core.SignerValidator({ ... }) // is roughly equivalent to
1093
- * const validator = new SignerValidator({ config: core._config, account: core._account }, { ... })
1094
- * ```
1095
- * @param {DeployablePayloadOrAddress<SignerValidatorPayload>} options
1096
- * @param {?boolean} [isBase]
1097
- * @returns {SignerValidator}
1098
- */
1099
- SignerValidator(e, f) {
1100
- return new Ff(
1101
- { config: this._config, account: this._account },
1102
- e,
1103
- f
1104
- );
1105
- }
1106
- /**
1107
- * Bound {@link ERC20VariableIncentive} constructor that reuses the same configuration as the Boost Core instance.
1108
- *
1109
- * @example
1110
- * ```ts
1111
- * const validator = core.ERC20VariableIncentive({ ... }) // is roughly equivalent to
1112
- * const validator = new ERC20VariableIncentive({ config: core._config, account: core._account }, { ... })
1113
- * ```
1114
- * @param {DeployablePayloadOrAddress<ERC20VariableIncentivePayload>} options
1115
- * @param {?boolean} [isBase]
1116
- * @returns {ERC20VariableIncentive}
1117
- */
1118
- ERC20VariableIncentive(e, f) {
1119
- return new Pf(
1120
- { config: this._config, account: this._account },
1121
- e,
1122
- f
1123
- );
1124
- }
1125
- /**
1126
- * @inheritdoc
1127
- *
1128
- * @public
1129
- * @param {?[Address, Address]} [_payload]
1130
- * @param {?DeployableOptions} [_options]
1131
- * @returns {GenericDeployableParams}
1132
- */
1133
- buildParameters(e, f) {
1134
- const [a, c] = this.validateDeploymentConfig(
1135
- e,
1136
- f
1137
- );
1138
- return {
1139
- abi: P,
1140
- bytecode: Of,
1141
- args: a,
1142
- ...this.optionallyAttachAccount(c.account)
1143
- };
1144
- }
1145
- }
1
+ import { T as I } from "./generated-CKt2yCQd.js";
2
+ import { a as M, b as d, B as g, c as h } from "./BoostCore-BVZExPPu.js";
3
+ import "@wagmi/core";
4
+ import "viem";
5
+ import "./deployments-oykLv3_Z.js";
6
+ import "./Actions/Action.js";
7
+ import "./EventAction-C_-hJXWm.js";
8
+ import "./AllowLists/AllowList.js";
9
+ import "./AllowLists/SimpleAllowList.js";
10
+ import "./SimpleDenyList-CGaWjuld.js";
11
+ import "./Auth/PassthroughAuth.js";
12
+ import "./Boost.js";
13
+ import "./Budgets/Budget.js";
14
+ import "./Budgets/ManagedBudget.js";
15
+ import "./Deployable/Deployable.js";
16
+ import "./Incentives/AllowListIncentive.js";
17
+ import "./Incentives/CGDAIncentive.js";
18
+ import "./Incentives/ERC20Incentive.js";
19
+ import "./Incentive-Cqg1w6wD.js";
20
+ import "./Incentives/PointsIncentive.js";
21
+ import "./Validators/SignerValidator.js";
22
+ import "./Validators/Validator.js";
23
+ import "./errors.js";
24
+ import "./utils.js";
1146
25
  export {
1147
- Qf as BOOST_CORE_ADDRESS,
1148
- C0 as BoostCore,
1149
- P as boostCoreAbi
26
+ M as BOOST_CORE_ADDRESS,
27
+ d as BOOST_CORE_ADDRESSES,
28
+ g as BOOST_CORE_CLAIM_FEE,
29
+ h as BoostCore,
30
+ I as boostCoreAbi
1150
31
  };
1151
32
  //# sourceMappingURL=BoostCore.js.map