@etherisc/gif-next 0.0.2-f29e479-370 → 0.0.2-f2df3e2-873

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. package/README.md +6 -83
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +78 -89
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +139 -140
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +156 -64
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +181 -112
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +353 -176
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +162 -138
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +299 -245
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +83 -162
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +527 -400
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +175 -51
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +500 -612
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +472 -126
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +253 -236
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +305 -211
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +71 -23
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +86 -31
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +56 -73
  50. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  53. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  58. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +291 -100
  60. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +46 -22
  62. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +422 -252
  64. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +78 -14
  66. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +373 -87
  68. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +55 -7
  70. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +579 -123
  72. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +71 -47
  74. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +200 -46
  76. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +241 -188
  78. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +251 -58
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +444 -25
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +430 -76
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +511 -14
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +80 -14
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +544 -153
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +51 -27
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +562 -52
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +24 -12
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +115 -52
  98. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +16 -12
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +19 -0
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +0 -24
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  108. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.json +31 -12
  110. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  112. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +18 -37
  114. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +7 -7
  116. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +23 -11
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
  120. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  121. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  122. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  124. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  126. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IService.sol/IService.json +80 -14
  128. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  131. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  132. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +3 -3
  137. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  138. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  139. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  140. package/artifacts/contracts/shared/Service.sol/Service.json +87 -16
  141. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  142. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  143. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +3 -3
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +102 -27
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  157. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  159. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  160. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  161. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  162. package/artifacts/contracts/types/Amount.sol/AmountLib.json +185 -0
  163. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  165. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +83 -4
  168. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  170. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
  172. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  174. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  176. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  178. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  181. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +116 -7
  183. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  185. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  187. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  189. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  191. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  193. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  195. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  197. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  199. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  201. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  203. package/contracts/components/Component.sol +99 -87
  204. package/contracts/components/Distribution.sol +18 -21
  205. package/contracts/components/IComponent.sol +40 -18
  206. package/contracts/components/IDistributionComponent.sol +1 -22
  207. package/contracts/components/IPoolComponent.sol +73 -47
  208. package/contracts/components/IProductComponent.sol +3 -2
  209. package/contracts/components/Pool.sol +178 -130
  210. package/contracts/components/Product.sol +157 -71
  211. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  212. package/contracts/instance/BundleManager.sol +10 -9
  213. package/contracts/instance/Cloneable.sol +7 -2
  214. package/contracts/instance/IInstance.sol +37 -27
  215. package/contracts/instance/IInstanceService.sol +18 -9
  216. package/contracts/instance/Instance.sol +117 -98
  217. package/contracts/instance/InstanceAccessManager.sol +388 -158
  218. package/contracts/instance/InstanceReader.sol +36 -12
  219. package/contracts/instance/InstanceService.sol +193 -191
  220. package/contracts/instance/ObjectManager.sol +6 -8
  221. package/contracts/instance/base/ComponentService.sol +17 -30
  222. package/contracts/instance/base/KeyValueStore.sol +13 -5
  223. package/contracts/instance/base/Lifecycle.sol +23 -6
  224. package/contracts/instance/module/IAccess.sol +21 -14
  225. package/contracts/instance/module/IBundle.sol +8 -5
  226. package/contracts/instance/module/IComponents.sol +41 -0
  227. package/contracts/instance/module/IDistribution.sol +2 -1
  228. package/contracts/instance/module/IPolicy.sol +37 -7
  229. package/contracts/instance/module/ISetup.sol +7 -22
  230. package/contracts/instance/service/ApplicationService.sol +137 -50
  231. package/contracts/instance/service/BundleService.sol +221 -83
  232. package/contracts/instance/service/ClaimService.sol +114 -26
  233. package/contracts/instance/service/DistributionService.sol +174 -118
  234. package/contracts/instance/service/IApplicationService.sol +9 -13
  235. package/contracts/instance/service/IBundleService.sol +68 -26
  236. package/contracts/instance/service/IClaimService.sol +46 -15
  237. package/contracts/instance/service/IDistributionService.sol +20 -4
  238. package/contracts/instance/service/IPolicyService.sol +69 -21
  239. package/contracts/instance/service/IPoolService.sol +82 -3
  240. package/contracts/instance/service/PolicyService.sol +297 -232
  241. package/contracts/instance/service/PoolService.sol +214 -20
  242. package/contracts/instance/service/ProductService.sol +31 -54
  243. package/contracts/registry/ChainNft.sol +8 -0
  244. package/contracts/registry/IRegistry.sol +2 -0
  245. package/contracts/registry/IRegistryService.sol +4 -3
  246. package/contracts/registry/ITransferInterceptor.sol +1 -0
  247. package/contracts/registry/Registry.sol +23 -20
  248. package/contracts/registry/RegistryService.sol +15 -16
  249. package/contracts/registry/ReleaseManager.sol +20 -18
  250. package/contracts/shared/IService.sol +4 -6
  251. package/contracts/shared/Registerable.sol +2 -2
  252. package/contracts/shared/Service.sol +21 -7
  253. package/contracts/shared/TokenHandler.sol +11 -5
  254. package/contracts/test/TestService.sol +1 -1
  255. package/contracts/types/Amount.sol +65 -0
  256. package/contracts/types/Blocknumber.sol +1 -0
  257. package/contracts/types/ClaimId.sol +25 -2
  258. package/contracts/types/Fee.sol +13 -5
  259. package/contracts/types/NftId.sol +8 -0
  260. package/contracts/types/ObjectType.sol +6 -5
  261. package/contracts/types/PayoutId.sol +33 -5
  262. package/contracts/types/Referral.sol +4 -0
  263. package/contracts/types/RoleId.sol +13 -6
  264. package/contracts/types/Seconds.sol +54 -0
  265. package/contracts/types/StateId.sol +7 -2
  266. package/contracts/types/Timestamp.sol +18 -13
  267. package/contracts/types/UFixed.sol +1 -0
  268. package/contracts/types/Version.sol +1 -0
  269. package/package.json +1 -1
