@etherisc/gif-next 0.0.2-93de5de-423 → 0.0.2-94237b7-984

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/README.md +0 -71
  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 +123 -183
  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 +169 -143
  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 +199 -316
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +185 -50
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +288 -387
  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 +137 -234
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +313 -169
  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 -20
  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 +261 -80
  60. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +41 -25
  62. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +387 -241
  64. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +74 -14
  66. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +105 -31
  68. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +11 -7
  70. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +933 -70
  72. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +142 -14
  74. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +200 -40
  76. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +220 -183
  78. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +90 -13
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +630 -20
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +103 -69
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +521 -13
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -13
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +150 -167
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +27 -47
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +562 -41
  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 -41
  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 -13
  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 -26
  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 +90 -13
  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 +97 -15
  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 +112 -26
  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 +161 -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/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  169. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
  171. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  172. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  173. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  175. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  176. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  177. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  180. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  183. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  185. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  187. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  188. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  189. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  191. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  193. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  195. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  197. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  199. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  201. package/contracts/components/Component.sol +99 -87
  202. package/contracts/components/Distribution.sol +16 -44
  203. package/contracts/components/IComponent.sol +40 -18
  204. package/contracts/components/IDistributionComponent.sol +1 -30
  205. package/contracts/components/IPoolComponent.sol +73 -47
  206. package/contracts/components/IProductComponent.sol +3 -2
  207. package/contracts/components/Pool.sol +177 -128
  208. package/contracts/components/Product.sol +26 -18
  209. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  210. package/contracts/instance/BundleManager.sol +7 -5
  211. package/contracts/instance/Cloneable.sol +7 -2
  212. package/contracts/instance/IInstance.sol +16 -10
  213. package/contracts/instance/IInstanceService.sol +18 -5
  214. package/contracts/instance/Instance.sol +45 -9
  215. package/contracts/instance/InstanceAccessManager.sol +388 -158
  216. package/contracts/instance/InstanceReader.sol +8 -10
  217. package/contracts/instance/InstanceService.sol +184 -165
  218. package/contracts/instance/ObjectManager.sol +6 -8
  219. package/contracts/instance/base/ComponentService.sol +17 -30
  220. package/contracts/instance/base/KeyValueStore.sol +13 -5
  221. package/contracts/instance/base/Lifecycle.sol +11 -2
  222. package/contracts/instance/module/IAccess.sol +21 -14
  223. package/contracts/instance/module/IBundle.sol +8 -5
  224. package/contracts/instance/module/IComponents.sol +41 -0
  225. package/contracts/instance/module/IDistribution.sol +2 -0
  226. package/contracts/instance/module/IPolicy.sol +26 -1
  227. package/contracts/instance/module/ISetup.sol +7 -21
  228. package/contracts/instance/service/ApplicationService.sol +130 -48
  229. package/contracts/instance/service/BundleService.sol +213 -80
  230. package/contracts/instance/service/ClaimService.sol +3 -3
  231. package/contracts/instance/service/DistributionService.sol +212 -54
  232. package/contracts/instance/service/IApplicationService.sol +7 -7
  233. package/contracts/instance/service/IBundleService.sol +65 -26
  234. package/contracts/instance/service/IDistributionService.sol +37 -3
  235. package/contracts/instance/service/IPolicyService.sol +3 -20
  236. package/contracts/instance/service/IPoolService.sol +82 -3
  237. package/contracts/instance/service/PolicyService.sol +107 -219
  238. package/contracts/instance/service/PoolService.sol +214 -20
  239. package/contracts/instance/service/ProductService.sol +30 -53
  240. package/contracts/registry/ChainNft.sol +8 -0
  241. package/contracts/registry/IRegistry.sol +2 -0
  242. package/contracts/registry/IRegistryService.sol +4 -3
  243. package/contracts/registry/ITransferInterceptor.sol +1 -0
  244. package/contracts/registry/Registry.sol +23 -20
  245. package/contracts/registry/RegistryService.sol +15 -16
  246. package/contracts/registry/ReleaseManager.sol +20 -18
  247. package/contracts/shared/IService.sol +4 -4
  248. package/contracts/shared/Registerable.sol +2 -2
  249. package/contracts/shared/Service.sol +21 -7
  250. package/contracts/shared/TokenHandler.sol +11 -5
  251. package/contracts/test/TestService.sol +1 -1
  252. package/contracts/types/Amount.sol +60 -0
  253. package/contracts/types/Blocknumber.sol +1 -0
  254. package/contracts/types/Fee.sol +13 -5
  255. package/contracts/types/NftId.sol +8 -0
  256. package/contracts/types/ObjectType.sol +1 -0
  257. package/contracts/types/Referral.sol +4 -0
  258. package/contracts/types/RoleId.sol +13 -6
  259. package/contracts/types/Seconds.sol +54 -0
  260. package/contracts/types/StateId.sol +1 -0
  261. package/contracts/types/Timestamp.sol +13 -13
  262. package/contracts/types/UFixed.sol +1 -0
  263. package/contracts/types/Version.sol +1 -0
  264. package/package.json +1 -1
