@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-faaba97-954

Sign up to get free protection for your applications and to get access to all the features.
Files changed (478) hide show
  1. package/README.md +249 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +842 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1329 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +969 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +823 -115
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +608 -57
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1132 -143
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +967 -105
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +190 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1549 -1048
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +633 -0
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +2291 -1198
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1330 -0
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1289 -0
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1179 -0
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +741 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +607 -0
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +85 -245
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IComponents.sol/IComponents.json} +2 -2
  55. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  57. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  59. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  60. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  61. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  62. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  63. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  64. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  65. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1039 -0
  67. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +673 -0
  69. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1231 -0
  71. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +721 -0
  73. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +817 -0
  75. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
  77. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1798 -0
  79. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +805 -0
  81. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +622 -0
  83. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +659 -0
  85. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +475 -0
  87. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1090 -0
  89. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +606 -0
  91. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +577 -109
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +186 -213
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1092 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +697 -0
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +965 -199
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +460 -293
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  108. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +199 -12
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +485 -34
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  112. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +866 -0
  113. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  114. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +52 -0
  115. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/Registry.sol/Registry.json +487 -101
  117. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  118. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  119. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1158 -0
  121. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
  123. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  124. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  125. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  127. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  128. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  132. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +38 -74
  133. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  134. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +100 -33
  137. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  138. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  139. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +159 -150
  141. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +16 -125
  143. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  144. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
  145. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  146. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  147. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  148. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
  149. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  150. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +256 -25
  151. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  152. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  153. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  154. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → shared/Service.sol/Service.json} +261 -217
  155. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  156. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  157. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  158. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  159. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  160. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +29 -115
  161. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  163. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +272 -26
  165. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  167. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestService.sol/TestService.json +347 -130
  169. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  171. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  173. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +38 -140
  175. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  176. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  177. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  178. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/Amount.sol/AmountLib.json +161 -0
  180. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  182. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  186. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Fee.sol/FeeLib.json +84 -14
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  194. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  196. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  197. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  199. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  200. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  201. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  202. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
  203. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  204. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  205. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  206. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  207. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  209. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  210. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  211. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  213. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  214. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  215. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  217. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  218. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  220. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  221. package/contracts/components/Component.sol +253 -0
  222. package/contracts/components/Distribution.sol +280 -0
  223. package/contracts/components/IComponent.sol +76 -0
  224. package/contracts/components/IDistributionComponent.sol +71 -0
  225. package/contracts/components/IPoolComponent.sol +98 -42
  226. package/contracts/components/IProductComponent.sol +30 -9
  227. package/contracts/components/Pool.sol +238 -109
  228. package/contracts/components/Product.sol +218 -42
  229. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  230. package/contracts/instance/BundleManager.sol +127 -0
  231. package/contracts/instance/Cloneable.sol +51 -0
  232. package/contracts/instance/IInstance.sol +87 -41
  233. package/contracts/instance/IInstanceService.sol +72 -0
  234. package/contracts/instance/Instance.sol +311 -52
  235. package/contracts/instance/InstanceAccessManager.sol +527 -0
  236. package/contracts/instance/InstanceReader.sol +291 -0
  237. package/contracts/instance/InstanceService.sol +495 -0
  238. package/contracts/instance/InstanceServiceManager.sol +54 -0
  239. package/contracts/instance/ObjectManager.sol +82 -0
  240. package/contracts/instance/base/ComponentService.sol +121 -0
  241. package/contracts/instance/base/IKeyValueStore.sol +13 -13
  242. package/contracts/instance/base/ILifecycle.sol +3 -3
  243. package/contracts/instance/base/KeyValueStore.sol +64 -40
  244. package/contracts/instance/base/Lifecycle.sol +27 -13
  245. package/contracts/instance/module/IAccess.sol +54 -0
  246. package/contracts/instance/module/IBundle.sol +23 -0
  247. package/contracts/instance/module/IComponents.sol +41 -0
  248. package/contracts/instance/module/IDistribution.sol +41 -0
  249. package/contracts/instance/module/IPolicy.sol +72 -0
  250. package/contracts/instance/module/IRisk.sol +11 -0
  251. package/contracts/instance/module/ISetup.sol +33 -0
  252. package/contracts/instance/module/ITreasury.sol +23 -0
  253. package/contracts/instance/service/ApplicationService.sol +350 -0
  254. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  255. package/contracts/instance/service/BundleService.sol +431 -0
  256. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  257. package/contracts/instance/service/ClaimService.sol +151 -0
  258. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  259. package/contracts/instance/service/DistributionService.sol +435 -0
  260. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  261. package/contracts/instance/service/IApplicationService.sol +82 -0
  262. package/contracts/instance/service/IBundleService.sol +93 -0
  263. package/contracts/instance/service/IClaimService.sol +61 -0
  264. package/contracts/instance/service/IDistributionService.sol +99 -0
  265. package/contracts/instance/service/IPolicyService.sol +72 -0
  266. package/contracts/instance/service/IPoolService.sol +81 -12
  267. package/contracts/instance/service/IProductService.sol +21 -39
  268. package/contracts/instance/service/PolicyService.sol +362 -0
  269. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  270. package/contracts/instance/service/PoolService.sol +249 -69
  271. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  272. package/contracts/instance/service/ProductService.sol +147 -291
  273. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  274. package/contracts/registry/ChainNft.sol +87 -36
  275. package/contracts/registry/IRegistry.sol +68 -24
  276. package/contracts/registry/IRegistryService.sol +68 -0
  277. package/contracts/registry/ITransferInterceptor.sol +7 -0
  278. package/contracts/registry/Registry.sol +372 -286
  279. package/contracts/registry/RegistryAccessManager.sol +216 -0
  280. package/contracts/registry/RegistryService.sol +282 -0
  281. package/contracts/registry/RegistryServiceManager.sol +62 -0
  282. package/contracts/registry/ReleaseManager.sol +324 -0
  283. package/contracts/registry/TokenRegistry.sol +116 -0
  284. package/contracts/shared/ContractDeployerLib.sol +72 -0
  285. package/contracts/shared/ERC165.sol +14 -8
  286. package/contracts/shared/INftOwnable.sol +23 -0
  287. package/contracts/shared/IPolicyHolder.sol +26 -0
  288. package/contracts/shared/IRegisterable.sol +10 -19
  289. package/contracts/shared/IRegistryLinked.sol +12 -0
  290. package/contracts/shared/IService.sol +16 -0
  291. package/contracts/shared/IVersionable.sol +38 -37
  292. package/contracts/shared/NftOwnable.sol +120 -0
  293. package/contracts/shared/PolicyHolder.sol +81 -0
  294. package/contracts/shared/ProxyManager.sol +169 -0
  295. package/contracts/shared/Registerable.sol +54 -66
  296. package/contracts/shared/RegistryLinked.sol +48 -0
  297. package/contracts/shared/Service.sol +72 -0
  298. package/contracts/shared/TokenHandler.sol +33 -0
  299. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  300. package/contracts/shared/Versionable.sol +38 -68
  301. package/contracts/test/TestFee.sol +2 -2
  302. package/contracts/test/TestRegisterable.sol +5 -6
  303. package/contracts/test/TestRoleId.sol +1 -1
  304. package/contracts/test/TestService.sol +7 -14
  305. package/contracts/types/Amount.sol +60 -0
  306. package/contracts/types/Blocknumber.sol +1 -0
  307. package/contracts/types/ClaimId.sol +52 -0
  308. package/contracts/types/DistributorType.sol +55 -0
  309. package/contracts/types/Fee.sol +22 -9
  310. package/contracts/types/Key32.sol +8 -3
  311. package/contracts/types/NftId.sol +8 -0
  312. package/contracts/types/NftIdSet.sol +26 -24
  313. package/contracts/types/NumberId.sol +52 -0
  314. package/contracts/types/ObjectType.sol +56 -14
  315. package/contracts/types/PayoutId.sol +54 -0
  316. package/contracts/types/Referral.sol +89 -0
  317. package/contracts/types/RiskId.sol +43 -0
  318. package/contracts/types/RoleId.sol +69 -10
  319. package/contracts/types/Seconds.sol +54 -0
  320. package/contracts/types/StateId.sol +6 -1
  321. package/contracts/types/Timestamp.sol +17 -13
  322. package/contracts/types/UFixed.sol +129 -12
  323. package/contracts/types/Version.sol +14 -1
  324. package/package.json +6 -5
  325. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  326. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  327. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  329. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  330. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  331. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  332. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  333. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  334. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  336. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  338. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  340. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  342. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  344. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  346. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  347. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  348. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  349. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  350. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  351. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  352. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  353. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  354. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  355. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  357. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  359. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  360. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  361. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  362. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  363. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  364. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  365. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
  366. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  367. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
  368. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  369. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  370. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  371. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
  372. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  373. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  374. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  376. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  377. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  378. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  379. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  380. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  381. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  382. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  384. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  385. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  386. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  387. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  388. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  389. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  390. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  392. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  393. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  394. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  395. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  396. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  397. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  398. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  399. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  400. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  401. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  402. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  403. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  404. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  405. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  406. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  407. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  408. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  409. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  410. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  411. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  412. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  413. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  414. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  415. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  416. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  417. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  418. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
  419. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  420. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -364
  421. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  422. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  423. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  424. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  425. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  426. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  427. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  428. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  429. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  430. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  431. package/contracts/components/BaseComponent.sol +0 -88
  432. package/contracts/components/IBaseComponent.sol +0 -19
  433. package/contracts/experiment/errors/Require.sol +0 -38
  434. package/contracts/experiment/errors/Revert.sol +0 -44
  435. package/contracts/experiment/inheritance/A.sol +0 -53
  436. package/contracts/experiment/inheritance/B.sol +0 -28
  437. package/contracts/experiment/inheritance/C.sol +0 -34
  438. package/contracts/experiment/inheritance/IA.sol +0 -13
  439. package/contracts/experiment/inheritance/IB.sol +0 -10
  440. package/contracts/experiment/inheritance/IC.sol +0 -12
  441. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  442. package/contracts/experiment/statemachine/ISM.sol +0 -25
  443. package/contracts/experiment/statemachine/README.md +0 -112
  444. package/contracts/experiment/statemachine/SM.sol +0 -57
  445. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  446. package/contracts/experiment/types/TypeA.sol +0 -47
  447. package/contracts/experiment/types/TypeB.sol +0 -29
  448. package/contracts/instance/IInstanceLinked.sol +0 -8
  449. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  450. package/contracts/instance/base/IInstanceBase.sol +0 -14
  451. package/contracts/instance/base/IService.sol +0 -15
  452. package/contracts/instance/base/InstanceBase.sol +0 -80
  453. package/contracts/instance/base/ModuleBase.sol +0 -52
  454. package/contracts/instance/base/ServiceBase.sol +0 -37
  455. package/contracts/instance/module/access/Access.sol +0 -149
  456. package/contracts/instance/module/access/IAccess.sol +0 -53
  457. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  458. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  459. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  460. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  461. package/contracts/instance/module/component/ComponentModule.sol +0 -95
  462. package/contracts/instance/module/component/IComponent.sol +0 -53
  463. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  464. package/contracts/instance/module/policy/PolicyModule.sol +0 -76
  465. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  466. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  467. package/contracts/instance/module/risk/IRisk.sol +0 -10
  468. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  469. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  470. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  471. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  472. package/contracts/instance/service/ComponentOwnerService.sol +0 -170
  473. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  474. package/contracts/registry/IChainNft.sol +0 -21
  475. package/contracts/registry/IRegistryLinked.sol +0 -8
  476. package/contracts/shared/IOwnable.sol +0 -6
  477. package/contracts/test/TestPool.sol +0 -22
  478. package/contracts/test/TestProduct.sol +0 -44
