@etherisc/gif-next 0.0.2-d551b5e-892 → 0.0.2-d5522f6-712

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +29 -0
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +33 -102
  5. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +29 -0
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +33 -130
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +33 -113
  14. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  34. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
  35. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  36. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
  37. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  38. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  39. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +26 -0
  40. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  41. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  42. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +99 -14
  43. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  44. package/artifacts/contracts/instance/Instance.sol/Instance.json +82 -603
  45. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  46. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +221 -114
  47. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  48. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +2 -2
  49. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  50. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +2 -2
  51. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  52. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +156 -192
  53. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +26 -98
  55. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  56. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
  57. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  58. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +24 -13
  59. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  60. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  62. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  63. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  66. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1031 -0
  74. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
  76. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +39 -52
  78. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +47 -38
  80. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +13 -21
  82. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
  84. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +13 -13
  86. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -13
  88. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +121 -14
  90. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +12 -241
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +32 -34
  94. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +237 -65
  96. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +51 -23
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +30 -320
  100. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +13 -41
  102. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +43 -55
  104. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +12 -12
  106. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  108. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +132 -133
  110. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -65
  112. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  113. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  114. package/artifacts/contracts/registry/Registry.sol/Registry.json +145 -227
  115. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  116. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  117. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  118. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +30 -128
  119. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  120. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +38 -104
  121. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  122. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +546 -0
  123. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  124. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +14 -27
  125. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  127. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IService.sol/IService.json +13 -13
  131. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  135. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
  138. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  139. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  140. package/artifacts/contracts/shared/Service.sol/Service.json +13 -13
  141. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  142. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  145. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  147. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  149. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestService.sol/TestService.json +31 -31
  151. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  154. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  155. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  156. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  161. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  163. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  169. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  175. package/contracts/components/BaseComponent.sol +35 -8
  176. package/contracts/components/Distribution.sol +2 -1
  177. package/contracts/components/IBaseComponent.sol +3 -0
  178. package/contracts/components/Pool.sol +11 -6
  179. package/contracts/components/Product.sol +10 -1
  180. package/contracts/instance/IInstance.sol +4 -0
  181. package/contracts/instance/IInstanceService.sol +10 -2
  182. package/contracts/instance/Instance.sol +20 -204
  183. package/contracts/instance/InstanceAccessManager.sol +92 -77
  184. package/contracts/instance/InstanceService.sol +208 -115
  185. package/contracts/instance/InstanceServiceManager.sol +5 -8
  186. package/contracts/instance/base/ComponentServiceBase.sol +16 -12
  187. package/contracts/instance/module/IAccess.sol +27 -17
  188. package/contracts/instance/service/BundleService.sol +294 -0
  189. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  190. package/contracts/instance/service/ComponentOwnerService.sol +4 -6
  191. package/contracts/instance/service/DistributionService.sol +21 -19
  192. package/contracts/instance/service/DistributionServiceManager.sol +6 -9
  193. package/contracts/instance/service/IBundleService.sol +44 -0
  194. package/contracts/instance/service/IPolicyService.sol +9 -2
  195. package/contracts/instance/service/IPoolService.sol +2 -33
  196. package/contracts/instance/service/IProductService.sol +2 -2
  197. package/contracts/instance/service/PolicyService.sol +70 -44
  198. package/contracts/instance/service/PoolService.sol +33 -205
  199. package/contracts/instance/service/PoolServiceManager.sol +5 -8
  200. package/contracts/instance/service/ProductService.sol +55 -15
  201. package/contracts/registry/ChainNft.sol +1 -1
  202. package/contracts/registry/IRegistry.sol +26 -16
  203. package/contracts/registry/IRegistryService.sol +13 -5
  204. package/contracts/registry/Registry.sol +149 -201
  205. package/contracts/registry/RegistryAccessManager.sol +210 -0
  206. package/contracts/registry/RegistryService.sol +49 -88
  207. package/contracts/registry/RegistryServiceManager.sol +18 -36
  208. package/contracts/registry/ReleaseManager.sol +348 -0
  209. package/contracts/registry/TokenRegistry.sol +5 -6
  210. package/contracts/shared/IService.sol +2 -1
  211. package/contracts/shared/ProxyManager.sol +1 -1
  212. package/contracts/shared/Service.sol +10 -7
  213. package/contracts/test/TestService.sol +3 -2
  214. package/contracts/types/RoleId.sol +10 -11
  215. package/package.json +1 -1
  216. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  217. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  218. package/contracts/instance/IAccessManagerSimple.sol +0 -391
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }
@@ -98,6 +98,19 @@
98
98
  "name": "LogVersionableInitialized",
