@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
@@ -80,11 +80,6 @@
80
80
  "internalType": "NftId",
81
81
  "name": "instanceNftId",
82
82
  "type": "uint96"
83
- },
84
- {
85
- "internalType": "address",
86
- "name": "instance",
87
- "type": "address"
88
83
  }
89
84
  ],
90
85
  "name": "ErrorComponentNotInstance",
@@ -107,29 +102,7 @@
107
102
  "type": "error"
108
103
  },
109
104
  {
110
- "inputs": [
111
- {
112
- "internalType": "address",
113
- "name": "caller",
114
- "type": "address"
115
- },
116
- {
117
- "internalType": "uint64",
118
- "name": "requiredRoleIdNum",
119
- "type": "uint64"
120
- }
121
- ],
122
- "name": "ErrorComponentUnauthorized",
123
- "type": "error"
124
- },
125
- {
126
- "inputs": [
127
- {
128
- "internalType": "address",
129
- "name": "newWallet",
130
- "type": "address"
131
- }
132
- ],
105
+ "inputs": [],
133
106
  "name": "ErrorComponentWalletAddressIsSameAsCurrent",
134
107
  "type": "error"
135
108
  },
@@ -215,9 +188,36 @@
215
188
  },
216
189
  {
217
190
  "inputs": [
191
+ {
192
+ "internalType": "NftId",
193
+ "name": "applicationNftId",
194
+ "type": "uint96"
195
+ }
196
+ ],
197
+ "name": "ErrorPoolApplicationBundleMismatch",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "inputs": [
202
+ {
203
+ "internalType": "NftId",
204
+ "name": "bundleNftId",
205
+ "type": "uint96"
206
+ },
218
207
  {
219
208
  "internalType": "address",
220
- "name": "service",
209
+ "name": "caller",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorPoolNotBundleOwner",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [
218
+ {
219
+ "internalType": "address",
220
+ "name": "caller",
221
221
  "type": "address"
222
222
  }
223
223
  ],
@@ -279,6 +279,12 @@
279
279
  {
280
280
  "anonymous": false,
281
281
  "inputs": [
282
+ {
283
+ "indexed": false,
284
+ "internalType": "address",
285
+ "name": "oldWallet",
286
+ "type": "address"
287
+ },
282
288
  {
283
289
  "indexed": false,
284
290
  "internalType": "address",
@@ -317,10 +323,16 @@
317
323
  {
318
324
  "anonymous": false,
319
325
  "inputs": [
326
+ {
327
+ "indexed": false,
328
+ "internalType": "address",
329
+ "name": "pool",
330
+ "type": "address"
331
+ },
320
332
  {
321
333
  "indexed": false,
322
334
  "internalType": "NftId",
323
- "name": "policyNftId",
335
+ "name": "applicationNftId",
324
336
  "type": "uint96"
325
337
  },
326
338
  {
@@ -328,20 +340,14 @@
328
340
  "internalType": "uint256",
329
341
  "name": "collateralizationAmount",
330
342
  "type": "uint256"
331
- },
332
- {
333
- "indexed": false,
334
- "internalType": "address",
335
- "name": "pool",
336
- "type": "address"
337
343
  }
338
344
  ],
339
- "name": "LogUnderwrittenByPool",
345
+ "name": "LogPoolVerifiedByPool",
340
346
  "type": "event"
341
347
  },
342
348
  {
343
349
  "inputs": [],
344
- "name": "CONTRACT_LOCATION_V1",
350
+ "name": "COMPONENT_LOCATION_V1",
345
351
  "outputs": [
346
352
  {
347
353
  "internalType": "bytes32",
@@ -391,6 +397,45 @@
391
397
  "stateMutability": "view",
392
398
  "type": "function"
393
399
  },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "NftId",
404
+ "name": "applicationNftId",
405
+ "type": "uint96"
406
+ },
407
+ {
408
+ "internalType": "bytes",
409
+ "name": "applicationData",
410
+ "type": "bytes"
411
+ },
412
+ {
413
+ "internalType": "NftId",
414
+ "name": "bundleNftId",
415
+ "type": "uint96"
416
+ },
417
+ {
418
+ "internalType": "bytes",
419
+ "name": "bundleFilter",
420
+ "type": "bytes"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "collateralizationAmount",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "name": "applicationMatchesBundle",
429
+ "outputs": [
430
+ {
431
+ "internalType": "bool",
432
+ "name": "isMatching",
433
+ "type": "bool"
434
+ }
435
+ ],
436
+ "stateMutability": "view",
437
+ "type": "function"
438
+ },
394
439
  {
395
440
  "inputs": [],
396
441
  "name": "authority",
@@ -404,14 +449,82 @@
404
449
  "stateMutability": "view",
405
450
  "type": "function"
406
451
  },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "NftId",
456
+ "name": "bundleNftId",
457
+ "type": "uint96"
458
+ }
459
+ ],
460
+ "name": "close",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "NftId",
469
+ "name": "bundleNftId",
470
+ "type": "uint96"
471
+ },
472
+ {
473
+ "internalType": "Seconds",
474
+ "name": "lifetimeExtension",
475
+ "type": "uint40"
476
+ }
477
+ ],
478
+ "name": "extend",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
407
483
  {
408
484
  "inputs": [],
409
- "name": "getCollateralizationLevel",
485
+ "name": "getComponentInfo",
410
486
  "outputs": [
411
487
  {
412
- "internalType": "UFixed",
413
- "name": "collateralizationLevel",
414
- "type": "uint256"
488
+ "components": [
489
+ {
490
+ "internalType": "string",
491
+ "name": "name",
492
+ "type": "string"
493
+ },
494
+ {
495
+ "internalType": "contract IERC20Metadata",
496
+ "name": "token",
497
+ "type": "address"
498
+ },
499
+ {
500
+ "internalType": "contract TokenHandler",
501
+ "name": "tokenHandler",
502
+ "type": "address"
503
+ },
504
+ {
505
+ "internalType": "address",
506
+ "name": "wallet",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "internalType": "Amount",
511
+ "name": "balanceAmount",
512
+ "type": "uint96"
513
+ },
514
+ {
515
+ "internalType": "Amount",
516
+ "name": "feeAmount",
517
+ "type": "uint96"
518
+ },
519
+ {
520
+ "internalType": "bytes",
521
+ "name": "data",
522
+ "type": "bytes"
523
+ }
524
+ ],
525
+ "internalType": "struct IComponents.ComponentInfo",
526
+ "name": "info",
527
+ "type": "tuple"
415
528
  }
416
529
  ],
417
530
  "stateMutability": "view",
@@ -499,32 +612,6 @@
499
612
  "stateMutability": "view",
500
613
  "type": "function"
501
614
  },
502
- {
503
- "inputs": [],
504
- "name": "getInstanceReader",
505
- "outputs": [
506
- {
507
- "internalType": "contract InstanceReader",
508
- "name": "reader",
509
- "type": "address"
510
- }
511
- ],
512
- "stateMutability": "view",
513
- "type": "function"
514
- },
515
- {
516
- "inputs": [],
517
- "name": "getInstanceService",
518
- "outputs": [
519
- {
520
- "internalType": "contract IInstanceService",
521
- "name": "",
522
- "type": "address"
523
- }
524
- ],
525
- "stateMutability": "view",
526
- "type": "function"
527
- },
528
615
  {
529
616
  "inputs": [],
530
617
  "name": "getName",
@@ -566,91 +653,7 @@
566
653
  },
567
654
  {
568
655
  "inputs": [],
569
- "name": "getProductNftId",
570
- "outputs": [
571
- {
572
- "internalType": "NftId",
573
- "name": "productNftId",
574
- "type": "uint96"
575
- }
576
- ],
577
- "stateMutability": "view",
578
- "type": "function"
579
- },
580
- {
581
- "inputs": [],
582
- "name": "getProductService",
583
- "outputs": [
584
- {
585
- "internalType": "contract IProductService",
586
- "name": "",
587
- "type": "address"
588
- }
589
- ],
590
- "stateMutability": "view",
591
- "type": "function"
592
- },
593
- {
594
- "inputs": [],
595
- "name": "getRegistry",
596
- "outputs": [
597
- {
598
- "internalType": "contract IRegistry",
599
- "name": "",
600
- "type": "address"
601
- }
602
- ],
603
- "stateMutability": "view",
604
- "type": "function"
605
- },
606
- {
607
- "inputs": [],
608
- "name": "getRegistryAddress",
609
- "outputs": [
610
- {
611
- "internalType": "address",
612
- "name": "",
613
- "type": "address"
614
- }
615
- ],
616
- "stateMutability": "view",
617
- "type": "function"
618
- },
619
- {
620
- "inputs": [],
621
- "name": "getRetentionLevel",
622
- "outputs": [
623
- {
624
- "internalType": "UFixed",
625
- "name": "retentionLevel",
626
- "type": "uint256"
627
- }
628
- ],
629
- "stateMutability": "view",
630
- "type": "function"
631
- },
632
- {
633
- "inputs": [
634
- {
635
- "internalType": "ObjectType",
636
- "name": "domain",
637
- "type": "uint8"
638
- }
639
- ],
640
- "name": "getServiceAddress",
641
- "outputs": [
642
- {
643
- "internalType": "address",
644
- "name": "service",
645
- "type": "address"
646
- }
647
- ],
648
- "stateMutability": "view",
649
- "type": "function"
650
- },
651
- {
652
- "inputs": [],
653
- "name": "getSetupInfo",
656
+ "name": "getPoolInfo",
654
657
  "outputs": [
655
658
  {
656
659
  "components": [
@@ -660,9 +663,24 @@
660
663
  "type": "uint96"
661
664
  },
662
665
  {
663
- "internalType": "contract TokenHandler",
664
- "name": "tokenHandler",
665
- "type": "address"
666
+ "internalType": "RoleId",
667
+ "name": "bundleOwnerRole",
668
+ "type": "uint64"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "maxCapitalAmount",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "balanceAmount",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "feeAmount",
683
+ "type": "uint256"
666
684
  },
667
685
  {
668
686
  "internalType": "bool",
@@ -739,21 +757,55 @@
739
757
  "internalType": "struct Fee",
740
758
  "name": "performanceFee",
741
759
  "type": "tuple"
742
- },
743
- {
744
- "internalType": "address",
745
- "name": "wallet",
746
- "type": "address"
747
760
  }
748
761
  ],
749
- "internalType": "struct ISetup.PoolSetupInfo",
750
- "name": "setupInfo",
762
+ "internalType": "struct IComponents.PoolInfo",
763
+ "name": "poolInfo",
751
764
  "type": "tuple"
752
765
  }
753
766
  ],
754
767
  "stateMutability": "view",
755
768
  "type": "function"
756
769
  },
770
+ {
771
+ "inputs": [],
772
+ "name": "getProductNftId",
773
+ "outputs": [
774
+ {
775
+ "internalType": "NftId",
776
+ "name": "productNftId",
777
+ "type": "uint96"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [],
785
+ "name": "getRegistry",
786
+ "outputs": [
787
+ {
788
+ "internalType": "contract IRegistry",
789
+ "name": "",
790
+ "type": "address"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [],
798
+ "name": "getRegistryAddress",
799
+ "outputs": [
800
+ {
801
+ "internalType": "address",
802
+ "name": "",
803
+ "type": "address"
804
+ }
805
+ ],
806
+ "stateMutability": "view",
807
+ "type": "function"
808
+ },
757
809
  {
758
810
  "inputs": [],
759
811
  "name": "getToken",
@@ -819,7 +871,7 @@
819
871
  },
820
872
  {
821
873
  "internalType": "bytes",
822
- "name": "data",
874
+ "name": "registryData",
823
875
  "type": "bytes"
824
876
  }
825
877
  ],
@@ -880,26 +932,6 @@
880
932
  "name": "isInterceptingNftTransfers",
881
933
  "type": "bool"
882
934
  },
883
- {
884
- "internalType": "bool",
885
- "name": "isExternallyManaging",
886
- "type": "bool"
887
- },
888
- {
889
- "internalType": "bool",
890
- "name": "isVerifying",
891
- "type": "bool"
892
- },
893
- {
894
- "internalType": "UFixed",
895
- "name": "collateralizationLevel",
896
- "type": "uint256"
897
- },
898
- {
899
- "internalType": "UFixed",
900
- "name": "retentionLevel",
901
- "type": "uint256"
902
- },
903
935
  {
904
936
  "internalType": "address",
905
937
  "name": "initialOwner",
@@ -907,7 +939,7 @@
907
939
  },
908
940
  {
909
941
  "internalType": "bytes",
910
- "name": "data",
942
+ "name": "registryData",
911
943
  "type": "bytes"
912
944
  }
913
945
  ],
@@ -945,7 +977,7 @@
945
977
  },
946
978
  {
947
979
  "internalType": "bytes",
948
- "name": "data",
980
+ "name": "registryData",
949
981
  "type": "bytes"
950
982
  }
951
983
  ],
