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