@@ -327,9 +327,9 @@
327
327
  "type": "uint256"
328
328
  },
329
329
  {
330
- "internalType": "uint256",
330
+ "internalType": "Seconds",
331
331
  "name": "lifetime",
332
- "type": "uint256"
332
+ "type": "uint40"
333
333
  },
334
334
  {
335
335
  "internalType": "bytes",
@@ -419,24 +419,24 @@
419
419
  "type": "bytes"
420
420
  },
421
421
  {
422
- "internalType": "uint256",
422
+ "internalType": "Amount",
423
423
  "name": "capitalAmount",
424
- "type": "uint256"
424
+ "type": "uint96"
425
425
  },
426
426
  {
427
- "internalType": "uint256",
427
+ "internalType": "Amount",
428
428
  "name": "lockedAmount",
429
- "type": "uint256"
429
+ "type": "uint96"
430
430
  },
431
431
  {
432
- "internalType": "uint256",
433
- "name": "balanceAmount",
434
- "type": "uint256"
432
+ "internalType": "Amount",
433
+ "name": "feeAmount",
434
+ "type": "uint96"
435
435
  },
436
436
  {
437
- "internalType": "uint256",
437
+ "internalType": "Seconds",
438
438
  "name": "lifetime",
439
- "type": "uint256"
439
+ "type": "uint40"
440
440
  },
441
441
  {
442
442
  "internalType": "Timestamp",
@@ -478,6 +478,23 @@
478
478
  "name": "tokenHandler",
479
479
  "type": "address"
480
480
  },
481
+ {
482
+ "components": [
483
+ {
484
+ "internalType": "UFixed",
485
+ "name": "fractionalFee",
486
+ "type": "uint256"
487
+ },
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "fixedFee",
491
+ "type": "uint256"
492
+ }
493
+ ],
494
+ "internalType": "struct Fee",
495
+ "name": "minDistributionOwnerFee",
496
+ "type": "tuple"
497
+ },
481
498
  {
482
499
  "components": [
483
500
  {
@@ -499,6 +516,11 @@
499
516
  "internalType": "address",
500
517
  "name": "wallet",
501
518
  "type": "address"
519
+ },
520
+ {
521
+ "internalType": "uint256",
522
+ "name": "sumDistributionOwnerFees",
523
+ "type": "uint256"
502
524
  }
503
525
  ],
504
526
  "internalType": "struct ISetup.DistributionSetupInfo",
@@ -534,6 +556,16 @@
534
556
  "internalType": "bytes",
535
557
  "name": "data",
536
558
  "type": "bytes"
559
+ },
560
+ {
561
+ "internalType": "uint256",
562
+ "name": "sumCommisions",
563
+ "type": "uint256"
564
+ },
565
+ {
566
+ "internalType": "uint256",
567
+ "name": "numPoliciesSold",
568
+ "type": "uint256"
537
569
  }
