@boostxyz/sdk 2.1.2 → 2.2.1

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 (157) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.cjs.map +1 -1
  3. package/dist/Actions/Action.d.ts +2 -1
  4. package/dist/Actions/Action.d.ts.map +1 -1
  5. package/dist/Actions/Action.js +14 -13
  6. package/dist/Actions/Action.js.map +1 -1
  7. package/dist/Actions/EventAction.cjs +1 -1
  8. package/dist/Actions/EventAction.cjs.map +1 -1
  9. package/dist/Actions/EventAction.d.ts +219 -0
  10. package/dist/Actions/EventAction.d.ts.map +1 -1
  11. package/dist/Actions/EventAction.js +39 -39
  12. package/dist/Actions/EventAction.js.map +1 -1
  13. package/dist/AllowLists/AllowList.cjs +1 -1
  14. package/dist/AllowLists/AllowList.cjs.map +1 -1
  15. package/dist/AllowLists/AllowList.d.ts +2 -1
  16. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  17. package/dist/AllowLists/AllowList.js +18 -17
  18. package/dist/AllowLists/AllowList.js.map +1 -1
  19. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  20. package/dist/AllowLists/SimpleAllowList.js +9 -9
  21. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  22. package/dist/AllowLists/SimpleDenyList.js +2 -2
  23. package/dist/Auth/PassthroughAuth.cjs +1 -1
  24. package/dist/Auth/PassthroughAuth.js +1 -1
  25. package/dist/BoostCore.cjs +2 -2
  26. package/dist/BoostCore.cjs.map +1 -1
  27. package/dist/BoostCore.d.ts +33 -0
  28. package/dist/BoostCore.d.ts.map +1 -1
  29. package/dist/BoostCore.js +98 -81
  30. package/dist/BoostCore.js.map +1 -1
  31. package/dist/BoostRegistry.cjs +1 -1
  32. package/dist/BoostRegistry.js +12 -12
  33. package/dist/{Budget-CUIFf1Br.js → Budget-2Zb3Mb-8.js} +40 -39
  34. package/dist/{Budget-CUIFf1Br.js.map → Budget-2Zb3Mb-8.js.map} +1 -1
  35. package/dist/{Budget-cI30CIMN.cjs → Budget-2xKEvkbL.cjs} +2 -2
  36. package/dist/{Budget-cI30CIMN.cjs.map → Budget-2xKEvkbL.cjs.map} +1 -1
  37. package/dist/Budgets/Budget.cjs +1 -1
  38. package/dist/Budgets/Budget.d.ts +2 -1
  39. package/dist/Budgets/Budget.d.ts.map +1 -1
  40. package/dist/Budgets/Budget.js +3 -3
  41. package/dist/Budgets/ManagedBudget.cjs +1 -1
  42. package/dist/Budgets/ManagedBudget.js +33 -33
  43. package/dist/Deployable/DeployableTarget.cjs +1 -1
  44. package/dist/Deployable/DeployableTarget.js +1 -1
  45. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  46. package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -1
  47. package/dist/Deployable/DeployableTargetWithRBAC.d.ts +158 -0
  48. package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -1
  49. package/dist/Deployable/DeployableTargetWithRBAC.js +268 -31
  50. package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -1
  51. package/dist/Incentive-CfIjdL4T.cjs +2 -0
  52. package/dist/Incentive-CfIjdL4T.cjs.map +1 -0
  53. package/dist/Incentive-DNwTyG5Z.js +393 -0
  54. package/dist/Incentive-DNwTyG5Z.js.map +1 -0
  55. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  56. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  57. package/dist/Incentives/AllowListIncentive.js +28 -28
  58. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  59. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  60. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  61. package/dist/Incentives/CGDAIncentive.d.ts +30 -0
  62. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  63. package/dist/Incentives/CGDAIncentive.js +25 -25
  64. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  65. package/dist/Incentives/ERC1155Incentive.d.ts +25 -0
  66. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  67. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  68. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  69. package/dist/Incentives/ERC20Incentive.d.ts +30 -0
  70. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  71. package/dist/Incentives/ERC20Incentive.js +42 -42
  72. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  73. package/dist/Incentives/ERC20PeggedIncentive.d.ts +905 -0
  74. package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -0
  75. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  76. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  77. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +67 -0
  78. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  79. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +31 -31
  80. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  81. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  82. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  83. package/dist/Incentives/ERC20VariableIncentive.d.ts +20 -0
  84. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  85. package/dist/Incentives/ERC20VariableIncentive.js +18 -18
  86. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  87. package/dist/Incentives/Incentive.cjs +1 -1
  88. package/dist/Incentives/Incentive.cjs.map +1 -1
  89. package/dist/Incentives/Incentive.d.ts +26 -4
  90. package/dist/Incentives/Incentive.d.ts.map +1 -1
  91. package/dist/Incentives/Incentive.js +20 -40
  92. package/dist/Incentives/Incentive.js.map +1 -1
  93. package/dist/Incentives/PointsIncentive.cjs +1 -1
  94. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  95. package/dist/Incentives/PointsIncentive.d.ts +25 -0
  96. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  97. package/dist/Incentives/PointsIncentive.js +29 -29
  98. package/dist/Incentives/PointsIncentive.js.map +1 -1
  99. package/dist/{SimpleDenyList-Ds0CQ4uR.cjs → SimpleDenyList-BQ0GqQfC.cjs} +2 -2
  100. package/dist/{SimpleDenyList-Ds0CQ4uR.cjs.map → SimpleDenyList-BQ0GqQfC.cjs.map} +1 -1
  101. package/dist/{SimpleDenyList-CXruWOyu.js → SimpleDenyList-D49GF3NX.js} +11 -11
  102. package/dist/{SimpleDenyList-CXruWOyu.js.map → SimpleDenyList-D49GF3NX.js.map} +1 -1
  103. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  104. package/dist/Validators/LimitedSignerValidator.d.ts +10 -0
  105. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  106. package/dist/Validators/LimitedSignerValidator.js +15 -15
  107. package/dist/Validators/SignerValidator.cjs +1 -1
  108. package/dist/Validators/SignerValidator.cjs.map +1 -1
  109. package/dist/Validators/SignerValidator.d.ts +10 -0
  110. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  111. package/dist/Validators/SignerValidator.js +8 -8
  112. package/dist/Validators/SignerValidator.js.map +1 -1
  113. package/dist/Validators/Validator.cjs +1 -1
  114. package/dist/Validators/Validator.cjs.map +1 -1
  115. package/dist/Validators/Validator.d.ts +2 -1
  116. package/dist/Validators/Validator.d.ts.map +1 -1
  117. package/dist/Validators/Validator.js +20 -19
  118. package/dist/Validators/Validator.js.map +1 -1
  119. package/dist/{componentInterfaces-dakxtQHf.js → componentInterfaces-C4uAYjSo.js} +12 -12
  120. package/dist/componentInterfaces-C4uAYjSo.js.map +1 -0
  121. package/dist/deployments.json +3 -0
  122. package/dist/{generated-BTslM7bf.js → generated-B5pVBNb-.js} +1835 -730
  123. package/dist/generated-B5pVBNb-.js.map +1 -0
  124. package/dist/generated-D50hBWtr.cjs +3 -0
  125. package/dist/generated-D50hBWtr.cjs.map +1 -0
  126. package/dist/index.cjs +1 -1
  127. package/dist/index.d.ts +1 -0
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +113 -110
  130. package/package.json +2 -2
  131. package/src/Actions/Action.ts +3 -0
  132. package/src/Actions/EventAction.test.ts +49 -2
  133. package/src/Actions/EventAction.ts +12 -4
  134. package/src/AllowLists/AllowList.ts +3 -0
  135. package/src/BoostCore.ts +27 -5
  136. package/src/Budgets/Budget.ts +3 -0
  137. package/src/Deployable/DeployableTargetWithRBAC.test.ts +175 -0
  138. package/src/Deployable/DeployableTargetWithRBAC.ts +281 -0
  139. package/src/Incentives/AllowListIncentive.test.ts +48 -0
  140. package/src/Incentives/AllowListIncentive.ts +1 -1
  141. package/src/Incentives/CGDAIncentive.test.ts +50 -0
  142. package/src/Incentives/CGDAIncentive.ts +1 -1
  143. package/src/Incentives/ERC1155Incentive.ts +1 -1
  144. package/src/Incentives/ERC20Incentive.test.ts +49 -0
  145. package/src/Incentives/ERC20Incentive.ts +1 -1
  146. package/src/Incentives/ERC20PeggedIncentive.ts +507 -0
  147. package/src/Incentives/ERC20VariableIncentive.test.ts +48 -0
  148. package/src/Incentives/ERC20VariableIncentive.ts +1 -1
  149. package/src/Incentives/Incentive.ts +9 -1
  150. package/src/Incentives/PointsIncentive.test.ts +51 -0
  151. package/src/Incentives/PointsIncentive.ts +1 -1
  152. package/src/Validators/Validator.ts +3 -0
  153. package/src/index.ts +1 -0
  154. package/dist/componentInterfaces-dakxtQHf.js.map +0 -1
  155. package/dist/generated-BTslM7bf.js.map +0 -1
  156. package/dist/generated-DhXxTQ20.cjs +0 -3
  157. package/dist/generated-DhXxTQ20.cjs.map +0 -1
