@etherisc/gif-next 0.0.2-96853ac-143 → 0.0.2-984cc08-642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +331 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +341 -48
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +691 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +209 -248
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/policy/PolicyModule.sol/PolicyModule.json → components/IPoolComponent.sol/IPoolComponent.json} +143 -122
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +646 -116
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +585 -140
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- 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 +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1313 -820
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +619 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +570 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2179 -895
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1047 -0
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +956 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +460 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +595 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +100 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1094 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +764 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +499 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +536 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1219 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +492 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +798 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +848 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +424 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +487 -31
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +545 -47
- 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 +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1187 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +530 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- 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/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -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 +77 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/Component.sol +140 -40
- package/contracts/components/Distribution.sol +154 -0
- package/contracts/components/IComponent.sol +37 -0
- package/contracts/components/IDistributionComponent.sol +44 -0
- package/contracts/components/IPoolComponent.sol +66 -0
- package/contracts/components/IProductComponent.sol +35 -0
- package/contracts/components/Pool.sol +231 -25
- package/contracts/components/Product.sol +252 -46
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +61 -24
- package/contracts/instance/IInstanceBase.sol +27 -0
- package/contracts/instance/IInstanceService.sol +40 -0
- package/contracts/instance/Instance.sol +240 -53
- package/contracts/instance/InstanceAccessManager.sol +303 -0
- package/contracts/instance/InstanceBase.sol +38 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +362 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +133 -0
- package/contracts/instance/base/IInstanceBase.sol +21 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/module/IAccess.sol +48 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +46 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +115 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +20 -0
- package/contracts/instance/service/IProductService.sol +40 -0
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +142 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +241 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +129 -62
- package/contracts/registry/IRegistry.sol +66 -42
- package/contracts/registry/IRegistryService.sol +57 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +346 -132
- package/contracts/registry/RegistryAccessManager.sol +210 -0
- package/contracts/registry/RegistryService.sol +317 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +342 -0
- package/contracts/registry/TokenRegistry.sol +110 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +25 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +15 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +136 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +90 -0
- package/contracts/shared/Service.sol +60 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +147 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +25 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +44 -20
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +22 -1
- package/contracts/types/NftIdSet.sol +62 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +60 -15
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +90 -0
- package/contracts/types/StateId.sol +18 -4
- package/contracts/types/Timestamp.sol +29 -4
- package/contracts/types/UFixed.sol +138 -23
- package/contracts/types/Version.sol +107 -0
- package/package.json +12 -5
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -255
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -299
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -254
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
- package/contracts/components/IPool.sol +0 -15
- package/contracts/components/IProduct.sol +0 -16
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/access/Access.sol +0 -165
- package/contracts/instance/access/IAccess.sol +0 -63
- package/contracts/instance/component/ComponentModule.sol +0 -274
- package/contracts/instance/component/IComponent.sol +0 -74
- package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
- package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
- package/contracts/instance/policy/IPolicy.sol +0 -50
- package/contracts/instance/policy/PolicyModule.sol +0 -114
- package/contracts/instance/pool/IPoolModule.sol +0 -23
- package/contracts/instance/pool/PoolModule.sol +0 -81
- package/contracts/instance/product/IProductService.sol +0 -36
- package/contracts/instance/product/ProductService.sol +0 -136
- package/contracts/instance/treasury/ITreasury.sol +0 -91
- package/contracts/instance/treasury/TokenHandler.sol +0 -24
- package/contracts/instance/treasury/TreasuryModule.sol +0 -168
- package/contracts/registry/IChainNft.sol +0 -21
@@ -3,6 +3,28 @@
|
|
3
3
|
"contractName": "Pool",
|
4
4
|
"sourceName": "contracts/components/Pool.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "target",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AddressEmptyCode",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "account",
|
22
|
+
"type": "address"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"name": "AddressInsufficientBalance",
|
26
|
+
"type": "error"
|
27
|
+
},
|
6
28
|
{
|
7
29
|
"inputs": [
|
8
30
|
{
|
@@ -10,33 +32,266 @@
|
|
10
32
|
"name": "registry",
|
11
33
|
"type": "address"
|
12
34
|
},
|
35
|
+
{
|
36
|
+
"internalType": "NftId",
|
37
|
+
"name": "nftId",
|
38
|
+
"type": "uint96"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "ErrorAlreadyLinked",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
13
46
|
{
|
14
47
|
"internalType": "address",
|
15
|
-
"name": "
|
48
|
+
"name": "caller",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorComponentNotProductService",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [],
|
57
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
58
|
+
"type": "error"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "caller",
|
65
|
+
"type": "address"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"internalType": "uint64",
|
69
|
+
"name": "requiredRoleIdNum",
|
70
|
+
"type": "uint64"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorComponentUnauthorized",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [
|
78
|
+
{
|
79
|
+
"internalType": "address",
|
80
|
+
"name": "newWallet",
|
81
|
+
"type": "address"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [
|
89
|
+
{
|
90
|
+
"internalType": "address",
|
91
|
+
"name": "oldWallet",
|
92
|
+
"type": "address"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"internalType": "address",
|
96
|
+
"name": "newWallet",
|
16
97
|
"type": "address"
|
17
98
|
},
|
99
|
+
{
|
100
|
+
"internalType": "uint256",
|
101
|
+
"name": "allowance",
|
102
|
+
"type": "uint256"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "balance",
|
107
|
+
"type": "uint256"
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
111
|
+
"type": "error"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "contractAddress",
|
118
|
+
"type": "address"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorContractNotRegistered",
|
122
|
+
"type": "error"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"internalType": "address",
|
128
|
+
"name": "account",
|
129
|
+
"type": "address"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"name": "ErrorNotOwner",
|
133
|
+
"type": "error"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "address",
|
139
|
+
"name": "registryAddress",
|
140
|
+
"type": "address"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"name": "ErrorNotRegistry",
|
144
|
+
"type": "error"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"inputs": [
|
148
|
+
{
|
149
|
+
"internalType": "address",
|
150
|
+
"name": "registryAddress",
|
151
|
+
"type": "address"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "ErrorRegisterableNotRegistry",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [],
|
159
|
+
"name": "ErrorRegistryAddressZero",
|
160
|
+
"type": "error"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"inputs": [
|
164
|
+
{
|
165
|
+
"internalType": "address",
|
166
|
+
"name": "registry",
|
167
|
+
"type": "address"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
171
|
+
"type": "error"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"inputs": [],
|
175
|
+
"name": "ErrorRegistryNotInitialized",
|
176
|
+
"type": "error"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"inputs": [],
|
180
|
+
"name": "FailedInnerCall",
|
181
|
+
"type": "error"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [],
|
185
|
+
"name": "InvalidInitialization",
|
186
|
+
"type": "error"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"inputs": [],
|
190
|
+
"name": "NotInitializing",
|
191
|
+
"type": "error"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"inputs": [
|
18
195
|
{
|
19
196
|
"internalType": "address",
|
20
197
|
"name": "token",
|
21
198
|
"type": "address"
|
199
|
+
}
|
200
|
+
],
|
201
|
+
"name": "SafeERC20FailedOperation",
|
202
|
+
"type": "error"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"anonymous": false,
|
206
|
+
"inputs": [
|
207
|
+
{
|
208
|
+
"indexed": false,
|
209
|
+
"internalType": "uint64",
|
210
|
+
"name": "version",
|
211
|
+
"type": "uint64"
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"name": "Initialized",
|
215
|
+
"type": "event"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"anonymous": false,
|
219
|
+
"inputs": [
|
220
|
+
{
|
221
|
+
"indexed": false,
|
222
|
+
"internalType": "address",
|
223
|
+
"name": "newWallet",
|
224
|
+
"type": "address"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"name": "LogComponentWalletAddressChanged",
|
228
|
+
"type": "event"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"anonymous": false,
|
232
|
+
"inputs": [
|
233
|
+
{
|
234
|
+
"indexed": false,
|
235
|
+
"internalType": "address",
|
236
|
+
"name": "from",
|
237
|
+
"type": "address"
|
22
238
|
},
|
23
239
|
{
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
240
|
+
"indexed": false,
|
241
|
+
"internalType": "address",
|
242
|
+
"name": "to",
|
243
|
+
"type": "address"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"indexed": false,
|
247
|
+
"internalType": "uint256",
|
248
|
+
"name": "amount",
|
249
|
+
"type": "uint256"
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"name": "LogComponentWalletTokensTransferred",
|
253
|
+
"type": "event"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"anonymous": false,
|
257
|
+
"inputs": [
|
258
|
+
{
|
259
|
+
"indexed": false,
|
260
|
+
"internalType": "NftId",
|
261
|
+
"name": "policyNftId",
|
262
|
+
"type": "uint96"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"indexed": false,
|
266
|
+
"internalType": "uint256",
|
267
|
+
"name": "collateralizationAmount",
|
268
|
+
"type": "uint256"
|
39
269
|
},
|
270
|
+
{
|
271
|
+
"indexed": false,
|
272
|
+
"internalType": "address",
|
273
|
+
"name": "pool",
|
274
|
+
"type": "address"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"name": "LogUnderwrittenByPool",
|
278
|
+
"type": "event"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"inputs": [],
|
282
|
+
"name": "REGISTERABLE_LOCATION_V1",
|
283
|
+
"outputs": [
|
284
|
+
{
|
285
|
+
"internalType": "bytes32",
|
286
|
+
"name": "",
|
287
|
+
"type": "bytes32"
|
288
|
+
}
|
289
|
+
],
|
290
|
+
"stateMutability": "view",
|
291
|
+
"type": "function"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"inputs": [
|
40
295
|
{
|
41
296
|
"components": [
|
42
297
|
{
|
@@ -51,46 +306,44 @@
|
|
51
306
|
}
|
52
307
|
],
|
53
308
|
"internalType": "struct Fee",
|
54
|
-
"name": "
|
309
|
+
"name": "fee",
|
55
310
|
"type": "tuple"
|
56
|
-
}
|
57
|
-
],
|
58
|
-
"stateMutability": "nonpayable",
|
59
|
-
"type": "constructor"
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"anonymous": false,
|
63
|
-
"inputs": [
|
311
|
+
},
|
64
312
|
{
|
65
|
-
"indexed": false,
|
66
313
|
"internalType": "uint256",
|
67
|
-
"name": "
|
314
|
+
"name": "initialAmount",
|
68
315
|
"type": "uint256"
|
69
316
|
},
|
70
317
|
{
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"type": "address"
|
318
|
+
"internalType": "uint256",
|
319
|
+
"name": "lifetime",
|
320
|
+
"type": "uint256"
|
75
321
|
},
|
76
322
|
{
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"type": "string"
|
323
|
+
"internalType": "bytes",
|
324
|
+
"name": "filter",
|
325
|
+
"type": "bytes"
|
81
326
|
}
|
82
327
|
],
|
83
|
-
"name": "
|
84
|
-
"
|
328
|
+
"name": "createBundle",
|
329
|
+
"outputs": [
|
330
|
+
{
|
331
|
+
"internalType": "NftId",
|
332
|
+
"name": "bundleNftId",
|
333
|
+
"type": "uint96"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"stateMutability": "nonpayable",
|
337
|
+
"type": "function"
|
85
338
|
},
|
86
339
|
{
|
87
340
|
"inputs": [],
|
88
|
-
"name": "
|
341
|
+
"name": "getCollateralizationLevel",
|
89
342
|
"outputs": [
|
90
343
|
{
|
91
|
-
"internalType": "
|
92
|
-
"name": "
|
93
|
-
"type": "
|
344
|
+
"internalType": "UFixed",
|
345
|
+
"name": "collateralizationLevel",
|
346
|
+
"type": "uint256"
|
94
347
|
}
|
95
348
|
],
|
96
349
|
"stateMutability": "view",
|
@@ -98,12 +351,54 @@
|
|
98
351
|
},
|
99
352
|
{
|
100
353
|
"inputs": [],
|
101
|
-
"name": "
|
354
|
+
"name": "getInitialInfo",
|
102
355
|
"outputs": [
|
103
356
|
{
|
104
|
-
"
|
105
|
-
|
106
|
-
|
357
|
+
"components": [
|
358
|
+
{
|
359
|
+
"internalType": "NftId",
|
360
|
+
"name": "nftId",
|
361
|
+
"type": "uint96"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"internalType": "NftId",
|
365
|
+
"name": "parentNftId",
|
366
|
+
"type": "uint96"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"internalType": "ObjectType",
|
370
|
+
"name": "objectType",
|
371
|
+
"type": "uint8"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"internalType": "bool",
|
375
|
+
"name": "isInterceptor",
|
376
|
+
"type": "bool"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"internalType": "address",
|
380
|
+
"name": "objectAddress",
|
381
|
+
"type": "address"
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"internalType": "address",
|
385
|
+
"name": "initialOwner",
|
386
|
+
"type": "address"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"internalType": "bytes",
|
390
|
+
"name": "data",
|
391
|
+
"type": "bytes"
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
395
|
+
"name": "",
|
396
|
+
"type": "tuple"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"internalType": "bytes",
|
400
|
+
"name": "",
|
401
|
+
"type": "bytes"
|
107
402
|
}
|
108
403
|
],
|
109
404
|
"stateMutability": "view",
|
@@ -122,13 +417,26 @@
|
|
122
417
|
"stateMutability": "view",
|
123
418
|
"type": "function"
|
124
419
|
},
|
420
|
+
{
|
421
|
+
"inputs": [],
|
422
|
+
"name": "getName",
|
423
|
+
"outputs": [
|
424
|
+
{
|
425
|
+
"internalType": "string",
|
426
|
+
"name": "name",
|
427
|
+
"type": "string"
|
428
|
+
}
|
429
|
+
],
|
430
|
+
"stateMutability": "pure",
|
431
|
+
"type": "function"
|
432
|
+
},
|
125
433
|
{
|
126
434
|
"inputs": [],
|
127
435
|
"name": "getNftId",
|
128
436
|
"outputs": [
|
129
437
|
{
|
130
438
|
"internalType": "NftId",
|
131
|
-
"name": "
|
439
|
+
"name": "",
|
132
440
|
"type": "uint96"
|
133
441
|
}
|
134
442
|
],
|
@@ -141,7 +449,7 @@
|
|
141
449
|
"outputs": [
|
142
450
|
{
|
143
451
|
"internalType": "address",
|
144
|
-
"name": "
|
452
|
+
"name": "",
|
145
453
|
"type": "address"
|
146
454
|
}
|
147
455
|
],
|
@@ -150,11 +458,11 @@
|
|
150
458
|
},
|
151
459
|
{
|
152
460
|
"inputs": [],
|
153
|
-
"name": "
|
461
|
+
"name": "getProductNftId",
|
154
462
|
"outputs": [
|
155
463
|
{
|
156
464
|
"internalType": "NftId",
|
157
|
-
"name": "",
|
465
|
+
"name": "productNftId",
|
158
466
|
"type": "uint96"
|
159
467
|
}
|
160
468
|
],
|
@@ -163,23 +471,107 @@
|
|
163
471
|
},
|
164
472
|
{
|
165
473
|
"inputs": [],
|
166
|
-
"name": "
|
474
|
+
"name": "getRegistry",
|
475
|
+
"outputs": [
|
476
|
+
{
|
477
|
+
"internalType": "contract IRegistry",
|
478
|
+
"name": "",
|
479
|
+
"type": "address"
|
480
|
+
}
|
481
|
+
],
|
482
|
+
"stateMutability": "view",
|
483
|
+
"type": "function"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"inputs": [],
|
487
|
+
"name": "getSetupInfo",
|
167
488
|
"outputs": [
|
168
489
|
{
|
169
490
|
"components": [
|
491
|
+
{
|
492
|
+
"internalType": "NftId",
|
493
|
+
"name": "productNftId",
|
494
|
+
"type": "uint96"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"internalType": "contract TokenHandler",
|
498
|
+
"name": "tokenHandler",
|
499
|
+
"type": "address"
|
500
|
+
},
|
170
501
|
{
|
171
502
|
"internalType": "UFixed",
|
172
|
-
"name": "
|
503
|
+
"name": "collateralizationLevel",
|
173
504
|
"type": "uint256"
|
174
505
|
},
|
175
506
|
{
|
176
|
-
"
|
177
|
-
|
178
|
-
|
507
|
+
"components": [
|
508
|
+
{
|
509
|
+
"internalType": "UFixed",
|
510
|
+
"name": "fractionalFee",
|
511
|
+
"type": "uint256"
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"internalType": "uint256",
|
515
|
+
"name": "fixedFee",
|
516
|
+
"type": "uint256"
|
517
|
+
}
|
518
|
+
],
|
519
|
+
"internalType": "struct Fee",
|
520
|
+
"name": "poolFee",
|
521
|
+
"type": "tuple"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"components": [
|
525
|
+
{
|
526
|
+
"internalType": "UFixed",
|
527
|
+
"name": "fractionalFee",
|
528
|
+
"type": "uint256"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"internalType": "uint256",
|
532
|
+
"name": "fixedFee",
|
533
|
+
"type": "uint256"
|
534
|
+
}
|
535
|
+
],
|
536
|
+
"internalType": "struct Fee",
|
537
|
+
"name": "stakingFee",
|
538
|
+
"type": "tuple"
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"components": [
|
542
|
+
{
|
543
|
+
"internalType": "UFixed",
|
544
|
+
"name": "fractionalFee",
|
545
|
+
"type": "uint256"
|
546
|
+
},
|
547
|
+
{
|
548
|
+
"internalType": "uint256",
|
549
|
+
"name": "fixedFee",
|
550
|
+
"type": "uint256"
|
551
|
+
}
|
552
|
+
],
|
553
|
+
"internalType": "struct Fee",
|
554
|
+
"name": "performanceFee",
|
555
|
+
"type": "tuple"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"internalType": "bool",
|
559
|
+
"name": "isIntercepting",
|
560
|
+
"type": "bool"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"internalType": "bool",
|
564
|
+
"name": "isConfirmingApplication",
|
565
|
+
"type": "bool"
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"internalType": "address",
|
569
|
+
"name": "wallet",
|
570
|
+
"type": "address"
|
179
571
|
}
|
180
572
|
],
|
181
|
-
"internalType": "struct
|
182
|
-
"name": "
|
573
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
574
|
+
"name": "setupInfo",
|
183
575
|
"type": "tuple"
|
184
576
|
}
|
185
577
|
],
|
@@ -188,11 +580,24 @@
|
|
188
580
|
},
|
189
581
|
{
|
190
582
|
"inputs": [],
|
191
|
-
"name": "
|
583
|
+
"name": "getToken",
|
192
584
|
"outputs": [
|
193
585
|
{
|
194
|
-
"internalType": "contract
|
195
|
-
"name": "
|
586
|
+
"internalType": "contract IERC20Metadata",
|
587
|
+
"name": "token",
|
588
|
+
"type": "address"
|
589
|
+
}
|
590
|
+
],
|
591
|
+
"stateMutability": "view",
|
592
|
+
"type": "function"
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"inputs": [],
|
596
|
+
"name": "getWallet",
|
597
|
+
"outputs": [
|
598
|
+
{
|
599
|
+
"internalType": "address",
|
600
|
+
"name": "walletAddress",
|
196
601
|
"type": "address"
|
197
602
|
}
|
198
603
|
],
|
@@ -201,8 +606,75 @@
|
|
201
606
|
},
|
202
607
|
{
|
203
608
|
"inputs": [],
|
204
|
-
"name": "
|
609
|
+
"name": "isConfirmingApplication",
|
610
|
+
"outputs": [
|
611
|
+
{
|
612
|
+
"internalType": "bool",
|
613
|
+
"name": "isConfirmingApplication",
|
614
|
+
"type": "bool"
|
615
|
+
}
|
616
|
+
],
|
617
|
+
"stateMutability": "view",
|
618
|
+
"type": "function"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"inputs": [],
|
622
|
+
"name": "linkToRegisteredNftId",
|
623
|
+
"outputs": [],
|
624
|
+
"stateMutability": "nonpayable",
|
625
|
+
"type": "function"
|
626
|
+
},
|
627
|
+
{
|
628
|
+
"inputs": [],
|
629
|
+
"name": "lock",
|
630
|
+
"outputs": [],
|
631
|
+
"stateMutability": "nonpayable",
|
632
|
+
"type": "function"
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"inputs": [
|
636
|
+
{
|
637
|
+
"internalType": "NftId",
|
638
|
+
"name": "bundleNftId",
|
639
|
+
"type": "uint96"
|
640
|
+
}
|
641
|
+
],
|
642
|
+
"name": "lockBundle",
|
643
|
+
"outputs": [],
|
644
|
+
"stateMutability": "nonpayable",
|
645
|
+
"type": "function"
|
646
|
+
},
|
647
|
+
{
|
648
|
+
"inputs": [
|
649
|
+
{
|
650
|
+
"internalType": "bytes",
|
651
|
+
"name": "",
|
652
|
+
"type": "bytes"
|
653
|
+
},
|
654
|
+
{
|
655
|
+
"internalType": "bytes",
|
656
|
+
"name": "",
|
657
|
+
"type": "bytes"
|
658
|
+
}
|
659
|
+
],
|
660
|
+
"name": "policyMatchesBundle",
|
205
661
|
"outputs": [
|
662
|
+
{
|
663
|
+
"internalType": "bool",
|
664
|
+
"name": "isMatching",
|
665
|
+
"type": "bool"
|
666
|
+
}
|
667
|
+
],
|
668
|
+
"stateMutability": "view",
|
669
|
+
"type": "function"
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"inputs": [
|
673
|
+
{
|
674
|
+
"internalType": "NftId",
|
675
|
+
"name": "bundleNftId",
|
676
|
+
"type": "uint96"
|
677
|
+
},
|
206
678
|
{
|
207
679
|
"components": [
|
208
680
|
{
|
@@ -217,55 +689,109 @@
|
|
217
689
|
}
|
218
690
|
],
|
219
691
|
"internalType": "struct Fee",
|
220
|
-
"name": "
|
692
|
+
"name": "fee",
|
221
693
|
"type": "tuple"
|
222
694
|
}
|
223
695
|
],
|
224
|
-
"
|
696
|
+
"name": "setBundleFee",
|
697
|
+
"outputs": [],
|
698
|
+
"stateMutability": "nonpayable",
|
225
699
|
"type": "function"
|
226
700
|
},
|
227
701
|
{
|
228
|
-
"inputs": [
|
229
|
-
"name": "getToken",
|
230
|
-
"outputs": [
|
702
|
+
"inputs": [
|
231
703
|
{
|
232
|
-
"
|
233
|
-
|
234
|
-
|
704
|
+
"components": [
|
705
|
+
{
|
706
|
+
"internalType": "UFixed",
|
707
|
+
"name": "fractionalFee",
|
708
|
+
"type": "uint256"
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"internalType": "uint256",
|
712
|
+
"name": "fixedFee",
|
713
|
+
"type": "uint256"
|
714
|
+
}
|
715
|
+
],
|
716
|
+
"internalType": "struct Fee",
|
717
|
+
"name": "poolFee",
|
718
|
+
"type": "tuple"
|
719
|
+
},
|
720
|
+
{
|
721
|
+
"components": [
|
722
|
+
{
|
723
|
+
"internalType": "UFixed",
|
724
|
+
"name": "fractionalFee",
|
725
|
+
"type": "uint256"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "uint256",
|
729
|
+
"name": "fixedFee",
|
730
|
+
"type": "uint256"
|
731
|
+
}
|
732
|
+
],
|
733
|
+
"internalType": "struct Fee",
|
734
|
+
"name": "stakingFee",
|
735
|
+
"type": "tuple"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"components": [
|
739
|
+
{
|
740
|
+
"internalType": "UFixed",
|
741
|
+
"name": "fractionalFee",
|
742
|
+
"type": "uint256"
|
743
|
+
},
|
744
|
+
{
|
745
|
+
"internalType": "uint256",
|
746
|
+
"name": "fixedFee",
|
747
|
+
"type": "uint256"
|
748
|
+
}
|
749
|
+
],
|
750
|
+
"internalType": "struct Fee",
|
751
|
+
"name": "performanceFee",
|
752
|
+
"type": "tuple"
|
235
753
|
}
|
236
754
|
],
|
237
|
-
"
|
755
|
+
"name": "setFees",
|
756
|
+
"outputs": [],
|
757
|
+
"stateMutability": "nonpayable",
|
238
758
|
"type": "function"
|
239
759
|
},
|
240
760
|
{
|
241
|
-
"inputs": [
|
242
|
-
"name": "getType",
|
243
|
-
"outputs": [
|
761
|
+
"inputs": [
|
244
762
|
{
|
245
|
-
"internalType": "
|
246
|
-
"name": "",
|
247
|
-
"type": "
|
763
|
+
"internalType": "NftId",
|
764
|
+
"name": "productNftId",
|
765
|
+
"type": "uint96"
|
248
766
|
}
|
249
767
|
],
|
250
|
-
"
|
768
|
+
"name": "setProductNftId",
|
769
|
+
"outputs": [],
|
770
|
+
"stateMutability": "nonpayable",
|
251
771
|
"type": "function"
|
252
772
|
},
|
253
773
|
{
|
254
|
-
"inputs": [
|
255
|
-
"name": "getWallet",
|
256
|
-
"outputs": [
|
774
|
+
"inputs": [
|
257
775
|
{
|
258
776
|
"internalType": "address",
|
259
|
-
"name": "
|
777
|
+
"name": "newWallet",
|
260
778
|
"type": "address"
|
261
779
|
}
|
262
780
|
],
|
263
|
-
"
|
781
|
+
"name": "setWallet",
|
782
|
+
"outputs": [],
|
783
|
+
"stateMutability": "nonpayable",
|
264
784
|
"type": "function"
|
265
785
|
},
|
266
786
|
{
|
267
|
-
"inputs": [
|
268
|
-
|
787
|
+
"inputs": [
|
788
|
+
{
|
789
|
+
"internalType": "bytes4",
|
790
|
+
"name": "interfaceId",
|
791
|
+
"type": "bytes4"
|
792
|
+
}
|
793
|
+
],
|
794
|
+
"name": "supportsInterface",
|
269
795
|
"outputs": [
|
270
796
|
{
|
271
797
|
"internalType": "bool",
|
@@ -273,56 +799,60 @@
|
|
273
799
|
"type": "bool"
|
274
800
|
}
|
275
801
|
],
|
276
|
-
"stateMutability": "
|
802
|
+
"stateMutability": "view",
|
277
803
|
"type": "function"
|
278
804
|
},
|
279
805
|
{
|
280
|
-
"inputs": [
|
281
|
-
"name": "isRegistered",
|
282
|
-
"outputs": [
|
806
|
+
"inputs": [
|
283
807
|
{
|
284
|
-
"internalType": "
|
285
|
-
"name": "",
|
286
|
-
"type": "
|
808
|
+
"internalType": "NftId",
|
809
|
+
"name": "policyNftId",
|
810
|
+
"type": "uint96"
|
811
|
+
},
|
812
|
+
{
|
813
|
+
"internalType": "bytes",
|
814
|
+
"name": "policyData",
|
815
|
+
"type": "bytes"
|
816
|
+
},
|
817
|
+
{
|
818
|
+
"internalType": "bytes",
|
819
|
+
"name": "bundleFilter",
|
820
|
+
"type": "bytes"
|
821
|
+
},
|
822
|
+
{
|
823
|
+
"internalType": "uint256",
|
824
|
+
"name": "collateralizationAmount",
|
825
|
+
"type": "uint256"
|
287
826
|
}
|
288
827
|
],
|
289
|
-
"
|
828
|
+
"name": "underwrite",
|
829
|
+
"outputs": [],
|
830
|
+
"stateMutability": "nonpayable",
|
290
831
|
"type": "function"
|
291
832
|
},
|
292
833
|
{
|
293
834
|
"inputs": [],
|
294
|
-
"name": "
|
295
|
-
"outputs": [
|
835
|
+
"name": "unlock",
|
836
|
+
"outputs": [],
|
837
|
+
"stateMutability": "nonpayable",
|
838
|
+
"type": "function"
|
839
|
+
},
|
840
|
+
{
|
841
|
+
"inputs": [
|
296
842
|
{
|
297
843
|
"internalType": "NftId",
|
298
|
-
"name": "
|
844
|
+
"name": "bundleNftId",
|
299
845
|
"type": "uint96"
|
300
846
|
}
|
301
847
|
],
|
848
|
+
"name": "unlockBundle",
|
849
|
+
"outputs": [],
|
302
850
|
"stateMutability": "nonpayable",
|
303
851
|
"type": "function"
|
304
852
|
}
|
305
853
|
],
|
306
|
-
"bytecode": "
|
307
|
-
"deployedBytecode": "
|
308
|
-
"linkReferences": {
|
309
|
-
|
310
|
-
"NftIdLib": [
|
311
|
-
{
|
312
|
-
"length": 20,
|
313
|
-
"start": 1741
|
314
|
-
}
|
315
|
-
]
|
316
|
-
}
|
317
|
-
},
|
318
|
-
"deployedLinkReferences": {
|
319
|
-
"contracts/types/NftId.sol": {
|
320
|
-
"NftIdLib": [
|
321
|
-
{
|
322
|
-
"length": 20,
|
323
|
-
"start": 1341
|
324
|
-
}
|
325
|
-
]
|
326
|
-
}
|
327
|
-
}
|
854
|
+
"bytecode": "0x",
|
855
|
+
"deployedBytecode": "0x",
|
856
|
+
"linkReferences": {},
|
857
|
+
"deployedLinkReferences": {}
|
328
858
|
}
|