@etherisc/gif-next 0.0.2-eb7397c → 0.0.2-eb98db7-932

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