@boostxyz/sdk 0.0.0-alpha.10

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 (242) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +7 -0
  3. package/dist/Actions/Action.cjs +2 -0
  4. package/dist/Actions/Action.cjs.map +1 -0
  5. package/dist/Actions/Action.d.ts +31 -0
  6. package/dist/Actions/Action.d.ts.map +1 -0
  7. package/dist/Actions/Action.js +29 -0
  8. package/dist/Actions/Action.js.map +1 -0
  9. package/dist/Actions/ContractAction.d.ts +370 -0
  10. package/dist/Actions/ContractAction.d.ts.map +1 -0
  11. package/dist/Actions/ERC721MintAction.d.ts +513 -0
  12. package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
  13. package/dist/Actions/EventAction.cjs +2 -0
  14. package/dist/Actions/EventAction.cjs.map +1 -0
  15. package/dist/Actions/EventAction.d.ts +694 -0
  16. package/dist/Actions/EventAction.d.ts.map +1 -0
  17. package/dist/Actions/EventAction.js +491 -0
  18. package/dist/Actions/EventAction.js.map +1 -0
  19. package/dist/AllowLists/AllowList.cjs +2 -0
  20. package/dist/AllowLists/AllowList.cjs.map +1 -0
  21. package/dist/AllowLists/AllowList.d.ts +32 -0
  22. package/dist/AllowLists/AllowList.d.ts.map +1 -0
  23. package/dist/AllowLists/AllowList.js +30 -0
  24. package/dist/AllowLists/AllowList.js.map +1 -0
  25. package/dist/AllowLists/SimpleAllowList.cjs +2 -0
  26. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -0
  27. package/dist/AllowLists/SimpleAllowList.d.ts +481 -0
  28. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
  29. package/dist/AllowLists/SimpleAllowList.js +154 -0
  30. package/dist/AllowLists/SimpleAllowList.js.map +1 -0
  31. package/dist/AllowLists/SimpleDenyList.cjs +2 -0
  32. package/dist/AllowLists/SimpleDenyList.cjs.map +1 -0
  33. package/dist/AllowLists/SimpleDenyList.d.ts +335 -0
  34. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
  35. package/dist/AllowLists/SimpleDenyList.js +115 -0
  36. package/dist/AllowLists/SimpleDenyList.js.map +1 -0
  37. package/dist/Auth/Auth.cjs +2 -0
  38. package/dist/Auth/Auth.cjs.map +1 -0
  39. package/dist/Auth/Auth.d.ts +10 -0
  40. package/dist/Auth/Auth.d.ts.map +1 -0
  41. package/dist/Auth/Auth.js +5 -0
  42. package/dist/Auth/Auth.js.map +1 -0
  43. package/dist/Auth/PassthroughAuth.cjs +2 -0
  44. package/dist/Auth/PassthroughAuth.cjs.map +1 -0
  45. package/dist/Auth/PassthroughAuth.d.ts +51 -0
  46. package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
  47. package/dist/Auth/PassthroughAuth.js +39 -0
  48. package/dist/Auth/PassthroughAuth.js.map +1 -0
  49. package/dist/Boost.cjs +2 -0
  50. package/dist/Boost.cjs.map +1 -0
  51. package/dist/Boost.d.ts +234 -0
  52. package/dist/Boost.d.ts.map +1 -0
  53. package/dist/Boost.js +162 -0
  54. package/dist/Boost.js.map +1 -0
  55. package/dist/BoostCore.cjs +3 -0
  56. package/dist/BoostCore.cjs.map +1 -0
  57. package/dist/BoostCore.d.ts +498 -0
  58. package/dist/BoostCore.d.ts.map +1 -0
  59. package/dist/BoostCore.js +1153 -0
  60. package/dist/BoostCore.js.map +1 -0
  61. package/dist/BoostRegistry.cjs +2 -0
  62. package/dist/BoostRegistry.cjs.map +1 -0
  63. package/dist/BoostRegistry.d.ts +243 -0
  64. package/dist/BoostRegistry.d.ts.map +1 -0
  65. package/dist/BoostRegistry.js +262 -0
  66. package/dist/BoostRegistry.js.map +1 -0
  67. package/dist/Budgets/Budget.cjs +2 -0
  68. package/dist/Budgets/Budget.cjs.map +1 -0
  69. package/dist/Budgets/Budget.d.ts +31 -0
  70. package/dist/Budgets/Budget.d.ts.map +1 -0
  71. package/dist/Budgets/Budget.js +29 -0
  72. package/dist/Budgets/Budget.js.map +1 -0
  73. package/dist/Budgets/ManagedBudget.cjs +2 -0
  74. package/dist/Budgets/ManagedBudget.cjs.map +1 -0
  75. package/dist/Budgets/ManagedBudget.d.ts +1103 -0
  76. package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
  77. package/dist/Budgets/ManagedBudget.js +516 -0
  78. package/dist/Budgets/ManagedBudget.js.map +1 -0
  79. package/dist/Budgets/SimpleBudget.d.ts +824 -0
  80. package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
  81. package/dist/Budgets/VestingBudget.d.ts +778 -0
  82. package/dist/Budgets/VestingBudget.d.ts.map +1 -0
  83. package/dist/Deployable/Contract.cjs +2 -0
  84. package/dist/Deployable/Contract.cjs.map +1 -0
  85. package/dist/Deployable/Contract.d.ts +125 -0
  86. package/dist/Deployable/Contract.d.ts.map +1 -0
  87. package/dist/Deployable/Contract.js +150 -0
  88. package/dist/Deployable/Contract.js.map +1 -0
  89. package/dist/Deployable/Deployable.cjs +2 -0
  90. package/dist/Deployable/Deployable.cjs.map +1 -0
  91. package/dist/Deployable/Deployable.d.ts +161 -0
  92. package/dist/Deployable/Deployable.d.ts.map +1 -0
  93. package/dist/Deployable/Deployable.js +131 -0
  94. package/dist/Deployable/Deployable.js.map +1 -0
  95. package/dist/Deployable/DeployableTarget.cjs +2 -0
  96. package/dist/Deployable/DeployableTarget.cjs.map +1 -0
  97. package/dist/Deployable/DeployableTarget.d.ts +116 -0
  98. package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
  99. package/dist/Deployable/DeployableTarget.js +132 -0
  100. package/dist/Deployable/DeployableTarget.js.map +1 -0
  101. package/dist/Incentives/AllowListIncentive.cjs +2 -0
  102. package/dist/Incentives/AllowListIncentive.cjs.map +1 -0
  103. package/dist/Incentives/AllowListIncentive.d.ts +513 -0
  104. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
  105. package/dist/Incentives/AllowListIncentive.js +201 -0
  106. package/dist/Incentives/AllowListIncentive.js.map +1 -0
  107. package/dist/Incentives/CGDAIncentive.cjs +2 -0
  108. package/dist/Incentives/CGDAIncentive.cjs.map +1 -0
  109. package/dist/Incentives/CGDAIncentive.d.ts +644 -0
  110. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
  111. package/dist/Incentives/CGDAIncentive.js +271 -0
  112. package/dist/Incentives/CGDAIncentive.js.map +1 -0
  113. package/dist/Incentives/ERC1155Incentive.d.ts +713 -0
  114. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
  115. package/dist/Incentives/ERC20Incentive.cjs +2 -0
  116. package/dist/Incentives/ERC20Incentive.cjs.map +1 -0
  117. package/dist/Incentives/ERC20Incentive.d.ts +666 -0
  118. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
  119. package/dist/Incentives/ERC20Incentive.js +312 -0
  120. package/dist/Incentives/ERC20Incentive.js.map +1 -0
  121. package/dist/Incentives/ERC20VariableIncentive.d.ts +582 -0
  122. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
  123. package/dist/Incentives/Incentive.cjs +2 -0
  124. package/dist/Incentives/Incentive.cjs.map +1 -0
  125. package/dist/Incentives/Incentive.d.ts +36 -0
  126. package/dist/Incentives/Incentive.d.ts.map +1 -0
  127. package/dist/Incentives/Incentive.js +299 -0
  128. package/dist/Incentives/Incentive.js.map +1 -0
  129. package/dist/Incentives/PointsIncentive.cjs +2 -0
  130. package/dist/Incentives/PointsIncentive.cjs.map +1 -0
  131. package/dist/Incentives/PointsIncentive.d.ts +659 -0
  132. package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
  133. package/dist/Incentives/PointsIncentive.js +215 -0
  134. package/dist/Incentives/PointsIncentive.js.map +1 -0
  135. package/dist/Validators/SignerValidator.cjs +2 -0
  136. package/dist/Validators/SignerValidator.cjs.map +1 -0
  137. package/dist/Validators/SignerValidator.d.ts +745 -0
  138. package/dist/Validators/SignerValidator.d.ts.map +1 -0
  139. package/dist/Validators/SignerValidator.js +293 -0
  140. package/dist/Validators/SignerValidator.js.map +1 -0
  141. package/dist/Validators/Validator.cjs +2 -0
  142. package/dist/Validators/Validator.cjs.map +1 -0
  143. package/dist/Validators/Validator.d.ts +31 -0
  144. package/dist/Validators/Validator.d.ts.map +1 -0
  145. package/dist/Validators/Validator.js +27 -0
  146. package/dist/Validators/Validator.js.map +1 -0
  147. package/dist/claiming.cjs +2 -0
  148. package/dist/claiming.cjs.map +1 -0
  149. package/dist/claiming.d.ts +43 -0
  150. package/dist/claiming.d.ts.map +1 -0
  151. package/dist/claiming.js +17 -0
  152. package/dist/claiming.js.map +1 -0
  153. package/dist/componentInterfaces-CKCBwG16.cjs +2 -0
  154. package/dist/componentInterfaces-CKCBwG16.cjs.map +1 -0
  155. package/dist/componentInterfaces-DYkaxBda.js +13 -0
  156. package/dist/componentInterfaces-DYkaxBda.js.map +1 -0
  157. package/dist/errors.cjs +2 -0
  158. package/dist/errors.cjs.map +1 -0
  159. package/dist/errors.d.ts +441 -0
  160. package/dist/errors.d.ts.map +1 -0
  161. package/dist/errors.js +262 -0
  162. package/dist/errors.js.map +1 -0
  163. package/dist/generated-BDeDiaCK.js +4625 -0
  164. package/dist/generated-BDeDiaCK.js.map +1 -0
  165. package/dist/generated-wKBNvm48.cjs +3 -0
  166. package/dist/generated-wKBNvm48.cjs.map +1 -0
  167. package/dist/index.cjs +2 -0
  168. package/dist/index.cjs.map +1 -0
  169. package/dist/index.d.ts +25 -0
  170. package/dist/index.d.ts.map +1 -0
  171. package/dist/index.js +113 -0
  172. package/dist/index.js.map +1 -0
  173. package/dist/transfers.cjs +2 -0
  174. package/dist/transfers.cjs.map +1 -0
  175. package/dist/transfers.d.ts +198 -0
  176. package/dist/transfers.d.ts.map +1 -0
  177. package/dist/transfers.js +84 -0
  178. package/dist/transfers.js.map +1 -0
  179. package/dist/utils.cjs +2 -0
  180. package/dist/utils.cjs.map +1 -0
  181. package/dist/utils.d.ts +116 -0
  182. package/dist/utils.d.ts.map +1 -0
  183. package/dist/utils.js +30 -0
  184. package/dist/utils.js.map +1 -0
  185. package/package.json +211 -0
  186. package/src/Actions/Action.test.ts +75 -0
  187. package/src/Actions/Action.ts +61 -0
  188. package/src/Actions/ContractAction.test.ts +197 -0
  189. package/src/Actions/ContractAction.ts +301 -0
  190. package/src/Actions/ERC721MintAction.test.ts +112 -0
  191. package/src/Actions/ERC721MintAction.ts +292 -0
  192. package/src/Actions/EventAction.test.ts +205 -0
  193. package/src/Actions/EventAction.ts +811 -0
  194. package/src/AllowLists/AllowList.test.ts +64 -0
  195. package/src/AllowLists/AllowList.ts +60 -0
  196. package/src/AllowLists/SimpleAllowList.test.ts +52 -0
  197. package/src/AllowLists/SimpleAllowList.ts +284 -0
  198. package/src/AllowLists/SimpleDenyList.test.ts +52 -0
  199. package/src/AllowLists/SimpleDenyList.ts +227 -0
  200. package/src/Auth/Auth.ts +11 -0
  201. package/src/Auth/PassthroughAuth.test.ts +12 -0
  202. package/src/Auth/PassthroughAuth.ts +80 -0
  203. package/src/Boost.ts +290 -0
  204. package/src/BoostCore.test.ts +773 -0
  205. package/src/BoostCore.ts +1261 -0
  206. package/src/BoostRegistry.ts +467 -0
  207. package/src/Budgets/Budget.test.ts +27 -0
  208. package/src/Budgets/Budget.ts +61 -0
  209. package/src/Budgets/ManagedBudget.test.ts +154 -0
  210. package/src/Budgets/ManagedBudget.ts +796 -0
  211. package/src/Budgets/SimpleBudget.test.ts +152 -0
  212. package/src/Budgets/SimpleBudget.ts +564 -0
  213. package/src/Budgets/VestingBudget.test.ts +123 -0
  214. package/src/Budgets/VestingBudget.ts +602 -0
  215. package/src/Deployable/Contract.ts +229 -0
  216. package/src/Deployable/Deployable.ts +250 -0
  217. package/src/Deployable/DeployableTarget.ts +223 -0
  218. package/src/Incentives/AllowListIncentive.test.ts +143 -0
  219. package/src/Incentives/AllowListIncentive.ts +334 -0
  220. package/src/Incentives/CGDAIncentive.test.ts +132 -0
  221. package/src/Incentives/CGDAIncentive.ts +468 -0
  222. package/src/Incentives/ERC1155Incentive.test.ts +87 -0
  223. package/src/Incentives/ERC1155Incentive.ts +466 -0
  224. package/src/Incentives/ERC20Incentive.test.ts +130 -0
  225. package/src/Incentives/ERC20Incentive.ts +482 -0
  226. package/src/Incentives/ERC20VariableIncentive.test.ts +136 -0
  227. package/src/Incentives/ERC20VariableIncentive.ts +420 -0
  228. package/src/Incentives/Incentive.test.ts +92 -0
  229. package/src/Incentives/Incentive.ts +85 -0
  230. package/src/Incentives/PointsIncentive.test.ts +139 -0
  231. package/src/Incentives/PointsIncentive.ts +365 -0
  232. package/src/Validators/SignerValidator.test.ts +159 -0
  233. package/src/Validators/SignerValidator.ts +681 -0
  234. package/src/Validators/Validator.test.ts +21 -0
  235. package/src/Validators/Validator.ts +55 -0
  236. package/src/claiming.ts +56 -0
  237. package/src/errors.ts +542 -0
  238. package/src/index.test.ts +40 -0
  239. package/src/index.ts +53 -0
  240. package/src/transfers.ts +284 -0
  241. package/src/utils.test.ts +44 -0
  242. package/src/utils.ts +198 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.cjs","sources":["../src/errors.ts"],"sourcesContent":["import {\n type Hex,\n type Log,\n type WaitForTransactionReceiptReturnType,\n zeroHash,\n} from 'viem';\nimport type { Criteria } from './Actions/EventAction';\nimport type { BoostRegistry } from './BoostRegistry';\nimport type { Incentive } from './Incentives/Incentive';\n\n/**\n * This error is thrown during Boost creation if no `BoostCreated` event was emitted.\n *\n * @export\n * @class BoostCoreNoIdentifierEmitted\n * @typedef {BoostCoreNoIdentifierEmitted}\n * @extends {Error}\n * @example\n * ```ts\n * try {\n * await boostCore.createBoost(...)\n * } catch(e) {\n * if(e instanceof BoostCoreNoIdentifierEmitted) {}\n * }\n * ```\n */\nexport class BoostCoreNoIdentifierEmitted extends Error {\n /**\n * Creates an instance of BoostCoreNoIdentifierEmitted.\n *\n * @constructor\n */\n constructor() {\n super(`No \"BoostCreated\" log was emitted from which to extract boostId`);\n }\n}\n\n/**\n * This error is thrown when `assertValidAddress` is called, usually because a contract call expects the class to have a valid address attached.\n *\n * @export\n * @class ContractAddressRequiredError\n * @typedef {ContractAddressRequiredError}\n * @extends {Error}\n * @example\n * ```ts\n * try {\n * target.assertValidAddress()\n * } catch(e) {\n * if(e instanceof ContractAddressRequiredError) {}\n * }\n */\nexport class ContractAddressRequiredError extends Error {\n /**\n * Creates an instance of ContractAddressRequiredError.\n *\n * @constructor\n */\n constructor() {\n super('Attempted to call contract method without providing an address');\n }\n}\n\n/**\n * This error is thrown when attempting to deploy a contract that has already been deployed, or has an address attached.\n *\n * @export\n * @class DeployableAlreadyDeployedError\n * @typedef {DeployableAlreadyDeployedError}\n * @extends {Error}\n */\nexport class DeployableAlreadyDeployedError extends Error {\n /**\n * The address already attached to the target.\n *\n * @type {string}\n */\n address: string;\n /**\n * Creates an instance of DeployableAlreadyDeployedError.\n *\n * @constructor\n * @param {string} address\n */\n constructor(address: string) {\n super(\n `Attempted to deploy a contract that already has an address configured`,\n );\n this.address = address;\n }\n}\n\n/**\n * You should never see this error if we did our jobs and every target overrides the `buildParameters` method.\n *\n * @export\n * @class DeployableBuildParametersUnspecifiedError\n * @typedef {DeployableBuildParametersUnspecifiedError}\n * @extends {Error}\n */\nexport class DeployableBuildParametersUnspecifiedError extends Error {\n /**\n * Creates an instance of DeployableBuildParametersUnspecifiedError.\n *\n * @constructor\n */\n constructor() {\n super(\n 'Implementing class did not properly override the `buildParameters` method',\n );\n }\n}\n\n/**\n * This error is thrown when attempting to deploy an `ownable` contract and the owner cannot be ascertained from the initialization payload or configured account.\n *\n * @export\n * @class DeployableUnknownOwnerProvidedError\n * @typedef {DeployableUnknownOwnerProvidedError}\n * @extends {Error}\n */\nexport class DeployableUnknownOwnerProvidedError extends Error {\n /**\n * Creates an instance of DeployableUnknownOwnerProvidedError.\n *\n * @constructor\n */\n constructor() {\n super(\n 'Expected an an owner to be provided in configuration or an account to exist on Wagmi config.',\n );\n }\n}\n\n/**\n * This error is thrown when deploying a contract with no valid Wagmi configuration on the instance.\n *\n * @export\n * @class DeployableWagmiConfigurationRequiredError\n * @typedef {DeployableWagmiConfigurationRequiredError}\n * @extends {Error}\n */\nexport class DeployableWagmiConfigurationRequiredError extends Error {\n /**\n * Creates an instance of DeployableWagmiConfigurationRequiredError.\n *\n * @constructor\n */\n constructor() {\n super(\n 'Expected a valid Wagmi configuration to be available either on Deployable, or as argument to deploy.',\n );\n }\n}\n\n/**\n * This error is thrown when deploying a contract with no valid initialization payload.\n *\n * @export\n * @class DeployableMissingPayloadError\n * @typedef {DeployableMissingPayloadError}\n * @extends {Error}\n */\nexport class DeployableMissingPayloadError extends Error {\n /**\n * Creates an instance of DeployableMissingPayloadError.\n *\n * @constructor\n */\n constructor() {\n super(\n 'Expected a valid payload to be available either on Deployable or as argument to deploy.',\n );\n }\n}\n\n/**\n * This error is thrown when we receive a transaction receipt for a contract deployment without a contract address on it.\n *\n * @export\n * @class NoContractAddressUponReceiptError\n * @typedef {NoContractAddressUponReceiptError}\n * @extends {Error}\n */\nexport class NoContractAddressUponReceiptError extends Error {\n /**\n * The raw receipt we receive from [waitForTransactionReceipt](https://v1.viem.sh/docs/actions/public/waitForTransactionReceipt.html#waitfortransactionreceipt)\n *\n * @public\n * @readonly\n * @type {WaitForTransactionReceiptReturnType}\n */\n public readonly receipt: WaitForTransactionReceiptReturnType;\n /**\n * Creates an instance of NoContractAddressUponReceiptError.\n *\n * @constructor\n * @param {WaitForTransactionReceiptReturnType} receipt\n */\n constructor(receipt: WaitForTransactionReceiptReturnType) {\n super(`Expected a contract address to exist on receipt.`, {\n cause: receipt,\n });\n this.receipt = receipt;\n }\n}\n\n/**\n * This error is thrown when a target address was provided that doesn't match any supported interface for the given registry type.\n * For example, if you try to do `incentiveFromAddress()` with the address of a deployed `SimpleBudget`\n *\n * @export\n * @class InvalidComponentInterfaceError\n * @typedef {InvalidComponentInterfaceError}\n * @extends {Error}\n */\nexport class InvalidComponentInterfaceError extends Error {\n /**\n * Expected interface hashes.\n *\n * @public\n * @readonly\n * @type {Hex[]}\n */\n public readonly expected: Hex[] = [];\n /**\n * The actual interface hash.\n *\n * @public\n * @readonly\n * @type {Hex}\n */\n public readonly received: Hex = zeroHash;\n\n /**\n * Creates an instance of InvalidComponentInterfaceError.\n *\n * @constructor\n * @param {Hex[]} expected\n * @param {Hex} received\n */\n constructor(expected: Hex[], received: Hex) {\n super(`Address provided does not match any expected protocol interface`, {\n cause: { expected, received },\n });\n this.expected = expected;\n this.received = received;\n }\n}\n\n/**\n * This error is thrown when attempting a Budget transfer and arguments aren't of the type `FungibleTransferPayload` or `ERC1155TransferPayload`\n *\n * @see {@link FungibleTransferPayload}\n * @see {@link ERC1155TransferPayload}\n * @export\n * @class UnknownTransferPayloadSupplied\n * @typedef {UnknownTransferPayloadSupplied}\n * @extends {Error}\n */\nexport class UnknownTransferPayloadSupplied extends Error {\n /**\n * The given payload that does not conform to the correct payload shape.\n *\n * @type {unknown}\n */\n received: unknown;\n /**\n * Creates an instance of UnknownTransferPayloadSupplied.\n *\n * @constructor\n * @param {unknown} received\n */\n constructor(received: unknown) {\n super(\n `Did not provide a valid FungibleTransferPayload or ERC1155 transfer payload.`,\n { cause: received },\n );\n this.received = received;\n }\n}\n\n/**\n * This error is thrown during Boost creation when the budget doesn't authorize the Boost Core address.\n *\n * @export\n * @class BudgetMustAuthorizeBoostCore\n * @typedef {BudgetMustAuthorizeBoostCore}\n * @extends {Error}\n */\nexport class BudgetMustAuthorizeBoostCore extends Error {\n /**\n * Creates an instance of BudgetMustAuthorizeBoostCore.\n *\n * @constructor\n * @param {string} boostCoreAddress\n */\n constructor(boostCoreAddress: string) {\n super(\n `Budget needs to explicitly authorize ${boostCoreAddress}. You can retrieve this value from BoostCore.address`,\n );\n }\n}\n\n/**\n * Because this contract is a base implementation, it should not be initialized through the constructor. Instead, it should be cloned and initialized using the {@link BoostRegistry}\n *\n * @export\n * @class MustInitializeBudgetError\n * @typedef {MustInitializeBudgetError}\n * @extends {Error}\n */\nexport class MustInitializeBudgetError extends Error {\n /**\n * Creates an instance of MustInitializeBudgetError.\n */\n constructor() {\n super(`Budgets must be preinitialized before being used with a new Boost`);\n }\n}\n\n/**\n * The error is thrown when trying to reuse an existing deployed Incentive that isn't a base implementation.\n * The protocol doesn't allow this.\n *\n * @export\n * @class IncentiveNotCloneableError\n * @typedef {IncentiveNotCloneableError}\n * @extends {Error}\n */\nexport class IncentiveNotCloneableError extends Error {\n /**\n * Creates an instance of IncentiveNotCloneableError.\n *\n * @constructor\n * @param {Incentive} incentive\n */\n constructor(incentive: Incentive) {\n super(`Incentive not cloneable: ${incentive.constructor.name}`);\n }\n}\n\n/**\n * Thrown when encoding an EventAction payload and no action steps are provided\n *\n * @export\n * @class NoEventActionStepsProvidedError\n * @typedef {NoEventActionStepsProvidedError}\n * @extends {Error}\n */\nexport class NoEventActionStepsProvidedError extends Error {\n /**\n * Creates an instance of NoEventActionStepsProvidedError.\n *\n * @constructor\n */\n constructor() {\n super('Must supply at least one action step');\n }\n}\n\n/**\n * Thrown when encoding an EventAction payload and > 4 steps are provided\n *\n * @export\n * @class TooManyEventActionStepsProvidedError\n * @typedef {TooManyEventActionStepsProvidedError}\n * @extends {Error}\n */\nexport class TooManyEventActionStepsProvidedError extends Error {\n /**\n * Creates an instance of TooManyEventActionStepsProvidedError.\n *\n * @constructor\n */\n constructor() {\n super(\n 'Cannot supply more than 4 action steps with current protocol version',\n );\n }\n}\n\n/**\n * Event action validation context to help debug other validation errors\n *\n * @interface EventActionValidationMeta\n * @typedef {EventActionValidationMeta}\n */\ninterface EventActionValidationMeta {\n /**\n * The viem log being validated against\n *\n * @type {Log}\n */\n log: Log;\n /**\n * The value pulled off the log being validated against\n *\n * @type {*}\n * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits\n */\n fieldValue: any;\n /**\n * The criteria being used to compare during validation\n *\n * @type {Criteria}\n */\n criteria: Criteria;\n}\n\n/**\n * The base error thrown during event action validation extended by more specific validation errors.\n * Instantiated with relevent context data for more in depth debugging.\n *\n * @export\n * @class EventActionValidationError\n * @typedef {EventActionValidationError}\n * @extends {Error}\n */\nexport class EventActionValidationError extends Error {\n /**\n * The viem log being validated against\n *\n * @type {Log}\n */\n log: Log;\n /**\n * The value pulled off the log being validated against\n *\n * @type {*}\n * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits\n */\n fieldValue: any;\n /**\n * The criteria being used to compare during validation\n *\n * @type {Criteria}\n */\n criteria: Criteria;\n /**\n * Creates an instance of EventActionValidationError.\n *\n * @constructor\n * @param {string} message\n * @param {EventActionValidationMeta} param0\n * @param {*} param0.fieldValue\n * @param {Criteria} param0.criteria\n * @param {Log} param0.log\n */\n constructor(\n message: string,\n { fieldValue, criteria, log }: EventActionValidationMeta,\n ) {\n super(message);\n this.fieldValue = fieldValue;\n this.criteria = criteria;\n this.log = log;\n }\n}\n\n/**\n * Thrown when field value on log is undefined\n *\n * @export\n * @class FieldValueUndefinedError\n * @typedef {FieldValueUndefinedError}\n * @extends {EventActionValidationError}\n */\nexport class FieldValueUndefinedError extends EventActionValidationError {\n /**\n * Creates an instance of FieldValueUndefinedError.\n *\n * @constructor\n * @param {EventActionValidationMeta} metadata\n */\n constructor(metadata: EventActionValidationMeta) {\n super('Field value is undefined', metadata);\n }\n}\n\n/**\n * Thrown when a filter type is using a numerical operator but field type is not numerical\n *\n * @export\n * @class InvalidNumericalCriteriaError\n * @typedef {InvalidNumericalCriteriaError}\n * @extends {EventActionValidationError}\n */\nexport class InvalidNumericalCriteriaError extends EventActionValidationError {\n /**\n * Creates an instance of InvalidNumericalCriteria.\n *\n * @constructor\n * @param {EventActionValidationMeta} metadata\n */\n constructor(metadata: EventActionValidationMeta) {\n super(\n 'Numerical comparisons cannot be used with non-numerical criteria',\n metadata,\n );\n }\n}\n\n/**\n * Thrown when an the log's field value is being compared a field type that isn't bytes or string during event action validation\n *\n * @export\n * @class FieldValueNotComparableError\n * @typedef {FieldValueNotComparableError}\n * @extends {EventActionValidationError}\n */\nexport class FieldValueNotComparableError extends EventActionValidationError {\n /**\n * Creates an instance of FieldValueNotComparableError.\n *\n * @constructor\n * @param {EventActionValidationMeta} metadata\n */\n constructor(metadata: EventActionValidationMeta) {\n super('Filter can only be used with bytes or string field type', metadata);\n }\n}\n\n/**\n * Thrown when an invalid filter type enum was provided event action validation.\n *\n * @export\n * @class UnrecognizedFilterTypeError\n * @typedef {UnrecognizedFilterTypeError}\n * @extends {EventActionValidationError}\n */\nexport class UnrecognizedFilterTypeError extends EventActionValidationError {\n /**\n * Creates an instance of UnrecognizedFilterTypeError.\n *\n * @constructor\n * @param {EventActionValidationMeta} metadata\n */\n constructor(metadata: EventActionValidationMeta) {\n super('Invalid FilterType provided', metadata);\n }\n}\n"],"names":["BoostCoreNoIdentifierEmitted","ContractAddressRequiredError","DeployableAlreadyDeployedError","address","DeployableBuildParametersUnspecifiedError","DeployableUnknownOwnerProvidedError","DeployableWagmiConfigurationRequiredError","DeployableMissingPayloadError","NoContractAddressUponReceiptError","receipt","InvalidComponentInterfaceError","expected","received","zeroHash","UnknownTransferPayloadSupplied","BudgetMustAuthorizeBoostCore","boostCoreAddress","MustInitializeBudgetError","IncentiveNotCloneableError","incentive","NoEventActionStepsProvidedError","TooManyEventActionStepsProvidedError","EventActionValidationError","message","fieldValue","criteria","log","FieldValueUndefinedError","metadata","InvalidNumericalCriteriaError","FieldValueNotComparableError","UnrecognizedFilterTypeError"],"mappings":"wGA0BO,MAAMA,UAAqC,KAAM,CAMtD,aAAc,CACZ,MAAM,iEAAiE,CACzE,CACF,CAiBO,MAAMC,UAAqC,KAAM,CAMtD,aAAc,CACZ,MAAM,gEAAgE,CACxE,CACF,CAUO,MAAMC,UAAuC,KAAM,CAaxD,YAAYC,EAAiB,CAC3B,MACE,uEAAA,EAEF,KAAK,QAAUA,CACjB,CACF,CAUO,MAAMC,UAAkD,KAAM,CAMnE,aAAc,CACZ,MACE,2EAAA,CAEJ,CACF,CAUO,MAAMC,UAA4C,KAAM,CAM7D,aAAc,CACZ,MACE,8FAAA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iCL,CAA2B,CAOvE,YAAYM,EAAqC,CAC/C,MAAM,2BAA4BA,CAAQ,CAC5C,CACF,CAUO,MAAMC,UAAsCP,CAA2B,CAO5E,YAAYM,EAAqC,CAC/C,MACE,mEACAA,CAAA,CAEJ,CACF,CAUO,MAAME,UAAqCR,CAA2B,CAO3E,YAAYM,EAAqC,CAC/C,MAAM,0DAA2DA,CAAQ,CAC3E,CACF,CAUO,MAAMG,UAAoCT,CAA2B,CAO1E,YAAYM,EAAqC,CAC/C,MAAM,8BAA+BA,CAAQ,CAC/C,CACF"}
