@etherisc/gif-next 0.0.2-cc253b3 → 0.0.2-cd89a0b-062

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. package/README.md +193 -6
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{IProduct.sol/IProductComponent.json → BaseComponent.sol/BaseComponent.json} +88 -67
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +445 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +69 -71
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +343 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +474 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +373 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +445 -56
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +324 -53
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  26. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  44. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1575 -295
  48. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  49. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/Instance.sol/Instance.json +1894 -374
  52. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +393 -0
  54. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  56. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
  58. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  60. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/IService.sol/IService.json} +171 -154
  62. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  63. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +456 -0
  64. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
  66. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  68. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  69. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  70. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +380 -0
  72. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  74. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  76. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  78. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +297 -0
  80. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  82. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +297 -0
  84. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -0
  86. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  88. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{product/IProductService.sol/IProductService.json → module/component/IComponent.sol/IComponentModule.json} +56 -53
  90. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  92. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
  94. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
  96. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  97. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  98. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  99. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +159 -106
  100. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +159 -106
  102. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  104. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  105. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +74 -59
  106. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  107. package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +64 -62
  108. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  109. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  110. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  111. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
  112. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  113. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
  114. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  115. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
  116. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  117. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +638 -0
  118. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  119. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  120. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  121. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +638 -0
  122. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +690 -0
  124. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +526 -0
  126. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +389 -0
  128. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +369 -0
  130. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +484 -0
  132. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  133. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +674 -0
  134. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  135. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +649 -0
  136. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  137. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +964 -0
  138. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  139. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +194 -2
  140. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  141. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
  142. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  143. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +351 -72
  144. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  145. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +668 -0
  146. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  147. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  148. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  149. package/artifacts/contracts/registry/Registry.sol/Registry.json +567 -79
  150. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  151. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +885 -0
  152. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  153. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +460 -0
  154. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  155. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  156. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  157. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  158. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  159. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  160. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  161. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +124 -0
  162. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  163. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  164. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +132 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +344 -0
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  169. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +71 -77
  170. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  171. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  172. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  173. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  174. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  175. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +445 -0
  176. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  177. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  178. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  179. package/artifacts/contracts/test/TestPool.sol/TestPool.json +602 -0
  180. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  181. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +632 -0
  182. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  183. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +191 -0
  184. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  185. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  186. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  187. package/artifacts/contracts/test/TestService.sol/TestService.json +472 -0
  188. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  189. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  190. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  191. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  192. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  193. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +270 -0
  194. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  195. package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -0
  196. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  197. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  198. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  200. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  202. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  204. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  206. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +91 -6
  208. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  209. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  210. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  212. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  214. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  216. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  218. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  220. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +236 -0
  222. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
  224. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  226. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  227. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  228. package/contracts/components/BaseComponent.sol +79 -0
  229. package/contracts/components/Distribution.sol +155 -0
  230. package/contracts/components/IBaseComponent.sol +19 -0
  231. package/contracts/components/IDistributionComponent.sol +47 -0
  232. package/contracts/components/IPoolComponent.sol +65 -0
  233. package/contracts/components/IProductComponent.sol +39 -0
  234. package/contracts/components/Pool.sol +235 -18
  235. package/contracts/components/Product.sol +268 -35
  236. package/contracts/experiment/errors/Require.sol +10 -5
  237. package/contracts/experiment/errors/Revert.sol +13 -8
  238. package/contracts/experiment/inheritance/A.sol +8 -11
  239. package/contracts/experiment/inheritance/B.sol +10 -5
  240. package/contracts/experiment/inheritance/C.sol +11 -5
  241. package/contracts/experiment/inheritance/IA.sol +2 -7
  242. package/contracts/experiment/inheritance/IB.sol +3 -2
  243. package/contracts/experiment/inheritance/IC.sol +4 -3
  244. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  245. package/contracts/experiment/statemachine/ISM.sol +25 -0
  246. package/contracts/experiment/statemachine/SM.sol +57 -0
  247. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  248. package/contracts/experiment/types/TypeA.sol +14 -9
  249. package/contracts/experiment/types/TypeB.sol +14 -9
  250. package/contracts/instance/IInstance.sol +42 -8
  251. package/contracts/instance/IInstanceLinked.sol +8 -0
  252. package/contracts/instance/Instance.sol +62 -41
  253. package/contracts/instance/base/ComponentServiceBase.sol +49 -0
  254. package/contracts/instance/base/IInstanceBase.sol +23 -0
  255. package/contracts/instance/base/IKeyValueStore.sol +50 -0
  256. package/contracts/instance/base/ILifecycle.sol +30 -0
  257. package/contracts/instance/base/IService.sol +15 -0
  258. package/contracts/instance/base/InstanceBase.sol +89 -0
  259. package/contracts/instance/base/KeyValueStore.sol +161 -0
  260. package/contracts/instance/base/Lifecycle.sol +100 -0
  261. package/contracts/instance/base/ModuleBase.sol +57 -0
  262. package/contracts/instance/base/ServiceBase.sol +43 -0
  263. package/contracts/instance/module/access/Access.sol +149 -0
  264. package/contracts/instance/module/access/IAccess.sol +53 -0
  265. package/contracts/instance/module/bundle/BundleModule.sol +134 -0
  266. package/contracts/instance/module/bundle/IBundle.sol +53 -0
  267. package/contracts/instance/module/component/ComponentModule.sol +71 -0
  268. package/contracts/instance/module/component/IComponent.sol +28 -0
  269. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  270. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  271. package/contracts/instance/module/policy/IPolicy.sol +63 -0
  272. package/contracts/instance/module/policy/PolicyModule.sol +91 -0
  273. package/contracts/instance/module/pool/IPoolModule.sol +41 -0
  274. package/contracts/instance/module/pool/PoolModule.sol +95 -0
  275. package/contracts/instance/module/risk/IRisk.sol +26 -0
  276. package/contracts/instance/module/risk/RiskModule.sol +62 -0
  277. package/contracts/instance/module/treasury/ITreasury.sol +84 -0
  278. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  279. package/contracts/instance/module/treasury/TreasuryModule.sol +131 -0
  280. package/contracts/instance/service/ComponentOwnerService.sol +272 -0
  281. package/contracts/instance/service/DistributionService.sol +54 -0
  282. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  283. package/contracts/instance/service/IDistributionService.sol +12 -0
  284. package/contracts/instance/service/IPoolService.sol +37 -0
  285. package/contracts/instance/service/IProductService.sol +107 -0
  286. package/contracts/instance/service/PoolService.sol +149 -0
  287. package/contracts/instance/service/ProductService.sol +509 -0
  288. package/contracts/registry/ChainNft.sol +111 -97
  289. package/contracts/registry/IChainNft.sol +13 -9
  290. package/contracts/registry/IRegistry.sol +59 -56
  291. package/contracts/registry/IRegistryService.sol +29 -0
  292. package/contracts/registry/ITransferInterceptor.sol +6 -0
  293. package/contracts/registry/Registry.sol +429 -121
  294. package/contracts/registry/RegistryService.sol +375 -0
  295. package/contracts/registry/RegistryServiceManager.sol +52 -0
  296. package/contracts/shared/ContractDeployerLib.sol +72 -0
  297. package/contracts/shared/ERC165.sol +21 -0
  298. package/contracts/shared/IOwnable.sol +6 -0
  299. package/contracts/shared/IRegisterable.sol +22 -0
  300. package/contracts/shared/IVersionable.sol +96 -0
  301. package/contracts/shared/NftOwnable.sol +87 -0
  302. package/contracts/shared/ProxyManager.sol +103 -0
  303. package/contracts/shared/Registerable.sol +117 -0
  304. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  305. package/contracts/shared/Versionable.sol +147 -0
  306. package/contracts/test/TestDistribution.sol +22 -0
  307. package/contracts/test/TestFee.sol +25 -0
  308. package/contracts/test/TestPool.sol +27 -0
  309. package/contracts/test/TestProduct.sol +74 -0
  310. package/contracts/test/TestRegisterable.sol +18 -0
  311. package/contracts/test/TestRoleId.sol +14 -0
  312. package/contracts/test/TestService.sol +26 -0
  313. package/contracts/test/TestToken.sol +26 -0
  314. package/contracts/test/TestVersion.sol +44 -0
  315. package/contracts/test/TestVersionable.sol +17 -0
  316. package/contracts/test/Usdc.sol +26 -0
  317. package/contracts/types/AddressSet.sol +58 -0
  318. package/contracts/types/Blocknumber.sol +118 -0
  319. package/contracts/types/ChainId.sol +24 -10
  320. package/contracts/types/Fee.sol +56 -0
  321. package/contracts/types/Key32.sol +45 -0
  322. package/contracts/types/NftId.sol +55 -9
  323. package/contracts/types/NftIdSet.sol +60 -0
  324. package/contracts/types/ObjectType.sol +131 -0
  325. package/contracts/types/ReferralId.sol +48 -0
  326. package/contracts/types/RiskId.sol +43 -0
  327. package/contracts/types/RoleId.sol +38 -0
  328. package/contracts/types/StateId.sol +101 -0
  329. package/contracts/types/Timestamp.sol +123 -0
  330. package/contracts/types/UFixed.sol +209 -0
  331. package/contracts/types/Version.sol +104 -0
  332. package/package.json +19 -5
  333. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  334. package/artifacts/contracts/components/Component.sol/Component.json +0 -179
  335. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  336. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  337. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  338. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  339. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  341. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  342. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  343. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  344. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  345. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  347. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  348. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
  349. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  350. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  351. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  352. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  354. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  355. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  356. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  357. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  358. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  361. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  363. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  365. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  366. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  368. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  369. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
  370. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  371. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  372. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  373. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  374. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  375. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  376. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  377. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  378. package/contracts/components/Component.sol +0 -62
  379. package/contracts/components/IPool.sol +0 -9
  380. package/contracts/components/IProduct.sol +0 -12
  381. package/contracts/instance/access/Access.sol +0 -218
  382. package/contracts/instance/access/IAccess.sol +0 -83
  383. package/contracts/instance/component/ComponentModule.sol +0 -248
  384. package/contracts/instance/component/IComponent.sol +0 -95
  385. package/contracts/instance/policy/IPolicy.sol +0 -66
  386. package/contracts/instance/policy/PolicyModule.sol +0 -107
  387. package/contracts/instance/pool/IPoolModule.sol +0 -41
  388. package/contracts/instance/pool/PoolModule.sol +0 -86
  389. package/contracts/instance/product/IProductService.sol +0 -46
  390. package/contracts/instance/product/ProductService.sol +0 -108