@@ -7,95 +7,1006 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
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",
11
22
  "type": "address"
12
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
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "caller",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
13
79
  {
14
80
  "internalType": "NftId",
15
81
  "name": "instanceNftId",
16
82
  "type": "uint96"
83
+ }
84
+ ],
85
+ "name": "ErrorComponentNotInstance",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "address",
92
+ "name": "caller",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "ErrorComponentNotProductService",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorComponentProductNftAlreadySet",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentWalletAddressZero",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "oldWallet",
119
+ "type": "address"
17
120
  },
18
121
  {
19
122
  "internalType": "address",
20
- "name": "token",
123
+ "name": "newWallet",
21
124
  "type": "address"
22
125
  },
23
126
  {
24
- "internalType": "bool",
25
- "name": "verifying",
26
- "type": "bool"
127
+ "internalType": "uint256",
128
+ "name": "allowance",
129
+ "type": "uint256"
27
130
  },
28
131
  {
29
- "internalType": "UFixed",
30
- "name": "collateralizationLevel",
132
+ "internalType": "uint256",
133
+ "name": "balance",
31
134
  "type": "uint256"
32
135
  }
33
136
  ],
34
- "stateMutability": "nonpayable",
35
- "type": "constructor"
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
146
+ }
147
+ ],
148
+ "name": "ErrorNftOwnableAlreadyLinked",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "contractAddress",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "ErrorNftOwnableContractNotRegistered",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "account",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "ErrorNftOwnableNotOwner",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "registryAddress",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "ErrorNotRegistry",
187
+ "type": "error"
188
+ },
189
+ {
190
+ "inputs": [
191
+ {
192
+ "internalType": "NftId",
193
+ "name": "applicationNftId",
194
+ "type": "uint96"
195
+ }
196
+ ],
197
+ "name": "ErrorPoolApplicationBundleMismatch",
198
+ "type": "error"
36
199
  },