@@ -244,5 +244,163 @@ export declare class DeployableTargetWithRBAC<Payload, ABI extends Abi> extends
244
244
  * @returns {Promise<boolean>} - True if the account is authorized
245
245
  */
246
246
  isAuthorized(account: Address, params?: ReadParams): Promise<boolean>;
247
+ /**
248
+ * Transfer ownership of the contract to a new address
249
+ *
250
+ * @public
251
+ * @async
252
+ * @param {Address} newOwner - The address to transfer ownership to
253
+ * @param {?WriteParams} [params]
254
+ * @returns {Promise<void>}
255
+ */
256
+ transferOwnership(newOwner: Address, params?: WriteParams): Promise<void>;
257
+ /**
258
+ * Transfer ownership of the contract to a new address
259
+ *
260
+ * @public
261
+ * @async
262
+ * @param {Address} newOwner - The address to transfer ownership to
263
+ * @param {?WriteParams} [params]
264
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
265
+ */
266
+ transferOwnershipRaw(newOwner: Address, params?: WriteParams): Promise<{
267
+ hash: `0x${string}`;
268
+ result: void;
269
+ }>;
270
+ /**
271
+ * Renounce ownership of the contract
272
+ *
273
+ * @public
274
+ * @async
275
+ * @param {?WriteParams} [params]
276
+ * @returns {Promise<void>}
277
+ */
278
+ renounceOwnership(params?: WriteParams): Promise<void>;
279
+ /**
280
+ * Renounce ownership of the contract
281
+ *
282
+ * @public
283
+ * @async
284
+ * @param {?WriteParams} [params]
285
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
286
+ */
287
+ renounceOwnershipRaw(params?: WriteParams): Promise<{
288
+ hash: `0x${string}`;
289
+ result: void;
290
+ }>;
291
+ /**
292
+ * Request a two-step ownership handover to the caller
293
+ * The request will automatically expire in 48 hours
294
+ *
295
+ * Note: This is part of a two-step ownership transfer process:
296
+ * 1. New owner calls requestOwnershipHandover()
297
+ * 2. Current owner calls completeOwnershipHandover(newOwner)
298
+ *
299
+ * @public
300
+ * @async
301
+ * @param {?WriteParams} [params]
302
+ * @returns {Promise<void>}
303
+ */
304
+ requestOwnershipHandover(params?: WriteParams): Promise<void>;
305
+ /**
306
+ * Request a two-step ownership handover to the caller
307
+ * The request will automatically expire in 48 hours
308
+ *
309
+ * @public
310
+ * @async
311
+ * @param {?WriteParams} [params]
312
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
313
+ */
314
+ requestOwnershipHandoverRaw(params?: WriteParams): Promise<{
315
+ hash: `0x${string}`;
316
+ result: void;
317
+ }>;
318
+ /**
319
+ * Complete a pending ownership handover to a new owner
320
+ * Must be called by the current owner after the new owner has requested the handover
321
+ *
322
+ * Note: This is part of a two-step ownership transfer process:
323
+ * 1. New owner calls requestOwnershipHandover()
324
+ * 2. Current owner calls completeOwnershipHandover(newOwner)
325
+ *
326
+ * @public
327
+ * @async
328
+ * @param {Address} pendingOwner - The address that requested the ownership handover
329
+ * @param {?WriteParams} [params]
330
+ * @returns {Promise<void>}
331
+ */
332
+ completeOwnershipHandover(pendingOwner: Address, params?: WriteParams): Promise<void>;
333
+ /**
334
+ * Complete a pending ownership handover to a new owner
335
+ * Must be called by the current owner after the new owner has requested the handover
336
+ *
337
+ * @public
338
+ * @async
339
+ * @param {Address} pendingOwner - The address that requested the ownership handover
340
+ * @param {?WriteParams} [params]
341
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
342
+ */
343
+ completeOwnershipHandoverRaw(pendingOwner: Address, params?: WriteParams): Promise<{
344
+ hash: `0x${string}`;
345
+ result: void;
346
+ }>;
347
+ /**
348
+ * Cancel a pending ownership handover request
349
+ * Must be called by the account that originally requested the handover
350
+ *
351
+ * @public
352
+ * @async
353
+ * @param {?WriteParams} [params]
354
+ * @returns {Promise<void>}
355
+ */
356
+ cancelOwnershipHandover(params?: WriteParams): Promise<void>;
357
+ /**
358
+ * Cancel a pending ownership handover request
359
+ * Must be called by the account that originally requested the handover
360
+ *
361
+ * @public
362
+ * @async
363
+ * @param {?WriteParams} [params]
364
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
365
+ */
366
+ cancelOwnershipHandoverRaw(params?: WriteParams): Promise<{
367
+ hash: `0x${string}`;
368
+ result: void;
369
+ }>;
370
+ /**
371
+ * Get the expiry timestamp for a pending ownership handover
372
+ * Returns 0 if there is no pending handover request for the given address
373
+ *
374
+ * @public
375
+ * @param {Address} pendingOwner - The address to check for pending handover requests
376
+ * @param {?ReadParams} [params]
377
+ * @returns {Promise<bigint>} - The timestamp when the handover request expires, or 0 if no request exists
378
+ */
379
+ ownershipHandoverExpiresAt(pendingOwner: Address, params?: ReadParams): Promise<bigint>;
380
+ /**
381
+ * Allow the caller to remove their own roles
382
+ * If the caller does not have a role, then it will be a no-op for that role
383
+ *
384
+ * @public
385
+ * @async
386
+ * @param {Roles} roles - Bitmap of roles to renounce
387
+ * @param {?WriteParams} [params]
388
+ * @returns {Promise<void>}
389
+ */
390
+ renounceRoles(roles: Roles, params?: WriteParams): Promise<void>;
391
+ /**
392
+ * Allow the caller to remove their own roles
393
+ * If the caller does not have a role, then it will be a no-op for that role
394
+ *
395
+ * @public
396
+ * @async
397
+ * @param {Roles} roles - Bitmap of roles to renounce
398
+ * @param {?WriteParams} [params]
399
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
400
+ */
401
+ renounceRolesRaw(roles: Roles, params?: WriteParams): Promise<{
402
+ hash: `0x${string}`;
403
+ result: void;
404
+ }>;
247
405
  }