@@ -0,0 +1,632 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "TestProduct",
4
+ "sourceName": "contracts/test/TestProduct.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "NftId",
15
+ "name": "instanceNftid",
16
+ "type": "uint96"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "token",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "bool",
25
+ "name": "isInterceptor",
26
+ "type": "bool"
27
+ },
28
+ {
29
+ "internalType": "address",
30
+ "name": "pool",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "internalType": "address",
35
+ "name": "distribution",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "components": [
40
+ {
41
+ "internalType": "UFixed",
42
+ "name": "fractionalFee",
43
+ "type": "uint256"
44
+ },
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "fixedFee",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "internalType": "struct Fee",
52
+ "name": "productFee",
53
+ "type": "tuple"
54
+ },
55
+ {
56
+ "components": [
57
+ {
58
+ "internalType": "UFixed",
59
+ "name": "fractionalFee",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "fixedFee",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "internalType": "struct Fee",
69
+ "name": "processingFee",
70
+ "type": "tuple"
71
+ },
72
+ {
73
+ "internalType": "address",
74
+ "name": "initialOwner",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "stateMutability": "nonpayable",
79
+ "type": "constructor"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "InvalidInitialization",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "NotInitializing",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "anonymous": false,
93
+ "inputs": [
94
+ {
95
+ "indexed": false,
96
+ "internalType": "uint64",
97
+ "name": "version",
98
+ "type": "uint64"
99
+ }
100
+ ],
101
+ "name": "Initialized",
102
+ "type": "event"
103
+ },
104
+ {
105
+ "anonymous": false,
106
+ "inputs": [
107
+ {
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "sender",
111
+ "type": "address"
112
+ }
113
+ ],
114
+ "name": "LogTestProductSender",
115
+ "type": "event"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "DEFAULT_RISK_NAME",
120
+ "outputs": [
121
+ {
122
+ "internalType": "string",
123
+ "name": "",
124
+ "type": "string"
125
+ }
126
+ ],
127
+ "stateMutability": "view",
128
+ "type": "function"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "REGISTERABLE_LOCATION_V1",
133
+ "outputs": [
134
+ {
135
+ "internalType": "bytes32",
136
+ "name": "",
137
+ "type": "bytes32"
138
+ }
139
+ ],
140
+ "stateMutability": "view",
141
+ "type": "function"
142
+ },
143
+ {
144
+ "inputs": [
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "sumInsuredAmount",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "lifetime",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "internalType": "NftId",
157
+ "name": "bundleNftId",
158
+ "type": "uint96"
159
+ },
160
+ {
161
+ "internalType": "ReferralId",
162
+ "name": "referralId",
163
+ "type": "bytes8"
164
+ }
165
+ ],
166
+ "name": "applyForPolicy",
167
+ "outputs": [
168
+ {
169
+ "internalType": "NftId",
170
+ "name": "nftId",
171
+ "type": "uint96"
172
+ }
173
+ ],
174
+ "stateMutability": "nonpayable",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "sumInsuredAmount",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "RiskId",
186
+ "name": "riskId",
187
+ "type": "bytes8"
188
+ },
189
+ {
190
+ "internalType": "uint256",
191
+ "name": "lifetime",
192
+ "type": "uint256"
193
+ },
194
+ {
195
+ "internalType": "bytes",
196
+ "name": "applicationData",
197
+ "type": "bytes"
198
+ }
199
+ ],
200
+ "name": "calculateNetPremium",
201
+ "outputs": [
202
+ {
203
+ "internalType": "uint256",
204
+ "name": "netPremiumAmount",
205
+ "type": "uint256"
206
+ }
207
+ ],
208
+ "stateMutability": "view",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "sumInsuredAmount",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "RiskId",
220
+ "name": "riskId",
221
+ "type": "bytes8"
222
+ },
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "lifetime",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "internalType": "bytes",
230
+ "name": "applicationData",
231
+ "type": "bytes"
232
+ },
233
+ {
234
+ "internalType": "ReferralId",
235
+ "name": "referralId",
236
+ "type": "bytes8"
237
+ },
238
+ {
239
+ "internalType": "NftId",
240
+ "name": "bundleNftId",
241
+ "type": "uint96"
242
+ }
243
+ ],
244
+ "name": "calculatePremium",
245
+ "outputs": [
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "premiumAmount",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [
257
+ {
258
+ "internalType": "NftId",
259
+ "name": "nftId",
260
+ "type": "uint96"
261
+ },
262
+ {
263
+ "internalType": "Timestamp",
264
+ "name": "activateAt",
265
+ "type": "uint40"
266
+ }
267
+ ],
268
+ "name": "collectPremium",
269
+ "outputs": [],
270
+ "stateMutability": "nonpayable",
271
+ "type": "function"
272
+ },
273
+ {
274
+ "inputs": [],
275
+ "name": "getDefaultRiskId",
276
+ "outputs": [
277
+ {
278
+ "internalType": "RiskId",
279
+ "name": "",
280
+ "type": "bytes8"
281
+ }
282
+ ],
283
+ "stateMutability": "pure",
284
+ "type": "function"
285
+ },
286
+ {
287
+ "inputs": [],
288
+ "name": "getDistributionNftId",
289
+ "outputs": [
290
+ {
291
+ "internalType": "NftId",
292
+ "name": "distributionNftId",
293
+ "type": "uint96"
294
+ }
295
+ ],
296
+ "stateMutability": "view",
297
+ "type": "function"
298
+ },
299
+ {
300
+ "inputs": [],
301
+ "name": "getInitialInfo",
302
+ "outputs": [
303
+ {
304
+ "components": [
305
+ {
306
+ "internalType": "NftId",
307
+ "name": "nftId",
308
+ "type": "uint96"
309
+ },
310
+ {
311
+ "internalType": "NftId",
312
+ "name": "parentNftId",
313
+ "type": "uint96"
314
+ },
315
+ {
316
+ "internalType": "ObjectType",
317
+ "name": "objectType",
318
+ "type": "uint8"
319
+ },
320
+ {
321
+ "internalType": "bool",
322
+ "name": "isInterceptor",
323
+ "type": "bool"
324
+ },
325
+ {
326
+ "internalType": "address",
327
+ "name": "objectAddress",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "internalType": "address",
332
+ "name": "initialOwner",
333
+ "type": "address"
334
+ },
335
+ {
336
+ "internalType": "bytes",
337
+ "name": "data",
338
+ "type": "bytes"
339
+ }
340
+ ],
341
+ "internalType": "struct IRegistry.ObjectInfo",
342
+ "name": "",
343
+ "type": "tuple"
344
+ },
345
+ {
346
+ "internalType": "bytes",
347
+ "name": "",
348
+ "type": "bytes"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [],
356
+ "name": "getInstance",
357
+ "outputs": [
358
+ {
359
+ "internalType": "contract IInstance",
360
+ "name": "instance",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [],
369
+ "name": "getNftId",
370
+ "outputs": [
371
+ {
372
+ "internalType": "NftId",
373
+ "name": "nftId",
374
+ "type": "uint96"
375
+ }
376
+ ],
377
+ "stateMutability": "view",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [],
382
+ "name": "getOwner",
383
+ "outputs": [
384
+ {
385
+ "internalType": "address",
386
+ "name": "",
387
+ "type": "address"
388
+ }
389
+ ],
390
+ "stateMutability": "view",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [],
395
+ "name": "getPoolNftId",
396
+ "outputs": [
397
+ {
398
+ "internalType": "NftId",
399
+ "name": "poolNftId",
400
+ "type": "uint96"
401
+ }
402
+ ],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [],
408
+ "name": "getProcessingFee",
409
+ "outputs": [
410
+ {
411
+ "components": [
412
+ {
413
+ "internalType": "UFixed",
414
+ "name": "fractionalFee",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "fixedFee",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "internalType": "struct Fee",
424
+ "name": "processingFee",
425
+ "type": "tuple"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [],
433
+ "name": "getProductFee",
434
+ "outputs": [
435
+ {
436
+ "components": [
437
+ {
438
+ "internalType": "UFixed",
439
+ "name": "fractionalFee",
440
+ "type": "uint256"
441
+ },
442
+ {
443
+ "internalType": "uint256",
444
+ "name": "fixedFee",
445
+ "type": "uint256"
446
+ }
447
+ ],
448
+ "internalType": "struct Fee",
449
+ "name": "productFee",
450
+ "type": "tuple"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [],
458
+ "name": "getRegistry",
459
+ "outputs": [
460
+ {
461
+ "internalType": "contract IRegistry",
462
+ "name": "registry",
463
+ "type": "address"
464
+ }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [],
471
+ "name": "getToken",
472
+ "outputs": [
473
+ {
474
+ "internalType": "contract IERC20Metadata",
475
+ "name": "token",
476
+ "type": "address"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [],
484
+ "name": "getWallet",
485
+ "outputs": [
486
+ {
487
+ "internalType": "address",
488
+ "name": "walletAddress",
489
+ "type": "address"
490
+ }
491
+ ],
492
+ "stateMutability": "view",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [],
497
+ "name": "lock",
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "components": [
506
+ {
507
+ "internalType": "UFixed",
508
+ "name": "fractionalFee",
509
+ "type": "uint256"
510
+ },
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "fixedFee",
514
+ "type": "uint256"
515
+ }
516
+ ],
517
+ "internalType": "struct Fee",
518
+ "name": "productFee",
519
+ "type": "tuple"
520
+ },
521
+ {
522
+ "components": [
523
+ {
524
+ "internalType": "UFixed",
525
+ "name": "fractionalFee",
526
+ "type": "uint256"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "fixedFee",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "internalType": "struct Fee",
535
+ "name": "processingFee",
536
+ "type": "tuple"
537
+ }
538
+ ],
539
+ "name": "setFees",
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "internalType": "bytes4",
548
+ "name": "interfaceId",
549
+ "type": "bytes4"
550
+ }
551
+ ],
552
+ "name": "supportsInterface",
553
+ "outputs": [
554
+ {
555
+ "internalType": "bool",
556
+ "name": "",
557
+ "type": "bool"
558
+ }
559
+ ],
560
+ "stateMutability": "view",
561
+ "type": "function"
562
+ },
563
+ {
564
+ "inputs": [
565
+ {
566
+ "internalType": "NftId",
567
+ "name": "nftId",
568
+ "type": "uint96"
569
+ },
570
+ {
571
+ "internalType": "bool",
572
+ "name": "requirePremiumPayment",
573
+ "type": "bool"
574
+ },
575
+ {
576
+ "internalType": "Timestamp",
577
+ "name": "activateAt",
578
+ "type": "uint40"
579
+ }
580
+ ],
581
+ "name": "underwrite",
582
+ "outputs": [],
583
+ "stateMutability": "nonpayable",
584
+ "type": "function"
585
+ },
586
+ {
587
+ "inputs": [],
588
+ "name": "unlock",
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable",
591
+ "type": "function"
592
+ }
593
+ ],
594
+ "bytecode": "0x60806040523480156200001157600080fd5b50604051620028c3380380620028c38339810160408190526200003491620008ae565b888888888888888888888888606e6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905589856040805160208101909152600081526200009f87878686868662000574565b6000620000c2600080516020620028a3833981519152546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000112573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200013c919081019062000a18565b6080810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630de7806f60e41b6004820152919250906301ffc9a790602401602060405180830381865afa158015620001a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ca919062000afe565b620001f65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200024a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000270919062000b23565b600180546001600160a01b03199081166001600160a01b0393841617825560038054309083161790556004805490911692891692909217909155631b1599eb60e21b60009081526020527f82dc1aafdf8e16d475718790c9464a2912866acb395e292abd1ea37be80f5b28805460ff191690911790555050505050505050600560009054906101000a90046001600160a01b03166001600160a01b0316634288121d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000342573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000368919062000b23565b600680546001600160a01b03199081166001600160a01b0393841617909155600780548216888416179055600880549091168683161790558351600955602080850151600a558351600b55830151600c55600080516020620028a38339815191525416600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa15801562000415573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200043b919062000b43565b600d80546001600160601b0319166001600160601b03929092169190911790556200047c600080516020620028a3833981519152546001600160a01b031690565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa158015620004c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004ec919062000b43565b600d80546001600160601b03929092166c0100000000000000000000000002600160601b600160c01b03199092169190911790556379fc0e7160e11b60009081526020527fae37458bb8945ae7571d1722238fea83f3c5619cf829a972c67f136a0bac29d2805460ff1916600117905550505050505050505050505050505050505062000cbc565b6001600160a01b038616620005cc5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f00000000006044820152606401620001ed565b6040516301ffc9a760e01b8152636882e63f60e11b600482015286906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156200061a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000640919062000afe565b6200068e5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620001ed565b6001600160a01b03818116600160a01b6001600160601b038916810291909117600080516020620028a38339815191529081557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30180546001600160a01b031961ffff60a01b1990911660ff8b1690940260ff60a81b191693909317600160a81b8915150217929092169286169290921790557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3026200074d848262000bf0565b5063a6d3826560e01b60009081526020527f164a5a3a3a16df858f794c5fc01b962add2c2151ae53ddb31581eabdf1156730805460ff191660011790555050505050505050565b6001600160a01b0381168114620007aa57600080fd5b50565b8051620007ba8162000794565b919050565b80516001600160601b0381168114620007ba57600080fd5b80518015158114620007ba57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620008235762000823620007e8565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620008545762000854620007e8565b604052919050565b6000604082840312156200086f57600080fd5b604080519081016001600160401b0381118282101715620008945762000894620007e8565b604052825181526020928301519281019290925250919050565b60008060008060008060008060006101608a8c031215620008ce57600080fd5b8951620008db8162000794565b9850620008eb60208b01620007bf565b975060408a0151620008fd8162000794565b96506200090d60608b01620007d7565b955060808a01516200091f8162000794565b60a08b0151909550620009328162000794565b9350620009438b60c08c016200085c565b9250620009558b6101008c016200085c565b91506101408a0151620009688162000794565b809150509295985092959850929598565b805160ff81168114620007ba57600080fd5b600082601f8301126200099d57600080fd5b81516001600160401b03811115620009b957620009b9620007e8565b6020620009cf601f8301601f1916820162000829565b8281528582848701011115620009e457600080fd5b60005b8381101562000a04578581018301518282018401528201620009e7565b506000928101909101919091529392505050565b60006020828403121562000a2b57600080fd5b81516001600160401b038082111562000a4357600080fd5b9083019060e0828603121562000a5857600080fd5b62000a62620007fe565b62000a6d83620007bf565b815262000a7d60208401620007bf565b602082015262000a906040840162000979565b604082015262000aa360608401620007d7565b606082015262000ab660808401620007ad565b608082015262000ac960a08401620007ad565b60a082015260c08301518281111562000ae157600080fd5b62000aef878286016200098b565b60c08301525095945050505050565b60006020828403121562000b1157600080fd5b62000b1c82620007d7565b9392505050565b60006020828403121562000b3657600080fd5b815162000b1c8162000794565b60006020828403121562000b5657600080fd5b62000b1c82620007bf565b600181811c9082168062000b7657607f821691505b60208210810362000b9757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000beb57600081815260208120601f850160051c8101602086101562000bc65750805b601f850160051c820191505b8181101562000be75782815560010162000bd2565b5050505b505050565b81516001600160401b0381111562000c0c5762000c0c620007e8565b62000c248162000c1d845462000b61565b8462000b9d565b602080601f83116001811462000c5c576000841562000c435750858301515b600019600386901b1c1916600185901b17855562000be7565b600085815260208120601f198616915b8281101562000c8d5788860151825594840194600190910190840162000c6c565b508582101562000cac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611bd78062000ccc6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630361f6116100c3578063b6b412ba1161007c578063b6b412ba146102ff578063bbfbbfba14610312578063daafed4014610325578063db6dcc951461032d578063de7b5d1414610335578063f83d08ba1461034657600080fd5b8063630361f614610279578063644c45e01461028e578063893d20e814610296578063955fd7821461029e578063a69df4b5146102bf578063abd732ef146102c757600080fd5b80631bdd6b76116101155780631bdd6b76146102055780631eff4b221461022557806321df0da71461023a5780633f28c2ec1461024b5780635ab1bd531461025e5780635e78426b1461026657600080fd5b806301ffc9a7146101525780630fec111c1461019457806312abb9b3146101aa57806313299604146101cb5780631380bf23146101f0575b600080fd5b61017f61016036600461101c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c61034e565b60405161018b92919061109d565b6101bd6101b836600461129e565b610578565b60405190815260200161018b565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6101f8610604565b60405161018b9190611327565b61020d610739565b6040516001600160601b03909116815260200161018b565b6101bd600080516020611b8283398151915281565b6004546001600160a01b03166101d8565b61020d61025936600461133e565b6107b6565b6101d861082c565b6101bd610274366004611388565b610848565b61028c610287366004611413565b61085e565b005b61020d6108a1565b6101d86108df565b6102a661095a565b6040516001600160c01b0319909116815260200161018b565b61028c610989565b6102f26040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b60405161018b919061145a565b61028c61030d36600461149d565b610a2a565b61028c6103203660046114d2565b610aca565b6101f8610ad8565b61020d610c0d565b6005546001600160a01b03166101d8565b61028c610c48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610392610cb0565b91509150600080600760009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104149190810190611592565b9150915060008060008380602001905181019061043191906116bb565b6040805161012081018252600d546001600160601b038082168352600160601b90910416602080830191909152600480546001600160a01b031683850152835180850185526009548152600a5481840152606084015283518085018552600b548152600c5492810192909252608083019190915260a0820186905260c0820185905260e082018490528251632bd182d360e01b81528351969c50949a509298508e975095506101008601945073__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39380840193908290030181865af4158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b9190611760565b905260035460405161055a92916001600160a01b03169060200161177c565b60405160208183030381529060405298509850505050505050509091565b600654604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105b39089908b908a908a9089908b90600401611872565b60a060405180830381865afa1580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f491906118c9565b50929a9950505050505050505050565b604080518082019091526000808252602082015260006106226108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106989190611909565b1561071d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190611926565b6060015191505090565b5050604080518082019091526009548152600a54602082015290565b600061074361082c565b600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b191906119e5565b905090565b6000806107c161095a565b604080516020810190915260008152600d5491925090600160c01b900460ff16610812576107fe8260405180602001604052806000815250610e17565b600d805460ff60c01b1916600160c01b1790555b61082133838989858a8a610e49565b979650505050505050565b600080516020611b82833981519152546001600160a01b031690565b6000610855600a86611a02565b95945050505050565b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161089c838383610ed5565b505050565b600080516020611b8283398151915254604051636939560f60e11b81523060048201526000916001600160a01b03169063d272ac1e90602401610770565b6000600080516020611b8283398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610936573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190611a24565b60006107b16040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610f55565b6109916108df565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016109c190611a41565b60405180910390fd5b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b50505050565b610a326108df565b6001600160a01b0316336001600160a01b031614610a625760405162461bcd60e51b81526004016109c190611a41565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a949085908590600401611a78565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050505050565b610ad48282610fd6565b5050565b60408051808201909152600080825260208201526000610af66108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c9190611909565b15610bf15760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611926565b6080015191505090565b505060408051808201909152600b548152600c54602082015290565b6000610c1761082c565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401610770565b610c506108df565b6001600160a01b0316336001600160a01b031614610c805760405162461bcd60e51b81526004016109c190611a41565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109f6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260606000600080516020611b8283398151915290506040518060e00160405280610d13600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c090920191610d7d90611a9e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da990611a9e565b8015610df65780601f10610dcb57610100808354040283529160200191610df6565b820191906000526020600020905b815481529060010190602001808311610dd957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6006546040516304af15b960e11b81526001600160a01b039091169063095e2b7290610a949085908590600401611ad8565b60065460405163c2c7498760e01b81526000916001600160a01b03169063c2c7498790610e86908b908b908b908b908b908b908b90600401611afe565b6020604051808303816000875af1158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906119e5565b98975050505050505050565b600654604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610f3857600080fd5b505af1158015610f4c573d6000803e3d6000fd5b50505050505050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610f8f90859060040161145a565b602060405180830381865af4158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190611b64565b92915050565b600654604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba90604401610a94565b60006020828403121561102e57600080fd5b81356001600160e01b03198116811461104657600080fd5b9392505050565b60005b83811015611068578181015183820152602001611050565b50506000910152565b6000815180845261108981602086016020860161104d565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110e160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611127610120840182611071565b905082810360208401526108558185611071565b6001600160c01b03198116811461115157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561118d5761118d611154565b60405290565b60405160e0810167ffffffffffffffff8111828210171561118d5761118d611154565b604051610120810167ffffffffffffffff8111828210171561118d5761118d611154565b604051601f8201601f1916810167ffffffffffffffff8111828210171561120357611203611154565b604052919050565b600067ffffffffffffffff82111561122557611225611154565b50601f01601f191660200190565b600082601f83011261124457600080fd5b81356112576112528261120b565b6111da565b81815284602083860101111561126c57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b038116811461115157600080fd5b60008060008060008060c087890312156112b757600080fd5b8635955060208701356112c98161113b565b945060408701359350606087013567ffffffffffffffff8111156112ec57600080fd5b6112f889828a01611233565b93505060808701356113098161113b565b915060a087013561131981611289565b809150509295509295509295565b815181526020808301519082015260408101610fd0565b6000806000806080858703121561135457600080fd5b8435935060208501359250604085013561136d81611289565b9150606085013561137d8161113b565b939692955090935050565b6000806000806080858703121561139e57600080fd5b8435935060208501356113b08161113b565b925060408501359150606085013567ffffffffffffffff8111156113d357600080fd5b6113df87828801611233565b91505092959194509250565b801515811461115157600080fd5b803564ffffffffff8116811461140e57600080fd5b919050565b60008060006060848603121561142857600080fd5b833561143381611289565b92506020840135611443816113eb565b9150611451604085016113f9565b90509250925092565b6020815260006110466020830184611071565b60006040828403121561147f57600080fd5b61148761116a565b9050813581526020820135602082015292915050565b600080608083850312156114b057600080fd5b6114ba848461146d565b91506114c9846040850161146d565b90509250929050565b600080604083850312156114e557600080fd5b82356114f081611289565b91506114c9602084016113f9565b805161140e81611289565b805160ff8116811461140e57600080fd5b805161140e816113eb565b6001600160a01b038116811461115157600080fd5b805161140e81611525565b600082601f83011261155657600080fd5b81516115646112528261120b565b81815284602083860101111561157957600080fd5b61158a82602083016020870161104d565b949350505050565b600080604083850312156115a557600080fd5b825167ffffffffffffffff808211156115bd57600080fd5b9084019060e082870312156115d157600080fd5b6115d9611193565b6115e2836114fe565b81526115f0602084016114fe565b602082015261160160408401611509565b60408201526116126060840161151a565b60608201526116236080840161153a565b608082015261163460a0840161153a565b60a082015260c08301518281111561164b57600080fd5b61165788828601611545565b60c083015250602086015190945091508082111561167457600080fd5b5061168185828601611545565b9150509250929050565b60006040828403121561169d57600080fd5b6116a561116a565b9050815181526020820151602082015292915050565b6000806000806000808688036101408112156116d657600080fd5b60408112156116e457600080fd5b506116ed61116a565b87516116f8816113eb565b815260208881015190820152604088015190965061171581611525565b606088015190955061172681611525565b9350611735886080890161168b565b92506117448860c0890161168b565b915061175488610100890161168b565b90509295509295509295565b60006040828403121561177257600080fd5b611046838361168b565b82516001600160601b031681526020808401516102008301916117a9908401826001600160601b03169052565b5060408401516117c460408401826001600160a01b03169052565b5060608401516117e1606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152611046565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526118a560c0840187611071565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a086880312156118e157600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561191b57600080fd5b8151611046816113eb565b60006101e0828403121561193957600080fd5b6119416111b6565b61194a836114fe565b8152611958602084016114fe565b60208201526119696040840161153a565b604082015261197b846060850161168b565b606082015261198d8460a0850161168b565b608082015261199f8460e0850161168b565b60a08201526119b284610120850161168b565b60c08201526119c584610160850161168b565b60e08201526119d8846101a0850161168b565b6101008201529392505050565b6000602082840312156119f757600080fd5b815161104681611289565b600082611a1f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611a3657600080fd5b815161104681611525565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101611046565b600181811c90821680611ab257607f821691505b602082108103611ad257634e487b7160e01b600052602260045260246000fd5b50919050565b67ffffffffffffffff60c01b8316815260406020820152600061158a6040830184611071565b60018060a01b0388168152600067ffffffffffffffff60c01b808916602084015287604084015286606084015260e06080840152611b3f60e0840187611071565b6001600160601b039590951660a08401529290921660c0909101525095945050505050565b600060208284031215611b7657600080fd5b81516110468161113b56fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300a2646970667358221220158dd00892c70a25eec16e2d10910238dbdbb0f5bc2df4c67a8c8dc59afdde6064736f6c634300081400336548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300",
595
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630361f6116100c3578063b6b412ba1161007c578063b6b412ba146102ff578063bbfbbfba14610312578063daafed4014610325578063db6dcc951461032d578063de7b5d1414610335578063f83d08ba1461034657600080fd5b8063630361f614610279578063644c45e01461028e578063893d20e814610296578063955fd7821461029e578063a69df4b5146102bf578063abd732ef146102c757600080fd5b80631bdd6b76116101155780631bdd6b76146102055780631eff4b221461022557806321df0da71461023a5780633f28c2ec1461024b5780635ab1bd531461025e5780635e78426b1461026657600080fd5b806301ffc9a7146101525780630fec111c1461019457806312abb9b3146101aa57806313299604146101cb5780631380bf23146101f0575b600080fd5b61017f61016036600461101c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c61034e565b60405161018b92919061109d565b6101bd6101b836600461129e565b610578565b60405190815260200161018b565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6101f8610604565b60405161018b9190611327565b61020d610739565b6040516001600160601b03909116815260200161018b565b6101bd600080516020611b8283398151915281565b6004546001600160a01b03166101d8565b61020d61025936600461133e565b6107b6565b6101d861082c565b6101bd610274366004611388565b610848565b61028c610287366004611413565b61085e565b005b61020d6108a1565b6101d86108df565b6102a661095a565b6040516001600160c01b0319909116815260200161018b565b61028c610989565b6102f26040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b60405161018b919061145a565b61028c61030d36600461149d565b610a2a565b61028c6103203660046114d2565b610aca565b6101f8610ad8565b61020d610c0d565b6005546001600160a01b03166101d8565b61028c610c48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610392610cb0565b91509150600080600760009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104149190810190611592565b9150915060008060008380602001905181019061043191906116bb565b6040805161012081018252600d546001600160601b038082168352600160601b90910416602080830191909152600480546001600160a01b031683850152835180850185526009548152600a5481840152606084015283518085018552600b548152600c5492810192909252608083019190915260a0820186905260c0820185905260e082018490528251632bd182d360e01b81528351969c50949a509298508e975095506101008601945073__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39380840193908290030181865af4158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b9190611760565b905260035460405161055a92916001600160a01b03169060200161177c565b60405160208183030381529060405298509850505050505050509091565b600654604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105b39089908b908a908a9089908b90600401611872565b60a060405180830381865afa1580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f491906118c9565b50929a9950505050505050505050565b604080518082019091526000808252602082015260006106226108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106989190611909565b1561071d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190611926565b6060015191505090565b5050604080518082019091526009548152600a54602082015290565b600061074361082c565b600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b191906119e5565b905090565b6000806107c161095a565b604080516020810190915260008152600d5491925090600160c01b900460ff16610812576107fe8260405180602001604052806000815250610e17565b600d805460ff60c01b1916600160c01b1790555b61082133838989858a8a610e49565b979650505050505050565b600080516020611b82833981519152546001600160a01b031690565b6000610855600a86611a02565b95945050505050565b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161089c838383610ed5565b505050565b600080516020611b8283398151915254604051636939560f60e11b81523060048201526000916001600160a01b03169063d272ac1e90602401610770565b6000600080516020611b8283398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610936573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190611a24565b60006107b16040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610f55565b6109916108df565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016109c190611a41565b60405180910390fd5b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b50505050565b610a326108df565b6001600160a01b0316336001600160a01b031614610a625760405162461bcd60e51b81526004016109c190611a41565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a949085908590600401611a78565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050505050565b610ad48282610fd6565b5050565b60408051808201909152600080825260208201526000610af66108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c9190611909565b15610bf15760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611926565b6080015191505090565b505060408051808201909152600b548152600c54602082015290565b6000610c1761082c565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401610770565b610c506108df565b6001600160a01b0316336001600160a01b031614610c805760405162461bcd60e51b81526004016109c190611a41565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109f6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260606000600080516020611b8283398151915290506040518060e00160405280610d13600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c090920191610d7d90611a9e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da990611a9e565b8015610df65780601f10610dcb57610100808354040283529160200191610df6565b820191906000526020600020905b815481529060010190602001808311610dd957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6006546040516304af15b960e11b81526001600160a01b039091169063095e2b7290610a949085908590600401611ad8565b60065460405163c2c7498760e01b81526000916001600160a01b03169063c2c7498790610e86908b908b908b908b908b908b908b90600401611afe565b6020604051808303816000875af1158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906119e5565b98975050505050505050565b600654604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610f3857600080fd5b505af1158015610f4c573d6000803e3d6000fd5b50505050505050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610f8f90859060040161145a565b602060405180830381865af4158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190611b64565b92915050565b600654604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba90604401610a94565b60006020828403121561102e57600080fd5b81356001600160e01b03198116811461104657600080fd5b9392505050565b60005b83811015611068578181015183820152602001611050565b50506000910152565b6000815180845261108981602086016020860161104d565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110e160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611127610120840182611071565b905082810360208401526108558185611071565b6001600160c01b03198116811461115157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561118d5761118d611154565b60405290565b60405160e0810167ffffffffffffffff8111828210171561118d5761118d611154565b604051610120810167ffffffffffffffff8111828210171561118d5761118d611154565b604051601f8201601f1916810167ffffffffffffffff8111828210171561120357611203611154565b604052919050565b600067ffffffffffffffff82111561122557611225611154565b50601f01601f191660200190565b600082601f83011261124457600080fd5b81356112576112528261120b565b6111da565b81815284602083860101111561126c57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b038116811461115157600080fd5b60008060008060008060c087890312156112b757600080fd5b8635955060208701356112c98161113b565b945060408701359350606087013567ffffffffffffffff8111156112ec57600080fd5b6112f889828a01611233565b93505060808701356113098161113b565b915060a087013561131981611289565b809150509295509295509295565b815181526020808301519082015260408101610fd0565b6000806000806080858703121561135457600080fd5b8435935060208501359250604085013561136d81611289565b9150606085013561137d8161113b565b939692955090935050565b6000806000806080858703121561139e57600080fd5b8435935060208501356113b08161113b565b925060408501359150606085013567ffffffffffffffff8111156113d357600080fd5b6113df87828801611233565b91505092959194509250565b801515811461115157600080fd5b803564ffffffffff8116811461140e57600080fd5b919050565b60008060006060848603121561142857600080fd5b833561143381611289565b92506020840135611443816113eb565b9150611451604085016113f9565b90509250925092565b6020815260006110466020830184611071565b60006040828403121561147f57600080fd5b61148761116a565b9050813581526020820135602082015292915050565b600080608083850312156114b057600080fd5b6114ba848461146d565b91506114c9846040850161146d565b90509250929050565b600080604083850312156114e557600080fd5b82356114f081611289565b91506114c9602084016113f9565b805161140e81611289565b805160ff8116811461140e57600080fd5b805161140e816113eb565b6001600160a01b038116811461115157600080fd5b805161140e81611525565b600082601f83011261155657600080fd5b81516115646112528261120b565b81815284602083860101111561157957600080fd5b61158a82602083016020870161104d565b949350505050565b600080604083850312156115a557600080fd5b825167ffffffffffffffff808211156115bd57600080fd5b9084019060e082870312156115d157600080fd5b6115d9611193565b6115e2836114fe565b81526115f0602084016114fe565b602082015261160160408401611509565b60408201526116126060840161151a565b60608201526116236080840161153a565b608082015261163460a0840161153a565b60a082015260c08301518281111561164b57600080fd5b61165788828601611545565b60c083015250602086015190945091508082111561167457600080fd5b5061168185828601611545565b9150509250929050565b60006040828403121561169d57600080fd5b6116a561116a565b9050815181526020820151602082015292915050565b6000806000806000808688036101408112156116d657600080fd5b60408112156116e457600080fd5b506116ed61116a565b87516116f8816113eb565b815260208881015190820152604088015190965061171581611525565b606088015190955061172681611525565b9350611735886080890161168b565b92506117448860c0890161168b565b915061175488610100890161168b565b90509295509295509295565b60006040828403121561177257600080fd5b611046838361168b565b82516001600160601b031681526020808401516102008301916117a9908401826001600160601b03169052565b5060408401516117c460408401826001600160a01b03169052565b5060608401516117e1606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152611046565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526118a560c0840187611071565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a086880312156118e157600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561191b57600080fd5b8151611046816113eb565b60006101e0828403121561193957600080fd5b6119416111b6565b61194a836114fe565b8152611958602084016114fe565b60208201526119696040840161153a565b604082015261197b846060850161168b565b606082015261198d8460a0850161168b565b608082015261199f8460e0850161168b565b60a08201526119b284610120850161168b565b60c08201526119c584610160850161168b565b60e08201526119d8846101a0850161168b565b6101008201529392505050565b6000602082840312156119f757600080fd5b815161104681611289565b600082611a1f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611a3657600080fd5b815161104681611525565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101611046565b600181811c90821680611ab257607f821691505b602082108103611ad257634e487b7160e01b600052602260045260246000fd5b50919050565b67ffffffffffffffff60c01b8316815260406020820152600061158a6040830184611071565b60018060a01b0388168152600067ffffffffffffffff60c01b808916602084015287604084015286606084015260e06080840152611b3f60e0840187611071565b6001600160601b039590951660a08401529290921660c0909101525095945050505050565b600060208284031215611b7657600080fd5b81516110468161113b56fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300a2646970667358221220158dd00892c70a25eec16e2d10910238dbdbb0f5bc2df4c67a8c8dc59afdde6064736f6c63430008140033",
596
+ "linkReferences": {
597
+ "contracts/types/Fee.sol": {
598
+ "FeeLib": [
599
+ {
600
+ "length": 20,
601
+ "start": 4523
602
+ }
603
+ ]
604
+ },
605
+ "contracts/types/RiskId.sol": {
606
+ "RiskIdLib": [
607
+ {
608
+ "length": 20,
609
+ "start": 7219
610
+ }
611
+ ]
612
+ }
613
+ },
614
+ "deployedLinkReferences": {
615
+ "contracts/types/Fee.sol": {
616
+ "FeeLib": [
617
+ {
618
+ "length": 20,
619
+ "start": 1247
620
+ }
621
+ ]
622
+ },
623
+ "contracts/types/RiskId.sol": {
624
+ "RiskIdLib": [
625
+ {
626
+ "length": 20,
627
+ "start": 3943
628
+ }
629
+ ]
630
+ }
631
+ }
632
+ }