@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
|
@@ -8,7 +8,7 @@ import instanceAbi from "../abis/RankifyDiamondInstance";
|
|
|
8
8
|
import rankTokenAbi from "../abis/RankToken";
|
|
9
9
|
import govtTokenAbi from "../abis/DistributableGovernanceERC20";
|
|
10
10
|
import govtAccessManagerAbi from "../abis/SimpleAccessManager";
|
|
11
|
-
import { GetContractReturnType, Chain, GetAbiItemParameters, PublicClient, WalletClient, Address } from "viem";
|
|
11
|
+
import { GetContractReturnType, Chain, GetAbiItemParameters, PublicClient, WalletClient, Address, Hex } from "viem";
|
|
12
12
|
import MaoDistributionAbi from "../abis/MAODistribution";
|
|
13
13
|
/**
|
|
14
14
|
* Structure defining token-related arguments
|
|
@@ -87,12 +87,1052 @@ export declare class MAODistributorClient extends DistributorClient {
|
|
|
87
87
|
* @returns Array of MAOInstances contract instances
|
|
88
88
|
*/
|
|
89
89
|
getMAOInstances(namedDistribution?: string, fromBlock?: bigint): Promise<MAOInstanceContracts[]>;
|
|
90
|
-
parseInstantiated: (instances: string[]) => MAOInstances;
|
|
91
90
|
parseToContracts(instances: readonly Address[]): MAOInstanceContracts;
|
|
91
|
+
getDistributions(): Promise<readonly `0x${string}`[]>;
|
|
92
|
+
addNamedDistribution(chain: Chain, name: `0x${string}`, address: `0x${string}`, initializer?: `0x${string}`): Promise<{
|
|
93
|
+
receipt: import("viem").TransactionReceipt;
|
|
94
|
+
distributionAddedEvent: import("viem").Log<bigint, number, false, undefined, true, readonly [{
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "defaultAdmin";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly internalType: "contract IERC20";
|
|
101
|
+
readonly name: "token";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly internalType: "uint256";
|
|
105
|
+
readonly name: "defaultCost";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
readonly type: "constructor";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "AccessControlBadConfirmation";
|
|
113
|
+
readonly type: "error";
|
|
114
|
+
}, {
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly internalType: "uint48";
|
|
117
|
+
readonly name: "schedule";
|
|
118
|
+
readonly type: "uint48";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "AccessControlEnforcedDefaultAdminDelay";
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
}, {
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "AccessControlEnforcedDefaultAdminRules";
|
|
125
|
+
readonly type: "error";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
readonly name: "defaultAdmin";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "AccessControlInvalidDefaultAdmin";
|
|
133
|
+
readonly type: "error";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
readonly name: "account";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
readonly name: "neededRole";
|
|
142
|
+
readonly type: "bytes32";
|
|
143
|
+
}];
|
|
144
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
145
|
+
readonly type: "error";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly internalType: "bytes32";
|
|
149
|
+
readonly name: "id";
|
|
150
|
+
readonly type: "bytes32";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "DistributionExists";
|
|
153
|
+
readonly type: "error";
|
|
154
|
+
}, {
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly internalType: "bytes32";
|
|
157
|
+
readonly name: "id";
|
|
158
|
+
readonly type: "bytes32";
|
|
159
|
+
}];
|
|
160
|
+
readonly name: "DistributionNotFound";
|
|
161
|
+
readonly type: "error";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly internalType: "bytes32";
|
|
165
|
+
readonly name: "id";
|
|
166
|
+
readonly type: "bytes32";
|
|
167
|
+
}];
|
|
168
|
+
readonly name: "InitializerNotFound";
|
|
169
|
+
readonly type: "error";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "instance";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}];
|
|
176
|
+
readonly name: "InvalidInstance";
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
}, {
|
|
179
|
+
readonly inputs: readonly [{
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
readonly name: "repository";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}];
|
|
184
|
+
readonly name: "InvalidRepository";
|
|
185
|
+
readonly type: "error";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
readonly name: "distributionId";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
}, {
|
|
192
|
+
readonly internalType: "string";
|
|
193
|
+
readonly name: "version";
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
}];
|
|
196
|
+
readonly name: "InvalidVersionRequested";
|
|
197
|
+
readonly type: "error";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly internalType: "address";
|
|
201
|
+
readonly name: "repository";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
}];
|
|
204
|
+
readonly name: "RepositoryAlreadyExists";
|
|
205
|
+
readonly type: "error";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "uint8";
|
|
209
|
+
readonly name: "bits";
|
|
210
|
+
readonly type: "uint8";
|
|
211
|
+
}, {
|
|
212
|
+
readonly internalType: "uint256";
|
|
213
|
+
readonly name: "value";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}];
|
|
216
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
217
|
+
readonly type: "error";
|
|
218
|
+
}, {
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly internalType: "bytes32";
|
|
221
|
+
readonly name: "distributionId";
|
|
222
|
+
readonly type: "bytes32";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "UnversionedDistribution";
|
|
225
|
+
readonly type: "error";
|
|
226
|
+
}, {
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly internalType: "bytes32";
|
|
229
|
+
readonly name: "distributionId";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "string";
|
|
233
|
+
readonly name: "version";
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
}];
|
|
236
|
+
readonly name: "VersionOutdated";
|
|
237
|
+
readonly type: "error";
|
|
238
|
+
}, {
|
|
239
|
+
readonly anonymous: false;
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "DefaultAdminDelayChangeCanceled";
|
|
242
|
+
readonly type: "event";
|
|
243
|
+
}, {
|
|
244
|
+
readonly anonymous: false;
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly indexed: false;
|
|
247
|
+
readonly internalType: "uint48";
|
|
248
|
+
readonly name: "newDelay";
|
|
249
|
+
readonly type: "uint48";
|
|
250
|
+
}, {
|
|
251
|
+
readonly indexed: false;
|
|
252
|
+
readonly internalType: "uint48";
|
|
253
|
+
readonly name: "effectSchedule";
|
|
254
|
+
readonly type: "uint48";
|
|
255
|
+
}];
|
|
256
|
+
readonly name: "DefaultAdminDelayChangeScheduled";
|
|
257
|
+
readonly type: "event";
|
|
258
|
+
}, {
|
|
259
|
+
readonly anonymous: false;
|
|
260
|
+
readonly inputs: readonly [];
|
|
261
|
+
readonly name: "DefaultAdminTransferCanceled";
|
|
262
|
+
readonly type: "event";
|
|
263
|
+
}, {
|
|
264
|
+
readonly anonymous: false;
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly indexed: true;
|
|
267
|
+
readonly internalType: "address";
|
|
268
|
+
readonly name: "newAdmin";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
}, {
|
|
271
|
+
readonly indexed: false;
|
|
272
|
+
readonly internalType: "uint48";
|
|
273
|
+
readonly name: "acceptSchedule";
|
|
274
|
+
readonly type: "uint48";
|
|
275
|
+
}];
|
|
276
|
+
readonly name: "DefaultAdminTransferScheduled";
|
|
277
|
+
readonly type: "event";
|
|
278
|
+
}, {
|
|
279
|
+
readonly anonymous: false;
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly indexed: true;
|
|
282
|
+
readonly internalType: "bytes32";
|
|
283
|
+
readonly name: "id";
|
|
284
|
+
readonly type: "bytes32";
|
|
285
|
+
}, {
|
|
286
|
+
readonly indexed: false;
|
|
287
|
+
readonly internalType: "address";
|
|
288
|
+
readonly name: "distribution";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
}, {
|
|
291
|
+
readonly indexed: true;
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
readonly name: "initializer";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}];
|
|
296
|
+
readonly name: "DistributionAdded";
|
|
297
|
+
readonly type: "event";
|
|
298
|
+
}, {
|
|
299
|
+
readonly anonymous: false;
|
|
300
|
+
readonly inputs: readonly [{
|
|
301
|
+
readonly indexed: true;
|
|
302
|
+
readonly internalType: "bytes32";
|
|
303
|
+
readonly name: "id";
|
|
304
|
+
readonly type: "bytes32";
|
|
305
|
+
}];
|
|
306
|
+
readonly name: "DistributionRemoved";
|
|
307
|
+
readonly type: "event";
|
|
308
|
+
}, {
|
|
309
|
+
readonly anonymous: false;
|
|
310
|
+
readonly inputs: readonly [{
|
|
311
|
+
readonly indexed: true;
|
|
312
|
+
readonly internalType: "bytes32";
|
|
313
|
+
readonly name: "distributionId";
|
|
314
|
+
readonly type: "bytes32";
|
|
315
|
+
}, {
|
|
316
|
+
readonly indexed: true;
|
|
317
|
+
readonly internalType: "uint256";
|
|
318
|
+
readonly name: "newInstanceId";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly indexed: true;
|
|
322
|
+
readonly internalType: "uint256";
|
|
323
|
+
readonly name: "version";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
}, {
|
|
326
|
+
readonly indexed: false;
|
|
327
|
+
readonly internalType: "address[]";
|
|
328
|
+
readonly name: "instances";
|
|
329
|
+
readonly type: "address[]";
|
|
330
|
+
}, {
|
|
331
|
+
readonly indexed: false;
|
|
332
|
+
readonly internalType: "bytes";
|
|
333
|
+
readonly name: "args";
|
|
334
|
+
readonly type: "bytes";
|
|
335
|
+
}];
|
|
336
|
+
readonly name: "Instantiated";
|
|
337
|
+
readonly type: "event";
|
|
338
|
+
}, {
|
|
339
|
+
readonly anonymous: false;
|
|
340
|
+
readonly inputs: readonly [{
|
|
341
|
+
readonly indexed: true;
|
|
342
|
+
readonly internalType: "bytes32";
|
|
343
|
+
readonly name: "id";
|
|
344
|
+
readonly type: "bytes32";
|
|
345
|
+
}, {
|
|
346
|
+
readonly indexed: false;
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "cost";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly name: "InstantiationCostChanged";
|
|
352
|
+
readonly type: "event";
|
|
353
|
+
}, {
|
|
354
|
+
readonly anonymous: false;
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly indexed: true;
|
|
357
|
+
readonly internalType: "bytes32";
|
|
358
|
+
readonly name: "role";
|
|
359
|
+
readonly type: "bytes32";
|
|
360
|
+
}, {
|
|
361
|
+
readonly indexed: true;
|
|
362
|
+
readonly internalType: "bytes32";
|
|
363
|
+
readonly name: "previousAdminRole";
|
|
364
|
+
readonly type: "bytes32";
|
|
365
|
+
}, {
|
|
366
|
+
readonly indexed: true;
|
|
367
|
+
readonly internalType: "bytes32";
|
|
368
|
+
readonly name: "newAdminRole";
|
|
369
|
+
readonly type: "bytes32";
|
|
370
|
+
}];
|
|
371
|
+
readonly name: "RoleAdminChanged";
|
|
372
|
+
readonly type: "event";
|
|
373
|
+
}, {
|
|
374
|
+
readonly anonymous: false;
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly indexed: true;
|
|
377
|
+
readonly internalType: "bytes32";
|
|
378
|
+
readonly name: "role";
|
|
379
|
+
readonly type: "bytes32";
|
|
380
|
+
}, {
|
|
381
|
+
readonly indexed: true;
|
|
382
|
+
readonly internalType: "address";
|
|
383
|
+
readonly name: "account";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
}, {
|
|
386
|
+
readonly indexed: true;
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "sender";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "RoleGranted";
|
|
392
|
+
readonly type: "event";
|
|
393
|
+
}, {
|
|
394
|
+
readonly anonymous: false;
|
|
395
|
+
readonly inputs: readonly [{
|
|
396
|
+
readonly indexed: true;
|
|
397
|
+
readonly internalType: "bytes32";
|
|
398
|
+
readonly name: "role";
|
|
399
|
+
readonly type: "bytes32";
|
|
400
|
+
}, {
|
|
401
|
+
readonly indexed: true;
|
|
402
|
+
readonly internalType: "address";
|
|
403
|
+
readonly name: "account";
|
|
404
|
+
readonly type: "address";
|
|
405
|
+
}, {
|
|
406
|
+
readonly indexed: true;
|
|
407
|
+
readonly internalType: "address";
|
|
408
|
+
readonly name: "sender";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "RoleRevoked";
|
|
412
|
+
readonly type: "event";
|
|
413
|
+
}, {
|
|
414
|
+
readonly anonymous: false;
|
|
415
|
+
readonly inputs: readonly [{
|
|
416
|
+
readonly indexed: true;
|
|
417
|
+
readonly internalType: "bytes32";
|
|
418
|
+
readonly name: "distributionId";
|
|
419
|
+
readonly type: "bytes32";
|
|
420
|
+
}, {
|
|
421
|
+
readonly components: readonly [{
|
|
422
|
+
readonly components: readonly [{
|
|
423
|
+
readonly internalType: "uint64";
|
|
424
|
+
readonly name: "major";
|
|
425
|
+
readonly type: "uint64";
|
|
426
|
+
}, {
|
|
427
|
+
readonly internalType: "uint64";
|
|
428
|
+
readonly name: "minor";
|
|
429
|
+
readonly type: "uint64";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "uint128";
|
|
432
|
+
readonly name: "patch";
|
|
433
|
+
readonly type: "uint128";
|
|
434
|
+
}];
|
|
435
|
+
readonly internalType: "struct LibSemver.Version";
|
|
436
|
+
readonly name: "version";
|
|
437
|
+
readonly type: "tuple";
|
|
438
|
+
}, {
|
|
439
|
+
readonly internalType: "enum LibSemver.requirements";
|
|
440
|
+
readonly name: "requirement";
|
|
441
|
+
readonly type: "uint8";
|
|
442
|
+
}];
|
|
443
|
+
readonly indexed: true;
|
|
444
|
+
readonly internalType: "struct LibSemver.VersionRequirement";
|
|
445
|
+
readonly name: "newRequirement";
|
|
446
|
+
readonly type: "tuple";
|
|
447
|
+
}, {
|
|
448
|
+
readonly components: readonly [{
|
|
449
|
+
readonly components: readonly [{
|
|
450
|
+
readonly internalType: "uint64";
|
|
451
|
+
readonly name: "major";
|
|
452
|
+
readonly type: "uint64";
|
|
453
|
+
}, {
|
|
454
|
+
readonly internalType: "uint64";
|
|
455
|
+
readonly name: "minor";
|
|
456
|
+
readonly type: "uint64";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "uint128";
|
|
459
|
+
readonly name: "patch";
|
|
460
|
+
readonly type: "uint128";
|
|
461
|
+
}];
|
|
462
|
+
readonly internalType: "struct LibSemver.Version";
|
|
463
|
+
readonly name: "version";
|
|
464
|
+
readonly type: "tuple";
|
|
465
|
+
}, {
|
|
466
|
+
readonly internalType: "enum LibSemver.requirements";
|
|
467
|
+
readonly name: "requirement";
|
|
468
|
+
readonly type: "uint8";
|
|
469
|
+
}];
|
|
470
|
+
readonly indexed: false;
|
|
471
|
+
readonly internalType: "struct LibSemver.VersionRequirement";
|
|
472
|
+
readonly name: "newRequirementData";
|
|
473
|
+
readonly type: "tuple";
|
|
474
|
+
}];
|
|
475
|
+
readonly name: "VersionChanged";
|
|
476
|
+
readonly type: "event";
|
|
477
|
+
}, {
|
|
478
|
+
readonly inputs: readonly [];
|
|
479
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
480
|
+
readonly outputs: readonly [{
|
|
481
|
+
readonly internalType: "bytes32";
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly type: "bytes32";
|
|
484
|
+
}];
|
|
485
|
+
readonly stateMutability: "view";
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
}, {
|
|
488
|
+
readonly inputs: readonly [];
|
|
489
|
+
readonly name: "_beneficiary";
|
|
490
|
+
readonly outputs: readonly [{
|
|
491
|
+
readonly internalType: "address";
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "address";
|
|
494
|
+
}];
|
|
495
|
+
readonly stateMutability: "view";
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
}, {
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
readonly name: "acceptDefaultAdminTransfer";
|
|
500
|
+
readonly outputs: readonly [];
|
|
501
|
+
readonly stateMutability: "nonpayable";
|
|
502
|
+
readonly type: "function";
|
|
503
|
+
}, {
|
|
504
|
+
readonly inputs: readonly [{
|
|
505
|
+
readonly internalType: "contract IRepository";
|
|
506
|
+
readonly name: "repository";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
readonly name: "initializer";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}, {
|
|
513
|
+
readonly components: readonly [{
|
|
514
|
+
readonly components: readonly [{
|
|
515
|
+
readonly internalType: "uint64";
|
|
516
|
+
readonly name: "major";
|
|
517
|
+
readonly type: "uint64";
|
|
518
|
+
}, {
|
|
519
|
+
readonly internalType: "uint64";
|
|
520
|
+
readonly name: "minor";
|
|
521
|
+
readonly type: "uint64";
|
|
522
|
+
}, {
|
|
523
|
+
readonly internalType: "uint128";
|
|
524
|
+
readonly name: "patch";
|
|
525
|
+
readonly type: "uint128";
|
|
526
|
+
}];
|
|
527
|
+
readonly internalType: "struct LibSemver.Version";
|
|
528
|
+
readonly name: "version";
|
|
529
|
+
readonly type: "tuple";
|
|
530
|
+
}, {
|
|
531
|
+
readonly internalType: "enum LibSemver.requirements";
|
|
532
|
+
readonly name: "requirement";
|
|
533
|
+
readonly type: "uint8";
|
|
534
|
+
}];
|
|
535
|
+
readonly internalType: "struct LibSemver.VersionRequirement";
|
|
536
|
+
readonly name: "requirement";
|
|
537
|
+
readonly type: "tuple";
|
|
538
|
+
}];
|
|
539
|
+
readonly name: "addDistribution";
|
|
540
|
+
readonly outputs: readonly [];
|
|
541
|
+
readonly stateMutability: "nonpayable";
|
|
542
|
+
readonly type: "function";
|
|
543
|
+
}, {
|
|
544
|
+
readonly inputs: readonly [{
|
|
545
|
+
readonly internalType: "bytes32";
|
|
546
|
+
readonly name: "id";
|
|
547
|
+
readonly type: "bytes32";
|
|
548
|
+
}, {
|
|
549
|
+
readonly internalType: "address";
|
|
550
|
+
readonly name: "initializer";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}];
|
|
553
|
+
readonly name: "addDistribution";
|
|
554
|
+
readonly outputs: readonly [];
|
|
555
|
+
readonly stateMutability: "nonpayable";
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
}, {
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly internalType: "bytes32";
|
|
560
|
+
readonly name: "name";
|
|
561
|
+
readonly type: "bytes32";
|
|
562
|
+
}, {
|
|
563
|
+
readonly internalType: "bytes32";
|
|
564
|
+
readonly name: "distributorId";
|
|
565
|
+
readonly type: "bytes32";
|
|
566
|
+
}, {
|
|
567
|
+
readonly internalType: "address";
|
|
568
|
+
readonly name: "initializer";
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
}];
|
|
571
|
+
readonly name: "addNamedDistribution";
|
|
572
|
+
readonly outputs: readonly [];
|
|
573
|
+
readonly stateMutability: "nonpayable";
|
|
574
|
+
readonly type: "function";
|
|
575
|
+
}, {
|
|
576
|
+
readonly inputs: readonly [{
|
|
577
|
+
readonly internalType: "bytes";
|
|
578
|
+
readonly name: "config";
|
|
579
|
+
readonly type: "bytes";
|
|
580
|
+
}, {
|
|
581
|
+
readonly internalType: "bytes4";
|
|
582
|
+
readonly name: "";
|
|
583
|
+
readonly type: "bytes4";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "maybeInstance";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly internalType: "uint256";
|
|
590
|
+
readonly name: "";
|
|
591
|
+
readonly type: "uint256";
|
|
592
|
+
}, {
|
|
593
|
+
readonly internalType: "bytes";
|
|
594
|
+
readonly name: "";
|
|
595
|
+
readonly type: "bytes";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "bytes";
|
|
598
|
+
readonly name: "";
|
|
599
|
+
readonly type: "bytes";
|
|
600
|
+
}];
|
|
601
|
+
readonly name: "afterCall";
|
|
602
|
+
readonly outputs: readonly [];
|
|
603
|
+
readonly stateMutability: "nonpayable";
|
|
604
|
+
readonly type: "function";
|
|
605
|
+
}, {
|
|
606
|
+
readonly inputs: readonly [{
|
|
607
|
+
readonly internalType: "bytes";
|
|
608
|
+
readonly name: "config";
|
|
609
|
+
readonly type: "bytes";
|
|
610
|
+
}, {
|
|
611
|
+
readonly internalType: "bytes4";
|
|
612
|
+
readonly name: "";
|
|
613
|
+
readonly type: "bytes4";
|
|
614
|
+
}, {
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "maybeInstance";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
readonly name: "";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}, {
|
|
623
|
+
readonly internalType: "bytes";
|
|
624
|
+
readonly name: "";
|
|
625
|
+
readonly type: "bytes";
|
|
626
|
+
}];
|
|
627
|
+
readonly name: "beforeCall";
|
|
628
|
+
readonly outputs: readonly [{
|
|
629
|
+
readonly internalType: "bytes";
|
|
630
|
+
readonly name: "";
|
|
631
|
+
readonly type: "bytes";
|
|
632
|
+
}];
|
|
633
|
+
readonly stateMutability: "view";
|
|
634
|
+
readonly type: "function";
|
|
635
|
+
}, {
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly internalType: "address";
|
|
638
|
+
readonly name: "newAdmin";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
}];
|
|
641
|
+
readonly name: "beginDefaultAdminTransfer";
|
|
642
|
+
readonly outputs: readonly [];
|
|
643
|
+
readonly stateMutability: "nonpayable";
|
|
644
|
+
readonly type: "function";
|
|
645
|
+
}, {
|
|
646
|
+
readonly inputs: readonly [{
|
|
647
|
+
readonly internalType: "bytes32";
|
|
648
|
+
readonly name: "sourceId";
|
|
649
|
+
readonly type: "bytes32";
|
|
650
|
+
}, {
|
|
651
|
+
readonly internalType: "address";
|
|
652
|
+
readonly name: "initializer";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
}];
|
|
655
|
+
readonly name: "calculateDistributorId";
|
|
656
|
+
readonly outputs: readonly [{
|
|
657
|
+
readonly internalType: "bytes32";
|
|
658
|
+
readonly name: "";
|
|
659
|
+
readonly type: "bytes32";
|
|
660
|
+
}];
|
|
661
|
+
readonly stateMutability: "pure";
|
|
662
|
+
readonly type: "function";
|
|
663
|
+
}, {
|
|
664
|
+
readonly inputs: readonly [{
|
|
665
|
+
readonly internalType: "address";
|
|
666
|
+
readonly name: "repository";
|
|
667
|
+
readonly type: "address";
|
|
668
|
+
}, {
|
|
669
|
+
readonly internalType: "address";
|
|
670
|
+
readonly name: "initializer";
|
|
671
|
+
readonly type: "address";
|
|
672
|
+
}];
|
|
673
|
+
readonly name: "calculateDistributorId";
|
|
674
|
+
readonly outputs: readonly [{
|
|
675
|
+
readonly internalType: "bytes32";
|
|
676
|
+
readonly name: "";
|
|
677
|
+
readonly type: "bytes32";
|
|
678
|
+
}];
|
|
679
|
+
readonly stateMutability: "pure";
|
|
680
|
+
readonly type: "function";
|
|
681
|
+
}, {
|
|
682
|
+
readonly inputs: readonly [];
|
|
683
|
+
readonly name: "cancelDefaultAdminTransfer";
|
|
684
|
+
readonly outputs: readonly [];
|
|
685
|
+
readonly stateMutability: "nonpayable";
|
|
686
|
+
readonly type: "function";
|
|
687
|
+
}, {
|
|
688
|
+
readonly inputs: readonly [{
|
|
689
|
+
readonly internalType: "uint48";
|
|
690
|
+
readonly name: "newDelay";
|
|
691
|
+
readonly type: "uint48";
|
|
692
|
+
}];
|
|
693
|
+
readonly name: "changeDefaultAdminDelay";
|
|
694
|
+
readonly outputs: readonly [];
|
|
695
|
+
readonly stateMutability: "nonpayable";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
}, {
|
|
698
|
+
readonly inputs: readonly [{
|
|
699
|
+
readonly internalType: "bytes32";
|
|
700
|
+
readonly name: "distributionId";
|
|
701
|
+
readonly type: "bytes32";
|
|
702
|
+
}, {
|
|
703
|
+
readonly components: readonly [{
|
|
704
|
+
readonly components: readonly [{
|
|
705
|
+
readonly internalType: "uint64";
|
|
706
|
+
readonly name: "major";
|
|
707
|
+
readonly type: "uint64";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "uint64";
|
|
710
|
+
readonly name: "minor";
|
|
711
|
+
readonly type: "uint64";
|
|
712
|
+
}, {
|
|
713
|
+
readonly internalType: "uint128";
|
|
714
|
+
readonly name: "patch";
|
|
715
|
+
readonly type: "uint128";
|
|
716
|
+
}];
|
|
717
|
+
readonly internalType: "struct LibSemver.Version";
|
|
718
|
+
readonly name: "version";
|
|
719
|
+
readonly type: "tuple";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "enum LibSemver.requirements";
|
|
722
|
+
readonly name: "requirement";
|
|
723
|
+
readonly type: "uint8";
|
|
724
|
+
}];
|
|
725
|
+
readonly internalType: "struct LibSemver.VersionRequirement";
|
|
726
|
+
readonly name: "newRequirement";
|
|
727
|
+
readonly type: "tuple";
|
|
728
|
+
}];
|
|
729
|
+
readonly name: "changeVersion";
|
|
730
|
+
readonly outputs: readonly [];
|
|
731
|
+
readonly stateMutability: "nonpayable";
|
|
732
|
+
readonly type: "function";
|
|
733
|
+
}, {
|
|
734
|
+
readonly inputs: readonly [];
|
|
735
|
+
readonly name: "defaultAdmin";
|
|
736
|
+
readonly outputs: readonly [{
|
|
737
|
+
readonly internalType: "address";
|
|
738
|
+
readonly name: "";
|
|
739
|
+
readonly type: "address";
|
|
740
|
+
}];
|
|
741
|
+
readonly stateMutability: "view";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
}, {
|
|
744
|
+
readonly inputs: readonly [];
|
|
745
|
+
readonly name: "defaultAdminDelay";
|
|
746
|
+
readonly outputs: readonly [{
|
|
747
|
+
readonly internalType: "uint48";
|
|
748
|
+
readonly name: "";
|
|
749
|
+
readonly type: "uint48";
|
|
750
|
+
}];
|
|
751
|
+
readonly stateMutability: "view";
|
|
752
|
+
readonly type: "function";
|
|
753
|
+
}, {
|
|
754
|
+
readonly inputs: readonly [];
|
|
755
|
+
readonly name: "defaultAdminDelayIncreaseWait";
|
|
756
|
+
readonly outputs: readonly [{
|
|
757
|
+
readonly internalType: "uint48";
|
|
758
|
+
readonly name: "";
|
|
759
|
+
readonly type: "uint48";
|
|
760
|
+
}];
|
|
761
|
+
readonly stateMutability: "view";
|
|
762
|
+
readonly type: "function";
|
|
763
|
+
}, {
|
|
764
|
+
readonly inputs: readonly [];
|
|
765
|
+
readonly name: "defaultInstantiationCost";
|
|
766
|
+
readonly outputs: readonly [{
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly name: "";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}];
|
|
771
|
+
readonly stateMutability: "view";
|
|
772
|
+
readonly type: "function";
|
|
773
|
+
}, {
|
|
774
|
+
readonly inputs: readonly [{
|
|
775
|
+
readonly internalType: "bytes32";
|
|
776
|
+
readonly name: "distributorsId";
|
|
777
|
+
readonly type: "bytes32";
|
|
778
|
+
}];
|
|
779
|
+
readonly name: "distributionComponents";
|
|
780
|
+
readonly outputs: readonly [{
|
|
781
|
+
readonly internalType: "address";
|
|
782
|
+
readonly name: "distributionLocation";
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
}, {
|
|
785
|
+
readonly internalType: "address";
|
|
786
|
+
readonly name: "initializer";
|
|
787
|
+
readonly type: "address";
|
|
788
|
+
}];
|
|
789
|
+
readonly stateMutability: "view";
|
|
790
|
+
readonly type: "function";
|
|
791
|
+
}, {
|
|
792
|
+
readonly inputs: readonly [{
|
|
793
|
+
readonly internalType: "uint256";
|
|
794
|
+
readonly name: "instance";
|
|
795
|
+
readonly type: "uint256";
|
|
796
|
+
}];
|
|
797
|
+
readonly name: "distributionOf";
|
|
798
|
+
readonly outputs: readonly [{
|
|
799
|
+
readonly internalType: "bytes32";
|
|
800
|
+
readonly name: "distributorsId";
|
|
801
|
+
readonly type: "bytes32";
|
|
802
|
+
}];
|
|
803
|
+
readonly stateMutability: "view";
|
|
804
|
+
readonly type: "function";
|
|
805
|
+
}, {
|
|
806
|
+
readonly inputs: readonly [{
|
|
807
|
+
readonly internalType: "address";
|
|
808
|
+
readonly name: "instance";
|
|
809
|
+
readonly type: "address";
|
|
810
|
+
}];
|
|
811
|
+
readonly name: "getDistributionId";
|
|
812
|
+
readonly outputs: readonly [{
|
|
813
|
+
readonly internalType: "bytes32";
|
|
814
|
+
readonly name: "";
|
|
815
|
+
readonly type: "bytes32";
|
|
816
|
+
}];
|
|
817
|
+
readonly stateMutability: "view";
|
|
818
|
+
readonly type: "function";
|
|
819
|
+
}, {
|
|
820
|
+
readonly inputs: readonly [{
|
|
821
|
+
readonly internalType: "bytes32";
|
|
822
|
+
readonly name: "distributorsId";
|
|
823
|
+
readonly type: "bytes32";
|
|
824
|
+
}];
|
|
825
|
+
readonly name: "getDistributionURI";
|
|
826
|
+
readonly outputs: readonly [{
|
|
827
|
+
readonly internalType: "string";
|
|
828
|
+
readonly name: "";
|
|
829
|
+
readonly type: "string";
|
|
830
|
+
}];
|
|
831
|
+
readonly stateMutability: "view";
|
|
832
|
+
readonly type: "function";
|
|
833
|
+
}, {
|
|
834
|
+
readonly inputs: readonly [];
|
|
835
|
+
readonly name: "getDistributions";
|
|
836
|
+
readonly outputs: readonly [{
|
|
837
|
+
readonly internalType: "bytes32[]";
|
|
838
|
+
readonly name: "";
|
|
839
|
+
readonly type: "bytes32[]";
|
|
840
|
+
}];
|
|
841
|
+
readonly stateMutability: "view";
|
|
842
|
+
readonly type: "function";
|
|
843
|
+
}, {
|
|
844
|
+
readonly inputs: readonly [{
|
|
845
|
+
readonly internalType: "address";
|
|
846
|
+
readonly name: "instance";
|
|
847
|
+
readonly type: "address";
|
|
848
|
+
}];
|
|
849
|
+
readonly name: "getInstanceId";
|
|
850
|
+
readonly outputs: readonly [{
|
|
851
|
+
readonly internalType: "uint256";
|
|
852
|
+
readonly name: "";
|
|
853
|
+
readonly type: "uint256";
|
|
854
|
+
}];
|
|
855
|
+
readonly stateMutability: "view";
|
|
856
|
+
readonly type: "function";
|
|
857
|
+
}, {
|
|
858
|
+
readonly inputs: readonly [{
|
|
859
|
+
readonly internalType: "bytes32";
|
|
860
|
+
readonly name: "role";
|
|
861
|
+
readonly type: "bytes32";
|
|
862
|
+
}];
|
|
863
|
+
readonly name: "getRoleAdmin";
|
|
864
|
+
readonly outputs: readonly [{
|
|
865
|
+
readonly internalType: "bytes32";
|
|
866
|
+
readonly name: "";
|
|
867
|
+
readonly type: "bytes32";
|
|
868
|
+
}];
|
|
869
|
+
readonly stateMutability: "view";
|
|
870
|
+
readonly type: "function";
|
|
871
|
+
}, {
|
|
872
|
+
readonly inputs: readonly [{
|
|
873
|
+
readonly internalType: "bytes32";
|
|
874
|
+
readonly name: "role";
|
|
875
|
+
readonly type: "bytes32";
|
|
876
|
+
}, {
|
|
877
|
+
readonly internalType: "address";
|
|
878
|
+
readonly name: "account";
|
|
879
|
+
readonly type: "address";
|
|
880
|
+
}];
|
|
881
|
+
readonly name: "grantRole";
|
|
882
|
+
readonly outputs: readonly [];
|
|
883
|
+
readonly stateMutability: "nonpayable";
|
|
884
|
+
readonly type: "function";
|
|
885
|
+
}, {
|
|
886
|
+
readonly inputs: readonly [{
|
|
887
|
+
readonly internalType: "bytes32";
|
|
888
|
+
readonly name: "role";
|
|
889
|
+
readonly type: "bytes32";
|
|
890
|
+
}, {
|
|
891
|
+
readonly internalType: "address";
|
|
892
|
+
readonly name: "account";
|
|
893
|
+
readonly type: "address";
|
|
894
|
+
}];
|
|
895
|
+
readonly name: "hasRole";
|
|
896
|
+
readonly outputs: readonly [{
|
|
897
|
+
readonly internalType: "bool";
|
|
898
|
+
readonly name: "";
|
|
899
|
+
readonly type: "bool";
|
|
900
|
+
}];
|
|
901
|
+
readonly stateMutability: "view";
|
|
902
|
+
readonly type: "function";
|
|
903
|
+
}, {
|
|
904
|
+
readonly inputs: readonly [{
|
|
905
|
+
readonly internalType: "uint256";
|
|
906
|
+
readonly name: "instanceId";
|
|
907
|
+
readonly type: "uint256";
|
|
908
|
+
}];
|
|
909
|
+
readonly name: "instanceVersions";
|
|
910
|
+
readonly outputs: readonly [{
|
|
911
|
+
readonly internalType: "uint64";
|
|
912
|
+
readonly name: "major";
|
|
913
|
+
readonly type: "uint64";
|
|
914
|
+
}, {
|
|
915
|
+
readonly internalType: "uint64";
|
|
916
|
+
readonly name: "minor";
|
|
917
|
+
readonly type: "uint64";
|
|
918
|
+
}, {
|
|
919
|
+
readonly internalType: "uint128";
|
|
920
|
+
readonly name: "patch";
|
|
921
|
+
readonly type: "uint128";
|
|
922
|
+
}];
|
|
923
|
+
readonly stateMutability: "view";
|
|
924
|
+
readonly type: "function";
|
|
925
|
+
}, {
|
|
926
|
+
readonly inputs: readonly [{
|
|
927
|
+
readonly internalType: "bytes32";
|
|
928
|
+
readonly name: "id";
|
|
929
|
+
readonly type: "bytes32";
|
|
930
|
+
}, {
|
|
931
|
+
readonly internalType: "bytes";
|
|
932
|
+
readonly name: "args";
|
|
933
|
+
readonly type: "bytes";
|
|
934
|
+
}];
|
|
935
|
+
readonly name: "instantiate";
|
|
936
|
+
readonly outputs: readonly [{
|
|
937
|
+
readonly internalType: "address[]";
|
|
938
|
+
readonly name: "srcs";
|
|
939
|
+
readonly type: "address[]";
|
|
940
|
+
}, {
|
|
941
|
+
readonly internalType: "bytes32";
|
|
942
|
+
readonly name: "name";
|
|
943
|
+
readonly type: "bytes32";
|
|
944
|
+
}, {
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
readonly name: "version";
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
}];
|
|
949
|
+
readonly stateMutability: "nonpayable";
|
|
950
|
+
readonly type: "function";
|
|
951
|
+
}, {
|
|
952
|
+
readonly inputs: readonly [{
|
|
953
|
+
readonly internalType: "bytes32";
|
|
954
|
+
readonly name: "id";
|
|
955
|
+
readonly type: "bytes32";
|
|
956
|
+
}];
|
|
957
|
+
readonly name: "instantiationCosts";
|
|
958
|
+
readonly outputs: readonly [{
|
|
959
|
+
readonly internalType: "uint256";
|
|
960
|
+
readonly name: "";
|
|
961
|
+
readonly type: "uint256";
|
|
962
|
+
}];
|
|
963
|
+
readonly stateMutability: "view";
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
}, {
|
|
966
|
+
readonly inputs: readonly [];
|
|
967
|
+
readonly name: "numInstances";
|
|
968
|
+
readonly outputs: readonly [{
|
|
969
|
+
readonly internalType: "uint256";
|
|
970
|
+
readonly name: "";
|
|
971
|
+
readonly type: "uint256";
|
|
972
|
+
}];
|
|
973
|
+
readonly stateMutability: "view";
|
|
974
|
+
readonly type: "function";
|
|
975
|
+
}, {
|
|
976
|
+
readonly inputs: readonly [];
|
|
977
|
+
readonly name: "owner";
|
|
978
|
+
readonly outputs: readonly [{
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
readonly name: "";
|
|
981
|
+
readonly type: "address";
|
|
982
|
+
}];
|
|
983
|
+
readonly stateMutability: "view";
|
|
984
|
+
readonly type: "function";
|
|
985
|
+
}, {
|
|
986
|
+
readonly inputs: readonly [];
|
|
987
|
+
readonly name: "paymentToken";
|
|
988
|
+
readonly outputs: readonly [{
|
|
989
|
+
readonly internalType: "contract IERC20";
|
|
990
|
+
readonly name: "";
|
|
991
|
+
readonly type: "address";
|
|
992
|
+
}];
|
|
993
|
+
readonly stateMutability: "view";
|
|
994
|
+
readonly type: "function";
|
|
995
|
+
}, {
|
|
996
|
+
readonly inputs: readonly [];
|
|
997
|
+
readonly name: "pendingDefaultAdmin";
|
|
998
|
+
readonly outputs: readonly [{
|
|
999
|
+
readonly internalType: "address";
|
|
1000
|
+
readonly name: "newAdmin";
|
|
1001
|
+
readonly type: "address";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly internalType: "uint48";
|
|
1004
|
+
readonly name: "schedule";
|
|
1005
|
+
readonly type: "uint48";
|
|
1006
|
+
}];
|
|
1007
|
+
readonly stateMutability: "view";
|
|
1008
|
+
readonly type: "function";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly inputs: readonly [];
|
|
1011
|
+
readonly name: "pendingDefaultAdminDelay";
|
|
1012
|
+
readonly outputs: readonly [{
|
|
1013
|
+
readonly internalType: "uint48";
|
|
1014
|
+
readonly name: "newDelay";
|
|
1015
|
+
readonly type: "uint48";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly internalType: "uint48";
|
|
1018
|
+
readonly name: "schedule";
|
|
1019
|
+
readonly type: "uint48";
|
|
1020
|
+
}];
|
|
1021
|
+
readonly stateMutability: "view";
|
|
1022
|
+
readonly type: "function";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly inputs: readonly [{
|
|
1025
|
+
readonly internalType: "bytes32";
|
|
1026
|
+
readonly name: "id";
|
|
1027
|
+
readonly type: "bytes32";
|
|
1028
|
+
}];
|
|
1029
|
+
readonly name: "removeDistribution";
|
|
1030
|
+
readonly outputs: readonly [];
|
|
1031
|
+
readonly stateMutability: "nonpayable";
|
|
1032
|
+
readonly type: "function";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly inputs: readonly [{
|
|
1035
|
+
readonly internalType: "bytes32";
|
|
1036
|
+
readonly name: "role";
|
|
1037
|
+
readonly type: "bytes32";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly internalType: "address";
|
|
1040
|
+
readonly name: "account";
|
|
1041
|
+
readonly type: "address";
|
|
1042
|
+
}];
|
|
1043
|
+
readonly name: "renounceRole";
|
|
1044
|
+
readonly outputs: readonly [];
|
|
1045
|
+
readonly stateMutability: "nonpayable";
|
|
1046
|
+
readonly type: "function";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly inputs: readonly [{
|
|
1049
|
+
readonly internalType: "bytes32";
|
|
1050
|
+
readonly name: "role";
|
|
1051
|
+
readonly type: "bytes32";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly internalType: "address";
|
|
1054
|
+
readonly name: "account";
|
|
1055
|
+
readonly type: "address";
|
|
1056
|
+
}];
|
|
1057
|
+
readonly name: "revokeRole";
|
|
1058
|
+
readonly outputs: readonly [];
|
|
1059
|
+
readonly stateMutability: "nonpayable";
|
|
1060
|
+
readonly type: "function";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly inputs: readonly [];
|
|
1063
|
+
readonly name: "rollbackDefaultAdminDelay";
|
|
1064
|
+
readonly outputs: readonly [];
|
|
1065
|
+
readonly stateMutability: "nonpayable";
|
|
1066
|
+
readonly type: "function";
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly inputs: readonly [{
|
|
1069
|
+
readonly internalType: "bytes32";
|
|
1070
|
+
readonly name: "id";
|
|
1071
|
+
readonly type: "bytes32";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly internalType: "uint256";
|
|
1074
|
+
readonly name: "cost";
|
|
1075
|
+
readonly type: "uint256";
|
|
1076
|
+
}];
|
|
1077
|
+
readonly name: "setInstantiationCost";
|
|
1078
|
+
readonly outputs: readonly [];
|
|
1079
|
+
readonly stateMutability: "nonpayable";
|
|
1080
|
+
readonly type: "function";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly inputs: readonly [{
|
|
1083
|
+
readonly internalType: "bytes4";
|
|
1084
|
+
readonly name: "interfaceId";
|
|
1085
|
+
readonly type: "bytes4";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly name: "supportsInterface";
|
|
1088
|
+
readonly outputs: readonly [{
|
|
1089
|
+
readonly internalType: "bool";
|
|
1090
|
+
readonly name: "";
|
|
1091
|
+
readonly type: "bool";
|
|
1092
|
+
}];
|
|
1093
|
+
readonly stateMutability: "view";
|
|
1094
|
+
readonly type: "function";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly inputs: readonly [{
|
|
1097
|
+
readonly internalType: "bytes32";
|
|
1098
|
+
readonly name: "distributorsId";
|
|
1099
|
+
readonly type: "bytes32";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly name: "versionRequirements";
|
|
1102
|
+
readonly outputs: readonly [{
|
|
1103
|
+
readonly components: readonly [{
|
|
1104
|
+
readonly internalType: "uint64";
|
|
1105
|
+
readonly name: "major";
|
|
1106
|
+
readonly type: "uint64";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly internalType: "uint64";
|
|
1109
|
+
readonly name: "minor";
|
|
1110
|
+
readonly type: "uint64";
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly internalType: "uint128";
|
|
1113
|
+
readonly name: "patch";
|
|
1114
|
+
readonly type: "uint128";
|
|
1115
|
+
}];
|
|
1116
|
+
readonly internalType: "struct LibSemver.Version";
|
|
1117
|
+
readonly name: "version";
|
|
1118
|
+
readonly type: "tuple";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly internalType: "enum LibSemver.requirements";
|
|
1121
|
+
readonly name: "requirement";
|
|
1122
|
+
readonly type: "uint8";
|
|
1123
|
+
}];
|
|
1124
|
+
readonly stateMutability: "view";
|
|
1125
|
+
readonly type: "function";
|
|
1126
|
+
}], "DistributionAdded">;
|
|
1127
|
+
}>;
|
|
92
1128
|
getMAOInstance(name: string | undefined, instanceId: bigint): Promise<MAOInstanceContracts>;
|
|
1129
|
+
getInstantiatePrice(distributorsId: Hex): Promise<bigint>;
|
|
1130
|
+
setInstantiationAllowance(amount?: bigint): Promise<void>;
|
|
1131
|
+
needsAllowance(distributorsId: Hex): Promise<boolean>;
|
|
93
1132
|
/**
|
|
94
1133
|
* Create a new MAODistribution instance
|
|
95
1134
|
* @param args Distribution arguments (encoded as bytes)
|
|
1135
|
+
* @param name Distributor name (defaults to "MAO Distribution")
|
|
96
1136
|
* @returns Array of created contract addresses
|
|
97
1137
|
*/
|
|
98
1138
|
instantiate(args: GetAbiItemParameters<typeof MaoDistributionAbi, "distributionSchema">["args"], name: string | undefined, chain: Chain): Promise<MAOInstanceContracts>;
|