@peeramid-labs/sdk 2.1.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/cli/abis/AccessControl.js +232 -0
- package/cli/abis/AccessControl.js.map +1 -0
- package/cli/abis/AccessControlDefaultAdminRules.js +460 -0
- package/cli/abis/AccessControlDefaultAdminRules.js.map +1 -0
- package/cli/abis/ArguableVotingTournament.js +187 -0
- package/cli/abis/ArguableVotingTournament.js.map +1 -0
- package/cli/abis/Checkpoints.js +12 -0
- package/cli/abis/Checkpoints.js.map +1 -0
- package/cli/abis/CloneDistribution.js +102 -0
- package/cli/abis/CloneDistribution.js.map +1 -0
- package/cli/abis/Clones.js +12 -0
- package/cli/abis/Clones.js.map +1 -0
- package/cli/abis/CodeHashDistribution.js +159 -0
- package/cli/abis/CodeHashDistribution.js.map +1 -0
- package/cli/abis/CodeIndex.js +74 -0
- package/cli/abis/CodeIndex.js.map +1 -0
- package/cli/abis/ContextUpgradeable.js +30 -0
- package/cli/abis/ContextUpgradeable.js.map +1 -0
- package/cli/abis/DAODistributor.js +1351 -0
- package/cli/abis/DAODistributor.js.map +1 -0
- package/cli/abis/Diamond.js +92 -0
- package/cli/abis/Diamond.js.map +1 -0
- package/cli/abis/DiamondClonable.js +103 -0
- package/cli/abis/DiamondClonable.js.map +1 -0
- package/cli/abis/DiamondCutFacet.js +89 -0
- package/cli/abis/DiamondCutFacet.js.map +1 -0
- package/cli/abis/DiamondDistribution.js +118 -0
- package/cli/abis/DiamondDistribution.js.map +1 -0
- package/cli/abis/DiamondInit.js +14 -0
- package/cli/abis/DiamondInit.js.map +1 -0
- package/cli/abis/DiamondLoupeFacet.js +102 -0
- package/cli/abis/DiamondLoupeFacet.js.map +1 -0
- package/cli/abis/DistributableGovernanceERC20.js +917 -0
- package/cli/abis/DistributableGovernanceERC20.js.map +1 -0
- package/cli/abis/Distributor.js +801 -0
- package/cli/abis/Distributor.js.map +1 -0
- package/cli/abis/ECDSA.js +34 -0
- package/cli/abis/ECDSA.js.map +1 -0
- package/cli/abis/EIP712InspectorFacet.js +58 -0
- package/cli/abis/EIP712InspectorFacet.js.map +1 -0
- package/cli/abis/EIP712Upgradeable.js +79 -0
- package/cli/abis/EIP712Upgradeable.js.map +1 -0
- package/cli/abis/ERC1155.js +421 -0
- package/cli/abis/ERC1155.js.map +1 -0
- package/cli/abis/ERC1155Burnable.js +467 -0
- package/cli/abis/ERC1155Burnable.js.map +1 -0
- package/cli/abis/ERC1155BurnableUpgradeable.js +490 -0
- package/cli/abis/ERC1155BurnableUpgradeable.js.map +1 -0
- package/cli/abis/ERC1155Upgradeable.js +444 -0
- package/cli/abis/ERC1155Upgradeable.js.map +1 -0
- package/cli/abis/ERC165.js +26 -0
- package/cli/abis/ERC165.js.map +1 -0
- package/cli/abis/ERC165Upgradeable.js +49 -0
- package/cli/abis/ERC165Upgradeable.js.map +1 -0
- package/cli/abis/ERC20.js +315 -0
- package/cli/abis/ERC20.js.map +1 -0
- package/cli/abis/ERC20Burnable.js +346 -0
- package/cli/abis/ERC20Burnable.js.map +1 -0
- package/cli/abis/ERC20Upgradeable.js +338 -0
- package/cli/abis/ERC20Upgradeable.js.map +1 -0
- package/cli/abis/ERC20VotesUpgradeable.js +781 -0
- package/cli/abis/ERC20VotesUpgradeable.js.map +1 -0
- package/cli/abis/ERC721.js +440 -0
- package/cli/abis/ERC721.js.map +1 -0
- package/cli/abis/ERC721Burnable.js +453 -0
- package/cli/abis/ERC721Burnable.js.map +1 -0
- package/cli/abis/IAccessControl.js +200 -0
- package/cli/abis/IAccessControl.js.map +1 -0
- package/cli/abis/IAccessControlDefaultAdminRules.js +399 -0
- package/cli/abis/IAccessControlDefaultAdminRules.js.map +1 -0
- package/cli/abis/ICodeIndex.js +74 -0
- package/cli/abis/ICodeIndex.js.map +1 -0
- package/cli/abis/IContractURI.js +20 -0
- package/cli/abis/IContractURI.js.map +1 -0
- package/cli/abis/IDAOFactory.js +89 -0
- package/cli/abis/IDAOFactory.js.map +1 -0
- package/cli/abis/IDiamondCut.js +47 -0
- package/cli/abis/IDiamondCut.js.map +1 -0
- package/cli/abis/IDiamondLoupe.js +83 -0
- package/cli/abis/IDiamondLoupe.js.map +1 -0
- package/cli/abis/IDistribution.js +91 -0
- package/cli/abis/IDistribution.js.map +1 -0
- package/cli/abis/IDistributor.js +627 -0
- package/cli/abis/IDistributor.js.map +1 -0
- package/cli/abis/IERC1155.js +300 -0
- package/cli/abis/IERC1155.js.map +1 -0
- package/cli/abis/IERC1155Errors.js +109 -0
- package/cli/abis/IERC1155Errors.js.map +1 -0
- package/cli/abis/IERC1155MetadataURI.js +319 -0
- package/cli/abis/IERC1155MetadataURI.js.map +1 -0
- package/cli/abis/IERC1155Receiver.js +85 -0
- package/cli/abis/IERC1155Receiver.js.map +1 -0
- package/cli/abis/IERC1271.js +31 -0
- package/cli/abis/IERC1271.js.map +1 -0
- package/cli/abis/IERC165.js +26 -0
- package/cli/abis/IERC165.js.map +1 -0
- package/cli/abis/IERC173.js +33 -0
- package/cli/abis/IERC173.js.map +1 -0
- package/cli/abis/IERC20.js +190 -0
- package/cli/abis/IERC20.js.map +1 -0
- package/cli/abis/IERC20Errors.js +93 -0
- package/cli/abis/IERC20Errors.js.map +1 -0
- package/cli/abis/IERC20Metadata.js +229 -0
- package/cli/abis/IERC20Metadata.js.map +1 -0
- package/cli/abis/IERC20MintableUpgradeable.js +25 -0
- package/cli/abis/IERC20MintableUpgradeable.js.map +1 -0
- package/cli/abis/IERC5267.js +56 -0
- package/cli/abis/IERC5267.js.map +1 -0
- package/cli/abis/IERC5313.js +20 -0
- package/cli/abis/IERC5313.js.map +1 -0
- package/cli/abis/IERC5805.js +226 -0
- package/cli/abis/IERC5805.js.map +1 -0
- package/cli/abis/IERC6372.js +33 -0
- package/cli/abis/IERC6372.js.map +1 -0
- package/cli/abis/IERC721.js +292 -0
- package/cli/abis/IERC721.js.map +1 -0
- package/cli/abis/IERC721Errors.js +110 -0
- package/cli/abis/IERC721Errors.js.map +1 -0
- package/cli/abis/IERC721Metadata.js +337 -0
- package/cli/abis/IERC721Metadata.js.map +1 -0
- package/cli/abis/IERC721Receiver.js +41 -0
- package/cli/abis/IERC721Receiver.js.map +1 -0
- package/cli/abis/IERC7746.js +84 -0
- package/cli/abis/IERC7746.js.map +1 -0
- package/cli/abis/IErrors.js +23 -0
- package/cli/abis/IErrors.js.map +1 -0
- package/cli/abis/IInitializer.js +75 -0
- package/cli/abis/IInitializer.js.map +1 -0
- package/cli/abis/IInstaller.js +506 -0
- package/cli/abis/IInstaller.js.map +1 -0
- package/cli/abis/ILockableERC1155.js +464 -0
- package/cli/abis/ILockableERC1155.js.map +1 -0
- package/cli/abis/IMultipass.js +1263 -0
- package/cli/abis/IMultipass.js.map +1 -0
- package/cli/abis/IPluginRepo.js +114 -0
- package/cli/abis/IPluginRepo.js.map +1 -0
- package/cli/abis/IRankToken.js +533 -0
- package/cli/abis/IRankToken.js.map +1 -0
- package/cli/abis/IRankifyInstance.js +147 -0
- package/cli/abis/IRankifyInstance.js.map +1 -0
- package/cli/abis/IRepository.js +343 -0
- package/cli/abis/IRepository.js.map +1 -0
- package/cli/abis/IVotes.js +200 -0
- package/cli/abis/IVotes.js.map +1 -0
- package/cli/abis/Initializable.js +30 -0
- package/cli/abis/Initializable.js.map +1 -0
- package/cli/abis/InitializedDiamondDistribution.js +107 -0
- package/cli/abis/InitializedDiamondDistribution.js.map +1 -0
- package/cli/abis/Installer.js +506 -0
- package/cli/abis/Installer.js.map +1 -0
- package/cli/abis/InstallerClonable.js +542 -0
- package/cli/abis/InstallerClonable.js.map +1 -0
- package/cli/abis/LatestVersionDistribution.js +136 -0
- package/cli/abis/LatestVersionDistribution.js.map +1 -0
- package/cli/abis/LibDiamond.js +79 -0
- package/cli/abis/LibDiamond.js.map +1 -0
- package/cli/abis/LibSemver.js +18 -0
- package/cli/abis/LibSemver.js.map +1 -0
- package/cli/abis/LockableERC1155.js +631 -0
- package/cli/abis/LockableERC1155.js.map +1 -0
- package/cli/abis/MAODistribution.js +285 -0
- package/cli/abis/MAODistribution.js.map +1 -0
- package/cli/abis/Math.js +12 -0
- package/cli/abis/Math.js.map +1 -0
- package/cli/abis/MiddlewareProxy.js +39 -0
- package/cli/abis/MiddlewareProxy.js.map +1 -0
- package/cli/abis/MockCloneDistribution.js +107 -0
- package/cli/abis/MockCloneDistribution.js.map +1 -0
- package/cli/abis/MockDiamondInitialize.js +33 -0
- package/cli/abis/MockDiamondInitialize.js.map +1 -0
- package/cli/abis/MockERC1155.js +636 -0
- package/cli/abis/MockERC1155.js.map +1 -0
- package/cli/abis/MockERC20.js +336 -0
- package/cli/abis/MockERC20.js.map +1 -0
- package/cli/abis/MockERC721.js +620 -0
- package/cli/abis/MockERC721.js.map +1 -0
- package/cli/abis/MockInstaller.js +596 -0
- package/cli/abis/MockInstaller.js.map +1 -0
- package/cli/abis/MockTokenizedDistributor.js +1351 -0
- package/cli/abis/MockTokenizedDistributor.js.map +1 -0
- package/cli/abis/MockVendingMachine.js +404 -0
- package/cli/abis/MockVendingMachine.js.map +1 -0
- package/cli/abis/Multipass.js +1461 -0
- package/cli/abis/Multipass.js.map +1 -0
- package/cli/abis/NoncesUpgradeable.js +65 -0
- package/cli/abis/NoncesUpgradeable.js.map +1 -0
- package/cli/abis/Ownable.js +81 -0
- package/cli/abis/Ownable.js.map +1 -0
- package/cli/abis/OwnableDistributor.js +886 -0
- package/cli/abis/OwnableDistributor.js.map +1 -0
- package/cli/abis/OwnableRepository.js +566 -0
- package/cli/abis/OwnableRepository.js.map +1 -0
- package/cli/abis/OwnableUpgradeable.js +104 -0
- package/cli/abis/OwnableUpgradeable.js.map +1 -0
- package/cli/abis/OwnershipFacet.js +52 -0
- package/cli/abis/OwnershipFacet.js.map +1 -0
- package/cli/abis/RankToken.js +783 -0
- package/cli/abis/RankToken.js.map +1 -0
- package/cli/abis/Rankify.js +449 -0
- package/cli/abis/Rankify.js.map +1 -0
- package/cli/abis/RankifyDiamondInstance.js +2032 -0
- package/cli/abis/RankifyDiamondInstance.js.map +1 -0
- package/cli/abis/RankifyInstanceEventMock.js +332 -0
- package/cli/abis/RankifyInstanceEventMock.js.map +1 -0
- package/cli/abis/RankifyInstanceGameMastersFacet.js +319 -0
- package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -0
- package/cli/abis/RankifyInstanceInit.js +80 -0
- package/cli/abis/RankifyInstanceInit.js.map +1 -0
- package/cli/abis/RankifyInstanceMainFacet.js +987 -0
- package/cli/abis/RankifyInstanceMainFacet.js.map +1 -0
- package/cli/abis/RankifyInstanceRequirementsFacet.js +549 -0
- package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -0
- package/cli/abis/ReentrancyGuard.js +12 -0
- package/cli/abis/ReentrancyGuard.js.map +1 -0
- package/cli/abis/ReentrancyGuardUpgradeable.js +35 -0
- package/cli/abis/ReentrancyGuardUpgradeable.js.map +1 -0
- package/cli/abis/Repo.js +566 -0
- package/cli/abis/Repo.js.map +1 -0
- package/cli/abis/Repository.js +471 -0
- package/cli/abis/Repository.js.map +1 -0
- package/cli/abis/SafeCast.js +61 -0
- package/cli/abis/SafeCast.js.map +1 -0
- package/cli/abis/SimpleAccessManager.js +224 -0
- package/cli/abis/SimpleAccessManager.js.map +1 -0
- package/cli/abis/Strings.js +23 -0
- package/cli/abis/Strings.js.map +1 -0
- package/cli/abis/Test1Facet.js +179 -0
- package/cli/abis/Test1Facet.js.map +1 -0
- package/cli/abis/Test2Facet.js +147 -0
- package/cli/abis/Test2Facet.js.map +1 -0
- package/cli/abis/TestFacet.js +33 -0
- package/cli/abis/TestFacet.js.map +1 -0
- package/cli/abis/TokenizedDistributor.js +878 -0
- package/cli/abis/TokenizedDistributor.js.map +1 -0
- package/cli/abis/VotesUpgradeable.js +402 -0
- package/cli/abis/VotesUpgradeable.js.map +1 -0
- package/cli/abis/index.js +484 -0
- package/cli/abis/index.js.map +1 -0
- package/cli/cli/client.js +57 -0
- package/cli/cli/client.js.map +1 -0
- package/cli/cli/commands/distributions/add.js +96 -0
- package/cli/cli/commands/distributions/add.js.map +1 -0
- package/cli/cli/commands/distributions/index.js +11 -0
- package/cli/cli/commands/distributions/index.js.map +1 -0
- package/cli/cli/commands/distributions/list.js +42 -0
- package/cli/cli/commands/distributions/list.js.map +1 -0
- package/cli/cli/commands/fellowship/create.js +130 -0
- package/cli/cli/commands/fellowship/create.js.map +1 -0
- package/cli/cli/commands/fellowship/index.js +11 -0
- package/cli/cli/commands/fellowship/index.js.map +1 -0
- package/cli/cli/commands/fellowship/metadata.js +42 -0
- package/cli/cli/commands/fellowship/metadata.js.map +1 -0
- package/cli/cli/commands/instances/index.js +7 -0
- package/cli/cli/commands/instances/index.js.map +1 -0
- package/cli/cli/commands/instances/list.js +50 -0
- package/cli/cli/commands/instances/list.js.map +1 -0
- package/cli/cli/commands/multipass/contract.js +178 -0
- package/cli/cli/commands/multipass/contract.js.map +1 -0
- package/cli/cli/commands/multipass/domain.js +512 -0
- package/cli/cli/commands/multipass/domain.js.map +1 -0
- package/cli/cli/commands/multipass/domains.js +141 -0
- package/cli/cli/commands/multipass/domains.js.map +1 -0
- package/cli/cli/commands/multipass/index.js +20 -0
- package/cli/cli/commands/multipass/index.js.map +1 -0
- package/cli/cli/commands/multipass/owner.js +320 -0
- package/cli/cli/commands/multipass/owner.js.map +1 -0
- package/cli/cli/index.js +20 -0
- package/cli/cli/index.js.map +1 -0
- package/cli/eds/Distributor.js +76 -0
- package/cli/eds/Distributor.js.map +1 -0
- package/cli/index.js +50 -0
- package/cli/index.js.map +1 -0
- package/cli/multipass/MultipassBase.js +307 -0
- package/cli/multipass/MultipassBase.js.map +1 -0
- package/cli/multipass/Owner.js +214 -0
- package/cli/multipass/Owner.js.map +1 -0
- package/cli/multipass/Registrar.js +77 -0
- package/cli/multipass/Registrar.js.map +1 -0
- package/cli/rankify/GameMaster.js +372 -0
- package/cli/rankify/GameMaster.js.map +1 -0
- package/cli/rankify/InstanceBase.js +432 -0
- package/cli/rankify/InstanceBase.js.map +1 -0
- package/cli/rankify/MAODistributor.js +278 -0
- package/cli/rankify/MAODistributor.js.map +1 -0
- package/cli/rankify/Player.js +175 -0
- package/cli/rankify/Player.js.map +1 -0
- package/cli/rankify/RankToken.js +109 -0
- package/cli/rankify/RankToken.js.map +1 -0
- package/cli/types/contracts.js +3 -0
- package/cli/types/contracts.js.map +1 -0
- package/cli/types.js +30 -0
- package/cli/types.js.map +1 -0
- package/cli/utils/ApiError.js +21 -0
- package/cli/utils/ApiError.js.map +1 -0
- package/cli/utils/artifacts.js +51 -0
- package/cli/utils/artifacts.js.map +1 -0
- package/cli/utils/chainMapping.js +16 -0
- package/cli/utils/chainMapping.js.map +1 -0
- package/cli/utils/index.js +35 -0
- package/cli/utils/index.js.map +1 -0
- package/docs/classes/MAODistributorClient.md +89 -43
- package/docs/classes/Multipass.md +148 -0
- package/docs/classes/MultipassBase.md +120 -0
- package/docs/classes/RankTokenClient.md +34 -0
- package/docs/docs/classes/MAODistributorClient.md +89 -43
- package/docs/docs/classes/Multipass.md +148 -0
- package/docs/docs/classes/MultipassBase.md +120 -0
- package/docs/docs/classes/RankTokenClient.md +34 -0
- package/docs/docs/enums/CONTENT_STORAGE.md +27 -0
- package/docs/docs/enums/SUBMISSION_TYPES.md +41 -0
- package/docs/docs/index.md +135 -2
- package/docs/enums/CONTENT_STORAGE.md +27 -0
- package/docs/enums/SUBMISSION_TYPES.md +41 -0
- package/docs/index.md +135 -2
- package/lib.commonjs/eds/Distributor.d.ts +5 -1
- package/lib.commonjs/eds/Distributor.d.ts.map +1 -1
- package/lib.commonjs/eds/Distributor.js +14 -2
- package/lib.commonjs/eds/Distributor.js.map +1 -1
- package/lib.commonjs/multipass/MultipassBase.d.ts +1185 -2
- package/lib.commonjs/multipass/MultipassBase.d.ts.map +1 -1
- package/lib.commonjs/multipass/MultipassBase.js +168 -1
- package/lib.commonjs/multipass/MultipassBase.js.map +1 -1
- package/lib.commonjs/multipass/Owner.d.ts +137 -0
- package/lib.commonjs/multipass/Owner.d.ts.map +1 -0
- package/lib.commonjs/multipass/Owner.js +214 -0
- package/lib.commonjs/multipass/Owner.js.map +1 -0
- package/lib.commonjs/multipass/Registrar.d.ts +3 -2
- package/lib.commonjs/multipass/Registrar.d.ts.map +1 -1
- package/lib.commonjs/multipass/Registrar.js +3 -3
- package/lib.commonjs/multipass/Registrar.js.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts +1042 -2
- package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.js +146 -33
- package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
- package/lib.commonjs/rankify/Player.js +7 -7
- package/lib.commonjs/rankify/Player.js.map +1 -1
- package/lib.commonjs/rankify/RankToken.d.ts +3 -0
- package/lib.commonjs/rankify/RankToken.d.ts.map +1 -1
- package/lib.commonjs/rankify/RankToken.js +74 -0
- package/lib.commonjs/rankify/RankToken.js.map +1 -1
- package/lib.commonjs/types/contracts.d.ts +0 -6
- package/lib.commonjs/types/contracts.d.ts.map +1 -1
- package/lib.commonjs/types/contracts.js +0 -16
- package/lib.commonjs/types/contracts.js.map +1 -1
- package/lib.commonjs/types.d.ts +113 -2
- package/lib.commonjs/types.d.ts.map +1 -1
- package/lib.commonjs/types.js +15 -1
- package/lib.commonjs/types.js.map +1 -1
- package/lib.commonjs/utils/artifacts.d.ts +3 -1
- package/lib.commonjs/utils/artifacts.d.ts.map +1 -1
- package/lib.commonjs/utils/artifacts.js +3 -1
- package/lib.commonjs/utils/artifacts.js.map +1 -1
- package/lib.commonjs/utils/index.d.ts +7 -0
- package/lib.commonjs/utils/index.d.ts.map +1 -1
- package/lib.commonjs/utils/index.js +16 -0
- package/lib.commonjs/utils/index.js.map +1 -1
- package/lib.esm/eds/Distributor.d.ts +5 -1
- package/lib.esm/eds/Distributor.d.ts.map +1 -1
- package/lib.esm/eds/Distributor.js +14 -2
- package/lib.esm/eds/Distributor.js.map +1 -1
- package/lib.esm/multipass/MultipassBase.d.ts +1185 -2
- package/lib.esm/multipass/MultipassBase.d.ts.map +1 -1
- package/lib.esm/multipass/MultipassBase.js +168 -1
- package/lib.esm/multipass/MultipassBase.js.map +1 -1
- package/lib.esm/multipass/Owner.d.ts +137 -0
- package/lib.esm/multipass/Owner.d.ts.map +1 -0
- package/lib.esm/multipass/Owner.js +208 -0
- package/lib.esm/multipass/Owner.js.map +1 -0
- package/lib.esm/multipass/Registrar.d.ts +3 -2
- package/lib.esm/multipass/Registrar.d.ts.map +1 -1
- package/lib.esm/multipass/Registrar.js +3 -3
- package/lib.esm/multipass/Registrar.js.map +1 -1
- package/lib.esm/rankify/MAODistributor.d.ts +1042 -2
- package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.esm/rankify/MAODistributor.js +144 -31
- package/lib.esm/rankify/MAODistributor.js.map +1 -1
- package/lib.esm/rankify/Player.js +7 -7
- package/lib.esm/rankify/Player.js.map +1 -1
- package/lib.esm/rankify/RankToken.d.ts +3 -0
- package/lib.esm/rankify/RankToken.d.ts.map +1 -1
- package/lib.esm/rankify/RankToken.js +74 -0
- package/lib.esm/rankify/RankToken.js.map +1 -1
- package/lib.esm/types/contracts.d.ts +0 -6
- package/lib.esm/types/contracts.d.ts.map +1 -1
- package/lib.esm/types/contracts.js +1 -14
- package/lib.esm/types/contracts.js.map +1 -1
- package/lib.esm/types.d.ts +113 -2
- package/lib.esm/types.d.ts.map +1 -1
- package/lib.esm/types.js +14 -0
- package/lib.esm/types.js.map +1 -1
- package/lib.esm/utils/artifacts.d.ts +3 -1
- package/lib.esm/utils/artifacts.d.ts.map +1 -1
- package/lib.esm/utils/artifacts.js +3 -1
- package/lib.esm/utils/artifacts.js.map +1 -1
- package/lib.esm/utils/index.d.ts +7 -0
- package/lib.esm/utils/index.d.ts.map +1 -1
- package/lib.esm/utils/index.js +14 -0
- package/lib.esm/utils/index.js.map +1 -1
- package/package.json +16 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiError = void 0;
|
|
4
|
+
exports.getApiError = getApiError;
|
|
5
|
+
class ApiError extends Error {
|
|
6
|
+
status;
|
|
7
|
+
constructor(message, options) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.status = options?.status;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ApiError = ApiError;
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
+
async function getApiError(response) {
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
16
|
+
const body = (await response.json());
|
|
17
|
+
return new ApiError(body.msg || "server_error", {
|
|
18
|
+
status: body?.status,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ApiError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiError.js","sourceRoot":"","sources":["../../../src/utils/ApiError.ts"],"names":[],"mappings":";;;AAsBA,kCAMC;AAfD,MAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,CAAqB;IAC3B,YAAY,OAAe,EAAE,OAAyB;QACpD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;IAChC,CAAC;CACF;AAND,4BAMC;AAED,8DAA8D;AACvD,KAAK,UAAU,WAAW,CAAC,QAAa;IAC7C,yGAAyG;IACzG,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAqB,CAAC;IACzD,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,cAAc,EAAE;QAC9C,MAAM,EAAE,IAAI,EAAE,MAAM;KACrB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getContract = exports.getArtifact = exports.chainIdMapping = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const chainMapping_1 = require("./chainMapping");
|
|
6
|
+
exports.chainIdMapping = {
|
|
7
|
+
anvil: "97113",
|
|
8
|
+
localhost: "42161",
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the contract artifact for the specified chain.
|
|
12
|
+
* @param chain The viem Chain object
|
|
13
|
+
* @param artifactName The name of the artifact to retrieve
|
|
14
|
+
* @returns The artifact containing the address and execution args
|
|
15
|
+
* @throws Error if the contract deployment is not found or chain is not supported.
|
|
16
|
+
*/
|
|
17
|
+
const getArtifact = (chainId, artifactName, overrideChainName) => {
|
|
18
|
+
const chainPath = overrideChainName ?? (0, chainMapping_1.getChainPath)(chainId);
|
|
19
|
+
const artifact = (artifactName === "Multipass"
|
|
20
|
+
? require(`@peeramid-labs/multipass/deployments/${chainPath}/${artifactName}.json`)
|
|
21
|
+
: artifactName === "CodeIndex"
|
|
22
|
+
? require(`@peeramid-labs/eds/deployments/${chainPath}/${artifactName}.json`)
|
|
23
|
+
: require(`rankify-contracts/deployments/${chainPath}/${artifactName}.json`));
|
|
24
|
+
if (!artifact) {
|
|
25
|
+
throw new Error("Contract deployment not found");
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
address: artifact.address,
|
|
29
|
+
execute: artifact.execute,
|
|
30
|
+
abi: artifact.abi,
|
|
31
|
+
receipt: { ...artifact.receipt, logs: (0, viem_1.parseEventLogs)({ abi: artifact.abi, logs: artifact.receipt.logs }) },
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.getArtifact = getArtifact;
|
|
35
|
+
/**
|
|
36
|
+
* Gets a contract instance with the appropriate ABI and address for the given chain
|
|
37
|
+
* @param chain The chain to get the contract for
|
|
38
|
+
* @param artifactName The name of the contract to get
|
|
39
|
+
* @param client The viem client to use (public or wallet)
|
|
40
|
+
* @returns A viem contract instance
|
|
41
|
+
*/
|
|
42
|
+
const getContract = (chainId, artifactName, client) => {
|
|
43
|
+
const artifact = (0, exports.getArtifact)(chainId, artifactName);
|
|
44
|
+
return (0, viem_1.getContract)({
|
|
45
|
+
address: artifact.address,
|
|
46
|
+
abi: artifact.abi,
|
|
47
|
+
client,
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
exports.getContract = getContract;
|
|
51
|
+
//# sourceMappingURL=artifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/utils/artifacts.ts"],"names":[],"mappings":";;;AAAA,+BAUc;AAOd,iDAA8C;AAKjC,QAAA,cAAc,GAAyC;IAClE,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,OAAO;CACnB,CAAC;AAYF;;;;;;GAMG;AACI,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,YAA2B,EAC3B,iBAA0B,EAY1B,EAAE;IACF,MAAM,SAAS,GAAG,iBAAiB,IAAI,IAAA,2BAAY,EAAC,OAAO,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,CACf,YAAY,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,wCAAwC,SAAS,IAAI,YAAY,OAAO,CAAC;QACnF,CAAC,CAAC,YAAY,KAAK,WAAW;YAC5B,CAAC,CAAC,OAAO,CAAC,kCAAkC,SAAS,IAAI,YAAY,OAAO,CAAC;YAC7E,CAAC,CAAC,OAAO,CAAC,iCAAiC,SAAS,IAAI,YAAY,OAAO,CAAC,CAYjF,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,OAAO;QACL,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,OAAO,EAAE,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,IAAA,qBAAc,EAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE;KAC3G,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,WAAW,eA8CtB;AAEF;;;;;;GAMG;AACI,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,YAA2B,EAC3B,MAAe,EAC6C,EAAE;IAC9D,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACpD,OAAO,IAAA,kBAAe,EAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,MAAM;KACP,CAA+D,CAAC;AACnE,CAAC,CAAC;AAXW,QAAA,WAAW,eAWtB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chainToPath = void 0;
|
|
4
|
+
exports.getChainPath = getChainPath;
|
|
5
|
+
exports.chainToPath = {
|
|
6
|
+
"31337": "localhost",
|
|
7
|
+
"97113": "anvil",
|
|
8
|
+
};
|
|
9
|
+
function getChainPath(chainId) {
|
|
10
|
+
const path = exports.chainToPath[chainId.toString()];
|
|
11
|
+
if (!path) {
|
|
12
|
+
throw new Error(`Chain ID ${chainId} is not supported`);
|
|
13
|
+
}
|
|
14
|
+
return path;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=chainMapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chainMapping.js","sourceRoot":"","sources":["../../../src/utils/chainMapping.ts"],"names":[],"mappings":";;;AAQA,oCAMC;AAXY,QAAA,WAAW,GAAiB;IACvC,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,OAAO;CACR,CAAC;AAEX,SAAgB,YAAY,CAAC,OAAe;IAC1C,MAAM,IAAI,GAAG,mBAAW,CAAC,OAAO,CAAC,QAAQ,EAA8B,CAAC,CAAC;IACzE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,mBAAmB,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.parseInstantiated = void 0;
|
|
18
|
+
__exportStar(require("./ApiError"), exports);
|
|
19
|
+
__exportStar(require("./artifacts"), exports);
|
|
20
|
+
/**
|
|
21
|
+
* Parse an array of contract addresses into a MAOInstances object
|
|
22
|
+
* @param instances - Array of contract addresses in the order they were deployed
|
|
23
|
+
* @returns MAOInstances object with named contract addresses
|
|
24
|
+
*/
|
|
25
|
+
const parseInstantiated = (instances) => {
|
|
26
|
+
return {
|
|
27
|
+
govToken: instances[0],
|
|
28
|
+
govTokenAccessManager: instances[1],
|
|
29
|
+
ACIDInstance: instances[2],
|
|
30
|
+
ACIDAccessManager: instances[10],
|
|
31
|
+
rankToken: instances[11],
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.parseInstantiated = parseInstantiated;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,6CAA2B;AAC3B,8CAA4B;AAE5B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,SAAmB,EAAgB,EAAE;IACrE,OAAO;QACL,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;QACtB,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;QACnC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;QAC1B,iBAAiB,EAAE,SAAS,CAAC,EAAE,CAAC;QAChC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC;KACzB,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
|
|
@@ -20,11 +20,9 @@ Handles creation, management and interaction with MAO instances
|
|
|
20
20
|
- [publicClient](MAODistributorClient.md#publicclient)
|
|
21
21
|
- [address](MAODistributorClient.md#address)
|
|
22
22
|
- [walletClient](MAODistributorClient.md#walletclient)
|
|
23
|
-
- [parseInstantiated](MAODistributorClient.md#parseinstantiated)
|
|
24
23
|
|
|
25
24
|
### Methods
|
|
26
25
|
|
|
27
|
-
- [getDistributions](MAODistributorClient.md#getdistributions)
|
|
28
26
|
- [getInstances](MAODistributorClient.md#getinstances)
|
|
29
27
|
- [getInstance](MAODistributorClient.md#getinstance)
|
|
30
28
|
- [getNamedDistributionInstances](MAODistributorClient.md#getnameddistributioninstances)
|
|
@@ -32,7 +30,12 @@ Handles creation, management and interaction with MAO instances
|
|
|
32
30
|
- [addressesToContracts](MAODistributorClient.md#addressestocontracts)
|
|
33
31
|
- [getMAOInstances](MAODistributorClient.md#getmaoinstances)
|
|
34
32
|
- [parseToContracts](MAODistributorClient.md#parsetocontracts)
|
|
33
|
+
- [getDistributions](MAODistributorClient.md#getdistributions)
|
|
34
|
+
- [addNamedDistribution](MAODistributorClient.md#addnameddistribution)
|
|
35
35
|
- [getMAOInstance](MAODistributorClient.md#getmaoinstance)
|
|
36
|
+
- [getInstantiatePrice](MAODistributorClient.md#getinstantiateprice)
|
|
37
|
+
- [setInstantiationAllowance](MAODistributorClient.md#setinstantiationallowance)
|
|
38
|
+
- [needsAllowance](MAODistributorClient.md#needsallowance)
|
|
36
39
|
- [instantiate](MAODistributorClient.md#instantiate)
|
|
37
40
|
|
|
38
41
|
## Constructors
|
|
@@ -86,49 +89,11 @@ ___
|
|
|
86
89
|
|
|
87
90
|
• `Optional` **walletClient**: `Object`
|
|
88
91
|
|
|
89
|
-
___
|
|
90
|
-
|
|
91
|
-
### parseInstantiated
|
|
92
|
-
|
|
93
|
-
• **parseInstantiated**: (`instances`: `string`[]) => [`MAOInstances`](../interfaces/MAOInstances.md) = `parseInstantiated`
|
|
94
|
-
|
|
95
|
-
#### Type declaration
|
|
96
|
-
|
|
97
|
-
▸ (`instances`): [`MAOInstances`](../interfaces/MAOInstances.md)
|
|
98
|
-
|
|
99
|
-
Parse an array of contract addresses into a MAOInstances object
|
|
100
|
-
|
|
101
|
-
##### Parameters
|
|
102
|
-
|
|
103
|
-
| Name | Type | Description |
|
|
104
|
-
| :------ | :------ | :------ |
|
|
105
|
-
| `instances` | `string`[] | Array of contract addresses in the order they were deployed |
|
|
106
|
-
|
|
107
|
-
##### Returns
|
|
108
|
-
|
|
109
|
-
[`MAOInstances`](../interfaces/MAOInstances.md)
|
|
110
|
-
|
|
111
|
-
MAOInstances object with named contract addresses
|
|
112
|
-
|
|
113
92
|
## Methods
|
|
114
93
|
|
|
115
|
-
### getDistributions
|
|
116
|
-
|
|
117
|
-
▸ **getDistributions**(): `Promise`\<readonly \`0x$\{string}\`[]\>
|
|
118
|
-
|
|
119
|
-
#### Returns
|
|
120
|
-
|
|
121
|
-
`Promise`\<readonly \`0x$\{string}\`[]\>
|
|
122
|
-
|
|
123
|
-
#### Inherited from
|
|
124
|
-
|
|
125
|
-
DistributorClient.getDistributions
|
|
126
|
-
|
|
127
|
-
___
|
|
128
|
-
|
|
129
94
|
### getInstances
|
|
130
95
|
|
|
131
|
-
▸ **getInstances**(`distributorsId`, `fromBlock?`): `Promise
|
|
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
|
|
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
|