99
99
  "type": "event"
100
100
  },
101
+ {
102
+ "inputs": [],
103
+ "name": "getDomain",
104
+ "outputs": [
105
+ {
106
+ "internalType": "ObjectType",
107
+ "name": "serviceDomain",
108
+ "type": "uint8"
109
+ }
110
+ ],
111
+ "stateMutability": "pure",
112
+ "type": "function"
113
+ },
101
114
  {
102
115
  "inputs": [],
103
116
  "name": "getInitialInfo",
@@ -179,19 +192,6 @@
179
192
  "stateMutability": "view",
180
193
  "type": "function"
181
194
  },
182
- {
183
- "inputs": [],
184
- "name": "getName",
185
- "outputs": [
186
- {
187
- "internalType": "string",
188
- "name": "name",
189
- "type": "string"
190
- }
191
- ],
192
- "stateMutability": "pure",
193
- "type": "function"
194
- },
195
195
  {
196
196
  "inputs": [],
197
197
  "name": "getNftId",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }
@@ -98,6 +98,19 @@
98
98
  "name": "LogVersionableInitialized",
99
99
  "type": "event"
100
100
  },
101
+ {
102
+ "inputs": [],
103
+ "name": "getDomain",
104
+ "outputs": [
105
+ {
106
+ "internalType": "ObjectType",
107
+ "name": "serviceDomain",
108
+ "type": "uint8"
109
+ }
110
+ ],
111
+ "stateMutability": "pure",
112
+ "type": "function"
113
+ },
101
114
  {
102
115
  "inputs": [],
103
116
  "name": "getInitialInfo",
@@ -179,19 +192,6 @@
179
192
  "stateMutability": "view",
180
193
  "type": "function"
181
194
  },
182
- {
183
- "inputs": [],
184
- "name": "getName",
185
- "outputs": [
186
- {
187
- "internalType": "string",
188
- "name": "name",
189
- "type": "string"
190
- }
191
- ],
192
- "stateMutability": "pure",
193
- "type": "function"
194
- },
195
195
  {
196
196
  "inputs": [],
197
197
  "name": "getNftId",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }
@@ -48,7 +48,114 @@
48
48
  "type": "uint256"
49
49
  }
50
50
  ],