538
570
  ],
539
571
  "internalType": "struct IDistribution.DistributorInfo",
@@ -621,99 +653,43 @@
621
653
  {
622
654
  "components": [
623
655
  {
624
- "internalType": "NftId",
625
- "name": "productNftId",
626
- "type": "uint96"
656
+ "internalType": "string",
657
+ "name": "name",
658
+ "type": "string"
627
659
  },
628
660
  {
629
- "internalType": "contract TokenHandler",
630
- "name": "tokenHandler",
661
+ "internalType": "contract IERC20Metadata",
662
+ "name": "token",
631
663
  "type": "address"
632
664
  },
633
665
  {
634
- "internalType": "bool",
635
- "name": "isInterceptingBundleTransfers",
636
- "type": "bool"
637
- },
638
- {
639
- "internalType": "bool",
640
- "name": "isExternallyManaged",
641
- "type": "bool"
642
- },
643
- {
644
- "internalType": "bool",
645
- "name": "isVerifyingApplications",
646
- "type": "bool"
647
- },
648
- {
649
- "internalType": "UFixed",
650
- "name": "collateralizationLevel",
651
- "type": "uint256"
652
- },
653
- {
654
- "internalType": "UFixed",
655
- "name": "retentionLevel",
656
- "type": "uint256"
666
+ "internalType": "contract TokenHandler",
667
+ "name": "tokenHandler",
668
+ "type": "address"
657
669
  },
658
670
  {
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"
671
+ "internalType": "address",
672
+ "name": "wallet",
673
+ "type": "address"
674
674
  },
675
675
  {
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"
676
+ "internalType": "Amount",
677
+ "name": "balanceAmount",
678
+ "type": "uint96"
691
679
  },
692
680
  {
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"
681
+ "internalType": "Amount",
682
+ "name": "feeAmount",
683
+ "type": "uint96"
708
684
  },
709
685
  {
710
- "internalType": "address",
711
- "name": "wallet",
712
- "type": "address"
686
+ "internalType": "bytes",
687
+ "name": "data",
688
+ "type": "bytes"
713
689
  }
714
690
  ],
715
- "internalType": "struct ISetup.PoolSetupInfo",
716
- "name": "setup",
691
+ "internalType": "struct IComponents.ComponentInfo",
692
+ "name": "info",
717
693
  "type": "tuple"
718
694
  }
719
695
  ],
@@ -751,23 +727,6 @@
751
727
  "name": "poolNftId",
752
728
  "type": "uint96"