@@ -980,32 +1012,6 @@
980
1012
  "stateMutability": "view",
981
1013
  "type": "function"
982
1014
  },
983
- {
984
- "inputs": [],
985
- "name": "isExternallyManaged",
986
- "outputs": [
987
- {
988
- "internalType": "bool",
989
- "name": "",
990
- "type": "bool"
991
- }
992
- ],
993
- "stateMutability": "view",
994
- "type": "function"
995
- },
996
- {
997
- "inputs": [],
998
- "name": "isInterceptingBundleTransfers",
999
- "outputs": [
1000
- {
1001
- "internalType": "bool",
1002
- "name": "",
1003
- "type": "bool"
1004
- }
1005
- ],
1006
- "stateMutability": "view",
1007
- "type": "function"
1008
- },
1009
1015
  {
1010
1016
  "inputs": [],
1011
1017
  "name": "isNftInterceptor",
@@ -1019,19 +1025,6 @@
1019
1025
  "stateMutability": "view",
1020
1026
  "type": "function"
1021
1027
  },
1022
- {
1023
- "inputs": [],
1024
- "name": "isVerifyingApplications",
1025
- "outputs": [
1026
- {
1027
- "internalType": "bool",
1028
- "name": "isConfirmingApplication",
1029
- "type": "bool"
1030
- }
1031
- ],
1032
- "stateMutability": "view",
1033
- "type": "function"
1034
- },
1035
1028
  {
1036
1029
  "inputs": [],
1037
1030
  "name": "linkToRegisteredNftId",
@@ -1061,11 +1054,6 @@
1061
1054
  },
