@etherisc/gif-next 0.0.2-fe34d97-357 → 0.0.2-fe88ad7-208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. package/README.md +231 -27
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +331 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +675 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +246 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +90 -171
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +520 -133
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +540 -113
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  46. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  47. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  48. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  49. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +946 -1214
  52. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  54. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +570 -0
  56. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/Instance.sol/Instance.json +1852 -1184
  58. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1047 -0
  60. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  62. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  64. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +963 -0
  66. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +460 -0
  68. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  70. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +280 -48
  72. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +33 -1
  74. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  76. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  77. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  78. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  79. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  80. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  81. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  83. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  85. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  87. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  89. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  90. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  91. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  92. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  93. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  94. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  95. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +945 -0
  97. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +432 -0
  99. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +380 -89
  101. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +693 -0
  103. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  104. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +420 -0
  105. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  107. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +185 -83
  109. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  110. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IDistributionService.sol/IDistributionService.json} +206 -60
  111. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  112. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  113. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +200 -77
  115. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +184 -196
  117. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  118. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +993 -0
  119. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  120. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  121. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  122. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +345 -89
  123. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +420 -0
  125. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  126. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +300 -267
  127. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  128. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  129. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  130. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  131. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  132. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +376 -37
  133. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  134. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +976 -0
  135. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  136. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  137. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  138. package/artifacts/contracts/registry/Registry.sol/Registry.json +397 -115
  139. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  140. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  141. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1195 -0
  143. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  144. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
  145. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  146. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +546 -0
  147. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  148. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  149. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  150. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  151. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  152. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  153. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  154. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  155. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  156. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  157. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  158. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +172 -95
  159. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  160. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  161. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  162. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  163. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  164. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  165. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  166. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  167. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  168. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  169. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  170. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +224 -56
  171. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  172. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  173. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  174. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  175. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  176. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  177. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  179. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  180. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  181. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  182. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  183. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  184. package/artifacts/contracts/test/TestService.sol/TestService.json +289 -68
  185. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  186. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  187. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  188. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  189. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  190. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  191. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  192. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  193. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  194. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  198. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  200. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  202. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  204. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  205. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  206. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  208. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  210. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  212. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  214. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  216. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  218. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  220. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  222. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  224. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  225. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  226. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  227. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  228. package/contracts/components/BaseComponent.sol +104 -39
  229. package/contracts/components/Distribution.sol +163 -0
  230. package/contracts/components/IBaseComponent.sol +18 -3
  231. package/contracts/components/IDistributionComponent.sol +44 -0
  232. package/contracts/components/IPoolComponent.sol +19 -10
  233. package/contracts/components/IProductComponent.sol +25 -9
  234. package/contracts/components/Pool.sol +126 -46
  235. package/contracts/components/Product.sol +172 -61
  236. package/contracts/experiment/cloning/Cloner.sol +47 -0
  237. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  238. package/contracts/instance/BundleManager.sol +129 -0
  239. package/contracts/instance/Cloneable.sol +46 -0
  240. package/contracts/instance/IInstance.sol +55 -44
  241. package/contracts/instance/IInstanceBase.sol +26 -0
  242. package/contracts/instance/IInstanceService.sol +40 -0
  243. package/contracts/instance/Instance.sol +261 -56
  244. package/contracts/instance/InstanceAccessManager.sol +303 -0
  245. package/contracts/instance/InstanceBase.sol +41 -0
  246. package/contracts/instance/InstanceReader.sol +315 -0
  247. package/contracts/instance/InstanceService.sol +350 -0
  248. package/contracts/instance/InstanceServiceManager.sol +54 -0
  249. package/contracts/instance/ObjectManager.sol +101 -0
  250. package/contracts/instance/base/ComponentServiceBase.sol +57 -17
  251. package/contracts/instance/base/IInstanceBase.sol +6 -2
  252. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  253. package/contracts/instance/base/ILifecycle.sol +3 -3
  254. package/contracts/instance/base/KeyValueStore.sol +49 -38
  255. package/contracts/instance/base/Lifecycle.sol +1 -1
  256. package/contracts/instance/module/IAccess.sol +48 -0
  257. package/contracts/instance/module/IBundle.sol +20 -0
  258. package/contracts/instance/module/IDistribution.sol +39 -0
  259. package/contracts/instance/module/IPolicy.sol +45 -0
  260. package/contracts/instance/module/IRisk.sol +11 -0
  261. package/contracts/instance/module/ISetup.sol +46 -0
  262. package/contracts/instance/module/ITreasury.sol +23 -0
  263. package/contracts/instance/service/BundleService.sol +260 -0
  264. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  265. package/contracts/instance/service/ComponentOwnerService.sol +238 -78
  266. package/contracts/instance/service/DistributionService.sol +113 -0
  267. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  268. package/contracts/instance/service/IBundleService.sol +45 -0
  269. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  270. package/contracts/instance/service/IDistributionService.sol +12 -0
  271. package/contracts/instance/service/IPolicyService.sol +87 -0
  272. package/contracts/instance/service/IPoolService.sol +8 -18
  273. package/contracts/instance/service/IProductService.sol +12 -50
  274. package/contracts/instance/service/PolicyService.sol +503 -0
  275. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  276. package/contracts/instance/service/PoolService.sol +87 -92
  277. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  278. package/contracts/instance/service/ProductService.sol +103 -339
  279. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  280. package/contracts/registry/ChainNft.sol +79 -36
  281. package/contracts/registry/IRegistry.sol +58 -24
  282. package/contracts/registry/IRegistryService.sol +58 -0
  283. package/contracts/registry/ITransferInterceptor.sol +6 -0
  284. package/contracts/registry/Registry.sol +303 -288
  285. package/contracts/registry/RegistryAccessManager.sol +210 -0
  286. package/contracts/registry/RegistryService.sol +323 -0
  287. package/contracts/registry/RegistryServiceManager.sol +62 -0
  288. package/contracts/registry/ReleaseManager.sol +348 -0
  289. package/contracts/registry/TokenRegistry.sol +110 -0
  290. package/contracts/shared/ContractDeployerLib.sol +72 -0
  291. package/contracts/shared/ERC165.sol +6 -2
  292. package/contracts/shared/INftOwnable.sol +22 -0
  293. package/contracts/shared/IRegisterable.sol +8 -15
  294. package/contracts/shared/IService.sol +16 -0
  295. package/contracts/shared/IVersionable.sol +55 -11
  296. package/contracts/shared/NftOwnable.sol +134 -0
  297. package/contracts/shared/ProxyManager.sol +94 -0
  298. package/contracts/shared/Registerable.sol +63 -59
  299. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  300. package/contracts/shared/Service.sol +58 -0
  301. package/contracts/shared/TokenHandler.sol +27 -0
  302. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  303. package/contracts/shared/Versionable.sol +113 -55
  304. package/contracts/test/TestFee.sol +2 -2
  305. package/contracts/test/TestRegisterable.sol +5 -6
  306. package/contracts/test/TestRoleId.sol +1 -1
  307. package/contracts/test/TestService.sol +7 -14
  308. package/contracts/types/DistributorType.sol +55 -0
  309. package/contracts/types/Fee.sol +10 -5
  310. package/contracts/types/Key32.sol +8 -3
  311. package/contracts/types/NftIdSet.sol +26 -24
  312. package/contracts/types/NumberId.sol +52 -0
  313. package/contracts/types/ObjectType.sol +32 -7
  314. package/contracts/types/Referral.sol +85 -0
  315. package/contracts/types/RoleId.sol +62 -10
  316. package/contracts/types/StateId.sol +5 -1
  317. package/contracts/types/Timestamp.sol +7 -3
  318. package/contracts/types/UFixed.sol +128 -12
  319. package/contracts/types/Version.sol +13 -1
  320. package/package.json +4 -3
  321. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  322. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  323. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  324. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  325. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  326. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  329. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  332. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  333. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -265
  334. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  336. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -265
  337. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  339. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  341. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  343. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -136
  345. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  347. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  348. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -136
  349. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  350. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -288
  352. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -288
  354. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  355. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  356. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  358. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  360. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -132
  363. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -150
  365. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  366. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -531
  368. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  369. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  370. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  371. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -531
  372. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  373. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  374. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  375. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  376. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  377. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  378. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  379. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -455
  380. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  381. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -479
  382. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  383. package/contracts/experiment/statemachine/README.md +0 -112
  384. package/contracts/instance/IInstanceLinked.sol +0 -8
  385. package/contracts/instance/base/IService.sol +0 -15
  386. package/contracts/instance/base/InstanceBase.sol +0 -84
  387. package/contracts/instance/base/ModuleBase.sol +0 -53
  388. package/contracts/instance/base/ServiceBase.sol +0 -37
  389. package/contracts/instance/module/access/Access.sol +0 -149
  390. package/contracts/instance/module/access/IAccess.sol +0 -53
  391. package/contracts/instance/module/bundle/BundleModule.sol +0 -135
  392. package/contracts/instance/module/bundle/IBundle.sol +0 -51
  393. package/contracts/instance/module/compensation/CompensationModule.sol +0 -17
  394. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  395. package/contracts/instance/module/component/ComponentModule.sol +0 -81
  396. package/contracts/instance/module/component/IComponent.sol +0 -29
  397. package/contracts/instance/module/policy/IPolicy.sol +0 -62
  398. package/contracts/instance/module/policy/PolicyModule.sol +0 -92
  399. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  400. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  401. package/contracts/instance/module/risk/IRisk.sol +0 -27
  402. package/contracts/instance/module/risk/RiskModule.sol +0 -70
  403. package/contracts/instance/module/treasury/ITreasury.sol +0 -96
  404. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  405. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -171
  406. package/contracts/registry/IChainNft.sol +0 -21
  407. package/contracts/registry/IRegistryLinked.sol +0 -8
  408. package/contracts/shared/IOwnable.sol +0 -6
  409. package/contracts/test/TestPool.sol +0 -24
  410. package/contracts/test/TestProduct.sol +0 -66