51
- "name": "ErrorIProductServiceInsufficientAllowance",
51
+ "name": "ErrorIPolicyServiceInsufficientAllowance",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "NftId",
58
+ "name": "policyNftId",
59
+ "type": "uint96"
60
+ },
61
+ {
62
+ "internalType": "uint16",
63
+ "name": "openClaimsCount",
64
+ "type": "uint16"
65
+ }
66
+ ],
67
+ "name": "ErrorIPolicyServiceOpenClaims",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "NftId",
74
+ "name": "policyNftId",
75
+ "type": "uint96"
76
+ }
77
+ ],
78
+ "name": "ErrorIPolicyServicePolicyAlreadyClosed",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "NftId",
85
+ "name": "policyNftId",
86
+ "type": "uint96"
87
+ },
88
+ {
89
+ "internalType": "Timestamp",
90
+ "name": "expiredAt",
91
+ "type": "uint40"
92
+ }
93
+ ],
94
+ "name": "ErrorIPolicyServicePolicyHasNotExpired",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "NftId",
101
+ "name": "policyNftId",
102
+ "type": "uint96"
103
+ }
104
+ ],
105
+ "name": "ErrorIPolicyServicePolicyNotActivated",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "NftId",
112
+ "name": "policyNftId",
113
+ "type": "uint96"
114
+ },
115
+ {
116
+ "internalType": "StateId",
117
+ "name": "state",
118
+ "type": "uint8"
119
+ }
120
+ ],
121
+ "name": "ErrorIPolicyServicePolicyNotActive",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [
126
+ {
127
+ "internalType": "NftId",
128
+ "name": "policyNftId",
129
+ "type": "uint96"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "premiumPaidAmount",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "ErrorIPolicyServicePremiumAlreadyPaid",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "policyNftId",
145
+ "type": "uint96"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "premiumAmount",
150
+ "type": "uint256"
151
+ },
152
+ {
153
+ "internalType": "uint256",
154
+ "name": "premiumPaidAmount",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "ErrorIPolicyServicePremiumNotFullyPaid",
52
159
  "type": "error"
53
160
  },
54
161
  {
@@ -305,6 +412,19 @@
305
412
  "stateMutability": "nonpayable",
306
413
  "type": "function"
307
414
  },
415
+ {
416
+ "inputs": [],
417
+ "name": "getDomain",
418
+ "outputs": [
419
+ {
420
+ "internalType": "ObjectType",
421
+ "name": "serviceDomain",
422
+ "type": "uint8"
423
+ }
424
+ ],
425
+ "stateMutability": "pure",
426
+ "type": "function"
427
+ },
308
428
  {
309
429
  "inputs": [],
310
430
  "name": "getInitialInfo",
@@ -386,19 +506,6 @@
386
506
  "stateMutability": "view",
387
507
  "type": "function"
388
508
  },
389
- {
390
- "inputs": [],
391
- "name": "getName",
392
- "outputs": [
393
- {
394
- "internalType": "string",
395
- "name": "name",
396
- "type": "string"
397
- }
398
- ],
399
- "stateMutability": "pure",
400
- "type": "function"
401
- },
402
509
  {
403
510
  "inputs": [],
404
511
  "name": "getNftId",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }
@@ -30,27 +30,6 @@
30
30
  "name": "ErrorContractNotRegistered",
31
31
  "type": "error"
32
32
  },