753
729
  },
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
730
  {
772
731
  "components": [
773
732
  {
@@ -802,57 +761,6 @@
802
761
  "name": "processingFee",
803
762
  "type": "tuple"
804
763
  },
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
764
  {
857
765
  "internalType": "bool",
858
766
  "name": "isIntercepting",
@@ -1163,6 +1071,19 @@
1163
1071
  "stateMutability": "view",
1164
1072
  "type": "function"
1165
1073
  },
1074
+ {
1075
+ "inputs": [],
1076
+ "name": "getInstanceAccessManager",
1077
+ "outputs": [
1078
+ {
1079
+ "internalType": "contract InstanceAccessManager",
1080
+ "name": "",
1081
+ "type": "address"
1082
+ }
1083
+ ],
1084
+ "stateMutability": "view",
1085
+ "type": "function"
1086
+ },
1166
1087
  {
1167
1088
  "inputs": [],
1168
1089
  "name": "getInstanceReader",
@@ -1413,6 +1334,47 @@
1413
1334
  "stateMutability": "nonpayable",
1414
1335
  "type": "function"
1415
1336
  },
1337
+ {
1338
+ "inputs": [
1339
+ {
1340
+ "internalType": "address",
1341
+ "name": "to",
1342
+ "type": "address"
1343
+ },
1344
+ {
1345
+ "internalType": "uint256",
1346
+ "name": "tokenId",
1347
+ "type": "uint256"
1348
+ }
1349
+ ],
1350
+ "name": "nftMint",
1351
+ "outputs": [],
1352
+ "stateMutability": "nonpayable",
1353
+ "type": "function"
1354
+ },
1355
+ {
1356
+ "inputs": [
1357
+ {
1358
+ "internalType": "address",
1359
+ "name": "from",
1360
+ "type": "address"
1361
+ },
1362
+ {
1363
+ "internalType": "address",
1364
+ "name": "to",
1365
+ "type": "address"
1366
+ },
1367
+ {
1368
+ "internalType": "uint256",
1369
+ "name": "tokenId",
1370
+ "type": "uint256"
1371
+ }
1372
+ ],
1373
+ "name": "nftTransferFrom",
1374
+ "outputs": [],
1375
+ "stateMutability": "nonpayable",
1376
+ "type": "function"
1377
+ },
1416
1378
  {
1417
1379
  "inputs": [
1418
1380
  {
@@ -1426,6 +1388,19 @@
1426
1388
  "stateMutability": "nonpayable",
1427
1389
  "type": "function"
1428
1390
  },
1391
+ {
1392
+ "inputs": [
1393
+ {
1394
+ "internalType": "contract InstanceAccessManager",
1395
+ "name": "accessManager",
1396
+ "type": "address"
1397
+ }
1398
+ ],
1399
+ "name": "setInstanceAccessManager",
1400
+ "outputs": [],
1401
+ "stateMutability": "nonpayable",
1402
+ "type": "function"
1403
+ },
1429
1404
  {
1430
1405
  "inputs": [
1431
1406
  {
@@ -1514,9 +1489,9 @@
1514
1489
  "type": "uint256"
1515
1490
  },
1516
1491
  {
1517
- "internalType": "uint256",
1492
+ "internalType": "Seconds",
1518
1493
  "name": "lifetime",
1519
- "type": "uint256"
1494
+ "type": "uint40"
1520
1495
  },
1521
1496
  {
1522
1497
  "internalType": "bytes",
@@ -1629,24 +1604,24 @@
1629
1604
  "type": "bytes"
1630
1605
  },
1631
1606
  {
1632
- "internalType": "uint256",
1607
+ "internalType": "Amount",
1633
1608
  "name": "capitalAmount",
1634
- "type": "uint256"
1609
+ "type": "uint96"
1635
1610
  },
1636
1611
  {
1637
- "internalType": "uint256",
1612
+ "internalType": "Amount",
1638
1613
  "name": "lockedAmount",
1639
- "type": "uint256"
1614
+ "type": "uint96"
1640
1615
  },
1641
1616
  {
1642
- "internalType": "uint256",
1643
- "name": "balanceAmount",
1644
- "type": "uint256"
1617
+ "internalType": "Amount",
1618
+ "name": "feeAmount",
1619
+ "type": "uint96"
1645
1620
  },
1646
1621
  {
1647
- "internalType": "uint256",
1622
+ "internalType": "Seconds",
1648
1623
  "name": "lifetime",
1649
- "type": "uint256"
1624
+ "type": "uint40"
1650
1625
  },
1651
1626
  {
1652
1627
  "internalType": "Timestamp",
@@ -1711,6 +1686,23 @@
1711
1686
  "name": "tokenHandler",
1712
1687
  "type": "address"
1713
1688
  },
1689
+ {
1690
+ "components": [
1691
+ {
1692
+ "internalType": "UFixed",
1693
+ "name": "fractionalFee",
1694
+ "type": "uint256"
1695
+ },
1696
+ {
1697
+ "internalType": "uint256",
1698
+ "name": "fixedFee",
1699
+ "type": "uint256"
1700
+ }
1701
+ ],
1702
+ "internalType": "struct Fee",
1703
+ "name": "minDistributionOwnerFee",
1704
+ "type": "tuple"
1705
+ },
1714
1706
  {
1715
1707
  "components": [
1716
1708
  {
@@ -1732,6 +1724,11 @@
1732
1724
  "internalType": "address",
1733
1725
  "name": "wallet",
1734
1726
  "type": "address"
1727
+ },
1728
+ {
1729
+ "internalType": "uint256",
1730
+ "name": "sumDistributionOwnerFees",
1731
+ "type": "uint256"
1735
1732
  }
1736
1733
  ],
1737
1734
  "internalType": "struct ISetup.DistributionSetupInfo",
@@ -1790,6 +1787,16 @@
1790
1787
  "internalType": "bytes",
1791
1788
  "name": "data",
1792
1789
  "type": "bytes"
1790
+ },
1791
+ {
1792
+ "internalType": "uint256",
1793
+ "name": "sumCommisions",
1794
+ "type": "uint256"
1795
+ },
1796
+ {
1797
+ "internalType": "uint256",
1798
+ "name": "numPoliciesSold",
1799
+ "type": "uint256"
1793
1800
  }
1794
1801
  ],
1795
1802
  "internalType": "struct IDistribution.DistributorInfo",
@@ -1958,9 +1965,9 @@
1958
1965
  "type": "uint256"
1959
1966
  },
1960
1967
  {
1961
- "internalType": "uint256",
1968
+ "internalType": "Seconds",
1962
1969
  "name": "lifetime",
1963
- "type": "uint256"
1970
+ "type": "uint40"
1964
1971
  },
1965
1972
  {
1966
1973
  "internalType": "bytes",
@@ -2046,99 +2053,43 @@
2046
2053
  {
2047
2054
  "components": [
2048
2055
  {
2049
- "internalType": "NftId",
2050
- "name": "productNftId",
2051
- "type": "uint96"
2056
+ "internalType": "string",
2057
+ "name": "name",
2058
+ "type": "string"
2052
2059
  },
2053
2060
  {
2054
- "internalType": "contract TokenHandler",
2055
- "name": "tokenHandler",
2061
+ "internalType": "contract IERC20Metadata",
2062
+ "name": "token",
2056
2063
  "type": "address"
2057
2064
  },
2058
2065
  {
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"
2066
+ "internalType": "contract TokenHandler",
2067
+ "name": "tokenHandler",
2068
+ "type": "address"
2082
2069
  },
2083
2070
  {
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"
2071
+ "internalType": "address",
2072
+ "name": "wallet",
2073
+ "type": "address"
2099
2074
  },
2100
2075
  {
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"
2076
+ "internalType": "Amount",
2077
+ "name": "balanceAmount",
2078
+ "type": "uint96"
2116
2079
  },
2117
2080
  {
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"
2081
+ "internalType": "Amount",
2082
+ "name": "feeAmount",
2083
+ "type": "uint96"
2133
2084
  },
2134
2085
  {
2135
- "internalType": "address",
2136
- "name": "wallet",
2137
- "type": "address"
2086
+ "internalType": "bytes",
2087
+ "name": "data",
2088
+ "type": "bytes"
2138
2089
  }
2139
2090
  ],
2140
- "internalType": "struct ISetup.PoolSetupInfo",
2141
- "name": "setup",
2091
+ "internalType": "struct IComponents.ComponentInfo",
2092
+ "name": "info",
2142
2093
  "type": "tuple"
2143
2094
  },
2144
2095
  {
@@ -2199,23 +2150,6 @@
2199
2150
  "name": "poolNftId",
2200
2151
  "type": "uint96"
2201
2152
  },
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
2153
  {
2220
2154
  "components": [
2221
2155
  {
@@ -2250,57 +2184,6 @@
2250
2184
  "name": "processingFee",
2251
2185
  "type": "tuple"
2252
2186
  },
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
2187
  {
2305
2188
  "internalType": "bool",
2306
2189
  "name": "isIntercepting",