1062
1055
  {
1063
1056
  "inputs": [
1064
- {
1065
- "internalType": "address",
1066
- "name": "from",
1067
- "type": "address"
1068
- },
1069
1057
  {
1070
1058
  "internalType": "address",
1071
1059
  "name": "to",
@@ -1077,7 +1065,7 @@
1077
1065
  "type": "uint256"
1078
1066
  }
1079
1067
  ],
1080
- "name": "nftTransferFrom",
1068
+ "name": "nftMint",
1081
1069
  "outputs": [],
1082
1070
  "stateMutability": "nonpayable",
1083
1071
  "type": "function"
@@ -1085,25 +1073,24 @@
1085
1073
  {
1086
1074
  "inputs": [
1087
1075
  {
1088
- "internalType": "bytes",
1089
- "name": "",
1090
- "type": "bytes"
1076
+ "internalType": "address",
1077
+ "name": "from",
1078
+ "type": "address"
1091
1079
  },
1092
1080
  {
1093
- "internalType": "bytes",
1094
- "name": "",
1095
- "type": "bytes"
1096
- }
1097
- ],
1098
- "name": "policyMatchesBundle",
1099
- "outputs": [
1081
+ "internalType": "address",
1082
+ "name": "to",
1083
+ "type": "address"
1084
+ },
1100
1085
  {
1101
- "internalType": "bool",
1102
- "name": "isMatching",
1103
- "type": "bool"
1086
+ "internalType": "uint256",
1087
+ "name": "tokenId",
1088
+ "type": "uint256"
1104
1089
  }
1105
1090
  ],
1106
- "stateMutability": "pure",
1091
+ "name": "nftTransferFrom",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
1107
1094
  "type": "function"
1108
1095
  },
