@boostxyz/sdk 7.3.0 → 7.5.0

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 (193) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +2 -2
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts.map +1 -1
  6. package/dist/Actions/EventAction.js +160 -159
  7. package/dist/Actions/EventAction.js.map +1 -1
  8. package/dist/AllowLists/AllowList.cjs +1 -1
  9. package/dist/AllowLists/AllowList.js +3 -3
  10. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  11. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  12. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  13. package/dist/AllowLists/SimpleAllowList.js +30 -30
  14. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  15. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  16. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  17. package/dist/AllowLists/SimpleDenyList.js +3 -3
  18. package/dist/Auth/PassthroughAuth.cjs +1 -1
  19. package/dist/Auth/PassthroughAuth.js +1 -1
  20. package/dist/BoostCore.cjs +2 -2
  21. package/dist/BoostCore.cjs.map +1 -1
  22. package/dist/BoostCore.d.ts +14 -0
  23. package/dist/BoostCore.d.ts.map +1 -1
  24. package/dist/BoostCore.js +199 -180
  25. package/dist/BoostCore.js.map +1 -1
  26. package/dist/BoostRegistry.cjs +1 -1
  27. package/dist/BoostRegistry.cjs.map +1 -1
  28. package/dist/BoostRegistry.d.ts.map +1 -1
  29. package/dist/BoostRegistry.js +31 -31
  30. package/dist/BoostRegistry.js.map +1 -1
  31. package/dist/Budget-DGg1wCa6.cjs +2 -0
  32. package/dist/Budget-DGg1wCa6.cjs.map +1 -0
  33. package/dist/{Budget-B-grnRq9.js → Budget-ZnzzZsjK.js} +102 -102
  34. package/dist/Budget-ZnzzZsjK.js.map +1 -0
  35. package/dist/Budgets/Budget.cjs +1 -1
  36. package/dist/Budgets/Budget.js +3 -3
  37. package/dist/Budgets/ManagedBudget.cjs +1 -1
  38. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  39. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  40. package/dist/Budgets/ManagedBudget.js +48 -48
  41. package/dist/Budgets/ManagedBudget.js.map +1 -1
  42. package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
  43. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -1
  44. package/dist/Budgets/TransparentBudget.d.ts.map +1 -1
  45. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  46. package/dist/Deployable/DeployableTarget.cjs +1 -1
  47. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  48. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  49. package/dist/Deployable/DeployableTarget.js +5 -8
  50. package/dist/Deployable/DeployableTarget.js.map +1 -1
  51. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  52. package/dist/Deployable/DeployableTargetWithRBAC.js +19 -19
  53. package/dist/{Incentive-Bz_g-nID.js → Incentive-CYj6lbM5.js} +64 -64
  54. package/dist/Incentive-CYj6lbM5.js.map +1 -0
  55. package/dist/{Incentive-Dufx0ZjH.cjs → Incentive-Ckxpw7EN.cjs} +2 -2
  56. package/dist/Incentive-Ckxpw7EN.cjs.map +1 -0
  57. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  58. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  59. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
  60. package/dist/Incentives/AllowListIncentive.js +36 -36
  61. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  62. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  63. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  64. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  65. package/dist/Incentives/CGDAIncentive.js +37 -37
  66. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  67. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  68. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  69. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  70. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  71. package/dist/Incentives/ERC20Incentive.js +44 -44
  72. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  73. package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -1
  74. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
  75. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs.map +1 -1
  76. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
  77. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +63 -63
  78. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js.map +1 -1
  79. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
  80. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -1
  81. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -1
  82. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +55 -53
  83. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -1
  84. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  85. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  86. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  87. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +45 -45
  88. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  89. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
  90. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -1
  91. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -1
  92. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +51 -49
  93. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
  94. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  95. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  96. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  97. package/dist/Incentives/ERC20VariableIncentive.js +38 -38
  98. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  99. package/dist/Incentives/Incentive.cjs +1 -1
  100. package/dist/Incentives/Incentive.js +3 -3
  101. package/dist/Incentives/PointsIncentive.cjs +1 -1
  102. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  103. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  104. package/dist/Incentives/PointsIncentive.js +35 -35
  105. package/dist/Incentives/PointsIncentive.js.map +1 -1
  106. package/dist/{SimpleDenyList-BlLgvhjE.js → SimpleDenyList-DUO4ex__.js} +32 -32
  107. package/dist/SimpleDenyList-DUO4ex__.js.map +1 -0
  108. package/dist/{SimpleDenyList-B2YDJ_gk.cjs → SimpleDenyList-v5G-fPfm.cjs} +2 -2
  109. package/dist/SimpleDenyList-v5G-fPfm.cjs.map +1 -0
  110. package/dist/Validator-BA8RC2J6.cjs +2 -0
  111. package/dist/Validator-BA8RC2J6.cjs.map +1 -0
  112. package/dist/Validator-D4CzwdB9.js +409 -0
  113. package/dist/Validator-D4CzwdB9.js.map +1 -0
  114. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  115. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
  116. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  117. package/dist/Validators/LimitedSignerValidator.js +39 -39
  118. package/dist/Validators/LimitedSignerValidator.js.map +1 -1
  119. package/dist/Validators/PayableLimitedSignerValidator.d.ts +829 -0
  120. package/dist/Validators/PayableLimitedSignerValidator.d.ts.map +1 -0
  121. package/dist/Validators/SignerValidator.cjs +1 -1
  122. package/dist/Validators/SignerValidator.cjs.map +1 -1
  123. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  124. package/dist/Validators/SignerValidator.js +48 -48
  125. package/dist/Validators/SignerValidator.js.map +1 -1
  126. package/dist/Validators/Validator.cjs +1 -1
  127. package/dist/Validators/Validator.cjs.map +1 -1
  128. package/dist/Validators/Validator.d.ts +4 -3
  129. package/dist/Validators/Validator.d.ts.map +1 -1
  130. package/dist/Validators/Validator.js +14 -50
  131. package/dist/Validators/Validator.js.map +1 -1
  132. package/dist/componentInterfaces-D4QdH2Qz.cjs +2 -0
  133. package/dist/componentInterfaces-D4QdH2Qz.cjs.map +1 -0
  134. package/dist/componentInterfaces-DCTot4_O.js +24 -0
  135. package/dist/componentInterfaces-DCTot4_O.js.map +1 -0
  136. package/dist/{deployments-DKtAq6BT.js → deployments-B-ZU0zVY.js} +61 -34
  137. package/dist/{deployments-DKtAq6BT.js.map → deployments-B-ZU0zVY.js.map} +1 -1
  138. package/dist/deployments-CaacquP1.cjs +2 -0
  139. package/dist/deployments-CaacquP1.cjs.map +1 -0
  140. package/dist/deployments.json +32 -4
  141. package/dist/generated-BOBQ2ut4.cjs +3 -0
  142. package/dist/generated-BOBQ2ut4.cjs.map +1 -0
  143. package/dist/{generated-CINzoGbl.js → generated-ffteMTHN.js} +1157 -776
  144. package/dist/generated-ffteMTHN.js.map +1 -0
  145. package/dist/index.cjs +1 -1
  146. package/dist/index.d.ts +1 -0
  147. package/dist/index.d.ts.map +1 -1
  148. package/dist/index.js +123 -118
  149. package/package.json +1 -1
  150. package/src/Actions/EventAction.ts +3 -1
  151. package/src/AllowLists/SimpleAllowList.ts +3 -1
  152. package/src/AllowLists/SimpleDenyList.ts +3 -1
  153. package/src/BoostCore.ts +30 -1
  154. package/src/BoostRegistry.ts +3 -1
  155. package/src/Budgets/ManagedBudget.ts +3 -1
  156. package/src/Budgets/ManagedBudgetWithFees.ts +3 -1
  157. package/src/Budgets/ManagedBudgetWithFeesV2.ts +3 -1
  158. package/src/Budgets/TransparentBudget.ts +3 -1
  159. package/src/Budgets/VestingBudget.ts +3 -1
  160. package/src/Deployable/DeployableTarget.ts +2 -3
  161. package/src/Incentives/AllowListIncentive.ts +3 -1
  162. package/src/Incentives/CGDAIncentive.ts +3 -1
  163. package/src/Incentives/ERC1155Incentive.ts +3 -1
  164. package/src/Incentives/ERC20Incentive.ts +3 -1
  165. package/src/Incentives/ERC20PeggedIncentive.ts +3 -1
  166. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +3 -1
  167. package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +6 -2
  168. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +3 -1
  169. package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +5 -1
  170. package/src/Incentives/ERC20VariableIncentive.ts +3 -1
  171. package/src/Incentives/PointsIncentive.ts +3 -1
  172. package/src/Validators/LimitedSignerValidator.ts +3 -1
  173. package/src/Validators/PayableLimitedSignerValidator.test.ts +202 -0
  174. package/src/Validators/PayableLimitedSignerValidator.ts +667 -0
  175. package/src/Validators/SignerValidator.ts +3 -1
  176. package/src/Validators/Validator.ts +7 -1
  177. package/src/index.ts +1 -0
  178. package/dist/Budget-B-grnRq9.js.map +0 -1
  179. package/dist/Budget-uGKa2qzz.cjs +0 -2
  180. package/dist/Budget-uGKa2qzz.cjs.map +0 -1
  181. package/dist/Incentive-Bz_g-nID.js.map +0 -1
  182. package/dist/Incentive-Dufx0ZjH.cjs.map +0 -1
  183. package/dist/SimpleDenyList-B2YDJ_gk.cjs.map +0 -1
  184. package/dist/SimpleDenyList-BlLgvhjE.js.map +0 -1
  185. package/dist/componentInterfaces-C5ig8mCK.cjs +0 -2
  186. package/dist/componentInterfaces-C5ig8mCK.cjs.map +0 -1
  187. package/dist/componentInterfaces-Ddus5rIA.js +0 -23
  188. package/dist/componentInterfaces-Ddus5rIA.js.map +0 -1
  189. package/dist/deployments-Dk-Z1L2X.cjs +0 -2
  190. package/dist/deployments-Dk-Z1L2X.cjs.map +0 -1
  191. package/dist/generated-CINzoGbl.js.map +0 -1
  192. package/dist/generated-C_JEoLDO.cjs +0 -3
  193. package/dist/generated-C_JEoLDO.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { P as d, U as c } from "../generated-CINzoGbl.js";