37
200
  {
38
- "anonymous": false,
39
201
  "inputs": [
40
202
  {
41
- "indexed": false,
42
203
  "internalType": "NftId",
43
- "name": "policyNftId",
204
+ "name": "bundleNftId",
44
205
  "type": "uint96"
45
206
  },
207
+ {
208
+ "internalType": "address",
209
+ "name": "caller",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorPoolNotBundleOwner",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [
218
+ {
219
+ "internalType": "address",
220
+ "name": "caller",
221
+ "type": "address"
222
+ }
223
+ ],
224
+ "name": "ErrorPoolNotPoolService",
225
+ "type": "error"
226
+ },
227
+ {
228
+ "inputs": [],
229
+ "name": "FailedInnerCall",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "InvalidInitialization",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "NotInitializing",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "address",
246
+ "name": "token",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "name": "SafeERC20FailedOperation",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "anonymous": false,
255
+ "inputs": [
46
256
  {
47
257
  "indexed": false,
48
- "internalType": "uint256",
49
- "name": "collateralizationAmount",
50
- "type": "uint256"
258
+ "internalType": "address",
259
+ "name": "authority",
260
+ "type": "address"
261
+ }
262
+ ],
263
+ "name": "AuthorityUpdated",
264
+ "type": "event"
265
+ },
266
+ {
267
+ "anonymous": false,
268
+ "inputs": [
269
+ {
270
+ "indexed": false,
271
+ "internalType": "uint64",
272
+ "name": "version",
273
+ "type": "uint64"
274
+ }
275
+ ],
276
+ "name": "Initialized",
277
+ "type": "event"
278
+ },
279
+ {
280
+ "anonymous": false,
281
+ "inputs": [
282
+ {
283
+ "indexed": false,
284
+ "internalType": "address",
285
+ "name": "oldWallet",
286
+ "type": "address"
51
287
  },
52
288
  {
53
289
  "indexed": false,
54
290
  "internalType": "address",
55
- "name": "pool",
291
+ "name": "newWallet",
56
292
  "type": "address"
57
293
  }
58
294
  ],
59
- "name": "LogUnderwrittenByPool",
295
+ "name": "LogComponentWalletAddressChanged",
60
296
  "type": "event"
61
297
  },
62
298
  {
299
+ "anonymous": false,
63
300
  "inputs": [
64
301
  {
302
+ "indexed": false,
303
+ "internalType": "address",
304
+ "name": "from",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": false,
309
+ "internalType": "address",
310
+ "name": "to",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": false,
65
315
  "internalType": "uint256",
66
- "name": "initialAmount",
316
+ "name": "amount",
67
317
  "type": "uint256"
318
+ }
319
+ ],
320
+ "name": "LogComponentWalletTokensTransferred",
321
+ "type": "event"
322
+ },
323
+ {
324
+ "anonymous": false,
325
+ "inputs": [
326
+ {
327
+ "indexed": false,
328
+ "internalType": "address",
329
+ "name": "pool",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "indexed": false,
334
+ "internalType": "NftId",
335
+ "name": "applicationNftId",
336
+ "type": "uint96"
68
337
  },
69
338
  {
339
+ "indexed": false,
70
340
  "internalType": "uint256",
71
- "name": "lifetime",
341
+ "name": "collateralizationAmount",
72
342
  "type": "uint256"
73
- },
343
+ }
344
+ ],
345
+ "name": "LogPoolVerifiedByPool",
346
+ "type": "event"
347
+ },
348
+ {
349
+ "inputs": [],
350
+ "name": "COMPONENT_LOCATION_V1",
351
+ "outputs": [
74
352
  {
75
- "internalType": "bytes",
76
- "name": "filter",
77
- "type": "bytes"
353
+ "internalType": "bytes32",
354
+ "name": "",
355
+ "type": "bytes32"
78
356
  }
79
357
  ],
80
- "name": "createBundle",
358
+ "stateMutability": "view",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
81
364
  "outputs": [
82
365
  {
83
- "internalType": "NftId",
84
- "name": "bundleNftId",
85
- "type": "uint96"
366
+ "internalType": "bytes32",
367
+ "name": "",
368
+ "type": "bytes32"
369
+ }
370
+ ],
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "POOL_STORAGE_LOCATION_V1",
377
+ "outputs": [
378
+ {
379
+ "internalType": "bytes32",
380
+ "name": "",
381
+ "type": "bytes32"
382
+ }
383
+ ],
384
+ "stateMutability": "view",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [],
389
+ "name": "REGISTERABLE_LOCATION_V1",
390
+ "outputs": [
391
+ {
392
+ "internalType": "bytes32",
393
+ "name": "",
394
+ "type": "bytes32"
395
+ }
396
+ ],
397
+ "stateMutability": "view",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "NftId",
404
+ "name": "applicationNftId",
405
+ "type": "uint96"
406
+ },
407
+ {
408
+ "internalType": "bytes",
409
+ "name": "applicationData",
410
+ "type": "bytes"
411
+ },
412
+ {
413
+ "internalType": "NftId",
414
+ "name": "bundleNftId",
415
+ "type": "uint96"
416
+ },
417
+ {
418
+ "internalType": "bytes",
419
+ "name": "bundleFilter",
420
+ "type": "bytes"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "collateralizationAmount",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "name": "applicationMatchesBundle",
429
+ "outputs": [
430
+ {
431
+ "internalType": "bool",
432
+ "name": "isMatching",
433
+ "type": "bool"
434
+ }
435
+ ],
436
+ "stateMutability": "view",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [],
441
+ "name": "authority",
442
+ "outputs": [
443
+ {
444
+ "internalType": "address",
445
+ "name": "",
446
+ "type": "address"
447
+ }
448
+ ],
449
+ "stateMutability": "view",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "NftId",
456
+ "name": "bundleNftId",
457
+ "type": "uint96"
458
+ }
459
+ ],
460
+ "name": "close",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "NftId",
469
+ "name": "bundleNftId",
470
+ "type": "uint96"
471
+ },
472
+ {
473
+ "internalType": "Seconds",
474
+ "name": "lifetimeExtension",
475
+ "type": "uint40"
476
+ }
477
+ ],
478
+ "name": "extend",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
483
+ {
484
+ "inputs": [],
485
+ "name": "getComponentInfo",
486
+ "outputs": [
487
+ {
488
+ "components": [
489
+ {
490
+ "internalType": "string",
491
+ "name": "name",
492
+ "type": "string"
493
+ },
494
+ {
495
+ "internalType": "contract IERC20Metadata",
496
+ "name": "token",
497
+ "type": "address"
498
+ },
499
+ {
500
+ "internalType": "contract TokenHandler",
501
+ "name": "tokenHandler",
502
+ "type": "address"
503
+ },
504
+ {
505
+ "internalType": "address",
506
+ "name": "wallet",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "internalType": "Amount",
511
+ "name": "balanceAmount",
512
+ "type": "uint96"
513
+ },
514
+ {
515
+ "internalType": "Amount",
516
+ "name": "feeAmount",
517
+ "type": "uint96"
518
+ },
519
+ {
520
+ "internalType": "bytes",
521
+ "name": "data",
522
+ "type": "bytes"
523
+ }
524
+ ],
525
+ "internalType": "struct IComponents.ComponentInfo",
526
+ "name": "info",
527
+ "type": "tuple"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "bytes",
537
+ "name": "name",
538
+ "type": "bytes"
539
+ }
540
+ ],
541
+ "name": "getContractLocation",
542
+ "outputs": [
543
+ {
544
+ "internalType": "bytes32",
545
+ "name": "hash",
546
+ "type": "bytes32"
547
+ }
548
+ ],
549
+ "stateMutability": "pure",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [],
554
+ "name": "getInitialInfo",
555
+ "outputs": [
556
+ {
557
+ "components": [
558
+ {
559
+ "internalType": "NftId",
560
+ "name": "nftId",
561
+ "type": "uint96"
562
+ },
563
+ {
564
+ "internalType": "NftId",
565
+ "name": "parentNftId",
566
+ "type": "uint96"
567
+ },
568
+ {
569
+ "internalType": "ObjectType",
570
+ "name": "objectType",
571
+ "type": "uint8"
572
+ },
573
+ {
574
+ "internalType": "bool",
575
+ "name": "isInterceptor",
576
+ "type": "bool"
577
+ },
578
+ {
579
+ "internalType": "address",
580
+ "name": "objectAddress",
581
+ "type": "address"
582
+ },
583
+ {
584
+ "internalType": "address",
585
+ "name": "initialOwner",
586
+ "type": "address"
587
+ },
588
+ {
589
+ "internalType": "bytes",
590
+ "name": "data",
591
+ "type": "bytes"
592
+ }
593
+ ],
594
+ "internalType": "struct IRegistry.ObjectInfo",
595
+ "name": "info",
596
+ "type": "tuple"
597
+ }
598
+ ],
599
+ "stateMutability": "view",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [],
604
+ "name": "getInstance",
605
+ "outputs": [
606
+ {
607
+ "internalType": "contract IInstance",
608
+ "name": "instance",
609
+ "type": "address"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [],
617
+ "name": "getName",
618
+ "outputs": [
619
+ {
620
+ "internalType": "string",
621
+ "name": "name",
622
+ "type": "string"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "getNftId",
631
+ "outputs": [
632
+ {
633
+ "internalType": "NftId",
634
+ "name": "",
635
+ "type": "uint96"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "getOwner",
644
+ "outputs": [
645
+ {
646
+ "internalType": "address",
647
+ "name": "",
648
+ "type": "address"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "getPoolInfo",
657
+ "outputs": [
658
+ {
659
+ "components": [
660
+ {
661
+ "internalType": "NftId",
662
+ "name": "productNftId",
663
+ "type": "uint96"
664
+ },
665
+ {
666
+ "internalType": "RoleId",
667
+ "name": "bundleOwnerRole",
668
+ "type": "uint64"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "maxCapitalAmount",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "balanceAmount",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "feeAmount",
683
+ "type": "uint256"
684
+ },
685
+ {
686
+ "internalType": "bool",
687
+ "name": "isInterceptingBundleTransfers",
688
+ "type": "bool"
689
+ },
690
+ {
691
+ "internalType": "bool",
692
+ "name": "isExternallyManaged",
693
+ "type": "bool"
694
+ },
695
+ {
696
+ "internalType": "bool",
697
+ "name": "isVerifyingApplications",
698
+ "type": "bool"
699
+ },
700
+ {
701
+ "internalType": "UFixed",
702
+ "name": "collateralizationLevel",
703
+ "type": "uint256"
704
+ },
705
+ {
706
+ "internalType": "UFixed",
707
+ "name": "retentionLevel",
708
+ "type": "uint256"
709
+ },
710
+ {
711
+ "components": [
712
+ {
713
+ "internalType": "UFixed",
714
+ "name": "fractionalFee",
715
+ "type": "uint256"
716
+ },
717
+ {
718
+ "internalType": "uint256",
719
+ "name": "fixedFee",
720
+ "type": "uint256"
721
+ }
722
+ ],
723
+ "internalType": "struct Fee",
724
+ "name": "poolFee",
725
+ "type": "tuple"
726
+ },
727
+ {
728
+ "components": [
729
+ {
730
+ "internalType": "UFixed",
731
+ "name": "fractionalFee",
732
+ "type": "uint256"
733
+ },
734
+ {
735
+ "internalType": "uint256",
736
+ "name": "fixedFee",
737
+ "type": "uint256"
738
+ }
739
+ ],
740
+ "internalType": "struct Fee",
741
+ "name": "stakingFee",
742
+ "type": "tuple"
743
+ },
744
+ {
745
+ "components": [
746
+ {
747
+ "internalType": "UFixed",
748
+ "name": "fractionalFee",
749
+ "type": "uint256"
750
+ },
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "fixedFee",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "internalType": "struct Fee",
758
+ "name": "performanceFee",
759
+ "type": "tuple"
760
+ }
761
+ ],
762
+ "internalType": "struct IComponents.PoolInfo",
763
+ "name": "poolInfo",
764
+ "type": "tuple"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [],
772
+ "name": "getProductNftId",
773
+ "outputs": [
774
+ {
775
+ "internalType": "NftId",
776
+ "name": "productNftId",
777
+ "type": "uint96"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [],
785
+ "name": "getRegistry",
786
+ "outputs": [
787
+ {
788
+ "internalType": "contract IRegistry",
789
+ "name": "",
790
+ "type": "address"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [],
798
+ "name": "getRegistryAddress",
799
+ "outputs": [
800
+ {
801
+ "internalType": "address",
802
+ "name": "",
803
+ "type": "address"
804
+ }
805
+ ],
806
+ "stateMutability": "view",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "inputs": [],
811
+ "name": "getToken",
812
+ "outputs": [
813
+ {
814
+ "internalType": "contract IERC20Metadata",
815
+ "name": "token",
816
+ "type": "address"
817
+ }
818
+ ],
819
+ "stateMutability": "view",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [],
824
+ "name": "getWallet",
825
+ "outputs": [
826
+ {
827
+ "internalType": "address",
828
+ "name": "walletAddress",
829
+ "type": "address"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [
837
+ {
838
+ "internalType": "address",
839
+ "name": "registry",
840
+ "type": "address"
841
+ },
842
+ {
843
+ "internalType": "NftId",
844
+ "name": "instanceNftId",
845
+ "type": "uint96"
846
+ },
847
+ {
848
+ "internalType": "string",
849
+ "name": "name",
850
+ "type": "string"
851
+ },
852
+ {
853
+ "internalType": "address",
854
+ "name": "token",
855
+ "type": "address"
856
+ },
857
+ {
858
+ "internalType": "ObjectType",
859
+ "name": "componentType",
860
+ "type": "uint8"
861
+ },
862
+ {
863
+ "internalType": "bool",
864
+ "name": "isInterceptor",
865
+ "type": "bool"
866
+ },
867
+ {
868
+ "internalType": "address",
869
+ "name": "initialOwner",
870
+ "type": "address"
871
+ },
872
+ {
873
+ "internalType": "bytes",
874
+ "name": "registryData",
875
+ "type": "bytes"
876
+ }
877
+ ],
878
+ "name": "initializeComponent",
879
+ "outputs": [],
880
+ "stateMutability": "nonpayable",
881
+ "type": "function"
882
+ },
883
+ {
884
+ "inputs": [],
885
+ "name": "initializeERC165",
886
+ "outputs": [],
887
+ "stateMutability": "nonpayable",
888
+ "type": "function"
889
+ },
890
+ {
891
+ "inputs": [
892
+ {
893
+ "internalType": "address",
894
+ "name": "initialOwner",
895
+ "type": "address"
896
+ },
897
+ {
898
+ "internalType": "address",
899
+ "name": "registryAddress",
900
+ "type": "address"
901
+ }
902
+ ],
903
+ "name": "initializeNftOwnable",
904
+ "outputs": [],
905
+ "stateMutability": "nonpayable",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [
910
+ {
911
+ "internalType": "address",
912
+ "name": "registry",
913
+ "type": "address"
914
+ },
915
+ {
916
+ "internalType": "NftId",
917
+ "name": "instanceNftId",
918
+ "type": "uint96"
919
+ },
920
+ {
921
+ "internalType": "string",
922
+ "name": "name",
923
+ "type": "string"
924
+ },
925
+ {
926
+ "internalType": "address",
927
+ "name": "token",
928
+ "type": "address"
929
+ },
930
+ {
931
+ "internalType": "bool",
932
+ "name": "isInterceptingNftTransfers",
933
+ "type": "bool"
934
+ },
935
+ {
936
+ "internalType": "address",
937
+ "name": "initialOwner",
938
+ "type": "address"
939
+ },
940
+ {
941
+ "internalType": "bytes",
942
+ "name": "registryData",
943
+ "type": "bytes"
944
+ }
945
+ ],
946
+ "name": "initializePool",
947
+ "outputs": [],
948
+ "stateMutability": "nonpayable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ {
954
+ "internalType": "address",
955
+ "name": "registryAddress",
956
+ "type": "address"
957
+ },
958
+ {
959
+ "internalType": "NftId",
960
+ "name": "parentNftId",
961
+ "type": "uint96"
962
+ },
963
+ {
964
+ "internalType": "ObjectType",
965
+ "name": "objectType",
966
+ "type": "uint8"
967
+ },
968
+ {
969
+ "internalType": "bool",
970
+ "name": "isInterceptor",
971
+ "type": "bool"
972
+ },
973
+ {
974
+ "internalType": "address",
975
+ "name": "initialOwner",
976
+ "type": "address"
977
+ },
978
+ {
979
+ "internalType": "bytes",
980
+ "name": "registryData",
981
+ "type": "bytes"
982
+ }
983
+ ],
984
+ "name": "initializeRegisterable",
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable",
987
+ "type": "function"
988
+ },
989
+ {
990
+ "inputs": [
991
+ {
992
+ "internalType": "address",
993
+ "name": "registryAddress",
994
+ "type": "address"
86
995
  }
87
996
  ],
997
+ "name": "initializeRegistryLinked",
998
+ "outputs": [],
88
999
  "stateMutability": "nonpayable",
89
1000
  "type": "function"
90
1001
  },
91
1002
  {
92
1003
  "inputs": [],
93
- "name": "getCollateralizationLevel",
1004
+ "name": "isConsumingScheduledOp",
94
1005
  "outputs": [
95
1006
  {
96
- "internalType": "UFixed",
97
- "name": "collateralizationLevel",
98
- "type": "uint256"
1007
+ "internalType": "bytes4",
1008
+ "name": "",
1009
+ "type": "bytes4"
99
1010
  }
100
1011
  ],
101
1012
  "stateMutability": "view",
@@ -103,12 +1014,12 @@
103
1014
  },
104
1015
  {
105
1016
  "inputs": [],
106
- "name": "getData",
1017
+ "name": "isNftInterceptor",
107
1018
  "outputs": [
108
1019
  {
109
- "internalType": "bytes",
110
- "name": "data",
111
- "type": "bytes"
1020
+ "internalType": "bool",
1021
+ "name": "isInterceptor",
1022
+ "type": "bool"
112
1023
  }
113
1024
  ],
114
1025
  "stateMutability": "view",
@@ -116,60 +1027,105 @@
116
1027
  },
117
1028
  {
118
1029
  "inputs": [],
119
- "name": "getInstance",
120
- "outputs": [
121
- {
122
- "internalType": "contract IInstance",
123
- "name": "instance",
124
- "type": "address"
125
- }
126
- ],
127
- "stateMutability": "view",
1030
+ "name": "linkToRegisteredNftId",
1031
+ "outputs": [],
1032
+ "stateMutability": "nonpayable",
128
1033
  "type": "function"
129
1034
  },
130
1035
  {
131
1036
  "inputs": [],
132
- "name": "getNftId",
133
- "outputs": [
1037
+ "name": "lock",
1038
+ "outputs": [],
1039
+ "stateMutability": "nonpayable",
1040
+ "type": "function"
1041
+ },
1042
+ {
1043
+ "inputs": [
134
1044
  {
135
1045
  "internalType": "NftId",
136
- "name": "nftId",
1046
+ "name": "bundleNftId",
137
1047
  "type": "uint96"
138
1048
  }
139
1049
  ],
140
- "stateMutability": "view",
1050
+ "name": "lockBundle",
1051
+ "outputs": [],
1052
+ "stateMutability": "nonpayable",
141
1053
  "type": "function"
142
1054
  },
143
1055
  {
144
- "inputs": [],
145
- "name": "getOwner",
146
- "outputs": [
1056
+ "inputs": [
147
1057
  {
148
1058
  "internalType": "address",
149
- "name": "owner",
1059
+ "name": "to",
150
1060
  "type": "address"
1061
+ },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "tokenId",
1065
+ "type": "uint256"
151
1066
  }
152
1067
  ],
153
- "stateMutability": "view",
1068
+ "name": "nftMint",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
154
1071
  "type": "function"
155
1072
  },
156
1073
  {
157
- "inputs": [],
158
- "name": "getParentNftId",
159
- "outputs": [
1074
+ "inputs": [
160
1075
  {
161
- "internalType": "NftId",
162
- "name": "nftId",
163
- "type": "uint96"
1076
+ "internalType": "address",
1077
+ "name": "from",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "internalType": "address",
1082
+ "name": "to",
1083
+ "type": "address"
1084
+ },
1085
+ {
1086
+ "internalType": "uint256",
1087
+ "name": "tokenId",
1088
+ "type": "uint256"
164
1089
  }
165
1090
  ],
166
- "stateMutability": "view",
1091
+ "name": "nftTransferFrom",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
167
1094
  "type": "function"
168
1095
  },
169
1096
  {
170
- "inputs": [],
171
- "name": "getPerformanceFee",
172
- "outputs": [
1097
+ "inputs": [
1098
+ {
1099
+ "internalType": "bytes4",
1100
+ "name": "interfaceId",
1101
+ "type": "bytes4"
1102
+ }
1103
+ ],
1104
+ "name": "registerInterface",
1105
+ "outputs": [],
1106
+ "stateMutability": "nonpayable",
1107
+ "type": "function"
1108
+ },
1109
+ {
1110
+ "inputs": [
1111
+ {
1112
+ "internalType": "address",
1113
+ "name": "newAuthority",
1114
+ "type": "address"
1115
+ }
1116
+ ],
1117
+ "name": "setAuthority",
1118
+ "outputs": [],
1119
+ "stateMutability": "nonpayable",
1120
+ "type": "function"
1121
+ },
1122
+ {
1123
+ "inputs": [
1124
+ {
1125
+ "internalType": "NftId",
1126
+ "name": "bundleNftId",
1127
+ "type": "uint96"
1128
+ },
173
1129
  {
174
1130
  "components": [
175
1131
  {
@@ -184,30 +1140,47 @@
184
1140
  }
185
1141
  ],
186
1142
  "internalType": "struct Fee",
187
- "name": "performanceFee",
1143
+ "name": "fee",
188
1144
  "type": "tuple"
189
1145
  }
190
1146
  ],
191
- "stateMutability": "view",
1147
+ "name": "setBundleFee",
1148
+ "outputs": [],
1149
+ "stateMutability": "nonpayable",
192
1150
  "type": "function"
193
1151
  },
194
1152
  {
195
- "inputs": [],
196
- "name": "getRegistry",
197
- "outputs": [
1153
+ "inputs": [
198
1154
  {
199
- "internalType": "contract IRegistry",
200
- "name": "registry",
201
- "type": "address"
1155
+ "internalType": "RoleId",
1156
+ "name": "bundleOwnerRole",
1157
+ "type": "uint64"
202
1158
  }
203
1159
  ],
204
- "stateMutability": "view",
1160
+ "name": "setBundleOwnerRole",
1161
+ "outputs": [],
1162
+ "stateMutability": "nonpayable",
205
1163
  "type": "function"
206
1164
  },
207
1165
  {
208
- "inputs": [],
209
- "name": "getStakingFee",
210
- "outputs": [
1166
+ "inputs": [
1167
+ {
1168
+ "components": [
1169
+ {
1170
+ "internalType": "UFixed",
1171
+ "name": "fractionalFee",
1172
+ "type": "uint256"
1173
+ },
1174
+ {
1175
+ "internalType": "uint256",
1176
+ "name": "fixedFee",
1177
+ "type": "uint256"
1178
+ }
1179
+ ],
1180
+ "internalType": "struct Fee",
1181
+ "name": "poolFee",
1182
+ "type": "tuple"
1183
+ },
211
1184
  {
212
1185
  "components": [
213
1186
  {
@@ -224,66 +1197,83 @@
224
1197
  "internalType": "struct Fee",
225
1198
  "name": "stakingFee",
226
1199
  "type": "tuple"
1200
+ },
1201
+ {
1202
+ "components": [
1203
+ {
1204
+ "internalType": "UFixed",
1205
+ "name": "fractionalFee",
1206
+ "type": "uint256"
1207
+ },
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "fixedFee",
1211
+ "type": "uint256"
1212
+ }
1213
+ ],
1214
+ "internalType": "struct Fee",
1215
+ "name": "performanceFee",
1216
+ "type": "tuple"
227
1217
  }
228
1218
  ],
229
- "stateMutability": "view",
1219
+ "name": "setFees",
1220
+ "outputs": [],
1221
+ "stateMutability": "nonpayable",
230
1222
  "type": "function"
231
1223
  },
232
1224
  {
233
- "inputs": [],
234
- "name": "getToken",
235
- "outputs": [
1225
+ "inputs": [
236
1226
  {
237
- "internalType": "contract IERC20Metadata",
238
- "name": "token",
239
- "type": "address"
1227
+ "internalType": "uint256",
1228
+ "name": "maxCapitalAmount",
1229
+ "type": "uint256"
240
1230
  }
241
1231
  ],
242
- "stateMutability": "view",
1232
+ "name": "setMaxCapitalAmount",
1233
+ "outputs": [],
1234
+ "stateMutability": "nonpayable",
243
1235
  "type": "function"
244
1236
  },
245
1237
  {
246
- "inputs": [],
247
- "name": "getType",
248
- "outputs": [
1238
+ "inputs": [
249
1239
  {
250
- "internalType": "ObjectType",
251
- "name": "",
252
- "type": "uint8"
1240
+ "internalType": "NftId",
1241
+ "name": "productNftId",
1242
+ "type": "uint96"
253
1243
  }
254
1244
  ],
255
- "stateMutability": "pure",
1245
+ "name": "setProductNftId",
1246
+ "outputs": [],
1247
+ "stateMutability": "nonpayable",
256
1248
  "type": "function"
257
1249
  },
258
1250
  {
259
- "inputs": [],
260
- "name": "getWallet",
261
- "outputs": [
1251
+ "inputs": [
262
1252
  {
263
1253
  "internalType": "address",
264
- "name": "walletAddress",
1254
+ "name": "newWallet",
265
1255
  "type": "address"
266
1256
  }
267
1257
  ],
268
- "stateMutability": "view",
1258
+ "name": "setWallet",
1259
+ "outputs": [],
1260
+ "stateMutability": "nonpayable",
269
1261
  "type": "function"
270
1262
  },
271
1263
  {
272
- "inputs": [],
273
- "name": "isVerifying",
274
- "outputs": [
1264
+ "inputs": [
275
1265
  {
276
- "internalType": "bool",
277
- "name": "verifying",
278
- "type": "bool"
1266
+ "internalType": "NftId",
1267
+ "name": "bundleNftId",
1268
+ "type": "uint96"
1269
+ },
1270
+ {
1271
+ "internalType": "uint256",
1272
+ "name": "amount",
1273
+ "type": "uint256"
279
1274
  }
280
1275
  ],
281
- "stateMutability": "view",
282
- "type": "function"
283
- },
284
- {
285
- "inputs": [],
286
- "name": "lock",
1276
+ "name": "stake",
287
1277
  "outputs": [],
288
1278
  "stateMutability": "nonpayable",
289
1279
  "type": "function"
@@ -291,21 +1281,16 @@
291
1281
  {
292
1282
  "inputs": [
293
1283
  {
294
- "internalType": "bytes",
295
- "name": "",
296
- "type": "bytes"
297
- },
298
- {
299
- "internalType": "bytes",
300
- "name": "",
301
- "type": "bytes"
1284
+ "internalType": "bytes4",
1285
+ "name": "interfaceId",
1286
+ "type": "bytes4"
302
1287
  }
303
1288
  ],
304
- "name": "policyMatchesBundle",
1289
+ "name": "supportsInterface",
305
1290
  "outputs": [
306
1291
  {
307
1292
  "internalType": "bool",
308
- "name": "isMatching",
1293
+ "name": "",
309
1294
  "type": "bool"
310
1295
  }
311
1296
  ],
@@ -314,48 +1299,59 @@
314
1299
  },
315
1300
  {
316
1301
  "inputs": [],
317
- "name": "register",
318
- "outputs": [
1302
+ "name": "unlock",
1303
+ "outputs": [],
1304
+ "stateMutability": "nonpayable",
1305
+ "type": "function"
1306
+ },
1307
+ {
1308
+ "inputs": [
319
1309
  {
320
1310
  "internalType": "NftId",
321
- "name": "componentId",
1311
+ "name": "bundleNftId",
322
1312
  "type": "uint96"
323
1313
  }
324
1314
  ],
1315
+ "name": "unlockBundle",
1316
+ "outputs": [],
325
1317
  "stateMutability": "nonpayable",
326
1318
  "type": "function"
327
1319
  },
328
1320
  {
329
1321
  "inputs": [
330
1322
  {
331
- "internalType": "bytes4",
332
- "name": "interfaceId",
333
- "type": "bytes4"
334
- }
335
- ],
336
- "name": "supportsInterface",
337
- "outputs": [
1323
+ "internalType": "NftId",
1324
+ "name": "bundleNftId",
1325
+ "type": "uint96"
1326
+ },
338
1327
  {
339
- "internalType": "bool",
340
- "name": "",
341
- "type": "bool"
1328
+ "internalType": "uint256",
1329
+ "name": "amount",
1330
+ "type": "uint256"
342
1331
  }
343
1332
  ],
344
- "stateMutability": "view",
1333
+ "name": "unstake",
1334
+ "outputs": [],
1335
+ "stateMutability": "nonpayable",
345
1336
  "type": "function"
346
1337
  },
347
1338
  {
348
1339
  "inputs": [
349
1340
  {
350
1341
  "internalType": "NftId",
351
- "name": "policyNftId",
1342
+ "name": "applicationNftId",
352
1343
  "type": "uint96"
353
1344
  },
354
1345
  {
355
1346
  "internalType": "bytes",
356
- "name": "policyData",
1347
+ "name": "applicationData",
357
1348
  "type": "bytes"
358
1349
  },
1350
+ {
1351
+ "internalType": "NftId",
1352
+ "name": "bundleNftId",
1353
+ "type": "uint96"
1354
+ },
359
1355
  {
360
1356
  "internalType": "bytes",
361
1357
  "name": "bundleFilter",
@@ -367,21 +1363,14 @@
367
1363
  "type": "uint256"
368
1364
  }
369
1365
  ],
370
- "name": "underwrite",
371
- "outputs": [],
372
- "stateMutability": "nonpayable",
373
- "type": "function"
374
- },
375
- {
376
- "inputs": [],
377
- "name": "unlock",
1366
+ "name": "verifyApplication",
378
1367
  "outputs": [],
379
1368
  "stateMutability": "nonpayable",
380
1369
  "type": "function"
381
1370
  }
382
1371
  ],
383
- "bytecode": "0x60e06040523480156200001157600080fd5b50604051620017d6380380620017d6833981016040819052620000349162000625565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905584848482826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000147919062000690565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000690565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c9190810190620007b6565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152638de54b9b60e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba919062000690565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000890565b600180546001600160a01b039283166001600160a01b03199182161790915560038054821630179055600480549483169490911693909317835560058054881515600160a01b0260ff60a01b1982168117909255600688905560408051636b9bf08b60e01b8152905192841691909316179550636b9bf08b9450818401936020935090918290030181865afa158015620004fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000520919062000890565b600780546001600160a01b0319166001600160a01b0392831617905560055460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa1580156200057f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005a5919062000890565b600880546001600160a01b0319166001600160a01b039290921691909117905550620008b09350505050565b6001600160a01b0381168114620005e757600080fd5b50565b8051620005f781620005d1565b919050565b80516001600160601b0381168114620005f757600080fd5b80518015158114620005f757600080fd5b600080600080600060a086880312156200063e57600080fd5b85516200064b81620005d1565b94506200065b60208701620005fc565b935060408601516200066d81620005d1565b92506200067d6060870162000614565b9150608086015190509295509295909350565b600060208284031215620006a357600080fd5b620006ae8262000614565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715620006f057620006f0620006b5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007215762000721620006b5565b604052919050565b600082601f8301126200073b57600080fd5b81516001600160401b03811115620007575762000757620006b5565b60206200076d601f8301601f19168201620006f6565b82815285828487010111156200078257600080fd5b60005b83811015620007a257858101830151828201840152820162000785565b506000928101909101919091529392505050565b600060208284031215620007c957600080fd5b81516001600160401b0380821115620007e157600080fd5b9083019060c08286031215620007f657600080fd5b62000800620006cb565b6200080b83620005fc565b81526200081b60208401620005fc565b6020820152604083015160ff811681146200083557600080fd5b60408201526200084860608401620005ea565b60608201526200085b60808401620005ea565b608082015260a0830151828111156200087357600080fd5b620008818782860162000729565b60a08301525095945050505050565b600060208284031215620008a357600080fd5b8151620006ae81620005d1565b60805160a05160c051610ed36200090360003960006107ca015260006101fd0152600081816102560152818161034b015281816103e1015281816106660152818161074d015261080d0152610ed36000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
384
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
1372
+ "bytecode": "0x",
1373
+ "deployedBytecode": "0x",
385
1374
  "linkReferences": {},
386
1375
  "deployedLinkReferences": {}
387
1376
  }