@etherisc/gif-next 0.0.2-f2b0fa2-473 → 0.0.2-f4f2d93-430
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +75 -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 +948 -229
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +295 -132
- 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 +864 -49
- 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 +849 -247
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +637 -224
- 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 +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2200 -184
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +368 -156
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1005 -1175
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +593 -180
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +242 -210
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +666 -190
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +392 -75
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
- 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} +276 -150
- 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 +1039 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +673 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1231 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +721 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +817 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1798 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +805 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +622 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +659 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +217 -208
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +804 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +606 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -154
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -391
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1092 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +697 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1237 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +840 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
- 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 +373 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -229
- 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 +333 -188
- 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 +227 -330
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
- 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 +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
- 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 +161 -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 +100 -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 +26 -3
- 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 +100 -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 +25 -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 +22 -3
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +200 -86
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -16
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +225 -181
- package/contracts/components/Product.sol +130 -134
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +127 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +81 -11
- package/contracts/instance/IInstanceService.sol +56 -1
- package/contracts/instance/Instance.sol +157 -265
- package/contracts/instance/InstanceAccessManager.sol +414 -175
- package/contracts/instance/InstanceReader.sol +40 -29
- package/contracts/instance/InstanceService.sol +447 -54
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +121 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -4
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +9 -19
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +431 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +435 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +93 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +87 -0
- package/contracts/instance/service/IPolicyService.sol +72 -0
- package/contracts/instance/service/IPoolService.sol +79 -17
- package/contracts/instance/service/IProductService.sol +6 -73
- package/contracts/instance/service/PolicyService.sol +362 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +303 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +210 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +52 -8
- package/contracts/registry/IRegistryService.sol +47 -14
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +270 -226
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +111 -268
- package/contracts/registry/RegistryServiceManager.sol +24 -26
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ERC165.sol +14 -8
- 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 +67 -83
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -31
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +42 -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 +60 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +52 -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/NftIdSet.sol +26 -24
- package/contracts/types/ObjectType.sol +10 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -11
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +5 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +5 -1
- 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 -314
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
- 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/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
- 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 -86
- package/contracts/components/IBaseComponent.sol +0 -24
- 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 -114
- package/contracts/instance/AccessManagerSimple.sol +0 -682
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- 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,299 +7,144 @@
|
|
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": "
|
37
|
+
"name": "caller",
|
38
38
|
"type": "address"
|
39
39
|
}
|
40
40
|
],
|
41
|
-
"name": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
42
|
"type": "error"
|
43
43
|
},
|
44
44
|
{
|
45
45
|
"inputs": [
|
46
46
|
{
|
47
|
-
"internalType": "
|
48
|
-
"name": "
|
49
|
-
"type": "
|
47
|
+
"internalType": "NftId",
|
48
|
+
"name": "nftId",
|
49
|
+
"type": "uint96"
|
50
50
|
}
|
51
51
|
],
|
52
|
-
"name": "
|
53
|
-
"type": "error"
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"inputs": [],
|
57
|
-
"name": "ErrorRegistryAddressZero",
|
52
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
58
53
|
"type": "error"
|
59
54
|
},
|
60
55
|
{
|
61
56
|
"inputs": [
|
62
57
|
{
|
63
58
|
"internalType": "address",
|
64
|
-
"name": "
|
59
|
+
"name": "contractAddress",
|
65
60
|
"type": "address"
|
66
61
|
}
|
67
62
|
],
|
68
|
-
"name": "
|
63
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
69
64
|
"type": "error"
|
70
65
|
},
|
71
66
|
{
|
72
67
|
"inputs": [],
|
73
|
-
"name": "
|
68
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
74
69
|
"type": "error"
|
75
70
|
},
|
76
71
|
{
|
77
|
-
"anonymous": false,
|
78
72
|
"inputs": [
|
79
73
|
{
|
80
|
-
"indexed": false,
|
81
|
-
"internalType": "Version",
|
82
|
-
"name": "version",
|
83
|
-
"type": "uint24"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"indexed": false,
|
87
74
|
"internalType": "address",
|
88
|
-
"name": "
|
89
|
-
"type": "address"
|
90
|
-
},
|
91
|
-
{
|
92
|
-
"indexed": false,
|
93
|
-
"internalType": "address",
|
94
|
-
"name": "activatedBy",
|
75
|
+
"name": "account",
|
95
76
|
"type": "address"
|
96
77
|
}
|
97
78
|
],
|
98
|
-
"name": "
|
99
|
-
"type": "
|
79
|
+
"name": "ErrorNftOwnableNotOwner",
|
80
|
+
"type": "error"
|
100
81
|
},
|
101
82
|
{
|
102
83
|
"inputs": [
|
103
84
|
{
|
104
|
-
"internalType": "
|
105
|
-
"name": "
|
106
|
-
"type": "
|
107
|
-
},
|
108
|
-
{
|
109
|
-
"internalType": "Timestamp",
|
110
|
-
"name": "activateAt",
|
111
|
-
"type": "uint40"
|
85
|
+
"internalType": "address",
|
86
|
+
"name": "registryAddress",
|
87
|
+
"type": "address"
|
112
88
|
}
|
113
89
|
],
|
114
|
-
"name": "
|
115
|
-
"
|
116
|
-
"stateMutability": "nonpayable",
|
117
|
-
"type": "function"
|
90
|
+
"name": "ErrorNotRegistry",
|
91
|
+
"type": "error"
|
118
92
|
},
|
119
93
|
{
|
94
|
+
"anonymous": false,
|
120
95
|
"inputs": [
|
121
96
|
{
|
122
|
-
"
|
123
|
-
"
|
124
|
-
"
|
125
|
-
|
126
|
-
{
|
127
|
-
"internalType": "uint256",
|
128
|
-
"name": "sumInsuredAmount",
|
129
|
-
"type": "uint256"
|
130
|
-
},
|
131
|
-
{
|
132
|
-
"internalType": "uint256",
|
133
|
-
"name": "lifetime",
|
134
|
-
"type": "uint256"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"internalType": "bytes",
|
138
|
-
"name": "applicationData",
|
139
|
-
"type": "bytes"
|
140
|
-
},
|
141
|
-
{
|
142
|
-
"internalType": "NftId",
|
143
|
-
"name": "bundleNftId",
|
144
|
-
"type": "uint96"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"internalType": "ReferralId",
|
148
|
-
"name": "referralId",
|
149
|
-
"type": "bytes8"
|
150
|
-
}
|
151
|
-
],
|
152
|
-
"name": "calculatePremium",
|
153
|
-
"outputs": [
|
154
|
-
{
|
155
|
-
"internalType": "uint256",
|
156
|
-
"name": "premiumAmount",
|
157
|
-
"type": "uint256"
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"internalType": "uint256",
|
161
|
-
"name": "productFeeAmount",
|
162
|
-
"type": "uint256"
|
163
|
-
},
|
164
|
-
{
|
165
|
-
"internalType": "uint256",
|
166
|
-
"name": "poolFeeAmount",
|
167
|
-
"type": "uint256"
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"internalType": "uint256",
|
171
|
-
"name": "bundleFeeAmount",
|
172
|
-
"type": "uint256"
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"internalType": "uint256",
|
176
|
-
"name": "distributionFeeAmount",
|
177
|
-
"type": "uint256"
|
97
|
+
"indexed": false,
|
98
|
+
"internalType": "address",
|
99
|
+
"name": "authority",
|
100
|
+
"type": "address"
|
178
101
|
}
|
179
102
|
],
|
180
|
-
"
|
181
|
-
"type": "
|
103
|
+
"name": "AuthorityUpdated",
|
104
|
+
"type": "event"
|
182
105
|
},
|
183
106
|
{
|
184
|
-
"inputs": [
|
185
|
-
|
186
|
-
"internalType": "UFixed",
|
187
|
-
"name": "collateralizationLevel",
|
188
|
-
"type": "uint256"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"internalType": "uint256",
|
192
|
-
"name": "sumInsuredAmount",
|
193
|
-
"type": "uint256"
|
194
|
-
}
|
195
|
-
],
|
196
|
-
"name": "calculateRequiredCollateral",
|
107
|
+
"inputs": [],
|
108
|
+
"name": "authority",
|
197
109
|
"outputs": [
|
198
110
|
{
|
199
|
-
"internalType": "
|
200
|
-
"name": "
|
201
|
-
"type": "
|
202
|
-
}
|
203
|
-
],
|
204
|
-
"stateMutability": "pure",
|
205
|
-
"type": "function"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"inputs": [
|
209
|
-
{
|
210
|
-
"internalType": "NftId",
|
211
|
-
"name": "nftId",
|
212
|
-
"type": "uint96"
|
213
|
-
}
|
214
|
-
],
|
215
|
-
"name": "close",
|
216
|
-
"outputs": [],
|
217
|
-
"stateMutability": "nonpayable",
|
218
|
-
"type": "function"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"inputs": [
|
222
|
-
{
|
223
|
-
"internalType": "NftId",
|
224
|
-
"name": "policyNftId",
|
225
|
-
"type": "uint96"
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"internalType": "Timestamp",
|
229
|
-
"name": "activateAt",
|
230
|
-
"type": "uint40"
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "",
|
113
|
+
"type": "address"
|
231
114
|
}
|
232
115
|
],
|
233
|
-
"
|
234
|
-
"outputs": [],
|
235
|
-
"stateMutability": "nonpayable",
|
116
|
+
"stateMutability": "view",
|
236
117
|
"type": "function"
|
237
118
|
},
|
238
119
|
{
|
239
120
|
"inputs": [
|
240
|
-
{
|
241
|
-
"internalType": "address",
|
242
|
-
"name": "applicationOwner",
|
243
|
-
"type": "address"
|
244
|
-
},
|
245
121
|
{
|
246
122
|
"internalType": "RiskId",
|
247
123
|
"name": "riskId",
|
248
124
|
"type": "bytes8"
|
249
125
|
},
|
250
|
-
{
|
251
|
-
"internalType": "uint256",
|
252
|
-
"name": "sumInsuredAmount",
|
253
|
-
"type": "uint256"
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"internalType": "uint256",
|
257
|
-
"name": "lifetime",
|
258
|
-
"type": "uint256"
|
259
|
-
},
|
260
126
|
{
|
261
127
|
"internalType": "bytes",
|
262
|
-
"name": "
|
128
|
+
"name": "data",
|
263
129
|
"type": "bytes"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"internalType": "NftId",
|
267
|
-
"name": "bundleNftId",
|
268
|
-
"type": "uint96"
|
269
|
-
},
|
270
|
-
{
|
271
|
-
"internalType": "ReferralId",
|
272
|
-
"name": "referralId",
|
273
|
-
"type": "bytes8"
|
274
|
-
}
|
275
|
-
],
|
276
|
-
"name": "createApplication",
|
277
|
-
"outputs": [
|
278
|
-
{
|
279
|
-
"internalType": "NftId",
|
280
|
-
"name": "nftId",
|
281
|
-
"type": "uint96"
|
282
130
|
}
|
283
131
|
],
|
132
|
+
"name": "createRisk",
|
133
|
+
"outputs": [],
|
284
134
|
"stateMutability": "nonpayable",
|
285
135
|
"type": "function"
|
286
136
|
},
|
287
137
|
{
|
288
|
-
"inputs": [
|
289
|
-
|
290
|
-
|
291
|
-
"name": "riskId",
|
292
|
-
"type": "bytes8"
|
293
|
-
},
|
138
|
+
"inputs": [],
|
139
|
+
"name": "getDomain",
|
140
|
+
"outputs": [
|
294
141
|
{
|
295
|
-
"internalType": "
|
296
|
-
"name": "
|
297
|
-
"type": "
|
142
|
+
"internalType": "ObjectType",
|
143
|
+
"name": "serviceDomain",
|
144
|
+
"type": "uint8"
|
298
145
|
}
|
299
146
|
],
|
300
|
-
"
|
301
|
-
"outputs": [],
|
302
|
-
"stateMutability": "nonpayable",
|
147
|
+
"stateMutability": "pure",
|
303
148
|
"type": "function"
|
304
149
|
},
|
305
150
|
{
|
@@ -347,55 +192,11 @@
|
|
347
192
|
"internalType": "struct IRegistry.ObjectInfo",
|
348
193
|
"name": "",
|
349
194
|
"type": "tuple"
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"internalType": "bytes",
|
353
|
-
"name": "data",
|
354
|
-
"type": "bytes"
|
355
|
-
}
|
356
|
-
],
|
357
|
-
"stateMutability": "view",
|
358
|
-
"type": "function"
|
359
|
-
},
|
360
|
-
{
|
361
|
-
"inputs": [],
|
362
|
-
"name": "getInitializedVersion",
|
363
|
-
"outputs": [
|
364
|
-
{
|
365
|
-
"internalType": "uint64",
|
366
|
-
"name": "",
|
367
|
-
"type": "uint64"
|
368
|
-
}
|
369
|
-
],
|
370
|
-
"stateMutability": "view",
|
371
|
-
"type": "function"
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"inputs": [],
|
375
|
-
"name": "getMajorVersion",
|
376
|
-
"outputs": [
|
377
|
-
{
|
378
|
-
"internalType": "VersionPart",
|
379
|
-
"name": "majorVersion",
|
380
|
-
"type": "uint8"
|
381
195
|
}
|
382
196
|
],
|
383
197
|
"stateMutability": "view",
|
384
198
|
"type": "function"
|
385
199
|
},
|
386
|
-
{
|
387
|
-
"inputs": [],
|
388
|
-
"name": "getName",
|
389
|
-
"outputs": [
|
390
|
-
{
|
391
|
-
"internalType": "string",
|
392
|
-
"name": "name",
|
393
|
-
"type": "string"
|
394
|
-
}
|
395
|
-
],
|
396
|
-
"stateMutability": "pure",
|
397
|
-
"type": "function"
|
398
|
-
},
|
399
200
|
{
|
400
201
|
"inputs": [],
|
401
202
|
"name": "getNftId",
|
@@ -437,31 +238,12 @@
|
|
437
238
|
},
|
438
239
|
{
|
439
240
|
"inputs": [],
|
440
|
-
"name": "
|
241
|
+
"name": "getRegistryAddress",
|
441
242
|
"outputs": [
|
442
243
|
{
|
443
|
-
"internalType": "
|
244
|
+
"internalType": "address",
|
444
245
|
"name": "",
|
445
|
-
"type": "
|
446
|
-
}
|
447
|
-
],
|
448
|
-
"stateMutability": "pure",
|
449
|
-
"type": "function"
|
450
|
-
},
|
451
|
-
{
|
452
|
-
"inputs": [
|
453
|
-
{
|
454
|
-
"internalType": "uint256",
|
455
|
-
"name": "index",
|
456
|
-
"type": "uint256"
|
457
|
-
}
|
458
|
-
],
|
459
|
-
"name": "getVersion",
|
460
|
-
"outputs": [
|
461
|
-
{
|
462
|
-
"internalType": "Version",
|
463
|
-
"name": "version",
|
464
|
-
"type": "uint24"
|
246
|
+
"type": "address"
|
465
247
|
}
|
466
248
|
],
|
467
249
|
"stateMutability": "view",
|
@@ -469,70 +251,19 @@
|
|
469
251
|
},
|
470
252
|
{
|
471
253
|
"inputs": [],
|
472
|
-
"name": "
|
254
|
+
"name": "getVersion",
|
473
255
|
"outputs": [
|
474
|
-
{
|
475
|
-
"internalType": "uint256",
|
476
|
-
"name": "numberOfVersions",
|
477
|
-
"type": "uint256"
|
478
|
-
}
|
479
|
-
],
|
480
|
-
"stateMutability": "view",
|
481
|
-
"type": "function"
|
482
|
-
},
|
483
|
-
{
|
484
|
-
"inputs": [
|
485
256
|
{
|
486
257
|
"internalType": "Version",
|
487
|
-
"name": "
|
258
|
+
"name": "",
|
488
259
|
"type": "uint24"
|
489
260
|
}
|
490
261
|
],
|
491
|
-
"
|
492
|
-
"outputs": [
|
493
|
-
{
|
494
|
-
"components": [
|
495
|
-
{
|
496
|
-
"internalType": "Version",
|
497
|
-
"name": "version",
|
498
|
-
"type": "uint24"
|
499
|
-
},
|
500
|
-
{
|
501
|
-
"internalType": "address",
|
502
|
-
"name": "implementation",
|
503
|
-
"type": "address"
|
504
|
-
},
|
505
|
-
{
|
506
|
-
"internalType": "address",
|
507
|
-
"name": "activatedBy",
|
508
|
-
"type": "address"
|
509
|
-
},
|
510
|
-
{
|
511
|
-
"internalType": "Timestamp",
|
512
|
-
"name": "activatedAt",
|
513
|
-
"type": "uint40"
|
514
|
-
},
|
515
|
-
{
|
516
|
-
"internalType": "Blocknumber",
|
517
|
-
"name": "activatedIn",
|
518
|
-
"type": "uint32"
|
519
|
-
}
|
520
|
-
],
|
521
|
-
"internalType": "struct IVersionable.VersionInfo",
|
522
|
-
"name": "versionInfo",
|
523
|
-
"type": "tuple"
|
524
|
-
}
|
525
|
-
],
|
526
|
-
"stateMutability": "view",
|
262
|
+
"stateMutability": "pure",
|
527
263
|
"type": "function"
|
528
264
|
},
|
529
265
|
{
|
530
266
|
"inputs": [
|
531
|
-
{
|
532
|
-
"internalType": "address",
|
533
|
-
"name": "implementation",
|
534
|
-
"type": "address"
|
535
|
-
},
|
536
267
|
{
|
537
268
|
"internalType": "address",
|
538
269
|
"name": "activatedBy",
|
@@ -544,25 +275,19 @@
|
|
544
275
|
"type": "bytes"
|
545
276
|
}
|
546
277
|
],
|
547
|
-
"name": "
|
278
|
+
"name": "initializeVersionable",
|
548
279
|
"outputs": [],
|
549
280
|
"stateMutability": "nonpayable",
|
550
281
|
"type": "function"
|
551
282
|
},
|
552
283
|
{
|
553
|
-
"inputs": [
|
554
|
-
|
555
|
-
"internalType": "Version",
|
556
|
-
"name": "version",
|
557
|
-
"type": "uint24"
|
558
|
-
}
|
559
|
-
],
|
560
|
-
"name": "isInitialized",
|
284
|
+
"inputs": [],
|
285
|
+
"name": "isConsumingScheduledOp",
|
561
286
|
"outputs": [
|
562
287
|
{
|
563
|
-
"internalType": "
|
288
|
+
"internalType": "bytes4",
|
564
289
|
"name": "",
|
565
|
-
"type": "
|
290
|
+
"type": "bytes4"
|
566
291
|
}
|
567
292
|
],
|
568
293
|
"stateMutability": "view",
|
@@ -577,13 +302,32 @@
|
|
577
302
|
},
|
578
303
|
{
|
579
304
|
"inputs": [
|
305
|
+
{
|
306
|
+
"internalType": "address",
|
307
|
+
"name": "productAddress",
|
308
|
+
"type": "address"
|
309
|
+
}
|
310
|
+
],
|
311
|
+
"name": "register",
|
312
|
+
"outputs": [
|
580
313
|
{
|
581
314
|
"internalType": "NftId",
|
582
|
-
"name": "
|
315
|
+
"name": "",
|
583
316
|
"type": "uint96"
|
584
317
|
}
|
585
318
|
],
|
586
|
-
"
|
319
|
+
"stateMutability": "nonpayable",
|
320
|
+
"type": "function"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"inputs": [
|
324
|
+
{
|
325
|
+
"internalType": "address",
|
326
|
+
"name": "",
|
327
|
+
"type": "address"
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"name": "setAuthority",
|
587
331
|
"outputs": [],
|
588
332
|
"stateMutability": "nonpayable",
|
589
333
|
"type": "function"
|
@@ -630,36 +374,6 @@
|
|
630
374
|
"stateMutability": "nonpayable",
|
631
375
|
"type": "function"
|
632
376
|
},
|
633
|
-
{
|
634
|
-
"inputs": [
|
635
|
-
{
|
636
|
-
"internalType": "RiskId",
|
637
|
-
"name": "riskId",
|
638
|
-
"type": "bytes8"
|
639
|
-
},
|
640
|
-
{
|
641
|
-
"components": [
|
642
|
-
{
|
643
|
-
"internalType": "NftId",
|
644
|
-
"name": "productNftId",
|
645
|
-
"type": "uint96"
|
646
|
-
},
|
647
|
-
{
|
648
|
-
"internalType": "bytes",
|
649
|
-
"name": "data",
|
650
|
-
"type": "bytes"
|
651
|
-
}
|
652
|
-
],
|
653
|
-
"internalType": "struct IRisk.RiskInfo",
|
654
|
-
"name": "data",
|
655
|
-
"type": "tuple"
|
656
|
-
}
|
657
|
-
],
|
658
|
-
"name": "setRiskInfo",
|
659
|
-
"outputs": [],
|
660
|
-
"stateMutability": "nonpayable",
|
661
|
-
"type": "function"
|
662
|
-
},
|
663
377
|
{
|
664
378
|
"inputs": [
|
665
379
|
{
|
@@ -682,22 +396,17 @@
|
|
682
396
|
{
|
683
397
|
"inputs": [
|
684
398
|
{
|
685
|
-
"internalType": "
|
686
|
-
"name": "
|
687
|
-
"type": "
|
688
|
-
},
|
689
|
-
{
|
690
|
-
"internalType": "bool",
|
691
|
-
"name": "requirePremiumPayment",
|
692
|
-
"type": "bool"
|
399
|
+
"internalType": "RiskId",
|
400
|
+
"name": "riskId",
|
401
|
+
"type": "bytes8"
|
693
402
|
},
|
694
403
|
{
|
695
|
-
"internalType": "
|
696
|
-
"name": "
|
697
|
-
"type": "
|
404
|
+
"internalType": "bytes",
|
405
|
+
"name": "data",
|
406
|
+
"type": "bytes"
|
698
407
|
}
|
699
408
|
],
|
700
|
-
"name": "
|
409
|
+
"name": "updateRisk",
|
701
410
|
"outputs": [],
|
702
411
|
"stateMutability": "nonpayable",
|
703
412
|
"type": "function"
|
@@ -711,7 +420,7 @@
|
|
711
420
|
},
|
712
421
|
{
|
713
422
|
"internalType": "StateId",
|
714
|
-
"name": "
|
423
|
+
"name": "newState",
|
715
424
|
"type": "uint8"
|
716
425
|
}
|
717
426
|
],
|
@@ -722,23 +431,13 @@
|
|
722
431
|
},
|
723
432
|
{
|
724
433
|
"inputs": [
|
725
|
-
{
|
726
|
-
"internalType": "address",
|
727
|
-
"name": "implementation",
|
728
|
-
"type": "address"
|
729
|
-
},
|
730
|
-
{
|
731
|
-
"internalType": "address",
|
732
|
-
"name": "activatedBy",
|
733
|
-
"type": "address"
|
734
|
-
},
|
735
434
|
{
|
736
435
|
"internalType": "bytes",
|
737
436
|
"name": "upgradeData",
|
738
437
|
"type": "bytes"
|
739
438
|
}
|
740
439
|
],
|
741
|
-
"name": "
|
440
|
+
"name": "upgradeVersionable",
|
742
441
|
"outputs": [],
|
743
442
|
"stateMutability": "nonpayable",
|
744
443
|
"type": "function"
|