33
- {
34
- "inputs": [
35
- {
36
- "internalType": "address",
37
- "name": "bundleOwner",
38
- "type": "address"
39
- },
40
- {
41
- "internalType": "address",
42
- "name": "tokenHandlerAddress",
43
- "type": "address"
44
- },
45
- {
46
- "internalType": "uint256",
47
- "name": "amount",
48
- "type": "uint256"
49
- }
50
- ],
51
- "name": "ErrorIPoolServiceInsufficientAllowance",
52
- "type": "error"
53
- },
54
33
  {
55
34
  "inputs": [
56
35
  {
@@ -120,54 +99,16 @@
120
99
  "type": "event"
121
100
  },
122
101
  {
123
- "inputs": [
124
- {
125
- "internalType": "address",
126
- "name": "owner",
127
- "type": "address"
128
- },
129
- {
130
- "components": [
131
- {
132
- "internalType": "UFixed",
133
- "name": "fractionalFee",
134
- "type": "uint256"
135
- },
136
- {
137
- "internalType": "uint256",
138
- "name": "fixedFee",
139
- "type": "uint256"
140
- }
141
- ],
142
- "internalType": "struct Fee",
143
- "name": "fee",
144
- "type": "tuple"
145
- },
146
- {
147
- "internalType": "uint256",
148
- "name": "amount",
149
- "type": "uint256"
150
- },
151
- {
152
- "internalType": "uint256",
153
- "name": "lifetime",
154
- "type": "uint256"
155
- },
156
- {
157
- "internalType": "bytes",
158
- "name": "filter",
159
- "type": "bytes"
160
- }
161
- ],
162
- "name": "createBundle",
102
+ "inputs": [],
103
+ "name": "getDomain",
163
104
  "outputs": [
164
105
  {
165
- "internalType": "NftId",
166
- "name": "bundleNftId",
167
- "type": "uint96"
106
+ "internalType": "ObjectType",
107
+ "name": "serviceDomain",
108
+ "type": "uint8"
168
109
  }
169
110
  ],
170
- "stateMutability": "nonpayable",
111
+ "stateMutability": "pure",
171
112
  "type": "function"
172
113
  },
173
114
  {
@@ -251,19 +192,6 @@
251
192
  "stateMutability": "view",
252
193
  "type": "function"
253
194
  },
254
- {
255
- "inputs": [],
256
- "name": "getName",
257
- "outputs": [
258
- {
259
- "internalType": "string",
260
- "name": "name",
261
- "type": "string"
262
- }
263
- ],
264
- "stateMutability": "pure",
265
- "type": "function"
266
- },
267
195
  {
268
196
  "inputs": [],
269
197
  "name": "getNftId",
@@ -446,43 +374,19 @@
446
374
  {
447
375
  "inputs": [
448
376
  {
449
- "internalType": "NftId",
450
- "name": "bundleNftId",
451
- "type": "uint96"
377
+ "internalType": "address",
378
+ "name": "poolAddress",
379
+ "type": "address"
452
380
  }
453
381
  ],
454
- "name": "lockBundle",
455
- "outputs": [],
456
- "stateMutability": "nonpayable",
457
- "type": "function"
458
- },
459
- {
460
- "inputs": [
382
+ "name": "register",
383
+ "outputs": [
461
384
  {
462
385
  "internalType": "NftId",
463
- "name": "bundleNftId",
386
+ "name": "",
464
387
  "type": "uint96"
465
- },
466
- {
467
- "components": [
468
- {
469
- "internalType": "UFixed",
470
- "name": "fractionalFee",
471
- "type": "uint256"
472
- },
473
- {
474
- "internalType": "uint256",
475
- "name": "fixedFee",
476
- "type": "uint256"
477
- }
478
- ],
479
- "internalType": "struct Fee",
480
- "name": "fee",
481
- "type": "tuple"
482
388
  }
483
389
  ],
484
- "name": "setBundleFee",
485
- "outputs": [],
486
390
  "stateMutability": "nonpayable",
487
391
  "type": "function"
488
392
  },
@@ -564,139 +468,6 @@
564
468
  "stateMutability": "view",
565
469
  "type": "function"
566
470
  },
567
- {
568
- "inputs": [
569
- {
570
- "internalType": "contract IInstance",
571
- "name": "instanceNftId",
572
- "type": "address"
573
- },
574
- {
575
- "internalType": "NftId",
576
- "name": "policyNftId",
577
- "type": "uint96"
578
- },
579
- {
580
- "internalType": "NftId",
581
- "name": "bundleNftId",
582
- "type": "uint96"
583
- },
584
- {
585
- "internalType": "uint256",
586
- "name": "collateralAmount",
587
- "type": "uint256"
588
- },
589
- {
590
- "internalType": "uint256",
591
- "name": "netPremium",
592
- "type": "uint256"
593
- }
594
- ],
595
- "name": "underwritePolicy",
596
- "outputs": [],
597
- "stateMutability": "nonpayable",
598
- "type": "function"
599
- },
600
- {
601
- "inputs": [
602
- {
603
- "internalType": "NftId",
604
- "name": "bundleNftId",
605
- "type": "uint96"
606
- }
607
- ],
608
- "name": "unlockBundle",
609
- "outputs": [],
610
- "stateMutability": "nonpayable",
611
- "type": "function"
612
- },
613
- {
614
- "inputs": [
615
- {
616
- "internalType": "NftId",
617
- "name": "instanceNftId",
618
- "type": "uint96"
619
- },
620
- {
621
- "internalType": "NftId",
622
- "name": "bundleNftId",
623
- "type": "uint96"
624
- },
625
- {
626
- "components": [
627
- {
628
- "internalType": "NftId",
629
- "name": "poolNftId",
630
- "type": "uint96"
631
- },
632
- {
633
- "components": [
634
- {
635
- "internalType": "UFixed",
636
- "name": "fractionalFee",
637
- "type": "uint256"
638
- },
639
- {
640
- "internalType": "uint256",
641
- "name": "fixedFee",
642
- "type": "uint256"
643
- }
644
- ],
645
- "internalType": "struct Fee",
646
- "name": "fee",
647
- "type": "tuple"
648
- },
649
- {
650
- "internalType": "bytes",
651
- "name": "filter",
652
- "type": "bytes"
653
- },
654
- {
655
- "internalType": "uint256",
656
- "name": "capitalAmount",
657
- "type": "uint256"
658
- },
659
- {
660
- "internalType": "uint256",
661
- "name": "lockedAmount",
662
- "type": "uint256"
663
- },
664
- {
665
- "internalType": "uint256",
666
- "name": "balanceAmount",
667
- "type": "uint256"
668
- },
669
- {
670
- "internalType": "uint256",
671
- "name": "lifetime",
672
- "type": "uint256"
673
- },
674
- {
675
- "internalType": "Timestamp",
676
- "name": "expiredAt",
677
- "type": "uint40"
678
- },
679
- {
680
- "internalType": "Timestamp",
681
- "name": "closedAt",
682
- "type": "uint40"
683
- }
684
- ],
685
- "internalType": "struct IBundle.BundleInfo",
686
- "name": "bundleInfo",
687
- "type": "tuple"
688
- },
689
- {
690
- "internalType": "StateId",
691
- "name": "state",
692
- "type": "uint8"
693
- }
694
- ],
695
- "name": "updateBundle",
696
- "outputs": [],
697
- "stateMutability": "nonpayable",
698
- "type": "function"
699
- },
700
471
  {
701
472
  "inputs": [
702
473
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }
@@ -30,27 +30,6 @@
30
30
  "name": "ErrorContractNotRegistered",
31
31
  "type": "error"
32
32
  },
33
- {
34
- "inputs": [
35
- {
36
- "internalType": "address",
37
- "name": "customer",
38
- "type": "address"
39
- },
40
- {
41
- "internalType": "address",
42
- "name": "tokenHandlerAddress",
43
- "type": "address"
44
- },
45
- {
46
- "internalType": "uint256",
47
- "name": "amount",
48
- "type": "uint256"
49
- }
50
- ],
51
- "name": "ErrorIProductServiceInsufficientAllowance",
52
- "type": "error"
53
- },
54
33
  {
55
34
  "inputs": [
56
35
  {
@@ -137,6 +116,19 @@
137
116
  "stateMutability": "nonpayable",
138
117
  "type": "function"
139
118
  },
119
+ {
120
+ "inputs": [],
121
+ "name": "getDomain",
122
+ "outputs": [
123
+ {
124
+ "internalType": "ObjectType",
125
+ "name": "serviceDomain",
126
+ "type": "uint8"
127
+ }
128
+ ],
129
+ "stateMutability": "pure",
130
+ "type": "function"
131
+ },
140
132
  {
141
133
  "inputs": [],
142
134
  "name": "getInitialInfo",
@@ -218,19 +210,6 @@
218
210
  "stateMutability": "view",
219
211
  "type": "function"
220
212
  },
221
- {
222
- "inputs": [],
223
- "name": "getName",
224
- "outputs": [
225
- {
226
- "internalType": "string",
227
- "name": "name",
228
- "type": "string"
229
- }
230
- ],
231
- "stateMutability": "pure",
232
- "type": "function"
233
- },
234
213
  {
235
214
  "inputs": [],
236
215
  "name": "getNftId",
@@ -410,6 +389,25 @@
410
389
  "stateMutability": "nonpayable",
411
390
  "type": "function"
412
391
  },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "productAddress",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "name": "register",
401
+ "outputs": [
402
+ {
403
+ "internalType": "NftId",
404
+ "name": "",
405
+ "type": "uint96"
406
+ }
407
+ ],
408
+ "stateMutability": "nonpayable",
409
+ "type": "function"
410
+ },
413
411
  {
414
412
  "inputs": [
415
413
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/12b2d414fd80c2a411d69b27dfedd792.json"
3
+ "buildInfo": "../../../../build-info/259bf223b7f6fbb107e68b29f5f6d212.json"
4
4
  }