@@ -3,6 +3,28 @@
3
3
  "contractName": "Product",
4
4
  "sourceName": "contracts/components/Product.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "target",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AddressEmptyCode",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "account",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "name": "AddressInsufficientBalance",
26
+ "type": "error"
27
+ },
6
28
  {
7
29
  "inputs": [
8
30
  {
@@ -12,78 +34,294 @@
12
34
  },
13
35
  {
14
36
  "internalType": "NftId",
15
- "name": "instanceNftid",
37
+ "name": "nftId",
16
38
  "type": "uint96"
39
+ }
40
+ ],
41
+ "name": "ErrorAlreadyLinked",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "caller",
49
+ "type": "address"
17
50
  },
51
+ {
52
+ "internalType": "uint64",
53
+ "name": "requiredRoleIdNum",
54
+ "type": "uint64"
55
+ }
56
+ ],
57
+ "name": "ErrorBaseComponentUnauthorized",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
18
62
  {
19
63
  "internalType": "address",
20
- "name": "token",
64
+ "name": "newWallet",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "address",
75
+ "name": "oldWallet",
21
76
  "type": "address"
22
77
  },
23
78
  {
24
79
  "internalType": "address",
25
- "name": "pool",
80
+ "name": "newWallet",
26
81
  "type": "address"
27
82
  },