248
406
  //# sourceMappingURL=DeployableTargetWithRBAC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeployableTargetWithRBAC.d.ts","sourceRoot":"","sources":["../../src/Deployable/DeployableTargetWithRBAC.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAeR,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;;;;;;GAQG;AACH,oBAAY,KAAK;IAEf,OAAY;IAEZ,KAAU;CACX;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CACjB,KAAK,SAAS,iBAAiB,CAAC,OAAO,OAAO,CAAC,GAAG,iBAAiB,CACjE,OAAO,OAAO,CACf,IACC,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IAiBtB;;;;;;;;OAQG;IACU,uBAAuB,CAAC,MAAM,CAAC,EAAE,WAAW;IAIzD;;;;;;;;OAQG;IACU,0BAA0B,CAAC,MAAM,CAAC,EAAE,WAAW;;;;IAe5D;;;;;;;;OAQG;IACI,0BAA0B,CAC/B,YAAY,EAAE,OAAO,EACrB,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,MAAM,CAAC;IAUlB;;;;;;;;;OASG;IACU,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,WAAW;IAI7D;;;;;;;;;OASG;IACU,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,WAAW;;;;CAcjE"}
@@ -1,8 +1,8 @@
1
- import { S as h, a as c, C as l, c as d, x as A, d as u, e as g, g as w, i as y, A as R, y as f, j as p, k as B, p as _ } from "../generated-BTslM7bf.js";
2
- import { E as m } from "../generated-BTslM7bf.js";
3
- import { DeployableTarget as M } from "./DeployableTarget.js";
4
- var o = /* @__PURE__ */ ((e) => (e[e.MANAGER = 1n] = "MANAGER", e[e.ADMIN = 2n] = "ADMIN", e))(o || {});
5
- class v extends M {
1
+ import { c as o, d as c, I as l, u as d, R as u, m as w, e as A, i as R, M as g, j as y, k as p, l as f, Y as _, t as x, $ as z, n as V, U as v, V as O, Z as q, L as M, q as H, r as m, D as k, H as D, E, W as N, s as b } from "../generated-B5pVBNb-.js";
2
+ import { z as Y } from "../generated-B5pVBNb-.js";
3
+ import { DeployableTarget as I } from "./DeployableTarget.js";
4
+ var h = /* @__PURE__ */ ((r) => (r[r.MANAGER = 1n] = "MANAGER", r[r.ADMIN = 2n] = "ADMIN", r))(h || {});
5
+ class L 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
@@ -31,14 +31,14 @@ class v extends M {
31
31
  * @returns {Promise<void>}
32
32
  */
33
33
  async setAuthorizedRaw(s, t, a) {
34
- const { request: i, result: r } = await h(this._config, {
34
+ const { request: e, result: i } = await o(this._config, {
35
35
  address: this.assertValidAddress(),
36
36
  args: [s, t],
37
37
  ...this.optionallyAttachAccount(),
38
38
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
39
39
  ...a
40
40
  });
41
- return { hash: await c(this._config, i), result: r };
41
+ return { hash: await c(this._config, e), result: i };
42
42
  }
43
43
  /**
44
44
  * Grant permissions for a user on the rbac.
@@ -72,7 +72,7 @@ class v extends M {
72
72
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
73
73
  */
74
74
  async grantRolesRaw(s, t, a) {
75
- const { request: i, result: r } = await l(this._config, {
75
+ const { request: e, result: i } = await l(this._config, {
76
76
  address: this.assertValidAddress(),
77
77
  args: [s, t],
78
78
  ...this.optionallyAttachAccount(),
@@ -82,8 +82,8 @@ class v extends M {
82
82
  return { hash: await d(
83
83
  this._config,
84
84
  // biome-ignore lint/suspicious/noExplicitAny: negligible low level lack of type intersection
85
- i
86
- ), result: r };
85
+ e
86
+ ), result: i };
87
87
  }
88
88
  /**
89
89
  * Revoke permissions for a user on the rbac.
@@ -117,18 +117,18 @@ class v extends M {
117
117
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
118
118
  */
119
119
  async revokeRolesRaw(s, t, a) {
120
- const { request: i, result: r } = await A(this._config, {
120
+ const { request: e, result: i } = await u(this._config, {
121
121
  address: this.assertValidAddress(),
122
122
  args: [s, t],
123
123
  ...this.optionallyAttachAccount(),
124
124
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
125
125
  ...a
126
126
  });
127
- return { hash: await u(
127
+ return { hash: await w(
128
128
  this._config,
129
129
  // biome-ignore lint/suspicious/noExplicitAny: negligible low level lack of type intersection
130
- i
131
- ), result: r };
130
+ e
131
+ ), result: i };
132
132
  }
133
133
  /**
134
134
  * Grant many accounts permissions on the rbac.
@@ -164,18 +164,18 @@ class v extends M {
164
164
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
165
165
  */
166
166
  async grantManyRolesRaw(s, t, a) {
167
- const { request: i, result: r } = await g(this._config, {
167
+ const { request: e, result: i } = await A(this._config, {
168
168
  address: this.assertValidAddress(),
169
169
  args: [s, t],
170
170
  ...this.optionallyAttachAccount(),
171
171
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
172
172
  ...a
173
173
  });
174
- return { hash: await w(
174
+ return { hash: await R(
175
175
  this._config,
176
176
  // biome-ignore lint/suspicious/noExplicitAny: negligible low level lack of type intersection
177
- i
178
- ), result: r };
177
+ e
178
+ ), result: i };
179
179
  }
180
180
  /**
181
181
  * Revoke many accounts' permissions on the rbac.
@@ -211,7 +211,7 @@ class v extends M {
211
211
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
212
212
  */
213
213
  async revokeManyRolesRaw(s, t, a) {
214
- const { request: i, result: r } = await y(
214
+ const { request: e, result: i } = await g(
215
215
  this._config,
216
216
  {
217
217
  address: this.assertValidAddress(),
@@ -221,11 +221,11 @@ class v extends M {
221
221
  ...a
222
222
  }
223
223
  );
224
- return { hash: await R(
224
+ return { hash: await y(
225
225
  this._config,
226
226
  // biome-ignore lint/suspicious/noExplicitAny: negligible low level lack of type intersection
227
- i
228
- ), result: r };
227
+ e
228
+ ), result: i };
229
229
  }
230
230
  /**
231
231
  * Return an array of the roles assigned to the given account.
@@ -239,15 +239,15 @@ class v extends M {
239
239
  * @returns {Promise<Array<Roles>>}
240
240
  */
241
241
  async rolesOf(s, t) {
242
- const a = await f(this._config, {
242
+ const a = await p(this._config, {
243
243
  address: this.assertValidAddress(),
244
244
  args: [s],
245
245
  ...this.optionallyAttachAccount(),
246
246
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
247
247
  ...t
248
248
  });
249
- return [o.MANAGER, o.ADMIN].filter(
250
- (i) => (a & i) === i
249
+ return [h.MANAGER, h.ADMIN].filter(
250
+ (e) => (a & e) === e
251
251
  );
252
252
  }
253
253
  /**
@@ -264,7 +264,7 @@ class v extends M {
264
264
  * @returns {Promise<boolean>}
265
265
  */
266
266
  hasAnyRole(s, t, a) {
267
- return p(this._config, {
267
+ return f(this._config, {
268
268
  address: this.assertValidAddress(),
269
269
  args: [s, t],
270
270
  ...this.optionallyAttachAccount(),
@@ -286,7 +286,7 @@ class v extends M {
286
286
  * @returns {Promise<boolean>}
287
287
  */
288
288
  hasAllRoles(s, t, a) {
289
- return B(this._config, {
289
+ return _(this._config, {
290
290
  address: this.assertValidAddress(),
291
291
  args: [s, t],
292
292
  ...this.optionallyAttachAccount(),
@@ -303,18 +303,255 @@ class v extends M {
303
303
  * @returns {Promise<boolean>} - True if the account is authorized
304
304
  */
305
305
  isAuthorized(s, t) {
306
- return _(this._config, {
306
+ return x(this._config, {
307
+ address: this.assertValidAddress(),
308
+ args: [s],
309
+ ...this.optionallyAttachAccount(),
310
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
311
+ ...t
312
+ });
313
+ }
314
+ /**
315
+ * Transfer ownership of the contract to a new address
316
+ *
317
+ * @public
318
+ * @async
319
+ * @param {Address} newOwner - The address to transfer ownership to
320
+ * @param {?WriteParams} [params]
321
+ * @returns {Promise<void>}
322
+ */
323
+ async transferOwnership(s, t) {
324
+ return await this.awaitResult(this.transferOwnershipRaw(s, t));
325
+ }
326
+ /**
327
+ * Transfer ownership of the contract to a new address
328
+ *
329
+ * @public
330
+ * @async
331
+ * @param {Address} newOwner - The address to transfer ownership to
332
+ * @param {?WriteParams} [params]
333
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
334
+ */
335
+ async transferOwnershipRaw(s, t) {
336
+ const { request: a, result: e } = await z(
337
+ this._config,
338
+ {
339
+ address: this.assertValidAddress(),
340
+ args: [s],
341
+ ...this.optionallyAttachAccount(),
342
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
343
+ ...t
344
+ }
345
+ );
346
+ return { hash: await V(
347
+ this._config,
348
+ a
349
+ ), result: e };
350
+ }
351
+ /**
352
+ * Renounce ownership of the contract
353
+ *
354
+ * @public
355
+ * @async
356
+ * @param {?WriteParams} [params]
357
+ * @returns {Promise<void>}
358
+ */
359
+ async renounceOwnership(s) {
360
+ return await this.awaitResult(this.renounceOwnershipRaw(s));
361
+ }
362
+ /**
363
+ * Renounce ownership of the contract
364
+ *
365
+ * @public
366
+ * @async
367
+ * @param {?WriteParams} [params]
368
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
369
+ */
370
+ async renounceOwnershipRaw(s) {
371
+ const { request: t, result: a } = await v(
372
+ this._config,
373
+ {
374
+ address: this.assertValidAddress(),
375
+ ...this.optionallyAttachAccount(),
376
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
377
+ ...s
378
+ }
379
+ );
380
+ return { hash: await O(
381
+ this._config,
382
+ t
383
+ ), result: a };
384
+ }
385
+ /**
386
+ * Request a two-step ownership handover to the caller
387
+ * The request will automatically expire in 48 hours
388
+ *
389
+ * Note: This is part of a two-step ownership transfer process:
390
+ * 1. New owner calls requestOwnershipHandover()
391
+ * 2. Current owner calls completeOwnershipHandover(newOwner)
392
+ *
393
+ * @public
394
+ * @async
395
+ * @param {?WriteParams} [params]
396
+ * @returns {Promise<void>}
397
+ */
398
+ async requestOwnershipHandover(s) {
399
+ return await this.awaitResult(this.requestOwnershipHandoverRaw(s));
400
+ }
401
+ /**
402
+ * Request a two-step ownership handover to the caller
403
+ * The request will automatically expire in 48 hours
404
+ *
405
+ * @public
406
+ * @async
407
+ * @param {?WriteParams} [params]
408
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
409
+ */
410
+ async requestOwnershipHandoverRaw(s) {
411
+ const { request: t, result: a } = await q(this._config, {
412
+ address: this.assertValidAddress(),
413
+ ...this.optionallyAttachAccount(),
414
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
415
+ ...s
416
+ });
417
+ return { hash: await M(
418
+ this._config,
419
+ t
420
+ ), result: a };
421
+ }
422
+ /**
423
+ * Complete a pending ownership handover to a new owner
424
+ * Must be called by the current owner after the new owner has requested the handover
425
+ *
426
+ * Note: This is part of a two-step ownership transfer process:
427
+ * 1. New owner calls requestOwnershipHandover()
428
+ * 2. Current owner calls completeOwnershipHandover(newOwner)
429
+ *
430
+ * @public
431
+ * @async
432
+ * @param {Address} pendingOwner - The address that requested the ownership handover
433
+ * @param {?WriteParams} [params]
434
+ * @returns {Promise<void>}
435
+ */
436
+ async completeOwnershipHandover(s, t) {
437
+ return await this.awaitResult(
438
+ this.completeOwnershipHandoverRaw(s, t)
439
+ );
440
+ }
441
+ /**
442
+ * Complete a pending ownership handover to a new owner
443
+ * Must be called by the current owner after the new owner has requested the handover
444
+ *
445
+ * @public
446
+ * @async
447
+ * @param {Address} pendingOwner - The address that requested the ownership handover
448
+ * @param {?WriteParams} [params]
449
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
450
+ */
451
+ async completeOwnershipHandoverRaw(s, t) {
452
+ const { request: a, result: e } = await H(this._config, {
307
453
  address: this.assertValidAddress(),
308
454
  args: [s],
309
455
  ...this.optionallyAttachAccount(),
310
456
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
311
457
  ...t
312
458
  });
459
+ return { hash: await m(
460
+ this._config,
461
+ a
462
+ ), result: e };
463
+ }
464
+ /**
465
+ * Cancel a pending ownership handover request
466
+ * Must be called by the account that originally requested the handover
467
+ *
468
+ * @public
469
+ * @async
470
+ * @param {?WriteParams} [params]
471
+ * @returns {Promise<void>}
472
+ */
473
+ async cancelOwnershipHandover(s) {
474
+ return await this.awaitResult(this.cancelOwnershipHandoverRaw(s));
475
+ }
476
+ /**
477
+ * Cancel a pending ownership handover request
478
+ * Must be called by the account that originally requested the handover
479
+ *
480
+ * @public
481
+ * @async
482
+ * @param {?WriteParams} [params]
483
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
484
+ */
485
+ async cancelOwnershipHandoverRaw(s) {
486
+ const { request: t, result: a } = await k(this._config, {
487
+ address: this.assertValidAddress(),
488
+ ...this.optionallyAttachAccount(),
489
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
490
+ ...s
491
+ });
492
+ return { hash: await D(
493
+ this._config,
494
+ t
495
+ ), result: a };
496
+ }
497
+ /**
498
+ * Get the expiry timestamp for a pending ownership handover
499
+ * Returns 0 if there is no pending handover request for the given address
500
+ *
501
+ * @public
502
+ * @param {Address} pendingOwner - The address to check for pending handover requests
503
+ * @param {?ReadParams} [params]
504
+ * @returns {Promise<bigint>} - The timestamp when the handover request expires, or 0 if no request exists
505
+ */
506
+ ownershipHandoverExpiresAt(s, t) {
507
+ return E(this._config, {
508
+ address: this.assertValidAddress(),
509
+ args: [s],
510
+ ...this.optionallyAttachAccount(),
511
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
512
+ ...t
513
+ });
514
+ }
515
+ /**
516
+ * Allow the caller to remove their own roles
517
+ * If the caller does not have a role, then it will be a no-op for that role
518
+ *
519
+ * @public
520
+ * @async
521
+ * @param {Roles} roles - Bitmap of roles to renounce
522
+ * @param {?WriteParams} [params]
523
+ * @returns {Promise<void>}
524
+ */
525
+ async renounceRoles(s, t) {
526
+ return await this.awaitResult(this.renounceRolesRaw(s, t));
527
+ }
528
+ /**
529
+ * Allow the caller to remove their own roles
530
+ * If the caller does not have a role, then it will be a no-op for that role
531
+ *
532
+ * @public
533
+ * @async
534
+ * @param {Roles} roles - Bitmap of roles to renounce
535
+ * @param {?WriteParams} [params]
536
+ * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
537
+ */
538
+ async renounceRolesRaw(s, t) {
539
+ const { request: a, result: e } = await N(
540
+ this._config,
541
+ {
542
+ address: this.assertValidAddress(),
543
+ args: [s],
544
+ ...this.optionallyAttachAccount(),
545
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
546
+ ...t
547
+ }
548
+ );
549
+ return { hash: await b(this._config, a), result: e };
313
550
  }
314
551
  }
315
552
  export {
316
- v as DeployableTargetWithRBAC,
317
- o as Roles,
318
- m as rbacAbi
553
+ L as DeployableTargetWithRBAC,
554
+ h as Roles,
555
+ Y as rbacAbi
319
556
  };
320
557
  //# sourceMappingURL=DeployableTargetWithRBAC.js.map