@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f4f92b3-338

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. package/README.md +242 -11
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +656 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +244 -241
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +510 -51
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +533 -64
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +687 -58
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +711 -67
  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/BundleManager.sol/BundleManager.dbg.json +4 -0
  45. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  46. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  47. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  48. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  49. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1137 -1023
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +565 -0
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +1987 -1124
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
  56. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
  58. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +964 -0
  60. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
  62. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  64. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -0
  66. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
  68. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
  71. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  73. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  75. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  76. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  77. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  78. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  79. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  80. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  81. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  83. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  84. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  85. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  87. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  89. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  91. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
  93. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
  95. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
  97. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  98. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IDistributionService.sol/IDistributionService.json} +202 -61
  99. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
  101. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  102. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +198 -80
  103. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +204 -150
  105. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  107. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  109. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +423 -88
  111. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  112. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
  113. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  114. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +398 -215
  115. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  116. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
  117. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  118. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  119. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  120. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +455 -36
  121. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  122. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
  123. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  124. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  125. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  126. package/artifacts/contracts/registry/Registry.sol/Registry.json +465 -111
  127. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  128. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  129. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
  131. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
  133. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  134. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  135. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  136. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
  137. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  138. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  139. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  140. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  141. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  142. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  143. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +112 -37
  145. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  146. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +169 -117
  147. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  149. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  150. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
  151. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  152. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
  153. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  154. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +193 -32
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  156. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +221 -71
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  163. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  165. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +207 -31
  167. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  169. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestService.sol/TestService.json +292 -63
  171. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  173. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  175. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  177. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  178. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  179. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  180. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  184. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  186. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  187. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  188. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  190. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  192. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  194. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  196. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  198. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  200. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  202. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  204. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  206. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  208. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  210. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  212. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  214. package/contracts/components/Component.sol +222 -0
  215. package/contracts/components/Distribution.sol +144 -0
  216. package/contracts/components/IComponent.sol +43 -0
  217. package/contracts/components/IDistributionComponent.sol +47 -0
  218. package/contracts/components/IPoolComponent.sol +24 -11
  219. package/contracts/components/IProductComponent.sol +29 -9
  220. package/contracts/components/Pool.sol +121 -54
  221. package/contracts/components/Product.sol +182 -41
  222. package/contracts/experiment/cloning/Cloner.sol +47 -0
  223. package/contracts/instance/BundleManager.sol +125 -0
  224. package/contracts/instance/Cloneable.sol +46 -0
  225. package/contracts/instance/IInstance.sol +65 -45
  226. package/contracts/instance/IInstanceService.sol +40 -0
  227. package/contracts/instance/Instance.sol +254 -53
  228. package/contracts/instance/InstanceAccessManager.sol +298 -0
  229. package/contracts/instance/InstanceReader.sol +293 -0
  230. package/contracts/instance/InstanceService.sol +362 -0
  231. package/contracts/instance/InstanceServiceManager.sol +54 -0
  232. package/contracts/instance/ObjectManager.sol +84 -0
  233. package/contracts/instance/base/ComponentService.sol +134 -0
  234. package/contracts/instance/base/IKeyValueStore.sol +13 -13
  235. package/contracts/instance/base/ILifecycle.sol +3 -3
  236. package/contracts/instance/base/KeyValueStore.sol +53 -37
  237. package/contracts/instance/base/Lifecycle.sol +16 -11
  238. package/contracts/instance/module/IAccess.sol +48 -0
  239. package/contracts/instance/module/IBundle.sol +20 -0
  240. package/contracts/instance/module/IDistribution.sol +39 -0
  241. package/contracts/instance/module/IPolicy.sol +45 -0
  242. package/contracts/instance/module/IRisk.sol +11 -0
  243. package/contracts/instance/module/ISetup.sol +46 -0
  244. package/contracts/instance/module/ITreasury.sol +23 -0
  245. package/contracts/instance/service/BundleService.sol +293 -0
  246. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  247. package/contracts/instance/service/DistributionService.sol +106 -0
  248. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  249. package/contracts/instance/service/IBundleService.sol +44 -0
  250. package/contracts/instance/service/IDistributionService.sol +12 -0
  251. package/contracts/instance/service/IPolicyService.sol +94 -0
  252. package/contracts/instance/service/IPoolService.sol +8 -18
  253. package/contracts/instance/service/IProductService.sol +21 -39
  254. package/contracts/instance/service/PolicyService.sol +538 -0
  255. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  256. package/contracts/instance/service/PoolService.sol +77 -91
  257. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  258. package/contracts/instance/service/ProductService.sol +167 -289
  259. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  260. package/contracts/registry/ChainNft.sol +79 -36
  261. package/contracts/registry/IRegistry.sol +65 -24
  262. package/contracts/registry/IRegistryService.sol +65 -0
  263. package/contracts/registry/ITransferInterceptor.sol +6 -0
  264. package/contracts/registry/Registry.sol +358 -287
  265. package/contracts/registry/RegistryAccessManager.sol +216 -0
  266. package/contracts/registry/RegistryService.sol +262 -0
  267. package/contracts/registry/RegistryServiceManager.sol +62 -0
  268. package/contracts/registry/ReleaseManager.sol +332 -0
  269. package/contracts/registry/TokenRegistry.sol +112 -0
  270. package/contracts/shared/ContractDeployerLib.sol +72 -0
  271. package/contracts/shared/ERC165.sol +6 -2
  272. package/contracts/shared/INftOwnable.sol +22 -0
  273. package/contracts/shared/IRegisterable.sol +8 -17
  274. package/contracts/shared/IService.sol +16 -0
  275. package/contracts/shared/IVersionable.sol +55 -11
  276. package/contracts/shared/NftOwnable.sol +139 -0
  277. package/contracts/shared/ProxyManager.sol +94 -0
  278. package/contracts/shared/Registerable.sol +59 -59
  279. package/contracts/shared/Service.sol +60 -0
  280. package/contracts/shared/TokenHandler.sol +27 -0
  281. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  282. package/contracts/shared/Versionable.sol +113 -55
  283. package/contracts/test/TestFee.sol +2 -2
  284. package/contracts/test/TestRegisterable.sol +5 -6
  285. package/contracts/test/TestRoleId.sol +1 -1
  286. package/contracts/test/TestService.sol +7 -14
  287. package/contracts/types/DistributorType.sol +55 -0
  288. package/contracts/types/Fee.sol +10 -5
  289. package/contracts/types/Key32.sol +8 -3
  290. package/contracts/types/NftIdSet.sol +26 -24
  291. package/contracts/types/NumberId.sol +52 -0
  292. package/contracts/types/ObjectType.sol +51 -14
  293. package/contracts/types/Referral.sol +85 -0
  294. package/contracts/types/RiskId.sol +43 -0
  295. package/contracts/types/RoleId.sol +62 -10
  296. package/contracts/types/StateId.sol +5 -1
  297. package/contracts/types/Timestamp.sol +7 -3
  298. package/contracts/types/UFixed.sol +128 -12
  299. package/contracts/types/Version.sol +13 -1
  300. package/package.json +4 -3
  301. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  302. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  303. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  304. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -174
  305. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  306. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  307. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  308. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  309. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  310. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
  311. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  312. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  313. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  314. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  315. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
  316. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  317. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  318. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  319. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  321. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  322. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  323. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  324. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  325. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  326. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  328. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  329. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  330. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  332. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  333. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  334. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  336. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  338. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  339. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  341. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  343. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  345. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  347. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  348. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  349. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  350. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  352. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  354. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  355. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  357. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  358. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  359. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  361. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  362. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
  363. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  364. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  365. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  366. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  367. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  368. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  369. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  370. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  371. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  372. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  373. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  374. package/contracts/components/BaseComponent.sol +0 -88
  375. package/contracts/components/IBaseComponent.sol +0 -19
  376. package/contracts/experiment/statemachine/README.md +0 -112
  377. package/contracts/instance/IInstanceLinked.sol +0 -8
  378. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  379. package/contracts/instance/base/IInstanceBase.sol +0 -14
  380. package/contracts/instance/base/IService.sol +0 -15
  381. package/contracts/instance/base/InstanceBase.sol +0 -80
  382. package/contracts/instance/base/ModuleBase.sol +0 -52
  383. package/contracts/instance/base/ServiceBase.sol +0 -37
  384. package/contracts/instance/module/access/Access.sol +0 -149
  385. package/contracts/instance/module/access/IAccess.sol +0 -53
  386. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  387. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  388. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  389. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  390. package/contracts/instance/module/component/ComponentModule.sol +0 -95
  391. package/contracts/instance/module/component/IComponent.sol +0 -53
  392. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  393. package/contracts/instance/module/policy/PolicyModule.sol +0 -76
  394. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  395. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  396. package/contracts/instance/module/risk/IRisk.sol +0 -10
  397. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  398. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  399. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  400. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  401. package/contracts/instance/service/ComponentOwnerService.sol +0 -170
  402. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  403. package/contracts/registry/IChainNft.sol +0 -21
  404. package/contracts/registry/IRegistryLinked.sol +0 -8
  405. package/contracts/shared/IOwnable.sol +0 -6
  406. package/contracts/test/TestPool.sol +0 -22
  407. package/contracts/test/TestProduct.sol +0 -44