28
83
  {
29
- "components": [
30
- {
31
- "internalType": "UFixed",
32
- "name": "fractionalFee",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "fixedFee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "internalType": "struct Fee",
42
- "name": "policyFee",
43
- "type": "tuple"
84
+ "internalType": "uint256",
85
+ "name": "allowance",
86
+ "type": "uint256"
44
87
  },
45
88
  {
46
- "components": [
47
- {
48
- "internalType": "UFixed",
49
- "name": "fractionalFee",
50
- "type": "uint256"
51
- },
52
- {
53
- "internalType": "uint256",
54
- "name": "fixedFee",
55
- "type": "uint256"
56
- }
57
- ],
58
- "internalType": "struct Fee",
59
- "name": "processingFee",
60
- "type": "tuple"
89
+ "internalType": "uint256",
90
+ "name": "balance",
91
+ "type": "uint256"
61
92
  }
62
93
  ],
63
- "stateMutability": "nonpayable",
64
- "type": "constructor"
94
+ "name": "ErrorBaseComponentWalletAllowanceTooSmall",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "address",
101
+ "name": "contractAddress",
102
+ "type": "address"
103
+ }
104
+ ],
105
+ "name": "ErrorContractNotRegistered",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "address",
112
+ "name": "account",
113
+ "type": "address"
114
+ }
115
+ ],
116
+ "name": "ErrorNotOwner",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "address",
123
+ "name": "registryAddress",
124
+ "type": "address"
125
+ }
126
+ ],
127
+ "name": "ErrorNotRegistry",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "address",
134
+ "name": "registryAddress",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "ErrorRegisterableNotRegistry",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorRegistryAddressZero",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "registry",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "ErrorRegistryAlreadyInitialized",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "ErrorRegistryNotInitialized",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "FailedInnerCall",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [],
169
+ "name": "InvalidInitialization",
170
+ "type": "error"
65
171
  },