@@ -0,0 +1,441 @@
1
+ import { type Hex, type Log, type WaitForTransactionReceiptReturnType } from 'viem';
2
+ import type { Criteria } from './Actions/EventAction';
3
+ import type { Incentive } from './Incentives/Incentive';
4
+ /**
5
+ * This error is thrown during Boost creation if no `BoostCreated` event was emitted.
6
+ *
7
+ * @export
8
+ * @class BoostCoreNoIdentifierEmitted
9
+ * @typedef {BoostCoreNoIdentifierEmitted}
10
+ * @extends {Error}
11
+ * @example
12
+ * ```ts
13
+ * try {
14
+ * await boostCore.createBoost(...)
15
+ * } catch(e) {
16
+ * if(e instanceof BoostCoreNoIdentifierEmitted) {}
17
+ * }
18
+ * ```
19
+ */
20
+ export declare class BoostCoreNoIdentifierEmitted extends Error {
21
+ /**
22
+ * Creates an instance of BoostCoreNoIdentifierEmitted.
23
+ *
24
+ * @constructor
25
+ */
26
+ constructor();
27
+ }
28
+ /**
29
+ * This error is thrown when `assertValidAddress` is called, usually because a contract call expects the class to have a valid address attached.
30
+ *
31
+ * @export
32
+ * @class ContractAddressRequiredError
33
+ * @typedef {ContractAddressRequiredError}
34
+ * @extends {Error}
35
+ * @example
36
+ * ```ts
37
+ * try {
38
+ * target.assertValidAddress()
39
+ * } catch(e) {
40
+ * if(e instanceof ContractAddressRequiredError) {}
41
+ * }
42
+ */
43
+ export declare class ContractAddressRequiredError extends Error {
44
+ /**
45
+ * Creates an instance of ContractAddressRequiredError.
46
+ *
47
+ * @constructor
48
+ */
49
+ constructor();
50
+ }
51
+ /**
52
+ * This error is thrown when attempting to deploy a contract that has already been deployed, or has an address attached.
53
+ *
54
+ * @export
55
+ * @class DeployableAlreadyDeployedError
56
+ * @typedef {DeployableAlreadyDeployedError}
57
+ * @extends {Error}
58
+ */
59
+ export declare class DeployableAlreadyDeployedError extends Error {
60
+ /**
61
+ * The address already attached to the target.
62
+ *
63
+ * @type {string}
64
+ */
65
+ address: string;
66
+ /**
67
+ * Creates an instance of DeployableAlreadyDeployedError.
68
+ *
69
+ * @constructor
70
+ * @param {string} address
71
+ */
72
+ constructor(address: string);
73
+ }
74
+ /**
75
+ * You should never see this error if we did our jobs and every target overrides the `buildParameters` method.
76
+ *
77
+ * @export
78
+ * @class DeployableBuildParametersUnspecifiedError
79
+ * @typedef {DeployableBuildParametersUnspecifiedError}
80
+ * @extends {Error}
81
+ */
82
+ export declare class DeployableBuildParametersUnspecifiedError extends Error {
83
+ /**
84
+ * Creates an instance of DeployableBuildParametersUnspecifiedError.
85
+ *
86
+ * @constructor
87
+ */
88
+ constructor();
89
+ }
90
+ /**
91
+ * This error is thrown when attempting to deploy an `ownable` contract and the owner cannot be ascertained from the initialization payload or configured account.
92
+ *
93
+ * @export
94
+ * @class DeployableUnknownOwnerProvidedError
95
+ * @typedef {DeployableUnknownOwnerProvidedError}
96
+ * @extends {Error}
97
+ */
98
+ export declare class DeployableUnknownOwnerProvidedError extends Error {
99
+ /**
100
+ * Creates an instance of DeployableUnknownOwnerProvidedError.
101
+ *
102
+ * @constructor
103
+ */
104
+ constructor();
105
+ }
106
+ /**
107
+ * This error is thrown when deploying a contract with no valid Wagmi configuration on the instance.
108
+ *
109
+ * @export
110
+ * @class DeployableWagmiConfigurationRequiredError
111
+ * @typedef {DeployableWagmiConfigurationRequiredError}
112
+ * @extends {Error}
113
+ */
114
+ export declare class DeployableWagmiConfigurationRequiredError extends Error {
115
+ /**
116
+ * Creates an instance of DeployableWagmiConfigurationRequiredError.
117
+ *
118
+ * @constructor
119
+ */
120
+ constructor();
121
+ }
122
+ /**
123
+ * This error is thrown when deploying a contract with no valid initialization payload.
124
+ *
125
+ * @export
126
+ * @class DeployableMissingPayloadError
127
+ * @typedef {DeployableMissingPayloadError}
128
+ * @extends {Error}
129
+ */
130
+ export declare class DeployableMissingPayloadError extends Error {
131
+ /**
132
+ * Creates an instance of DeployableMissingPayloadError.
133
+ *
134
+ * @constructor
135
+ */
136
+ constructor();
137
+ }
138
+ /**
139
+ * This error is thrown when we receive a transaction receipt for a contract deployment without a contract address on it.
140
+ *
141
+ * @export
142
+ * @class NoContractAddressUponReceiptError
143
+ * @typedef {NoContractAddressUponReceiptError}
144
+ * @extends {Error}
145
+ */
146
+ export declare class NoContractAddressUponReceiptError extends Error {
147
+ /**
148
+ * The raw receipt we receive from [waitForTransactionReceipt](https://v1.viem.sh/docs/actions/public/waitForTransactionReceipt.html#waitfortransactionreceipt)
149
+ *
150
+ * @public
151
+ * @readonly
152
+ * @type {WaitForTransactionReceiptReturnType}
153
+ */
154
+ readonly receipt: WaitForTransactionReceiptReturnType;
155
+ /**
156
+ * Creates an instance of NoContractAddressUponReceiptError.
157
+ *
158
+ * @constructor
159
+ * @param {WaitForTransactionReceiptReturnType} receipt
160
+ */
161
+ constructor(receipt: WaitForTransactionReceiptReturnType);
162
+ }
163
+ /**
164
+ * This error is thrown when a target address was provided that doesn't match any supported interface for the given registry type.
165
+ * For example, if you try to do `incentiveFromAddress()` with the address of a deployed `SimpleBudget`
166
+ *
167
+ * @export
168
+ * @class InvalidComponentInterfaceError
169
+ * @typedef {InvalidComponentInterfaceError}
170
+ * @extends {Error}
171
+ */
172
+ export declare class InvalidComponentInterfaceError extends Error {
173
+ /**
174
+ * Expected interface hashes.
175
+ *
176
+ * @public
177
+ * @readonly
178
+ * @type {Hex[]}
179
+ */
180
+ readonly expected: Hex[];
181
+ /**
182
+ * The actual interface hash.
183
+ *
184
+ * @public
185
+ * @readonly
186
+ * @type {Hex}
187
+ */
188
+ readonly received: Hex;
189
+ /**
190
+ * Creates an instance of InvalidComponentInterfaceError.
191
+ *
192
+ * @constructor
193
+ * @param {Hex[]} expected
194
+ * @param {Hex} received
195
+ */
196
+ constructor(expected: Hex[], received: Hex);
197
+ }
198
+ /**
199
+ * This error is thrown when attempting a Budget transfer and arguments aren't of the type `FungibleTransferPayload` or `ERC1155TransferPayload`
200
+ *
201
+ * @see {@link FungibleTransferPayload}
202
+ * @see {@link ERC1155TransferPayload}
203
+ * @export
204
+ * @class UnknownTransferPayloadSupplied
205
+ * @typedef {UnknownTransferPayloadSupplied}
206
+ * @extends {Error}
207
+ */
208
+ export declare class UnknownTransferPayloadSupplied extends Error {
209
+ /**
210
+ * The given payload that does not conform to the correct payload shape.
211
+ *
212
+ * @type {unknown}
213
+ */
214
+ received: unknown;
215
+ /**
216
+ * Creates an instance of UnknownTransferPayloadSupplied.
217
+ *
218
+ * @constructor
219
+ * @param {unknown} received
220
+ */
221
+ constructor(received: unknown);
222
+ }
223
+ /**
224
+ * This error is thrown during Boost creation when the budget doesn't authorize the Boost Core address.
225
+ *
226
+ * @export
227
+ * @class BudgetMustAuthorizeBoostCore
228
+ * @typedef {BudgetMustAuthorizeBoostCore}
229
+ * @extends {Error}
230
+ */
231
+ export declare class BudgetMustAuthorizeBoostCore extends Error {
232
+ /**
233
+ * Creates an instance of BudgetMustAuthorizeBoostCore.
234
+ *
235
+ * @constructor
236
+ * @param {string} boostCoreAddress
237
+ */
238
+ constructor(boostCoreAddress: string);
239
+ }
240
+ /**
241
+ * Because this contract is a base implementation, it should not be initialized through the constructor. Instead, it should be cloned and initialized using the {@link BoostRegistry}
242
+ *
243
+ * @export
244
+ * @class MustInitializeBudgetError
245
+ * @typedef {MustInitializeBudgetError}
246
+ * @extends {Error}
247
+ */
248
+ export declare class MustInitializeBudgetError extends Error {
249
+ /**
250
+ * Creates an instance of MustInitializeBudgetError.
251
+ */
252
+ constructor();
253
+ }
254
+ /**
255
+ * The error is thrown when trying to reuse an existing deployed Incentive that isn't a base implementation.
256
+ * The protocol doesn't allow this.
257
+ *
258
+ * @export
259
+ * @class IncentiveNotCloneableError
260
+ * @typedef {IncentiveNotCloneableError}
261
+ * @extends {Error}
262
+ */
263
+ export declare class IncentiveNotCloneableError extends Error {
264
+ /**
265
+ * Creates an instance of IncentiveNotCloneableError.
266
+ *
267
+ * @constructor
268
+ * @param {Incentive} incentive
269
+ */
270
+ constructor(incentive: Incentive);
271
+ }
272
+ /**
273
+ * Thrown when encoding an EventAction payload and no action steps are provided
274
+ *
275
+ * @export
276
+ * @class NoEventActionStepsProvidedError
277
+ * @typedef {NoEventActionStepsProvidedError}
278
+ * @extends {Error}
279
+ */
280
+ export declare class NoEventActionStepsProvidedError extends Error {
281
+ /**
282
+ * Creates an instance of NoEventActionStepsProvidedError.
283
+ *
284
+ * @constructor
285
+ */
286
+ constructor();
287
+ }
288
+ /**
289
+ * Thrown when encoding an EventAction payload and > 4 steps are provided
290
+ *
291
+ * @export
292
+ * @class TooManyEventActionStepsProvidedError
293
+ * @typedef {TooManyEventActionStepsProvidedError}
294
+ * @extends {Error}
295
+ */
296
+ export declare class TooManyEventActionStepsProvidedError extends Error {
297
+ /**
298
+ * Creates an instance of TooManyEventActionStepsProvidedError.
299
+ *
300
+ * @constructor
301
+ */
302
+ constructor();
303
+ }
304
+ /**
305
+ * Event action validation context to help debug other validation errors
306
+ *
307
+ * @interface EventActionValidationMeta
308
+ * @typedef {EventActionValidationMeta}
309
+ */
310
+ interface EventActionValidationMeta {
311
+ /**
312
+ * The viem log being validated against
313
+ *
314
+ * @type {Log}
315
+ */
316
+ log: Log;
317
+ /**
318
+ * The value pulled off the log being validated against
319
+ *
320
+ * @type {*}
321
+ * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits
322
+ */
323
+ fieldValue: any;
324
+ /**
325
+ * The criteria being used to compare during validation
326
+ *
327
+ * @type {Criteria}
328
+ */
329
+ criteria: Criteria;
330
+ }
331
+ /**
332
+ * The base error thrown during event action validation extended by more specific validation errors.
333
+ * Instantiated with relevent context data for more in depth debugging.
334
+ *
335
+ * @export
336
+ * @class EventActionValidationError
337
+ * @typedef {EventActionValidationError}
338
+ * @extends {Error}
339
+ */
340
+ export declare class EventActionValidationError extends Error {
341
+ /**
342
+ * The viem log being validated against
343
+ *
344
+ * @type {Log}
345
+ */
346
+ log: Log;
347
+ /**
348
+ * The value pulled off the log being validated against
349
+ *
350
+ * @type {*}
351
+ * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits
352
+ */
353
+ fieldValue: any;
354
+ /**
355
+ * The criteria being used to compare during validation
356
+ *
357
+ * @type {Criteria}
358
+ */
359
+ criteria: Criteria;
360
+ /**
361
+ * Creates an instance of EventActionValidationError.
362
+ *
363
+ * @constructor
364
+ * @param {string} message
365
+ * @param {EventActionValidationMeta} param0
366
+ * @param {*} param0.fieldValue
367
+ * @param {Criteria} param0.criteria
368
+ * @param {Log} param0.log
369
+ */
370
+ constructor(message: string, { fieldValue, criteria, log }: EventActionValidationMeta);
371
+ }
372
+ /**
373
+ * Thrown when field value on log is undefined
374
+ *
375
+ * @export
376
+ * @class FieldValueUndefinedError
377
+ * @typedef {FieldValueUndefinedError}
378
+ * @extends {EventActionValidationError}
379
+ */
380
+ export declare class FieldValueUndefinedError extends EventActionValidationError {
381
+ /**
382
+ * Creates an instance of FieldValueUndefinedError.
383
+ *
384
+ * @constructor
385
+ * @param {EventActionValidationMeta} metadata
386
+ */
387
+ constructor(metadata: EventActionValidationMeta);
388
+ }
389
+ /**
390
+ * Thrown when a filter type is using a numerical operator but field type is not numerical
391
+ *
392
+ * @export
393
+ * @class InvalidNumericalCriteriaError
394
+ * @typedef {InvalidNumericalCriteriaError}
395
+ * @extends {EventActionValidationError}
396
+ */
397
+ export declare class InvalidNumericalCriteriaError extends EventActionValidationError {
398
+ /**
399
+ * Creates an instance of InvalidNumericalCriteria.
400
+ *
401
+ * @constructor
402
+ * @param {EventActionValidationMeta} metadata
403
+ */
404
+ constructor(metadata: EventActionValidationMeta);
405
+ }
406
+ /**
407
+ * Thrown when an the log's field value is being compared a field type that isn't bytes or string during event action validation
408
+ *
409
+ * @export
410
+ * @class FieldValueNotComparableError
411
+ * @typedef {FieldValueNotComparableError}
412
+ * @extends {EventActionValidationError}
413
+ */
414
+ export declare class FieldValueNotComparableError extends EventActionValidationError {
415
+ /**
416
+ * Creates an instance of FieldValueNotComparableError.
417
+ *
418
+ * @constructor
419
+ * @param {EventActionValidationMeta} metadata
420
+ */
421
+ constructor(metadata: EventActionValidationMeta);
422
+ }
423
+ /**
424
+ * Thrown when an invalid filter type enum was provided event action validation.
425
+ *
426
+ * @export
427
+ * @class UnrecognizedFilterTypeError
428
+ * @typedef {UnrecognizedFilterTypeError}
429
+ * @extends {EventActionValidationError}
430
+ */
431
+ export declare class UnrecognizedFilterTypeError extends EventActionValidationError {
432
+ /**
433
+ * Creates an instance of UnrecognizedFilterTypeError.
434
+ *
435
+ * @constructor
436
+ * @param {EventActionValidationMeta} metadata
437
+ */
438
+ constructor(metadata: EventActionValidationMeta);
439
+ }
440
+ export {};
441
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,GAAG,EACR,KAAK,mCAAmC,EAEzC,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD;;;;OAIG;;CAIJ;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD;;;;OAIG;;CAIJ;AAED;;;;;;;GAOG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;IACvD;;;;OAIG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