@@ -3,6 +3,66 @@
3
3
  "contractName": "Pool",
4
4
  "sourceName": "contracts/components/Pool.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
6
66
  {
7
67
  "inputs": [
8
68
  {
@@ -10,29 +70,259 @@
10
70
  "name": "registry",
11
71
  "type": "address"
12
72
  },
73
+ {
74
+ "internalType": "NftId",
75
+ "name": "nftId",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "ErrorAlreadyLinked",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
13
84
  {
14
85
  "internalType": "NftId",
15
86
  "name": "instanceNftId",
16
87
  "type": "uint96"
17
88
  },
89
+ {
90
+ "internalType": "address",
91
+ "name": "instance",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotProductService",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentProductNftAlreadySet",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "caller",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "uint64",
123
+ "name": "requiredRoleIdNum",
124
+ "type": "uint64"
125
+ }
126
+ ],
127
+ "name": "ErrorComponentUnauthorized",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "address",
134
+ "name": "newWallet",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "oldWallet",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "newWallet",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "allowance",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "balance",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "contractAddress",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "ErrorContractNotRegistered",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "account",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorNotOwner",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "registryAddress",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "ErrorNotRegistry",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "registryAddress",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorRegisterableNotRegistry",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "ErrorRegistryAddressZero",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "registry",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorRegistryAlreadyInitialized",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "ErrorRegistryNotInitialized",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "FailedInnerCall",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "InvalidInitialization",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "NotInitializing",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [
18
254
  {
19
255
  "internalType": "address",
20
256
  "name": "token",
21
257
  "type": "address"
258
+ }
259
+ ],
260
+ "name": "SafeERC20FailedOperation",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "anonymous": false,
265
+ "inputs": [
266
+ {
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "authority",
270
+ "type": "address"
271
+ }
272
+ ],
273
+ "name": "AuthorityUpdated",
274
+ "type": "event"
275
+ },
276
+ {
277
+ "anonymous": false,
278
+ "inputs": [
279
+ {
280
+ "indexed": false,
281
+ "internalType": "uint64",
282
+ "name": "version",
283
+ "type": "uint64"
284
+ }
285
+ ],
286
+ "name": "Initialized",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": false,
294
+ "internalType": "address",
295
+ "name": "newWallet",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "LogComponentWalletAddressChanged",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
306
+ "indexed": false,
307
+ "internalType": "address",
308
+ "name": "from",
309
+ "type": "address"
22
310
  },