66
172
  {
67
173
  "inputs": [],
68
- "name": "getData",
174
+ "name": "NotInitializing",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "token",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "name": "SafeERC20FailedOperation",
186
+ "type": "error"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint64",
194
+ "name": "version",
195
+ "type": "uint64"
196
+ }
197
+ ],
198
+ "name": "Initialized",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "address",
207
+ "name": "newWallet",
208
+ "type": "address"
209
+ }
210
+ ],
211
+ "name": "LogBaseComponentWalletAddressChanged",
212
+ "type": "event"
213
+ },
214
+ {
215
+ "anonymous": false,
216
+ "inputs": [
217
+ {
218
+ "indexed": false,
219
+ "internalType": "address",
220
+ "name": "from",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "internalType": "address",
226
+ "name": "to",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "internalType": "uint256",
232
+ "name": "amount",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "name": "LogBaseComponentWalletTokensTransferred",
237
+ "type": "event"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "REGISTERABLE_LOCATION_V1",
69
242
  "outputs": [
243
+ {
244
+ "internalType": "bytes32",
245
+ "name": "",
246
+ "type": "bytes32"
247
+ }
248
+ ],
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "inputs": [
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "sumInsuredAmount",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "internalType": "RiskId",
261
+ "name": "riskId",
262
+ "type": "bytes8"
263
+ },
264
+ {
265
+ "internalType": "uint256",
266
+ "name": "lifetime",
267
+ "type": "uint256"
268
+ },
70
269
  {
71
270
  "internalType": "bytes",
72
- "name": "data",
271
+ "name": "applicationData",
73
272
  "type": "bytes"
74
273
  }
75
274
  ],
275
+ "name": "calculateNetPremium",
276
+ "outputs": [
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "netPremiumAmount",
280
+ "type": "uint256"
281
+ }
282
+ ],
76
283
  "stateMutability": "view",
77
284
  "type": "function"
78
285
  },
79
286
  {
80
- "inputs": [],
81
- "name": "getInstance",
287
+ "inputs": [
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "sumInsuredAmount",
291
+ "type": "uint256"
292
+ },
293
+ {
294
+ "internalType": "RiskId",
295
+ "name": "riskId",
296
+ "type": "bytes8"
297
+ },
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "lifetime",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "internalType": "bytes",
305
+ "name": "applicationData",
306
+ "type": "bytes"
307
+ },
308
+ {
309
+ "internalType": "ReferralId",
310
+ "name": "referralId",
311
+ "type": "bytes8"
312
+ },
313
+ {
314
+ "internalType": "NftId",
315
+ "name": "bundleNftId",
316
+ "type": "uint96"
317
+ }
318
+ ],
319
+ "name": "calculatePremium",
82
320
  "outputs": [
83
321
  {
84
- "internalType": "contract IInstance",
85
- "name": "instance",
86
- "type": "address"
322
+ "internalType": "uint256",
323
+ "name": "premiumAmount",
324
+ "type": "uint256"
87
325
  }
88
326
  ],
89
327
  "stateMutability": "view",
@@ -91,11 +329,11 @@
91
329
  },
92
330
  {
93
331
  "inputs": [],
94
- "name": "getNftId",
332
+ "name": "getDistributionNftId",
95
333
  "outputs": [
96
334
  {
97
335
  "internalType": "NftId",
98
- "name": "nftId",
336
+ "name": "distributionNftId",
99
337
  "type": "uint96"
100
338
  }
101
339
  ],
@@ -104,11 +342,66 @@
104
342
  },
