@etherisc/gif-next 0.0.2-8d47fa1-080 → 0.0.2-8dd2f76-992
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 +178 -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 +1048 -164
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +658 -32
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +725 -135
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +508 -51
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1047 -273
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +809 -144
- 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/Cloneable.sol/Cloneable.json +190 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1373 -1178
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +633 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2059 -1349
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1330 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1289 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1179 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +741 -0
- 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/ComponentService.sol/ComponentService.json +607 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
- 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 +67 -245
- 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 +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IComponents.sol/IComponents.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.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 +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1528 -256
- 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} +272 -186
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +850 -129
- 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 +499 -139
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +119 -343
- 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 +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +753 -165
- 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 +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +375 -499
- 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 +60 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +250 -65
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +378 -180
- 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 +229 -206
- 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 +507 -210
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
- 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 +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- 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 +4 -0
- package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +71 -50
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +69 -57
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +72 -8
- 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 +4 -0
- package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +146 -155
- 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 +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
- 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 +355 -83
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +204 -12
- 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 +4 -0
- package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +231 -191
- 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 +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 +4 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -12
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +287 -163
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- 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 -174
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- 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 +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -11
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- 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 +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/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 +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
- 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 +134 -8
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
- 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 +204 -79
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +43 -19
- package/contracts/components/IPoolComponent.sol +88 -40
- package/contracts/components/IProductComponent.sol +11 -10
- package/contracts/components/Pool.sol +222 -165
- package/contracts/components/Product.sol +137 -143
- 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 +86 -42
- package/contracts/instance/IInstanceService.sol +72 -0
- package/contracts/instance/Instance.sol +310 -68
- package/contracts/instance/InstanceAccessManager.sol +527 -0
- package/contracts/instance/InstanceReader.sol +291 -0
- package/contracts/instance/InstanceService.sol +495 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +121 -0
- package/contracts/instance/base/IKeyValueStore.sol +13 -14
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +60 -41
- package/contracts/instance/base/Lifecycle.sol +12 -3
- package/contracts/instance/module/IAccess.sol +54 -0
- package/contracts/instance/module/IBundle.sol +23 -0
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +41 -0
- package/contracts/instance/module/IPolicy.sol +72 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +33 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- 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 +403 -22
- 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 +88 -1
- package/contracts/instance/service/IPolicyService.sol +72 -0
- package/contracts/instance/service/IPoolService.sol +80 -18
- package/contracts/instance/service/IProductService.sol +9 -76
- package/contracts/instance/service/PolicyService.sol +362 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +248 -94
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +135 -434
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +49 -26
- package/contracts/registry/IRegistry.sol +57 -31
- package/contracts/registry/IRegistryService.sol +55 -16
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +286 -324
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +159 -260
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +15 -9
- package/contracts/shared/INftOwnable.sol +23 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +5 -12
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +120 -0
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +112 -58
- package/contracts/shared/Registerable.sol +23 -66
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +72 -0
- package/contracts/shared/TokenHandler.sol +33 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
- package/contracts/shared/Versionable.sol +5 -93
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +6 -7
- 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 +55 -0
- package/contracts/types/Fee.sol +15 -7
- package/contracts/types/Key32.sol +8 -3
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +40 -14
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +89 -0
- package/contracts/types/RoleId.sol +68 -9
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +6 -1
- package/contracts/types/Timestamp.sol +17 -13
- package/contracts/types/UFixed.sol +129 -12
- package/contracts/types/Version.sol +5 -1
- package/package.json +6 -5
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -213
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -177
- 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/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -393
- 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/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -380
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -690
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.dbg.json +0 -4
- package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.json +0 -344
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -445
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -602
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -632
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -79
- package/contracts/components/IBaseComponent.sol +0 -19
- 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/IInstanceLinked.sol +0 -8
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -89
- package/contracts/instance/base/ModuleBase.sol +0 -57
- package/contracts/instance/base/ServiceBase.sol +0 -43
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -134
- package/contracts/instance/module/bundle/IBundle.sol +0 -53
- package/contracts/instance/module/component/ComponentModule.sol +0 -71
- package/contracts/instance/module/component/IComponent.sol +0 -28
- package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
- package/contracts/instance/module/distribution/IDistribution.sol +0 -10
- package/contracts/instance/module/policy/IPolicy.sol +0 -63
- package/contracts/instance/module/policy/PolicyModule.sol +0 -91
- package/contracts/instance/module/pool/IPoolModule.sol +0 -41
- package/contracts/instance/module/pool/PoolModule.sol +0 -95
- package/contracts/instance/module/risk/IRisk.sol +0 -26
- package/contracts/instance/module/risk/RiskModule.sol +0 -62
- package/contracts/instance/module/treasury/ITreasury.sol +0 -84
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
- package/contracts/instance/service/ComponentOwnerService.sol +0 -272
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/registry/IChainNft.sol +0 -22
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/registry/RegistryInstaller.sol +0 -100
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestDistribution.sol +0 -22
- package/contracts/test/TestPool.sol +0 -27
- package/contracts/test/TestProduct.sol +0 -74
- package/contracts/types/ReferralId.sol +0 -48
@@ -4,349 +4,391 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"type": "bytes8"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
|
-
"internalType": "string",
|
18
|
-
"name": "roleName",
|
19
|
-
"type": "string"
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
20
12
|
}
|
21
13
|
],
|
22
|
-
"name": "
|
23
|
-
"type": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
24
16
|
},
|
25
17
|
{
|
26
|
-
"anonymous": false,
|
27
18
|
"inputs": [
|
28
19
|
{
|
29
|
-
"indexed": false,
|
30
|
-
"internalType": "RoleId",
|
31
|
-
"name": "role",
|
32
|
-
"type": "bytes8"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"indexed": false,
|
36
20
|
"internalType": "address",
|
37
|
-
"name": "
|
21
|
+
"name": "caller",
|
38
22
|
"type": "address"
|
39
23
|
},
|
40
24
|
{
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"type": "bool"
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
45
28
|
}
|
46
29
|
],
|
47
|
-
"name": "
|
48
|
-
"type": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
49
32
|
},
|
50
33
|
{
|
51
|
-
"anonymous": false,
|
52
34
|
"inputs": [
|
53
35
|
{
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"type": "bytes8"
|
58
|
-
},
|
59
|
-
{
|
60
|
-
"indexed": false,
|
61
|
-
"internalType": "bool",
|
62
|
-
"name": "active",
|
63
|
-
"type": "bool"
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
64
39
|
}
|
65
40
|
],
|
66
|
-
"name": "
|
67
|
-
"type": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
68
43
|
},
|
69
44
|
{
|
70
|
-
"anonymous": false,
|
71
45
|
"inputs": [
|
72
46
|
{
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"type": "uint24"
|
47
|
+
"internalType": "ObjectType",
|
48
|
+
"name": "objectType",
|
49
|
+
"type": "uint8"
|
77
50
|
},
|
78
51
|
{
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"type": "address"
|
52
|
+
"internalType": "StateId",
|
53
|
+
"name": "fromStateId",
|
54
|
+
"type": "uint8"
|
83
55
|
},
|
84
56
|
{
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"type": "address"
|
57
|
+
"internalType": "StateId",
|
58
|
+
"name": "toStateId",
|
59
|
+
"type": "uint8"
|
89
60
|
}
|
90
61
|
],
|
91
|
-
"name": "
|
92
|
-
"type": "
|
62
|
+
"name": "ErrorInvalidStateTransition",
|
63
|
+
"type": "error"
|
93
64
|
},
|
94
65
|
{
|
95
66
|
"inputs": [
|
96
67
|
{
|
97
68
|
"internalType": "NftId",
|
98
|
-
"name": "
|
99
|
-
"type": "uint96"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "NftId",
|
103
|
-
"name": "poolNftId",
|
69
|
+
"name": "nftId",
|
104
70
|
"type": "uint96"
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"internalType": "uint256",
|
108
|
-
"name": "amount",
|
109
|
-
"type": "uint256"
|
110
71
|
}
|
111
72
|
],
|
112
|
-
"name": "
|
113
|
-
"
|
114
|
-
"stateMutability": "nonpayable",
|
115
|
-
"type": "function"
|
73
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
74
|
+
"type": "error"
|
116
75
|
},
|
117
76
|
{
|
118
77
|
"inputs": [
|
119
78
|
{
|
120
|
-
"internalType": "
|
121
|
-
"name": "
|
122
|
-
"type": "
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"components": [
|
126
|
-
{
|
127
|
-
"internalType": "UFixed",
|
128
|
-
"name": "fractionalFee",
|
129
|
-
"type": "uint256"
|
130
|
-
},
|
131
|
-
{
|
132
|
-
"internalType": "uint256",
|
133
|
-
"name": "fixedFee",
|
134
|
-
"type": "uint256"
|
135
|
-
}
|
136
|
-
],
|
137
|
-
"internalType": "struct Fee",
|
138
|
-
"name": "fee",
|
139
|
-
"type": "tuple"
|
79
|
+
"internalType": "address",
|
80
|
+
"name": "contractAddress",
|
81
|
+
"type": "address"
|
140
82
|
}
|
141
83
|
],
|
142
|
-
"name": "
|
143
|
-
"
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
84
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [],
|
89
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
149
94
|
{
|
150
|
-
"internalType": "
|
151
|
-
"name": "
|
152
|
-
"type": "
|
95
|
+
"internalType": "address",
|
96
|
+
"name": "account",
|
97
|
+
"type": "address"
|
153
98
|
}
|
154
99
|
],
|
155
|
-
"
|
156
|
-
"type": "
|
100
|
+
"name": "ErrorNftOwnableNotOwner",
|
101
|
+
"type": "error"
|
157
102
|
},
|
158
103
|
{
|
159
104
|
"inputs": [
|
160
105
|
{
|
161
106
|
"internalType": "NftId",
|
162
|
-
"name": "
|
107
|
+
"name": "nftId",
|
163
108
|
"type": "uint96"
|
164
109
|
},
|
165
110
|
{
|
166
|
-
"internalType": "
|
167
|
-
"name": "
|
168
|
-
"type": "
|
169
|
-
}
|
111
|
+
"internalType": "ObjectType",
|
112
|
+
"name": "objectType",
|
113
|
+
"type": "uint8"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"name": "ErrorNoLifecycle",
|
117
|
+
"type": "error"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
170
121
|
{
|
171
|
-
"internalType": "
|
172
|
-
"name": "
|
173
|
-
"type": "
|
122
|
+
"internalType": "address",
|
123
|
+
"name": "registryAddress",
|
124
|
+
"type": "address"
|
174
125
|
}
|
175
126
|
],
|
176
|
-
"name": "
|
177
|
-
"
|
178
|
-
"stateMutability": "nonpayable",
|
179
|
-
"type": "function"
|
127
|
+
"name": "ErrorNotRegistry",
|
128
|
+
"type": "error"
|
180
129
|
},
|
181
130
|
{
|
131
|
+
"anonymous": false,
|
182
132
|
"inputs": [
|
183
133
|
{
|
184
|
-
"
|
185
|
-
"
|
186
|
-
"
|
187
|
-
|
134
|
+
"indexed": false,
|
135
|
+
"internalType": "address",
|
136
|
+
"name": "authority",
|
137
|
+
"type": "address"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "AuthorityUpdated",
|
141
|
+
"type": "event"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"anonymous": false,
|
145
|
+
"inputs": [
|
188
146
|
{
|
189
|
-
"
|
190
|
-
"
|
191
|
-
"
|
147
|
+
"indexed": false,
|
148
|
+
"internalType": "ObjectType",
|
149
|
+
"name": "objectType",
|
150
|
+
"type": "uint8"
|
192
151
|
},
|
193
152
|
{
|
194
|
-
"
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
"type": "uint256"
|
199
|
-
},
|
200
|
-
{
|
201
|
-
"internalType": "uint256",
|
202
|
-
"name": "fixedFee",
|
203
|
-
"type": "uint256"
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"internalType": "struct Fee",
|
207
|
-
"name": "fee",
|
208
|
-
"type": "tuple"
|
153
|
+
"indexed": false,
|
154
|
+
"internalType": "KeyId",
|
155
|
+
"name": "keyId",
|
156
|
+
"type": "bytes31"
|
209
157
|
},
|
210
158
|
{
|
211
|
-
"
|
212
|
-
"
|
213
|
-
"
|
159
|
+
"indexed": false,
|
160
|
+
"internalType": "StateId",
|
161
|
+
"name": "state",
|
162
|
+
"type": "uint8"
|
214
163
|
},
|
215
164
|
{
|
216
|
-
"
|
217
|
-
"
|
218
|
-
"
|
165
|
+
"indexed": false,
|
166
|
+
"internalType": "address",
|
167
|
+
"name": "createdBy",
|
168
|
+
"type": "address"
|
219
169
|
},
|
220
170
|
{
|
221
|
-
"
|
222
|
-
"
|
223
|
-
"
|
171
|
+
"indexed": false,
|
172
|
+
"internalType": "address",
|
173
|
+
"name": "txOrigin",
|
174
|
+
"type": "address"
|
224
175
|
}
|
225
176
|
],
|
226
|
-
"name": "
|
227
|
-
"
|
228
|
-
"stateMutability": "nonpayable",
|
229
|
-
"type": "function"
|
177
|
+
"name": "LogInfoCreated",
|
178
|
+
"type": "event"
|
230
179
|
},
|
231
180
|
{
|
181
|
+
"anonymous": false,
|
232
182
|
"inputs": [
|
233
183
|
{
|
234
|
-
"
|
235
|
-
"
|
236
|
-
"
|
237
|
-
|
238
|
-
{
|
239
|
-
"internalType": "NftId",
|
240
|
-
"name": "productNftId",
|
241
|
-
"type": "uint96"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"internalType": "ReferralId",
|
245
|
-
"name": "referralId",
|
246
|
-
"type": "bytes8"
|
184
|
+
"indexed": false,
|
185
|
+
"internalType": "ObjectType",
|
186
|
+
"name": "objectType",
|
187
|
+
"type": "uint8"
|
247
188
|
},
|
248
189
|
{
|
249
|
-
"
|
250
|
-
"
|
251
|
-
"
|
190
|
+
"indexed": false,
|
191
|
+
"internalType": "KeyId",
|
192
|
+
"name": "keyId",
|
193
|
+
"type": "bytes31"
|
252
194
|
},
|
253
195
|
{
|
254
|
-
"
|
255
|
-
"
|
256
|
-
"
|
196
|
+
"indexed": false,
|
197
|
+
"internalType": "StateId",
|
198
|
+
"name": "state",
|
199
|
+
"type": "uint8"
|
257
200
|
},
|
258
201
|
{
|
259
|
-
"
|
260
|
-
"
|
261
|
-
"
|
202
|
+
"indexed": false,
|
203
|
+
"internalType": "address",
|
204
|
+
"name": "updatedBy",
|
205
|
+
"type": "address"
|
262
206
|
},
|
263
207
|
{
|
264
|
-
"
|
265
|
-
"
|
266
|
-
"
|
208
|
+
"indexed": false,
|
209
|
+
"internalType": "address",
|
210
|
+
"name": "txOrigin",
|
211
|
+
"type": "address"
|
267
212
|
},
|
268
213
|
{
|
269
|
-
"
|
270
|
-
"
|
271
|
-
"
|
214
|
+
"indexed": false,
|
215
|
+
"internalType": "Blocknumber",
|
216
|
+
"name": "lastUpdatedIn",
|
217
|
+
"type": "uint32"
|
272
218
|
}
|
273
219
|
],
|
274
|
-
"name": "
|
275
|
-
"
|
276
|
-
"stateMutability": "nonpayable",
|
277
|
-
"type": "function"
|
220
|
+
"name": "LogInfoUpdated",
|
221
|
+
"type": "event"
|
278
222
|
},
|
279
223
|
{
|
224
|
+
"anonymous": false,
|
280
225
|
"inputs": [
|
281
226
|
{
|
282
|
-
"
|
283
|
-
"
|
284
|
-
"
|
227
|
+
"indexed": false,
|
228
|
+
"internalType": "ObjectType",
|
229
|
+
"name": "objectType",
|
230
|
+
"type": "uint8"
|
285
231
|
},
|
286
232
|
{
|
287
|
-
"
|
288
|
-
"
|
289
|
-
"
|
233
|
+
"indexed": false,
|
234
|
+
"internalType": "KeyId",
|
235
|
+
"name": "keyId",
|
236
|
+
"type": "bytes31"
|
290
237
|
},
|
291
238
|
{
|
292
|
-
"
|
293
|
-
"
|
294
|
-
"
|
239
|
+
"indexed": false,
|
240
|
+
"internalType": "StateId",
|
241
|
+
"name": "stateOld",
|
242
|
+
"type": "uint8"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"indexed": false,
|
246
|
+
"internalType": "StateId",
|
247
|
+
"name": "stateNew",
|
248
|
+
"type": "uint8"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"indexed": false,
|
252
|
+
"internalType": "address",
|
253
|
+
"name": "updatedBy",
|
254
|
+
"type": "address"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"indexed": false,
|
258
|
+
"internalType": "address",
|
259
|
+
"name": "txOrigin",
|
260
|
+
"type": "address"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"indexed": false,
|
264
|
+
"internalType": "Blocknumber",
|
265
|
+
"name": "lastUpdatedIn",
|
266
|
+
"type": "uint32"
|
295
267
|
}
|
296
268
|
],
|
297
|
-
"name": "
|
298
|
-
"
|
299
|
-
"stateMutability": "nonpayable",
|
300
|
-
"type": "function"
|
269
|
+
"name": "LogStateUpdated",
|
270
|
+
"type": "event"
|
301
271
|
},
|
302
272
|
{
|
303
|
-
"inputs": [
|
304
|
-
|
305
|
-
"internalType": "string",
|
306
|
-
"name": "roleName",
|
307
|
-
"type": "string"
|
308
|
-
}
|
309
|
-
],
|
310
|
-
"name": "createRole",
|
273
|
+
"inputs": [],
|
274
|
+
"name": "authority",
|
311
275
|
"outputs": [
|
312
276
|
{
|
313
|
-
"internalType": "
|
314
|
-
"name": "
|
315
|
-
"type": "
|
277
|
+
"internalType": "address",
|
278
|
+
"name": "",
|
279
|
+
"type": "address"
|
316
280
|
}
|
317
281
|
],
|
318
|
-
"stateMutability": "
|
282
|
+
"stateMutability": "view",
|
319
283
|
"type": "function"
|
320
284
|
},
|
321
285
|
{
|
322
286
|
"inputs": [
|
323
287
|
{
|
324
288
|
"internalType": "NftId",
|
325
|
-
"name": "
|
289
|
+
"name": "applicationNftId",
|
326
290
|
"type": "uint96"
|
327
|
-
}
|
328
|
-
],
|
329
|
-
"name": "getBundleCount",
|
330
|
-
"outputs": [
|
291
|
+
},
|
331
292
|
{
|
332
|
-
"
|
333
|
-
|
334
|
-
|
293
|
+
"components": [
|
294
|
+
{
|
295
|
+
"internalType": "NftId",
|
296
|
+
"name": "productNftId",
|
297
|
+
"type": "uint96"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "NftId",
|
301
|
+
"name": "bundleNftId",
|
302
|
+
"type": "uint96"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "ReferralId",
|
306
|
+
"name": "referralId",
|
307
|
+
"type": "bytes8"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "RiskId",
|
311
|
+
"name": "riskId",
|
312
|
+
"type": "bytes8"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"internalType": "uint256",
|
316
|
+
"name": "sumInsuredAmount",
|
317
|
+
"type": "uint256"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "uint256",
|
321
|
+
"name": "premiumAmount",
|
322
|
+
"type": "uint256"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"internalType": "uint256",
|
326
|
+
"name": "premiumPaidAmount",
|
327
|
+
"type": "uint256"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"internalType": "Seconds",
|
331
|
+
"name": "lifetime",
|
332
|
+
"type": "uint40"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"internalType": "bytes",
|
336
|
+
"name": "applicationData",
|
337
|
+
"type": "bytes"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"internalType": "bytes",
|
341
|
+
"name": "policyData",
|
342
|
+
"type": "bytes"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"internalType": "uint16",
|
346
|
+
"name": "claimsCount",
|
347
|
+
"type": "uint16"
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"internalType": "uint16",
|
351
|
+
"name": "openClaimsCount",
|
352
|
+
"type": "uint16"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"internalType": "uint256",
|
356
|
+
"name": "payoutAmount",
|
357
|
+
"type": "uint256"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"internalType": "Timestamp",
|
361
|
+
"name": "activatedAt",
|
362
|
+
"type": "uint40"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"internalType": "Timestamp",
|
366
|
+
"name": "expiredAt",
|
367
|
+
"type": "uint40"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"internalType": "Timestamp",
|
371
|
+
"name": "closedAt",
|
372
|
+
"type": "uint40"
|
373
|
+
}
|
374
|
+
],
|
375
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
376
|
+
"name": "policy",
|
377
|
+
"type": "tuple"
|
335
378
|
}
|
336
379
|
],
|
337
|
-
"
|
380
|
+
"name": "createApplication",
|
381
|
+
"outputs": [],
|
382
|
+
"stateMutability": "nonpayable",
|
338
383
|
"type": "function"
|
339
384
|
},
|
340
385
|
{
|
341
386
|
"inputs": [
|
342
387
|
{
|
343
388
|
"internalType": "NftId",
|
344
|
-
"name": "
|
389
|
+
"name": "bundleNftId",
|
345
390
|
"type": "uint96"
|
346
|
-
}
|
347
|
-
],
|
348
|
-
"name": "getBundleInfo",
|
349
|
-
"outputs": [
|
391
|
+
},
|
350
392
|
{
|
351
393
|
"components": [
|
352
394
|
{
|
@@ -377,19 +419,24 @@
|
|
377
419
|
"type": "bytes"
|
378
420
|
},
|
379
421
|
{
|
380
|
-
"internalType": "
|
422
|
+
"internalType": "Amount",
|
381
423
|
"name": "capitalAmount",
|
382
|
-
"type": "
|
424
|
+
"type": "uint96"
|
383
425
|
},
|
384
426
|
{
|
385
|
-
"internalType": "
|
427
|
+
"internalType": "Amount",
|
386
428
|
"name": "lockedAmount",
|
387
|
-
"type": "
|
429
|
+
"type": "uint96"
|
388
430
|
},
|
389
431
|
{
|
390
|
-
"internalType": "
|
391
|
-
"name": "
|
392
|
-
"type": "
|
432
|
+
"internalType": "Amount",
|
433
|
+
"name": "feeAmount",
|
434
|
+
"type": "uint96"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"internalType": "Seconds",
|
438
|
+
"name": "lifetime",
|
439
|
+
"type": "uint40"
|
393
440
|
},
|
394
441
|
{
|
395
442
|
"internalType": "Timestamp",
|
@@ -403,99 +450,87 @@
|
|
403
450
|
}
|
404
451
|
],
|
405
452
|
"internalType": "struct IBundle.BundleInfo",
|
406
|
-
"name": "
|
453
|
+
"name": "bundle",
|
407
454
|
"type": "tuple"
|
408
455
|
}
|
409
456
|
],
|
410
|
-
"
|
457
|
+
"name": "createBundle",
|
458
|
+
"outputs": [],
|
459
|
+
"stateMutability": "nonpayable",
|
411
460
|
"type": "function"
|
412
461
|
},
|
413
462
|
{
|
414
463
|
"inputs": [
|
415
464
|
{
|
416
465
|
"internalType": "NftId",
|
417
|
-
"name": "
|
466
|
+
"name": "distributionNftId",
|
418
467
|
"type": "uint96"
|
419
468
|
},
|
420
469
|
{
|
421
|
-
"
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
"type": "function"
|
481
|
-
},
|
482
|
-
{
|
483
|
-
"inputs": [
|
484
|
-
{
|
485
|
-
"internalType": "NftId",
|
486
|
-
"name": "nftId",
|
487
|
-
"type": "uint96"
|
488
|
-
}
|
489
|
-
],
|
490
|
-
"name": "getComponentToken",
|
491
|
-
"outputs": [
|
492
|
-
{
|
493
|
-
"internalType": "contract IERC20Metadata",
|
494
|
-
"name": "token",
|
495
|
-
"type": "address"
|
470
|
+
"components": [
|
471
|
+
{
|
472
|
+
"internalType": "NftId",
|
473
|
+
"name": "productNftId",
|
474
|
+
"type": "uint96"
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"internalType": "contract TokenHandler",
|
478
|
+
"name": "tokenHandler",
|
479
|
+
"type": "address"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"components": [
|
483
|
+
{
|
484
|
+
"internalType": "UFixed",
|
485
|
+
"name": "fractionalFee",
|
486
|
+
"type": "uint256"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"internalType": "uint256",
|
490
|
+
"name": "fixedFee",
|
491
|
+
"type": "uint256"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"internalType": "struct Fee",
|
495
|
+
"name": "minDistributionOwnerFee",
|
496
|
+
"type": "tuple"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"components": [
|
500
|
+
{
|
501
|
+
"internalType": "UFixed",
|
502
|
+
"name": "fractionalFee",
|
503
|
+
"type": "uint256"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"internalType": "uint256",
|
507
|
+
"name": "fixedFee",
|
508
|
+
"type": "uint256"
|
509
|
+
}
|
510
|
+
],
|
511
|
+
"internalType": "struct Fee",
|
512
|
+
"name": "distributionFee",
|
513
|
+
"type": "tuple"
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"internalType": "address",
|
517
|
+
"name": "wallet",
|
518
|
+
"type": "address"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"internalType": "uint256",
|
522
|
+
"name": "sumDistributionOwnerFees",
|
523
|
+
"type": "uint256"
|
524
|
+
}
|
525
|
+
],
|
526
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
527
|
+
"name": "setup",
|
528
|
+
"type": "tuple"
|
496
529
|
}
|
497
530
|
],
|
498
|
-
"
|
531
|
+
"name": "createDistributionSetup",
|
532
|
+
"outputs": [],
|
533
|
+
"stateMutability": "nonpayable",
|
499
534
|
"type": "function"
|
500
535
|
},
|
501
536
|
{
|
@@ -504,103 +539,148 @@
|
|
504
539
|
"internalType": "NftId",
|
505
540
|
"name": "nftId",
|
506
541
|
"type": "uint96"
|
507
|
-
}
|
508
|
-
],
|
509
|
-
"name": "getComponentWallet",
|
510
|
-
"outputs": [
|
511
|
-
{
|
512
|
-
"internalType": "address",
|
513
|
-
"name": "wallet",
|
514
|
-
"type": "address"
|
515
|
-
}
|
516
|
-
],
|
517
|
-
"stateMutability": "view",
|
518
|
-
"type": "function"
|
519
|
-
},
|
520
|
-
{
|
521
|
-
"inputs": [],
|
522
|
-
"name": "getDistributionService",
|
523
|
-
"outputs": [
|
542
|
+
},
|
524
543
|
{
|
525
|
-
"
|
526
|
-
|
527
|
-
|
544
|
+
"components": [
|
545
|
+
{
|
546
|
+
"internalType": "DistributorType",
|
547
|
+
"name": "distributorType",
|
548
|
+
"type": "bytes8"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"internalType": "bool",
|
552
|
+
"name": "active",
|
553
|
+
"type": "bool"
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"internalType": "bytes",
|
557
|
+
"name": "data",
|
558
|
+
"type": "bytes"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"internalType": "uint256",
|
562
|
+
"name": "sumCommisions",
|
563
|
+
"type": "uint256"
|
564
|
+
},
|
565
|
+
{
|
566
|
+
"internalType": "uint256",
|
567
|
+
"name": "numPoliciesSold",
|
568
|
+
"type": "uint256"
|
569
|
+
}
|
570
|
+
],
|
571
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
572
|
+
"name": "info",
|
573
|
+
"type": "tuple"
|
528
574
|
}
|
529
575
|
],
|
530
|
-
"
|
576
|
+
"name": "createDistributor",
|
577
|
+
"outputs": [],
|
578
|
+
"stateMutability": "nonpayable",
|
531
579
|
"type": "function"
|
532
580
|
},
|
533
581
|
{
|
534
582
|
"inputs": [
|
535
583
|
{
|
536
|
-
"internalType": "
|
537
|
-
"name": "
|
538
|
-
"type": "
|
584
|
+
"internalType": "Key32",
|
585
|
+
"name": "distributorKey",
|
586
|
+
"type": "bytes32"
|
539
587
|
},
|
540
|
-
{
|
541
|
-
"internalType": "uint256",
|
542
|
-
"name": "fixedFee",
|
543
|
-
"type": "uint256"
|
544
|
-
}
|
545
|
-
],
|
546
|
-
"name": "getFee",
|
547
|
-
"outputs": [
|
548
588
|
{
|
549
589
|
"components": [
|
590
|
+
{
|
591
|
+
"internalType": "string",
|
592
|
+
"name": "name",
|
593
|
+
"type": "string"
|
594
|
+
},
|
550
595
|
{
|
551
596
|
"internalType": "UFixed",
|
552
|
-
"name": "
|
597
|
+
"name": "minDiscountPercentage",
|
553
598
|
"type": "uint256"
|
554
599
|
},
|
555
600
|
{
|
556
|
-
"internalType": "
|
557
|
-
"name": "
|
601
|
+
"internalType": "UFixed",
|
602
|
+
"name": "maxDiscountPercentage",
|
558
603
|
"type": "uint256"
|
604
|
+
},
|
605
|
+
{
|
606
|
+
"internalType": "UFixed",
|
607
|
+
"name": "commissionPercentage",
|
608
|
+
"type": "uint256"
|
609
|
+
},
|
610
|
+
{
|
611
|
+
"internalType": "uint32",
|
612
|
+
"name": "maxReferralCount",
|
613
|
+
"type": "uint32"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"internalType": "uint32",
|
617
|
+
"name": "maxReferralLifetime",
|
618
|
+
"type": "uint32"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"internalType": "bool",
|
622
|
+
"name": "allowSelfReferrals",
|
623
|
+
"type": "bool"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"internalType": "bool",
|
627
|
+
"name": "allowRenewals",
|
628
|
+
"type": "bool"
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"internalType": "bytes",
|
632
|
+
"name": "data",
|
633
|
+
"type": "bytes"
|
559
634
|
}
|
560
635
|
],
|
561
|
-
"internalType": "struct
|
562
|
-
"name": "
|
636
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
637
|
+
"name": "info",
|
563
638
|
"type": "tuple"
|
564
639
|
}
|
565
640
|
],
|
566
|
-
"
|
641
|
+
"name": "createDistributorType",
|
642
|
+
"outputs": [],
|
643
|
+
"stateMutability": "nonpayable",
|
567
644
|
"type": "function"
|
568
645
|
},
|
569
646
|
{
|
570
|
-
"inputs": [
|
571
|
-
|
572
|
-
|
647
|
+
"inputs": [
|
648
|
+
{
|
649
|
+
"internalType": "NftId",
|
650
|
+
"name": "poolNftId",
|
651
|
+
"type": "uint96"
|
652
|
+
},
|
573
653
|
{
|
574
654
|
"components": [
|
575
655
|
{
|
576
|
-
"internalType": "
|
577
|
-
"name": "
|
578
|
-
"type": "
|
579
|
-
},
|
580
|
-
{
|
581
|
-
"internalType": "NftId",
|
582
|
-
"name": "parentNftId",
|
583
|
-
"type": "uint96"
|
656
|
+
"internalType": "string",
|
657
|
+
"name": "name",
|
658
|
+
"type": "string"
|
584
659
|
},
|
585
660
|
{
|
586
|
-
"internalType": "
|
587
|
-
"name": "
|
588
|
-
"type": "
|
661
|
+
"internalType": "contract IERC20Metadata",
|
662
|
+
"name": "token",
|
663
|
+
"type": "address"
|
589
664
|
},
|
590
665
|
{
|
591
|
-
"internalType": "
|
592
|
-
"name": "
|
593
|
-
"type": "
|
666
|
+
"internalType": "contract TokenHandler",
|
667
|
+
"name": "tokenHandler",
|
668
|
+
"type": "address"
|
594
669
|
},
|
595
670
|
{
|
596
671
|
"internalType": "address",
|
597
|
-
"name": "
|
672
|
+
"name": "wallet",
|
598
673
|
"type": "address"
|
599
674
|
},
|
600
675
|
{
|
601
|
-
"internalType": "
|
602
|
-
"name": "
|
603
|
-
"type": "
|
676
|
+
"internalType": "Amount",
|
677
|
+
"name": "balanceAmount",
|
678
|
+
"type": "uint96"
|
679
|
+
},
|
680
|
+
{
|
681
|
+
"internalType": "Amount",
|
682
|
+
"name": "feeAmount",
|
683
|
+
"type": "uint96"
|
604
684
|
},
|
605
685
|
{
|
606
686
|
"internalType": "bytes",
|
@@ -608,201 +688,199 @@
|
|
608
688
|
"type": "bytes"
|
609
689
|
}
|
610
690
|
],
|
611
|
-
"internalType": "struct
|
612
|
-
"name": "",
|
691
|
+
"internalType": "struct IComponents.ComponentInfo",
|
692
|
+
"name": "info",
|
613
693
|
"type": "tuple"
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"internalType": "bytes",
|
617
|
-
"name": "data",
|
618
|
-
"type": "bytes"
|
619
694
|
}
|
620
695
|
],
|
621
|
-
"
|
622
|
-
"
|
623
|
-
|
624
|
-
{
|
625
|
-
"inputs": [],
|
626
|
-
"name": "getInitializedVersion",
|
627
|
-
"outputs": [
|
628
|
-
{
|
629
|
-
"internalType": "uint64",
|
630
|
-
"name": "",
|
631
|
-
"type": "uint64"
|
632
|
-
}
|
633
|
-
],
|
634
|
-
"stateMutability": "view",
|
635
|
-
"type": "function"
|
636
|
-
},
|
637
|
-
{
|
638
|
-
"inputs": [],
|
639
|
-
"name": "getKeyValueStore",
|
640
|
-
"outputs": [
|
641
|
-
{
|
642
|
-
"internalType": "contract IKeyValueStore",
|
643
|
-
"name": "keyValueStore",
|
644
|
-
"type": "address"
|
645
|
-
}
|
646
|
-
],
|
647
|
-
"stateMutability": "view",
|
696
|
+
"name": "createPoolSetup",
|
697
|
+
"outputs": [],
|
698
|
+
"stateMutability": "nonpayable",
|
648
699
|
"type": "function"
|
649
700
|
},
|
650
701
|
{
|
651
|
-
"inputs": [
|
652
|
-
"name": "getNftId",
|
653
|
-
"outputs": [
|
702
|
+
"inputs": [
|
654
703
|
{
|
655
704
|
"internalType": "NftId",
|
656
|
-
"name": "
|
705
|
+
"name": "productNftId",
|
657
706
|
"type": "uint96"
|
658
|
-
}
|
659
|
-
],
|
660
|
-
"stateMutability": "view",
|
661
|
-
"type": "function"
|
662
|
-
},
|
663
|
-
{
|
664
|
-
"inputs": [],
|
665
|
-
"name": "getOwner",
|
666
|
-
"outputs": [
|
707
|
+
},
|
667
708
|
{
|
668
|
-
"
|
669
|
-
|
670
|
-
|
709
|
+
"components": [
|
710
|
+
{
|
711
|
+
"internalType": "contract IERC20Metadata",
|
712
|
+
"name": "token",
|
713
|
+
"type": "address"
|
714
|
+
},
|
715
|
+
{
|
716
|
+
"internalType": "contract TokenHandler",
|
717
|
+
"name": "tokenHandler",
|
718
|
+
"type": "address"
|
719
|
+
},
|
720
|
+
{
|
721
|
+
"internalType": "NftId",
|
722
|
+
"name": "distributionNftId",
|
723
|
+
"type": "uint96"
|
724
|
+
},
|
725
|
+
{
|
726
|
+
"internalType": "NftId",
|
727
|
+
"name": "poolNftId",
|
728
|
+
"type": "uint96"
|
729
|
+
},
|
730
|
+
{
|
731
|
+
"components": [
|
732
|
+
{
|
733
|
+
"internalType": "UFixed",
|
734
|
+
"name": "fractionalFee",
|
735
|
+
"type": "uint256"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"internalType": "uint256",
|
739
|
+
"name": "fixedFee",
|
740
|
+
"type": "uint256"
|
741
|
+
}
|
742
|
+
],
|
743
|
+
"internalType": "struct Fee",
|
744
|
+
"name": "productFee",
|
745
|
+
"type": "tuple"
|
746
|
+
},
|
747
|
+
{
|
748
|
+
"components": [
|
749
|
+
{
|
750
|
+
"internalType": "UFixed",
|
751
|
+
"name": "fractionalFee",
|
752
|
+
"type": "uint256"
|
753
|
+
},
|
754
|
+
{
|
755
|
+
"internalType": "uint256",
|
756
|
+
"name": "fixedFee",
|
757
|
+
"type": "uint256"
|
758
|
+
}
|
759
|
+
],
|
760
|
+
"internalType": "struct Fee",
|
761
|
+
"name": "processingFee",
|
762
|
+
"type": "tuple"
|
763
|
+
},
|
764
|
+
{
|
765
|
+
"internalType": "bool",
|
766
|
+
"name": "isIntercepting",
|
767
|
+
"type": "bool"
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"internalType": "address",
|
771
|
+
"name": "wallet",
|
772
|
+
"type": "address"
|
773
|
+
}
|
774
|
+
],
|
775
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
776
|
+
"name": "setup",
|
777
|
+
"type": "tuple"
|
671
778
|
}
|
672
779
|
],
|
673
|
-
"
|
780
|
+
"name": "createProductSetup",
|
781
|
+
"outputs": [],
|
782
|
+
"stateMutability": "nonpayable",
|
674
783
|
"type": "function"
|
675
784
|
},
|
676
785
|
{
|
677
786
|
"inputs": [
|
678
787
|
{
|
679
|
-
"internalType": "
|
680
|
-
"name": "
|
681
|
-
"type": "
|
682
|
-
}
|
683
|
-
],
|
684
|
-
"name": "getPolicyInfo",
|
685
|
-
"outputs": [
|
788
|
+
"internalType": "Key32",
|
789
|
+
"name": "referralKey",
|
790
|
+
"type": "bytes32"
|
791
|
+
},
|
686
792
|
{
|
687
793
|
"components": [
|
688
794
|
{
|
689
795
|
"internalType": "NftId",
|
690
|
-
"name": "
|
691
|
-
"type": "uint96"
|
692
|
-
},
|
693
|
-
{
|
694
|
-
"internalType": "NftId",
|
695
|
-
"name": "bundleNftId",
|
796
|
+
"name": "distributorNftId",
|
696
797
|
"type": "uint96"
|
697
798
|
},
|
698
799
|
{
|
699
|
-
"internalType": "
|
700
|
-
"name": "
|
701
|
-
"type": "
|
702
|
-
},
|
703
|
-
{
|
704
|
-
"internalType": "address",
|
705
|
-
"name": "beneficiary",
|
706
|
-
"type": "address"
|
707
|
-
},
|
708
|
-
{
|
709
|
-
"internalType": "RiskId",
|
710
|
-
"name": "riskId",
|
711
|
-
"type": "bytes8"
|
712
|
-
},
|
713
|
-
{
|
714
|
-
"internalType": "uint256",
|
715
|
-
"name": "sumInsuredAmount",
|
716
|
-
"type": "uint256"
|
717
|
-
},
|
718
|
-
{
|
719
|
-
"internalType": "uint256",
|
720
|
-
"name": "premiumAmount",
|
721
|
-
"type": "uint256"
|
722
|
-
},
|
723
|
-
{
|
724
|
-
"internalType": "uint256",
|
725
|
-
"name": "premiumPaidAmount",
|
726
|
-
"type": "uint256"
|
800
|
+
"internalType": "string",
|
801
|
+
"name": "referralCode",
|
802
|
+
"type": "string"
|
727
803
|
},
|
728
804
|
{
|
729
|
-
"internalType": "
|
730
|
-
"name": "
|
805
|
+
"internalType": "UFixed",
|
806
|
+
"name": "discountPercentage",
|
731
807
|
"type": "uint256"
|
732
808
|
},
|
733
809
|
{
|
734
|
-
"internalType": "
|
735
|
-
"name": "
|
736
|
-
"type": "
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"internalType": "bytes",
|
740
|
-
"name": "policyData",
|
741
|
-
"type": "bytes"
|
810
|
+
"internalType": "uint32",
|
811
|
+
"name": "maxReferrals",
|
812
|
+
"type": "uint32"
|
742
813
|
},
|
743
814
|
{
|
744
|
-
"internalType": "
|
745
|
-
"name": "
|
746
|
-
"type": "
|
815
|
+
"internalType": "uint32",
|
816
|
+
"name": "usedReferrals",
|
817
|
+
"type": "uint32"
|
747
818
|
},
|
748
819
|
{
|
749
820
|
"internalType": "Timestamp",
|
750
|
-
"name": "
|
821
|
+
"name": "expiryAt",
|
751
822
|
"type": "uint40"
|
752
823
|
},
|
753
824
|
{
|
754
|
-
"internalType": "
|
755
|
-
"name": "
|
756
|
-
"type": "
|
825
|
+
"internalType": "bytes",
|
826
|
+
"name": "data",
|
827
|
+
"type": "bytes"
|
757
828
|
}
|
758
829
|
],
|
759
|
-
"internalType": "struct
|
760
|
-
"name": "
|
830
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
831
|
+
"name": "referralInfo",
|
761
832
|
"type": "tuple"
|
762
833
|
}
|
763
834
|
],
|
764
|
-
"
|
835
|
+
"name": "createReferral",
|
836
|
+
"outputs": [],
|
837
|
+
"stateMutability": "nonpayable",
|
765
838
|
"type": "function"
|
766
839
|
},
|
767
840
|
{
|
768
841
|
"inputs": [
|
769
842
|
{
|
770
|
-
"internalType": "
|
771
|
-
"name": "
|
772
|
-
"type": "
|
773
|
-
}
|
774
|
-
],
|
775
|
-
"name": "getPoolInfo",
|
776
|
-
"outputs": [
|
843
|
+
"internalType": "RiskId",
|
844
|
+
"name": "riskId",
|
845
|
+
"type": "bytes8"
|
846
|
+
},
|
777
847
|
{
|
778
848
|
"components": [
|
779
849
|
{
|
780
|
-
"internalType": "
|
781
|
-
"name": "
|
782
|
-
"type": "
|
850
|
+
"internalType": "NftId",
|
851
|
+
"name": "productNftId",
|
852
|
+
"type": "uint96"
|
783
853
|
},
|
784
854
|
{
|
785
|
-
"internalType": "
|
786
|
-
"name": "
|
787
|
-
"type": "
|
855
|
+
"internalType": "bytes",
|
856
|
+
"name": "data",
|
857
|
+
"type": "bytes"
|
788
858
|
}
|
789
859
|
],
|
790
|
-
"internalType": "struct
|
791
|
-
"name": "
|
860
|
+
"internalType": "struct IRisk.RiskInfo",
|
861
|
+
"name": "risk",
|
792
862
|
"type": "tuple"
|
793
863
|
}
|
794
864
|
],
|
795
|
-
"
|
865
|
+
"name": "createRisk",
|
866
|
+
"outputs": [],
|
867
|
+
"stateMutability": "nonpayable",
|
796
868
|
"type": "function"
|
797
869
|
},
|
798
870
|
{
|
799
|
-
"inputs": [
|
800
|
-
|
871
|
+
"inputs": [
|
872
|
+
{
|
873
|
+
"internalType": "Key32",
|
874
|
+
"name": "key",
|
875
|
+
"type": "bytes32"
|
876
|
+
}
|
877
|
+
],
|
878
|
+
"name": "exists",
|
801
879
|
"outputs": [
|
802
880
|
{
|
803
|
-
"internalType": "
|
881
|
+
"internalType": "bool",
|
804
882
|
"name": "",
|
805
|
-
"type": "
|
883
|
+
"type": "bool"
|
806
884
|
}
|
807
885
|
],
|
808
886
|
"stateMutability": "view",
|
@@ -811,17 +889,56 @@
|
|
811
889
|
{
|
812
890
|
"inputs": [
|
813
891
|
{
|
814
|
-
"internalType": "
|
815
|
-
"name": "
|
816
|
-
"type": "
|
892
|
+
"internalType": "Key32",
|
893
|
+
"name": "key",
|
894
|
+
"type": "bytes32"
|
817
895
|
}
|
818
896
|
],
|
819
|
-
"name": "
|
897
|
+
"name": "get",
|
820
898
|
"outputs": [
|
821
899
|
{
|
822
|
-
"
|
823
|
-
|
824
|
-
|
900
|
+
"components": [
|
901
|
+
{
|
902
|
+
"components": [
|
903
|
+
{
|
904
|
+
"internalType": "ObjectType",
|
905
|
+
"name": "objectType",
|
906
|
+
"type": "uint8"
|
907
|
+
},
|
908
|
+
{
|
909
|
+
"internalType": "StateId",
|
910
|
+
"name": "state",
|
911
|
+
"type": "uint8"
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"internalType": "address",
|
915
|
+
"name": "updatedBy",
|
916
|
+
"type": "address"
|
917
|
+
},
|
918
|
+
{
|
919
|
+
"internalType": "Blocknumber",
|
920
|
+
"name": "updatedIn",
|
921
|
+
"type": "uint32"
|
922
|
+
},
|
923
|
+
{
|
924
|
+
"internalType": "Blocknumber",
|
925
|
+
"name": "createdIn",
|
926
|
+
"type": "uint32"
|
927
|
+
}
|
928
|
+
],
|
929
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
930
|
+
"name": "metadata",
|
931
|
+
"type": "tuple"
|
932
|
+
},
|
933
|
+
{
|
934
|
+
"internalType": "bytes",
|
935
|
+
"name": "data",
|
936
|
+
"type": "bytes"
|
937
|
+
}
|
938
|
+
],
|
939
|
+
"internalType": "struct IKeyValueStore.Value",
|
940
|
+
"name": "value",
|
941
|
+
"type": "tuple"
|
825
942
|
}
|
826
943
|
],
|
827
944
|
"stateMutability": "view",
|
@@ -829,10 +946,10 @@
|
|
829
946
|
},
|
830
947
|
{
|
831
948
|
"inputs": [],
|
832
|
-
"name": "
|
949
|
+
"name": "getBundleManager",
|
833
950
|
"outputs": [
|
834
951
|
{
|
835
|
-
"internalType": "contract
|
952
|
+
"internalType": "contract BundleManager",
|
836
953
|
"name": "",
|
837
954
|
"type": "address"
|
838
955
|
}
|
@@ -842,11 +959,11 @@
|
|
842
959
|
},
|
843
960
|
{
|
844
961
|
"inputs": [],
|
845
|
-
"name": "
|
962
|
+
"name": "getBundleService",
|
846
963
|
"outputs": [
|
847
964
|
{
|
848
|
-
"internalType": "contract
|
849
|
-
"name": "
|
965
|
+
"internalType": "contract IBundleService",
|
966
|
+
"name": "",
|
850
967
|
"type": "address"
|
851
968
|
}
|
852
969
|
],
|
@@ -856,28 +973,79 @@
|
|
856
973
|
{
|
857
974
|
"inputs": [
|
858
975
|
{
|
859
|
-
"internalType": "
|
860
|
-
"name": "
|
861
|
-
"type": "
|
976
|
+
"internalType": "Key32",
|
977
|
+
"name": "key",
|
978
|
+
"type": "bytes32"
|
979
|
+
}
|
980
|
+
],
|
981
|
+
"name": "getData",
|
982
|
+
"outputs": [
|
983
|
+
{
|
984
|
+
"internalType": "bytes",
|
985
|
+
"name": "data",
|
986
|
+
"type": "bytes"
|
987
|
+
}
|
988
|
+
],
|
989
|
+
"stateMutability": "view",
|
990
|
+
"type": "function"
|
991
|
+
},
|
992
|
+
{
|
993
|
+
"inputs": [],
|
994
|
+
"name": "getDistributionService",
|
995
|
+
"outputs": [
|
996
|
+
{
|
997
|
+
"internalType": "contract IDistributionService",
|
998
|
+
"name": "",
|
999
|
+
"type": "address"
|
862
1000
|
}
|
863
1001
|
],
|
864
|
-
"
|
1002
|
+
"stateMutability": "view",
|
1003
|
+
"type": "function"
|
1004
|
+
},
|
1005
|
+
{
|
1006
|
+
"inputs": [],
|
1007
|
+
"name": "getInitialInfo",
|
865
1008
|
"outputs": [
|
866
1009
|
{
|
867
1010
|
"components": [
|
868
1011
|
{
|
869
1012
|
"internalType": "NftId",
|
870
|
-
"name": "
|
1013
|
+
"name": "nftId",
|
1014
|
+
"type": "uint96"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"internalType": "NftId",
|
1018
|
+
"name": "parentNftId",
|
871
1019
|
"type": "uint96"
|
872
1020
|
},
|
1021
|
+
{
|
1022
|
+
"internalType": "ObjectType",
|
1023
|
+
"name": "objectType",
|
1024
|
+
"type": "uint8"
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
"internalType": "bool",
|
1028
|
+
"name": "isInterceptor",
|
1029
|
+
"type": "bool"
|
1030
|
+
},
|
1031
|
+
{
|
1032
|
+
"internalType": "address",
|
1033
|
+
"name": "objectAddress",
|
1034
|
+
"type": "address"
|
1035
|
+
},
|
1036
|
+
{
|
1037
|
+
"internalType": "address",
|
1038
|
+
"name": "initialOwner",
|
1039
|
+
"type": "address"
|
1040
|
+
},
|
873
1041
|
{
|
874
1042
|
"internalType": "bytes",
|
875
1043
|
"name": "data",
|
876
1044
|
"type": "bytes"
|
877
1045
|
}
|
878
1046
|
],
|
879
|
-
"internalType": "struct
|
880
|
-
"name": "
|
1047
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1048
|
+
"name": "",
|
881
1049
|
"type": "tuple"
|
882
1050
|
}
|
883
1051
|
],
|
@@ -887,17 +1055,17 @@
|
|
887
1055
|
{
|
888
1056
|
"inputs": [
|
889
1057
|
{
|
890
|
-
"internalType": "
|
891
|
-
"name": "
|
892
|
-
"type": "
|
1058
|
+
"internalType": "ObjectType",
|
1059
|
+
"name": "objectType",
|
1060
|
+
"type": "uint8"
|
893
1061
|
}
|
894
1062
|
],
|
895
|
-
"name": "
|
1063
|
+
"name": "getInitialState",
|
896
1064
|
"outputs": [
|
897
1065
|
{
|
898
|
-
"internalType": "
|
899
|
-
"name": "
|
900
|
-
"type": "
|
1066
|
+
"internalType": "StateId",
|
1067
|
+
"name": "",
|
1068
|
+
"type": "uint8"
|
901
1069
|
}
|
902
1070
|
],
|
903
1071
|
"stateMutability": "view",
|
@@ -905,31 +1073,38 @@
|
|
905
1073
|
},
|
906
1074
|
{
|
907
1075
|
"inputs": [],
|
908
|
-
"name": "
|
1076
|
+
"name": "getInstanceAccessManager",
|
909
1077
|
"outputs": [
|
910
1078
|
{
|
911
|
-
"internalType": "
|
912
|
-
"name": "
|
913
|
-
"type": "
|
1079
|
+
"internalType": "contract InstanceAccessManager",
|
1080
|
+
"name": "",
|
1081
|
+
"type": "address"
|
914
1082
|
}
|
915
1083
|
],
|
916
1084
|
"stateMutability": "view",
|
917
1085
|
"type": "function"
|
918
1086
|
},
|
919
1087
|
{
|
920
|
-
"inputs": [
|
1088
|
+
"inputs": [],
|
1089
|
+
"name": "getInstanceReader",
|
1090
|
+
"outputs": [
|
921
1091
|
{
|
922
|
-
"internalType": "
|
923
|
-
"name": "
|
924
|
-
"type": "
|
1092
|
+
"internalType": "contract InstanceReader",
|
1093
|
+
"name": "",
|
1094
|
+
"type": "address"
|
925
1095
|
}
|
926
1096
|
],
|
927
|
-
"
|
1097
|
+
"stateMutability": "view",
|
1098
|
+
"type": "function"
|
1099
|
+
},
|
1100
|
+
{
|
1101
|
+
"inputs": [],
|
1102
|
+
"name": "getMajorVersion",
|
928
1103
|
"outputs": [
|
929
1104
|
{
|
930
|
-
"internalType": "
|
931
|
-
"name": "
|
932
|
-
"type": "
|
1105
|
+
"internalType": "VersionPart",
|
1106
|
+
"name": "majorVersion",
|
1107
|
+
"type": "uint8"
|
933
1108
|
}
|
934
1109
|
],
|
935
1110
|
"stateMutability": "pure",
|
@@ -938,33 +1113,43 @@
|
|
938
1113
|
{
|
939
1114
|
"inputs": [
|
940
1115
|
{
|
941
|
-
"internalType": "
|
942
|
-
"name": "
|
943
|
-
"type": "
|
1116
|
+
"internalType": "Key32",
|
1117
|
+
"name": "key",
|
1118
|
+
"type": "bytes32"
|
944
1119
|
}
|
945
1120
|
],
|
946
|
-
"name": "
|
1121
|
+
"name": "getMetadata",
|
947
1122
|
"outputs": [
|
948
1123
|
{
|
949
1124
|
"components": [
|
950
1125
|
{
|
951
|
-
"internalType": "
|
952
|
-
"name": "
|
953
|
-
"type": "
|
1126
|
+
"internalType": "ObjectType",
|
1127
|
+
"name": "objectType",
|
1128
|
+
"type": "uint8"
|
1129
|
+
},
|
1130
|
+
{
|
1131
|
+
"internalType": "StateId",
|
1132
|
+
"name": "state",
|
1133
|
+
"type": "uint8"
|
954
1134
|
},
|
955
1135
|
{
|
956
|
-
"internalType": "
|
957
|
-
"name": "
|
958
|
-
"type": "
|
1136
|
+
"internalType": "address",
|
1137
|
+
"name": "updatedBy",
|
1138
|
+
"type": "address"
|
959
1139
|
},
|
960
1140
|
{
|
961
|
-
"internalType": "
|
962
|
-
"name": "
|
963
|
-
"type": "
|
1141
|
+
"internalType": "Blocknumber",
|
1142
|
+
"name": "updatedIn",
|
1143
|
+
"type": "uint32"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"internalType": "Blocknumber",
|
1147
|
+
"name": "createdIn",
|
1148
|
+
"type": "uint32"
|
964
1149
|
}
|
965
1150
|
],
|
966
|
-
"internalType": "struct
|
967
|
-
"name": "
|
1151
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
1152
|
+
"name": "metadata",
|
968
1153
|
"type": "tuple"
|
969
1154
|
}
|
970
1155
|
],
|
@@ -972,23 +1157,25 @@
|
|
972
1157
|
"type": "function"
|
973
1158
|
},
|
974
1159
|
{
|
975
|
-
"inputs": [
|
976
|
-
|
977
|
-
|
978
|
-
"name": "role",
|
979
|
-
"type": "bytes8"
|
980
|
-
},
|
1160
|
+
"inputs": [],
|
1161
|
+
"name": "getNftId",
|
1162
|
+
"outputs": [
|
981
1163
|
{
|
982
|
-
"internalType": "
|
983
|
-
"name": "
|
984
|
-
"type": "
|
1164
|
+
"internalType": "NftId",
|
1165
|
+
"name": "",
|
1166
|
+
"type": "uint96"
|
985
1167
|
}
|
986
1168
|
],
|
987
|
-
"
|
1169
|
+
"stateMutability": "view",
|
1170
|
+
"type": "function"
|
1171
|
+
},
|
1172
|
+
{
|
1173
|
+
"inputs": [],
|
1174
|
+
"name": "getOwner",
|
988
1175
|
"outputs": [
|
989
1176
|
{
|
990
1177
|
"internalType": "address",
|
991
|
-
"name": "
|
1178
|
+
"name": "",
|
992
1179
|
"type": "address"
|
993
1180
|
}
|
994
1181
|
],
|
@@ -996,56 +1183,38 @@
|
|
996
1183
|
"type": "function"
|
997
1184
|
},
|
998
1185
|
{
|
999
|
-
"inputs": [
|
1000
|
-
|
1001
|
-
"internalType": "RoleId",
|
1002
|
-
"name": "role",
|
1003
|
-
"type": "bytes8"
|
1004
|
-
}
|
1005
|
-
],
|
1006
|
-
"name": "getRoleMemberCount",
|
1186
|
+
"inputs": [],
|
1187
|
+
"name": "getPolicyService",
|
1007
1188
|
"outputs": [
|
1008
1189
|
{
|
1009
|
-
"internalType": "
|
1010
|
-
"name": "
|
1011
|
-
"type": "
|
1190
|
+
"internalType": "contract IPolicyService",
|
1191
|
+
"name": "",
|
1192
|
+
"type": "address"
|
1012
1193
|
}
|
1013
1194
|
],
|
1014
1195
|
"stateMutability": "view",
|
1015
1196
|
"type": "function"
|
1016
1197
|
},
|
1017
1198
|
{
|
1018
|
-
"inputs": [
|
1019
|
-
|
1020
|
-
"internalType": "Key32",
|
1021
|
-
"name": "key",
|
1022
|
-
"type": "bytes32"
|
1023
|
-
}
|
1024
|
-
],
|
1025
|
-
"name": "getState",
|
1199
|
+
"inputs": [],
|
1200
|
+
"name": "getPoolService",
|
1026
1201
|
"outputs": [
|
1027
1202
|
{
|
1028
|
-
"internalType": "
|
1029
|
-
"name": "
|
1030
|
-
"type": "
|
1203
|
+
"internalType": "contract IPoolService",
|
1204
|
+
"name": "",
|
1205
|
+
"type": "address"
|
1031
1206
|
}
|
1032
1207
|
],
|
1033
1208
|
"stateMutability": "view",
|
1034
1209
|
"type": "function"
|
1035
1210
|
},
|
1036
1211
|
{
|
1037
|
-
"inputs": [
|
1038
|
-
|
1039
|
-
"internalType": "NftId",
|
1040
|
-
"name": "componentNftId",
|
1041
|
-
"type": "uint96"
|
1042
|
-
}
|
1043
|
-
],
|
1044
|
-
"name": "getTokenHandler",
|
1212
|
+
"inputs": [],
|
1213
|
+
"name": "getProductService",
|
1045
1214
|
"outputs": [
|
1046
1215
|
{
|
1047
|
-
"internalType": "contract
|
1048
|
-
"name": "
|
1216
|
+
"internalType": "contract IProductService",
|
1217
|
+
"name": "",
|
1049
1218
|
"type": "address"
|
1050
1219
|
}
|
1051
1220
|
],
|
@@ -1053,138 +1222,26 @@
|
|
1053
1222
|
"type": "function"
|
1054
1223
|
},
|
1055
1224
|
{
|
1056
|
-
"inputs": [
|
1225
|
+
"inputs": [],
|
1226
|
+
"name": "getRegistry",
|
1227
|
+
"outputs": [
|
1057
1228
|
{
|
1058
|
-
"internalType": "
|
1059
|
-
"name": "
|
1060
|
-
"type": "
|
1229
|
+
"internalType": "contract IRegistry",
|
1230
|
+
"name": "",
|
1231
|
+
"type": "address"
|
1061
1232
|
}
|
1062
1233
|
],
|
1063
|
-
"
|
1234
|
+
"stateMutability": "view",
|
1235
|
+
"type": "function"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"inputs": [],
|
1239
|
+
"name": "getRegistryAddress",
|
1064
1240
|
"outputs": [
|
1065
1241
|
{
|
1066
|
-
"
|
1067
|
-
|
1068
|
-
|
1069
|
-
"name": "poolNftId",
|
1070
|
-
"type": "uint96"
|
1071
|
-
},
|
1072
|
-
{
|
1073
|
-
"internalType": "NftId",
|
1074
|
-
"name": "distributionNftId",
|
1075
|
-
"type": "uint96"
|
1076
|
-
},
|
1077
|
-
{
|
1078
|
-
"internalType": "contract IERC20Metadata",
|
1079
|
-
"name": "token",
|
1080
|
-
"type": "address"
|
1081
|
-
},
|
1082
|
-
{
|
1083
|
-
"components": [
|
1084
|
-
{
|
1085
|
-
"internalType": "UFixed",
|
1086
|
-
"name": "fractionalFee",
|
1087
|
-
"type": "uint256"
|
1088
|
-
},
|
1089
|
-
{
|
1090
|
-
"internalType": "uint256",
|
1091
|
-
"name": "fixedFee",
|
1092
|
-
"type": "uint256"
|
1093
|
-
}
|
1094
|
-
],
|
1095
|
-
"internalType": "struct Fee",
|
1096
|
-
"name": "productFee",
|
1097
|
-
"type": "tuple"
|
1098
|
-
},
|
1099
|
-
{
|
1100
|
-
"components": [
|
1101
|
-
{
|
1102
|
-
"internalType": "UFixed",
|
1103
|
-
"name": "fractionalFee",
|
1104
|
-
"type": "uint256"
|
1105
|
-
},
|
1106
|
-
{
|
1107
|
-
"internalType": "uint256",
|
1108
|
-
"name": "fixedFee",
|
1109
|
-
"type": "uint256"
|
1110
|
-
}
|
1111
|
-
],
|
1112
|
-
"internalType": "struct Fee",
|
1113
|
-
"name": "processingFee",
|
1114
|
-
"type": "tuple"
|
1115
|
-
},
|
1116
|
-
{
|
1117
|
-
"components": [
|
1118
|
-
{
|
1119
|
-
"internalType": "UFixed",
|
1120
|
-
"name": "fractionalFee",
|
1121
|
-
"type": "uint256"
|
1122
|
-
},
|
1123
|
-
{
|
1124
|
-
"internalType": "uint256",
|
1125
|
-
"name": "fixedFee",
|
1126
|
-
"type": "uint256"
|
1127
|
-
}
|
1128
|
-
],
|
1129
|
-
"internalType": "struct Fee",
|
1130
|
-
"name": "poolFee",
|
1131
|
-
"type": "tuple"
|
1132
|
-
},
|
1133
|
-
{
|
1134
|
-
"components": [
|
1135
|
-
{
|
1136
|
-
"internalType": "UFixed",
|
1137
|
-
"name": "fractionalFee",
|
1138
|
-
"type": "uint256"
|
1139
|
-
},
|
1140
|
-
{
|
1141
|
-
"internalType": "uint256",
|
1142
|
-
"name": "fixedFee",
|
1143
|
-
"type": "uint256"
|
1144
|
-
}
|
1145
|
-
],
|
1146
|
-
"internalType": "struct Fee",
|
1147
|
-
"name": "stakingFee",
|
1148
|
-
"type": "tuple"
|
1149
|
-
},
|
1150
|
-
{
|
1151
|
-
"components": [
|
1152
|
-
{
|
1153
|
-
"internalType": "UFixed",
|
1154
|
-
"name": "fractionalFee",
|
1155
|
-
"type": "uint256"
|
1156
|
-
},
|
1157
|
-
{
|
1158
|
-
"internalType": "uint256",
|
1159
|
-
"name": "fixedFee",
|
1160
|
-
"type": "uint256"
|
1161
|
-
}
|
1162
|
-
],
|
1163
|
-
"internalType": "struct Fee",
|
1164
|
-
"name": "performanceFee",
|
1165
|
-
"type": "tuple"
|
1166
|
-
},
|
1167
|
-
{
|
1168
|
-
"components": [
|
1169
|
-
{
|
1170
|
-
"internalType": "UFixed",
|
1171
|
-
"name": "fractionalFee",
|
1172
|
-
"type": "uint256"
|
1173
|
-
},
|
1174
|
-
{
|
1175
|
-
"internalType": "uint256",
|
1176
|
-
"name": "fixedFee",
|
1177
|
-
"type": "uint256"
|
1178
|
-
}
|
1179
|
-
],
|
1180
|
-
"internalType": "struct Fee",
|
1181
|
-
"name": "distributionFee",
|
1182
|
-
"type": "tuple"
|
1183
|
-
}
|
1184
|
-
],
|
1185
|
-
"internalType": "struct ITreasury.TreasuryInfo",
|
1186
|
-
"name": "info",
|
1187
|
-
"type": "tuple"
|
1242
|
+
"internalType": "address",
|
1243
|
+
"name": "",
|
1244
|
+
"type": "address"
|
1188
1245
|
}
|
1189
1246
|
],
|
1190
1247
|
"stateMutability": "view",
|
@@ -1193,73 +1250,78 @@
|
|
1193
1250
|
{
|
1194
1251
|
"inputs": [
|
1195
1252
|
{
|
1196
|
-
"internalType": "
|
1197
|
-
"name": "
|
1198
|
-
"type": "
|
1199
|
-
},
|
1200
|
-
{
|
1201
|
-
"internalType": "int8",
|
1202
|
-
"name": "exp",
|
1203
|
-
"type": "int8"
|
1253
|
+
"internalType": "Key32",
|
1254
|
+
"name": "key",
|
1255
|
+
"type": "bytes32"
|
1204
1256
|
}
|
1205
1257
|
],
|
1206
|
-
"name": "
|
1258
|
+
"name": "getState",
|
1207
1259
|
"outputs": [
|
1208
1260
|
{
|
1209
|
-
"internalType": "
|
1210
|
-
"name": "",
|
1211
|
-
"type": "
|
1261
|
+
"internalType": "StateId",
|
1262
|
+
"name": "state",
|
1263
|
+
"type": "uint8"
|
1212
1264
|
}
|
1213
1265
|
],
|
1214
|
-
"stateMutability": "
|
1266
|
+
"stateMutability": "view",
|
1215
1267
|
"type": "function"
|
1216
1268
|
},
|
1217
1269
|
{
|
1218
1270
|
"inputs": [
|
1219
1271
|
{
|
1220
|
-
"internalType": "
|
1221
|
-
"name": "
|
1222
|
-
"type": "
|
1272
|
+
"internalType": "ObjectType",
|
1273
|
+
"name": "objectType",
|
1274
|
+
"type": "uint8"
|
1223
1275
|
}
|
1224
1276
|
],
|
1225
|
-
"name": "
|
1277
|
+
"name": "hasLifecycle",
|
1226
1278
|
"outputs": [
|
1227
1279
|
{
|
1228
|
-
"internalType": "
|
1280
|
+
"internalType": "bool",
|
1229
1281
|
"name": "",
|
1230
|
-
"type": "
|
1282
|
+
"type": "bool"
|
1231
1283
|
}
|
1232
1284
|
],
|
1233
|
-
"stateMutability": "
|
1285
|
+
"stateMutability": "view",
|
1234
1286
|
"type": "function"
|
1235
1287
|
},
|
1236
1288
|
{
|
1237
1289
|
"inputs": [],
|
1238
|
-
"name": "
|
1290
|
+
"name": "isConsumingScheduledOp",
|
1239
1291
|
"outputs": [
|
1240
1292
|
{
|
1241
|
-
"internalType": "
|
1293
|
+
"internalType": "bytes4",
|
1242
1294
|
"name": "",
|
1243
|
-
"type": "
|
1295
|
+
"type": "bytes4"
|
1244
1296
|
}
|
1245
1297
|
],
|
1246
|
-
"stateMutability": "
|
1298
|
+
"stateMutability": "view",
|
1247
1299
|
"type": "function"
|
1248
1300
|
},
|
1249
1301
|
{
|
1250
1302
|
"inputs": [
|
1251
1303
|
{
|
1252
|
-
"internalType": "
|
1253
|
-
"name": "
|
1254
|
-
"type": "
|
1304
|
+
"internalType": "ObjectType",
|
1305
|
+
"name": "objectType",
|
1306
|
+
"type": "uint8"
|
1307
|
+
},
|
1308
|
+
{
|
1309
|
+
"internalType": "StateId",
|
1310
|
+
"name": "fromId",
|
1311
|
+
"type": "uint8"
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
"internalType": "StateId",
|
1315
|
+
"name": "toId",
|
1316
|
+
"type": "uint8"
|
1255
1317
|
}
|
1256
1318
|
],
|
1257
|
-
"name": "
|
1319
|
+
"name": "isValidTransition",
|
1258
1320
|
"outputs": [
|
1259
1321
|
{
|
1260
|
-
"internalType": "
|
1261
|
-
"name": "
|
1262
|
-
"type": "
|
1322
|
+
"internalType": "bool",
|
1323
|
+
"name": "",
|
1324
|
+
"type": "bool"
|
1263
1325
|
}
|
1264
1326
|
],
|
1265
1327
|
"stateMutability": "view",
|
@@ -1267,102 +1329,74 @@
|
|
1267
1329
|
},
|
1268
1330
|
{
|
1269
1331
|
"inputs": [],
|
1270
|
-
"name": "
|
1271
|
-
"outputs": [
|
1332
|
+
"name": "linkToRegisteredNftId",
|
1333
|
+
"outputs": [],
|
1334
|
+
"stateMutability": "nonpayable",
|
1335
|
+
"type": "function"
|
1336
|
+
},
|
1337
|
+
{
|
1338
|
+
"inputs": [
|
1339
|
+
{
|
1340
|
+
"internalType": "address",
|
1341
|
+
"name": "to",
|
1342
|
+
"type": "address"
|
1343
|
+
},
|
1272
1344
|
{
|
1273
1345
|
"internalType": "uint256",
|
1274
|
-
"name": "
|
1346
|
+
"name": "tokenId",
|
1275
1347
|
"type": "uint256"
|
1276
1348
|
}
|
1277
1349
|
],
|
1278
|
-
"
|
1350
|
+
"name": "nftMint",
|
1351
|
+
"outputs": [],
|
1352
|
+
"stateMutability": "nonpayable",
|
1279
1353
|
"type": "function"
|
1280
1354
|
},
|
1281
1355
|
{
|
1282
1356
|
"inputs": [
|
1283
1357
|
{
|
1284
|
-
"internalType": "
|
1285
|
-
"name": "
|
1286
|
-
"type": "
|
1287
|
-
}
|
1288
|
-
],
|
1289
|
-
"name": "getVersionInfo",
|
1290
|
-
"outputs": [
|
1358
|
+
"internalType": "address",
|
1359
|
+
"name": "from",
|
1360
|
+
"type": "address"
|
1361
|
+
},
|
1291
1362
|
{
|
1292
|
-
"
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
"name": "implementation",
|
1301
|
-
"type": "address"
|
1302
|
-
},
|
1303
|
-
{
|
1304
|
-
"internalType": "address",
|
1305
|
-
"name": "activatedBy",
|
1306
|
-
"type": "address"
|
1307
|
-
},
|
1308
|
-
{
|
1309
|
-
"internalType": "Timestamp",
|
1310
|
-
"name": "activatedAt",
|
1311
|
-
"type": "uint40"
|
1312
|
-
},
|
1313
|
-
{
|
1314
|
-
"internalType": "Blocknumber",
|
1315
|
-
"name": "activatedIn",
|
1316
|
-
"type": "uint32"
|
1317
|
-
}
|
1318
|
-
],
|
1319
|
-
"internalType": "struct IVersionable.VersionInfo",
|
1320
|
-
"name": "versionInfo",
|
1321
|
-
"type": "tuple"
|
1363
|
+
"internalType": "address",
|
1364
|
+
"name": "to",
|
1365
|
+
"type": "address"
|
1366
|
+
},
|
1367
|
+
{
|
1368
|
+
"internalType": "uint256",
|
1369
|
+
"name": "tokenId",
|
1370
|
+
"type": "uint256"
|
1322
1371
|
}
|
1323
1372
|
],
|
1324
|
-
"
|
1373
|
+
"name": "nftTransferFrom",
|
1374
|
+
"outputs": [],
|
1375
|
+
"stateMutability": "nonpayable",
|
1325
1376
|
"type": "function"
|
1326
1377
|
},
|
1327
1378
|
{
|
1328
|
-
"inputs": [
|
1329
|
-
"name": "getZeroFee",
|
1330
|
-
"outputs": [
|
1379
|
+
"inputs": [
|
1331
1380
|
{
|
1332
|
-
"
|
1333
|
-
|
1334
|
-
|
1335
|
-
"name": "fractionalFee",
|
1336
|
-
"type": "uint256"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"internalType": "uint256",
|
1340
|
-
"name": "fixedFee",
|
1341
|
-
"type": "uint256"
|
1342
|
-
}
|
1343
|
-
],
|
1344
|
-
"internalType": "struct Fee",
|
1345
|
-
"name": "fee",
|
1346
|
-
"type": "tuple"
|
1381
|
+
"internalType": "address",
|
1382
|
+
"name": "",
|
1383
|
+
"type": "address"
|
1347
1384
|
}
|
1348
1385
|
],
|
1349
|
-
"
|
1386
|
+
"name": "setAuthority",
|
1387
|
+
"outputs": [],
|
1388
|
+
"stateMutability": "nonpayable",
|
1350
1389
|
"type": "function"
|
1351
1390
|
},
|
1352
1391
|
{
|
1353
1392
|
"inputs": [
|
1354
1393
|
{
|
1355
|
-
"internalType": "
|
1356
|
-
"name": "
|
1357
|
-
"type": "bytes8"
|
1358
|
-
},
|
1359
|
-
{
|
1360
|
-
"internalType": "address",
|
1361
|
-
"name": "member",
|
1394
|
+
"internalType": "contract InstanceAccessManager",
|
1395
|
+
"name": "accessManager",
|
1362
1396
|
"type": "address"
|
1363
1397
|
}
|
1364
1398
|
],
|
1365
|
-
"name": "
|
1399
|
+
"name": "setInstanceAccessManager",
|
1366
1400
|
"outputs": [],
|
1367
1401
|
"stateMutability": "nonpayable",
|
1368
1402
|
"type": "function"
|
@@ -1370,17 +1404,12 @@
|
|
1370
1404
|
{
|
1371
1405
|
"inputs": [
|
1372
1406
|
{
|
1373
|
-
"internalType": "
|
1374
|
-
"name": "
|
1375
|
-
"type": "
|
1376
|
-
},
|
1377
|
-
{
|
1378
|
-
"internalType": "address",
|
1379
|
-
"name": "member",
|
1380
|
-
"type": "address"
|
1407
|
+
"internalType": "bytes4",
|
1408
|
+
"name": "interfaceId",
|
1409
|
+
"type": "bytes4"
|
1381
1410
|
}
|
1382
1411
|
],
|
1383
|
-
"name": "
|
1412
|
+
"name": "supportsInterface",
|
1384
1413
|
"outputs": [
|
1385
1414
|
{
|
1386
1415
|
"internalType": "bool",
|
@@ -1394,41 +1423,128 @@
|
|
1394
1423
|
{
|
1395
1424
|
"inputs": [
|
1396
1425
|
{
|
1397
|
-
"internalType": "
|
1398
|
-
"name": "
|
1399
|
-
"type": "
|
1426
|
+
"internalType": "ObjectType",
|
1427
|
+
"name": "objectType",
|
1428
|
+
"type": "uint8"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"internalType": "KeyId",
|
1432
|
+
"name": "id",
|
1433
|
+
"type": "bytes31"
|
1400
1434
|
}
|
1401
1435
|
],
|
1402
|
-
"name": "
|
1436
|
+
"name": "toKey32",
|
1403
1437
|
"outputs": [
|
1404
1438
|
{
|
1405
|
-
"internalType": "
|
1406
|
-
"name": "
|
1407
|
-
"type": "
|
1439
|
+
"internalType": "Key32",
|
1440
|
+
"name": "",
|
1441
|
+
"type": "bytes32"
|
1408
1442
|
}
|
1409
1443
|
],
|
1410
|
-
"stateMutability": "
|
1444
|
+
"stateMutability": "pure",
|
1411
1445
|
"type": "function"
|
1412
1446
|
},
|
1413
1447
|
{
|
1414
1448
|
"inputs": [
|
1415
1449
|
{
|
1416
|
-
"internalType": "
|
1417
|
-
"name": "
|
1418
|
-
"type": "
|
1450
|
+
"internalType": "NftId",
|
1451
|
+
"name": "applicationNftId",
|
1452
|
+
"type": "uint96"
|
1419
1453
|
},
|
1420
1454
|
{
|
1421
|
-
"
|
1422
|
-
|
1423
|
-
|
1455
|
+
"components": [
|
1456
|
+
{
|
1457
|
+
"internalType": "NftId",
|
1458
|
+
"name": "productNftId",
|
1459
|
+
"type": "uint96"
|
1460
|
+
},
|
1461
|
+
{
|
1462
|
+
"internalType": "NftId",
|
1463
|
+
"name": "bundleNftId",
|
1464
|
+
"type": "uint96"
|
1465
|
+
},
|
1466
|
+
{
|
1467
|
+
"internalType": "ReferralId",
|
1468
|
+
"name": "referralId",
|
1469
|
+
"type": "bytes8"
|
1470
|
+
},
|
1471
|
+
{
|
1472
|
+
"internalType": "RiskId",
|
1473
|
+
"name": "riskId",
|
1474
|
+
"type": "bytes8"
|
1475
|
+
},
|
1476
|
+
{
|
1477
|
+
"internalType": "uint256",
|
1478
|
+
"name": "sumInsuredAmount",
|
1479
|
+
"type": "uint256"
|
1480
|
+
},
|
1481
|
+
{
|
1482
|
+
"internalType": "uint256",
|
1483
|
+
"name": "premiumAmount",
|
1484
|
+
"type": "uint256"
|
1485
|
+
},
|
1486
|
+
{
|
1487
|
+
"internalType": "uint256",
|
1488
|
+
"name": "premiumPaidAmount",
|
1489
|
+
"type": "uint256"
|
1490
|
+
},
|
1491
|
+
{
|
1492
|
+
"internalType": "Seconds",
|
1493
|
+
"name": "lifetime",
|
1494
|
+
"type": "uint40"
|
1495
|
+
},
|
1496
|
+
{
|
1497
|
+
"internalType": "bytes",
|
1498
|
+
"name": "applicationData",
|
1499
|
+
"type": "bytes"
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"internalType": "bytes",
|
1503
|
+
"name": "policyData",
|
1504
|
+
"type": "bytes"
|
1505
|
+
},
|
1506
|
+
{
|
1507
|
+
"internalType": "uint16",
|
1508
|
+
"name": "claimsCount",
|
1509
|
+
"type": "uint16"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"internalType": "uint16",
|
1513
|
+
"name": "openClaimsCount",
|
1514
|
+
"type": "uint16"
|
1515
|
+
},
|
1516
|
+
{
|
1517
|
+
"internalType": "uint256",
|
1518
|
+
"name": "payoutAmount",
|
1519
|
+
"type": "uint256"
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
"internalType": "Timestamp",
|
1523
|
+
"name": "activatedAt",
|
1524
|
+
"type": "uint40"
|
1525
|
+
},
|
1526
|
+
{
|
1527
|
+
"internalType": "Timestamp",
|
1528
|
+
"name": "expiredAt",
|
1529
|
+
"type": "uint40"
|
1530
|
+
},
|
1531
|
+
{
|
1532
|
+
"internalType": "Timestamp",
|
1533
|
+
"name": "closedAt",
|
1534
|
+
"type": "uint40"
|
1535
|
+
}
|
1536
|
+
],
|
1537
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1538
|
+
"name": "policy",
|
1539
|
+
"type": "tuple"
|
1424
1540
|
},
|
1425
1541
|
{
|
1426
|
-
"internalType": "
|
1427
|
-
"name": "
|
1428
|
-
"type": "
|
1542
|
+
"internalType": "StateId",
|
1543
|
+
"name": "newState",
|
1544
|
+
"type": "uint8"
|
1429
1545
|
}
|
1430
1546
|
],
|
1431
|
-
"name": "
|
1547
|
+
"name": "updateApplication",
|
1432
1548
|
"outputs": [],
|
1433
1549
|
"stateMutability": "nonpayable",
|
1434
1550
|
"type": "function"
|
@@ -1436,41 +1552,99 @@
|
|
1436
1552
|
{
|
1437
1553
|
"inputs": [
|
1438
1554
|
{
|
1439
|
-
"internalType": "
|
1440
|
-
"name": "
|
1441
|
-
"type": "
|
1442
|
-
}
|
1443
|
-
],
|
1444
|
-
"name": "isInitialized",
|
1445
|
-
"outputs": [
|
1555
|
+
"internalType": "NftId",
|
1556
|
+
"name": "applicationNftId",
|
1557
|
+
"type": "uint96"
|
1558
|
+
},
|
1446
1559
|
{
|
1447
|
-
"internalType": "
|
1448
|
-
"name": "",
|
1449
|
-
"type": "
|
1560
|
+
"internalType": "StateId",
|
1561
|
+
"name": "newState",
|
1562
|
+
"type": "uint8"
|
1450
1563
|
}
|
1451
1564
|
],
|
1452
|
-
"
|
1565
|
+
"name": "updateApplicationState",
|
1566
|
+
"outputs": [],
|
1567
|
+
"stateMutability": "nonpayable",
|
1453
1568
|
"type": "function"
|
1454
1569
|
},
|
1455
1570
|
{
|
1456
1571
|
"inputs": [
|
1457
1572
|
{
|
1458
1573
|
"internalType": "NftId",
|
1459
|
-
"name": "
|
1574
|
+
"name": "bundleNftId",
|
1460
1575
|
"type": "uint96"
|
1461
1576
|
},
|
1462
1577
|
{
|
1463
|
-
"
|
1464
|
-
|
1465
|
-
|
1578
|
+
"components": [
|
1579
|
+
{
|
1580
|
+
"internalType": "NftId",
|
1581
|
+
"name": "poolNftId",
|
1582
|
+
"type": "uint96"
|
1583
|
+
},
|
1584
|
+
{
|
1585
|
+
"components": [
|
1586
|
+
{
|
1587
|
+
"internalType": "UFixed",
|
1588
|
+
"name": "fractionalFee",
|
1589
|
+
"type": "uint256"
|
1590
|
+
},
|
1591
|
+
{
|
1592
|
+
"internalType": "uint256",
|
1593
|
+
"name": "fixedFee",
|
1594
|
+
"type": "uint256"
|
1595
|
+
}
|
1596
|
+
],
|
1597
|
+
"internalType": "struct Fee",
|
1598
|
+
"name": "fee",
|
1599
|
+
"type": "tuple"
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
"internalType": "bytes",
|
1603
|
+
"name": "filter",
|
1604
|
+
"type": "bytes"
|
1605
|
+
},
|
1606
|
+
{
|
1607
|
+
"internalType": "Amount",
|
1608
|
+
"name": "capitalAmount",
|
1609
|
+
"type": "uint96"
|
1610
|
+
},
|
1611
|
+
{
|
1612
|
+
"internalType": "Amount",
|
1613
|
+
"name": "lockedAmount",
|
1614
|
+
"type": "uint96"
|
1615
|
+
},
|
1616
|
+
{
|
1617
|
+
"internalType": "Amount",
|
1618
|
+
"name": "feeAmount",
|
1619
|
+
"type": "uint96"
|
1620
|
+
},
|
1621
|
+
{
|
1622
|
+
"internalType": "Seconds",
|
1623
|
+
"name": "lifetime",
|
1624
|
+
"type": "uint40"
|
1625
|
+
},
|
1626
|
+
{
|
1627
|
+
"internalType": "Timestamp",
|
1628
|
+
"name": "expiredAt",
|
1629
|
+
"type": "uint40"
|
1630
|
+
},
|
1631
|
+
{
|
1632
|
+
"internalType": "Timestamp",
|
1633
|
+
"name": "closedAt",
|
1634
|
+
"type": "uint40"
|
1635
|
+
}
|
1636
|
+
],
|
1637
|
+
"internalType": "struct IBundle.BundleInfo",
|
1638
|
+
"name": "bundle",
|
1639
|
+
"type": "tuple"
|
1466
1640
|
},
|
1467
1641
|
{
|
1468
|
-
"internalType": "
|
1469
|
-
"name": "
|
1470
|
-
"type": "
|
1642
|
+
"internalType": "StateId",
|
1643
|
+
"name": "newState",
|
1644
|
+
"type": "uint8"
|
1471
1645
|
}
|
1472
1646
|
],
|
1473
|
-
"name": "
|
1647
|
+
"name": "updateBundle",
|
1474
1648
|
"outputs": [],
|
1475
1649
|
"stateMutability": "nonpayable",
|
1476
1650
|
"type": "function"
|
@@ -1479,28 +1653,16 @@
|
|
1479
1653
|
"inputs": [
|
1480
1654
|
{
|
1481
1655
|
"internalType": "NftId",
|
1482
|
-
"name": "
|
1656
|
+
"name": "bundleNftId",
|
1483
1657
|
"type": "uint96"
|
1484
1658
|
},
|
1485
1659
|
{
|
1486
|
-
"
|
1487
|
-
|
1488
|
-
|
1489
|
-
"name": "isVerifying",
|
1490
|
-
"type": "bool"
|
1491
|
-
},
|
1492
|
-
{
|
1493
|
-
"internalType": "UFixed",
|
1494
|
-
"name": "collateralizationLevel",
|
1495
|
-
"type": "uint256"
|
1496
|
-
}
|
1497
|
-
],
|
1498
|
-
"internalType": "struct IPool.PoolInfo",
|
1499
|
-
"name": "info",
|
1500
|
-
"type": "tuple"
|
1660
|
+
"internalType": "StateId",
|
1661
|
+
"name": "newState",
|
1662
|
+
"type": "uint8"
|
1501
1663
|
}
|
1502
1664
|
],
|
1503
|
-
"name": "
|
1665
|
+
"name": "updateBundleState",
|
1504
1666
|
"outputs": [],
|
1505
1667
|
"stateMutability": "nonpayable",
|
1506
1668
|
"type": "function"
|
@@ -1509,24 +1671,19 @@
|
|
1509
1671
|
"inputs": [
|
1510
1672
|
{
|
1511
1673
|
"internalType": "NftId",
|
1512
|
-
"name": "
|
1674
|
+
"name": "distributionNftId",
|
1513
1675
|
"type": "uint96"
|
1514
1676
|
},
|
1515
1677
|
{
|
1516
1678
|
"components": [
|
1517
1679
|
{
|
1518
1680
|
"internalType": "NftId",
|
1519
|
-
"name": "
|
1520
|
-
"type": "uint96"
|
1521
|
-
},
|
1522
|
-
{
|
1523
|
-
"internalType": "NftId",
|
1524
|
-
"name": "distributionNftId",
|
1681
|
+
"name": "productNftId",
|
1525
1682
|
"type": "uint96"
|
1526
1683
|
},
|
1527
1684
|
{
|
1528
|
-
"internalType": "contract
|
1529
|
-
"name": "
|
1685
|
+
"internalType": "contract TokenHandler",
|
1686
|
+
"name": "tokenHandler",
|
1530
1687
|
"type": "address"
|
1531
1688
|
},
|
1532
1689
|
{
|
@@ -1543,41 +1700,7 @@
|
|
1543
1700
|
}
|
1544
1701
|
],
|
1545
1702
|
"internalType": "struct Fee",
|
1546
|
-
"name": "
|
1547
|
-
"type": "tuple"
|
1548
|
-
},
|
1549
|
-
{
|
1550
|
-
"components": [
|
1551
|
-
{
|
1552
|
-
"internalType": "UFixed",
|
1553
|
-
"name": "fractionalFee",
|
1554
|
-
"type": "uint256"
|
1555
|
-
},
|
1556
|
-
{
|
1557
|
-
"internalType": "uint256",
|
1558
|
-
"name": "fixedFee",
|
1559
|
-
"type": "uint256"
|
1560
|
-
}
|
1561
|
-
],
|
1562
|
-
"internalType": "struct Fee",
|
1563
|
-
"name": "processingFee",
|
1564
|
-
"type": "tuple"
|
1565
|
-
},
|
1566
|
-
{
|
1567
|
-
"components": [
|
1568
|
-
{
|
1569
|
-
"internalType": "UFixed",
|
1570
|
-
"name": "fractionalFee",
|
1571
|
-
"type": "uint256"
|
1572
|
-
},
|
1573
|
-
{
|
1574
|
-
"internalType": "uint256",
|
1575
|
-
"name": "fixedFee",
|
1576
|
-
"type": "uint256"
|
1577
|
-
}
|
1578
|
-
],
|
1579
|
-
"internalType": "struct Fee",
|
1580
|
-
"name": "poolFee",
|
1703
|
+
"name": "minDistributionOwnerFee",
|
1581
1704
|
"type": "tuple"
|
1582
1705
|
},
|
1583
1706
|
{
|
@@ -1594,50 +1717,31 @@
|
|
1594
1717
|
}
|
1595
1718
|
],
|
1596
1719
|
"internalType": "struct Fee",
|
1597
|
-
"name": "
|
1720
|
+
"name": "distributionFee",
|
1598
1721
|
"type": "tuple"
|
1599
1722
|
},
|
1600
1723
|
{
|
1601
|
-
"
|
1602
|
-
|
1603
|
-
|
1604
|
-
"name": "fractionalFee",
|
1605
|
-
"type": "uint256"
|
1606
|
-
},
|
1607
|
-
{
|
1608
|
-
"internalType": "uint256",
|
1609
|
-
"name": "fixedFee",
|
1610
|
-
"type": "uint256"
|
1611
|
-
}
|
1612
|
-
],
|
1613
|
-
"internalType": "struct Fee",
|
1614
|
-
"name": "performanceFee",
|
1615
|
-
"type": "tuple"
|
1724
|
+
"internalType": "address",
|
1725
|
+
"name": "wallet",
|
1726
|
+
"type": "address"
|
1616
1727
|
},
|
1617
1728
|
{
|
1618
|
-
"
|
1619
|
-
|
1620
|
-
|
1621
|
-
"name": "fractionalFee",
|
1622
|
-
"type": "uint256"
|
1623
|
-
},
|
1624
|
-
{
|
1625
|
-
"internalType": "uint256",
|
1626
|
-
"name": "fixedFee",
|
1627
|
-
"type": "uint256"
|
1628
|
-
}
|
1629
|
-
],
|
1630
|
-
"internalType": "struct Fee",
|
1631
|
-
"name": "distributionFee",
|
1632
|
-
"type": "tuple"
|
1729
|
+
"internalType": "uint256",
|
1730
|
+
"name": "sumDistributionOwnerFees",
|
1731
|
+
"type": "uint256"
|
1633
1732
|
}
|
1634
1733
|
],
|
1635
|
-
"internalType": "struct
|
1636
|
-
"name": "
|
1734
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1735
|
+
"name": "setup",
|
1637
1736
|
"type": "tuple"
|
1737
|
+
},
|
1738
|
+
{
|
1739
|
+
"internalType": "StateId",
|
1740
|
+
"name": "newState",
|
1741
|
+
"type": "uint8"
|
1638
1742
|
}
|
1639
1743
|
],
|
1640
|
-
"name": "
|
1744
|
+
"name": "updateDistributionSetup",
|
1641
1745
|
"outputs": [],
|
1642
1746
|
"stateMutability": "nonpayable",
|
1643
1747
|
"type": "function"
|
@@ -1646,40 +1750,66 @@
|
|
1646
1750
|
"inputs": [
|
1647
1751
|
{
|
1648
1752
|
"internalType": "NftId",
|
1649
|
-
"name": "
|
1753
|
+
"name": "distributionNftId",
|
1650
1754
|
"type": "uint96"
|
1651
1755
|
},
|
1652
1756
|
{
|
1653
|
-
"internalType": "
|
1654
|
-
"name": "
|
1655
|
-
"type": "
|
1656
|
-
}
|
1657
|
-
],
|
1658
|
-
"name": "releasePolicy",
|
1659
|
-
"outputs": [
|
1660
|
-
{
|
1661
|
-
"internalType": "uint256",
|
1662
|
-
"name": "collateralAmount",
|
1663
|
-
"type": "uint256"
|
1757
|
+
"internalType": "StateId",
|
1758
|
+
"name": "newState",
|
1759
|
+
"type": "uint8"
|
1664
1760
|
}
|
1665
1761
|
],
|
1762
|
+
"name": "updateDistributionSetupState",
|
1763
|
+
"outputs": [],
|
1666
1764
|
"stateMutability": "nonpayable",
|
1667
1765
|
"type": "function"
|
1668
1766
|
},
|
1669
1767
|
{
|
1670
1768
|
"inputs": [
|
1671
1769
|
{
|
1672
|
-
"internalType": "
|
1673
|
-
"name": "
|
1674
|
-
"type": "
|
1770
|
+
"internalType": "NftId",
|
1771
|
+
"name": "nftId",
|
1772
|
+
"type": "uint96"
|
1675
1773
|
},
|
1676
1774
|
{
|
1677
|
-
"
|
1678
|
-
|
1679
|
-
|
1775
|
+
"components": [
|
1776
|
+
{
|
1777
|
+
"internalType": "DistributorType",
|
1778
|
+
"name": "distributorType",
|
1779
|
+
"type": "bytes8"
|
1780
|
+
},
|
1781
|
+
{
|
1782
|
+
"internalType": "bool",
|
1783
|
+
"name": "active",
|
1784
|
+
"type": "bool"
|
1785
|
+
},
|
1786
|
+
{
|
1787
|
+
"internalType": "bytes",
|
1788
|
+
"name": "data",
|
1789
|
+
"type": "bytes"
|
1790
|
+
},
|
1791
|
+
{
|
1792
|
+
"internalType": "uint256",
|
1793
|
+
"name": "sumCommisions",
|
1794
|
+
"type": "uint256"
|
1795
|
+
},
|
1796
|
+
{
|
1797
|
+
"internalType": "uint256",
|
1798
|
+
"name": "numPoliciesSold",
|
1799
|
+
"type": "uint256"
|
1800
|
+
}
|
1801
|
+
],
|
1802
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
1803
|
+
"name": "info",
|
1804
|
+
"type": "tuple"
|
1805
|
+
},
|
1806
|
+
{
|
1807
|
+
"internalType": "StateId",
|
1808
|
+
"name": "newState",
|
1809
|
+
"type": "uint8"
|
1680
1810
|
}
|
1681
1811
|
],
|
1682
|
-
"name": "
|
1812
|
+
"name": "updateDistributor",
|
1683
1813
|
"outputs": [],
|
1684
1814
|
"stateMutability": "nonpayable",
|
1685
1815
|
"type": "function"
|
@@ -1687,90 +1817,105 @@
|
|
1687
1817
|
{
|
1688
1818
|
"inputs": [
|
1689
1819
|
{
|
1690
|
-
"internalType": "
|
1691
|
-
"name": "
|
1692
|
-
"type": "
|
1693
|
-
}
|
1694
|
-
],
|
1695
|
-
"name": "roleExists",
|
1696
|
-
"outputs": [
|
1820
|
+
"internalType": "NftId",
|
1821
|
+
"name": "nftId",
|
1822
|
+
"type": "uint96"
|
1823
|
+
},
|
1697
1824
|
{
|
1698
|
-
"internalType": "
|
1699
|
-
"name": "",
|
1700
|
-
"type": "
|
1825
|
+
"internalType": "StateId",
|
1826
|
+
"name": "newState",
|
1827
|
+
"type": "uint8"
|
1701
1828
|
}
|
1702
1829
|
],
|
1703
|
-
"
|
1830
|
+
"name": "updateDistributorState",
|
1831
|
+
"outputs": [],
|
1832
|
+
"stateMutability": "nonpayable",
|
1704
1833
|
"type": "function"
|
1705
1834
|
},
|
1706
1835
|
{
|
1707
1836
|
"inputs": [
|
1708
1837
|
{
|
1709
|
-
"internalType": "
|
1710
|
-
"name": "
|
1711
|
-
"type": "
|
1838
|
+
"internalType": "Key32",
|
1839
|
+
"name": "distributorKey",
|
1840
|
+
"type": "bytes32"
|
1712
1841
|
},
|
1713
1842
|
{
|
1714
1843
|
"components": [
|
1715
1844
|
{
|
1716
|
-
"internalType": "
|
1717
|
-
"name": "
|
1718
|
-
"type": "
|
1845
|
+
"internalType": "string",
|
1846
|
+
"name": "name",
|
1847
|
+
"type": "string"
|
1719
1848
|
},
|
1720
1849
|
{
|
1721
|
-
"
|
1722
|
-
|
1723
|
-
|
1724
|
-
"name": "fractionalFee",
|
1725
|
-
"type": "uint256"
|
1726
|
-
},
|
1727
|
-
{
|
1728
|
-
"internalType": "uint256",
|
1729
|
-
"name": "fixedFee",
|
1730
|
-
"type": "uint256"
|
1731
|
-
}
|
1732
|
-
],
|
1733
|
-
"internalType": "struct Fee",
|
1734
|
-
"name": "fee",
|
1735
|
-
"type": "tuple"
|
1850
|
+
"internalType": "UFixed",
|
1851
|
+
"name": "minDiscountPercentage",
|
1852
|
+
"type": "uint256"
|
1736
1853
|
},
|
1737
1854
|
{
|
1738
|
-
"internalType": "
|
1739
|
-
"name": "
|
1740
|
-
"type": "
|
1855
|
+
"internalType": "UFixed",
|
1856
|
+
"name": "maxDiscountPercentage",
|
1857
|
+
"type": "uint256"
|
1741
1858
|
},
|
1742
1859
|
{
|
1743
|
-
"internalType": "
|
1744
|
-
"name": "
|
1860
|
+
"internalType": "UFixed",
|
1861
|
+
"name": "commissionPercentage",
|
1745
1862
|
"type": "uint256"
|
1746
1863
|
},
|
1747
1864
|
{
|
1748
|
-
"internalType": "
|
1749
|
-
"name": "
|
1750
|
-
"type": "
|
1865
|
+
"internalType": "uint32",
|
1866
|
+
"name": "maxReferralCount",
|
1867
|
+
"type": "uint32"
|
1751
1868
|
},
|
1752
1869
|
{
|
1753
|
-
"internalType": "
|
1754
|
-
"name": "
|
1755
|
-
"type": "
|
1870
|
+
"internalType": "uint32",
|
1871
|
+
"name": "maxReferralLifetime",
|
1872
|
+
"type": "uint32"
|
1756
1873
|
},
|
1757
1874
|
{
|
1758
|
-
"internalType": "
|
1759
|
-
"name": "
|
1760
|
-
"type": "
|
1875
|
+
"internalType": "bool",
|
1876
|
+
"name": "allowSelfReferrals",
|
1877
|
+
"type": "bool"
|
1761
1878
|
},
|
1762
1879
|
{
|
1763
|
-
"internalType": "
|
1764
|
-
"name": "
|
1765
|
-
"type": "
|
1880
|
+
"internalType": "bool",
|
1881
|
+
"name": "allowRenewals",
|
1882
|
+
"type": "bool"
|
1883
|
+
},
|
1884
|
+
{
|
1885
|
+
"internalType": "bytes",
|
1886
|
+
"name": "data",
|
1887
|
+
"type": "bytes"
|
1766
1888
|
}
|
1767
1889
|
],
|
1768
|
-
"internalType": "struct
|
1769
|
-
"name": "
|
1890
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
1891
|
+
"name": "info",
|
1770
1892
|
"type": "tuple"
|
1893
|
+
},
|
1894
|
+
{
|
1895
|
+
"internalType": "StateId",
|
1896
|
+
"name": "newState",
|
1897
|
+
"type": "uint8"
|
1898
|
+
}
|
1899
|
+
],
|
1900
|
+
"name": "updateDistributorType",
|
1901
|
+
"outputs": [],
|
1902
|
+
"stateMutability": "nonpayable",
|
1903
|
+
"type": "function"
|
1904
|
+
},
|
1905
|
+
{
|
1906
|
+
"inputs": [
|
1907
|
+
{
|
1908
|
+
"internalType": "Key32",
|
1909
|
+
"name": "distributorKey",
|
1910
|
+
"type": "bytes32"
|
1911
|
+
},
|
1912
|
+
{
|
1913
|
+
"internalType": "StateId",
|
1914
|
+
"name": "newState",
|
1915
|
+
"type": "uint8"
|
1771
1916
|
}
|
1772
1917
|
],
|
1773
|
-
"name": "
|
1918
|
+
"name": "updateDistributorTypeState",
|
1774
1919
|
"outputs": [],
|
1775
1920
|
"stateMutability": "nonpayable",
|
1776
1921
|
"type": "function"
|
@@ -1799,11 +1944,6 @@
|
|
1799
1944
|
"name": "referralId",
|
1800
1945
|
"type": "bytes8"
|
1801
1946
|
},
|
1802
|
-
{
|
1803
|
-
"internalType": "address",
|
1804
|
-
"name": "beneficiary",
|
1805
|
-
"type": "address"
|
1806
|
-
},
|
1807
1947
|
{
|
1808
1948
|
"internalType": "RiskId",
|
1809
1949
|
"name": "riskId",
|
@@ -1825,9 +1965,9 @@
|
|
1825
1965
|
"type": "uint256"
|
1826
1966
|
},
|
1827
1967
|
{
|
1828
|
-
"internalType": "
|
1968
|
+
"internalType": "Seconds",
|
1829
1969
|
"name": "lifetime",
|
1830
|
-
"type": "
|
1970
|
+
"type": "uint40"
|
1831
1971
|
},
|
1832
1972
|
{
|
1833
1973
|
"internalType": "bytes",
|
@@ -1839,6 +1979,21 @@
|
|
1839
1979
|
"name": "policyData",
|
1840
1980
|
"type": "bytes"
|
1841
1981
|
},
|
1982
|
+
{
|
1983
|
+
"internalType": "uint16",
|
1984
|
+
"name": "claimsCount",
|
1985
|
+
"type": "uint16"
|
1986
|
+
},
|
1987
|
+
{
|
1988
|
+
"internalType": "uint16",
|
1989
|
+
"name": "openClaimsCount",
|
1990
|
+
"type": "uint16"
|
1991
|
+
},
|
1992
|
+
{
|
1993
|
+
"internalType": "uint256",
|
1994
|
+
"name": "payoutAmount",
|
1995
|
+
"type": "uint256"
|
1996
|
+
},
|
1842
1997
|
{
|
1843
1998
|
"internalType": "Timestamp",
|
1844
1999
|
"name": "activatedAt",
|
@@ -1856,11 +2011,16 @@
|
|
1856
2011
|
}
|
1857
2012
|
],
|
1858
2013
|
"internalType": "struct IPolicy.PolicyInfo",
|
1859
|
-
"name": "
|
2014
|
+
"name": "policy",
|
1860
2015
|
"type": "tuple"
|
2016
|
+
},
|
2017
|
+
{
|
2018
|
+
"internalType": "StateId",
|
2019
|
+
"name": "newState",
|
2020
|
+
"type": "uint8"
|
1861
2021
|
}
|
1862
2022
|
],
|
1863
|
-
"name": "
|
2023
|
+
"name": "updatePolicy",
|
1864
2024
|
"outputs": [],
|
1865
2025
|
"stateMutability": "nonpayable",
|
1866
2026
|
"type": "function"
|
@@ -1868,15 +2028,58 @@
|
|
1868
2028
|
{
|
1869
2029
|
"inputs": [
|
1870
2030
|
{
|
1871
|
-
"internalType": "
|
1872
|
-
"name": "
|
1873
|
-
"type": "
|
2031
|
+
"internalType": "NftId",
|
2032
|
+
"name": "policyNftId",
|
2033
|
+
"type": "uint96"
|
2034
|
+
},
|
2035
|
+
{
|
2036
|
+
"internalType": "StateId",
|
2037
|
+
"name": "newState",
|
2038
|
+
"type": "uint8"
|
2039
|
+
}
|
2040
|
+
],
|
2041
|
+
"name": "updatePolicyState",
|
2042
|
+
"outputs": [],
|
2043
|
+
"stateMutability": "nonpayable",
|
2044
|
+
"type": "function"
|
2045
|
+
},
|
2046
|
+
{
|
2047
|
+
"inputs": [
|
2048
|
+
{
|
2049
|
+
"internalType": "NftId",
|
2050
|
+
"name": "poolNftId",
|
2051
|
+
"type": "uint96"
|
1874
2052
|
},
|
1875
2053
|
{
|
1876
2054
|
"components": [
|
1877
2055
|
{
|
1878
|
-
"internalType": "
|
1879
|
-
"name": "
|
2056
|
+
"internalType": "string",
|
2057
|
+
"name": "name",
|
2058
|
+
"type": "string"
|
2059
|
+
},
|
2060
|
+
{
|
2061
|
+
"internalType": "contract IERC20Metadata",
|
2062
|
+
"name": "token",
|
2063
|
+
"type": "address"
|
2064
|
+
},
|
2065
|
+
{
|
2066
|
+
"internalType": "contract TokenHandler",
|
2067
|
+
"name": "tokenHandler",
|
2068
|
+
"type": "address"
|
2069
|
+
},
|
2070
|
+
{
|
2071
|
+
"internalType": "address",
|
2072
|
+
"name": "wallet",
|
2073
|
+
"type": "address"
|
2074
|
+
},
|
2075
|
+
{
|
2076
|
+
"internalType": "Amount",
|
2077
|
+
"name": "balanceAmount",
|
2078
|
+
"type": "uint96"
|
2079
|
+
},
|
2080
|
+
{
|
2081
|
+
"internalType": "Amount",
|
2082
|
+
"name": "feeAmount",
|
1880
2083
|
"type": "uint96"
|
1881
2084
|
},
|
1882
2085
|
{
|
@@ -1885,12 +2088,17 @@
|
|
1885
2088
|
"type": "bytes"
|
1886
2089
|
}
|
1887
2090
|
],
|
1888
|
-
"internalType": "struct
|
2091
|
+
"internalType": "struct IComponents.ComponentInfo",
|
1889
2092
|
"name": "info",
|
1890
2093
|
"type": "tuple"
|
2094
|
+
},
|
2095
|
+
{
|
2096
|
+
"internalType": "StateId",
|
2097
|
+
"name": "newState",
|
2098
|
+
"type": "uint8"
|
1891
2099
|
}
|
1892
2100
|
],
|
1893
|
-
"name": "
|
2101
|
+
"name": "updatePoolSetup",
|
1894
2102
|
"outputs": [],
|
1895
2103
|
"stateMutability": "nonpayable",
|
1896
2104
|
"type": "function"
|
@@ -1898,17 +2106,17 @@
|
|
1898
2106
|
{
|
1899
2107
|
"inputs": [
|
1900
2108
|
{
|
1901
|
-
"internalType": "
|
1902
|
-
"name": "
|
1903
|
-
"type": "
|
2109
|
+
"internalType": "NftId",
|
2110
|
+
"name": "poolNftId",
|
2111
|
+
"type": "uint96"
|
1904
2112
|
},
|
1905
2113
|
{
|
1906
|
-
"internalType": "
|
1907
|
-
"name": "
|
1908
|
-
"type": "
|
2114
|
+
"internalType": "StateId",
|
2115
|
+
"name": "newState",
|
2116
|
+
"type": "uint8"
|
1909
2117
|
}
|
1910
2118
|
],
|
1911
|
-
"name": "
|
2119
|
+
"name": "updatePoolSetupState",
|
1912
2120
|
"outputs": [],
|
1913
2121
|
"stateMutability": "nonpayable",
|
1914
2122
|
"type": "function"
|
@@ -1923,9 +2131,14 @@
|
|
1923
2131
|
{
|
1924
2132
|
"components": [
|
1925
2133
|
{
|
1926
|
-
"internalType": "
|
1927
|
-
"name": "
|
1928
|
-
"type": "
|
2134
|
+
"internalType": "contract IERC20Metadata",
|
2135
|
+
"name": "token",
|
2136
|
+
"type": "address"
|
2137
|
+
},
|
2138
|
+
{
|
2139
|
+
"internalType": "contract TokenHandler",
|
2140
|
+
"name": "tokenHandler",
|
2141
|
+
"type": "address"
|
1929
2142
|
},
|
1930
2143
|
{
|
1931
2144
|
"internalType": "NftId",
|
@@ -1933,9 +2146,9 @@
|
|
1933
2146
|
"type": "uint96"
|
1934
2147
|
},
|
1935
2148
|
{
|
1936
|
-
"internalType": "
|
1937
|
-
"name": "
|
1938
|
-
"type": "
|
2149
|
+
"internalType": "NftId",
|
2150
|
+
"name": "poolNftId",
|
2151
|
+
"type": "uint96"
|
1939
2152
|
},
|
1940
2153
|
{
|
1941
2154
|
"components": [
|
@@ -1972,117 +2185,45 @@
|
|
1972
2185
|
"type": "tuple"
|
1973
2186
|
},
|
1974
2187
|
{
|
1975
|
-
"
|
1976
|
-
|
1977
|
-
|
1978
|
-
"name": "fractionalFee",
|
1979
|
-
"type": "uint256"
|
1980
|
-
},
|
1981
|
-
{
|
1982
|
-
"internalType": "uint256",
|
1983
|
-
"name": "fixedFee",
|
1984
|
-
"type": "uint256"
|
1985
|
-
}
|
1986
|
-
],
|
1987
|
-
"internalType": "struct Fee",
|
1988
|
-
"name": "poolFee",
|
1989
|
-
"type": "tuple"
|
1990
|
-
},
|
1991
|
-
{
|
1992
|
-
"components": [
|
1993
|
-
{
|
1994
|
-
"internalType": "UFixed",
|
1995
|
-
"name": "fractionalFee",
|
1996
|
-
"type": "uint256"
|
1997
|
-
},
|
1998
|
-
{
|
1999
|
-
"internalType": "uint256",
|
2000
|
-
"name": "fixedFee",
|
2001
|
-
"type": "uint256"
|
2002
|
-
}
|
2003
|
-
],
|
2004
|
-
"internalType": "struct Fee",
|
2005
|
-
"name": "stakingFee",
|
2006
|
-
"type": "tuple"
|
2007
|
-
},
|
2008
|
-
{
|
2009
|
-
"components": [
|
2010
|
-
{
|
2011
|
-
"internalType": "UFixed",
|
2012
|
-
"name": "fractionalFee",
|
2013
|
-
"type": "uint256"
|
2014
|
-
},
|
2015
|
-
{
|
2016
|
-
"internalType": "uint256",
|
2017
|
-
"name": "fixedFee",
|
2018
|
-
"type": "uint256"
|
2019
|
-
}
|
2020
|
-
],
|
2021
|
-
"internalType": "struct Fee",
|
2022
|
-
"name": "performanceFee",
|
2023
|
-
"type": "tuple"
|
2188
|
+
"internalType": "bool",
|
2189
|
+
"name": "isIntercepting",
|
2190
|
+
"type": "bool"
|
2024
2191
|
},
|
2025
2192
|
{
|
2026
|
-
"
|
2027
|
-
|
2028
|
-
|
2029
|
-
"name": "fractionalFee",
|
2030
|
-
"type": "uint256"
|
2031
|
-
},
|
2032
|
-
{
|
2033
|
-
"internalType": "uint256",
|
2034
|
-
"name": "fixedFee",
|
2035
|
-
"type": "uint256"
|
2036
|
-
}
|
2037
|
-
],
|
2038
|
-
"internalType": "struct Fee",
|
2039
|
-
"name": "distributionFee",
|
2040
|
-
"type": "tuple"
|
2193
|
+
"internalType": "address",
|
2194
|
+
"name": "wallet",
|
2195
|
+
"type": "address"
|
2041
2196
|
}
|
2042
2197
|
],
|
2043
|
-
"internalType": "struct
|
2044
|
-
"name": "
|
2198
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
2199
|
+
"name": "setup",
|
2045
2200
|
"type": "tuple"
|
2201
|
+
},
|
2202
|
+
{
|
2203
|
+
"internalType": "StateId",
|
2204
|
+
"name": "newState",
|
2205
|
+
"type": "uint8"
|
2046
2206
|
}
|
2047
2207
|
],
|
2048
|
-
"name": "
|
2208
|
+
"name": "updateProductSetup",
|
2049
2209
|
"outputs": [],
|
2050
2210
|
"stateMutability": "nonpayable",
|
2051
2211
|
"type": "function"
|
2052
2212
|
},
|
2053
|
-
{
|
2054
|
-
"inputs": [
|
2055
|
-
{
|
2056
|
-
"internalType": "bytes4",
|
2057
|
-
"name": "interfaceId",
|
2058
|
-
"type": "bytes4"
|
2059
|
-
}
|
2060
|
-
],
|
2061
|
-
"name": "supportsInterface",
|
2062
|
-
"outputs": [
|
2063
|
-
{
|
2064
|
-
"internalType": "bool",
|
2065
|
-
"name": "",
|
2066
|
-
"type": "bool"
|
2067
|
-
}
|
2068
|
-
],
|
2069
|
-
"stateMutability": "view",
|
2070
|
-
"type": "function"
|
2071
|
-
},
|
2072
2213
|
{
|
2073
2214
|
"inputs": [
|
2074
2215
|
{
|
2075
2216
|
"internalType": "NftId",
|
2076
|
-
"name": "
|
2217
|
+
"name": "productNftId",
|
2077
2218
|
"type": "uint96"
|
2078
2219
|
},
|
2079
2220
|
{
|
2080
2221
|
"internalType": "StateId",
|
2081
|
-
"name": "
|
2222
|
+
"name": "newState",
|
2082
2223
|
"type": "uint8"
|
2083
2224
|
}
|
2084
2225
|
],
|
2085
|
-
"name": "
|
2226
|
+
"name": "updateProductSetupState",
|
2086
2227
|
"outputs": [],
|
2087
2228
|
"stateMutability": "nonpayable",
|
2088
2229
|
"type": "function"
|
@@ -2090,17 +2231,59 @@
|
|
2090
2231
|
{
|
2091
2232
|
"inputs": [
|
2092
2233
|
{
|
2093
|
-
"internalType": "
|
2094
|
-
"name": "
|
2095
|
-
"type": "
|
2234
|
+
"internalType": "Key32",
|
2235
|
+
"name": "referralKey",
|
2236
|
+
"type": "bytes32"
|
2237
|
+
},
|
2238
|
+
{
|
2239
|
+
"components": [
|
2240
|
+
{
|
2241
|
+
"internalType": "NftId",
|
2242
|
+
"name": "distributorNftId",
|
2243
|
+
"type": "uint96"
|
2244
|
+
},
|
2245
|
+
{
|
2246
|
+
"internalType": "string",
|
2247
|
+
"name": "referralCode",
|
2248
|
+
"type": "string"
|
2249
|
+
},
|
2250
|
+
{
|
2251
|
+
"internalType": "UFixed",
|
2252
|
+
"name": "discountPercentage",
|
2253
|
+
"type": "uint256"
|
2254
|
+
},
|
2255
|
+
{
|
2256
|
+
"internalType": "uint32",
|
2257
|
+
"name": "maxReferrals",
|
2258
|
+
"type": "uint32"
|
2259
|
+
},
|
2260
|
+
{
|
2261
|
+
"internalType": "uint32",
|
2262
|
+
"name": "usedReferrals",
|
2263
|
+
"type": "uint32"
|
2264
|
+
},
|
2265
|
+
{
|
2266
|
+
"internalType": "Timestamp",
|
2267
|
+
"name": "expiryAt",
|
2268
|
+
"type": "uint40"
|
2269
|
+
},
|
2270
|
+
{
|
2271
|
+
"internalType": "bytes",
|
2272
|
+
"name": "data",
|
2273
|
+
"type": "bytes"
|
2274
|
+
}
|
2275
|
+
],
|
2276
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
2277
|
+
"name": "referralInfo",
|
2278
|
+
"type": "tuple"
|
2096
2279
|
},
|
2097
2280
|
{
|
2098
2281
|
"internalType": "StateId",
|
2099
|
-
"name": "
|
2282
|
+
"name": "newState",
|
2100
2283
|
"type": "uint8"
|
2101
2284
|
}
|
2102
2285
|
],
|
2103
|
-
"name": "
|
2286
|
+
"name": "updateReferral",
|
2104
2287
|
"outputs": [],
|
2105
2288
|
"stateMutability": "nonpayable",
|
2106
2289
|
"type": "function"
|
@@ -2108,17 +2291,17 @@
|
|
2108
2291
|
{
|
2109
2292
|
"inputs": [
|
2110
2293
|
{
|
2111
|
-
"internalType": "
|
2112
|
-
"name": "
|
2113
|
-
"type": "
|
2294
|
+
"internalType": "Key32",
|
2295
|
+
"name": "referralKey",
|
2296
|
+
"type": "bytes32"
|
2114
2297
|
},
|
2115
2298
|
{
|
2116
2299
|
"internalType": "StateId",
|
2117
|
-
"name": "
|
2300
|
+
"name": "newState",
|
2118
2301
|
"type": "uint8"
|
2119
2302
|
}
|
2120
2303
|
],
|
2121
|
-
"name": "
|
2304
|
+
"name": "updateReferralState",
|
2122
2305
|
"outputs": [],
|
2123
2306
|
"stateMutability": "nonpayable",
|
2124
2307
|
"type": "function"
|
@@ -2126,17 +2309,34 @@
|
|
2126
2309
|
{
|
2127
2310
|
"inputs": [
|
2128
2311
|
{
|
2129
|
-
"internalType": "
|
2130
|
-
"name": "
|
2131
|
-
"type": "
|
2312
|
+
"internalType": "RiskId",
|
2313
|
+
"name": "riskId",
|
2314
|
+
"type": "bytes8"
|
2315
|
+
},
|
2316
|
+
{
|
2317
|
+
"components": [
|
2318
|
+
{
|
2319
|
+
"internalType": "NftId",
|
2320
|
+
"name": "productNftId",
|
2321
|
+
"type": "uint96"
|
2322
|
+
},
|
2323
|
+
{
|
2324
|
+
"internalType": "bytes",
|
2325
|
+
"name": "data",
|
2326
|
+
"type": "bytes"
|
2327
|
+
}
|
2328
|
+
],
|
2329
|
+
"internalType": "struct IRisk.RiskInfo",
|
2330
|
+
"name": "risk",
|
2331
|
+
"type": "tuple"
|
2132
2332
|
},
|
2133
2333
|
{
|
2134
2334
|
"internalType": "StateId",
|
2135
|
-
"name": "
|
2335
|
+
"name": "newState",
|
2136
2336
|
"type": "uint8"
|
2137
2337
|
}
|
2138
2338
|
],
|
2139
|
-
"name": "
|
2339
|
+
"name": "updateRisk",
|
2140
2340
|
"outputs": [],
|
2141
2341
|
"stateMutability": "nonpayable",
|
2142
2342
|
"type": "function"
|
@@ -2144,22 +2344,17 @@
|
|
2144
2344
|
{
|
2145
2345
|
"inputs": [
|
2146
2346
|
{
|
2147
|
-
"internalType": "
|
2148
|
-
"name": "
|
2149
|
-
"type": "
|
2150
|
-
},
|
2151
|
-
{
|
2152
|
-
"internalType": "address",
|
2153
|
-
"name": "activatedBy",
|
2154
|
-
"type": "address"
|
2347
|
+
"internalType": "RiskId",
|
2348
|
+
"name": "riskId",
|
2349
|
+
"type": "bytes8"
|
2155
2350
|
},
|
2156
2351
|
{
|
2157
|
-
"internalType": "
|
2158
|
-
"name": "
|
2159
|
-
"type": "
|
2352
|
+
"internalType": "StateId",
|
2353
|
+
"name": "newState",
|
2354
|
+
"type": "uint8"
|
2160
2355
|
}
|
2161
2356
|
],
|
2162
|
-
"name": "
|
2357
|
+
"name": "updateRiskState",
|
2163
2358
|
"outputs": [],
|
2164
2359
|
"stateMutability": "nonpayable",
|
2165
2360
|
"type": "function"
|