23
311
  {
24
- "internalType": "bool",
25
- "name": "verifying",
26
- "type": "bool"
312
+ "indexed": false,
313
+ "internalType": "address",
314
+ "name": "to",
315
+ "type": "address"
27
316
  },
28
317
  {
29
- "internalType": "UFixed",
30
- "name": "collateralizationLevel",
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "amount",
31
321
  "type": "uint256"
32
322
  }
33
323
  ],
34
- "stateMutability": "nonpayable",
35
- "type": "constructor"
324
+ "name": "LogComponentWalletTokensTransferred",
325
+ "type": "event"
36
326
  },
37
327
  {
38
328
  "anonymous": false,
@@ -59,8 +349,64 @@
59
349
  "name": "LogUnderwrittenByPool",
60
350
  "type": "event"
61
351
  },
352
+ {
353
+ "inputs": [],
354
+ "name": "CONTRACT_LOCATION_V1",
355
+ "outputs": [
356
+ {
357
+ "internalType": "bytes32",
358
+ "name": "",
359
+ "type": "bytes32"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [],
367
+ "name": "REGISTERABLE_LOCATION_V1",
368
+ "outputs": [
369
+ {
370
+ "internalType": "bytes32",
371
+ "name": "",
372
+ "type": "bytes32"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [],
380
+ "name": "authority",
381
+ "outputs": [
382
+ {
383
+ "internalType": "address",
384
+ "name": "",
385
+ "type": "address"
386
+ }
387
+ ],
388
+ "stateMutability": "view",
389
+ "type": "function"
390
+ },
62
391
  {
63
392
  "inputs": [
393
+ {
394
+ "components": [
395
+ {
396
+ "internalType": "UFixed",
397
+ "name": "fractionalFee",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "fixedFee",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "internalType": "struct Fee",
407
+ "name": "fee",
408
+ "type": "tuple"
409
+ },
64
410
  {
65
411
  "internalType": "uint256",
66
412
  "name": "initialAmount",
@@ -103,12 +449,62 @@
103
449
  },
104
450
  {
105
451
  "inputs": [],
106
- "name": "getData",
452
+ "name": "getInitialInfo",
107
453
  "outputs": [
108
454
  {
109
- "internalType": "bytes",
110
- "name": "data",
111
- "type": "bytes"
455
+ "components": [
456
+ {
457
+ "internalType": "NftId",
458
+ "name": "nftId",
459
+ "type": "uint96"
460
+ },
461
+ {
462
+ "internalType": "NftId",
463
+ "name": "parentNftId",
464
+ "type": "uint96"
465
+ },
466
+ {
467
+ "internalType": "ObjectType",
468
+ "name": "objectType",
469
+ "type": "uint8"
470
+ },
471
+ {
472
+ "internalType": "bool",
473
+ "name": "isInterceptor",
474
+ "type": "bool"
475
+ },
476
+ {
477
+ "internalType": "address",
478
+ "name": "objectAddress",
479
+ "type": "address"
480
+ },
481
+ {
482
+ "internalType": "address",
483
+ "name": "initialOwner",
484
+ "type": "address"
485
+ },
486
+ {
487
+ "internalType": "bytes",
488
+ "name": "data",
489
+ "type": "bytes"
490
+ }
491
+ ],
492
+ "internalType": "struct IRegistry.ObjectInfo",
493
+ "name": "info",
494
+ "type": "tuple"
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "getInitialOwner",
503
+ "outputs": [
504
+ {
505
+ "internalType": "address",
506
+ "name": "",
507
+ "type": "address"
112
508
  }
113
509
  ],
114
510
  "stateMutability": "view",
@@ -127,13 +523,39 @@
127
523
  "stateMutability": "view",
128
524
  "type": "function"
129
525
  },
526
+ {
527
+ "inputs": [],
528
+ "name": "getInstanceService",
529
+ "outputs": [
530
+ {
531
+ "internalType": "contract IInstanceService",
532
+ "name": "",
533
+ "type": "address"
534
+ }
535
+ ],
536
+ "stateMutability": "view",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [],
541
+ "name": "getName",
542
+ "outputs": [
543
+ {
544
+ "internalType": "string",
545
+ "name": "name",
546
+ "type": "string"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
130
552
  {
131
553
  "inputs": [],
132
554
  "name": "getNftId",
133
555
  "outputs": [
134
556
  {
135
557
  "internalType": "NftId",
136
- "name": "nftId",
558
+ "name": "",
137
559
  "type": "uint96"
138
560
  }
139
561
  ],
@@ -146,7 +568,7 @@
146
568
  "outputs": [
147
569
  {
148
570
  "internalType": "address",
149
- "name": "owner",
571
+ "name": "",
150
572
  "type": "address"
151
573
  }
152
574
  ],
@@ -155,11 +577,11 @@
155
577
  },
156
578
  {
157
579
  "inputs": [],
158
- "name": "getParentNftId",
580
+ "name": "getProductNftId",
159
581
  "outputs": [
160
582
  {
161
583
  "internalType": "NftId",
162
- "name": "nftId",
584
+ "name": "productNftId",
163
585
  "type": "uint96"
164
586
  }
165
587
  ],
@@ -168,24 +590,12 @@
168
590
  },
169
591
  {
170
592
  "inputs": [],
171
- "name": "getPerformanceFee",
593
+ "name": "getProductService",
172
594
  "outputs": [
173
595
  {
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": "performanceFee",
188
- "type": "tuple"
596
+ "internalType": "contract IProductService",
597
+ "name": "",
598
+ "type": "address"
189
599
  }
190
600
  ],
191
601
  "stateMutability": "view",
@@ -197,7 +607,7 @@
197
607
  "outputs": [
198
608
  {
199
609
  "internalType": "contract IRegistry",
200
- "name": "registry",
610
+ "name": "",
201
611
  "type": "address"
202
612
  }
203
613
  ],
@@ -206,23 +616,94 @@
206
616
  },
207
617
  {
208
618
  "inputs": [],
209
- "name": "getStakingFee",
619
+ "name": "getSetupInfo",
210
620
  "outputs": [
211
621
  {
212
622
  "components": [
623
+ {
624
+ "internalType": "NftId",
625
+ "name": "productNftId",
626
+ "type": "uint96"
627
+ },
628
+ {
629
+ "internalType": "contract TokenHandler",
630
+ "name": "tokenHandler",
631
+ "type": "address"
632
+ },
213
633
  {
214
634
  "internalType": "UFixed",
215
- "name": "fractionalFee",
635
+ "name": "collateralizationLevel",
216
636
  "type": "uint256"
217
637
  },
218
638
  {
219
- "internalType": "uint256",
220
- "name": "fixedFee",
221
- "type": "uint256"
639
+ "components": [
640
+ {
641
+ "internalType": "UFixed",
642
+ "name": "fractionalFee",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "fixedFee",
648
+ "type": "uint256"
649
+ }
650
+ ],
651
+ "internalType": "struct Fee",
652
+ "name": "poolFee",
653
+ "type": "tuple"
654
+ },
655
+ {
656
+ "components": [
657
+ {
658
+ "internalType": "UFixed",
659
+ "name": "fractionalFee",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "fixedFee",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "internalType": "struct Fee",
669
+ "name": "stakingFee",
670
+ "type": "tuple"
671
+ },
672
+ {
673
+ "components": [
674
+ {
675
+ "internalType": "UFixed",
676
+ "name": "fractionalFee",
677
+ "type": "uint256"
678
+ },
679
+ {
680
+ "internalType": "uint256",
681
+ "name": "fixedFee",
682
+ "type": "uint256"
683
+ }
684
+ ],
685
+ "internalType": "struct Fee",
686
+ "name": "performanceFee",
687
+ "type": "tuple"
688
+ },
689
+ {
690
+ "internalType": "bool",
691
+ "name": "isIntercepting",
692
+ "type": "bool"
693
+ },
694
+ {
695
+ "internalType": "bool",
696
+ "name": "isConfirmingApplication",
697
+ "type": "bool"
698
+ },
699
+ {
700
+ "internalType": "address",
701
+ "name": "wallet",
702
+ "type": "address"
222
703
  }
223
704
  ],
224
- "internalType": "struct Fee",
225
- "name": "stakingFee",
705
+ "internalType": "struct ISetup.PoolSetupInfo",
706
+ "name": "setupInfo",
226
707
  "type": "tuple"
227
708
  }
228
709
  ],
@@ -244,25 +725,25 @@
244
725
  },
245
726
  {
246
727
  "inputs": [],
247
- "name": "getType",
728
+ "name": "getWallet",
248
729
  "outputs": [
249
730
  {
250
- "internalType": "ObjectType",
251
- "name": "",
252
- "type": "uint8"
731
+ "internalType": "address",
732
+ "name": "walletAddress",
733
+ "type": "address"
253
734
  }
254
735
  ],
255
- "stateMutability": "pure",
736
+ "stateMutability": "view",
256
737
  "type": "function"
257
738
  },
258
739
  {
259
740
  "inputs": [],
260
- "name": "getWallet",
741
+ "name": "isConfirmingApplication",
261
742
  "outputs": [
262
743
  {
263
- "internalType": "address",
264
- "name": "walletAddress",
265
- "type": "address"
744
+ "internalType": "bool",
745
+ "name": "isConfirmingApplication",
746
+ "type": "bool"
266
747
  }
267
748
  ],
268
749
  "stateMutability": "view",
@@ -270,17 +751,24 @@
270
751
  },
271
752
  {
272
753
  "inputs": [],
273
- "name": "isVerifying",
754
+ "name": "isConsumingScheduledOp",
274
755
  "outputs": [
275
756
  {
276
- "internalType": "bool",
277
- "name": "verifying",
278
- "type": "bool"
757
+ "internalType": "bytes4",
758
+ "name": "",
759
+ "type": "bytes4"
279
760
  }
280
761
  ],
281
762
  "stateMutability": "view",
282
763
  "type": "function"
283
764
  },
765
+ {
766
+ "inputs": [],
767
+ "name": "linkToRegisteredNftId",
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable",
770
+ "type": "function"
771
+ },
284
772
  {
285
773
  "inputs": [],
286
774
  "name": "lock",
@@ -288,6 +776,19 @@
288
776
  "stateMutability": "nonpayable",
289
777
  "type": "function"
290
778
  },
779
+ {
780
+ "inputs": [
781
+ {
782
+ "internalType": "NftId",
783
+ "name": "bundleNftId",
784
+ "type": "uint96"
785
+ }
786
+ ],
787
+ "name": "lockBundle",
788
+ "outputs": [],
789
+ "stateMutability": "nonpayable",
790
+ "type": "function"
791
+ },
291
792
  {
292
793
  "inputs": [
293
794
  {
@@ -313,15 +814,130 @@
313
814
  "type": "function"
314
815
  },
315
816
  {
316
- "inputs": [],
317
- "name": "register",
318
- "outputs": [
817
+ "inputs": [
818
+ {
819
+ "internalType": "address",
820
+ "name": "newAuthority",
821
+ "type": "address"
822
+ }
823
+ ],
824
+ "name": "setAuthority",
825
+ "outputs": [],
826
+ "stateMutability": "nonpayable",
827
+ "type": "function"
828
+ },
829
+ {
830
+ "inputs": [
831
+ {
832
+ "internalType": "NftId",
833
+ "name": "bundleNftId",
834
+ "type": "uint96"
835
+ },
836
+ {
837
+ "components": [
838
+ {
839
+ "internalType": "UFixed",
840
+ "name": "fractionalFee",
841
+ "type": "uint256"
842
+ },
843
+ {
844
+ "internalType": "uint256",
845
+ "name": "fixedFee",
846
+ "type": "uint256"
847
+ }
848
+ ],
849
+ "internalType": "struct Fee",
850
+ "name": "fee",
851
+ "type": "tuple"
852
+ }
853
+ ],
854
+ "name": "setBundleFee",
855
+ "outputs": [],
856
+ "stateMutability": "nonpayable",
857
+ "type": "function"
858
+ },
859
+ {
860
+ "inputs": [
861
+ {
862
+ "components": [
863
+ {
864
+ "internalType": "UFixed",
865
+ "name": "fractionalFee",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "fixedFee",
871
+ "type": "uint256"
872
+ }
873
+ ],
874
+ "internalType": "struct Fee",
875
+ "name": "poolFee",
876
+ "type": "tuple"
877
+ },
878
+ {
879
+ "components": [
880
+ {
881
+ "internalType": "UFixed",
882
+ "name": "fractionalFee",
883
+ "type": "uint256"
884
+ },
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "fixedFee",
888
+ "type": "uint256"
889
+ }
890
+ ],
891
+ "internalType": "struct Fee",
892
+ "name": "stakingFee",
893
+ "type": "tuple"
894
+ },
895
+ {
896
+ "components": [
897
+ {
898
+ "internalType": "UFixed",
899
+ "name": "fractionalFee",
900
+ "type": "uint256"
901
+ },
902
+ {
903
+ "internalType": "uint256",
904
+ "name": "fixedFee",
905
+ "type": "uint256"
906
+ }
907
+ ],
908
+ "internalType": "struct Fee",
909
+ "name": "performanceFee",
910
+ "type": "tuple"
911
+ }
912
+ ],
913
+ "name": "setFees",
914
+ "outputs": [],
915
+ "stateMutability": "nonpayable",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "inputs": [
319
920
  {
320
921
  "internalType": "NftId",
321
- "name": "componentId",
922
+ "name": "productNftId",
322
923
  "type": "uint96"
323
924
  }
324
925
  ],
926
+ "name": "setProductNftId",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "address",
935
+ "name": "newWallet",
936
+ "type": "address"
937
+ }
938
+ ],
939
+ "name": "setWallet",
940
+ "outputs": [],
325
941
  "stateMutability": "nonpayable",
326
942
  "type": "function"
327
943
  },
@@ -378,10 +994,23 @@
378
994
  "outputs": [],
379
995
  "stateMutability": "nonpayable",
380
996
  "type": "function"
997
+ },
998
+ {
999
+ "inputs": [
1000
+ {
1001
+ "internalType": "NftId",
1002
+ "name": "bundleNftId",
1003
+ "type": "uint96"
1004
+ }
1005
+ ],
1006
+ "name": "unlockBundle",
1007
+ "outputs": [],
1008
+ "stateMutability": "nonpayable",
1009
+ "type": "function"
381
1010
  }
382
1011
  ],
383
- "bytecode": "0x60e06040523480156200001157600080fd5b50604051620017d6380380620017d6833981016040819052620000349162000625565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905584848482826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000147919062000690565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000690565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c9190810190620007b6565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152638de54b9b60e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba919062000690565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000890565b600180546001600160a01b039283166001600160a01b03199182161790915560038054821630179055600480549483169490911693909317835560058054881515600160a01b0260ff60a01b1982168117909255600688905560408051636b9bf08b60e01b8152905192841691909316179550636b9bf08b9450818401936020935090918290030181865afa158015620004fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000520919062000890565b600780546001600160a01b0319166001600160a01b0392831617905560055460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa1580156200057f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005a5919062000890565b600880546001600160a01b0319166001600160a01b039290921691909117905550620008b09350505050565b6001600160a01b0381168114620005e757600080fd5b50565b8051620005f781620005d1565b919050565b80516001600160601b0381168114620005f757600080fd5b80518015158114620005f757600080fd5b600080600080600060a086880312156200063e57600080fd5b85516200064b81620005d1565b94506200065b60208701620005fc565b935060408601516200066d81620005d1565b92506200067d6060870162000614565b9150608086015190509295509295909350565b600060208284031215620006a357600080fd5b620006ae8262000614565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715620006f057620006f0620006b5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007215762000721620006b5565b604052919050565b600082601f8301126200073b57600080fd5b81516001600160401b03811115620007575762000757620006b5565b60206200076d601f8301601f19168201620006f6565b82815285828487010111156200078257600080fd5b60005b83811015620007a257858101830151828201840152820162000785565b506000928101909101919091529392505050565b600060208284031215620007c957600080fd5b81516001600160401b0380821115620007e157600080fd5b9083019060c08286031215620007f657600080fd5b62000800620006cb565b6200080b83620005fc565b81526200081b60208401620005fc565b6020820152604083015160ff811681146200083557600080fd5b60408201526200084860608401620005ea565b60608201526200085b60808401620005ea565b608082015260a0830151828111156200087357600080fd5b620008818782860162000729565b60a08301525095945050505050565b600060208284031215620008a357600080fd5b8151620006ae81620005d1565b60805160a05160c051610ed36200090360003960006107ca015260006101fd0152600081816102560152818161034b015281816103e1015281816106660152818161074d015261080d0152610ed36000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
384
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
1012
+ "bytecode": "0x",
1013
+ "deployedBytecode": "0x",
385
1014
  "linkReferences": {},
386
1015
  "deployedLinkReferences": {}
387
1016
  }