@@ -41,6 +41,72 @@
41
41
  "name": "AccessManagedUnauthorized",
42
42
  "type": "error"
43
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
+ },
44
110
  {
45
111
  "inputs": [
46
112
  {
@@ -327,9 +393,9 @@
327
393
  "type": "uint256"
328
394
  },
329
395
  {
330
- "internalType": "uint256",
396
+ "internalType": "Seconds",
331
397
  "name": "lifetime",
332
- "type": "uint256"
398
+ "type": "uint40"
333
399
  },
334
400
  {
335
401
  "internalType": "bytes",
@@ -352,9 +418,9 @@
352
418
  "type": "uint16"
353
419
  },
354
420
  {
355
- "internalType": "uint256",
421
+ "internalType": "Amount",
356
422
  "name": "payoutAmount",
357
- "type": "uint256"
423
+ "type": "uint96"
358
424
  },
359
425
  {
360
426
  "internalType": "Timestamp",
@@ -419,24 +485,24 @@
419
485
  "type": "bytes"
420
486
  },
421
487
  {
422
- "internalType": "uint256",
488
+ "internalType": "Amount",
423
489
  "name": "capitalAmount",
424
- "type": "uint256"
490
+ "type": "uint96"
425
491
  },
426
492
  {
427
- "internalType": "uint256",
493
+ "internalType": "Amount",
428
494
  "name": "lockedAmount",
429
- "type": "uint256"
495
+ "type": "uint96"
430
496
  },
431
497
  {
432
- "internalType": "uint256",
433
- "name": "balanceAmount",
434
- "type": "uint256"
498
+ "internalType": "Amount",
499
+ "name": "feeAmount",
500
+ "type": "uint96"
435
501
  },
436
502
  {
437
- "internalType": "uint256",
503
+ "internalType": "Seconds",
438
504
  "name": "lifetime",
439
- "type": "uint256"
505
+ "type": "uint40"
440
506
  },
441
507
  {
442
508
  "internalType": "Timestamp",
@@ -459,6 +525,61 @@
459
525
  "stateMutability": "nonpayable",
460
526
  "type": "function"
461
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
+ },
462
583
  {
463
584
  "inputs": [
464
585
  {
@@ -478,6 +599,23 @@
478
599
  "name": "tokenHandler",
479
600
  "type": "address"
480
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
+ },
481
619
  {
482
620
  "components": [
483
621
  {
@@ -499,6 +637,11 @@
499
637
  "internalType": "address",
500
638
  "name": "wallet",
501
639
  "type": "address"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "sumDistributionOwnerFees",
644
+ "type": "uint256"
502
645
  }
503
646
  ],
504
647
  "internalType": "struct ISetup.DistributionSetupInfo",
@@ -534,6 +677,16 @@
534
677
  "internalType": "bytes",
535
678
  "name": "data",
536
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"
537
690
  }
538
691
  ],
539
692
  "internalType": "struct IDistribution.DistributorInfo",
@@ -549,9 +702,9 @@
549
702
  {
550
703
  "inputs": [
551
704
  {
552
- "internalType": "Key32",
553
- "name": "distributorKey",
554
- "type": "bytes32"
705
+ "internalType": "DistributorType",
706
+ "name": "distributorType",
707
+ "type": "bytes8"
555
708
  },
556
709
  {
557
710
  "components": [
@@ -615,105 +768,94 @@
615
768
  "inputs": [
616
769
  {
617
770
  "internalType": "NftId",
618
- "name": "poolNftId",
771
+ "name": "policyNftId",
619
772
  "type": "uint96"
620
773
  },
774
+ {
775
+ "internalType": "PayoutId",
776
+ "name": "payoutId",
777
+ "type": "uint24"
778
+ },
621
779
  {
622
780
  "components": [
623
781
  {
624
- "internalType": "NftId",
625
- "name": "productNftId",
626
- "type": "uint96"
782
+ "internalType": "ClaimId",
783
+ "name": "claimId",
784
+ "type": "uint16"
627
785
  },
628
786
  {
629
- "internalType": "contract TokenHandler",
630
- "name": "tokenHandler",
631
- "type": "address"
787
+ "internalType": "Amount",
788
+ "name": "amount",
789
+ "type": "uint96"
632
790
  },
633
791
  {
634
- "internalType": "bool",
635
- "name": "isInterceptingBundleTransfers",
636
- "type": "bool"
792
+ "internalType": "bytes",
793
+ "name": "data",
794
+ "type": "bytes"
637
795
  },
638
796
  {
639
- "internalType": "bool",
640
- "name": "isExternallyManaged",
641
- "type": "bool"
642
- },
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": [
643
821
  {
644
- "internalType": "bool",
645
- "name": "isVerifyingApplications",
646
- "type": "bool"
822
+ "internalType": "string",
823
+ "name": "name",
824
+ "type": "string"
647
825
  },
648
826
  {
649
- "internalType": "UFixed",
650
- "name": "collateralizationLevel",
651
- "type": "uint256"
827
+ "internalType": "contract IERC20Metadata",
828
+ "name": "token",
829
+ "type": "address"
652
830
  },
653
831
  {
654
- "internalType": "UFixed",
655
- "name": "retentionLevel",
656
- "type": "uint256"
832
+ "internalType": "contract TokenHandler",
833
+ "name": "tokenHandler",
834
+ "type": "address"
657
835
  },
658
836
  {
659
- "components": [
660
- {
661
- "internalType": "UFixed",
662
- "name": "fractionalFee",
663
- "type": "uint256"
664
- },
665
- {
666
- "internalType": "uint256",
667
- "name": "fixedFee",
668
- "type": "uint256"
669
- }
670
- ],
671
- "internalType": "struct Fee",
672
- "name": "poolFee",
673
- "type": "tuple"
837
+ "internalType": "address",
838
+ "name": "wallet",
839
+ "type": "address"
674
840
  },
675
841
  {
676
- "components": [
677
- {
678
- "internalType": "UFixed",
679
- "name": "fractionalFee",
680
- "type": "uint256"
681
- },
682
- {
683
- "internalType": "uint256",
684
- "name": "fixedFee",
685
- "type": "uint256"
686
- }
687
- ],
688
- "internalType": "struct Fee",
689
- "name": "stakingFee",
690
- "type": "tuple"
842
+ "internalType": "Amount",
843
+ "name": "balanceAmount",
844
+ "type": "uint96"
691
845
  },
692
846
  {
693
- "components": [
694
- {
695
- "internalType": "UFixed",
696
- "name": "fractionalFee",
697
- "type": "uint256"
698
- },
699
- {
700
- "internalType": "uint256",
701
- "name": "fixedFee",
702
- "type": "uint256"
703
- }
704
- ],
705
- "internalType": "struct Fee",
706
- "name": "performanceFee",
707
- "type": "tuple"
847
+ "internalType": "Amount",
848
+ "name": "feeAmount",
849
+ "type": "uint96"
708
850
  },
709
851
  {
710
- "internalType": "address",
711
- "name": "wallet",
712
- "type": "address"
852
+ "internalType": "bytes",
853
+ "name": "data",
854
+ "type": "bytes"
713
855
  }
714
856
  ],
715
- "internalType": "struct ISetup.PoolSetupInfo",
716
- "name": "setup",
857
+ "internalType": "struct IComponents.ComponentInfo",
858
+ "name": "info",
717
859
  "type": "tuple"
718
860
  }
719
861
  ],
@@ -751,23 +893,6 @@
751
893
  "name": "poolNftId",
752
894
  "type": "uint96"
753
895
  },
754
- {
755
- "components": [
756
- {
757
- "internalType": "UFixed",
758
- "name": "fractionalFee",
759
- "type": "uint256"
760
- },
761
- {
762
- "internalType": "uint256",
763
- "name": "fixedFee",
764
- "type": "uint256"
765
- }
766
- ],
767
- "internalType": "struct Fee",
768
- "name": "distributionFee",
769
- "type": "tuple"
770
- },
771
896
  {
772
897
  "components": [
773
898
  {
@@ -802,57 +927,6 @@
802
927
  "name": "processingFee",
803
928
  "type": "tuple"
804
929
  },
805
- {
806
- "components": [
807
- {
808
- "internalType": "UFixed",
809
- "name": "fractionalFee",
810
- "type": "uint256"
811
- },
812
- {
813
- "internalType": "uint256",
814
- "name": "fixedFee",
815
- "type": "uint256"
816
- }
817
- ],
818
- "internalType": "struct Fee",
819
- "name": "poolFee",
820
- "type": "tuple"
821
- },
822
- {
823
- "components": [
824
- {
825
- "internalType": "UFixed",
826
- "name": "fractionalFee",
827
- "type": "uint256"
828
- },
829
- {
830
- "internalType": "uint256",
831
- "name": "fixedFee",
832
- "type": "uint256"
833
- }
834
- ],
835
- "internalType": "struct Fee",
836
- "name": "stakingFee",
837
- "type": "tuple"
838
- },
839
- {
840
- "components": [
841
- {
842
- "internalType": "UFixed",
843
- "name": "fractionalFee",
844
- "type": "uint256"
845
- },
846
- {
847
- "internalType": "uint256",
848
- "name": "fixedFee",
849
- "type": "uint256"
850
- }
851
- ],
852
- "internalType": "struct Fee",
853
- "name": "performanceFee",
854
- "type": "tuple"
855
- },
856
930
  {
857
931
  "internalType": "bool",
858
932
  "name": "isIntercepting",
@@ -877,9 +951,9 @@
877
951
  {
878
952
  "inputs": [
879
953
  {
880
- "internalType": "Key32",
881
- "name": "referralKey",
882
- "type": "bytes32"
954
+ "internalType": "ReferralId",
955
+ "name": "referralId",
956
+ "type": "bytes8"
883
957
  },
884
958
  {
885
959
  "components": [
@@ -1049,19 +1123,6 @@
1049
1123
  "stateMutability": "view",
1050
1124
  "type": "function"
1051
1125
  },
1052
- {
1053
- "inputs": [],
1054
- "name": "getBundleService",
1055
- "outputs": [
1056
- {
1057
- "internalType": "contract IBundleService",
1058
- "name": "",
1059
- "type": "address"
1060
- }
1061
- ],
1062
- "stateMutability": "view",
1063
- "type": "function"
1064
- },
1065
1126
  {
1066
1127
  "inputs": [
1067
1128
  {
@@ -1081,19 +1142,6 @@
1081
1142
  "stateMutability": "view",
1082
1143
  "type": "function"
1083
1144
  },
1084
- {
1085
- "inputs": [],
1086
- "name": "getDistributionService",
1087
- "outputs": [
1088
- {
1089
- "internalType": "contract IDistributionService",
1090
- "name": "",
1091
- "type": "address"
1092
- }
1093
- ],
1094
- "stateMutability": "view",
1095
- "type": "function"
1096
- },
1097
1145
  {
1098
1146
  "inputs": [],
1099
1147
  "name": "getInitialInfo",
@@ -1163,6 +1211,19 @@
1163
1211
  "stateMutability": "view",
1164
1212
  "type": "function"
1165
1213
  },
1214
+ {
1215
+ "inputs": [],
1216
+ "name": "getInstanceAccessManager",
1217
+ "outputs": [
1218
+ {
1219
+ "internalType": "contract InstanceAccessManager",
1220
+ "name": "",
1221
+ "type": "address"
1222
+ }
1223
+ ],
1224
+ "stateMutability": "view",
1225
+ "type": "function"
1226
+ },
1166
1227
  {
1167
1228
  "inputs": [],
1168
1229
  "name": "getInstanceReader",
@@ -1261,45 +1322,6 @@
1261
1322
  "stateMutability": "view",
1262
1323
  "type": "function"
1263
1324
  },
1264
- {
1265
- "inputs": [],
1266
- "name": "getPolicyService",
1267
- "outputs": [
1268
- {
1269
- "internalType": "contract IPolicyService",
1270
- "name": "",
1271
- "type": "address"
1272
- }
1273
- ],
1274
- "stateMutability": "view",
1275
- "type": "function"
1276
- },
1277
- {
1278
- "inputs": [],
1279
- "name": "getPoolService",
1280
- "outputs": [
1281
- {
1282
- "internalType": "contract IPoolService",
1283
- "name": "",
1284
- "type": "address"
1285
- }
1286
- ],
1287
- "stateMutability": "view",
1288
- "type": "function"
1289
- },
1290
- {
1291
- "inputs": [],
1292
- "name": "getProductService",
1293
- "outputs": [
1294
- {
1295
- "internalType": "contract IProductService",
1296
- "name": "",
1297
- "type": "address"
1298
- }
1299
- ],
1300
- "stateMutability": "view",
1301
- "type": "function"
1302
- },
1303
1325
  {
1304
1326
  "inputs": [],
1305
1327
  "name": "getRegistry",
@@ -1413,6 +1435,47 @@
1413
1435
  "stateMutability": "nonpayable",
1414
1436
  "type": "function"
1415
1437
  },
1438
+ {
1439
+ "inputs": [
1440
+ {
1441
+ "internalType": "address",
1442
+ "name": "to",
1443
+ "type": "address"
1444
+ },
1445
+ {
1446
+ "internalType": "uint256",
1447
+ "name": "tokenId",
1448
+ "type": "uint256"
1449
+ }
1450
+ ],
1451
+ "name": "nftMint",
1452
+ "outputs": [],
1453
+ "stateMutability": "nonpayable",
1454
+ "type": "function"
1455
+ },
1456
+ {
1457
+ "inputs": [
1458
+ {
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"
1472
+ }
1473
+ ],
1474
+ "name": "nftTransferFrom",
1475
+ "outputs": [],
1476
+ "stateMutability": "nonpayable",
1477
+ "type": "function"
1478
+ },
1416
1479
  {
1417
1480
  "inputs": [
1418
1481
  {
@@ -1514,9 +1577,9 @@
1514
1577
  "type": "uint256"
1515
1578
  },
1516
1579
  {
1517
- "internalType": "uint256",
1580
+ "internalType": "Seconds",
1518
1581
  "name": "lifetime",
1519
- "type": "uint256"
1582
+ "type": "uint40"
1520
1583
  },
1521
1584
  {
1522
1585
  "internalType": "bytes",
@@ -1539,9 +1602,9 @@
1539
1602
  "type": "uint16"
1540
1603
  },
1541
1604
  {
1542
- "internalType": "uint256",
1605
+ "internalType": "Amount",
1543
1606
  "name": "payoutAmount",
1544
- "type": "uint256"
1607
+ "type": "uint96"
1545
1608
  },
1546
1609
  {
1547
1610
  "internalType": "Timestamp",
@@ -1629,24 +1692,24 @@
1629
1692
  "type": "bytes"
1630
1693
  },
1631
1694
  {
1632
- "internalType": "uint256",
1695
+ "internalType": "Amount",
1633
1696
  "name": "capitalAmount",
1634
- "type": "uint256"
1697
+ "type": "uint96"
1635
1698
  },
1636
1699
  {
1637
- "internalType": "uint256",
1700
+ "internalType": "Amount",
1638
1701
  "name": "lockedAmount",
1639
- "type": "uint256"
1702
+ "type": "uint96"
1640
1703
  },
1641
1704
  {
1642
- "internalType": "uint256",
1643
- "name": "balanceAmount",
1644
- "type": "uint256"
1705
+ "internalType": "Amount",
1706
+ "name": "feeAmount",
1707
+ "type": "uint96"
1645
1708
  },
1646
1709
  {
1647
- "internalType": "uint256",
1710
+ "internalType": "Seconds",
1648
1711
  "name": "lifetime",
1649
- "type": "uint256"
1712
+ "type": "uint40"
1650
1713
  },
1651
1714
  {
1652
1715
  "internalType": "Timestamp",
@@ -1692,6 +1755,89 @@
1692
1755
  "stateMutability": "nonpayable",
1693
1756
  "type": "function"
1694
1757
  },
1758
+ {
1759
+ "inputs": [
1760
+ {
1761
+ "internalType": "NftId",
1762
+ "name": "policyNftId",
1763
+ "type": "uint96"
1764
+ },
1765
+ {
1766
+ "internalType": "ClaimId",
1767
+ "name": "claimId",
1768
+ "type": "uint16"
1769
+ },
1770
+ {
1771
+ "components": [
1772
+ {
1773
+ "internalType": "Amount",
1774
+ "name": "claimAmount",
1775
+ "type": "uint96"
1776
+ },
1777
+ {
1778
+ "internalType": "Amount",
1779
+ "name": "paidAmount",
1780
+ "type": "uint96"
1781
+ },
1782
+ {
1783
+ "internalType": "uint8",
1784
+ "name": "payoutsCount",
1785
+ "type": "uint8"
1786
+ },
1787
+ {
1788
+ "internalType": "uint8",
1789
+ "name": "openPayoutsCount",
1790
+ "type": "uint8"
1791
+ },
1792
+ {
1793
+ "internalType": "bytes",
1794
+ "name": "data",
1795
+ "type": "bytes"
1796
+ },
1797
+ {
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
+ },
1695
1841
  {
1696
1842
  "inputs": [
1697
1843
  {
@@ -1711,6 +1857,23 @@
1711
1857
  "name": "tokenHandler",
1712
1858
  "type": "address"
1713
1859
  },
1860
+ {
1861
+ "components": [
1862
+ {
1863
+ "internalType": "UFixed",
1864
+ "name": "fractionalFee",
1865
+ "type": "uint256"
1866
+ },
1867
+ {
1868
+ "internalType": "uint256",
1869
+ "name": "fixedFee",
1870
+ "type": "uint256"
1871
+ }
1872
+ ],
1873
+ "internalType": "struct Fee",
1874
+ "name": "minDistributionOwnerFee",
1875
+ "type": "tuple"
1876
+ },
1714
1877
  {
1715
1878
  "components": [
1716
1879
  {
@@ -1732,6 +1895,11 @@
1732
1895
  "internalType": "address",
1733
1896
  "name": "wallet",
1734
1897
  "type": "address"
1898
+ },
1899
+ {
1900
+ "internalType": "uint256",
1901
+ "name": "sumDistributionOwnerFees",
1902
+ "type": "uint256"
1735
1903
  }
1736
1904
  ],
1737
1905
  "internalType": "struct ISetup.DistributionSetupInfo",
@@ -1790,6 +1958,16 @@
1790
1958
  "internalType": "bytes",
1791
1959
  "name": "data",
1792
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"
1793
1971
  }
1794
1972
  ],
1795
1973
  "internalType": "struct IDistribution.DistributorInfo",
@@ -1828,9 +2006,9 @@
1828
2006
  {
1829
2007
  "inputs": [
1830
2008
  {
1831
- "internalType": "Key32",
1832
- "name": "distributorKey",
1833
- "type": "bytes32"
2009
+ "internalType": "DistributorType",
2010
+ "name": "distributorType",
2011
+ "type": "bytes8"
1834
2012
  },
1835
2013
  {
1836
2014
  "components": [
@@ -1898,9 +2076,9 @@
1898
2076
  {
1899
2077
  "inputs": [
1900
2078
  {
1901
- "internalType": "Key32",
1902
- "name": "distributorKey",
1903
- "type": "bytes32"
2079
+ "internalType": "DistributorType",
2080
+ "name": "distributorType",
2081
+ "type": "bytes8"
1904
2082
  },
1905
2083
  {
1906
2084
  "internalType": "StateId",
@@ -1913,6 +2091,79 @@
1913
2091
  "stateMutability": "nonpayable",
1914
2092
  "type": "function"
1915
2093
  },
2094
+ {
2095
+ "inputs": [
2096
+ {
2097
+ "internalType": "NftId",
2098
+ "name": "policyNftId",
2099
+ "type": "uint96"
2100
+ },
2101
+ {
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"
2137
+ }
2138
+ ],
2139
+ "name": "updatePayout",
2140
+ "outputs": [],
2141
+ "stateMutability": "nonpayable",
2142
+ "type": "function"
2143
+ },
2144
+ {
2145
+ "inputs": [
2146
+ {
2147
+ "internalType": "NftId",
2148
+ "name": "policyNftId",
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"
2160
+ }
2161
+ ],
2162
+ "name": "updatePayoutState",
2163
+ "outputs": [],
2164
+ "stateMutability": "nonpayable",
2165
+ "type": "function"
2166
+ },
1916
2167
  {
1917
2168
  "inputs": [
1918
2169
  {
@@ -1958,9 +2209,9 @@
1958
2209
  "type": "uint256"
1959
2210
  },
1960
2211
  {
1961
- "internalType": "uint256",
2212
+ "internalType": "Seconds",
1962
2213
  "name": "lifetime",
1963
- "type": "uint256"
2214
+ "type": "uint40"
1964
2215
  },
1965
2216
  {
1966
2217
  "internalType": "bytes",
@@ -1983,9 +2234,9 @@
1983
2234
  "type": "uint16"
1984
2235
  },
1985
2236
  {
1986
- "internalType": "uint256",
2237
+ "internalType": "Amount",
1987
2238
  "name": "payoutAmount",
1988
- "type": "uint256"
2239
+ "type": "uint96"
1989
2240
  },
1990
2241
  {
1991
2242
  "internalType": "Timestamp",
@@ -2046,99 +2297,43 @@
2046
2297
  {
2047
2298
  "components": [
2048
2299
  {
2049
- "internalType": "NftId",
2050
- "name": "productNftId",
2051
- "type": "uint96"
2300
+ "internalType": "string",
2301
+ "name": "name",
2302
+ "type": "string"
2052
2303
  },
2053
2304
  {
2054
- "internalType": "contract TokenHandler",
2055
- "name": "tokenHandler",
2305
+ "internalType": "contract IERC20Metadata",
2306
+ "name": "token",
2056
2307
  "type": "address"
2057
2308
  },
2058
2309
  {
2059
- "internalType": "bool",
2060
- "name": "isInterceptingBundleTransfers",
2061
- "type": "bool"
2062
- },
2063
- {
2064
- "internalType": "bool",
2065
- "name": "isExternallyManaged",
2066
- "type": "bool"
2067
- },
2068
- {
2069
- "internalType": "bool",
2070
- "name": "isVerifyingApplications",
2071
- "type": "bool"
2072
- },
2073
- {
2074
- "internalType": "UFixed",
2075
- "name": "collateralizationLevel",
2076
- "type": "uint256"
2077
- },
2078
- {
2079
- "internalType": "UFixed",
2080
- "name": "retentionLevel",
2081
- "type": "uint256"
2310
+ "internalType": "contract TokenHandler",
2311
+ "name": "tokenHandler",
2312
+ "type": "address"
2082
2313
  },
2083
2314
  {
2084
- "components": [
2085
- {
2086
- "internalType": "UFixed",
2087
- "name": "fractionalFee",
2088
- "type": "uint256"
2089
- },
2090
- {
2091
- "internalType": "uint256",
2092
- "name": "fixedFee",
2093
- "type": "uint256"
2094
- }
2095
- ],
2096
- "internalType": "struct Fee",
2097
- "name": "poolFee",
2098
- "type": "tuple"
2315
+ "internalType": "address",
2316
+ "name": "wallet",
2317
+ "type": "address"
2099
2318
  },
2100
2319
  {
2101
- "components": [
2102
- {
2103
- "internalType": "UFixed",
2104
- "name": "fractionalFee",
2105
- "type": "uint256"
2106
- },
2107
- {
2108
- "internalType": "uint256",
2109
- "name": "fixedFee",
2110
- "type": "uint256"
2111
- }
2112
- ],
2113
- "internalType": "struct Fee",
2114
- "name": "stakingFee",
2115
- "type": "tuple"
2320
+ "internalType": "Amount",
2321
+ "name": "balanceAmount",
2322
+ "type": "uint96"
2116
2323
  },
2117
2324
  {
2118
- "components": [
2119
- {
2120
- "internalType": "UFixed",
2121
- "name": "fractionalFee",
2122
- "type": "uint256"
2123
- },
2124
- {
2125
- "internalType": "uint256",
2126
- "name": "fixedFee",
2127
- "type": "uint256"
2128
- }
2129
- ],
2130
- "internalType": "struct Fee",
2131
- "name": "performanceFee",
2132
- "type": "tuple"
2325
+ "internalType": "Amount",
2326
+ "name": "feeAmount",
2327
+ "type": "uint96"
2133
2328
  },
2134
2329
  {
2135
- "internalType": "address",
2136
- "name": "wallet",
2137
- "type": "address"
2330
+ "internalType": "bytes",
2331
+ "name": "data",
2332
+ "type": "bytes"
2138
2333
  }
2139
2334
  ],
2140
- "internalType": "struct ISetup.PoolSetupInfo",
2141
- "name": "setup",
2335
+ "internalType": "struct IComponents.ComponentInfo",
2336
+ "name": "info",
2142
2337
  "type": "tuple"
2143
2338
  },
2144
2339
  {
@@ -2199,23 +2394,6 @@
2199
2394
  "name": "poolNftId",
2200
2395
  "type": "uint96"
2201
2396
  },
2202
- {
2203
- "components": [
2204
- {
2205
- "internalType": "UFixed",
2206
- "name": "fractionalFee",
2207
- "type": "uint256"
2208
- },
2209
- {
2210
- "internalType": "uint256",
2211
- "name": "fixedFee",
2212
- "type": "uint256"
2213
- }
2214
- ],
2215
- "internalType": "struct Fee",
2216
- "name": "distributionFee",
2217
- "type": "tuple"
2218
- },
2219
2397
  {
2220
2398
  "components": [
2221
2399
  {
@@ -2250,57 +2428,6 @@
2250
2428
  "name": "processingFee",
2251
2429
  "type": "tuple"
2252
2430
  },
2253
- {
2254
- "components": [
2255
- {
2256
- "internalType": "UFixed",
2257
- "name": "fractionalFee",
2258
- "type": "uint256"
2259
- },
2260
- {
2261
- "internalType": "uint256",
2262
- "name": "fixedFee",
2263
- "type": "uint256"
2264
- }
2265
- ],
2266
- "internalType": "struct Fee",
2267
- "name": "poolFee",
2268
- "type": "tuple"
2269
- },
2270
- {
2271
- "components": [
2272
- {
2273
- "internalType": "UFixed",
2274
- "name": "fractionalFee",
2275
- "type": "uint256"
2276
- },
2277
- {
2278
- "internalType": "uint256",
2279
- "name": "fixedFee",
2280
- "type": "uint256"
2281
- }
2282
- ],
2283
- "internalType": "struct Fee",
2284
- "name": "stakingFee",
2285
- "type": "tuple"
2286
- },
2287
- {
2288
- "components": [
2289
- {
2290
- "internalType": "UFixed",
2291
- "name": "fractionalFee",
2292
- "type": "uint256"
2293
- },
2294
- {
2295
- "internalType": "uint256",
2296
- "name": "fixedFee",
2297
- "type": "uint256"
2298
- }
2299
- ],
2300
- "internalType": "struct Fee",
2301
- "name": "performanceFee",
2302
- "type": "tuple"
2303
- },
2304
2431
  {
2305
2432
  "internalType": "bool",
2306
2433
  "name": "isIntercepting",
@@ -2348,9 +2475,9 @@
2348
2475
  {
2349
2476
  "inputs": [
2350
2477
  {
2351
- "internalType": "Key32",
2352
- "name": "referralKey",
2353
- "type": "bytes32"
2478
+ "internalType": "ReferralId",
2479
+ "name": "referralId",
2480
+ "type": "bytes8"
2354
2481
  },
2355
2482
  {
2356
2483
  "components": [
@@ -2408,9 +2535,9 @@
2408
2535
  {
2409
2536
  "inputs": [
2410
2537
  {
2411
- "internalType": "Key32",
2412
- "name": "referralKey",
2413
- "type": "bytes32"
2538
+ "internalType": "ReferralId",
2539
+ "name": "referralId",
2540
+ "type": "bytes8"
2414
2541
  },
2415
2542
  {
2416
2543
  "internalType": "StateId",