@peeramid-labs/sdk 2.1.1 → 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 +137 -3
  313. package/docs/enums/CONTENT_STORAGE.md +27 -0
  314. package/docs/enums/SUBMISSION_TYPES.md +41 -0
  315. package/docs/index.md +137 -3
  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 +5 -2
  351. package/lib.commonjs/utils/artifacts.d.ts.map +1 -1
  352. package/lib.commonjs/utils/artifacts.js +4 -2
  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 +5 -2
  393. package/lib.esm/utils/artifacts.d.ts.map +1 -1
  394. package/lib.esm/utils/artifacts.js +5 -3
  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
@@ -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
@@ -17,6 +17,7 @@ Main Multipass class for handling registrations and queries
17
17
  ### Properties
18
18
 
19
19
  - [chainId](Multipass.md#chainid)
20
+ - [publicClient](Multipass.md#publicclient)
20
21
 
21
22
  ### Methods
22
23
 
@@ -26,6 +27,12 @@ Main Multipass class for handling registrations and queries
26
27
  - [formQueryByUsername](Multipass.md#formquerybyusername)
27
28
  - [formQueryByUsernameAndId](Multipass.md#formquerybyusernameandid)
28
29
  - [formQueryByFullDetails](Multipass.md#formquerybyfulldetails)
30
+ - [getContractAddress](Multipass.md#getcontractaddress)
31
+ - [getDomainState](Multipass.md#getdomainstate)
32
+ - [getDomainStateById](Multipass.md#getdomainstatebyid)
33
+ - [getContractState](Multipass.md#getcontractstate)
34
+ - [listDomains](Multipass.md#listdomains)
35
+ - [listRecords](Multipass.md#listrecords)
29
36
  - [signRegistrarMessage](Multipass.md#signregistrarmessage)
30
37
  - [getDappURL](Multipass.md#getdappurl)
31
38
 
@@ -44,6 +51,7 @@ Creates a new Multipass instance
44
51
  | `params` | `Object` | Constructor parameters |
45
52
  | `params.chainId` | `number` | ID of the blockchain network |
46
53
  | `params.walletClient` | `Object` | Wallet client for signing transactions |
54
+ | `params.publicClient` | `Object` | - |
47
55
 
48
56
  #### Returns
49
57
 
@@ -65,6 +73,18 @@ Chain ID for the network
65
73
 
66
74
  [MultipassBase](MultipassBase.md).[chainId](MultipassBase.md#chainid)
67
75
 
76
+ ___
77
+
78
+ ### publicClient
79
+
80
+ • **publicClient**: `Object`
81
+
82
+ Public client for reading contracts
83
+
84
+ #### Inherited from
85
+
86
+ [MultipassBase](MultipassBase.md).[publicClient](MultipassBase.md#publicclient)
87
+
68
88
  ## Methods
69
89
 
70
90
  ### getRegistrarMessage
@@ -229,6 +249,134 @@ The generated name query
229
249
 
230
250
  ___
231
251
 
252
+ ### getContractAddress
253
+
254
+ ▸ **getContractAddress**(): \`0x$\{string}\`
255
+
256
+ #### Returns
257
+
258
+ \`0x$\{string}\`
259
+
260
+ #### Inherited from
261
+
262
+ [MultipassBase](MultipassBase.md).[getContractAddress](MultipassBase.md#getcontractaddress)
263
+
264
+ ___
265
+
266
+ ### getDomainState
267
+
268
+ ▸ **getDomainState**(`domainName`): `Promise`\<`Domain`\>
269
+
270
+ Get domain state
271
+
272
+ #### Parameters
273
+
274
+ | Name | Type | Description |
275
+ | :------ | :------ | :------ |
276
+ | `domainName` | \`0x$\{string}\` | Domain name to query |
277
+
278
+ #### Returns
279
+
280
+ `Promise`\<`Domain`\>
281
+
282
+ Domain state
283
+
284
+ #### Inherited from
285
+
286
+ [MultipassBase](MultipassBase.md).[getDomainState](MultipassBase.md#getdomainstate)
287
+
288
+ ___
289
+
290
+ ### getDomainStateById
291
+
292
+ ▸ **getDomainStateById**(`id`): `Promise`\<`Domain`\>
293
+
294
+ Get domain state by ID
295
+
296
+ #### Parameters
297
+
298
+ | Name | Type | Description |
299
+ | :------ | :------ | :------ |
300
+ | `id` | `bigint` | Domain ID to query |
301
+
302
+ #### Returns
303
+
304
+ `Promise`\<`Domain`\>
305
+
306
+ Domain state
307
+
308
+ #### Inherited from
309
+
310
+ [MultipassBase](MultipassBase.md).[getDomainStateById](MultipassBase.md#getdomainstatebyid)
311
+
312
+ ___
313
+
314
+ ### getContractState
315
+
316
+ ▸ **getContractState**(): `Promise`\<`bigint`\>
317
+
318
+ Get contract state
319
+
320
+ #### Returns
321
+
322
+ `Promise`\<`bigint`\>
323
+
324
+ Total number of domains
325
+
326
+ #### Inherited from
327
+
328
+ [MultipassBase](MultipassBase.md).[getContractState](MultipassBase.md#getcontractstate)
329
+
330
+ ___
331
+
332
+ ### listDomains
333
+
334
+ ▸ **listDomains**(`onlyActive?`): `Promise`\<`Domain`[]\>
335
+
336
+ List all domains with their active status
337
+
338
+ #### Parameters
339
+
340
+ | Name | Type | Description |
341
+ | :------ | :------ | :------ |
342
+ | `onlyActive?` | `boolean` | If true, only return active domains |
343
+
344
+ #### Returns
345
+
346
+ `Promise`\<`Domain`[]\>
347
+
348
+ Array of domains with their states
349
+
350
+ #### Inherited from
351
+
352
+ [MultipassBase](MultipassBase.md).[listDomains](MultipassBase.md#listdomains)
353
+
354
+ ___
355
+
356
+ ### listRecords
357
+
358
+ ▸ **listRecords**(`onlyActive?`): `Promise`\<\{ `record`: `CustomRecord` ; `isActive`: `boolean` }[]\>
359
+
360
+ List all records with their states
361
+
362
+ #### Parameters
363
+
364
+ | Name | Type | Description |
365
+ | :------ | :------ | :------ |
366
+ | `onlyActive?` | `boolean` | If true, only return active records |
367
+
368
+ #### Returns
369
+
370
+ `Promise`\<\{ `record`: `CustomRecord` ; `isActive`: `boolean` }[]\>
371
+
372
+ Array of records with their states
373
+
374
+ #### Inherited from
375
+
376
+ [MultipassBase](MultipassBase.md).[listRecords](MultipassBase.md#listrecords)
377
+
378
+ ___
379
+
232
380
  ### signRegistrarMessage
233
381
 
234
382
  ▸ **signRegistrarMessage**(`message`, `verifierAddress`): `Promise`\<\`0x$\{string}\`\>