@peeramid-labs/sdk 2.1.2 → 3.0.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 (400) hide show
  1. package/README.md +34 -0
  2. package/cli/abis/AccessControl.js +232 -0
  3. package/cli/abis/AccessControl.js.map +1 -0
  4. package/cli/abis/AccessControlDefaultAdminRules.js +460 -0
  5. package/cli/abis/AccessControlDefaultAdminRules.js.map +1 -0
  6. package/cli/abis/ArguableVotingTournament.js +187 -0
  7. package/cli/abis/ArguableVotingTournament.js.map +1 -0
  8. package/cli/abis/Checkpoints.js +12 -0
  9. package/cli/abis/Checkpoints.js.map +1 -0
  10. package/cli/abis/CloneDistribution.js +102 -0
  11. package/cli/abis/CloneDistribution.js.map +1 -0
  12. package/cli/abis/Clones.js +12 -0
  13. package/cli/abis/Clones.js.map +1 -0
  14. package/cli/abis/CodeHashDistribution.js +159 -0
  15. package/cli/abis/CodeHashDistribution.js.map +1 -0
  16. package/cli/abis/CodeIndex.js +74 -0
  17. package/cli/abis/CodeIndex.js.map +1 -0
  18. package/cli/abis/ContextUpgradeable.js +30 -0
  19. package/cli/abis/ContextUpgradeable.js.map +1 -0
  20. package/cli/abis/DAODistributor.js +1351 -0
  21. package/cli/abis/DAODistributor.js.map +1 -0
  22. package/cli/abis/Diamond.js +92 -0
  23. package/cli/abis/Diamond.js.map +1 -0
  24. package/cli/abis/DiamondClonable.js +103 -0
  25. package/cli/abis/DiamondClonable.js.map +1 -0
  26. package/cli/abis/DiamondCutFacet.js +89 -0
  27. package/cli/abis/DiamondCutFacet.js.map +1 -0
  28. package/cli/abis/DiamondDistribution.js +118 -0
  29. package/cli/abis/DiamondDistribution.js.map +1 -0
  30. package/cli/abis/DiamondInit.js +14 -0
  31. package/cli/abis/DiamondInit.js.map +1 -0
  32. package/cli/abis/DiamondLoupeFacet.js +102 -0
  33. package/cli/abis/DiamondLoupeFacet.js.map +1 -0
  34. package/cli/abis/DistributableGovernanceERC20.js +917 -0
  35. package/cli/abis/DistributableGovernanceERC20.js.map +1 -0
  36. package/cli/abis/Distributor.js +801 -0
  37. package/cli/abis/Distributor.js.map +1 -0
  38. package/cli/abis/ECDSA.js +34 -0
  39. package/cli/abis/ECDSA.js.map +1 -0
  40. package/cli/abis/EIP712InspectorFacet.js +58 -0
  41. package/cli/abis/EIP712InspectorFacet.js.map +1 -0
  42. package/cli/abis/EIP712Upgradeable.js +79 -0
  43. package/cli/abis/EIP712Upgradeable.js.map +1 -0
  44. package/cli/abis/ERC1155.js +421 -0
  45. package/cli/abis/ERC1155.js.map +1 -0
  46. package/cli/abis/ERC1155Burnable.js +467 -0
  47. package/cli/abis/ERC1155Burnable.js.map +1 -0
  48. package/cli/abis/ERC1155BurnableUpgradeable.js +490 -0
  49. package/cli/abis/ERC1155BurnableUpgradeable.js.map +1 -0
  50. package/cli/abis/ERC1155Upgradeable.js +444 -0
  51. package/cli/abis/ERC1155Upgradeable.js.map +1 -0
  52. package/cli/abis/ERC165.js +26 -0
  53. package/cli/abis/ERC165.js.map +1 -0
  54. package/cli/abis/ERC165Upgradeable.js +49 -0
  55. package/cli/abis/ERC165Upgradeable.js.map +1 -0
  56. package/cli/abis/ERC20.js +315 -0
  57. package/cli/abis/ERC20.js.map +1 -0
  58. package/cli/abis/ERC20Burnable.js +346 -0
  59. package/cli/abis/ERC20Burnable.js.map +1 -0
  60. package/cli/abis/ERC20Upgradeable.js +338 -0
  61. package/cli/abis/ERC20Upgradeable.js.map +1 -0
  62. package/cli/abis/ERC20VotesUpgradeable.js +781 -0
  63. package/cli/abis/ERC20VotesUpgradeable.js.map +1 -0
  64. package/cli/abis/ERC721.js +440 -0
  65. package/cli/abis/ERC721.js.map +1 -0
  66. package/cli/abis/ERC721Burnable.js +453 -0
  67. package/cli/abis/ERC721Burnable.js.map +1 -0
  68. package/cli/abis/IAccessControl.js +200 -0
  69. package/cli/abis/IAccessControl.js.map +1 -0
  70. package/cli/abis/IAccessControlDefaultAdminRules.js +399 -0
  71. package/cli/abis/IAccessControlDefaultAdminRules.js.map +1 -0
  72. package/cli/abis/ICodeIndex.js +74 -0
  73. package/cli/abis/ICodeIndex.js.map +1 -0
  74. package/cli/abis/IContractURI.js +20 -0
  75. package/cli/abis/IContractURI.js.map +1 -0
  76. package/cli/abis/IDAOFactory.js +89 -0
  77. package/cli/abis/IDAOFactory.js.map +1 -0
  78. package/cli/abis/IDiamondCut.js +47 -0
  79. package/cli/abis/IDiamondCut.js.map +1 -0
  80. package/cli/abis/IDiamondLoupe.js +83 -0
  81. package/cli/abis/IDiamondLoupe.js.map +1 -0
  82. package/cli/abis/IDistribution.js +91 -0
  83. package/cli/abis/IDistribution.js.map +1 -0
  84. package/cli/abis/IDistributor.js +627 -0
  85. package/cli/abis/IDistributor.js.map +1 -0
  86. package/cli/abis/IERC1155.js +300 -0
  87. package/cli/abis/IERC1155.js.map +1 -0
  88. package/cli/abis/IERC1155Errors.js +109 -0
  89. package/cli/abis/IERC1155Errors.js.map +1 -0
  90. package/cli/abis/IERC1155MetadataURI.js +319 -0
  91. package/cli/abis/IERC1155MetadataURI.js.map +1 -0
  92. package/cli/abis/IERC1155Receiver.js +85 -0
  93. package/cli/abis/IERC1155Receiver.js.map +1 -0
  94. package/cli/abis/IERC1271.js +31 -0
  95. package/cli/abis/IERC1271.js.map +1 -0
  96. package/cli/abis/IERC165.js +26 -0
  97. package/cli/abis/IERC165.js.map +1 -0
  98. package/cli/abis/IERC173.js +33 -0
  99. package/cli/abis/IERC173.js.map +1 -0
  100. package/cli/abis/IERC20.js +190 -0
  101. package/cli/abis/IERC20.js.map +1 -0
  102. package/cli/abis/IERC20Errors.js +93 -0
  103. package/cli/abis/IERC20Errors.js.map +1 -0
  104. package/cli/abis/IERC20Metadata.js +229 -0
  105. package/cli/abis/IERC20Metadata.js.map +1 -0
  106. package/cli/abis/IERC20MintableUpgradeable.js +25 -0
  107. package/cli/abis/IERC20MintableUpgradeable.js.map +1 -0
  108. package/cli/abis/IERC5267.js +56 -0
  109. package/cli/abis/IERC5267.js.map +1 -0
  110. package/cli/abis/IERC5313.js +20 -0
  111. package/cli/abis/IERC5313.js.map +1 -0
  112. package/cli/abis/IERC5805.js +226 -0
  113. package/cli/abis/IERC5805.js.map +1 -0
  114. package/cli/abis/IERC6372.js +33 -0
  115. package/cli/abis/IERC6372.js.map +1 -0
  116. package/cli/abis/IERC721.js +292 -0
  117. package/cli/abis/IERC721.js.map +1 -0
  118. package/cli/abis/IERC721Errors.js +110 -0
  119. package/cli/abis/IERC721Errors.js.map +1 -0
  120. package/cli/abis/IERC721Metadata.js +337 -0
  121. package/cli/abis/IERC721Metadata.js.map +1 -0
  122. package/cli/abis/IERC721Receiver.js +41 -0
  123. package/cli/abis/IERC721Receiver.js.map +1 -0
  124. package/cli/abis/IERC7746.js +84 -0
  125. package/cli/abis/IERC7746.js.map +1 -0
  126. package/cli/abis/IErrors.js +23 -0
  127. package/cli/abis/IErrors.js.map +1 -0
  128. package/cli/abis/IInitializer.js +75 -0
  129. package/cli/abis/IInitializer.js.map +1 -0
  130. package/cli/abis/IInstaller.js +506 -0
  131. package/cli/abis/IInstaller.js.map +1 -0
  132. package/cli/abis/ILockableERC1155.js +464 -0
  133. package/cli/abis/ILockableERC1155.js.map +1 -0
  134. package/cli/abis/IMultipass.js +1263 -0
  135. package/cli/abis/IMultipass.js.map +1 -0
  136. package/cli/abis/IPluginRepo.js +114 -0
  137. package/cli/abis/IPluginRepo.js.map +1 -0
  138. package/cli/abis/IRankToken.js +533 -0
  139. package/cli/abis/IRankToken.js.map +1 -0
  140. package/cli/abis/IRankifyInstance.js +147 -0
  141. package/cli/abis/IRankifyInstance.js.map +1 -0
  142. package/cli/abis/IRepository.js +343 -0
  143. package/cli/abis/IRepository.js.map +1 -0
  144. package/cli/abis/IVotes.js +200 -0
  145. package/cli/abis/IVotes.js.map +1 -0
  146. package/cli/abis/Initializable.js +30 -0
  147. package/cli/abis/Initializable.js.map +1 -0
  148. package/cli/abis/InitializedDiamondDistribution.js +107 -0
  149. package/cli/abis/InitializedDiamondDistribution.js.map +1 -0
  150. package/cli/abis/Installer.js +506 -0
  151. package/cli/abis/Installer.js.map +1 -0
  152. package/cli/abis/InstallerClonable.js +542 -0
  153. package/cli/abis/InstallerClonable.js.map +1 -0
  154. package/cli/abis/LatestVersionDistribution.js +136 -0
  155. package/cli/abis/LatestVersionDistribution.js.map +1 -0
  156. package/cli/abis/LibDiamond.js +79 -0
  157. package/cli/abis/LibDiamond.js.map +1 -0
  158. package/cli/abis/LibSemver.js +18 -0
  159. package/cli/abis/LibSemver.js.map +1 -0
  160. package/cli/abis/LockableERC1155.js +631 -0
  161. package/cli/abis/LockableERC1155.js.map +1 -0
  162. package/cli/abis/MAODistribution.js +285 -0
  163. package/cli/abis/MAODistribution.js.map +1 -0
  164. package/cli/abis/Math.js +12 -0
  165. package/cli/abis/Math.js.map +1 -0
  166. package/cli/abis/MiddlewareProxy.js +39 -0
  167. package/cli/abis/MiddlewareProxy.js.map +1 -0
  168. package/cli/abis/MockCloneDistribution.js +107 -0
  169. package/cli/abis/MockCloneDistribution.js.map +1 -0
  170. package/cli/abis/MockDiamondInitialize.js +33 -0
  171. package/cli/abis/MockDiamondInitialize.js.map +1 -0
  172. package/cli/abis/MockERC1155.js +636 -0
  173. package/cli/abis/MockERC1155.js.map +1 -0
  174. package/cli/abis/MockERC20.js +336 -0
  175. package/cli/abis/MockERC20.js.map +1 -0
  176. package/cli/abis/MockERC721.js +620 -0
  177. package/cli/abis/MockERC721.js.map +1 -0
  178. package/cli/abis/MockInstaller.js +596 -0
  179. package/cli/abis/MockInstaller.js.map +1 -0
  180. package/cli/abis/MockTokenizedDistributor.js +1351 -0
  181. package/cli/abis/MockTokenizedDistributor.js.map +1 -0
  182. package/cli/abis/MockVendingMachine.js +404 -0
  183. package/cli/abis/MockVendingMachine.js.map +1 -0
  184. package/cli/abis/Multipass.js +1461 -0
  185. package/cli/abis/Multipass.js.map +1 -0
  186. package/cli/abis/NoncesUpgradeable.js +65 -0
  187. package/cli/abis/NoncesUpgradeable.js.map +1 -0
  188. package/cli/abis/Ownable.js +81 -0
  189. package/cli/abis/Ownable.js.map +1 -0
  190. package/cli/abis/OwnableDistributor.js +886 -0
  191. package/cli/abis/OwnableDistributor.js.map +1 -0
  192. package/cli/abis/OwnableRepository.js +566 -0
  193. package/cli/abis/OwnableRepository.js.map +1 -0
  194. package/cli/abis/OwnableUpgradeable.js +104 -0
  195. package/cli/abis/OwnableUpgradeable.js.map +1 -0
  196. package/cli/abis/OwnershipFacet.js +52 -0
  197. package/cli/abis/OwnershipFacet.js.map +1 -0
  198. package/cli/abis/RankToken.js +783 -0
  199. package/cli/abis/RankToken.js.map +1 -0
  200. package/cli/abis/Rankify.js +449 -0
  201. package/cli/abis/Rankify.js.map +1 -0
  202. package/cli/abis/RankifyDiamondInstance.js +2032 -0
  203. package/cli/abis/RankifyDiamondInstance.js.map +1 -0
  204. package/cli/abis/RankifyInstanceEventMock.js +332 -0
  205. package/cli/abis/RankifyInstanceEventMock.js.map +1 -0
  206. package/cli/abis/RankifyInstanceGameMastersFacet.js +319 -0
  207. package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -0
  208. package/cli/abis/RankifyInstanceInit.js +80 -0
  209. package/cli/abis/RankifyInstanceInit.js.map +1 -0
  210. package/cli/abis/RankifyInstanceMainFacet.js +987 -0
  211. package/cli/abis/RankifyInstanceMainFacet.js.map +1 -0
  212. package/cli/abis/RankifyInstanceRequirementsFacet.js +549 -0
  213. package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -0
  214. package/cli/abis/ReentrancyGuard.js +12 -0
  215. package/cli/abis/ReentrancyGuard.js.map +1 -0
  216. package/cli/abis/ReentrancyGuardUpgradeable.js +35 -0
  217. package/cli/abis/ReentrancyGuardUpgradeable.js.map +1 -0
  218. package/cli/abis/Repo.js +566 -0
  219. package/cli/abis/Repo.js.map +1 -0
  220. package/cli/abis/Repository.js +471 -0
  221. package/cli/abis/Repository.js.map +1 -0
  222. package/cli/abis/SafeCast.js +61 -0
  223. package/cli/abis/SafeCast.js.map +1 -0
  224. package/cli/abis/SimpleAccessManager.js +224 -0
  225. package/cli/abis/SimpleAccessManager.js.map +1 -0
  226. package/cli/abis/Strings.js +23 -0
  227. package/cli/abis/Strings.js.map +1 -0
  228. package/cli/abis/Test1Facet.js +179 -0
  229. package/cli/abis/Test1Facet.js.map +1 -0
  230. package/cli/abis/Test2Facet.js +147 -0
  231. package/cli/abis/Test2Facet.js.map +1 -0
  232. package/cli/abis/TestFacet.js +33 -0
  233. package/cli/abis/TestFacet.js.map +1 -0
  234. package/cli/abis/TokenizedDistributor.js +878 -0
  235. package/cli/abis/TokenizedDistributor.js.map +1 -0
  236. package/cli/abis/VotesUpgradeable.js +402 -0
  237. package/cli/abis/VotesUpgradeable.js.map +1 -0
  238. package/cli/abis/index.js +484 -0
  239. package/cli/abis/index.js.map +1 -0
  240. package/cli/cli/client.js +57 -0
  241. package/cli/cli/client.js.map +1 -0
  242. package/cli/cli/commands/distributions/add.js +96 -0
  243. package/cli/cli/commands/distributions/add.js.map +1 -0
  244. package/cli/cli/commands/distributions/index.js +11 -0
  245. package/cli/cli/commands/distributions/index.js.map +1 -0
  246. package/cli/cli/commands/distributions/list.js +42 -0
  247. package/cli/cli/commands/distributions/list.js.map +1 -0
  248. package/cli/cli/commands/fellowship/create.js +130 -0
  249. package/cli/cli/commands/fellowship/create.js.map +1 -0
  250. package/cli/cli/commands/fellowship/index.js +11 -0
  251. package/cli/cli/commands/fellowship/index.js.map +1 -0
  252. package/cli/cli/commands/fellowship/metadata.js +42 -0
  253. package/cli/cli/commands/fellowship/metadata.js.map +1 -0
  254. package/cli/cli/commands/instances/index.js +7 -0
  255. package/cli/cli/commands/instances/index.js.map +1 -0
  256. package/cli/cli/commands/instances/list.js +50 -0
  257. package/cli/cli/commands/instances/list.js.map +1 -0
  258. package/cli/cli/commands/multipass/contract.js +178 -0
  259. package/cli/cli/commands/multipass/contract.js.map +1 -0
  260. package/cli/cli/commands/multipass/domain.js +512 -0
  261. package/cli/cli/commands/multipass/domain.js.map +1 -0
  262. package/cli/cli/commands/multipass/domains.js +141 -0
  263. package/cli/cli/commands/multipass/domains.js.map +1 -0
  264. package/cli/cli/commands/multipass/index.js +20 -0
  265. package/cli/cli/commands/multipass/index.js.map +1 -0
  266. package/cli/cli/commands/multipass/owner.js +320 -0
  267. package/cli/cli/commands/multipass/owner.js.map +1 -0
  268. package/cli/cli/index.js +20 -0
  269. package/cli/cli/index.js.map +1 -0
  270. package/cli/eds/Distributor.js +76 -0
  271. package/cli/eds/Distributor.js.map +1 -0
  272. package/cli/index.js +50 -0
  273. package/cli/index.js.map +1 -0
  274. package/cli/multipass/MultipassBase.js +307 -0
  275. package/cli/multipass/MultipassBase.js.map +1 -0
  276. package/cli/multipass/Owner.js +214 -0
  277. package/cli/multipass/Owner.js.map +1 -0
  278. package/cli/multipass/Registrar.js +77 -0
  279. package/cli/multipass/Registrar.js.map +1 -0
  280. package/cli/rankify/GameMaster.js +372 -0
  281. package/cli/rankify/GameMaster.js.map +1 -0
  282. package/cli/rankify/InstanceBase.js +432 -0
  283. package/cli/rankify/InstanceBase.js.map +1 -0
  284. package/cli/rankify/MAODistributor.js +278 -0
  285. package/cli/rankify/MAODistributor.js.map +1 -0
  286. package/cli/rankify/Player.js +175 -0
  287. package/cli/rankify/Player.js.map +1 -0
  288. package/cli/rankify/RankToken.js +109 -0
  289. package/cli/rankify/RankToken.js.map +1 -0
  290. package/cli/types/contracts.js +3 -0
  291. package/cli/types/contracts.js.map +1 -0
  292. package/cli/types.js +30 -0
  293. package/cli/types.js.map +1 -0
  294. package/cli/utils/ApiError.js +21 -0
  295. package/cli/utils/ApiError.js.map +1 -0
  296. package/cli/utils/artifacts.js +51 -0
  297. package/cli/utils/artifacts.js.map +1 -0
  298. package/cli/utils/chainMapping.js +16 -0
  299. package/cli/utils/chainMapping.js.map +1 -0
  300. package/cli/utils/index.js +35 -0
  301. package/cli/utils/index.js.map +1 -0
  302. package/docs/classes/MAODistributorClient.md +89 -43
  303. package/docs/classes/Multipass.md +148 -0
  304. package/docs/classes/MultipassBase.md +120 -0
  305. package/docs/classes/RankTokenClient.md +34 -0
  306. package/docs/docs/classes/MAODistributorClient.md +89 -43
  307. package/docs/docs/classes/Multipass.md +148 -0
  308. package/docs/docs/classes/MultipassBase.md +120 -0
  309. package/docs/docs/classes/RankTokenClient.md +34 -0
  310. package/docs/docs/enums/CONTENT_STORAGE.md +27 -0
  311. package/docs/docs/enums/SUBMISSION_TYPES.md +41 -0
  312. package/docs/docs/index.md +135 -2
  313. package/docs/enums/CONTENT_STORAGE.md +27 -0
  314. package/docs/enums/SUBMISSION_TYPES.md +41 -0
  315. package/docs/index.md +135 -2
  316. package/lib.commonjs/eds/Distributor.d.ts +5 -1
  317. package/lib.commonjs/eds/Distributor.d.ts.map +1 -1
  318. package/lib.commonjs/eds/Distributor.js +14 -2
  319. package/lib.commonjs/eds/Distributor.js.map +1 -1
  320. package/lib.commonjs/multipass/MultipassBase.d.ts +1185 -2
  321. package/lib.commonjs/multipass/MultipassBase.d.ts.map +1 -1
  322. package/lib.commonjs/multipass/MultipassBase.js +168 -1
  323. package/lib.commonjs/multipass/MultipassBase.js.map +1 -1
  324. package/lib.commonjs/multipass/Owner.d.ts +137 -0
  325. package/lib.commonjs/multipass/Owner.d.ts.map +1 -0
  326. package/lib.commonjs/multipass/Owner.js +214 -0
  327. package/lib.commonjs/multipass/Owner.js.map +1 -0
  328. package/lib.commonjs/multipass/Registrar.d.ts +3 -2
  329. package/lib.commonjs/multipass/Registrar.d.ts.map +1 -1
  330. package/lib.commonjs/multipass/Registrar.js +3 -3
  331. package/lib.commonjs/multipass/Registrar.js.map +1 -1
  332. package/lib.commonjs/rankify/MAODistributor.d.ts +1042 -2
  333. package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
  334. package/lib.commonjs/rankify/MAODistributor.js +146 -33
  335. package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
  336. package/lib.commonjs/rankify/Player.js +7 -7
  337. package/lib.commonjs/rankify/Player.js.map +1 -1
  338. package/lib.commonjs/rankify/RankToken.d.ts +3 -0
  339. package/lib.commonjs/rankify/RankToken.d.ts.map +1 -1
  340. package/lib.commonjs/rankify/RankToken.js +74 -0
  341. package/lib.commonjs/rankify/RankToken.js.map +1 -1
  342. package/lib.commonjs/types/contracts.d.ts +0 -6
  343. package/lib.commonjs/types/contracts.d.ts.map +1 -1
  344. package/lib.commonjs/types/contracts.js +0 -16
  345. package/lib.commonjs/types/contracts.js.map +1 -1
  346. package/lib.commonjs/types.d.ts +113 -2
  347. package/lib.commonjs/types.d.ts.map +1 -1
  348. package/lib.commonjs/types.js +15 -1
  349. package/lib.commonjs/types.js.map +1 -1
  350. package/lib.commonjs/utils/artifacts.d.ts +3 -1
  351. package/lib.commonjs/utils/artifacts.d.ts.map +1 -1
  352. package/lib.commonjs/utils/artifacts.js +3 -1
  353. package/lib.commonjs/utils/artifacts.js.map +1 -1
  354. package/lib.commonjs/utils/index.d.ts +7 -0
  355. package/lib.commonjs/utils/index.d.ts.map +1 -1
  356. package/lib.commonjs/utils/index.js +16 -0
  357. package/lib.commonjs/utils/index.js.map +1 -1
  358. package/lib.esm/eds/Distributor.d.ts +5 -1
  359. package/lib.esm/eds/Distributor.d.ts.map +1 -1
  360. package/lib.esm/eds/Distributor.js +14 -2
  361. package/lib.esm/eds/Distributor.js.map +1 -1
  362. package/lib.esm/multipass/MultipassBase.d.ts +1185 -2
  363. package/lib.esm/multipass/MultipassBase.d.ts.map +1 -1
  364. package/lib.esm/multipass/MultipassBase.js +168 -1
  365. package/lib.esm/multipass/MultipassBase.js.map +1 -1
  366. package/lib.esm/multipass/Owner.d.ts +137 -0
  367. package/lib.esm/multipass/Owner.d.ts.map +1 -0
  368. package/lib.esm/multipass/Owner.js +208 -0
  369. package/lib.esm/multipass/Owner.js.map +1 -0
  370. package/lib.esm/multipass/Registrar.d.ts +3 -2
  371. package/lib.esm/multipass/Registrar.d.ts.map +1 -1
  372. package/lib.esm/multipass/Registrar.js +3 -3
  373. package/lib.esm/multipass/Registrar.js.map +1 -1
  374. package/lib.esm/rankify/MAODistributor.d.ts +1042 -2
  375. package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
  376. package/lib.esm/rankify/MAODistributor.js +144 -31
  377. package/lib.esm/rankify/MAODistributor.js.map +1 -1
  378. package/lib.esm/rankify/Player.js +7 -7
  379. package/lib.esm/rankify/Player.js.map +1 -1
  380. package/lib.esm/rankify/RankToken.d.ts +3 -0
  381. package/lib.esm/rankify/RankToken.d.ts.map +1 -1
  382. package/lib.esm/rankify/RankToken.js +74 -0
  383. package/lib.esm/rankify/RankToken.js.map +1 -1
  384. package/lib.esm/types/contracts.d.ts +0 -6
  385. package/lib.esm/types/contracts.d.ts.map +1 -1
  386. package/lib.esm/types/contracts.js +1 -14
  387. package/lib.esm/types/contracts.js.map +1 -1
  388. package/lib.esm/types.d.ts +113 -2
  389. package/lib.esm/types.d.ts.map +1 -1
  390. package/lib.esm/types.js +14 -0
  391. package/lib.esm/types.js.map +1 -1
  392. package/lib.esm/utils/artifacts.d.ts +3 -1
  393. package/lib.esm/utils/artifacts.d.ts.map +1 -1
  394. package/lib.esm/utils/artifacts.js +3 -1
  395. package/lib.esm/utils/artifacts.js.map +1 -1
  396. package/lib.esm/utils/index.d.ts +7 -0
  397. package/lib.esm/utils/index.d.ts.map +1 -1
  398. package/lib.esm/utils/index.js +14 -0
  399. package/lib.esm/utils/index.js.map +1 -1
  400. package/package.json +16 -6
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiError = void 0;
4
+ exports.getApiError = getApiError;
5
+ class ApiError extends Error {
6
+ status;
7
+ constructor(message, options) {
8
+ super(message);
9
+ this.status = options?.status;
10
+ }
11
+ }
12
+ exports.ApiError = ApiError;
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
+ async function getApiError(response) {
15
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
16
+ const body = (await response.json());
17
+ return new ApiError(body.msg || "server_error", {
18
+ status: body?.status,
19
+ });
20
+ }
21
+ //# sourceMappingURL=ApiError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiError.js","sourceRoot":"","sources":["../../../src/utils/ApiError.ts"],"names":[],"mappings":";;;AAsBA,kCAMC;AAfD,MAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,CAAqB;IAC3B,YAAY,OAAe,EAAE,OAAyB;QACpD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;IAChC,CAAC;CACF;AAND,4BAMC;AAED,8DAA8D;AACvD,KAAK,UAAU,WAAW,CAAC,QAAa;IAC7C,yGAAyG;IACzG,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAqB,CAAC;IACzD,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,cAAc,EAAE;QAC9C,MAAM,EAAE,IAAI,EAAE,MAAM;KACrB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getContract = exports.getArtifact = exports.chainIdMapping = void 0;
4
+ const viem_1 = require("viem");
5
+ const chainMapping_1 = require("./chainMapping");
6
+ exports.chainIdMapping = {
7
+ anvil: "97113",
8
+ localhost: "42161",
9
+ };
10
+ /**
11
+ * Retrieves the contract artifact for the specified chain.
12
+ * @param chain The viem Chain object
13
+ * @param artifactName The name of the artifact to retrieve
14
+ * @returns The artifact containing the address and execution args
15
+ * @throws Error if the contract deployment is not found or chain is not supported.
16
+ */
17
+ const getArtifact = (chainId, artifactName, overrideChainName) => {
18
+ const chainPath = overrideChainName ?? (0, chainMapping_1.getChainPath)(chainId);
19
+ const artifact = (artifactName === "Multipass"
20
+ ? require(`@peeramid-labs/multipass/deployments/${chainPath}/${artifactName}.json`)
21
+ : artifactName === "CodeIndex"
22
+ ? require(`@peeramid-labs/eds/deployments/${chainPath}/${artifactName}.json`)
23
+ : require(`rankify-contracts/deployments/${chainPath}/${artifactName}.json`));
24
+ if (!artifact) {
25
+ throw new Error("Contract deployment not found");
26
+ }
27
+ return {
28
+ address: artifact.address,
29
+ execute: artifact.execute,
30
+ abi: artifact.abi,
31
+ receipt: { ...artifact.receipt, logs: (0, viem_1.parseEventLogs)({ abi: artifact.abi, logs: artifact.receipt.logs }) },
32
+ };
33
+ };
34
+ exports.getArtifact = getArtifact;
35
+ /**
36
+ * Gets a contract instance with the appropriate ABI and address for the given chain
37
+ * @param chain The chain to get the contract for
38
+ * @param artifactName The name of the contract to get
39
+ * @param client The viem client to use (public or wallet)
40
+ * @returns A viem contract instance
41
+ */
42
+ const getContract = (chainId, artifactName, client) => {
43
+ const artifact = (0, exports.getArtifact)(chainId, artifactName);
44
+ return (0, viem_1.getContract)({
45
+ address: artifact.address,
46
+ abi: artifact.abi,
47
+ client,
48
+ });
49
+ };
50
+ exports.getContract = getContract;
51
+ //# sourceMappingURL=artifacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/utils/artifacts.ts"],"names":[],"mappings":";;;AAAA,+BAUc;AAOd,iDAA8C;AAKjC,QAAA,cAAc,GAAyC;IAClE,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,OAAO;CACnB,CAAC;AAYF;;;;;;GAMG;AACI,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,YAA2B,EAC3B,iBAA0B,EAY1B,EAAE;IACF,MAAM,SAAS,GAAG,iBAAiB,IAAI,IAAA,2BAAY,EAAC,OAAO,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,CACf,YAAY,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,wCAAwC,SAAS,IAAI,YAAY,OAAO,CAAC;QACnF,CAAC,CAAC,YAAY,KAAK,WAAW;YAC5B,CAAC,CAAC,OAAO,CAAC,kCAAkC,SAAS,IAAI,YAAY,OAAO,CAAC;YAC7E,CAAC,CAAC,OAAO,CAAC,iCAAiC,SAAS,IAAI,YAAY,OAAO,CAAC,CAYjF,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,OAAO;QACL,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,OAAO,EAAE,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,IAAA,qBAAc,EAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE;KAC3G,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,WAAW,eA8CtB;AAEF;;;;;;GAMG;AACI,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,YAA2B,EAC3B,MAAe,EAC6C,EAAE;IAC9D,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACpD,OAAO,IAAA,kBAAe,EAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,MAAM;KACP,CAA+D,CAAC;AACnE,CAAC,CAAC;AAXW,QAAA,WAAW,eAWtB"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chainToPath = void 0;
4
+ exports.getChainPath = getChainPath;
5
+ exports.chainToPath = {
6
+ "31337": "localhost",
7
+ "97113": "anvil",
8
+ };
9
+ function getChainPath(chainId) {
10
+ const path = exports.chainToPath[chainId.toString()];
11
+ if (!path) {
12
+ throw new Error(`Chain ID ${chainId} is not supported`);
13
+ }
14
+ return path;
15
+ }
16
+ //# sourceMappingURL=chainMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chainMapping.js","sourceRoot":"","sources":["../../../src/utils/chainMapping.ts"],"names":[],"mappings":";;;AAQA,oCAMC;AAXY,QAAA,WAAW,GAAiB;IACvC,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,OAAO;CACR,CAAC;AAEX,SAAgB,YAAY,CAAC,OAAe;IAC1C,MAAM,IAAI,GAAG,mBAAW,CAAC,OAAO,CAAC,QAAQ,EAA8B,CAAC,CAAC;IACzE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,mBAAmB,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.parseInstantiated = void 0;
18
+ __exportStar(require("./ApiError"), exports);
19
+ __exportStar(require("./artifacts"), exports);
20
+ /**
21
+ * Parse an array of contract addresses into a MAOInstances object
22
+ * @param instances - Array of contract addresses in the order they were deployed
23
+ * @returns MAOInstances object with named contract addresses
24
+ */
25
+ const parseInstantiated = (instances) => {
26
+ return {
27
+ govToken: instances[0],
28
+ govTokenAccessManager: instances[1],
29
+ ACIDInstance: instances[2],
30
+ ACIDAccessManager: instances[10],
31
+ rankToken: instances[11],
32
+ };
33
+ };
34
+ exports.parseInstantiated = parseInstantiated;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,6CAA2B;AAC3B,8CAA4B;AAE5B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,SAAmB,EAAgB,EAAE;IACrE,OAAO;QACL,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;QACtB,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;QACnC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;QAC1B,iBAAiB,EAAE,SAAS,CAAC,EAAE,CAAC;QAChC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC;KACzB,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
@@ -20,11 +20,9 @@ Handles creation, management and interaction with MAO instances
20
20
  - [publicClient](MAODistributorClient.md#publicclient)
21
21
  - [address](MAODistributorClient.md#address)
22
22
  - [walletClient](MAODistributorClient.md#walletclient)
23
- - [parseInstantiated](MAODistributorClient.md#parseinstantiated)
24
23
 
25
24
  ### Methods
26
25
 
27
- - [getDistributions](MAODistributorClient.md#getdistributions)
28
26
  - [getInstances](MAODistributorClient.md#getinstances)
29
27
  - [getInstance](MAODistributorClient.md#getinstance)
30
28
  - [getNamedDistributionInstances](MAODistributorClient.md#getnameddistributioninstances)
@@ -32,7 +30,12 @@ Handles creation, management and interaction with MAO instances
32
30
  - [addressesToContracts](MAODistributorClient.md#addressestocontracts)
33
31
  - [getMAOInstances](MAODistributorClient.md#getmaoinstances)
34
32
  - [parseToContracts](MAODistributorClient.md#parsetocontracts)
33
+ - [getDistributions](MAODistributorClient.md#getdistributions)
34
+ - [addNamedDistribution](MAODistributorClient.md#addnameddistribution)
35
35
  - [getMAOInstance](MAODistributorClient.md#getmaoinstance)
36
+ - [getInstantiatePrice](MAODistributorClient.md#getinstantiateprice)
37
+ - [setInstantiationAllowance](MAODistributorClient.md#setinstantiationallowance)
38
+ - [needsAllowance](MAODistributorClient.md#needsallowance)
36
39
  - [instantiate](MAODistributorClient.md#instantiate)
37
40
 
38
41
  ## Constructors
@@ -86,49 +89,11 @@ ___
86
89
 
87
90
  • `Optional` **walletClient**: `Object`
88
91
 
89
- ___
90
-
91
- ### parseInstantiated
92
-
93
- • **parseInstantiated**: (`instances`: `string`[]) => [`MAOInstances`](../interfaces/MAOInstances.md) = `parseInstantiated`
94
-
95
- #### Type declaration
96
-
97
- ▸ (`instances`): [`MAOInstances`](../interfaces/MAOInstances.md)
98
-
99
- Parse an array of contract addresses into a MAOInstances object
100
-
101
- ##### Parameters
102
-
103
- | Name | Type | Description |
104
- | :------ | :------ | :------ |
105
- | `instances` | `string`[] | Array of contract addresses in the order they were deployed |
106
-
107
- ##### Returns
108
-
109
- [`MAOInstances`](../interfaces/MAOInstances.md)
110
-
111
- MAOInstances object with named contract addresses
112
-
113
92
  ## Methods
114
93
 
115
- ### getDistributions
116
-
117
- ▸ **getDistributions**(): `Promise`\<readonly \`0x$\{string}\`[]\>
118
-
119
- #### Returns
120
-
121
- `Promise`\<readonly \`0x$\{string}\`[]\>
122
-
123
- #### Inherited from
124
-
125
- DistributorClient.getDistributions
126
-
127
- ___
128
-
129
94
  ### getInstances
130
95
 
131
- ▸ **getInstances**(`distributorsId`, `fromBlock?`): `Promise`\<\`0x$\{string}\`[][]\>
96
+ ▸ **getInstances**(`distributorsId`, `fromBlock?`): `Promise`\<\{ `newInstanceId`: `bigint` ; `version`: `bigint` ; `addresses`: \`0x$\{string}\`[] }[]\>
132
97
 
133
98
  #### Parameters
134
99
 
@@ -139,7 +104,7 @@ ___
139
104
 
140
105
  #### Returns
141
106
 
142
- `Promise`\<\`0x$\{string}\`[][]\>
107
+ `Promise`\<\{ `newInstanceId`: `bigint` ; `version`: `bigint` ; `addresses`: \`0x$\{string}\`[] }[]\>
143
108
 
144
109
  #### Inherited from
145
110
 
@@ -271,6 +236,39 @@ ___
271
236
 
272
237
  ___
273
238
 
239
+ ### getDistributions
240
+
241
+ ▸ **getDistributions**(): `Promise`\<readonly \`0x$\{string}\`[]\>
242
+
243
+ #### Returns
244
+
245
+ `Promise`\<readonly \`0x$\{string}\`[]\>
246
+
247
+ #### Overrides
248
+
249
+ DistributorClient.getDistributions
250
+
251
+ ___
252
+
253
+ ### addNamedDistribution
254
+
255
+ ▸ **addNamedDistribution**(`chain`, `name`, `address`, `initializer?`): `Promise`\<\{ `receipt`: `TransactionReceipt` ; `distributionAddedEvent`: `Log`\<`bigint`, `number`, ``false``, `undefined`, ``true``, readonly [\{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"contract IERC20"`` = "contract IERC20"; `name`: ``"token"`` = "token"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"defaultCost"`` = "defaultCost"; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"constructor"`` = "constructor" }, \{ `inputs`: readonly [] = []; `name`: ``"AccessControlBadConfirmation"`` = "AccessControlBadConfirmation"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"AccessControlEnforcedDefaultAdminDelay"`` = "AccessControlEnforcedDefaultAdminDelay"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [] = []; `name`: ``"AccessControlEnforcedDefaultAdminRules"`` = "AccessControlEnforcedDefaultAdminRules"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `type`: ``"address"`` = "address" }] ; `name`: ``"AccessControlInvalidDefaultAdmin"`` = "AccessControlInvalidDefaultAdmin"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"neededRole"`` = "neededRole"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"AccessControlUnauthorizedAccount"`` = "AccessControlUnauthorizedAccount"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionExists"`` = "DistributionExists"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionNotFound"`` = "DistributionNotFound"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"InitializerNotFound"`` = "InitializerNotFound"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"InvalidInstance"`` = "InvalidInstance"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }] ; `name`: ``"InvalidRepository"`` = "InvalidRepository"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"string"`` = "string"; `name`: ``"version"`` = "version"; `type`: ``"string"`` = "string" }] ; `name`: ``"InvalidVersionRequested"`` = "InvalidVersionRequested"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }] ; `name`: ``"RepositoryAlreadyExists"`` = "RepositoryAlreadyExists"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint8"`` = "uint8"; `name`: ``"bits"`` = "bits"; `type`: ``"uint8"`` = "uint8" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"value"`` = "value"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"SafeCastOverflowedUintDowncast"`` = "SafeCastOverflowedUintDowncast"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"UnversionedDistribution"`` = "UnversionedDistribution"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"string"`` = "string"; `name`: ``"version"`` = "version"; `type`: ``"string"`` = "string" }] ; `name`: ``"VersionOutdated"`` = "VersionOutdated"; `type`: ``"error"`` = "error" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [] = []; `name`: ``"DefaultAdminDelayChangeCanceled"`` = "DefaultAdminDelayChangeCanceled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"effectSchedule"`` = "effectSchedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"DefaultAdminDelayChangeScheduled"`` = "DefaultAdminDelayChangeScheduled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [] = []; `name`: ``"DefaultAdminTransferCanceled"`` = "DefaultAdminTransferCanceled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"acceptSchedule"`` = "acceptSchedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"DefaultAdminTransferScheduled"`` = "DefaultAdminTransferScheduled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``false`` = false; `internalType`: ``"address"`` = "address"; `name`: ``"distribution"`` = "distribution"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"DistributionAdded"`` = "DistributionAdded"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionRemoved"`` = "DistributionRemoved"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"newInstanceId"`` = "newInstanceId"; `type`: ``"uint256"`` = "uint256" }, \{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"version"`` = "version"; `type`: ``"uint256"`` = "uint256" }, \{ `indexed`: ``false`` = false; `internalType`: ``"address[]"`` = "address[]"; `name`: ``"instances"`` = "instances"; `type`: ``"address[]"`` = "address[]" }, \{ `indexed`: ``false`` = false; `internalType`: ``"bytes"`` = "bytes"; `name`: ``"args"`` = "args"; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"Instantiated"`` = "Instantiated"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"cost"`` = "cost"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"InstantiationCostChanged"`` = "InstantiationCostChanged"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"previousAdminRole"`` = "previousAdminRole"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"newAdminRole"`` = "newAdminRole"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"RoleAdminChanged"`` = "RoleAdminChanged"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"sender"`` = "sender"; `type`: ``"address"`` = "address" }] ; `name`: ``"RoleGranted"`` = "RoleGranted"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"sender"`` = "sender"; `type`: ``"address"`` = "address" }] ; `name`: ``"RoleRevoked"`` = "RoleRevoked"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `indexed`: ``true`` = true; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirement"`` = "newRequirement"; `type`: ``"tuple"`` = "tuple" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `indexed`: ``false`` = false; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirementData"`` = "newRequirementData"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"VersionChanged"`` = "VersionChanged"; `type`: ``"event"`` = "event" }, \{ `inputs`: readonly [] = []; `name`: ``"DEFAULT_ADMIN_ROLE"`` = "DEFAULT\_ADMIN\_ROLE"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"_beneficiary"`` = "\_beneficiary"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"acceptDefaultAdminTransfer"`` = "acceptDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"contract IRepository"`` = "contract IRepository"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"requirement"`` = "requirement"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"addDistribution"`` = "addDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"addDistribution"`` = "addDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"name"`` = "name"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorId"`` = "distributorId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"addNamedDistribution"`` = "addNamedDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"config"`` = "config"; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``""`` = ""; `type`: ``"bytes4"`` = "bytes4" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"maybeInstance"`` = "maybeInstance"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"afterCall"`` = "afterCall"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"config"`` = "config"; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``""`` = ""; `type`: ``"bytes4"`` = "bytes4" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"maybeInstance"`` = "maybeInstance"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"beforeCall"`` = "beforeCall"; `outputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }] ; `name`: ``"beginDefaultAdminTransfer"`` = "beginDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"sourceId"`` = "sourceId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"calculateDistributorId"`` = "calculateDistributorId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"calculateDistributorId"`` = "calculateDistributorId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"cancelDefaultAdminTransfer"`` = "cancelDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"changeDefaultAdminDelay"`` = "changeDefaultAdminDelay"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirement"`` = "newRequirement"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"changeVersion"`` = "changeVersion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdminDelay"`` = "defaultAdminDelay"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``""`` = ""; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdminDelayIncreaseWait"`` = "defaultAdminDelayIncreaseWait"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``""`` = ""; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultInstantiationCost"`` = "defaultInstantiationCost"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"distributionComponents"`` = "distributionComponents"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"distributionLocation"`` = "distributionLocation"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"instance"`` = "instance"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"distributionOf"`` = "distributionOf"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"getDistributionId"`` = "getDistributionId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getDistributionURI"`` = "getDistributionURI"; `outputs`: readonly [\{ `internalType`: ``"string"`` = "string"; `name`: ``""`` = ""; `type`: ``"string"`` = "string" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"getDistributions"`` = "getDistributions"; `outputs`: readonly [\{ `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``""`` = ""; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"getInstanceId"`` = "getInstanceId"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getRoleAdmin"`` = "getRoleAdmin"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"grantRole"`` = "grantRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"hasRole"`` = "hasRole"; `outputs`: readonly [\{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"instanceId"`` = "instanceId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"instanceVersions"`` = "instanceVersions"; `outputs`: readonly [\{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"major"`` = "major"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"minor"`` = "minor"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint128"`` = "uint128"; `name`: ``"patch"`` = "patch"; `type`: ``"uint128"`` = "uint128" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"args"`` = "args"; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"instantiate"`` = "instantiate"; `outputs`: readonly [\{ `internalType`: ``"address[]"`` = "address[]"; `name`: ``"srcs"`` = "srcs"; `type`: ``"address[]"`` = "address[]" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"name"`` = "name"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"version"`` = "version"; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"instantiationCosts"`` = "instantiationCosts"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"numInstances"`` = "numInstances"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"owner"`` = "owner"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"paymentToken"`` = "paymentToken"; `outputs`: readonly [\{ `internalType`: ``"contract IERC20"`` = "contract IERC20"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"pendingDefaultAdmin"`` = "pendingDefaultAdmin"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"pendingDefaultAdminDelay"`` = "pendingDefaultAdminDelay"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }, \{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"removeDistribution"`` = "removeDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"renounceRole"`` = "renounceRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"revokeRole"`` = "revokeRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"rollbackDefaultAdminDelay"`` = "rollbackDefaultAdminDelay"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"cost"`` = "cost"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"setInstantiationCost"`` = "setInstantiationCost"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``"interfaceId"`` = "interfaceId"; `type`: ``"bytes4"`` = "bytes4" }] ; `name`: ``"supportsInterface"`` = "supportsInterface"; `outputs`: readonly [\{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"versionRequirements"`` = "versionRequirements"; `outputs`: readonly [\{ `components`: readonly [\{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"major"`` = "major"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"minor"`` = "minor"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint128"`` = "uint128"; `name`: ``"patch"`` = "patch"; `type`: ``"uint128"`` = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }], ``"DistributionAdded"``\> }\>
256
+
257
+ #### Parameters
258
+
259
+ | Name | Type | Default value |
260
+ | :------ | :------ | :------ |
261
+ | `chain` | `Chain` | `undefined` |
262
+ | `name` | \`0x$\{string}\` | `undefined` |
263
+ | `address` | \`0x$\{string}\` | `undefined` |
264
+ | `initializer` | \`0x$\{string}\` | `"0x0000000000000000000000000000000000000000"` |
265
+
266
+ #### Returns
267
+
268
+ `Promise`\<\{ `receipt`: `TransactionReceipt` ; `distributionAddedEvent`: `Log`\<`bigint`, `number`, ``false``, `undefined`, ``true``, readonly [\{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"contract IERC20"`` = "contract IERC20"; `name`: ``"token"`` = "token"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"defaultCost"`` = "defaultCost"; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"constructor"`` = "constructor" }, \{ `inputs`: readonly [] = []; `name`: ``"AccessControlBadConfirmation"`` = "AccessControlBadConfirmation"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"AccessControlEnforcedDefaultAdminDelay"`` = "AccessControlEnforcedDefaultAdminDelay"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [] = []; `name`: ``"AccessControlEnforcedDefaultAdminRules"`` = "AccessControlEnforcedDefaultAdminRules"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `type`: ``"address"`` = "address" }] ; `name`: ``"AccessControlInvalidDefaultAdmin"`` = "AccessControlInvalidDefaultAdmin"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"neededRole"`` = "neededRole"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"AccessControlUnauthorizedAccount"`` = "AccessControlUnauthorizedAccount"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionExists"`` = "DistributionExists"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionNotFound"`` = "DistributionNotFound"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"InitializerNotFound"`` = "InitializerNotFound"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"InvalidInstance"`` = "InvalidInstance"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }] ; `name`: ``"InvalidRepository"`` = "InvalidRepository"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"string"`` = "string"; `name`: ``"version"`` = "version"; `type`: ``"string"`` = "string" }] ; `name`: ``"InvalidVersionRequested"`` = "InvalidVersionRequested"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }] ; `name`: ``"RepositoryAlreadyExists"`` = "RepositoryAlreadyExists"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint8"`` = "uint8"; `name`: ``"bits"`` = "bits"; `type`: ``"uint8"`` = "uint8" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"value"`` = "value"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"SafeCastOverflowedUintDowncast"`` = "SafeCastOverflowedUintDowncast"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"UnversionedDistribution"`` = "UnversionedDistribution"; `type`: ``"error"`` = "error" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"string"`` = "string"; `name`: ``"version"`` = "version"; `type`: ``"string"`` = "string" }] ; `name`: ``"VersionOutdated"`` = "VersionOutdated"; `type`: ``"error"`` = "error" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [] = []; `name`: ``"DefaultAdminDelayChangeCanceled"`` = "DefaultAdminDelayChangeCanceled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"effectSchedule"`` = "effectSchedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"DefaultAdminDelayChangeScheduled"`` = "DefaultAdminDelayChangeScheduled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [] = []; `name`: ``"DefaultAdminTransferCanceled"`` = "DefaultAdminTransferCanceled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint48"`` = "uint48"; `name`: ``"acceptSchedule"`` = "acceptSchedule"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"DefaultAdminTransferScheduled"`` = "DefaultAdminTransferScheduled"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``false`` = false; `internalType`: ``"address"`` = "address"; `name`: ``"distribution"`` = "distribution"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"DistributionAdded"`` = "DistributionAdded"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"DistributionRemoved"`` = "DistributionRemoved"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"newInstanceId"`` = "newInstanceId"; `type`: ``"uint256"`` = "uint256" }, \{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"version"`` = "version"; `type`: ``"uint256"`` = "uint256" }, \{ `indexed`: ``false`` = false; `internalType`: ``"address[]"`` = "address[]"; `name`: ``"instances"`` = "instances"; `type`: ``"address[]"`` = "address[]" }, \{ `indexed`: ``false`` = false; `internalType`: ``"bytes"`` = "bytes"; `name`: ``"args"`` = "args"; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"Instantiated"`` = "Instantiated"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``false`` = false; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"cost"`` = "cost"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"InstantiationCostChanged"`` = "InstantiationCostChanged"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"previousAdminRole"`` = "previousAdminRole"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"newAdminRole"`` = "newAdminRole"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"RoleAdminChanged"`` = "RoleAdminChanged"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"sender"`` = "sender"; `type`: ``"address"`` = "address" }] ; `name`: ``"RoleGranted"`` = "RoleGranted"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }, \{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"sender"`` = "sender"; `type`: ``"address"`` = "address" }] ; `name`: ``"RoleRevoked"`` = "RoleRevoked"; `type`: ``"event"`` = "event" }, \{ `anonymous`: ``false`` = false; `inputs`: readonly [\{ `indexed`: ``true`` = true; `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `indexed`: ``true`` = true; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirement"`` = "newRequirement"; `type`: ``"tuple"`` = "tuple" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `indexed`: ``false`` = false; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirementData"`` = "newRequirementData"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"VersionChanged"`` = "VersionChanged"; `type`: ``"event"`` = "event" }, \{ `inputs`: readonly [] = []; `name`: ``"DEFAULT_ADMIN_ROLE"`` = "DEFAULT\_ADMIN\_ROLE"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"_beneficiary"`` = "\_beneficiary"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"acceptDefaultAdminTransfer"`` = "acceptDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"contract IRepository"`` = "contract IRepository"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"requirement"`` = "requirement"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"addDistribution"`` = "addDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"addDistribution"`` = "addDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"name"`` = "name"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorId"`` = "distributorId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"addNamedDistribution"`` = "addNamedDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"config"`` = "config"; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``""`` = ""; `type`: ``"bytes4"`` = "bytes4" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"maybeInstance"`` = "maybeInstance"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"afterCall"`` = "afterCall"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"config"`` = "config"; `type`: ``"bytes"`` = "bytes" }, \{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``""`` = ""; `type`: ``"bytes4"`` = "bytes4" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"maybeInstance"`` = "maybeInstance"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"beforeCall"`` = "beforeCall"; `outputs`: readonly [\{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }] ; `name`: ``"beginDefaultAdminTransfer"`` = "beginDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"sourceId"`` = "sourceId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"calculateDistributorId"`` = "calculateDistributorId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"repository"`` = "repository"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `name`: ``"calculateDistributorId"`` = "calculateDistributorId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"cancelDefaultAdminTransfer"`` = "cancelDefaultAdminTransfer"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }] ; `name`: ``"changeDefaultAdminDelay"`` = "changeDefaultAdminDelay"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributionId"`` = "distributionId"; `type`: ``"bytes32"`` = "bytes32" }, \{ `components`: readonly [\{ `components`: readonly [\{ `internalType`: ... = "uint64"; `name`: ... = "major"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint64"; `name`: ... = "minor"; `type`: ... = "uint64" }, \{ `internalType`: ... = "uint128"; `name`: ... = "patch"; `type`: ... = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `internalType`: ``"struct LibSemver.VersionRequirement"`` = "struct LibSemver.VersionRequirement"; `name`: ``"newRequirement"`` = "newRequirement"; `type`: ``"tuple"`` = "tuple" }] ; `name`: ``"changeVersion"`` = "changeVersion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdmin"`` = "defaultAdmin"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdminDelay"`` = "defaultAdminDelay"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``""`` = ""; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultAdminDelayIncreaseWait"`` = "defaultAdminDelayIncreaseWait"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``""`` = ""; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"defaultInstantiationCost"`` = "defaultInstantiationCost"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"distributionComponents"`` = "distributionComponents"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"distributionLocation"`` = "distributionLocation"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"initializer"`` = "initializer"; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"instance"`` = "instance"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"distributionOf"`` = "distributionOf"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"getDistributionId"`` = "getDistributionId"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getDistributionURI"`` = "getDistributionURI"; `outputs`: readonly [\{ `internalType`: ``"string"`` = "string"; `name`: ``""`` = ""; `type`: ``"string"`` = "string" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"getDistributions"`` = "getDistributions"; `outputs`: readonly [\{ `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``""`` = ""; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"instance"`` = "instance"; `type`: ``"address"`` = "address" }] ; `name`: ``"getInstanceId"`` = "getInstanceId"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getRoleAdmin"`` = "getRoleAdmin"; `outputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"grantRole"`` = "grantRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"hasRole"`` = "hasRole"; `outputs`: readonly [\{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"instanceId"`` = "instanceId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"instanceVersions"`` = "instanceVersions"; `outputs`: readonly [\{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"major"`` = "major"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"minor"`` = "minor"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint128"`` = "uint128"; `name`: ``"patch"`` = "patch"; `type`: ``"uint128"`` = "uint128" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"args"`` = "args"; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"instantiate"`` = "instantiate"; `outputs`: readonly [\{ `internalType`: ``"address[]"`` = "address[]"; `name`: ``"srcs"`` = "srcs"; `type`: ``"address[]"`` = "address[]" }, \{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"name"`` = "name"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"version"`` = "version"; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"instantiationCosts"`` = "instantiationCosts"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"numInstances"`` = "numInstances"; `outputs`: readonly [\{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"owner"`` = "owner"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"paymentToken"`` = "paymentToken"; `outputs`: readonly [\{ `internalType`: ``"contract IERC20"`` = "contract IERC20"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"pendingDefaultAdmin"`` = "pendingDefaultAdmin"; `outputs`: readonly [\{ `internalType`: ``"address"`` = "address"; `name`: ``"newAdmin"`` = "newAdmin"; `type`: ``"address"`` = "address" }, \{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"pendingDefaultAdminDelay"`` = "pendingDefaultAdminDelay"; `outputs`: readonly [\{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"newDelay"`` = "newDelay"; `type`: ``"uint48"`` = "uint48" }, \{ `internalType`: ``"uint48"`` = "uint48"; `name`: ``"schedule"`` = "schedule"; `type`: ``"uint48"`` = "uint48" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"removeDistribution"`` = "removeDistribution"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"renounceRole"`` = "renounceRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"role"`` = "role"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"address"`` = "address"; `name`: ``"account"`` = "account"; `type`: ``"address"`` = "address" }] ; `name`: ``"revokeRole"`` = "revokeRole"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [] = []; `name`: ``"rollbackDefaultAdminDelay"`` = "rollbackDefaultAdminDelay"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"id"`` = "id"; `type`: ``"bytes32"`` = "bytes32" }, \{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"cost"`` = "cost"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"setInstantiationCost"`` = "setInstantiationCost"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``"interfaceId"`` = "interfaceId"; `type`: ``"bytes4"`` = "bytes4" }] ; `name`: ``"supportsInterface"`` = "supportsInterface"; `outputs`: readonly [\{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, \{ `inputs`: readonly [\{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"distributorsId"`` = "distributorsId"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"versionRequirements"`` = "versionRequirements"; `outputs`: readonly [\{ `components`: readonly [\{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"major"`` = "major"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint64"`` = "uint64"; `name`: ``"minor"`` = "minor"; `type`: ``"uint64"`` = "uint64" }, \{ `internalType`: ``"uint128"`` = "uint128"; `name`: ``"patch"`` = "patch"; `type`: ``"uint128"`` = "uint128" }] ; `internalType`: ``"struct LibSemver.Version"`` = "struct LibSemver.Version"; `name`: ``"version"`` = "version"; `type`: ``"tuple"`` = "tuple" }, \{ `internalType`: ``"enum LibSemver.requirements"`` = "enum LibSemver.requirements"; `name`: ``"requirement"`` = "requirement"; `type`: ``"uint8"`` = "uint8" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }], ``"DistributionAdded"``\> }\>
269
+
270
+ ___
271
+
274
272
  ### getMAOInstance
275
273
 
276
274
  ▸ **getMAOInstance**(`name?`, `instanceId`): `Promise`\<[`MAOInstanceContracts`](../interfaces/MAOInstanceContracts.md)\>
@@ -288,6 +286,54 @@ ___
288
286
 
289
287
  ___
290
288
 
289
+ ### getInstantiatePrice
290
+
291
+ ▸ **getInstantiatePrice**(`distributorsId`): `Promise`\<`bigint`\>
292
+
293
+ #### Parameters
294
+
295
+ | Name | Type |
296
+ | :------ | :------ |
297
+ | `distributorsId` | \`0x$\{string}\` |
298
+
299
+ #### Returns
300
+
301
+ `Promise`\<`bigint`\>
302
+
303
+ ___
304
+
305
+ ### setInstantiationAllowance
306
+
307
+ ▸ **setInstantiationAllowance**(`amount?`): `Promise`\<`void`\>
308
+
309
+ #### Parameters
310
+
311
+ | Name | Type |
312
+ | :------ | :------ |
313
+ | `amount?` | `bigint` |
314
+
315
+ #### Returns
316
+
317
+ `Promise`\<`void`\>
318
+
319
+ ___
320
+
321
+ ### needsAllowance
322
+
323
+ ▸ **needsAllowance**(`distributorsId`): `Promise`\<`boolean`\>
324
+
325
+ #### Parameters
326
+
327
+ | Name | Type |
328
+ | :------ | :------ |
329
+ | `distributorsId` | \`0x$\{string}\` |
330
+
331
+ #### Returns
332
+
333
+ `Promise`\<`boolean`\>
334
+
335
+ ___
336
+
291
337
  ### instantiate
292
338
 
293
339
  ▸ **instantiate**(`args`, `name?`, `chain`): `Promise`\<[`MAOInstanceContracts`](../interfaces/MAOInstanceContracts.md)\>
@@ -299,7 +345,7 @@ Create a new MAODistribution instance
299
345
  | Name | Type | Default value | Description |
300
346
  | :------ | :------ | :------ | :------ |
301
347
  | `args` | `undefined` \| readonly [\{ `tokenSettings`: \{ `tokenName`: `string` ; `tokenSymbol`: `string` } ; `rankifySettings`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `metadata`: `string` ; `rankTokenURI`: `string` ; `rankTokenContractURI`: `string` } }] \| readonly [\{ `tokenSettings`: \{ `tokenName`: `string` ; `tokenSymbol`: `string` } ; `rankifySettings`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `metadata`: `string` ; `rankTokenURI`: `string` ; `rankTokenContractURI`: `string` } }] | `undefined` | Distribution arguments (encoded as bytes) |
302
- | `name` | `string` | `MAODistributorClient.DEFAULT_NAME` | - |
348
+ | `name` | `string` | `MAODistributorClient.DEFAULT_NAME` | Distributor name (defaults to "MAO Distribution") |
303
349
  | `chain` | `Chain` | `undefined` | - |
304
350
 
305
351
  #### Returns