105
343
  {
106
344
  "inputs": [],
107
- "name": "getOwner",
345
+ "name": "getInitialInfo",
108
346
  "outputs": [
109
347
  {
110
- "internalType": "address",
111
- "name": "owner",
348
+ "components": [
349
+ {
350
+ "internalType": "NftId",
351
+ "name": "nftId",
352
+ "type": "uint96"
353
+ },
354
+ {
355
+ "internalType": "NftId",
356
+ "name": "parentNftId",
357
+ "type": "uint96"
358
+ },
359
+ {
360
+ "internalType": "ObjectType",
361
+ "name": "objectType",
362
+ "type": "uint8"
363
+ },
364
+ {
365
+ "internalType": "bool",
366
+ "name": "isInterceptor",
367
+ "type": "bool"
368
+ },
369
+ {
370
+ "internalType": "address",
371
+ "name": "objectAddress",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "internalType": "address",
376
+ "name": "initialOwner",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "bytes",
381
+ "name": "data",
382
+ "type": "bytes"
383
+ }
384
+ ],
385
+ "internalType": "struct IRegistry.ObjectInfo",
386
+ "name": "",
387
+ "type": "tuple"
388
+ },
389
+ {
390
+ "internalType": "bytes",
391
+ "name": "",
392
+ "type": "bytes"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [],
400
+ "name": "getInstance",
401
+ "outputs": [
402
+ {
403
+ "internalType": "contract IInstance",
404
+ "name": "instance",
112
405
  "type": "address"
113
406
  }
114
407
  ],
@@ -117,11 +410,24 @@
117
410
  },
118
411
  {
119
412
  "inputs": [],
120
- "name": "getParentNftId",
413
+ "name": "getName",
414
+ "outputs": [
415
+ {
416
+ "internalType": "string",
417
+ "name": "name",
418
+ "type": "string"
419
+ }
420
+ ],
421
+ "stateMutability": "pure",
422
+ "type": "function"
423
+ },
424
+ {
425
+ "inputs": [],
426
+ "name": "getNftId",
121
427
  "outputs": [
122
428
  {
123
429
  "internalType": "NftId",
124
- "name": "nftId",
430
+ "name": "",
125
431
  "type": "uint96"
126
432
  }
127
433
  ],
@@ -130,24 +436,12 @@
130
436
  },
131
437
  {
132
438
  "inputs": [],
133
- "name": "getPolicyFee",
439
+ "name": "getOwner",
134
440
  "outputs": [
135
441
  {
136
- "components": [
137
- {
138
- "internalType": "UFixed",
139
- "name": "fractionalFee",
140
- "type": "uint256"
141
- },
142
- {
143
- "internalType": "uint256",
144
- "name": "fixedFee",
145
- "type": "uint256"
146
- }
147
- ],
148
- "internalType": "struct Fee",
149
- "name": "policyFee",
150
- "type": "tuple"
442
+ "internalType": "address",
443
+ "name": "",
444
+ "type": "address"
151
445
  }
152
446
  ],
153
447
  "stateMutability": "view",
@@ -168,24 +462,12 @@
168
462
  },
169
463
  {
170
464
  "inputs": [],
171
- "name": "getProcessingFee",
465
+ "name": "getProductNftId",
172
466
  "outputs": [
173
467
  {
174
- "components": [
175
- {
176
- "internalType": "UFixed",
177
- "name": "fractionalFee",
178
- "type": "uint256"
179
- },
180
- {
181
- "internalType": "uint256",
182
- "name": "fixedFee",
183
- "type": "uint256"
184
- }
185
- ],
186
- "internalType": "struct Fee",
187
- "name": "processingFee",
188
- "type": "tuple"
468
+ "internalType": "NftId",
469
+ "name": "productNftId",
470
+ "type": "uint96"
189
471
  }
190
472
  ],
191
473
  "stateMutability": "view",
@@ -197,7 +479,7 @@
197
479
  "outputs": [
198
480
  {
199
481
  "internalType": "contract IRegistry",
200
- "name": "registry",
482
+ "name": "",
201
483
  "type": "address"
202
484
  }
203
485
  ],
@@ -206,12 +488,146 @@
206
488
  },
207
489
  {
208
490
  "inputs": [],
209
- "name": "getToken",
491
+ "name": "getSetupInfo",
210
492
  "outputs": [
211
493
  {
212
- "internalType": "contract IERC20Metadata",
213
- "name": "token",
214
- "type": "address"
494
+ "components": [
495
+ {
496
+ "internalType": "contract IERC20Metadata",
497
+ "name": "token",
498
+ "type": "address"
499
+ },
500
+ {
501
+ "internalType": "contract TokenHandler",
502
+ "name": "tokenHandler",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "internalType": "NftId",
507
+ "name": "distributionNftId",
508
+ "type": "uint96"
509
+ },
510
+ {
511
+ "internalType": "NftId",
512
+ "name": "poolNftId",
513
+ "type": "uint96"
514
+ },
515
+ {
516
+ "components": [
517
+ {
518
+ "internalType": "UFixed",
519
+ "name": "fractionalFee",
520
+ "type": "uint256"
521
+ },
522
+ {
523
+ "internalType": "uint256",
524
+ "name": "fixedFee",
525
+ "type": "uint256"
526
+ }
527
+ ],
528
+ "internalType": "struct Fee",
529
+ "name": "distributionFee",
530
+ "type": "tuple"
531
+ },
532
+ {
533
+ "components": [
534
+ {
535
+ "internalType": "UFixed",
536
+ "name": "fractionalFee",
537
+ "type": "uint256"
538
+ },
539
+ {
540
+ "internalType": "uint256",
541
+ "name": "fixedFee",
542
+ "type": "uint256"
543
+ }
544
+ ],
545
+ "internalType": "struct Fee",
546
+ "name": "productFee",
547
+ "type": "tuple"
548
+ },
549
+ {
550
+ "components": [
551
+ {
552
+ "internalType": "UFixed",
553
+ "name": "fractionalFee",
554
+ "type": "uint256"
555
+ },
556
+ {
557
+ "internalType": "uint256",
558
+ "name": "fixedFee",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "internalType": "struct Fee",
563
+ "name": "processingFee",
564
+ "type": "tuple"
565
+ },
566
+ {
567
+ "components": [
568
+ {
569
+ "internalType": "UFixed",
570
+ "name": "fractionalFee",
571
+ "type": "uint256"
572
+ },
573
+ {
574
+ "internalType": "uint256",
575
+ "name": "fixedFee",
576
+ "type": "uint256"
577
+ }
578
+ ],
579
+ "internalType": "struct Fee",
580
+ "name": "poolFee",
581
+ "type": "tuple"
582
+ },
583
+ {
584
+ "components": [
585
+ {
586
+ "internalType": "UFixed",
587
+ "name": "fractionalFee",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "fixedFee",
593
+ "type": "uint256"
594
+ }
595
+ ],
596
+ "internalType": "struct Fee",
597
+ "name": "stakingFee",
598
+ "type": "tuple"
599
+ },
600
+ {
601
+ "components": [
602
+ {
603
+ "internalType": "UFixed",
604
+ "name": "fractionalFee",
605
+ "type": "uint256"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "fixedFee",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "internalType": "struct Fee",
614
+ "name": "performanceFee",
615
+ "type": "tuple"
616
+ },
617
+ {
618
+ "internalType": "bool",
619
+ "name": "isIntercepting",
620
+ "type": "bool"
621
+ },
622
+ {
623
+ "internalType": "address",
624
+ "name": "wallet",
625
+ "type": "address"
626
+ }
627
+ ],
628
+ "internalType": "struct ISetup.ProductSetupInfo",
629
+ "name": "setupInfo",
630
+ "type": "tuple"
215
631
  }
216
632
  ],
217
633
  "stateMutability": "view",
@@ -219,15 +635,15 @@
219
635
  },
220
636
  {
221
637
  "inputs": [],
222
- "name": "getType",
638
+ "name": "getToken",
223
639
  "outputs": [
224
640
  {
225
- "internalType": "ObjectType",
226
- "name": "",
227
- "type": "uint8"
641
+ "internalType": "contract IERC20Metadata",
642
+ "name": "token",
643
+ "type": "address"
228
644
  }
229
645
  ],
230
- "stateMutability": "pure",
646
+ "stateMutability": "view",
231
647
  "type": "function"
232
648
  },
233
649
  {
@@ -245,21 +661,15 @@
245
661
  },
246
662
  {
247
663
  "inputs": [],
248
- "name": "lock",
664
+ "name": "linkToRegisteredNftId",
249
665
  "outputs": [],
250
666
  "stateMutability": "nonpayable",
251
667
  "type": "function"
252
668
  },
253
669
  {
254
670
  "inputs": [],
255
- "name": "register",
256
- "outputs": [
257
- {
258
- "internalType": "NftId",
259
- "name": "componentId",
260
- "type": "uint96"
261
- }
262
- ],
671
+ "name": "lock",
672
+ "outputs": [],
263
673
  "stateMutability": "nonpayable",
264
674
  "type": "function"
265
675
  },
@@ -279,7 +689,7 @@
279
689
  }
280
690
  ],
281
691
  "internalType": "struct Fee",
282
- "name": "policyFee",
692
+ "name": "productFee",
283
693
  "type": "tuple"
284
694
  },
285
695
  {
@@ -305,6 +715,32 @@
305
715
  "stateMutability": "nonpayable",
306
716
  "type": "function"
307
717
  },
718
+ {
719
+ "inputs": [
720
+ {
721
+ "internalType": "NftId",
722
+ "name": "productNftId",
723
+ "type": "uint96"
724
+ }
725
+ ],
726
+ "name": "setProductNftId",
727
+ "outputs": [],
728
+ "stateMutability": "nonpayable",
729
+ "type": "function"
730
+ },
731
+ {
732
+ "inputs": [
733
+ {
734
+ "internalType": "address",
735
+ "name": "newWallet",
736
+ "type": "address"
737
+ }
738
+ ],
739
+ "name": "setWallet",
740
+ "outputs": [],
741
+ "stateMutability": "nonpayable",
742
+ "type": "function"
743
+ },
308
744
  {
309
745
  "inputs": [
310
746
  {
@@ -332,17 +768,8 @@
332
768
  "type": "function"
333
769
  }
334
770
  ],
335
- "bytecode": "0x60e06040523480156200001157600080fd5b506040516200181c3803806200181c8339810160408190526200003491620006f4565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905585858582826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014791906200077f565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200021391906200077f565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c919081019062000837565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630506037b60e21b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba91906200077f565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000911565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000517919062000931565b805160065560209081015160075560055460408051634288121d60e01b815290516001600160a01b039092169650634288121d9550600480820195509293509091908290030181865afa15801562000573573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000599919062000911565b600880546001600160a01b039283166001600160a01b03199182161790915560098054959092169416939093179092558051600a55602090810151600b558151600c550151600d555062000950915050565b6001600160a01b03811681146200060157600080fd5b50565b80516200061181620005eb565b919050565b80516001600160601b03811681146200061157600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200066957620006696200062e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200069a576200069a6200062e565b604052919050565b600060408284031215620006b557600080fd5b604080519081016001600160401b0381118282101715620006da57620006da6200062e565b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156200070f57600080fd5b86516200071c81620005eb565b95506200072c6020880162000616565b945060408701516200073e81620005eb565b60608801519094506200075181620005eb565b9250620007628860808901620006a2565b9150620007738860c08901620006a2565b90509295509295509295565b6000602082840312156200079257600080fd5b81518015158114620007a357600080fd5b9392505050565b600082601f830112620007bc57600080fd5b81516001600160401b03811115620007d857620007d86200062e565b6020620007ee601f8301601f191682016200066f565b82815285828487010111156200080357600080fd5b60005b838110156200082357858101830151828201840152820162000806565b506000928101909101919091529392505050565b6000602082840312156200084a57600080fd5b81516001600160401b03808211156200086257600080fd5b9083019060c082860312156200087757600080fd5b6200088162000644565b6200088c8362000616565b81526200089c6020840162000616565b6020820152604083015160ff81168114620008b657600080fd5b6040820152620008c96060840162000604565b6060820152620008dc6080840162000604565b608082015260a083015182811115620008f457600080fd5b6200090287828601620007aa565b60a08301525095945050505050565b6000602082840312156200092457600080fd5b8151620007a381620005eb565b6000604082840312156200094457600080fd5b620007a38383620006a2565b60805160a05160c051610e72620009aa600039600061060f015260006101c1015260008181610201015281816102d80152818161036e015281816104d7015281816105370152818161059001526106520152610e726000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e366004610b07565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b604051606e8152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e6104b2565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b604080516020810182526000815290516101499190610b38565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61051f565b61015f61056e565b61023d6106cb565b005b61023d61024d366004610c1f565b610763565b61025a610803565b6040516101499190610c54565b61025a610946565b6005546001600160a01b031661015f565b61023d610a89565b905090565b600061029761056e565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610c6b565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610ca9565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561048e573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610502565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb9190610ca9565b9050610608816000610af1565b15610634577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156106a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c59190610cdc565b91505090565b6106d361056e565b6001600160a01b0316336001600160a01b0316146107035760405162461bcd60e51b81526004016102cd90610cf9565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b50505050565b61076b61056e565b6001600160a01b0316336001600160a01b03161461079b5760405162461bcd60e51b81526004016102cd90610cf9565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107cd9085908590600401610d30565b600060405180830381600087803b1580156107e757600080fd5b505af11580156107fb573d6000803e3d6000fd5b505050505050565b6040805180820190915260008082526020820152600061082161051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610cdc565b6001600160a01b03161461092a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa1580156108fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109209190610d91565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b6040805180820190915260008082526020820152600061096461051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190610cdc565b6001600160a01b031614610a6d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a639190610d91565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610a9161056e565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016102cd90610cf9565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161072f565b6001600160601b03828116908216145b92915050565b600060208284031215610b1957600080fd5b81356001600160e01b031981168114610b3157600080fd5b9392505050565b600060208083528351808285015260005b81811015610b6557858101830151858201604001528201610b49565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b600060408284031215610c0157600080fd5b610c09610b86565b9050813581526020820135602082015292915050565b60008060808385031215610c3257600080fd5b610c3c8484610bef565b9150610c4b8460408501610bef565b90509250929050565b815181526020808301519082015260408101610b01565b600060208284031215610c7d57600080fd5b81518015158114610b3157600080fd5b80516001600160601b0381168114610ca457600080fd5b919050565b600060208284031215610cbb57600080fd5b610b3182610c8d565b6001600160a01b0381168114610cd957600080fd5b50565b600060208284031215610cee57600080fd5b8151610b3181610cc4565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610b31565b8051610ca481610cc4565b600060408284031215610d7357600080fd5b610d7b610b86565b9050815181526020820151602082015292915050565b60006101a08284031215610da457600080fd5b610dac610bbd565b610db583610c8d565b8152610dc360208401610c8d565b6020820152610dd460408401610d56565b6040820152610de68460608501610d61565b6060820152610df88460a08501610d61565b6080820152610e0a8460e08501610d61565b60a0820152610e1d846101208501610d61565b60c0820152610e30846101608501610d61565b60e0820152939250505056fea2646970667358221220137046d2ea9d1f7f412d1bfc02656507f9938eb7c02f74e695cee49880caf1aa64736f6c63430008140033",
336
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e366004610b07565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b604051606e8152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e6104b2565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b604080516020810182526000815290516101499190610b38565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61051f565b61015f61056e565b61023d6106cb565b005b61023d61024d366004610c1f565b610763565b61025a610803565b6040516101499190610c54565b61025a610946565b6005546001600160a01b031661015f565b61023d610a89565b905090565b600061029761056e565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610c6b565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610ca9565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561048e573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610502565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb9190610ca9565b9050610608816000610af1565b15610634577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156106a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c59190610cdc565b91505090565b6106d361056e565b6001600160a01b0316336001600160a01b0316146107035760405162461bcd60e51b81526004016102cd90610cf9565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b50505050565b61076b61056e565b6001600160a01b0316336001600160a01b03161461079b5760405162461bcd60e51b81526004016102cd90610cf9565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107cd9085908590600401610d30565b600060405180830381600087803b1580156107e757600080fd5b505af11580156107fb573d6000803e3d6000fd5b505050505050565b6040805180820190915260008082526020820152600061082161051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610cdc565b6001600160a01b03161461092a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa1580156108fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109209190610d91565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b6040805180820190915260008082526020820152600061096461051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190610cdc565b6001600160a01b031614610a6d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a639190610d91565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610a9161056e565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016102cd90610cf9565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161072f565b6001600160601b03828116908216145b92915050565b600060208284031215610b1957600080fd5b81356001600160e01b031981168114610b3157600080fd5b9392505050565b600060208083528351808285015260005b81811015610b6557858101830151858201604001528201610b49565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b600060408284031215610c0157600080fd5b610c09610b86565b9050813581526020820135602082015292915050565b60008060808385031215610c3257600080fd5b610c3c8484610bef565b9150610c4b8460408501610bef565b90509250929050565b815181526020808301519082015260408101610b01565b600060208284031215610c7d57600080fd5b81518015158114610b3157600080fd5b80516001600160601b0381168114610ca457600080fd5b919050565b600060208284031215610cbb57600080fd5b610b3182610c8d565b6001600160a01b0381168114610cd957600080fd5b50565b600060208284031215610cee57600080fd5b8151610b3181610cc4565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610b31565b8051610ca481610cc4565b600060408284031215610d7357600080fd5b610d7b610b86565b9050815181526020820151602082015292915050565b60006101a08284031215610da457600080fd5b610dac610bbd565b610db583610c8d565b8152610dc360208401610c8d565b6020820152610dd460408401610d56565b6040820152610de68460608501610d61565b6060820152610df88460a08501610d61565b6080820152610e0a8460e08501610d61565b60a0820152610e1d846101208501610d61565b60c0820152610e30846101608501610d61565b60e0820152939250505056fea2646970667358221220137046d2ea9d1f7f412d1bfc02656507f9938eb7c02f74e695cee49880caf1aa64736f6c63430008140033",
337
- "linkReferences": {
338
- "contracts/types/Fee.sol": {
339
- "FeeLib": [
340
- {
341
- "length": 20,
342
- "start": 1205
343
- }
344
- ]
345
- }
346
- },
771
+ "bytecode": "0x",
772
+ "deployedBytecode": "0x",
773
+ "linkReferences": {},
347
774
  "deployedLinkReferences": {}
348
775
  }