1
+ import { X as n, Y as c } from "../generated-ffteMTHN.js";
2
2
  import { deployContract as h } from "@wagmi/core";
3
3
  import { isAddress as u, zeroAddress as l, isAddressEqual as a } from "viem";
4
4
  import { DeployableAlreadyDeployedError as y, DeployableMissingPayloadError as f } from "../errors.js";
@@ -18,10 +18,7 @@ const i = class i extends p {
18
18
  }
19
19
  get isBase() {
20
20
  return this.address && Object.values(this.bases).some(
21
- (t) => (
22
- // biome-ignore lint/style/noNonNullAssertion: won't evaluate this if address checked and defined above
23
- a(this.address, t)
24
- )
21
+ (t) => t && this.address && a(this.address, t)
25
22
  ) ? !0 : this._isBase;
26
23
  }
27
24
  /**
@@ -68,9 +65,9 @@ const i = class i extends p {
68
65
  */
69
66
  async deployRaw(t, s) {
70
67
  if (this.address) throw new y(this.address);
71
- const r = t || this._payload, e = (s == null ? void 0 : s.config) || this._config, { args: g, ...n } = this.buildParameters(r);
68
+ const r = t || this._payload, e = (s == null ? void 0 : s.config) || this._config, { args: g, ...d } = this.buildParameters(r);
72
69
  return await h(e, {
73
- ...n,
70
+ ...d,
74
71
  ...this.optionallyAttachAccount(s == null ? void 0 : s.account),
75
72
  // Deployable targets don't construct with arguments, they initialize with encoded payloads
76
73
  args: []
@@ -86,7 +83,7 @@ const i = class i extends p {
86
83
  * @returns {Promise<boolean>} - True if the contract supports the interface
87
84
  */
88
85
  async supportsInterface(t, s) {
89
- return await d(this._config, {
86
+ return await n(this._config, {
90
87
  address: this.assertValidAddress(),
91
88
  ...this.optionallyAttachAccount(),
92
89
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -1 +1 @@
1
- {"version":3,"file":"DeployableTarget.js","sources":["../../src/Deployable/DeployableTarget.ts"],"sourcesContent":["import {\n type aCloneableAbi,\n readACloneableGetComponentInterface,\n readACloneableSupportsInterface,\n} from '@boostxyz/evm';\nimport { deployContract } from '@wagmi/core';\nimport {\n type Abi,\n type Address,\n type Hash,\n type Hex,\n type WaitForTransactionReceiptParameters,\n isAddress,\n isAddressEqual,\n zeroAddress,\n} from 'viem';\nimport {\n DeployableAlreadyDeployedError,\n DeployableMissingPayloadError,\n} from '../errors';\nimport { type ReadParams, RegistryType } from '../utils';\nimport {\n Deployable,\n type DeployableOptions,\n type DeployablePayloadOrAddress,\n} from './Deployable';\n\n/**\n * A base class representing a generic base Boost Protocol target contract, extended by Actions, AllowLists, Budgets, Incentives, and Validators.\n *\n * @export\n * @class DeployableTarget\n * @typedef {DeployableTarget}\n * @template [Payload=unknown]\n * @extends {Deployable<Payload>}\n */\nexport class DeployableTarget<\n Payload,\n ContractAbi extends Abi,\n> extends Deployable<Payload, ContractAbi> {\n /**\n * A static property representing a map of stringified chain ID's to the address of the base implementation on chain, used when cloning base contracts.\n *\n * @static\n * @readonly\n * @type {Record<string, Address>}\n */\n static readonly bases: Record<number, Address> = {};\n /**\n * The target's registry type.\n *\n * @static\n * @readonly\n * @type {RegistryType}\n */\n static readonly registryType: RegistryType = RegistryType.ACTION;\n /**\n * A property asserting that the protocol should eiher clone and initialize a new target from the base implementation, or re-use an existing contract without initializing.\n *\n * @readonly\n * @type {boolean}\n */\n readonly _isBase: boolean = true;\n public get isBase() {\n if (\n !!this.address &&\n Object.values(this.bases).some((base) =>\n // biome-ignore lint/style/noNonNullAssertion: won't evaluate this if address checked and defined above\n isAddressEqual(this.address!, base),\n )\n )\n return true;\n return this._isBase;\n }\n\n /**\n * Creates an instance of DeployableTarget.\n *\n * @constructor\n * @param {DeployableOptions} options\n * @param {DeployablePayloadOrAddress<Payload>} payload - Either a given implementation's initialization payload, or an address to an existing on chain target.\n * @param {?boolean} [isBase] - A property asserting that the protocol should eiher clone and initialize a new target from the base implementation, or re-use an existing contract without initializing.\n */\n constructor(\n options: DeployableOptions,\n payload?: DeployablePayloadOrAddress<Payload>,\n isBase?: boolean,\n ) {\n super(options, payload);\n // if supplying a custom address, safe enough to assume it is not a base address which makes reusing contracts like budgets easier\n if (\n typeof payload === 'string' &&\n isAddress(payload) &&\n payload !== zeroAddress &&\n !Object.values(this.bases).some((base) => {\n if (!payload || !base) return false;\n return isAddressEqual(payload, base);\n })\n )\n isBase = false;\n if (isBase !== undefined) this._isBase = isBase;\n }\n\n /**\n * A getter that will return the base implementation's static addresses by numerical chain ID\n *\n * @public\n * @readonly\n * @type {Record<number, Address>}\n */\n public get bases(): Record<number, Address> {\n return (this.constructor as typeof DeployableTarget).bases;\n }\n\n /**\n * A getter that returns the registry type of the base implementation\n *\n * @public\n * @readonly\n * @type {RegistryType}\n */\n public get registryType(): RegistryType {\n return (this.constructor as typeof DeployableTarget).registryType;\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @async\n * @param {?Payload} [payload]\n * @param {?DeployableOptions} [options]\n * @param {?Omit<WaitForTransactionReceiptParameters, 'hash'>} [waitParams]\n * @returns {Promise<this>}\n */\n protected override async deploy(\n payload?: Payload,\n options?: DeployableOptions,\n waitParams?: Omit<WaitForTransactionReceiptParameters, 'hash'>,\n ) {\n await super.deploy(payload, options, waitParams);\n this.assertValidAddress();\n return this;\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @async\n * @param {?Payload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {Promise<Hash>}\n */\n protected override async deployRaw(\n _payload?: Payload,\n _options?: DeployableOptions,\n ): Promise<Hash> {\n if (this.address) throw new DeployableAlreadyDeployedError(this.address);\n const payload = _payload || this._payload;\n const config = _options?.config || this._config;\n const { args, ...deployment } = this.buildParameters(payload);\n return await deployContract(config, {\n ...deployment,\n ...this.optionallyAttachAccount(_options?.account),\n // Deployable targets don't construct with arguments, they initialize with encoded payloads\n args: [],\n });\n }\n\n /**\n * Check if the contract supports the given interface\n *\n * @public\n * @async\n * @param {Hex} interfaceId - The interface identifier\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the contract supports the interface\n */\n public async supportsInterface(interfaceId: Hex, params?: ReadParams) {\n return await readACloneableSupportsInterface(this._config, {\n address: this.assertValidAddress(),\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n args: [interfaceId],\n });\n }\n\n /**\n * Return a cloneable's unique identifier for downstream consumers to differentiate various targets\n * All implementations must override this function\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Hex>}\n */\n public async getComponentInterface(params?: ReadParams) {\n return await readACloneableGetComponentInterface(this._config, {\n address: this.assertValidAddress(),\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n args: [],\n });\n }\n\n /**\n * @inheritdoc\n *\n * @protected\n * @template [P=Payload]\n * @param {?P} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {[P, DeployableOptions]}\n */\n protected override validateDeploymentConfig<P = Payload>(\n _payload?: P,\n _options?: DeployableOptions,\n ) {\n const payload = _payload || this._payload;\n if (!payload) throw new DeployableMissingPayloadError();\n return super.validateDeploymentConfig(payload, _options) as [\n P,\n DeployableOptions,\n ];\n }\n}\n"],"names":["_DeployableTarget","Deployable","options","payload","isBase","isAddress","zeroAddress","base","isAddressEqual","waitParams","_payload","_options","DeployableAlreadyDeployedError","config","args","deployment","deployContract","interfaceId","params","readACloneableSupportsInterface","readACloneableGetComponentInterface","DeployableMissingPayloadError","RegistryType","DeployableTarget"],"mappings":";;;;;;AAoCO,MAAMA,IAAN,MAAMA,UAGHC,EAAiC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA4CzC,YACEC,GACAC,GACAC,GACA;AACA,UAAMF,GAASC,CAAO,GA1BxB,KAAS,UAAmB,IA6BxB,OAAOA,KAAY,YACnBE,EAAUF,CAAO,KACjBA,MAAYG,KACZ,CAAC,OAAO,OAAO,KAAK,KAAK,EAAE,KAAK,CAACC,MAC3B,CAACJ,KAAW,CAACI,IAAa,KACvBC,EAAeL,GAASI,CAAI,CACpC,MAEQH,IAAA,KACPA,MAAW,WAAW,KAAK,UAAUA;AAAA,EAC3C;AAAA,EAtCA,IAAW,SAAS;AAEhB,WAAE,KAAK,WACP,OAAO,OAAO,KAAK,KAAK,EAAE;AAAA,MAAK,CAACG;AAAA;AAAA,QAE9BC,EAAe,KAAK,SAAUD,CAAI;AAAA;AAAA,IACpC,IAEO,KACF,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCA,IAAW,QAAiC;AAC1C,WAAQ,KAAK,YAAwC;AAAA,EACvD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,IAAW,eAA6B;AACtC,WAAQ,KAAK,YAAwC;AAAA,EACvD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAyB,OACvBJ,GACAD,GACAO,GACA;AACA,iBAAM,MAAM,OAAON,GAASD,GAASO,CAAU,GAC/C,KAAK,mBAAmB,GACjB;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAyB,UACvBC,GACAC,GACe;AACf,QAAI,KAAK,QAAS,OAAM,IAAIC,EAA+B,KAAK,OAAO;AACjE,UAAAT,IAAUO,KAAY,KAAK,UAC3BG,KAASF,KAAA,gBAAAA,EAAU,WAAU,KAAK,SAClC,EAAE,MAAAG,GAAM,GAAGC,MAAe,KAAK,gBAAgBZ,CAAO;AACrD,WAAA,MAAMa,EAAeH,GAAQ;AAAA,MAClC,GAAGE;AAAA,MACH,GAAG,KAAK,wBAAwBJ,KAAA,gBAAAA,EAAU,OAAO;AAAA;AAAA,MAEjD,MAAM,CAAC;AAAA,IAAA,CACR;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAa,kBAAkBM,GAAkBC,GAAqB;AAC7D,WAAA,MAAMC,EAAgC,KAAK,SAAS;AAAA,MACzD,SAAS,KAAK,mBAAmB;AAAA,MACjC,GAAG,KAAK,wBAAwB;AAAA;AAAA,MAEhC,GAAID;AAAA,MACJ,MAAM,CAACD,CAAW;AAAA,IAAA,CACnB;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAa,sBAAsBC,GAAqB;AAC/C,WAAA,MAAME,EAAoC,KAAK,SAAS;AAAA,MAC7D,SAAS,KAAK,mBAAmB;AAAA,MACjC,GAAG,KAAK,wBAAwB;AAAA;AAAA,MAEhC,GAAIF;AAAA,MACJ,MAAM,CAAC;AAAA,IAAA,CACR;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWmB,yBACjBR,GACAC,GACA;AACM,UAAAR,IAAUO,KAAY,KAAK;AACjC,QAAI,CAACP,EAAe,OAAA,IAAIkB;AACjB,WAAA,MAAM,yBAAyBlB,GAASQ,CAAQ;AAAA,EAIzD;AACF;AArLEX,EAAgB,QAAiC,IAQjDA,EAAgB,eAA6BsB,EAAa;AAnBrD,IAAMC,IAANvB;"}
1
+ {"version":3,"file":"DeployableTarget.js","sources":["../../src/Deployable/DeployableTarget.ts"],"sourcesContent":["import {\n type aCloneableAbi,\n readACloneableGetComponentInterface,\n readACloneableSupportsInterface,\n} from '@boostxyz/evm';\nimport { deployContract } from '@wagmi/core';\nimport {\n type Abi,\n type Address,\n type Hash,\n type Hex,\n type WaitForTransactionReceiptParameters,\n isAddress,\n isAddressEqual,\n zeroAddress,\n} from 'viem';\nimport {\n DeployableAlreadyDeployedError,\n DeployableMissingPayloadError,\n} from '../errors';\nimport { type ReadParams, RegistryType } from '../utils';\nimport {\n Deployable,\n type DeployableOptions,\n type DeployablePayloadOrAddress,\n} from './Deployable';\n\n/**\n * A base class representing a generic base Boost Protocol target contract, extended by Actions, AllowLists, Budgets, Incentives, and Validators.\n *\n * @export\n * @class DeployableTarget\n * @typedef {DeployableTarget}\n * @template [Payload=unknown]\n * @extends {Deployable<Payload>}\n */\nexport class DeployableTarget<\n Payload,\n ContractAbi extends Abi,\n> extends Deployable<Payload, ContractAbi> {\n /**\n * A static property representing a map of stringified chain ID's to the address of the base implementation on chain, used when cloning base contracts.\n *\n * @static\n * @readonly\n * @type {Record<string, Address>}\n */\n static readonly bases: Record<number, Address> = {};\n /**\n * The target's registry type.\n *\n * @static\n * @readonly\n * @type {RegistryType}\n */\n static readonly registryType: RegistryType = RegistryType.ACTION;\n /**\n * A property asserting that the protocol should eiher clone and initialize a new target from the base implementation, or re-use an existing contract without initializing.\n *\n * @readonly\n * @type {boolean}\n */\n readonly _isBase: boolean = true;\n public get isBase() {\n if (\n !!this.address &&\n Object.values(this.bases).some(\n (base) => base && this.address && isAddressEqual(this.address, base),\n )\n )\n return true;\n return this._isBase;\n }\n\n /**\n * Creates an instance of DeployableTarget.\n *\n * @constructor\n * @param {DeployableOptions} options\n * @param {DeployablePayloadOrAddress<Payload>} payload - Either a given implementation's initialization payload, or an address to an existing on chain target.\n * @param {?boolean} [isBase] - A property asserting that the protocol should eiher clone and initialize a new target from the base implementation, or re-use an existing contract without initializing.\n */\n constructor(\n options: DeployableOptions,\n payload?: DeployablePayloadOrAddress<Payload>,\n isBase?: boolean,\n ) {\n super(options, payload);\n // if supplying a custom address, safe enough to assume it is not a base address which makes reusing contracts like budgets easier\n if (\n typeof payload === 'string' &&\n isAddress(payload) &&\n payload !== zeroAddress &&\n !Object.values(this.bases).some((base) => {\n if (!payload || !base) return false;\n return isAddressEqual(payload, base);\n })\n )\n isBase = false;\n if (isBase !== undefined) this._isBase = isBase;\n }\n\n /**\n * A getter that will return the base implementation's static addresses by numerical chain ID\n *\n * @public\n * @readonly\n * @type {Record<number, Address>}\n */\n public get bases(): Record<number, Address> {\n return (this.constructor as typeof DeployableTarget).bases;\n }\n\n /**\n * A getter that returns the registry type of the base implementation\n *\n * @public\n * @readonly\n * @type {RegistryType}\n */\n public get registryType(): RegistryType {\n return (this.constructor as typeof DeployableTarget).registryType;\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @async\n * @param {?Payload} [payload]\n * @param {?DeployableOptions} [options]\n * @param {?Omit<WaitForTransactionReceiptParameters, 'hash'>} [waitParams]\n * @returns {Promise<this>}\n */\n protected override async deploy(\n payload?: Payload,\n options?: DeployableOptions,\n waitParams?: Omit<WaitForTransactionReceiptParameters, 'hash'>,\n ) {\n await super.deploy(payload, options, waitParams);\n this.assertValidAddress();\n return this;\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @async\n * @param {?Payload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {Promise<Hash>}\n */\n protected override async deployRaw(\n _payload?: Payload,\n _options?: DeployableOptions,\n ): Promise<Hash> {\n if (this.address) throw new DeployableAlreadyDeployedError(this.address);\n const payload = _payload || this._payload;\n const config = _options?.config || this._config;\n const { args, ...deployment } = this.buildParameters(payload);\n return await deployContract(config, {\n ...deployment,\n ...this.optionallyAttachAccount(_options?.account),\n // Deployable targets don't construct with arguments, they initialize with encoded payloads\n args: [],\n });\n }\n\n /**\n * Check if the contract supports the given interface\n *\n * @public\n * @async\n * @param {Hex} interfaceId - The interface identifier\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the contract supports the interface\n */\n public async supportsInterface(interfaceId: Hex, params?: ReadParams) {\n return await readACloneableSupportsInterface(this._config, {\n address: this.assertValidAddress(),\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n args: [interfaceId],\n });\n }\n\n /**\n * Return a cloneable's unique identifier for downstream consumers to differentiate various targets\n * All implementations must override this function\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Hex>}\n */\n public async getComponentInterface(params?: ReadParams) {\n return await readACloneableGetComponentInterface(this._config, {\n address: this.assertValidAddress(),\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n args: [],\n });\n }\n\n /**\n * @inheritdoc\n *\n * @protected\n * @template [P=Payload]\n * @param {?P} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {[P, DeployableOptions]}\n */\n protected override validateDeploymentConfig<P = Payload>(\n _payload?: P,\n _options?: DeployableOptions,\n ) {\n const payload = _payload || this._payload;\n if (!payload) throw new DeployableMissingPayloadError();\n return super.validateDeploymentConfig(payload, _options) as [\n P,\n DeployableOptions,\n ];\n }\n}\n"],"names":["_DeployableTarget","Deployable","options","payload","isBase","isAddress","zeroAddress","base","isAddressEqual","waitParams","_payload","_options","DeployableAlreadyDeployedError","config","args","deployment","deployContract","interfaceId","params","readACloneableSupportsInterface","readACloneableGetComponentInterface","DeployableMissingPayloadError","RegistryType","DeployableTarget"],"mappings":";;;;;;AAoCO,MAAMA,IAAN,MAAMA,UAGHC,EAAiC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2CzC,YACEC,GACAC,GACAC,GACA;AACA,UAAMF,GAASC,CAAO,GAzBxB,KAAS,UAAmB,IA4BxB,OAAOA,KAAY,YACnBE,EAAUF,CAAO,KACjBA,MAAYG,KACZ,CAAC,OAAO,OAAO,KAAK,KAAK,EAAE,KAAK,CAACC,MAC3B,CAACJ,KAAW,CAACI,IAAa,KACvBC,EAAeL,GAASI,CAAI,CACpC,MAEQH,IAAA,KACPA,MAAW,WAAW,KAAK,UAAUA;AAAA,EAC3C;AAAA,EArCA,IAAW,SAAS;AAEhB,WAAE,KAAK,WACP,OAAO,OAAO,KAAK,KAAK,EAAE;AAAA,MACxB,CAACG,MAASA,KAAQ,KAAK,WAAWC,EAAe,KAAK,SAASD,CAAI;AAAA,IACrE,IAEO,KACF,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCA,IAAW,QAAiC;AAC1C,WAAQ,KAAK,YAAwC;AAAA,EACvD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,IAAW,eAA6B;AACtC,WAAQ,KAAK,YAAwC;AAAA,EACvD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAyB,OACvBJ,GACAD,GACAO,GACA;AACA,iBAAM,MAAM,OAAON,GAASD,GAASO,CAAU,GAC/C,KAAK,mBAAmB,GACjB;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAyB,UACvBC,GACAC,GACe;AACf,QAAI,KAAK,QAAS,OAAM,IAAIC,EAA+B,KAAK,OAAO;AACjE,UAAAT,IAAUO,KAAY,KAAK,UAC3BG,KAASF,KAAA,gBAAAA,EAAU,WAAU,KAAK,SAClC,EAAE,MAAAG,GAAM,GAAGC,MAAe,KAAK,gBAAgBZ,CAAO;AACrD,WAAA,MAAMa,EAAeH,GAAQ;AAAA,MAClC,GAAGE;AAAA,MACH,GAAG,KAAK,wBAAwBJ,KAAA,gBAAAA,EAAU,OAAO;AAAA;AAAA,MAEjD,MAAM,CAAC;AAAA,IAAA,CACR;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAa,kBAAkBM,GAAkBC,GAAqB;AAC7D,WAAA,MAAMC,EAAgC,KAAK,SAAS;AAAA,MACzD,SAAS,KAAK,mBAAmB;AAAA,MACjC,GAAG,KAAK,wBAAwB;AAAA;AAAA,MAEhC,GAAID;AAAA,MACJ,MAAM,CAACD,CAAW;AAAA,IAAA,CACnB;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAa,sBAAsBC,GAAqB;AAC/C,WAAA,MAAME,EAAoC,KAAK,SAAS;AAAA,MAC7D,SAAS,KAAK,mBAAmB;AAAA,MACjC,GAAG,KAAK,wBAAwB;AAAA;AAAA,MAEhC,GAAIF;AAAA,MACJ,MAAM,CAAC;AAAA,IAAA,CACR;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWmB,yBACjBR,GACAC,GACA;AACM,UAAAR,IAAUO,KAAY,KAAK;AACjC,QAAI,CAACP,EAAe,OAAA,IAAIkB;AACjB,WAAA,MAAM,yBAAyBlB,GAASQ,CAAQ;AAAA,EAIzD;AACF;AApLEX,EAAgB,QAAiC,IAQjDA,EAAgB,eAA6BsB,EAAa;AAnBrD,IAAMC,IAANvB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../generated-C_JEoLDO.cjs"),c=require("./DeployableTarget.cjs");var o=(n=>(n[n.MANAGER=1n]="MANAGER",n[n.ADMIN=2n]="ADMIN",n))(o||{});class l extends c.DeployableTarget{async setAuthorized(s,t,a){return await this.awaitResult(this.setAuthorizedRaw(s,t,a))}async setAuthorizedRaw(s,t,a){const{request:i,result:r}=await e.xq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.Aq(this._config,i),result:r}}async grantRoles(s,t,a){return await this.awaitResult(this.grantRolesRaw(s,t,a))}async grantRolesRaw(s,t,a){const{request:i,result:r}=await e.Oq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.fq(this._config,i),result:r}}async revokeRoles(s,t,a){return await this.awaitResult(this.revokeRolesRaw(s,t,a))}async revokeRolesRaw(s,t,a){const{request:i,result:r}=await e.Hq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.Iq(this._config,i),result:r}}async grantManyRoles(s,t,a){return await this.awaitResult(this.grantManyRolesRaw(s,t,a))}async grantManyRolesRaw(s,t,a){const{request:i,result:r}=await e.Cq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.bq(this._config,i),result:r}}async revokeManyRoles(s,t,a){return await this.awaitResult(this.revokeManyRolesRaw(s,t,a))}async revokeManyRolesRaw(s,t,a){const{request:i,result:r}=await e.Bq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.gq(this._config,i),result:r}}async rolesOf(s,t){const a=await e.yq(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return[o.MANAGER,o.ADMIN].filter(i=>(a&i)===i)}hasAnyRole(s,t,a){return e.oq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a})}hasAllRoles(s,t,a){return e.rq(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a})}isAuthorized(s,t){return e.pq(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t})}async transferOwnership(s,t){return await this.awaitResult(this.transferOwnershipRaw(s,t))}async transferOwnershipRaw(s,t){const{request:a,result:i}=await e.tD(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.ZL(this._config,a),result:i}}async renounceOwnership(s){return await this.awaitResult(this.renounceOwnershipRaw(s))}async renounceOwnershipRaw(s){const{request:t,result:a}=await e.KL(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e.qL(this._config,t),result:a}}async requestOwnershipHandover(s){return await this.awaitResult(this.requestOwnershipHandoverRaw(s))}async requestOwnershipHandoverRaw(s){const{request:t,result:a}=await e.YL(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e.GL(this._config,t),result:a}}async completeOwnershipHandover(s,t){return await this.awaitResult(this.completeOwnershipHandoverRaw(s,t))}async completeOwnershipHandoverRaw(s,t){const{request:a,result:i}=await e.QL(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.LL(this._config,a),result:i}}async cancelOwnershipHandover(s){return await this.awaitResult(this.cancelOwnershipHandoverRaw(s))}async cancelOwnershipHandoverRaw(s){const{request:t,result:a}=await e.$L(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e._L(this._config,t),result:a}}ownershipHandoverExpiresAt(s,t){return e.kL(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t})}async renounceRoles(s,t){return await this.awaitResult(this.renounceRolesRaw(s,t))}async renounceRolesRaw(s,t){const{request:a,result:i}=await e.XL(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.WL(this._config,a),result:i}}}exports.rbacAbi=e.S;exports.DeployableTargetWithRBAC=l;exports.Roles=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../generated-BOBQ2ut4.cjs"),c=require("./DeployableTarget.cjs");var o=(n=>(n[n.MANAGER=1n]="MANAGER",n[n.ADMIN=2n]="ADMIN",n))(o||{});class l extends c.DeployableTarget{async setAuthorized(s,t,a){return await this.awaitResult(this.setAuthorizedRaw(s,t,a))}async setAuthorizedRaw(s,t,a){const{request:i,result:r}=await e.QW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.SW(this._config,i),result:r}}async grantRoles(s,t,a){return await this.awaitResult(this.grantRolesRaw(s,t,a))}async grantRolesRaw(s,t,a){const{request:i,result:r}=await e.WW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.zW(this._config,i),result:r}}async revokeRoles(s,t,a){return await this.awaitResult(this.revokeRolesRaw(s,t,a))}async revokeRolesRaw(s,t,a){const{request:i,result:r}=await e.$W(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.PW(this._config,i),result:r}}async grantManyRoles(s,t,a){return await this.awaitResult(this.grantManyRolesRaw(s,t,a))}async grantManyRolesRaw(s,t,a){const{request:i,result:r}=await e.qW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.VW(this._config,i),result:r}}async revokeManyRoles(s,t,a){return await this.awaitResult(this.revokeManyRolesRaw(s,t,a))}async revokeManyRolesRaw(s,t,a){const{request:i,result:r}=await e.jW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a});return{hash:await e.FW(this._config,i),result:r}}async rolesOf(s,t){const a=await e.RW(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return[o.MANAGER,o.ADMIN].filter(i=>(a&i)===i)}hasAnyRole(s,t,a){return e.AW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a})}hasAllRoles(s,t,a){return e.IW(this._config,{address:this.assertValidAddress(),args:[s,t],...this.optionallyAttachAccount(),...a})}isAuthorized(s,t){return e.hW(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t})}async transferOwnership(s,t){return await this.awaitResult(this.transferOwnershipRaw(s,t))}async transferOwnershipRaw(s,t){const{request:a,result:i}=await e.CD(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.TD(this._config,a),result:i}}async renounceOwnership(s){return await this.awaitResult(this.renounceOwnershipRaw(s))}async renounceOwnershipRaw(s){const{request:t,result:a}=await e.hD(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e.mD(this._config,t),result:a}}async requestOwnershipHandover(s){return await this.awaitResult(this.requestOwnershipHandoverRaw(s))}async requestOwnershipHandoverRaw(s){const{request:t,result:a}=await e.MD(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e.fD(this._config,t),result:a}}async completeOwnershipHandover(s,t){return await this.awaitResult(this.completeOwnershipHandoverRaw(s,t))}async completeOwnershipHandoverRaw(s,t){const{request:a,result:i}=await e.ID(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.dD(this._config,a),result:i}}async cancelOwnershipHandover(s){return await this.awaitResult(this.cancelOwnershipHandoverRaw(s))}async cancelOwnershipHandoverRaw(s){const{request:t,result:a}=await e.gD(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...s});return{hash:await e.yD(this._config,t),result:a}}ownershipHandoverExpiresAt(s,t){return e.pD(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t})}async renounceRoles(s,t){return await this.awaitResult(this.renounceRolesRaw(s,t))}async renounceRolesRaw(s,t){const{request:a,result:i}=await e.ND(this._config,{address:this.assertValidAddress(),args:[s],...this.optionallyAttachAccount(),...t});return{hash:await e.bD(this._config,a),result:i}}}exports.rbacAbi=e._;exports.DeployableTargetWithRBAC=l;exports.Roles=o;
2
2
  //# sourceMappingURL=DeployableTargetWithRBAC.cjs.map