1109
1096
  {
@@ -1162,6 +1149,19 @@
1162
1149
  "stateMutability": "nonpayable",
1163
1150
  "type": "function"
1164
1151
  },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "internalType": "RoleId",
1156
+ "name": "bundleOwnerRole",
1157
+ "type": "uint64"
1158
+ }
1159
+ ],
1160
+ "name": "setBundleOwnerRole",
1161
+ "outputs": [],
1162
+ "stateMutability": "nonpayable",
1163
+ "type": "function"
1164
+ },
1165
1165
  {
1166
1166
  "inputs": [
1167
1167
  {
@@ -1221,6 +1221,19 @@
1221
1221
  "stateMutability": "nonpayable",
1222
1222
  "type": "function"
1223
1223
  },
1224
+ {
1225
+ "inputs": [
1226
+ {
1227
+ "internalType": "uint256",
1228
+ "name": "maxCapitalAmount",
1229
+ "type": "uint256"
1230
+ }
1231
+ ],
1232
+ "name": "setMaxCapitalAmount",
1233
+ "outputs": [],
1234
+ "stateMutability": "nonpayable",
1235
+ "type": "function"
1236
+ },
1224
1237
  {
1225
1238
  "inputs": [
1226
1239
  {
@@ -1247,6 +1260,24 @@
1247
1260
  "stateMutability": "nonpayable",
1248
1261
  "type": "function"
1249
1262
  },
1263
+ {
1264
+ "inputs": [
1265
+ {
1266
+ "internalType": "NftId",
1267
+ "name": "bundleNftId",
1268
+ "type": "uint96"
1269
+ },
1270
+ {
1271
+ "internalType": "uint256",
1272
+ "name": "amount",
1273
+ "type": "uint256"
1274
+ }
1275
+ ],
1276
+ "name": "stake",
1277
+ "outputs": [],
1278
+ "stateMutability": "nonpayable",
1279
+ "type": "function"
1280
+ },
1250
1281
  {
1251
1282
  "inputs": [
1252
1283
  {
@@ -1286,6 +1317,24 @@
1286
1317
  "stateMutability": "nonpayable",
1287
1318
  "type": "function"
1288
1319
  },
1320
+ {
1321
+ "inputs": [
1322
+ {
1323
+ "internalType": "NftId",
1324
+ "name": "bundleNftId",
1325
+ "type": "uint96"
1326
+ },
1327
+ {
1328
+ "internalType": "uint256",
1329
+ "name": "amount",
1330
+ "type": "uint256"
1331
+ }
1332
+ ],
1333
+ "name": "unstake",
1334
+ "outputs": [],
1335
+ "stateMutability": "nonpayable",
1336
+ "type": "function"
1337
+ },
1289
1338
  {
1290
1339
  "inputs": [
1291
1340
  {
@@ -1298,6 +1347,11 @@
1298
1347
  "name": "applicationData",
1299
1348
  "type": "bytes"
1300
1349
  },
1350
+ {
1351
+ "internalType": "NftId",
1352
+ "name": "bundleNftId",
1353
+ "type": "uint96"
1354
+ },
1301
1355
  {
1302
1356
  "internalType": "bytes",
1303
1357
  "name": "bundleFilter",