@etherisc/gif-next 0.0.2-d2fd9d7-008 → 0.0.2-d30275e-758
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +28 -14
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +842 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +946 -219
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +806 -243
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +632 -194
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -66
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +303 -1340
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +337 -168
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +439 -3102
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +609 -178
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +251 -270
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +457 -402
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +292 -131
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2663 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -27
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +277 -178
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +902 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +649 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1326 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1072 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1022 -223
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +392 -79
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +235 -200
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +714 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +602 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +585 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +969 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +536 -304
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPricingService.sol/IPricingService.json} +248 -172
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +78 -388
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1575 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +832 -400
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +338 -93
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +289 -564
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +289 -124
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +244 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +149 -230
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +257 -235
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +200 -335
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -145
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +86 -172
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +191 -163
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +210 -214
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +204 -83
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -41
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +217 -182
- package/contracts/components/Product.sol +248 -163
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +17 -20
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +57 -33
- package/contracts/instance/IInstanceService.sol +56 -9
- package/contracts/instance/Instance.sol +150 -367
- package/contracts/instance/InstanceAccessManager.sol +430 -177
- package/contracts/instance/InstanceAuthorizationsLib.sol +300 -0
- package/contracts/instance/InstanceReader.sol +44 -39
- package/contracts/instance/InstanceService.sol +243 -166
- package/contracts/instance/InstanceServiceManager.sol +6 -9
- package/contracts/instance/InstanceStore.sol +208 -0
- package/contracts/instance/ObjectManager.sol +11 -24
- package/contracts/instance/base/ComponentService.sol +148 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +23 -6
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -5
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +41 -9
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +185 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +440 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +239 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +287 -33
- package/contracts/instance/service/DistributionServiceManager.sol +7 -10
- package/contracts/instance/service/IApplicationService.sol +61 -0
- package/contracts/instance/service/IBundleService.sol +102 -0
- package/contracts/instance/service/IClaimService.sol +92 -0
- package/contracts/instance/service/IDistributionService.sol +74 -1
- package/contracts/instance/service/IPolicyService.sol +139 -0
- package/contracts/instance/service/IPoolService.sol +76 -25
- package/contracts/instance/service/IPricingService.sol +36 -0
- package/contracts/instance/service/IProductService.sol +2 -72
- package/contracts/instance/service/PolicyService.sol +577 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +232 -183
- package/contracts/instance/service/PoolServiceManager.sol +6 -9
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +109 -469
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +39 -19
- package/contracts/registry/IRegistryService.sol +31 -13
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +243 -224
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +101 -173
- package/contracts/registry/RegistryServiceManager.sol +21 -39
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +22 -17
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +5 -4
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +66 -80
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -32
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +41 -24
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/Amount.sol +70 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +75 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +13 -5
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +16 -7
- package/contracts/types/PayoutId.sol +82 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -19
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +7 -2
- package/contracts/types/Timestamp.sol +18 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -101
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -91
- package/contracts/components/IBaseComponent.sol +0 -25
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/AccessManagedSimple.sol +0 -115
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -134
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,195 +7,110 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
11
|
"type": "address"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"internalType": "NftId",
|
15
|
-
"name": "nftId",
|
16
|
-
"type": "uint96"
|
17
12
|
}
|
18
13
|
],
|
19
|
-
"name": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
20
15
|
"type": "error"
|
21
16
|
},
|
22
17
|
{
|
23
18
|
"inputs": [
|
24
19
|
{
|
25
20
|
"internalType": "address",
|
26
|
-
"name": "
|
21
|
+
"name": "caller",
|
27
22
|
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
28
|
}
|
29
29
|
],
|
30
|
-
"name": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
33
|
{
|
34
34
|
"inputs": [
|
35
35
|
{
|
36
36
|
"internalType": "address",
|
37
|
-
"name": "
|
38
|
-
"type": "address"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"internalType": "address",
|
42
|
-
"name": "tokenHandlerAddress",
|
37
|
+
"name": "caller",
|
43
38
|
"type": "address"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"internalType": "uint256",
|
47
|
-
"name": "amount",
|
48
|
-
"type": "uint256"
|
49
39
|
}
|
50
40
|
],
|
51
|
-
"name": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
52
42
|
"type": "error"
|
53
43
|
},
|
54
44
|
{
|
55
45
|
"inputs": [
|
56
46
|
{
|
57
|
-
"internalType": "
|
58
|
-
"name": "
|
59
|
-
"type": "
|
47
|
+
"internalType": "NftId",
|
48
|
+
"name": "nftId",
|
49
|
+
"type": "uint96"
|
60
50
|
}
|
61
51
|
],
|
62
|
-
"name": "
|
52
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
63
53
|
"type": "error"
|
64
54
|
},
|
65
55
|
{
|
66
56
|
"inputs": [
|
67
57
|
{
|
68
58
|
"internalType": "address",
|
69
|
-
"name": "
|
59
|
+
"name": "contractAddress",
|
70
60
|
"type": "address"
|
71
61
|
}
|
72
62
|
],
|
73
|
-
"name": "
|
63
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
74
64
|
"type": "error"
|
75
65
|
},
|
76
66
|
{
|
77
67
|
"inputs": [],
|
78
|
-
"name": "
|
68
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
79
69
|
"type": "error"
|
80
70
|
},
|
81
71
|
{
|
82
72
|
"inputs": [
|
83
73
|
{
|
84
74
|
"internalType": "address",
|
85
|
-
"name": "
|
75
|
+
"name": "account",
|
86
76
|
"type": "address"
|
87
77
|
}
|
88
78
|
],
|
89
|
-
"name": "
|
90
|
-
"type": "error"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"inputs": [],
|
94
|
-
"name": "ErrorRegistryNotInitialized",
|
79
|
+
"name": "ErrorNftOwnableNotOwner",
|
95
80
|
"type": "error"
|
96
81
|
},
|
97
82
|
{
|
98
|
-
"anonymous": false,
|
99
83
|
"inputs": [
|
100
84
|
{
|
101
|
-
"indexed": false,
|
102
|
-
"internalType": "Version",
|
103
|
-
"name": "version",
|
104
|
-
"type": "uint24"
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"indexed": false,
|
108
|
-
"internalType": "address",
|
109
|
-
"name": "implementation",
|
110
|
-
"type": "address"
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"indexed": false,
|
114
85
|
"internalType": "address",
|
115
|
-
"name": "
|
86
|
+
"name": "registryAddress",
|
116
87
|
"type": "address"
|
117
88
|
}
|
118
89
|
],
|
119
|
-
"name": "
|
120
|
-
"type": "
|
90
|
+
"name": "ErrorNotRegistry",
|
91
|
+
"type": "error"
|
121
92
|
},
|
122
93
|
{
|
94
|
+
"anonymous": false,
|
123
95
|
"inputs": [
|
124
96
|
{
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
{
|
130
|
-
"internalType": "Timestamp",
|
131
|
-
"name": "activateAt",
|
132
|
-
"type": "uint40"
|
97
|
+
"indexed": false,
|
98
|
+
"internalType": "address",
|
99
|
+
"name": "authority",
|
100
|
+
"type": "address"
|
133
101
|
}
|
134
102
|
],
|
135
|
-
"name": "
|
136
|
-
"
|
137
|
-
"stateMutability": "nonpayable",
|
138
|
-
"type": "function"
|
103
|
+
"name": "AuthorityUpdated",
|
104
|
+
"type": "event"
|
139
105
|
},
|
140
106
|
{
|
141
|
-
"inputs": [
|
142
|
-
|
143
|
-
"internalType": "RiskId",
|
144
|
-
"name": "riskId",
|
145
|
-
"type": "bytes8"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"internalType": "uint256",
|
149
|
-
"name": "sumInsuredAmount",
|
150
|
-
"type": "uint256"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"internalType": "uint256",
|
154
|
-
"name": "lifetime",
|
155
|
-
"type": "uint256"
|
156
|
-
},
|
157
|
-
{
|
158
|
-
"internalType": "bytes",
|
159
|
-
"name": "applicationData",
|
160
|
-
"type": "bytes"
|
161
|
-
},
|
162
|
-
{
|
163
|
-
"internalType": "NftId",
|
164
|
-
"name": "bundleNftId",
|
165
|
-
"type": "uint96"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"internalType": "ReferralId",
|
169
|
-
"name": "referralId",
|
170
|
-
"type": "bytes8"
|
171
|
-
}
|
172
|
-
],
|
173
|
-
"name": "calculatePremium",
|
107
|
+
"inputs": [],
|
108
|
+
"name": "authority",
|
174
109
|
"outputs": [
|
175
110
|
{
|
176
|
-
"internalType": "
|
177
|
-
"name": "
|
178
|
-
"type": "
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"internalType": "uint256",
|
182
|
-
"name": "productFeeAmount",
|
183
|
-
"type": "uint256"
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"internalType": "uint256",
|
187
|
-
"name": "poolFeeAmount",
|
188
|
-
"type": "uint256"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"internalType": "uint256",
|
192
|
-
"name": "bundleFeeAmount",
|
193
|
-
"type": "uint256"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"internalType": "uint256",
|
197
|
-
"name": "distributionFeeAmount",
|
198
|
-
"type": "uint256"
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "",
|
113
|
+
"type": "address"
|
199
114
|
}
|
200
115
|
],
|
201
116
|
"stateMutability": "view",
|
@@ -203,124 +118,33 @@
|
|
203
118
|
},
|
204
119
|
{
|
205
120
|
"inputs": [
|
206
|
-
{
|
207
|
-
"internalType": "UFixed",
|
208
|
-
"name": "collateralizationLevel",
|
209
|
-
"type": "uint256"
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"internalType": "uint256",
|
213
|
-
"name": "sumInsuredAmount",
|
214
|
-
"type": "uint256"
|
215
|
-
}
|
216
|
-
],
|
217
|
-
"name": "calculateRequiredCollateral",
|
218
|
-
"outputs": [
|
219
|
-
{
|
220
|
-
"internalType": "uint256",
|
221
|
-
"name": "collateralAmount",
|
222
|
-
"type": "uint256"
|
223
|
-
}
|
224
|
-
],
|
225
|
-
"stateMutability": "pure",
|
226
|
-
"type": "function"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"inputs": [
|
230
|
-
{
|
231
|
-
"internalType": "NftId",
|
232
|
-
"name": "nftId",
|
233
|
-
"type": "uint96"
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"name": "close",
|
237
|
-
"outputs": [],
|
238
|
-
"stateMutability": "nonpayable",
|
239
|
-
"type": "function"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"inputs": [
|
243
|
-
{
|
244
|
-
"internalType": "NftId",
|
245
|
-
"name": "policyNftId",
|
246
|
-
"type": "uint96"
|
247
|
-
},
|
248
|
-
{
|
249
|
-
"internalType": "Timestamp",
|
250
|
-
"name": "activateAt",
|
251
|
-
"type": "uint40"
|
252
|
-
}
|
253
|
-
],
|
254
|
-
"name": "collectPremium",
|
255
|
-
"outputs": [],
|
256
|
-
"stateMutability": "nonpayable",
|
257
|
-
"type": "function"
|
258
|
-
},
|
259
|
-
{
|
260
|
-
"inputs": [
|
261
|
-
{
|
262
|
-
"internalType": "address",
|
263
|
-
"name": "applicationOwner",
|
264
|
-
"type": "address"
|
265
|
-
},
|
266
121
|
{
|
267
122
|
"internalType": "RiskId",
|
268
123
|
"name": "riskId",
|
269
124
|
"type": "bytes8"
|
270
125
|
},
|
271
|
-
{
|
272
|
-
"internalType": "uint256",
|
273
|
-
"name": "sumInsuredAmount",
|
274
|
-
"type": "uint256"
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"internalType": "uint256",
|
278
|
-
"name": "lifetime",
|
279
|
-
"type": "uint256"
|
280
|
-
},
|
281
126
|
{
|
282
127
|
"internalType": "bytes",
|
283
|
-
"name": "
|
128
|
+
"name": "data",
|
284
129
|
"type": "bytes"
|
285
|
-
},
|
286
|
-
{
|
287
|
-
"internalType": "NftId",
|
288
|
-
"name": "bundleNftId",
|
289
|
-
"type": "uint96"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"internalType": "ReferralId",
|
293
|
-
"name": "referralId",
|
294
|
-
"type": "bytes8"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
"name": "createApplication",
|
298
|
-
"outputs": [
|
299
|
-
{
|
300
|
-
"internalType": "NftId",
|
301
|
-
"name": "nftId",
|
302
|
-
"type": "uint96"
|
303
130
|
}
|
304
131
|
],
|
132
|
+
"name": "createRisk",
|
133
|
+
"outputs": [],
|
305
134
|
"stateMutability": "nonpayable",
|
306
135
|
"type": "function"
|
307
136
|
},
|
308
137
|
{
|
309
|
-
"inputs": [
|
310
|
-
|
311
|
-
|
312
|
-
"name": "riskId",
|
313
|
-
"type": "bytes8"
|
314
|
-
},
|
138
|
+
"inputs": [],
|
139
|
+
"name": "getDomain",
|
140
|
+
"outputs": [
|
315
141
|
{
|
316
|
-
"internalType": "
|
317
|
-
"name": "
|
318
|
-
"type": "
|
142
|
+
"internalType": "ObjectType",
|
143
|
+
"name": "serviceDomain",
|
144
|
+
"type": "uint8"
|
319
145
|
}
|
320
146
|
],
|
321
|
-
"
|
322
|
-
"outputs": [],
|
323
|
-
"stateMutability": "nonpayable",
|
147
|
+
"stateMutability": "pure",
|
324
148
|
"type": "function"
|
325
149
|
},
|
326
150
|
{
|
@@ -368,55 +192,11 @@
|
|
368
192
|
"internalType": "struct IRegistry.ObjectInfo",
|
369
193
|
"name": "",
|
370
194
|
"type": "tuple"
|
371
|
-
},
|
372
|
-
{
|
373
|
-
"internalType": "bytes",
|
374
|
-
"name": "data",
|
375
|
-
"type": "bytes"
|
376
|
-
}
|
377
|
-
],
|
378
|
-
"stateMutability": "view",
|
379
|
-
"type": "function"
|
380
|
-
},
|
381
|
-
{
|
382
|
-
"inputs": [],
|
383
|
-
"name": "getInitializedVersion",
|
384
|
-
"outputs": [
|
385
|
-
{
|
386
|
-
"internalType": "uint64",
|
387
|
-
"name": "",
|
388
|
-
"type": "uint64"
|
389
|
-
}
|
390
|
-
],
|
391
|
-
"stateMutability": "view",
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getMajorVersion",
|
397
|
-
"outputs": [
|
398
|
-
{
|
399
|
-
"internalType": "VersionPart",
|
400
|
-
"name": "majorVersion",
|
401
|
-
"type": "uint8"
|
402
195
|
}
|
403
196
|
],
|
404
197
|
"stateMutability": "view",
|
405
198
|
"type": "function"
|
406
199
|
},
|
407
|
-
{
|
408
|
-
"inputs": [],
|
409
|
-
"name": "getName",
|
410
|
-
"outputs": [
|
411
|
-
{
|
412
|
-
"internalType": "string",
|
413
|
-
"name": "name",
|
414
|
-
"type": "string"
|
415
|
-
}
|
416
|
-
],
|
417
|
-
"stateMutability": "pure",
|
418
|
-
"type": "function"
|
419
|
-
},
|
420
200
|
{
|
421
201
|
"inputs": [],
|
422
202
|
"name": "getNftId",
|
@@ -458,31 +238,12 @@
|
|
458
238
|
},
|
459
239
|
{
|
460
240
|
"inputs": [],
|
461
|
-
"name": "
|
241
|
+
"name": "getRegistryAddress",
|
462
242
|
"outputs": [
|
463
243
|
{
|
464
|
-
"internalType": "
|
244
|
+
"internalType": "address",
|
465
245
|
"name": "",
|
466
|
-
"type": "
|
467
|
-
}
|
468
|
-
],
|
469
|
-
"stateMutability": "pure",
|
470
|
-
"type": "function"
|
471
|
-
},
|
472
|
-
{
|
473
|
-
"inputs": [
|
474
|
-
{
|
475
|
-
"internalType": "uint256",
|
476
|
-
"name": "index",
|
477
|
-
"type": "uint256"
|
478
|
-
}
|
479
|
-
],
|
480
|
-
"name": "getVersion",
|
481
|
-
"outputs": [
|
482
|
-
{
|
483
|
-
"internalType": "Version",
|
484
|
-
"name": "version",
|
485
|
-
"type": "uint24"
|
246
|
+
"type": "address"
|
486
247
|
}
|
487
248
|
],
|
488
249
|
"stateMutability": "view",
|
@@ -490,70 +251,19 @@
|
|
490
251
|
},
|
491
252
|
{
|
492
253
|
"inputs": [],
|
493
|
-
"name": "
|
254
|
+
"name": "getVersion",
|
494
255
|
"outputs": [
|
495
|
-
{
|
496
|
-
"internalType": "uint256",
|
497
|
-
"name": "numberOfVersions",
|
498
|
-
"type": "uint256"
|
499
|
-
}
|
500
|
-
],
|
501
|
-
"stateMutability": "view",
|
502
|
-
"type": "function"
|
503
|
-
},
|
504
|
-
{
|
505
|
-
"inputs": [
|
506
256
|
{
|
507
257
|
"internalType": "Version",
|
508
|
-
"name": "
|
258
|
+
"name": "",
|
509
259
|
"type": "uint24"
|
510
260
|
}
|
511
261
|
],
|
512
|
-
"
|
513
|
-
"outputs": [
|
514
|
-
{
|
515
|
-
"components": [
|
516
|
-
{
|
517
|
-
"internalType": "Version",
|
518
|
-
"name": "version",
|
519
|
-
"type": "uint24"
|
520
|
-
},
|
521
|
-
{
|
522
|
-
"internalType": "address",
|
523
|
-
"name": "implementation",
|
524
|
-
"type": "address"
|
525
|
-
},
|
526
|
-
{
|
527
|
-
"internalType": "address",
|
528
|
-
"name": "activatedBy",
|
529
|
-
"type": "address"
|
530
|
-
},
|
531
|
-
{
|
532
|
-
"internalType": "Timestamp",
|
533
|
-
"name": "activatedAt",
|
534
|
-
"type": "uint40"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"internalType": "Blocknumber",
|
538
|
-
"name": "activatedIn",
|
539
|
-
"type": "uint32"
|
540
|
-
}
|
541
|
-
],
|
542
|
-
"internalType": "struct IVersionable.VersionInfo",
|
543
|
-
"name": "versionInfo",
|
544
|
-
"type": "tuple"
|
545
|
-
}
|
546
|
-
],
|
547
|
-
"stateMutability": "view",
|
262
|
+
"stateMutability": "pure",
|
548
263
|
"type": "function"
|
549
264
|
},
|
550
265
|
{
|
551
266
|
"inputs": [
|
552
|
-
{
|
553
|
-
"internalType": "address",
|
554
|
-
"name": "implementation",
|
555
|
-
"type": "address"
|
556
|
-
},
|
557
267
|
{
|
558
268
|
"internalType": "address",
|
559
269
|
"name": "activatedBy",
|
@@ -565,25 +275,19 @@
|
|
565
275
|
"type": "bytes"
|
566
276
|
}
|
567
277
|
],
|
568
|
-
"name": "
|
278
|
+
"name": "initializeVersionable",
|
569
279
|
"outputs": [],
|
570
280
|
"stateMutability": "nonpayable",
|
571
281
|
"type": "function"
|
572
282
|
},
|
573
283
|
{
|
574
|
-
"inputs": [
|
575
|
-
|
576
|
-
"internalType": "Version",
|
577
|
-
"name": "version",
|
578
|
-
"type": "uint24"
|
579
|
-
}
|
580
|
-
],
|
581
|
-
"name": "isInitialized",
|
284
|
+
"inputs": [],
|
285
|
+
"name": "isConsumingScheduledOp",
|
582
286
|
"outputs": [
|
583
287
|
{
|
584
|
-
"internalType": "
|
288
|
+
"internalType": "bytes4",
|
585
289
|
"name": "",
|
586
|
-
"type": "
|
290
|
+
"type": "bytes4"
|
587
291
|
}
|
588
292
|
],
|
589
293
|
"stateMutability": "view",
|
@@ -598,13 +302,32 @@
|
|
598
302
|
},
|
599
303
|
{
|
600
304
|
"inputs": [
|
305
|
+
{
|
306
|
+
"internalType": "address",
|
307
|
+
"name": "productAddress",
|
308
|
+
"type": "address"
|
309
|
+
}
|
310
|
+
],
|
311
|
+
"name": "register",
|
312
|
+
"outputs": [
|
601
313
|
{
|
602
314
|
"internalType": "NftId",
|
603
|
-
"name": "
|
315
|
+
"name": "",
|
604
316
|
"type": "uint96"
|
605
317
|
}
|
606
318
|
],
|
607
|
-
"
|
319
|
+
"stateMutability": "nonpayable",
|
320
|
+
"type": "function"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"inputs": [
|
324
|
+
{
|
325
|
+
"internalType": "address",
|
326
|
+
"name": "",
|
327
|
+
"type": "address"
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"name": "setAuthority",
|
608
331
|
"outputs": [],
|
609
332
|
"stateMutability": "nonpayable",
|
610
333
|
"type": "function"
|
@@ -670,29 +393,6 @@
|
|
670
393
|
"stateMutability": "view",
|
671
394
|
"type": "function"
|
672
395
|
},
|
673
|
-
{
|
674
|
-
"inputs": [
|
675
|
-
{
|
676
|
-
"internalType": "NftId",
|
677
|
-
"name": "policyNftId",
|
678
|
-
"type": "uint96"
|
679
|
-
},
|
680
|
-
{
|
681
|
-
"internalType": "bool",
|
682
|
-
"name": "requirePremiumPayment",
|
683
|
-
"type": "bool"
|
684
|
-
},
|
685
|
-
{
|
686
|
-
"internalType": "Timestamp",
|
687
|
-
"name": "activateAt",
|
688
|
-
"type": "uint40"
|
689
|
-
}
|
690
|
-
],
|
691
|
-
"name": "underwrite",
|
692
|
-
"outputs": [],
|
693
|
-
"stateMutability": "nonpayable",
|
694
|
-
"type": "function"
|
695
|
-
},
|
696
396
|
{
|
697
397
|
"inputs": [
|
698
398
|
{
|
@@ -731,23 +431,13 @@
|
|
731
431
|
},
|
732
432
|
{
|
733
433
|
"inputs": [
|
734
|
-
{
|
735
|
-
"internalType": "address",
|
736
|
-
"name": "implementation",
|
737
|
-
"type": "address"
|
738
|
-
},
|
739
|
-
{
|
740
|
-
"internalType": "address",
|
741
|
-
"name": "activatedBy",
|
742
|
-
"type": "address"
|
743
|
-
},
|
744
434
|
{
|
745
435
|
"internalType": "bytes",
|
746
436
|
"name": "upgradeData",
|
747
437
|
"type": "bytes"
|
748
438
|
}
|
749
439
|
],
|
750
|
-
"name": "
|
440
|
+
"name": "upgradeVersionable",
|
751
441
|
"outputs": [],
|
752
442
|
"stateMutability": "nonpayable",
|
753
443
|
"type": "function"
|