@@ -1,8 +1,8 @@
1
- import { x as o, e as c, O as l, f as d, H as u, I as w, h as A, i as R, B as g, j as y, l as p, o as f, n as q, q as _, t as v, Z as O, K as V, s as L, Y as H, u as M, Q as m, L as k, $ as x, v as D, J as N, X as b, W as I } from "../generated-CINzoGbl.js";
2
- import { S as K } from "../generated-CINzoGbl.js";
3
- import { DeployableTarget as z } from "./DeployableTarget.js";
1
+ import { Q as o, S as c, W as l, e as d, $ as u, f as w, h as A, V as R, j as g, i as y, l as p, A as f, n as _, o as D, s as v, t as V, u as O, v as W, w as q, x as M, B as H, D as m, G as N, H as k, J as b, K as x, O as z } from "../generated-ffteMTHN.js";
2
+ import { _ as C } from "../generated-ffteMTHN.js";
3
+ import { DeployableTarget as I } from "./DeployableTarget.js";
4
4
  var h = /* @__PURE__ */ ((r) => (r[r.MANAGER = 1n] = "MANAGER", r[r.ADMIN = 2n] = "ADMIN", r))(h || {});
5
- class B extends z {
5
+ class T extends I {
6
6
  /**
7
7
  * Set the authorized status of the given accounts
8
8
  * The mechanism for managing authorization is left to the implementing contract
@@ -286,7 +286,7 @@ class B extends z {
286
286
  * @returns {Promise<boolean>}
287
287
  */
288
288
  hasAllRoles(s, t, a) {
289
- return q(this._config, {
289
+ return _(this._config, {
290
290
  address: this.assertValidAddress(),
291
291
  args: [s, t],
292
292
  ...this.optionallyAttachAccount(),
@@ -303,7 +303,7 @@ class B extends z {
303
303
  * @returns {Promise<boolean>} - True if the account is authorized
304
304
  */
305
305
  isAuthorized(s, t) {
306
- return _(this._config, {
306
+ return D(this._config, {
307
307
  address: this.assertValidAddress(),
308
308
  args: [s],
309
309
  ...this.optionallyAttachAccount(),
@@ -343,7 +343,7 @@ class B extends z {
343
343
  ...t
344
344
  }
345
345
  );
346
- return { hash: await O(
346
+ return { hash: await V(
347
347
  this._config,
348
348
  a
349
349
  ), result: e };
@@ -368,7 +368,7 @@ class B extends z {
368
368
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
369
369
  */
370
370
  async renounceOwnershipRaw(s) {
371
- const { request: t, result: a } = await V(
371
+ const { request: t, result: a } = await O(
372
372
  this._config,
373
373
  {
374
374
  address: this.assertValidAddress(),
@@ -377,7 +377,7 @@ class B extends z {
377
377
  ...s
378
378
  }
379
379
  );
380
- return { hash: await L(
380
+ return { hash: await W(
381
381
  this._config,
382
382
  t
383
383
  ), result: a };
@@ -408,7 +408,7 @@ class B extends z {
408
408
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
409
409
  */
410
410
  async requestOwnershipHandoverRaw(s) {
411
- const { request: t, result: a } = await H(this._config, {
411
+ const { request: t, result: a } = await q(this._config, {
412
412
  address: this.assertValidAddress(),
413
413
  ...this.optionallyAttachAccount(),
414
414
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -449,14 +449,14 @@ class B extends z {
449
449
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
450
450
  */
451
451
  async completeOwnershipHandoverRaw(s, t) {
452
- const { request: a, result: e } = await m(this._config, {
452
+ const { request: a, result: e } = await H(this._config, {
453
453
  address: this.assertValidAddress(),
454
454
  args: [s],
455
455
  ...this.optionallyAttachAccount(),
456
456
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
457
457
  ...t
458
458
  });
459
- return { hash: await k(
459
+ return { hash: await m(
460
460
  this._config,
461
461
  a
462
462
  ), result: e };
@@ -483,13 +483,13 @@ class B extends z {
483
483
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
484
484
  */
485
485
  async cancelOwnershipHandoverRaw(s) {
486
- const { request: t, result: a } = await x(this._config, {
486
+ const { request: t, result: a } = await N(this._config, {
487
487
  address: this.assertValidAddress(),
488
488
  ...this.optionallyAttachAccount(),
489
489
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
490
490
  ...s
491
491
  });
492
- return { hash: await D(
492
+ return { hash: await k(
493
493
  this._config,
494
494
  t
495
495
  ), result: a };
@@ -504,7 +504,7 @@ class B extends z {
504
504
  * @returns {Promise<bigint>} - The timestamp when the handover request expires, or 0 if no request exists
505
505
  */
506
506
  ownershipHandoverExpiresAt(s, t) {
507
- return N(this._config, {
507
+ return b(this._config, {
508
508
  address: this.assertValidAddress(),
509
509
  args: [s],
510
510
  ...this.optionallyAttachAccount(),
@@ -536,7 +536,7 @@ class B extends z {
536
536
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
537
537
  */
538
538
  async renounceRolesRaw(s, t) {
539
- const { request: a, result: e } = await b(
539
+ const { request: a, result: e } = await x(
540
540
  this._config,
541
541
  {
542
542
  address: this.assertValidAddress(),
@@ -546,12 +546,12 @@ class B extends z {
546
546
  ...t
547
547
  }
548
548
  );
549
- return { hash: await I(this._config, a), result: e };
549
+ return { hash: await z(this._config, a), result: e };
550
550
  }
551
551
  }
552
552
  export {
553
- B as DeployableTargetWithRBAC,
553
+ T as DeployableTargetWithRBAC,
554
554
  h as Roles,
555
- K as rbacAbi
555
+ C as rbacAbi
556
556
  };
557
557
  //# sourceMappingURL=DeployableTargetWithRBAC.js.map
@@ -1,24 +1,24 @@
1
- import { g as r, ch as g, ci as u, cj as p, ck as y, cl as w, cm as C, cn as A, co as V, cp as I, cq as v, cr as R, cs as P, ct as E, cu as D, cv as _, cw as k } from "./generated-CINzoGbl.js";
2
- import { e as T, f as B, g as N, h as j, i as q, j as x, k as G, l as z, m as F, n as L } from "./componentInterfaces-Ddus5rIA.js";
3
- import { readContract as H } from "@wagmi/core";
1
+ import { g as n, ch as u, ci as p, cj as y, ck as C, cl as w, cm as A, cn as R, co as E, cp as I, cq as V, cr as v, cs as D, ct as _, cu as P, cv as T, cw as B } from "./generated-ffteMTHN.js";
2
+ import { c as N, d as O, e as S, f as k, g as x, h as j, i as G, j as q, k as F, l as L } from "./componentInterfaces-DCTot4_O.js";
3
+ import { readContract as z } from "@wagmi/core";
4
4
  import { InvalidComponentInterfaceError as M } from "./errors.js";
5
- import { AllowListIncentive as O } from "./Incentives/AllowListIncentive.js";
6
- import { CGDAIncentive as U } from "./Incentives/CGDAIncentive.js";
7
- import { ERC20Incentive as $ } from "./Incentives/ERC20Incentive.js";
8
- import { encodeAbiParameters as s, zeroAddress as c, decodeAbiParameters as n } from "viem";
9
- import { h as J } from "./deployments-DKtAq6BT.js";
10
- import { DeployableTarget as K } from "./Deployable/DeployableTarget.js";
11
- import { prepareClaimPayload as o } from "./claiming.js";
12
- import { RegistryType as Q } from "./utils.js";
13
- import { ERC20PeggedVariableCriteriaIncentive as S } from "./Incentives/ERC20PeggedVariableCriteriaIncentive.js";
5
+ import { AllowListIncentive as $ } from "./Incentives/AllowListIncentive.js";
6
+ import { CGDAIncentive as K } from "./Incentives/CGDAIncentive.js";
7
+ import { ERC20Incentive as Q } from "./Incentives/ERC20Incentive.js";
8
+ import { encodeAbiParameters as i, zeroAddress as c, decodeAbiParameters as o } from "viem";
9
+ import { h as U } from "./deployments-B-ZU0zVY.js";
10
+ import { DeployableTarget as Z } from "./Deployable/DeployableTarget.js";
11
+ import { prepareClaimPayload as l } from "./claiming.js";
12
+ import { RegistryType as H } from "./utils.js";
13
+ import { ERC20PeggedVariableCriteriaIncentive as J } from "./Incentives/ERC20PeggedVariableCriteriaIncentive.js";
14
14
  import { ERC20PeggedVariableCriteriaIncentiveV2 as W } from "./Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js";
15
15
  import { ERC20VariableCriteriaIncentive as X } from "./Incentives/ERC20VariableCriteriaIncentive.js";
16
16
  import { ERC20VariableCriteriaIncentiveV2 as Y } from "./Incentives/ERC20VariableCriteriaIncentiveV2.js";
17
- import { ERC20VariableIncentive as Z } from "./Incentives/ERC20VariableIncentive.js";
18
- import { PointsIncentive as f0 } from "./Incentives/PointsIncentive.js";
19
- const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b611cfa806100895f395ff3fe60806040526004361061025d575f3560e01c8063547d18641161014b578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146106b8578063fe9fbb80146106cb578063fee81cf4146106ea575f80fd5b8063ec87621c14610691578063f04e283e146106a5575f80fd5b8063db09da12116100ac578063db09da121461063e578063dcc213611461065d578063dcc59b6f1461067c575f80fd5b8063c884ef83146105fb578063d54ad2a114610629575f80fd5b80638da5cb5b1161011b578063a4d66daf11610101578063a4d66daf146105a8578063bb1757cf146105bd578063be4994f8146105dc575f80fd5b80638da5cb5b146105665780639214fa4d1461057e575f80fd5b8063547d18641461052d57806354d1f13d14610542578063715018a61461054a57806375b238fc14610552575f80fd5b80632de94807116101db578063439fab91116101ab5780634a4ee7b1116101915780634a4ee7b1146104b95780634e7165a2146104cc578063514e62fc146104f8575f80fd5b8063439fab9114610451578063474f5a4414610470575f80fd5b80632de94807146103b657806330db555f146103e757806338d52e0f146104065780634359d28a14610432575f80fd5b80631cd64df411610230578063228cb73311610216578063228cb73314610360578063256929621461037457806328d6183b1461037c575f80fd5b80631cd64df4146102da5780631f1cb62b1461030f575f80fd5b806301ffc9a71461026157806307621eca14610295578063183a4f6e146102b25780631c10893f146102c7575b5f80fd5b34801561026c575f80fd5b5061028061027b366004611655565b61071b565b60405190151581526020015b60405180910390f35b3480156102a0575f80fd5b505f545b60405190815260200161028c565b6102c56102c0366004611694565b610776565b005b6102c56102d53660046116d3565b610783565b3480156102e5575f80fd5b506102806102f43660046116d3565b638b78c6d8600c9081525f9290925260209091205481161490565b34801561031a575f80fd5b5060075461033b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028c565b34801561036b575f80fd5b506102a45f5481565b6102c5610799565b348015610387575f80fd5b506040517f5658633800000000000000000000000000000000000000000000000000000000815260200161028c565b3480156103c1575f80fd5b506102a46103d03660046116fb565b638b78c6d8600c9081525f91909152602090205490565b3480156103f2575f80fd5b506102c5610401366004611694565b6107e6565b348015610411575f80fd5b5060035461033b9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561043d575f80fd5b506102c561044c36600461175c565b6108a2565b34801561045c575f80fd5b506102c561046b366004611806565b61099c565b34801561047b575f80fd5b5061048f61048a366004611806565b610c39565b6040805192835273ffffffffffffffffffffffffffffffffffffffff90911660208301520161028c565b6102c56104c73660046116d3565b610d9b565b3480156104d7575f80fd5b506104eb6104e6366004611806565b610dad565b60405161028c9190611891565b348015610503575f80fd5b506102806105123660046116d3565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610538575f80fd5b506102a460025481565b6102c5610e47565b6102c5610e80565b34801561055d575f80fd5b506102a4600281565b348015610571575f80fd5b50638b78c6d8195461033b565b348015610589575f80fd5b5060075473ffffffffffffffffffffffffffffffffffffffff1661033b565b3480156105b3575f80fd5b506102a460055481565b3480156105c8575f80fd5b506102806105d73660046118a3565b610e93565b3480156105e7575f80fd5b506102c56105f636600461175c565b611071565b348015610606575f80fd5b506102806106153660046116fb565b60016020525f908152604090205460ff1681565b348015610634575f80fd5b506102a460065481565b348015610649575f80fd5b506102806106583660046118a3565b61110f565b348015610668575f80fd5b506102c561067736600461175c565b61114e565b348015610687575f80fd5b506102a460045481565b34801561069c575f80fd5b506102a4600181565b6102c56106b33660046116fb565b6111ec565b6102c56106c63660046116fb565b611226565b3480156106d6575f80fd5b506102806106e53660046116fb565b61124c565b3480156106f5575f80fd5b506102a46107043660046116fb565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f565863380000000000000000000000000000000000000000000000000000000014806107705750610770826112ab565b92915050565b6107803382611300565b50565b61078b61130b565b6107958282611325565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016107f181611331565b815f0361082a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035461084f9073ffffffffffffffffffffffffffffffffffffffff16333085611362565b8160055f828254610860919061191f565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b60026108ad81611331565b8382146108e6576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994575f84848381811061090357610903611932565b9050602002016020810190610918919061195f565b905080151560010361095a5761095587878481811061093957610939611932565b905060200201602081019061094e91906116fb565b6001611325565b61098b565b61098b87878481811061096f5761096f611932565b905060200201602081019061098491906116fb565b6001611300565b506001016108e8565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156109ed5760018160011c14303b106109e45763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f6109fb838501856119d4565b905080604001515f1480610a1157506060810151155b15610a48576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610a719073ffffffffffffffffffffffffffffffffffffffff16306113c4565b905081811015610ada5782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b82516003805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560208501516007805491909316911617905560408301515f556060830151600555610b4a336113f7565b610b598360800151600161143f565b826020015173ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff167fd20715546497e6d32bc9b61b35416a25a8cc41d2fb7f389a1bb26dc040213a3b856040015186606001518760800151604051610bf493929190928352602083019190915273ffffffffffffffffffffffffffffffffffffffff16604082015260600190565b60405180910390a35050508015610c34576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610c4681611331565b5f610c5385870187611afd565b90505f8160200151806020019051810190610c6e9190611b7a565b90508060055f828254610c819190611b91565b90915550508151600354610cae9173ffffffffffffffffffffffffffffffffffffffff9091169083611480565b81516003546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610d6c91611891565b60405180910390a260035490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610da361130b565b6107958282611300565b60605f610dbc838501856119d4565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092610e2e9201611ba4565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610e8861130b565b610e915f6114d3565b565b5f610e9c61130b565b5f610ea983850185611c47565b90505f8160200151806020019051810190610ec49190611b7a565b9050610ed0868261151d565b610f06576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055481600654610f17919061191f565b1115610f4f576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060065f828254610f60919061191f565b92505081905550600160045f828254610f79919061191f565b9091555050600354610fa29073ffffffffffffffffffffffffffffffffffffffff168783611480565b6003546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529188901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8716907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261105d91611891565b60405180910390a250600195945050505050565b600261107c81611331565b8382146110b5576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994576111078686838181106110d4576110d4611932565b90506020020160208101906110e991906116fb565b8585848181106110fb576110fb611932565b90506020020135611325565b6001016110b7565b5f8061111d83850185611c47565b90505f81602001518060200190518101906111389190611b7a565b9050611144868261151d565b9695505050505050565b600261115981611331565b838214611192576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994576111e48686838181106111b1576111b1611932565b90506020020160208101906111c691906116fb565b8585848181106111d8576111d8611932565b90506020020135611300565b600101611194565b6111f461130b565b63389a75e1600c52805f526020600c20805442111561121a57636f5e88185f526004601cfd5b5f9055610780816114d3565b61122e61130b565b8060601b61124357637448fbae5f526004601cfd5b610780816114d3565b5f8173ffffffffffffffffffffffffffffffffffffffff16611271638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806107705750638b78c6d8600c9081525f83905260209020546003161515610770565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa9216705000000000000000000000000000000000000000000000000000000001480610770575061077082611568565b61079582825f6115fe565b638b78c6d819543314610e91576382b429005f526004601cfd5b610795828260016115fe565b638b78c6d81954331461078057638b78c6d8600c52335f52806020600c205416610780576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f5114166113b657803d873b1517106113b657637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f5114166114c957803d853b1517106114c9576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526001602052604081205460ff1615801561156157506005548260065461155e919061191f565b11155b9392505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061077057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610770565b638b78c6d8600c52825f526020600c2080548381178361161f575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f60208284031215611665575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611561575f80fd5b5f602082840312156116a4575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146116ce575f80fd5b919050565b5f80604083850312156116e4575f80fd5b6116ed836116ab565b946020939093013593505050565b5f6020828403121561170b575f80fd5b611561826116ab565b5f8083601f840112611724575f80fd5b50813567ffffffffffffffff81111561173b575f80fd5b6020830191508360208260051b8501011115611755575f80fd5b9250929050565b5f805f806040858703121561176f575f80fd5b843567ffffffffffffffff811115611785575f80fd5b61179187828801611714565b909550935050602085013567ffffffffffffffff8111156117b0575f80fd5b6117bc87828801611714565b95989497509550505050565b5f8083601f8401126117d8575f80fd5b50813567ffffffffffffffff8111156117ef575f80fd5b602083019150836020828501011115611755575f80fd5b5f8060208385031215611817575f80fd5b823567ffffffffffffffff81111561182d575f80fd5b611839858286016117c8565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6115616020830184611845565b5f805f604084860312156118b5575f80fd5b6118be846116ab565b9250602084013567ffffffffffffffff8111156118d9575f80fd5b6118e5868287016117c8565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610770576107706118f2565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561196f575f80fd5b81358015158114611561575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff811182821017156119ce576119ce61197e565b60405290565b5f60a08284031280156119e5575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611a0957611a0961197e565b604052611a15836116ab565b8152611a23602084016116ab565b60208201526040838101359082015260608084013590820152611a48608084016116ab565b60808201529392505050565b5f82601f830112611a63575f80fd5b813567ffffffffffffffff811115611a7d57611a7d61197e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611aca57611aca61197e565b604052818152838201602001851015611ae1575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611b0d575f80fd5b813567ffffffffffffffff811115611b23575f80fd5b820160408185031215611b34575f80fd5b611b3c6119ab565b611b45826116ab565b8152602082013567ffffffffffffffff811115611b60575f80fd5b611b6c86828501611a54565b602083015250949350505050565b5f60208284031215611b8a575f80fd5b5051919050565b81810381811115610770576107706118f2565b602081525f825160038110611be0577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff60408401511660608301526060830151608080840152611c3f60a0840182611845565b949350505050565b5f60208284031215611c57575f80fd5b813567ffffffffffffffff811115611c6d575f80fd5b820160408185031215611c7e575f80fd5b611c866119ab565b813567ffffffffffffffff811115611c9c575f80fd5b611ca886828501611a54565b825250602082013567ffffffffffffffff811115611b60575f80fdfea2646970667358221220ae9431c5aa2e6d904568c209e18398528ed1256e1be4fbeb1526712b5c3f955964736f6c634300081a0033", t = class t extends K {
17
+ import { ERC20VariableIncentive as f0 } from "./Incentives/ERC20VariableIncentive.js";
18
+ import { PointsIncentive as b0 } from "./Incentives/PointsIncentive.js";
19
+ const a0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b611cfa806100895f395ff3fe60806040526004361061025d575f3560e01c8063547d18641161014b578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146106b8578063fe9fbb80146106cb578063fee81cf4146106ea575f80fd5b8063ec87621c14610691578063f04e283e146106a5575f80fd5b8063db09da12116100ac578063db09da121461063e578063dcc213611461065d578063dcc59b6f1461067c575f80fd5b8063c884ef83146105fb578063d54ad2a114610629575f80fd5b80638da5cb5b1161011b578063a4d66daf11610101578063a4d66daf146105a8578063bb1757cf146105bd578063be4994f8146105dc575f80fd5b80638da5cb5b146105665780639214fa4d1461057e575f80fd5b8063547d18641461052d57806354d1f13d14610542578063715018a61461054a57806375b238fc14610552575f80fd5b80632de94807116101db578063439fab91116101ab5780634a4ee7b1116101915780634a4ee7b1146104b95780634e7165a2146104cc578063514e62fc146104f8575f80fd5b8063439fab9114610451578063474f5a4414610470575f80fd5b80632de94807146103b657806330db555f146103e757806338d52e0f146104065780634359d28a14610432575f80fd5b80631cd64df411610230578063228cb73311610216578063228cb73314610360578063256929621461037457806328d6183b1461037c575f80fd5b80631cd64df4146102da5780631f1cb62b1461030f575f80fd5b806301ffc9a71461026157806307621eca14610295578063183a4f6e146102b25780631c10893f146102c7575b5f80fd5b34801561026c575f80fd5b5061028061027b366004611655565b61071b565b60405190151581526020015b60405180910390f35b3480156102a0575f80fd5b505f545b60405190815260200161028c565b6102c56102c0366004611694565b610776565b005b6102c56102d53660046116d3565b610783565b3480156102e5575f80fd5b506102806102f43660046116d3565b638b78c6d8600c9081525f9290925260209091205481161490565b34801561031a575f80fd5b5060075461033b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028c565b34801561036b575f80fd5b506102a45f5481565b6102c5610799565b348015610387575f80fd5b506040517f5658633800000000000000000000000000000000000000000000000000000000815260200161028c565b3480156103c1575f80fd5b506102a46103d03660046116fb565b638b78c6d8600c9081525f91909152602090205490565b3480156103f2575f80fd5b506102c5610401366004611694565b6107e6565b348015610411575f80fd5b5060035461033b9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561043d575f80fd5b506102c561044c36600461175c565b6108a2565b34801561045c575f80fd5b506102c561046b366004611806565b61099c565b34801561047b575f80fd5b5061048f61048a366004611806565b610c39565b6040805192835273ffffffffffffffffffffffffffffffffffffffff90911660208301520161028c565b6102c56104c73660046116d3565b610d9b565b3480156104d7575f80fd5b506104eb6104e6366004611806565b610dad565b60405161028c9190611891565b348015610503575f80fd5b506102806105123660046116d3565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610538575f80fd5b506102a460025481565b6102c5610e47565b6102c5610e80565b34801561055d575f80fd5b506102a4600281565b348015610571575f80fd5b50638b78c6d8195461033b565b348015610589575f80fd5b5060075473ffffffffffffffffffffffffffffffffffffffff1661033b565b3480156105b3575f80fd5b506102a460055481565b3480156105c8575f80fd5b506102806105d73660046118a3565b610e93565b3480156105e7575f80fd5b506102c56105f636600461175c565b611071565b348015610606575f80fd5b506102806106153660046116fb565b60016020525f908152604090205460ff1681565b348015610634575f80fd5b506102a460065481565b348015610649575f80fd5b506102806106583660046118a3565b61110f565b348015610668575f80fd5b506102c561067736600461175c565b61114e565b348015610687575f80fd5b506102a460045481565b34801561069c575f80fd5b506102a4600181565b6102c56106b33660046116fb565b6111ec565b6102c56106c63660046116fb565b611226565b3480156106d6575f80fd5b506102806106e53660046116fb565b61124c565b3480156106f5575f80fd5b506102a46107043660046116fb565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f565863380000000000000000000000000000000000000000000000000000000014806107705750610770826112ab565b92915050565b6107803382611300565b50565b61078b61130b565b6107958282611325565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016107f181611331565b815f0361082a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035461084f9073ffffffffffffffffffffffffffffffffffffffff16333085611362565b8160055f828254610860919061191f565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b60026108ad81611331565b8382146108e6576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994575f84848381811061090357610903611932565b9050602002016020810190610918919061195f565b905080151560010361095a5761095587878481811061093957610939611932565b905060200201602081019061094e91906116fb565b6001611325565b61098b565b61098b87878481811061096f5761096f611932565b905060200201602081019061098491906116fb565b6001611300565b506001016108e8565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156109ed5760018160011c14303b106109e45763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f6109fb838501856119d4565b905080604001515f1480610a1157506060810151155b15610a48576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610a719073ffffffffffffffffffffffffffffffffffffffff16306113c4565b905081811015610ada5782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b82516003805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560208501516007805491909316911617905560408301515f556060830151600555610b4a336113f7565b610b598360800151600161143f565b826020015173ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff167fd20715546497e6d32bc9b61b35416a25a8cc41d2fb7f389a1bb26dc040213a3b856040015186606001518760800151604051610bf493929190928352602083019190915273ffffffffffffffffffffffffffffffffffffffff16604082015260600190565b60405180910390a35050508015610c34576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610c4681611331565b5f610c5385870187611afd565b90505f8160200151806020019051810190610c6e9190611b7a565b90508060055f828254610c819190611b91565b90915550508151600354610cae9173ffffffffffffffffffffffffffffffffffffffff9091169083611480565b81516003546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610d6c91611891565b60405180910390a260035490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610da361130b565b6107958282611300565b60605f610dbc838501856119d4565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092610e2e9201611ba4565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610e8861130b565b610e915f6114d3565b565b5f610e9c61130b565b5f610ea983850185611c47565b90505f8160200151806020019051810190610ec49190611b7a565b9050610ed0868261151d565b610f06576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055481600654610f17919061191f565b1115610f4f576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060065f828254610f60919061191f565b92505081905550600160045f828254610f79919061191f565b9091555050600354610fa29073ffffffffffffffffffffffffffffffffffffffff168783611480565b6003546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529188901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8716907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261105d91611891565b60405180910390a250600195945050505050565b600261107c81611331565b8382146110b5576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994576111078686838181106110d4576110d4611932565b90506020020160208101906110e991906116fb565b8585848181106110fb576110fb611932565b90506020020135611325565b6001016110b7565b5f8061111d83850185611c47565b90505f81602001518060200190518101906111389190611b7a565b9050611144868261151d565b9695505050505050565b600261115981611331565b838214611192576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610994576111e48686838181106111b1576111b1611932565b90506020020160208101906111c691906116fb565b8585848181106111d8576111d8611932565b90506020020135611300565b600101611194565b6111f461130b565b63389a75e1600c52805f526020600c20805442111561121a57636f5e88185f526004601cfd5b5f9055610780816114d3565b61122e61130b565b8060601b61124357637448fbae5f526004601cfd5b610780816114d3565b5f8173ffffffffffffffffffffffffffffffffffffffff16611271638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806107705750638b78c6d8600c9081525f83905260209020546003161515610770565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa9216705000000000000000000000000000000000000000000000000000000001480610770575061077082611568565b61079582825f6115fe565b638b78c6d819543314610e91576382b429005f526004601cfd5b610795828260016115fe565b638b78c6d81954331461078057638b78c6d8600c52335f52806020600c205416610780576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f5114166113b657803d873b1517106113b657637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f5114166114c957803d853b1517106114c9576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526001602052604081205460ff1615801561156157506005548260065461155e919061191f565b11155b9392505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061077057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610770565b638b78c6d8600c52825f526020600c2080548381178361161f575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f60208284031215611665575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611561575f80fd5b5f602082840312156116a4575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146116ce575f80fd5b919050565b5f80604083850312156116e4575f80fd5b6116ed836116ab565b946020939093013593505050565b5f6020828403121561170b575f80fd5b611561826116ab565b5f8083601f840112611724575f80fd5b50813567ffffffffffffffff81111561173b575f80fd5b6020830191508360208260051b8501011115611755575f80fd5b9250929050565b5f805f806040858703121561176f575f80fd5b843567ffffffffffffffff811115611785575f80fd5b61179187828801611714565b909550935050602085013567ffffffffffffffff8111156117b0575f80fd5b6117bc87828801611714565b95989497509550505050565b5f8083601f8401126117d8575f80fd5b50813567ffffffffffffffff8111156117ef575f80fd5b602083019150836020828501011115611755575f80fd5b5f8060208385031215611817575f80fd5b823567ffffffffffffffff81111561182d575f80fd5b611839858286016117c8565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6115616020830184611845565b5f805f604084860312156118b5575f80fd5b6118be846116ab565b9250602084013567ffffffffffffffff8111156118d9575f80fd5b6118e5868287016117c8565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610770576107706118f2565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561196f575f80fd5b81358015158114611561575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff811182821017156119ce576119ce61197e565b60405290565b5f60a08284031280156119e5575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611a0957611a0961197e565b604052611a15836116ab565b8152611a23602084016116ab565b60208201526040838101359082015260608084013590820152611a48608084016116ab565b60808201529392505050565b5f82601f830112611a63575f80fd5b813567ffffffffffffffff811115611a7d57611a7d61197e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611aca57611aca61197e565b604052818152838201602001851015611ae1575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611b0d575f80fd5b813567ffffffffffffffff811115611b23575f80fd5b820160408185031215611b34575f80fd5b611b3c6119ab565b611b45826116ab565b8152602082013567ffffffffffffffff811115611b60575f80fd5b611b6c86828501611a54565b602083015250949350505050565b5f60208284031215611b8a575f80fd5b5051919050565b81810381811115610770576107706118f2565b602081525f825160038110611be0577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff60408401511660608301526060830151608080840152611c3f60a0840182611845565b949350505050565b5f60208284031215611c57575f80fd5b813567ffffffffffffffff811115611c6d575f80fd5b820160408185031215611c7e575f80fd5b611c866119ab565b813567ffffffffffffffff811115611c9c575f80fd5b611ca886828501611a54565b825250602082013567ffffffffffffffff811115611b60575f80fdfea2646970667358221220ae9431c5aa2e6d904568c209e18398528ed1256e1be4fbeb1526712b5c3f955964736f6c634300081a0033", s = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, t = class t extends Z {
20
20
  constructor() {
21
- super(...arguments), this.abi = r;
21
+ super(...arguments), this.abi = n;
22
22
  }
23
23
  /**
24
24
  * The owner of the incentive
@@ -29,7 +29,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
29
29
  * @returns {Promise<Address>}
30
30
  */
31
31
  async owner(f) {
32
- return await g(this._config, {
32
+ return await u(this._config, {
33
33
  address: this.assertValidAddress(),
34
34
  args: [],
35
35
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -45,7 +45,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
45
45
  * @returns {Promise<bigint>} - The current reward
46
46
  */
47
47
  async currentReward(f) {
48
- return await u(this._config, {
48
+ return await p(this._config, {
49
49
  address: this.assertValidAddress(),
50
50
  args: [],
51
51
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -61,7 +61,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
61
61
  * @returns {Promise<bigint>}
62
62
  */
63
63
  async claims(f) {
64
- return await p(this._config, {
64
+ return await y(this._config, {
65
65
  address: this.assertValidAddress(),
66
66
  args: [],
67
67
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -77,7 +77,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
77
77
  * @returns {Promise<bigint>}
78
78
  */
79
79
  async totalClaimed(f) {
80
- return await y(this._config, {
80
+ return await C(this._config, {
81
81
  address: this.assertValidAddress(),
82
82
  args: [],
83
83
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -110,7 +110,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
110
110
  * @returns {Promise<Address>}
111
111
  */
112
112
  async asset(f) {
113
- return await C(this._config, {
113
+ return await A(this._config, {
114
114
  address: this.assertValidAddress(),
115
115
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
116
116
  ...f
@@ -125,7 +125,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
125
125
  * @returns {Promise<Address>}
126
126
  */
127
127
  async peg(f) {
128
- return await A(this._config, {
128
+ return await R(this._config, {
129
129
  address: this.assertValidAddress(),
130
130
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
131
131
  ...f
@@ -140,7 +140,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
140
140
  * @returns {Promise<bigint>}
141
141
  */
142
142
  async reward(f) {
143
- return await V(this._config, {
143
+ return await E(this._config, {
144
144
  address: this.assertValidAddress(),
145
145
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
146
146
  ...f
@@ -183,17 +183,17 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
183
183
  * @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - Returns true if successfully claimed
184
184
  */
185
185
  async claimRaw(f, b) {
186
- const { request: a, result: e } = await v(
186
+ const { request: a, result: e } = await V(
187
187
  this._config,
188
188
  {
189
189
  address: this.assertValidAddress(),
190
- args: [o(f)],
190
+ args: [l(f)],
191
191
  ...this.optionallyAttachAccount(),
192
192
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
193
193
  ...b
194
194
  }
195
195
  );
196
- return { hash: await R(this._config, a), result: e };
196
+ return { hash: await v(this._config, a), result: e };
197
197
  }
198
198
  /**
199
199
  * Clawback assets from the incentive
@@ -217,17 +217,17 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
217
217
  * @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the assets were successfully clawbacked
218
218
  */
219
219
  async clawbackRaw(f, b) {
220
- const { request: a, result: e } = await P(
220
+ const { request: a, result: e } = await D(
221
221
  this._config,
222
222
  {
223
223
  address: this.assertValidAddress(),
224
- args: [o(f)],
224
+ args: [l(f)],
225
225
  ...this.optionallyAttachAccount(),
226
226
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
227
227
  ...b
228
228
  }
229
229
  );
230
- return { hash: await E(this._config, a), result: e };
230
+ return { hash: await _(this._config, a), result: e };
231
231
  }
232
232
  /**
233
233
  * Check if an incentive is claimable.
@@ -239,7 +239,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
239
239
  * @returns {Promise<boolean>} = True if the incentive is claimable based on the data payload
240
240
  */
241
241
  async isClaimable(f, b) {
242
- return await D(this._config, {
242
+ return await P(this._config, {
243
243
  address: this.assertValidAddress(),
244
244
  args: [f.target, f.data],
245
245
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -255,7 +255,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
255
255
  * @returns {Promise<Address>} = The address of the token the reward is pegged to
256
256
  */
257
257
  async getPeg(f) {
258
- return await _(this._config, {
258
+ return await T(this._config, {
259
259
  address: this.assertValidAddress(),
260
260
  args: [],
261
261
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -313,9 +313,9 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
313
313
  b
314
314
  );
315
315
  return {
316
- abi: r,
317
- bytecode: b0,
318
- args: [l(a)],
316
+ abi: n,
317
+ bytecode: a0,
318
+ args: [m(a)],
319
319
  ...this.optionallyAttachAccount(e.account)
320
320
  };
321
321
  }
@@ -327,7 +327,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
327
327
  * @returns {Hex} - Returns an encoded uint256
328
328
  */
329
329
  buildClawbackData(f) {
330
- return s([{ type: "uint256" }], [f]);
330
+ return i([{ type: "uint256" }], [f]);
331
331
  }
332
332
  /**
333
333
  * Builds the claim data for the ERC20PeggedIncentive.
@@ -338,7 +338,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
338
338
  * @description This function returns the encoded claim data for the ERC20PeggedIncentive.
339
339
  */
340
340
  buildClaimData(f) {
341
- return s(
341
+ return i(
342
342
  [{ type: "uint256", name: "rewardAmount" }],
343
343
  [f]
344
344
  );
@@ -354,7 +354,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
354
354
  */
355
355
  async getTopupPayload(f) {
356
356
  var b, a, e;
357
- return l({
357
+ return m({
358
358
  asset: await this.asset() ?? c,
359
359
  peg: ((b = this.payload) == null ? void 0 : b.peg) ?? c,
360
360
  reward: ((a = this.payload) == null ? void 0 : a.reward) ?? 0n,
@@ -371,7 +371,7 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
371
371
  * @returns {bigint} Returns the reward amount from a claim data payload
372
372
  */
373
373
  decodeClaimData(f) {
374
- const b = n(
374
+ const b = o(
375
375
  [
376
376
  {
377
377
  type: "tuple",
@@ -384,25 +384,25 @@ const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
384
384
  ],
385
385
  f
386
386
  );
387
- return n(
387
+ return o(
388
388
  [{ type: "uint256" }],
389
389
  b[0].incentiveData
390
390
  )[0];
391
391
  }
392
392
  };
393
393
  t.bases = {
394
- 31337: void 0,
395
- ...J
396
- }, t.registryType = Q.INCENTIVE;
397
- let i = t;
398
- function l({
394
+ ...s != null && s.VITE_ERC20_INCENTIVE_BASE ? { 31337: void 0 } : {},
395
+ ...U
396
+ }, t.registryType = H.INCENTIVE;
397
+ let r = t;
398
+ function m({
399
399
  asset: d,
400
400
  peg: f,
401
401
  reward: b,
402
402
  limit: a,
403
403
  manager: e = c
404
404
  }) {
405
- return s(
405
+ return i(
406
406
  [
407
407
  { type: "address", name: "asset" },
408
408
  { type: "address", name: "peg" },
@@ -413,37 +413,37 @@ function l({
413
413
  [d, f, b, a, e]
414
414
  );
415
415
  }
416
- const m = {
417
- [T]: f0,
418
- [B]: $,
419
- [N]: S,
420
- [j]: W,
421
- [q]: i,
422
- [x]: O,
416
+ const h = {
417
+ [N]: b0,
418
+ [O]: Q,
419
+ [S]: J,
420
+ [k]: W,
421
+ [x]: r,
422
+ [j]: $,
423
423
  // [AERC1155Incentive as Hex]: ERC1155Incentive,
424
- [G]: U,
425
- [z]: Z,
424
+ [G]: K,
425
+ [q]: f0,
426
426
  [F]: Y,
427
427
  [L]: X
428
428
  };
429
- async function C0(d, f, b) {
430
- const a = await H(d.config, {
431
- abi: k,
429
+ async function A0(d, f, b) {
430
+ const a = await z(d.config, {
431
+ abi: B,
432
432
  functionName: "getComponentInterface",
433
433
  address: f,
434
434
  ...b
435
- }), e = m[a];
435
+ }), e = h[a];
436
436
  if (!e)
437
437
  throw new M(
438
- Object.keys(m),
438
+ Object.keys(h),
439
439
  a
440
440
  );
441
441
  return new e(d, f);
442
442
  }
443
443
  export {
444
- i as E,
445
- m as I,
446
- C0 as i,
447
- l as p
444
+ r as E,
445
+ h as I,
446
+ A0 as i,
447
+ m as p
448
448
  };
449
- //# sourceMappingURL=Incentive-Bz_g-nID.js.map
449
+ //# sourceMappingURL=Incentive-CYj6lbM5.js.map