@etherisc/gif-next 0.0.2-fe88ad7-208 → 0.0.2-ff282a4-523

Sign up to get free protection for your applications and to get access to all the features.
Files changed (511) hide show
  1. package/README.md +8 -13
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1376 -0
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1556 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +1000 -0
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +840 -0
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +73 -83
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +275 -1359
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +264 -218
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +441 -2539
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  21. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +479 -178
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +432 -280
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +399 -383
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +295 -99
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2847 -0
  32. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  33. package/artifacts/contracts/instance/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +6 -1
  34. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  36. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +93 -14
  39. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +38 -13
  41. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
  43. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  44. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +58 -75
  45. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  47. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  48. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  53. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  54. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1288 -0
  55. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  56. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +696 -0
  57. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  58. package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json +316 -250
  59. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  60. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +1095 -0
  61. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  62. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1077 -0
  63. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  64. package/artifacts/contracts/pool/Pool.sol/Pool.json +1407 -0
  65. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  66. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1622 -0
  67. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  68. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +708 -0
  69. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  70. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +918 -0
  71. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  72. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
  73. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  74. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1386 -0
  75. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  76. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
  77. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  78. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → product/IApplicationService.sol/IApplicationService.json} +218 -191
  79. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  80. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +753 -0
  81. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  82. package/artifacts/contracts/{instance/service → product}/IPolicyService.sol/IPolicyService.json +264 -277
  83. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  84. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IPricingService.sol/IPricingService.json} +241 -230
  85. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  86. package/artifacts/contracts/{components/Product.sol/Product.json → product/IProductComponent.sol/IProductComponent.json} +254 -168
  87. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  88. package/artifacts/contracts/{instance/service → product}/IProductService.sol/IProductService.json +72 -166
  89. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1281 -0
  91. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  92. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
  93. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  94. package/artifacts/contracts/product/PricingService.sol/PricingService.json +1004 -0
  95. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  96. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  97. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  98. package/artifacts/contracts/product/Product.sol/Product.json +1198 -0
  99. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  100. package/artifacts/contracts/product/ProductService.sol/ProductService.json +864 -0
  101. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  103. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  105. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +165 -5
  107. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +158 -215
  109. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  111. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/Registry.sol/Registry.json +196 -31
  113. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +20 -20
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +270 -254
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +291 -85
  119. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  120. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +151 -77
  121. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +142 -54
  123. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  124. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  125. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  126. package/artifacts/contracts/{components/Pool.sol/Pool.json → shared/Component.sol/Component.json} +358 -327
  127. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  128. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/ComponentService.sol/ComponentService.json} +263 -164
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  131. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  132. package/artifacts/contracts/{components/Distribution.sol/Distribution.json → shared/IComponent.sol/IComponent.json} +173 -212
  133. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  134. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
  135. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  136. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
  139. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  140. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  141. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IService.sol/IService.json +71 -165
  143. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  145. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +109 -29
  147. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  148. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +285 -65
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +118 -53
  153. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  154. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  156. package/artifacts/contracts/shared/Service.sol/Service.json +173 -153
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  163. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  164. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → staking/IStaking.sol/IStaking.json} +62 -150
  165. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  166. package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → staking/IStakingService.sol/IStakingService.json} +232 -169
  167. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  168. package/artifacts/contracts/staking/Staking.sol/Staking.json +497 -0
  169. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  170. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +623 -0
  171. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  172. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +797 -0
  173. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  174. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +632 -0
  175. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  176. package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
  177. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  178. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  179. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  180. package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +3 -3
  181. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  182. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  183. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  184. package/artifacts/contracts/{types → type}/DistributorType.sol/DistributorTypeLib.json +5 -5
  185. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  186. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  187. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  188. package/artifacts/contracts/{types → type}/Key32.sol/Key32Lib.json +3 -3
  189. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  190. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +166 -0
  191. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  192. package/artifacts/contracts/{types → type}/NftIdSet.sol/LibNftIdSet.json +3 -3
  193. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  194. package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
  195. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  196. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  197. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  198. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  199. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  200. package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
  201. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/{types → type}/RoleId.sol/RoleIdLib.json +5 -5
  203. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  204. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +124 -0
  205. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  206. package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
  207. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  208. package/artifacts/contracts/{types → type}/Timestamp.sol/TimestampLib.json +39 -8
  209. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  210. package/artifacts/contracts/{types → type}/UFixed.sol/MathLib.json +3 -3
  211. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  212. package/artifacts/contracts/{types → type}/UFixed.sol/UFixedLib.json +3 -3
  213. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  214. package/artifacts/contracts/{types → type}/Version.sol/VersionLib.json +3 -3
  215. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  216. package/artifacts/contracts/{types → type}/Version.sol/VersionPartLib.json +3 -3
  217. package/contracts/distribution/Distribution.sol +285 -0
  218. package/contracts/distribution/DistributionService.sol +349 -0
  219. package/contracts/{instance/service → distribution}/DistributionServiceManager.sol +6 -6
  220. package/contracts/distribution/IDistributionComponent.sol +71 -0
  221. package/contracts/distribution/IDistributionService.sol +87 -0
  222. package/contracts/instance/BundleManager.sol +22 -25
  223. package/contracts/instance/IInstance.sol +56 -41
  224. package/contracts/instance/IInstanceService.sol +49 -16
  225. package/contracts/instance/Instance.sol +149 -196
  226. package/contracts/instance/InstanceAccessManager.sol +406 -166
  227. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  228. package/contracts/instance/InstanceReader.sol +102 -49
  229. package/contracts/instance/InstanceService.sol +206 -248
  230. package/contracts/instance/InstanceServiceManager.sol +2 -2
  231. package/contracts/instance/InstanceStore.sol +211 -0
  232. package/contracts/instance/{Cloneable.sol → base/Cloneable.sol} +8 -3
  233. package/contracts/instance/base/IKeyValueStore.sol +14 -10
  234. package/contracts/instance/base/ILifecycle.sol +3 -3
  235. package/contracts/instance/base/KeyValueStore.sol +44 -47
  236. package/contracts/instance/base/Lifecycle.sol +28 -7
  237. package/contracts/instance/{ObjectManager.sol → base/ObjectManager.sol} +16 -35
  238. package/contracts/instance/module/IAccess.sol +24 -18
  239. package/contracts/instance/module/IBundle.sol +11 -8
  240. package/contracts/instance/module/IComponents.sol +41 -0
  241. package/contracts/instance/module/IDistribution.sol +7 -4
  242. package/contracts/instance/module/IPolicy.sol +50 -17
  243. package/contracts/instance/module/IRisk.sol +1 -1
  244. package/contracts/instance/module/ISetup.sol +9 -22
  245. package/contracts/instance/module/ITreasury.sol +2 -2
  246. package/contracts/pool/BundleService.sol +382 -0
  247. package/contracts/{instance/service → pool}/BundleServiceManager.sol +6 -6
  248. package/contracts/pool/IBundleService.sol +118 -0
  249. package/contracts/pool/IPoolComponent.sol +114 -0
  250. package/contracts/pool/IPoolService.sol +114 -0
  251. package/contracts/pool/Pool.sol +302 -0
  252. package/contracts/pool/PoolService.sol +403 -0
  253. package/contracts/{instance/service → pool}/PoolServiceManager.sol +6 -6
  254. package/contracts/product/ApplicationService.sol +186 -0
  255. package/contracts/product/ApplicationServiceManager.sol +35 -0
  256. package/contracts/product/ClaimService.sol +442 -0
  257. package/contracts/product/ClaimServiceManager.sol +35 -0
  258. package/contracts/product/IApplicationService.sol +62 -0
  259. package/contracts/product/IClaimService.sol +93 -0
  260. package/contracts/product/IPolicyService.sol +80 -0
  261. package/contracts/product/IPricingService.sol +37 -0
  262. package/contracts/product/IProductComponent.sol +41 -0
  263. package/contracts/{instance/service → product}/IProductService.sol +10 -10
  264. package/contracts/product/PolicyService.sol +376 -0
  265. package/contracts/{instance/service → product}/PolicyServiceManager.sol +7 -7
  266. package/contracts/product/PricingService.sol +275 -0
  267. package/contracts/product/PricingServiceManager.sol +51 -0
  268. package/contracts/product/Product.sol +379 -0
  269. package/contracts/product/ProductService.sol +210 -0
  270. package/contracts/{instance/service → product}/ProductServiceManager.sol +7 -7
  271. package/contracts/registry/ChainNft.sol +15 -1
  272. package/contracts/registry/IRegistry.sol +33 -14
  273. package/contracts/registry/IRegistryService.sol +28 -17
  274. package/contracts/registry/ITransferInterceptor.sol +1 -0
  275. package/contracts/registry/Registry.sol +184 -75
  276. package/contracts/registry/RegistryAccessManager.sol +32 -35
  277. package/contracts/registry/RegistryService.sol +126 -145
  278. package/contracts/registry/RegistryServiceManager.sol +13 -15
  279. package/contracts/registry/ReleaseManager.sol +157 -145
  280. package/contracts/registry/TokenRegistry.sol +21 -15
  281. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  282. package/contracts/shared/Component.sol +271 -0
  283. package/contracts/shared/ComponentService.sol +150 -0
  284. package/contracts/shared/ERC165.sol +14 -12
  285. package/contracts/shared/IComponent.sol +90 -0
  286. package/contracts/shared/INftOwnable.sol +12 -11
  287. package/contracts/shared/IPolicyHolder.sol +40 -0
  288. package/contracts/shared/IRegisterable.sol +4 -6
  289. package/contracts/shared/IRegistryLinked.sol +11 -0
  290. package/contracts/shared/IService.sol +6 -4
  291. package/contracts/shared/IVersionable.sol +5 -48
  292. package/contracts/shared/NftOwnable.sol +64 -80
  293. package/contracts/shared/PolicyHolder.sol +94 -0
  294. package/contracts/shared/ProxyManager.sol +100 -25
  295. package/contracts/shared/Registerable.sol +26 -41
  296. package/contracts/shared/RegistryLinked.sol +43 -0
  297. package/contracts/shared/Service.sol +37 -23
  298. package/contracts/shared/TokenHandler.sol +14 -6
  299. package/contracts/shared/Versionable.sol +4 -92
  300. package/contracts/staking/IStaking.sol +15 -0
  301. package/contracts/staking/IStakingService.sol +105 -0
  302. package/contracts/staking/Staking.sol +64 -0
  303. package/contracts/staking/StakingManager.sol +44 -0
  304. package/contracts/staking/StakingService.sol +204 -0
  305. package/contracts/staking/StakingServiceManager.sol +41 -0
  306. package/contracts/type/Amount.sol +109 -0
  307. package/contracts/{types → type}/Blocknumber.sol +1 -0
  308. package/contracts/type/ClaimId.sol +75 -0
  309. package/contracts/{types → type}/DistributorType.sol +2 -2
  310. package/contracts/{types → type}/Fee.sol +17 -8
  311. package/contracts/{types → type}/NftId.sol +8 -0
  312. package/contracts/{types → type}/NftIdSet.sol +1 -1
  313. package/contracts/{types → type}/ObjectType.sol +21 -7
  314. package/contracts/type/PayoutId.sol +82 -0
  315. package/contracts/{types → type}/Referral.sol +4 -0
  316. package/contracts/{types → type}/RoleId.sol +56 -14
  317. package/contracts/type/Seconds.sol +54 -0
  318. package/contracts/{types → type}/StateId.sol +7 -2
  319. package/contracts/{types → type}/Timestamp.sol +18 -13
  320. package/contracts/{types → type}/UFixed.sol +1 -0
  321. package/contracts/{types → type}/Version.sol +1 -0
  322. package/package.json +3 -3
  323. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  324. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  325. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  326. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  327. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -152
  328. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  329. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -275
  330. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  331. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -157
  332. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  333. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  336. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  338. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  340. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  342. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  344. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  346. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  348. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  350. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  352. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  354. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  355. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  357. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  359. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  360. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  361. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  363. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  364. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  365. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  366. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  367. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  368. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  369. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  370. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  371. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  372. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  373. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  374. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  375. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
  376. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  377. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
  378. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  379. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
  380. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  381. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +0 -285
  382. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  383. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  384. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  385. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
  386. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -945
  387. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
  388. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -432
  389. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  390. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -814
  391. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  392. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -693
  393. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  394. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -420
  395. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
  396. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  397. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  398. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -446
  399. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
  400. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  401. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  402. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
  403. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -993
  404. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
  405. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -464
  406. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  407. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -727
  408. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  409. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -420
  410. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  411. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -777
  412. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  413. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -420
  414. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  415. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  416. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  417. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
  418. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  419. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  420. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  421. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -305
  422. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  423. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  424. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  425. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -600
  426. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  427. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  428. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  429. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  430. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  431. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -286
  432. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  433. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  434. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  435. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  436. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  437. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  438. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  439. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  440. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  441. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  442. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  443. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  444. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  445. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  446. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  447. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  448. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  449. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
  450. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  451. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  452. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  453. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  454. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  455. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  456. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  457. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  458. package/contracts/components/BaseComponent.sol +0 -159
  459. package/contracts/components/Distribution.sol +0 -163
  460. package/contracts/components/IBaseComponent.sol +0 -34
  461. package/contracts/components/IDistributionComponent.sol +0 -44
  462. package/contracts/components/IPoolComponent.sol +0 -66
  463. package/contracts/components/IProductComponent.sol +0 -35
  464. package/contracts/components/Pool.sol +0 -271
  465. package/contracts/components/Product.sol +0 -292
  466. package/contracts/experiment/cloning/Cloner.sol +0 -47
  467. package/contracts/experiment/errors/Require.sol +0 -38
  468. package/contracts/experiment/errors/Revert.sol +0 -44
  469. package/contracts/experiment/inheritance/A.sol +0 -53
  470. package/contracts/experiment/inheritance/B.sol +0 -28
  471. package/contracts/experiment/inheritance/C.sol +0 -34
  472. package/contracts/experiment/inheritance/IA.sol +0 -13
  473. package/contracts/experiment/inheritance/IB.sol +0 -10
  474. package/contracts/experiment/inheritance/IC.sol +0 -12
  475. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  476. package/contracts/experiment/statemachine/ISM.sol +0 -25
  477. package/contracts/experiment/statemachine/SM.sol +0 -57
  478. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  479. package/contracts/experiment/types/TypeA.sol +0 -47
  480. package/contracts/experiment/types/TypeB.sol +0 -29
  481. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
  482. package/contracts/instance/IInstanceBase.sol +0 -26
  483. package/contracts/instance/InstanceBase.sol +0 -41
  484. package/contracts/instance/base/ComponentServiceBase.sol +0 -82
  485. package/contracts/instance/base/IInstanceBase.sol +0 -23
  486. package/contracts/instance/service/BundleService.sol +0 -260
  487. package/contracts/instance/service/ComponentOwnerService.sol +0 -315
  488. package/contracts/instance/service/DistributionService.sol +0 -113
  489. package/contracts/instance/service/IBundleService.sol +0 -45
  490. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  491. package/contracts/instance/service/IDistributionService.sol +0 -12
  492. package/contracts/instance/service/IPolicyService.sol +0 -87
  493. package/contracts/instance/service/IPoolService.sol +0 -20
  494. package/contracts/instance/service/PolicyService.sol +0 -503
  495. package/contracts/instance/service/PoolService.sol +0 -124
  496. package/contracts/instance/service/ProductService.sol +0 -170
  497. package/contracts/shared/ContractDeployerLib.sol +0 -72
  498. package/contracts/shared/RegisterableUpgradable.sol +0 -16
  499. package/contracts/test/TestFee.sol +0 -25
  500. package/contracts/test/TestRegisterable.sol +0 -18
  501. package/contracts/test/TestRoleId.sol +0 -14
  502. package/contracts/test/TestService.sol +0 -25
  503. package/contracts/test/TestToken.sol +0 -26
  504. package/contracts/test/TestVersion.sol +0 -44
  505. package/contracts/test/TestVersionable.sol +0 -17
  506. package/contracts/test/Usdc.sol +0 -26
  507. package/contracts/types/ChainId.sol +0 -38
  508. package/contracts/types/NumberId.sol +0 -52
  509. /package/contracts/{types → type}/AddressSet.sol +0 -0
  510. /package/contracts/{types → type}/Key32.sol +0 -0
  511. /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -45,118 +45,142 @@
45
45
  "inputs": [
46
46
  {
47
47
  "internalType": "address",
48
- "name": "registry",
48
+ "name": "instanceBundleManager",
49
49
  "type": "address"
50
- },
51
- {
52
- "internalType": "NftId",
53
- "name": "nftId",
54
- "type": "uint96"
55
50
  }
56
51
  ],
57
- "name": "ErrorAlreadyLinked",
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
58
53
  "type": "error"
59
54
  },
60
55
  {
61
56
  "inputs": [
62
57
  {
63
58
  "internalType": "address",
64
- "name": "contractAddress",
59
+ "name": "instanceAuthority",
65
60
  "type": "address"
66
61
  }
67
62
  ],
68
- "name": "ErrorContractNotRegistered",
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
69
64
  "type": "error"
70
65
  },
71
66
  {
72
67
  "inputs": [
73
68
  {
74
- "internalType": "ObjectType",
75
- "name": "objectType",
76
- "type": "uint8"
77
- },
78
- {
79
- "internalType": "StateId",
80
- "name": "fromStateId",
81
- "type": "uint8"
82
- },
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
83
79
  {
84
- "internalType": "StateId",
85
- "name": "toStateId",
86
- "type": "uint8"
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
87
83
  }
88
84
  ],
89
- "name": "ErrorInvalidStateTransition",
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
90
86
  "type": "error"
91
87
  },
92
88
  {
93
89
  "inputs": [
94
90
  {
95
- "internalType": "NftId",
96
- "name": "nftId",
97
- "type": "uint96"
98
- },
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAccessManagerZero",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
99
106
  {
100
- "internalType": "ObjectType",
101
- "name": "objectType",
102
- "type": "uint8"
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
103
110
  }
104
111
  ],
105
- "name": "ErrorNoLifecycle",
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
106
113
  "type": "error"
107
114
  },
108
115
  {
109
116
  "inputs": [
110
117
  {
111
118
  "internalType": "address",
112
- "name": "account",
119
+ "name": "instanceStore",
113
120
  "type": "address"
114
121
  }
115
122
  ],
116
- "name": "ErrorNotOwner",
123
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
117
124
  "type": "error"
118
125
  },
119
126
  {
120
127
  "inputs": [
121
128
  {
122
129
  "internalType": "address",
123
- "name": "registryAddress",
130
+ "name": "instanceAuthority",
124
131
  "type": "address"
125
132
  }
126
133
  ],
127
- "name": "ErrorNotRegistry",
134
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
135
+ "type": "error"
136
+ },
137
+ {
138
+ "inputs": [
139
+ {
140
+ "internalType": "NftId",
141
+ "name": "nftId",
142
+ "type": "uint96"
143
+ }
144
+ ],
145
+ "name": "ErrorNftOwnableAlreadyLinked",
128
146
  "type": "error"
129
147
  },
130
148
  {
131
149
  "inputs": [
132
150
  {
133
151
  "internalType": "address",
134
- "name": "registryAddress",
152
+ "name": "contractAddress",
135
153
  "type": "address"
136
154
  }
137
155
  ],
138
- "name": "ErrorRegisterableNotRegistry",
156
+ "name": "ErrorNftOwnableContractNotRegistered",
139
157
  "type": "error"
140
158
  },
141
159
  {
142
160
  "inputs": [],
143
- "name": "ErrorRegistryAddressZero",
161
+ "name": "ErrorNftOwnableInitialOwnerZero",
144
162
  "type": "error"
145
163
  },
146
164
  {
147
165
  "inputs": [
148
166
  {
149
167
  "internalType": "address",
150
- "name": "registry",
168
+ "name": "account",
151
169
  "type": "address"
152
170
  }
153
171
  ],
154
- "name": "ErrorRegistryAlreadyInitialized",
172
+ "name": "ErrorNftOwnableNotOwner",
155
173
  "type": "error"
156
174
  },
157
175
  {
158
- "inputs": [],
159
- "name": "ErrorRegistryNotInitialized",
176
+ "inputs": [
177
+ {
178
+ "internalType": "address",
179
+ "name": "registryAddress",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "ErrorNotRegistry",
160
184
  "type": "error"
161
185
  },
162
186
  {
@@ -196,142 +220,112 @@
196
220
  "type": "event"
197
221
  },
198
222
  {
199
- "anonymous": false,
200
- "inputs": [
201
- {
202
- "indexed": false,
203
- "internalType": "ObjectType",
204
- "name": "objectType",
205
- "type": "uint8"
206
- },
223
+ "inputs": [],
224
+ "name": "GIF_MAJOR_VERSION",
225
+ "outputs": [
207
226
  {
208
- "indexed": false,
209
- "internalType": "KeyId",
210
- "name": "keyId",
211
- "type": "bytes31"
212
- },
227
+ "internalType": "uint256",
228
+ "name": "",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "stateMutability": "view",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
238
+ "outputs": [
213
239
  {
214
- "indexed": false,
215
- "internalType": "StateId",
216
- "name": "state",
217
- "type": "uint8"
218
- },
240
+ "internalType": "bytes32",
241
+ "name": "",
242
+ "type": "bytes32"
243
+ }
244
+ ],
245
+ "stateMutability": "view",
246
+ "type": "function"
247
+ },
248
+ {
249
+ "inputs": [],
250
+ "name": "REGISTERABLE_LOCATION_V1",
251
+ "outputs": [
219
252
  {
220
- "indexed": false,
221
- "internalType": "address",
222
- "name": "createdBy",
223
- "type": "address"
224
- },
253
+ "internalType": "bytes32",
254
+ "name": "",
255
+ "type": "bytes32"
256
+ }
257
+ ],
258
+ "stateMutability": "view",
259
+ "type": "function"
260
+ },
261
+ {
262
+ "inputs": [],
263
+ "name": "authority",
264
+ "outputs": [
225
265
  {
226
- "indexed": false,
227
266
  "internalType": "address",
228
- "name": "txOrigin",
267
+ "name": "",
229
268
  "type": "address"
230
269
  }
231
270
  ],
232
- "name": "LogInfoCreated",
233
- "type": "event"
271
+ "stateMutability": "view",
272
+ "type": "function"
234
273
  },
235
274
  {
236
- "anonymous": false,
237
275
  "inputs": [
238
276
  {
239
- "indexed": false,
240
- "internalType": "ObjectType",
241
- "name": "objectType",
242
- "type": "uint8"
243
- },
244
- {
245
- "indexed": false,
246
- "internalType": "KeyId",
247
- "name": "keyId",
248
- "type": "bytes31"
249
- },
250
- {
251
- "indexed": false,
252
- "internalType": "StateId",
253
- "name": "state",
254
- "type": "uint8"
277
+ "internalType": "string",
278
+ "name": "roleName",
279
+ "type": "string"
255
280
  },
256
281
  {
257
- "indexed": false,
258
- "internalType": "address",
259
- "name": "updatedBy",
260
- "type": "address"
261
- },
282
+ "internalType": "string",
283
+ "name": "adminName",
284
+ "type": "string"
285
+ }
286
+ ],
287
+ "name": "createRole",
288
+ "outputs": [
262
289
  {
263
- "indexed": false,
264
- "internalType": "address",
265
- "name": "txOrigin",
266
- "type": "address"
290
+ "internalType": "RoleId",
291
+ "name": "roleId",
292
+ "type": "uint64"
267
293
  },
268
294
  {
269
- "indexed": false,
270
- "internalType": "Blocknumber",
271
- "name": "lastUpdatedIn",
272
- "type": "uint32"
295
+ "internalType": "RoleId",
296
+ "name": "admin",
297
+ "type": "uint64"
273
298
  }
274
299
  ],
275
- "name": "LogInfoUpdated",
276
- "type": "event"
300
+ "stateMutability": "nonpayable",
301
+ "type": "function"
277
302
  },
278
303
  {
279
- "anonymous": false,
280
304
  "inputs": [
281
305
  {
282
- "indexed": false,
283
- "internalType": "ObjectType",
284
- "name": "objectType",
285
- "type": "uint8"
286
- },
287
- {
288
- "indexed": false,
289
- "internalType": "KeyId",
290
- "name": "keyId",
291
- "type": "bytes31"
292
- },
293
- {
294
- "indexed": false,
295
- "internalType": "StateId",
296
- "name": "stateOld",
297
- "type": "uint8"
298
- },
299
- {
300
- "indexed": false,
301
- "internalType": "StateId",
302
- "name": "stateNew",
303
- "type": "uint8"
304
- },
305
- {
306
- "indexed": false,
307
- "internalType": "address",
308
- "name": "updatedBy",
309
- "type": "address"
310
- },
311
- {
312
- "indexed": false,
313
306
  "internalType": "address",
314
- "name": "txOrigin",
307
+ "name": "target",
315
308
  "type": "address"
316
309
  },
317
310
  {
318
- "indexed": false,
319
- "internalType": "Blocknumber",
320
- "name": "lastUpdatedIn",
321
- "type": "uint32"
311
+ "internalType": "string",
312
+ "name": "name",
313
+ "type": "string"
322
314
  }
323
315
  ],
324
- "name": "LogStateUpdated",
325
- "type": "event"
316
+ "name": "createTarget",
317
+ "outputs": [],
318
+ "stateMutability": "nonpayable",
319
+ "type": "function"
326
320
  },
327
321
  {
328
322
  "inputs": [],
329
- "name": "ADMIN_ROLE",
323
+ "name": "getBundleManager",
330
324
  "outputs": [
331
325
  {
332
- "internalType": "uint64",
326
+ "internalType": "contract BundleManager",
333
327
  "name": "",
334
- "type": "uint64"
328
+ "type": "address"
335
329
  }
336
330
  ],
337
331
  "stateMutability": "view",
@@ -339,12 +333,12 @@
339
333
  },
340
334
  {
341
335
  "inputs": [],
342
- "name": "CUSTOM_ROLE_ID_MIN",
336
+ "name": "getBundleService",
343
337
  "outputs": [
344
338
  {
345
- "internalType": "uint64",
339
+ "internalType": "contract IBundleService",
346
340
  "name": "",
347
- "type": "uint64"
341
+ "type": "address"
348
342
  }
349
343
  ],
350
344
  "stateMutability": "view",
@@ -352,12 +346,12 @@
352
346
  },
353
347
  {
354
348
  "inputs": [],
355
- "name": "EXECUTION_DELAY",
349
+ "name": "getDistributionService",
356
350
  "outputs": [
357
351
  {
358
- "internalType": "uint32",
352
+ "internalType": "contract IDistributionService",
359
353
  "name": "",
360
- "type": "uint32"
354
+ "type": "address"
361
355
  }
362
356
  ],
363
357
  "stateMutability": "view",
@@ -365,12 +359,49 @@
365
359
  },
366
360
  {
367
361
  "inputs": [],
368
- "name": "PUBLIC_ROLE",
362
+ "name": "getInitialInfo",
369
363
  "outputs": [
370
364
  {
371
- "internalType": "uint64",
372
- "name": "",
373
- "type": "uint64"
365
+ "components": [
366
+ {
367
+ "internalType": "NftId",
368
+ "name": "nftId",
369
+ "type": "uint96"
370
+ },
371
+ {
372
+ "internalType": "NftId",
373
+ "name": "parentNftId",
374
+ "type": "uint96"
375
+ },
376
+ {
377
+ "internalType": "ObjectType",
378
+ "name": "objectType",
379
+ "type": "uint8"
380
+ },
381
+ {
382
+ "internalType": "bool",
383
+ "name": "isInterceptor",
384
+ "type": "bool"
385
+ },
386
+ {
387
+ "internalType": "address",
388
+ "name": "objectAddress",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "internalType": "address",
393
+ "name": "initialOwner",
394
+ "type": "address"
395
+ },
396
+ {
397
+ "internalType": "bytes",
398
+ "name": "data",
399
+ "type": "bytes"
400
+ }
401
+ ],
402
+ "internalType": "struct IRegistry.ObjectInfo",
403
+ "name": "info",
404
+ "type": "tuple"
374
405
  }
375
406
  ],
376
407
  "stateMutability": "view",
@@ -378,12 +409,12 @@
378
409
  },
379
410
  {
380
411
  "inputs": [],
381
- "name": "REGISTERABLE_LOCATION_V1",
412
+ "name": "getInstanceAccessManager",
382
413
  "outputs": [
383
414
  {
384
- "internalType": "bytes32",
415
+ "internalType": "contract InstanceAccessManager",
385
416
  "name": "",
386
- "type": "bytes32"
417
+ "type": "address"
387
418
  }
388
419
  ],
389
420
  "stateMutability": "view",
@@ -391,10 +422,10 @@
391
422
  },
392
423
  {
393
424
  "inputs": [],
394
- "name": "authority",
425
+ "name": "getInstanceReader",
395
426
  "outputs": [
396
427
  {
397
- "internalType": "address",
428
+ "internalType": "contract InstanceReader",
398
429
  "name": "",
399
430
  "type": "address"
400
431
  }
@@ -402,1740 +433,124 @@
402
433
  "stateMutability": "view",
403
434
  "type": "function"
404
435
  },
405
- {
406
- "inputs": [
407
- {
408
- "internalType": "ObjectType",
409
- "name": "objectType",
410
- "type": "uint8"
411
- },
412
- {
413
- "internalType": "StateId",
414
- "name": "fromId",
415
- "type": "uint8"
416
- },
417
- {
418
- "internalType": "StateId",
419
- "name": "toId",
420
- "type": "uint8"
421
- }
422
- ],
423
- "name": "checkTransition",
424
- "outputs": [],
425
- "stateMutability": "view",
426
- "type": "function"
427
- },
428
- {
429
- "inputs": [
430
- {
431
- "internalType": "NftId",
432
- "name": "bundleNftId",
433
- "type": "uint96"
434
- },
435
- {
436
- "components": [
437
- {
438
- "internalType": "NftId",
439
- "name": "poolNftId",
440
- "type": "uint96"
441
- },
442
- {
443
- "components": [
444
- {
445
- "internalType": "UFixed",
446
- "name": "fractionalFee",
447
- "type": "uint256"
448
- },
449
- {
450
- "internalType": "uint256",
451
- "name": "fixedFee",
452
- "type": "uint256"
453
- }
454
- ],
455
- "internalType": "struct Fee",
456
- "name": "fee",
457
- "type": "tuple"
458
- },
459
- {
460
- "internalType": "bytes",
461
- "name": "filter",
462
- "type": "bytes"
463
- },
464
- {
465
- "internalType": "uint256",
466
- "name": "capitalAmount",
467
- "type": "uint256"
468
- },
469
- {
470
- "internalType": "uint256",
471
- "name": "lockedAmount",
472
- "type": "uint256"
473
- },
474
- {
475
- "internalType": "uint256",
476
- "name": "balanceAmount",
477
- "type": "uint256"
478
- },
479
- {
480
- "internalType": "uint256",
481
- "name": "lifetime",
482
- "type": "uint256"
483
- },
484
- {
485
- "internalType": "Timestamp",
486
- "name": "expiredAt",
487
- "type": "uint40"
488
- },
489
- {
490
- "internalType": "Timestamp",
491
- "name": "closedAt",
492
- "type": "uint40"
493
- }
494
- ],
495
- "internalType": "struct IBundle.BundleInfo",
496
- "name": "bundle",
497
- "type": "tuple"
498
- }
499
- ],
500
- "name": "createBundle",
501
- "outputs": [],
502
- "stateMutability": "nonpayable",
503
- "type": "function"
504
- },
505
- {
506
- "inputs": [
507
- {
508
- "internalType": "NftId",
509
- "name": "policyNftId",
510
- "type": "uint96"
511
- },
512
- {
513
- "internalType": "NumberId",
514
- "name": "claimId",
515
- "type": "uint32"
516
- },
517
- {
518
- "components": [
519
- {
520
- "internalType": "uint256",
521
- "name": "claimAmount",
522
- "type": "uint256"
523
- },
524
- {
525
- "internalType": "uint256",
526
- "name": "paidAmount",
527
- "type": "uint256"
528
- },
529
- {
530
- "internalType": "bytes",
531
- "name": "data",
532
- "type": "bytes"
533
- },
534
- {
535
- "internalType": "Timestamp",
536
- "name": "closedAt",
537
- "type": "uint40"
538
- }
539
- ],
540
- "internalType": "struct IPolicy.ClaimInfo",
541
- "name": "claim",
542
- "type": "tuple"
543
- }
544
- ],
545
- "name": "createClaim",
546
- "outputs": [],
547
- "stateMutability": "nonpayable",
548
- "type": "function"
549
- },
550
- {
551
- "inputs": [
552
- {
553
- "internalType": "NftId",
554
- "name": "distributionNftId",
555
- "type": "uint96"
556
- },
557
- {
558
- "components": [
559
- {
560
- "internalType": "NftId",
561
- "name": "productNftId",
562
- "type": "uint96"
563
- },
564
- {
565
- "internalType": "contract TokenHandler",
566
- "name": "tokenHandler",
567
- "type": "address"
568
- },
569
- {
570
- "components": [
571
- {
572
- "internalType": "UFixed",
573
- "name": "fractionalFee",
574
- "type": "uint256"
575
- },
576
- {
577
- "internalType": "uint256",
578
- "name": "fixedFee",
579
- "type": "uint256"
580
- }
581
- ],
582
- "internalType": "struct Fee",
583
- "name": "distributionFee",
584
- "type": "tuple"
585
- },
586
- {
587
- "internalType": "bool",
588
- "name": "isIntercepting",
589
- "type": "bool"
590
- },
591
- {
592
- "internalType": "address",
593
- "name": "wallet",
594
- "type": "address"
595
- }
596
- ],
597
- "internalType": "struct ISetup.DistributionSetupInfo",
598
- "name": "setup",
599
- "type": "tuple"
600
- }
601
- ],
602
- "name": "createDistributionSetup",
603
- "outputs": [],
604
- "stateMutability": "nonpayable",
605
- "type": "function"
606
- },
607
- {
608
- "inputs": [
609
- {
610
- "internalType": "NftId",
611
- "name": "policyNftId",
612
- "type": "uint96"
613
- },
614
- {
615
- "internalType": "NumberId",
616
- "name": "payoutId",
617
- "type": "uint32"
618
- },
619
- {
620
- "components": [
621
- {
622
- "internalType": "NumberId",
623
- "name": "claimId",
624
- "type": "uint32"
625
- },
626
- {
627
- "internalType": "uint256",
628
- "name": "amount",
629
- "type": "uint256"
630
- },
631
- {
632
- "internalType": "bytes",
633
- "name": "data",
634
- "type": "bytes"
635
- },
636
- {
637
- "internalType": "Timestamp",
638
- "name": "paidAt",
639
- "type": "uint40"
640
- }
641
- ],
642
- "internalType": "struct IPolicy.PayoutInfo",
643
- "name": "payout",
644
- "type": "tuple"
645
- }
646
- ],
647
- "name": "createDistributor",
648
- "outputs": [],
649
- "stateMutability": "nonpayable",
650
- "type": "function"
651
- },
652
- {
653
- "inputs": [
654
- {
655
- "internalType": "NftId",
656
- "name": "policyNftId",
657
- "type": "uint96"
658
- },
659
- {
660
- "internalType": "NumberId",
661
- "name": "payoutId",
662
- "type": "uint32"
663
- },
664
- {
665
- "components": [
666
- {
667
- "internalType": "NumberId",
668
- "name": "claimId",
669
- "type": "uint32"
670
- },
671
- {
672
- "internalType": "uint256",
673
- "name": "amount",
674
- "type": "uint256"
675
- },
676
- {
677
- "internalType": "bytes",
678
- "name": "data",
679
- "type": "bytes"
680
- },
681
- {
682
- "internalType": "Timestamp",
683
- "name": "paidAt",
684
- "type": "uint40"
685
- }
686
- ],
687
- "internalType": "struct IPolicy.PayoutInfo",
688
- "name": "payout",
689
- "type": "tuple"
690
- }
691
- ],
692
- "name": "createDistributorType",
693
- "outputs": [],
694
- "stateMutability": "nonpayable",
695
- "type": "function"
696
- },
697
- {
698
- "inputs": [
699
- {
700
- "internalType": "NftId",
701
- "name": "policyNftId",
702
- "type": "uint96"
703
- },
704
- {
705
- "internalType": "NumberId",
706
- "name": "payoutId",
707
- "type": "uint32"
708
- },
709
- {
710
- "components": [
711
- {
712
- "internalType": "NumberId",
713
- "name": "claimId",
714
- "type": "uint32"
715
- },
716
- {
717
- "internalType": "uint256",
718
- "name": "amount",
719
- "type": "uint256"
720
- },
721
- {
722
- "internalType": "bytes",
723
- "name": "data",
724
- "type": "bytes"
725
- },
726
- {
727
- "internalType": "Timestamp",
728
- "name": "paidAt",
729
- "type": "uint40"
730
- }
731
- ],
732
- "internalType": "struct IPolicy.PayoutInfo",
733
- "name": "payout",
734
- "type": "tuple"
735
- }
736
- ],
737
- "name": "createPayout",
738
- "outputs": [],
739
- "stateMutability": "nonpayable",
740
- "type": "function"
741
- },
742
- {
743
- "inputs": [
744
- {
745
- "internalType": "NftId",
746
- "name": "policyNftId",
747
- "type": "uint96"
748
- },
749
- {
750
- "components": [
751
- {
752
- "internalType": "NftId",
753
- "name": "productNftId",
754
- "type": "uint96"
755
- },
756
- {
757
- "internalType": "NftId",
758
- "name": "bundleNftId",
759
- "type": "uint96"
760
- },
761
- {
762
- "internalType": "ReferralId",
763
- "name": "referralId",
764
- "type": "bytes8"
765
- },
766
- {
767
- "internalType": "RiskId",
768
- "name": "riskId",
769
- "type": "bytes8"
770
- },
771
- {
772
- "internalType": "uint256",
773
- "name": "sumInsuredAmount",
774
- "type": "uint256"
775
- },
776
- {
777
- "internalType": "uint256",
778
- "name": "premiumAmount",
779
- "type": "uint256"
780
- },
781
- {
782
- "internalType": "uint256",
783
- "name": "premiumPaidAmount",
784
- "type": "uint256"
785
- },
786
- {
787
- "internalType": "uint256",
788
- "name": "lifetime",
789
- "type": "uint256"
790
- },
791
- {
792
- "internalType": "bytes",
793
- "name": "applicationData",
794
- "type": "bytes"
795
- },
796
- {
797
- "internalType": "bytes",
798
- "name": "policyData",
799
- "type": "bytes"
800
- },
801
- {
802
- "internalType": "uint16",
803
- "name": "claimsCount",
804
- "type": "uint16"
805
- },
806
- {
807
- "internalType": "uint16",
808
- "name": "openClaimsCount",
809
- "type": "uint16"
810
- },
811
- {
812
- "internalType": "uint256",
813
- "name": "payoutAmount",
814
- "type": "uint256"
815
- },
816
- {
817
- "internalType": "Timestamp",
818
- "name": "activatedAt",
819
- "type": "uint40"
820
- },
821
- {
822
- "internalType": "Timestamp",
823
- "name": "expiredAt",
824
- "type": "uint40"
825
- },
826
- {
827
- "internalType": "Timestamp",
828
- "name": "closedAt",
829
- "type": "uint40"
830
- }
831
- ],
832
- "internalType": "struct IPolicy.PolicyInfo",
833
- "name": "policy",
834
- "type": "tuple"
835
- }
836
- ],
837
- "name": "createPolicy",
838
- "outputs": [],
839
- "stateMutability": "nonpayable",
840
- "type": "function"
841
- },
842
- {
843
- "inputs": [
844
- {
845
- "internalType": "NftId",
846
- "name": "poolNftId",
847
- "type": "uint96"
848
- },
849
- {
850
- "components": [
851
- {
852
- "internalType": "NftId",
853
- "name": "productNftId",
854
- "type": "uint96"
855
- },
856
- {
857
- "internalType": "contract TokenHandler",
858
- "name": "tokenHandler",
859
- "type": "address"
860
- },
861
- {
862
- "internalType": "UFixed",
863
- "name": "collateralizationLevel",
864
- "type": "uint256"
865
- },
866
- {
867
- "components": [
868
- {
869
- "internalType": "UFixed",
870
- "name": "fractionalFee",
871
- "type": "uint256"
872
- },
873
- {
874
- "internalType": "uint256",
875
- "name": "fixedFee",
876
- "type": "uint256"
877
- }
878
- ],
879
- "internalType": "struct Fee",
880
- "name": "poolFee",
881
- "type": "tuple"
882
- },
883
- {
884
- "components": [
885
- {
886
- "internalType": "UFixed",
887
- "name": "fractionalFee",
888
- "type": "uint256"
889
- },
890
- {
891
- "internalType": "uint256",
892
- "name": "fixedFee",
893
- "type": "uint256"
894
- }
895
- ],
896
- "internalType": "struct Fee",
897
- "name": "stakingFee",
898
- "type": "tuple"
899
- },
900
- {
901
- "components": [
902
- {
903
- "internalType": "UFixed",
904
- "name": "fractionalFee",
905
- "type": "uint256"
906
- },
907
- {
908
- "internalType": "uint256",
909
- "name": "fixedFee",
910
- "type": "uint256"
911
- }
912
- ],
913
- "internalType": "struct Fee",
914
- "name": "performanceFee",
915
- "type": "tuple"
916
- },
917
- {
918
- "internalType": "bool",
919
- "name": "isIntercepting",
920
- "type": "bool"
921
- },
922
- {
923
- "internalType": "bool",
924
- "name": "isConfirmingApplication",
925
- "type": "bool"
926
- },
927
- {
928
- "internalType": "address",
929
- "name": "wallet",
930
- "type": "address"
931
- }
932
- ],
933
- "internalType": "struct ISetup.PoolSetupInfo",
934
- "name": "setup",
935
- "type": "tuple"
936
- }
937
- ],
938
- "name": "createPoolSetup",
939
- "outputs": [],
940
- "stateMutability": "nonpayable",
941
- "type": "function"
942
- },
943
- {
944
- "inputs": [
945
- {
946
- "internalType": "NftId",
947
- "name": "productNftId",
948
- "type": "uint96"
949
- },
950
- {
951
- "components": [
952
- {
953
- "internalType": "contract IERC20Metadata",
954
- "name": "token",
955
- "type": "address"
956
- },
957
- {
958
- "internalType": "contract TokenHandler",
959
- "name": "tokenHandler",
960
- "type": "address"
961
- },
962
- {
963
- "internalType": "NftId",
964
- "name": "distributionNftId",
965
- "type": "uint96"
966
- },
967
- {
968
- "internalType": "NftId",
969
- "name": "poolNftId",
970
- "type": "uint96"
971
- },
972
- {
973
- "components": [
974
- {
975
- "internalType": "UFixed",
976
- "name": "fractionalFee",
977
- "type": "uint256"
978
- },
979
- {
980
- "internalType": "uint256",
981
- "name": "fixedFee",
982
- "type": "uint256"
983
- }
984
- ],
985
- "internalType": "struct Fee",
986
- "name": "distributionFee",
987
- "type": "tuple"
988
- },
989
- {
990
- "components": [
991
- {
992
- "internalType": "UFixed",
993
- "name": "fractionalFee",
994
- "type": "uint256"
995
- },
996
- {
997
- "internalType": "uint256",
998
- "name": "fixedFee",
999
- "type": "uint256"
1000
- }
1001
- ],
1002
- "internalType": "struct Fee",
1003
- "name": "productFee",
1004
- "type": "tuple"
1005
- },
1006
- {
1007
- "components": [
1008
- {
1009
- "internalType": "UFixed",
1010
- "name": "fractionalFee",
1011
- "type": "uint256"
1012
- },
1013
- {
1014
- "internalType": "uint256",
1015
- "name": "fixedFee",
1016
- "type": "uint256"
1017
- }
1018
- ],
1019
- "internalType": "struct Fee",
1020
- "name": "processingFee",
1021
- "type": "tuple"
1022
- },
1023
- {
1024
- "components": [
1025
- {
1026
- "internalType": "UFixed",
1027
- "name": "fractionalFee",
1028
- "type": "uint256"
1029
- },
1030
- {
1031
- "internalType": "uint256",
1032
- "name": "fixedFee",
1033
- "type": "uint256"
1034
- }
1035
- ],
1036
- "internalType": "struct Fee",
1037
- "name": "poolFee",
1038
- "type": "tuple"
1039
- },
1040
- {
1041
- "components": [
1042
- {
1043
- "internalType": "UFixed",
1044
- "name": "fractionalFee",
1045
- "type": "uint256"
1046
- },
1047
- {
1048
- "internalType": "uint256",
1049
- "name": "fixedFee",
1050
- "type": "uint256"
1051
- }
1052
- ],
1053
- "internalType": "struct Fee",
1054
- "name": "stakingFee",
1055
- "type": "tuple"
1056
- },
1057
- {
1058
- "components": [
1059
- {
1060
- "internalType": "UFixed",
1061
- "name": "fractionalFee",
1062
- "type": "uint256"
1063
- },
1064
- {
1065
- "internalType": "uint256",
1066
- "name": "fixedFee",
1067
- "type": "uint256"
1068
- }
1069
- ],
1070
- "internalType": "struct Fee",
1071
- "name": "performanceFee",
1072
- "type": "tuple"
1073
- },
1074
- {
1075
- "internalType": "bool",
1076
- "name": "isIntercepting",
1077
- "type": "bool"
1078
- },
1079
- {
1080
- "internalType": "address",
1081
- "name": "wallet",
1082
- "type": "address"
1083
- }
1084
- ],
1085
- "internalType": "struct ISetup.ProductSetupInfo",
1086
- "name": "setup",
1087
- "type": "tuple"
1088
- }
1089
- ],
1090
- "name": "createProductSetup",
1091
- "outputs": [],
1092
- "stateMutability": "nonpayable",
1093
- "type": "function"
1094
- },
1095
- {
1096
- "inputs": [
1097
- {
1098
- "internalType": "NftId",
1099
- "name": "policyNftId",
1100
- "type": "uint96"
1101
- },
1102
- {
1103
- "internalType": "NumberId",
1104
- "name": "payoutId",
1105
- "type": "uint32"
1106
- },
1107
- {
1108
- "components": [
1109
- {
1110
- "internalType": "NumberId",
1111
- "name": "claimId",
1112
- "type": "uint32"
1113
- },
1114
- {
1115
- "internalType": "uint256",
1116
- "name": "amount",
1117
- "type": "uint256"
1118
- },
1119
- {
1120
- "internalType": "bytes",
1121
- "name": "data",
1122
- "type": "bytes"
1123
- },
1124
- {
1125
- "internalType": "Timestamp",
1126
- "name": "paidAt",
1127
- "type": "uint40"
1128
- }
1129
- ],
1130
- "internalType": "struct IPolicy.PayoutInfo",
1131
- "name": "payout",
1132
- "type": "tuple"
1133
- }
1134
- ],
1135
- "name": "createReferral",
1136
- "outputs": [],
1137
- "stateMutability": "nonpayable",
1138
- "type": "function"
1139
- },
1140
- {
1141
- "inputs": [
1142
- {
1143
- "internalType": "RiskId",
1144
- "name": "riskId",
1145
- "type": "bytes8"
1146
- },
1147
- {
1148
- "components": [
1149
- {
1150
- "internalType": "NftId",
1151
- "name": "productNftId",
1152
- "type": "uint96"
1153
- },
1154
- {
1155
- "internalType": "bytes",
1156
- "name": "data",
1157
- "type": "bytes"
1158
- }
1159
- ],
1160
- "internalType": "struct IRisk.RiskInfo",
1161
- "name": "risk",
1162
- "type": "tuple"
1163
- }
1164
- ],
1165
- "name": "createRisk",
1166
- "outputs": [],
1167
- "stateMutability": "nonpayable",
1168
- "type": "function"
1169
- },
1170
- {
1171
- "inputs": [
1172
- {
1173
- "internalType": "Key32",
1174
- "name": "key32",
1175
- "type": "bytes32"
1176
- }
1177
- ],
1178
- "name": "exists",
1179
- "outputs": [
1180
- {
1181
- "internalType": "bool",
1182
- "name": "",
1183
- "type": "bool"
1184
- }
1185
- ],
1186
- "stateMutability": "view",
1187
- "type": "function"
1188
- },
1189
- {
1190
- "inputs": [
1191
- {
1192
- "internalType": "Key32",
1193
- "name": "key32",
1194
- "type": "bytes32"
1195
- }
1196
- ],
1197
- "name": "get",
1198
- "outputs": [
1199
- {
1200
- "components": [
1201
- {
1202
- "components": [
1203
- {
1204
- "internalType": "ObjectType",
1205
- "name": "objectType",
1206
- "type": "uint8"
1207
- },
1208
- {
1209
- "internalType": "StateId",
1210
- "name": "state",
1211
- "type": "uint8"
1212
- },
1213
- {
1214
- "internalType": "address",
1215
- "name": "updatedBy",
1216
- "type": "address"
1217
- },
1218
- {
1219
- "internalType": "Blocknumber",
1220
- "name": "updatedIn",
1221
- "type": "uint32"
1222
- },
1223
- {
1224
- "internalType": "Blocknumber",
1225
- "name": "createdIn",
1226
- "type": "uint32"
1227
- }
1228
- ],
1229
- "internalType": "struct IKeyValueStore.Metadata",
1230
- "name": "metadata",
1231
- "type": "tuple"
1232
- },
1233
- {
1234
- "internalType": "bytes",
1235
- "name": "data",
1236
- "type": "bytes"
1237
- }
1238
- ],
1239
- "internalType": "struct IKeyValueStore.Value",
1240
- "name": "value",
1241
- "type": "tuple"
1242
- }
1243
- ],
1244
- "stateMutability": "view",
1245
- "type": "function"
1246
- },
1247
- {
1248
- "inputs": [],
1249
- "name": "getBundleManager",
1250
- "outputs": [
1251
- {
1252
- "internalType": "contract BundleManager",
1253
- "name": "",
1254
- "type": "address"
1255
- }
1256
- ],
1257
- "stateMutability": "view",
1258
- "type": "function"
1259
- },
1260
- {
1261
- "inputs": [],
1262
- "name": "getBundleService",
1263
- "outputs": [
1264
- {
1265
- "internalType": "contract IBundleService",
1266
- "name": "",
1267
- "type": "address"
1268
- }
1269
- ],
1270
- "stateMutability": "view",
1271
- "type": "function"
1272
- },
1273
- {
1274
- "inputs": [],
1275
- "name": "getComponentOwnerService",
1276
- "outputs": [
1277
- {
1278
- "internalType": "contract IComponentOwnerService",
1279
- "name": "",
1280
- "type": "address"
1281
- }
1282
- ],
1283
- "stateMutability": "view",
1284
- "type": "function"
1285
- },
1286
- {
1287
- "inputs": [
1288
- {
1289
- "internalType": "Key32",
1290
- "name": "key32",
1291
- "type": "bytes32"
1292
- }
1293
- ],
1294
- "name": "getData",
1295
- "outputs": [
1296
- {
1297
- "internalType": "bytes",
1298
- "name": "data",
1299
- "type": "bytes"
1300
- }
1301
- ],
1302
- "stateMutability": "view",
1303
- "type": "function"
1304
- },
1305
- {
1306
- "inputs": [],
1307
- "name": "getDistributionService",
1308
- "outputs": [
1309
- {
1310
- "internalType": "contract IDistributionService",
1311
- "name": "",
1312
- "type": "address"
1313
- }
1314
- ],
1315
- "stateMutability": "view",
1316
- "type": "function"
1317
- },
1318
- {
1319
- "inputs": [],
1320
- "name": "getInitialInfo",
1321
- "outputs": [
1322
- {
1323
- "components": [
1324
- {
1325
- "internalType": "NftId",
1326
- "name": "nftId",
1327
- "type": "uint96"
1328
- },
1329
- {
1330
- "internalType": "NftId",
1331
- "name": "parentNftId",
1332
- "type": "uint96"
1333
- },
1334
- {
1335
- "internalType": "ObjectType",
1336
- "name": "objectType",
1337
- "type": "uint8"
1338
- },
1339
- {
1340
- "internalType": "bool",
1341
- "name": "isInterceptor",
1342
- "type": "bool"
1343
- },
1344
- {
1345
- "internalType": "address",
1346
- "name": "objectAddress",
1347
- "type": "address"
1348
- },
1349
- {
1350
- "internalType": "address",
1351
- "name": "initialOwner",
1352
- "type": "address"
1353
- },
1354
- {
1355
- "internalType": "bytes",
1356
- "name": "data",
1357
- "type": "bytes"
1358
- }
1359
- ],
1360
- "internalType": "struct IRegistry.ObjectInfo",
1361
- "name": "",
1362
- "type": "tuple"
1363
- },
1364
- {
1365
- "internalType": "bytes",
1366
- "name": "data",
1367
- "type": "bytes"
1368
- }
1369
- ],
1370
- "stateMutability": "view",
1371
- "type": "function"
1372
- },
1373
- {
1374
- "inputs": [
1375
- {
1376
- "internalType": "ObjectType",
1377
- "name": "objectType",
1378
- "type": "uint8"
1379
- }
1380
- ],
1381
- "name": "getInitialState",
1382
- "outputs": [
1383
- {
1384
- "internalType": "StateId",
1385
- "name": "",
1386
- "type": "uint8"
1387
- }
1388
- ],
1389
- "stateMutability": "view",
1390
- "type": "function"
1391
- },
1392
- {
1393
- "inputs": [],
1394
- "name": "getInstanceAccessManager",
1395
- "outputs": [
1396
- {
1397
- "internalType": "contract InstanceAccessManager",
1398
- "name": "",
1399
- "type": "address"
1400
- }
1401
- ],
1402
- "stateMutability": "view",
1403
- "type": "function"
1404
- },
1405
- {
1406
- "inputs": [],
1407
- "name": "getInstanceReader",
1408
- "outputs": [
1409
- {
1410
- "internalType": "contract InstanceReader",
1411
- "name": "",
1412
- "type": "address"
1413
- }
1414
- ],
1415
- "stateMutability": "view",
1416
- "type": "function"
1417
- },
1418
- {
1419
- "inputs": [
1420
- {
1421
- "internalType": "Key32",
1422
- "name": "key32",
1423
- "type": "bytes32"
1424
- }
1425
- ],
1426
- "name": "getMetadata",
1427
- "outputs": [
1428
- {
1429
- "components": [
1430
- {
1431
- "internalType": "ObjectType",
1432
- "name": "objectType",
1433
- "type": "uint8"
1434
- },
1435
- {
1436
- "internalType": "StateId",
1437
- "name": "state",
1438
- "type": "uint8"
1439
- },
1440
- {
1441
- "internalType": "address",
1442
- "name": "updatedBy",
1443
- "type": "address"
1444
- },
1445
- {
1446
- "internalType": "Blocknumber",
1447
- "name": "updatedIn",
1448
- "type": "uint32"
1449
- },
1450
- {
1451
- "internalType": "Blocknumber",
1452
- "name": "createdIn",
1453
- "type": "uint32"
1454
- }
1455
- ],
1456
- "internalType": "struct IKeyValueStore.Metadata",
1457
- "name": "metadata",
1458
- "type": "tuple"
1459
- }
1460
- ],
1461
- "stateMutability": "view",
1462
- "type": "function"
1463
- },
1464
- {
1465
- "inputs": [],
1466
- "name": "getNftId",
1467
- "outputs": [
1468
- {
1469
- "internalType": "NftId",
1470
- "name": "",
1471
- "type": "uint96"
1472
- }
1473
- ],
1474
- "stateMutability": "view",
1475
- "type": "function"
1476
- },
1477
- {
1478
- "inputs": [],
1479
- "name": "getOwner",
1480
- "outputs": [
1481
- {
1482
- "internalType": "address",
1483
- "name": "",
1484
- "type": "address"
1485
- }
1486
- ],
1487
- "stateMutability": "view",
1488
- "type": "function"
1489
- },
1490
- {
1491
- "inputs": [],
1492
- "name": "getPolicyService",
1493
- "outputs": [
1494
- {
1495
- "internalType": "contract IPolicyService",
1496
- "name": "",
1497
- "type": "address"
1498
- }
1499
- ],
1500
- "stateMutability": "view",
1501
- "type": "function"
1502
- },
1503
- {
1504
- "inputs": [],
1505
- "name": "getPoolService",
1506
- "outputs": [
1507
- {
1508
- "internalType": "contract IPoolService",
1509
- "name": "",
1510
- "type": "address"
1511
- }
1512
- ],
1513
- "stateMutability": "view",
1514
- "type": "function"
1515
- },
1516
- {
1517
- "inputs": [],
1518
- "name": "getProductService",
1519
- "outputs": [
1520
- {
1521
- "internalType": "contract IProductService",
1522
- "name": "",
1523
- "type": "address"
1524
- }
1525
- ],
1526
- "stateMutability": "view",
1527
- "type": "function"
1528
- },
1529
- {
1530
- "inputs": [],
1531
- "name": "getRegistry",
1532
- "outputs": [
1533
- {
1534
- "internalType": "contract IRegistry",
1535
- "name": "",
1536
- "type": "address"
1537
- }
1538
- ],
1539
- "stateMutability": "view",
1540
- "type": "function"
1541
- },
1542
- {
1543
- "inputs": [
1544
- {
1545
- "internalType": "Key32",
1546
- "name": "key32",
1547
- "type": "bytes32"
1548
- }
1549
- ],
1550
- "name": "getState",
1551
- "outputs": [
1552
- {
1553
- "internalType": "StateId",
1554
- "name": "state",
1555
- "type": "uint8"
1556
- }
1557
- ],
1558
- "stateMutability": "view",
1559
- "type": "function"
1560
- },
1561
- {
1562
- "inputs": [
1563
- {
1564
- "internalType": "ObjectType",
1565
- "name": "objectType",
1566
- "type": "uint8"
1567
- }
1568
- ],
1569
- "name": "hasLifecycle",
1570
- "outputs": [
1571
- {
1572
- "internalType": "bool",
1573
- "name": "",
1574
- "type": "bool"
1575
- }
1576
- ],
1577
- "stateMutability": "view",
1578
- "type": "function"
1579
- },
1580
- {
1581
- "inputs": [
1582
- {
1583
- "internalType": "address",
1584
- "name": "accessManagerAddress",
1585
- "type": "address"
1586
- },
1587
- {
1588
- "internalType": "address",
1589
- "name": "registryAddress",
1590
- "type": "address"
1591
- },
1592
- {
1593
- "internalType": "NftId",
1594
- "name": "registryNftId",
1595
- "type": "uint96"
1596
- },
1597
- {
1598
- "internalType": "address",
1599
- "name": "initialOwner",
1600
- "type": "address"
1601
- }
1602
- ],
1603
- "name": "initialize",
1604
- "outputs": [],
1605
- "stateMutability": "nonpayable",
1606
- "type": "function"
1607
- },
1608
- {
1609
- "inputs": [],
1610
- "name": "isConsumingScheduledOp",
1611
- "outputs": [
1612
- {
1613
- "internalType": "bytes4",
1614
- "name": "",
1615
- "type": "bytes4"
1616
- }
1617
- ],
1618
- "stateMutability": "view",
1619
- "type": "function"
1620
- },
1621
- {
1622
- "inputs": [
1623
- {
1624
- "internalType": "ObjectType",
1625
- "name": "objectType",
1626
- "type": "uint8"
1627
- },
1628
- {
1629
- "internalType": "StateId",
1630
- "name": "fromId",
1631
- "type": "uint8"
1632
- },
1633
- {
1634
- "internalType": "StateId",
1635
- "name": "toId",
1636
- "type": "uint8"
1637
- }
1638
- ],
1639
- "name": "isValidTransition",
1640
- "outputs": [
1641
- {
1642
- "internalType": "bool",
1643
- "name": "",
1644
- "type": "bool"
1645
- }
1646
- ],
1647
- "stateMutability": "view",
1648
- "type": "function"
1649
- },
1650
436
  {
1651
437
  "inputs": [],
1652
- "name": "linkToRegisteredNftId",
1653
- "outputs": [],
1654
- "stateMutability": "nonpayable",
1655
- "type": "function"
1656
- },
1657
- {
1658
- "inputs": [
1659
- {
1660
- "internalType": "address",
1661
- "name": "newAuthority",
1662
- "type": "address"
1663
- }
1664
- ],
1665
- "name": "setAuthority",
1666
- "outputs": [],
1667
- "stateMutability": "nonpayable",
1668
- "type": "function"
1669
- },
1670
- {
1671
- "inputs": [
1672
- {
1673
- "internalType": "contract BundleManager",
1674
- "name": "bundleManager",
1675
- "type": "address"
1676
- }
1677
- ],
1678
- "name": "setBundleManager",
1679
- "outputs": [],
1680
- "stateMutability": "nonpayable",
1681
- "type": "function"
1682
- },
1683
- {
1684
- "inputs": [
1685
- {
1686
- "internalType": "contract InstanceReader",
1687
- "name": "instanceReader",
1688
- "type": "address"
1689
- }
1690
- ],
1691
- "name": "setInstanceReader",
1692
- "outputs": [],
1693
- "stateMutability": "nonpayable",
1694
- "type": "function"
1695
- },
1696
- {
1697
- "inputs": [
1698
- {
1699
- "internalType": "bytes4",
1700
- "name": "interfaceId",
1701
- "type": "bytes4"
1702
- }
1703
- ],
1704
- "name": "supportsInterface",
438
+ "name": "getInstanceStore",
1705
439
  "outputs": [
1706
440
  {
1707
- "internalType": "bool",
441
+ "internalType": "contract InstanceStore",
1708
442
  "name": "",
1709
- "type": "bool"
443
+ "type": "address"
1710
444
  }
1711
445
  ],
1712
446
  "stateMutability": "view",
1713
447
  "type": "function"
1714
448
  },
1715
449
  {
1716
- "inputs": [
1717
- {
1718
- "internalType": "NftId",
1719
- "name": "bundleNftId",
1720
- "type": "uint96"
1721
- }
1722
- ],
1723
- "name": "toBundleKey32",
450
+ "inputs": [],
451
+ "name": "getMajorVersion",
1724
452
  "outputs": [
1725
453
  {
1726
- "internalType": "Key32",
1727
- "name": "",
1728
- "type": "bytes32"
1729
- }
1730
- ],
1731
- "stateMutability": "pure",
1732
- "type": "function"
1733
- },
1734
- {
1735
- "inputs": [
1736
- {
1737
- "internalType": "ObjectType",
1738
- "name": "objectType",
454
+ "internalType": "VersionPart",
455
+ "name": "majorVersion",
1739
456
  "type": "uint8"
1740
- },
1741
- {
1742
- "internalType": "KeyId",
1743
- "name": "id",
1744
- "type": "bytes31"
1745
- }
1746
- ],
1747
- "name": "toKey32",
1748
- "outputs": [
1749
- {
1750
- "internalType": "Key32",
1751
- "name": "",
1752
- "type": "bytes32"
1753
457
  }
1754
458
  ],
1755
459
  "stateMutability": "pure",
1756
460
  "type": "function"
1757
461
  },
1758
462
  {
1759
- "inputs": [
1760
- {
1761
- "internalType": "NftId",
1762
- "name": "policyNftId",
1763
- "type": "uint96"
1764
- }
1765
- ],
1766
- "name": "toPolicyKey32",
463
+ "inputs": [],
464
+ "name": "getNftId",
1767
465
  "outputs": [
1768
- {
1769
- "internalType": "Key32",
1770
- "name": "",
1771
- "type": "bytes32"
1772
- }
1773
- ],
1774
- "stateMutability": "pure",
1775
- "type": "function"
1776
- },
1777
- {
1778
- "inputs": [
1779
- {
1780
- "internalType": "NftId",
1781
- "name": "bundleNftId",
1782
- "type": "uint96"
1783
- },
1784
- {
1785
- "components": [
1786
- {
1787
- "internalType": "NftId",
1788
- "name": "poolNftId",
1789
- "type": "uint96"
1790
- },
1791
- {
1792
- "components": [
1793
- {
1794
- "internalType": "UFixed",
1795
- "name": "fractionalFee",
1796
- "type": "uint256"
1797
- },
1798
- {
1799
- "internalType": "uint256",
1800
- "name": "fixedFee",
1801
- "type": "uint256"
1802
- }
1803
- ],
1804
- "internalType": "struct Fee",
1805
- "name": "fee",
1806
- "type": "tuple"
1807
- },
1808
- {
1809
- "internalType": "bytes",
1810
- "name": "filter",
1811
- "type": "bytes"
1812
- },
1813
- {
1814
- "internalType": "uint256",
1815
- "name": "capitalAmount",
1816
- "type": "uint256"
1817
- },
1818
- {
1819
- "internalType": "uint256",
1820
- "name": "lockedAmount",
1821
- "type": "uint256"
1822
- },
1823
- {
1824
- "internalType": "uint256",
1825
- "name": "balanceAmount",
1826
- "type": "uint256"
1827
- },
1828
- {
1829
- "internalType": "uint256",
1830
- "name": "lifetime",
1831
- "type": "uint256"
1832
- },
1833
- {
1834
- "internalType": "Timestamp",
1835
- "name": "expiredAt",
1836
- "type": "uint40"
1837
- },
1838
- {
1839
- "internalType": "Timestamp",
1840
- "name": "closedAt",
1841
- "type": "uint40"
1842
- }
1843
- ],
1844
- "internalType": "struct IBundle.BundleInfo",
1845
- "name": "bundle",
1846
- "type": "tuple"
1847
- },
1848
- {
1849
- "internalType": "StateId",
1850
- "name": "newState",
1851
- "type": "uint8"
1852
- }
1853
- ],
1854
- "name": "updateBundle",
1855
- "outputs": [],
1856
- "stateMutability": "nonpayable",
1857
- "type": "function"
1858
- },
1859
- {
1860
- "inputs": [
1861
- {
1862
- "internalType": "NftId",
1863
- "name": "bundleNftId",
1864
- "type": "uint96"
1865
- },
1866
- {
1867
- "internalType": "StateId",
1868
- "name": "newState",
1869
- "type": "uint8"
1870
- }
1871
- ],
1872
- "name": "updateBundleState",
1873
- "outputs": [],
1874
- "stateMutability": "nonpayable",
1875
- "type": "function"
1876
- },
1877
- {
1878
- "inputs": [
1879
- {
1880
- "internalType": "NftId",
1881
- "name": "policyNftId",
1882
- "type": "uint96"
1883
- },
1884
- {
1885
- "internalType": "NumberId",
1886
- "name": "claimId",
1887
- "type": "uint32"
1888
- },
1889
- {
1890
- "components": [
1891
- {
1892
- "internalType": "uint256",
1893
- "name": "claimAmount",
1894
- "type": "uint256"
1895
- },
1896
- {
1897
- "internalType": "uint256",
1898
- "name": "paidAmount",
1899
- "type": "uint256"
1900
- },
1901
- {
1902
- "internalType": "bytes",
1903
- "name": "data",
1904
- "type": "bytes"
1905
- },
1906
- {
1907
- "internalType": "Timestamp",
1908
- "name": "closedAt",
1909
- "type": "uint40"
1910
- }
1911
- ],
1912
- "internalType": "struct IPolicy.ClaimInfo",
1913
- "name": "claim",
1914
- "type": "tuple"
1915
- },
1916
- {
1917
- "internalType": "StateId",
1918
- "name": "newState",
1919
- "type": "uint8"
1920
- }
1921
- ],
1922
- "name": "updateClaim",
1923
- "outputs": [],
1924
- "stateMutability": "nonpayable",
1925
- "type": "function"
1926
- },
1927
- {
1928
- "inputs": [
1929
466
  {
1930
467
  "internalType": "NftId",
1931
- "name": "policyNftId",
468
+ "name": "",
1932
469
  "type": "uint96"
1933
- },
1934
- {
1935
- "internalType": "NumberId",
1936
- "name": "payoutId",
1937
- "type": "uint32"
1938
- },
1939
- {
1940
- "components": [
1941
- {
1942
- "internalType": "NumberId",
1943
- "name": "claimId",
1944
- "type": "uint32"
1945
- },
1946
- {
1947
- "internalType": "uint256",
1948
- "name": "amount",
1949
- "type": "uint256"
1950
- },
1951
- {
1952
- "internalType": "bytes",
1953
- "name": "data",
1954
- "type": "bytes"
1955
- },
1956
- {
1957
- "internalType": "Timestamp",
1958
- "name": "paidAt",
1959
- "type": "uint40"
1960
- }
1961
- ],
1962
- "internalType": "struct IPolicy.PayoutInfo",
1963
- "name": "payout",
1964
- "type": "tuple"
1965
- },
1966
- {
1967
- "internalType": "StateId",
1968
- "name": "newState",
1969
- "type": "uint8"
1970
470
  }
1971
471
  ],
1972
- "name": "updateClaim",
1973
- "outputs": [],
1974
- "stateMutability": "nonpayable",
472
+ "stateMutability": "view",
1975
473
  "type": "function"
1976
474
  },
1977
475
  {
1978
- "inputs": [
1979
- {
1980
- "internalType": "NftId",
1981
- "name": "policyNftId",
1982
- "type": "uint96"
1983
- },
476
+ "inputs": [],
477
+ "name": "getOwner",
478
+ "outputs": [
1984
479
  {
1985
- "internalType": "StateId",
1986
- "name": "newState",
1987
- "type": "uint8"
480
+ "internalType": "address",
481
+ "name": "",
482
+ "type": "address"
1988
483
  }
1989
484
  ],
1990
- "name": "updateClaimState",
1991
- "outputs": [],
1992
- "stateMutability": "nonpayable",
485
+ "stateMutability": "view",
1993
486
  "type": "function"
1994
487
  },
1995
488
  {
1996
- "inputs": [
1997
- {
1998
- "internalType": "NftId",
1999
- "name": "distributionNftId",
2000
- "type": "uint96"
2001
- },
2002
- {
2003
- "components": [
2004
- {
2005
- "internalType": "NftId",
2006
- "name": "productNftId",
2007
- "type": "uint96"
2008
- },
2009
- {
2010
- "internalType": "contract TokenHandler",
2011
- "name": "tokenHandler",
2012
- "type": "address"
2013
- },
2014
- {
2015
- "components": [
2016
- {
2017
- "internalType": "UFixed",
2018
- "name": "fractionalFee",
2019
- "type": "uint256"
2020
- },
2021
- {
2022
- "internalType": "uint256",
2023
- "name": "fixedFee",
2024
- "type": "uint256"
2025
- }
2026
- ],
2027
- "internalType": "struct Fee",
2028
- "name": "distributionFee",
2029
- "type": "tuple"
2030
- },
2031
- {
2032
- "internalType": "bool",
2033
- "name": "isIntercepting",
2034
- "type": "bool"
2035
- },
2036
- {
2037
- "internalType": "address",
2038
- "name": "wallet",
2039
- "type": "address"
2040
- }
2041
- ],
2042
- "internalType": "struct ISetup.DistributionSetupInfo",
2043
- "name": "setup",
2044
- "type": "tuple"
2045
- },
489
+ "inputs": [],
490
+ "name": "getPolicyService",
491
+ "outputs": [
2046
492
  {
2047
- "internalType": "StateId",
2048
- "name": "newState",
2049
- "type": "uint8"
493
+ "internalType": "contract IPolicyService",
494
+ "name": "",
495
+ "type": "address"
2050
496
  }
2051
497
  ],
2052
- "name": "updateDistributionSetup",
2053
- "outputs": [],
2054
- "stateMutability": "nonpayable",
498
+ "stateMutability": "view",
2055
499
  "type": "function"
2056
500
  },
2057
501
  {
2058
- "inputs": [
2059
- {
2060
- "internalType": "NftId",
2061
- "name": "distributionNftId",
2062
- "type": "uint96"
2063
- },
502
+ "inputs": [],
503
+ "name": "getPoolService",
504
+ "outputs": [
2064
505
  {
2065
- "internalType": "StateId",
2066
- "name": "newState",
2067
- "type": "uint8"
506
+ "internalType": "contract IPoolService",
507
+ "name": "",
508
+ "type": "address"
2068
509
  }
2069
510
  ],
2070
- "name": "updateDistributionSetupState",
2071
- "outputs": [],
2072
- "stateMutability": "nonpayable",
511
+ "stateMutability": "view",
2073
512
  "type": "function"
2074
513
  },
2075
514
  {
2076
- "inputs": [
2077
- {
2078
- "internalType": "NftId",
2079
- "name": "policyNftId",
2080
- "type": "uint96"
2081
- },
2082
- {
2083
- "internalType": "NumberId",
2084
- "name": "payoutId",
2085
- "type": "uint32"
2086
- },
2087
- {
2088
- "components": [
2089
- {
2090
- "internalType": "NumberId",
2091
- "name": "claimId",
2092
- "type": "uint32"
2093
- },
2094
- {
2095
- "internalType": "uint256",
2096
- "name": "amount",
2097
- "type": "uint256"
2098
- },
2099
- {
2100
- "internalType": "bytes",
2101
- "name": "data",
2102
- "type": "bytes"
2103
- },
2104
- {
2105
- "internalType": "Timestamp",
2106
- "name": "paidAt",
2107
- "type": "uint40"
2108
- }
2109
- ],
2110
- "internalType": "struct IPolicy.PayoutInfo",
2111
- "name": "payout",
2112
- "type": "tuple"
2113
- },
515
+ "inputs": [],
516
+ "name": "getProductService",
517
+ "outputs": [
2114
518
  {
2115
- "internalType": "StateId",
2116
- "name": "newState",
2117
- "type": "uint8"
519
+ "internalType": "contract IProductService",
520
+ "name": "",
521
+ "type": "address"
2118
522
  }
2119
523
  ],
2120
- "name": "updateDistributor",
2121
- "outputs": [],
2122
- "stateMutability": "nonpayable",
524
+ "stateMutability": "view",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [],
529
+ "name": "getRegistry",
530
+ "outputs": [
531
+ {
532
+ "internalType": "contract IRegistry",
533
+ "name": "",
534
+ "type": "address"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
2123
538
  "type": "function"
2124
539
  },
2125
540
  {
2126
541
  "inputs": [
2127
542
  {
2128
- "internalType": "NftId",
2129
- "name": "policyNftId",
2130
- "type": "uint96"
543
+ "internalType": "RoleId",
544
+ "name": "roleId",
545
+ "type": "uint64"
2131
546
  },
2132
547
  {
2133
- "internalType": "StateId",
2134
- "name": "newState",
2135
- "type": "uint8"
548
+ "internalType": "address",
549
+ "name": "account",
550
+ "type": "address"
2136
551
  }
2137
552
  ],
2138
- "name": "updateDistributorState",
553
+ "name": "grantRole",
2139
554
  "outputs": [],
2140
555
  "stateMutability": "nonpayable",
2141
556
  "type": "function"
@@ -2143,49 +558,29 @@
2143
558
  {
2144
559
  "inputs": [
2145
560
  {
2146
- "internalType": "NftId",
2147
- "name": "policyNftId",
2148
- "type": "uint96"
2149
- },
2150
- {
2151
- "internalType": "NumberId",
2152
- "name": "payoutId",
2153
- "type": "uint32"
561
+ "internalType": "address",
562
+ "name": "authority",
563
+ "type": "address"
2154
564
  },
2155
565
  {
2156
- "components": [
2157
- {
2158
- "internalType": "NumberId",
2159
- "name": "claimId",
2160
- "type": "uint32"
2161
- },
2162
- {
2163
- "internalType": "uint256",
2164
- "name": "amount",
2165
- "type": "uint256"
2166
- },
2167
- {
2168
- "internalType": "bytes",
2169
- "name": "data",
2170
- "type": "bytes"
2171
- },
2172
- {
2173
- "internalType": "Timestamp",
2174
- "name": "paidAt",
2175
- "type": "uint40"
2176
- }
2177
- ],
2178
- "internalType": "struct IPolicy.PayoutInfo",
2179
- "name": "payout",
2180
- "type": "tuple"
566
+ "internalType": "address",
567
+ "name": "registryAddress",
568
+ "type": "address"
2181
569
  },
2182
570
  {
2183
- "internalType": "StateId",
2184
- "name": "newState",
2185
- "type": "uint8"
571
+ "internalType": "address",
572
+ "name": "initialOwner",
573
+ "type": "address"
2186
574
  }
2187
575
  ],
2188
- "name": "updateDistributorType",
576
+ "name": "initialize",
577
+ "outputs": [],
578
+ "stateMutability": "nonpayable",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "inputs": [],
583
+ "name": "initializeERC165",
2189
584
  "outputs": [],
2190
585
  "stateMutability": "nonpayable",
2191
586
  "type": "function"
@@ -2193,35 +588,55 @@
2193
588
  {
2194
589
  "inputs": [
2195
590
  {
2196
- "internalType": "NftId",
2197
- "name": "policyNftId",
2198
- "type": "uint96"
591
+ "internalType": "address",
592
+ "name": "initialOwner",
593
+ "type": "address"
2199
594
  },
2200
595
  {
2201
- "internalType": "StateId",
2202
- "name": "newState",
2203
- "type": "uint8"
596
+ "internalType": "address",
597
+ "name": "registryAddress",
598
+ "type": "address"
2204
599
  }
2205
600
  ],
2206
- "name": "updateDistributorTypeState",
601
+ "name": "initializeNftOwnable",
2207
602
  "outputs": [],
2208
603
  "stateMutability": "nonpayable",
2209
604
  "type": "function"
2210
605
  },
2211
606
  {
2212
607
  "inputs": [
608
+ {
609
+ "internalType": "address",
610
+ "name": "registryAddress",
611
+ "type": "address"
612
+ },
2213
613
  {
2214
614
  "internalType": "NftId",
2215
- "name": "policyNftId",
615
+ "name": "parentNftId",
2216
616
  "type": "uint96"
2217
617
  },
2218
618
  {
2219
- "internalType": "StateId",
2220
- "name": "newState",
619
+ "internalType": "ObjectType",
620
+ "name": "objectType",
2221
621
  "type": "uint8"
622
+ },
623
+ {
624
+ "internalType": "bool",
625
+ "name": "isInterceptor",
626
+ "type": "bool"
627
+ },
628
+ {
629
+ "internalType": "address",
630
+ "name": "initialOwner",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "internalType": "bytes",
635
+ "name": "registryData",
636
+ "type": "bytes"
2222
637
  }
2223
638
  ],
2224
- "name": "updatePayoutState",
639
+ "name": "initializeRegisterable",
2225
640
  "outputs": [],
2226
641
  "stateMutability": "nonpayable",
2227
642
  "type": "function"
@@ -2229,122 +644,32 @@
2229
644
  {
2230
645
  "inputs": [
2231
646
  {
2232
- "internalType": "NftId",
2233
- "name": "policyNftId",
2234
- "type": "uint96"
2235
- },
2236
- {
2237
- "components": [
2238
- {
2239
- "internalType": "NftId",
2240
- "name": "productNftId",
2241
- "type": "uint96"
2242
- },
2243
- {
2244
- "internalType": "NftId",
2245
- "name": "bundleNftId",
2246
- "type": "uint96"
2247
- },
2248
- {
2249
- "internalType": "ReferralId",
2250
- "name": "referralId",
2251
- "type": "bytes8"
2252
- },
2253
- {
2254
- "internalType": "RiskId",
2255
- "name": "riskId",
2256
- "type": "bytes8"
2257
- },
2258
- {
2259
- "internalType": "uint256",
2260
- "name": "sumInsuredAmount",
2261
- "type": "uint256"
2262
- },
2263
- {
2264
- "internalType": "uint256",
2265
- "name": "premiumAmount",
2266
- "type": "uint256"
2267
- },
2268
- {
2269
- "internalType": "uint256",
2270
- "name": "premiumPaidAmount",
2271
- "type": "uint256"
2272
- },
2273
- {
2274
- "internalType": "uint256",
2275
- "name": "lifetime",
2276
- "type": "uint256"
2277
- },
2278
- {
2279
- "internalType": "bytes",
2280
- "name": "applicationData",
2281
- "type": "bytes"
2282
- },
2283
- {
2284
- "internalType": "bytes",
2285
- "name": "policyData",
2286
- "type": "bytes"
2287
- },
2288
- {
2289
- "internalType": "uint16",
2290
- "name": "claimsCount",
2291
- "type": "uint16"
2292
- },
2293
- {
2294
- "internalType": "uint16",
2295
- "name": "openClaimsCount",
2296
- "type": "uint16"
2297
- },
2298
- {
2299
- "internalType": "uint256",
2300
- "name": "payoutAmount",
2301
- "type": "uint256"
2302
- },
2303
- {
2304
- "internalType": "Timestamp",
2305
- "name": "activatedAt",
2306
- "type": "uint40"
2307
- },
2308
- {
2309
- "internalType": "Timestamp",
2310
- "name": "expiredAt",
2311
- "type": "uint40"
2312
- },
2313
- {
2314
- "internalType": "Timestamp",
2315
- "name": "closedAt",
2316
- "type": "uint40"
2317
- }
2318
- ],
2319
- "internalType": "struct IPolicy.PolicyInfo",
2320
- "name": "policy",
2321
- "type": "tuple"
2322
- },
2323
- {
2324
- "internalType": "StateId",
2325
- "name": "newState",
2326
- "type": "uint8"
647
+ "internalType": "address",
648
+ "name": "registryAddress",
649
+ "type": "address"
2327
650
  }
2328
651
  ],
2329
- "name": "updatePolicy",
652
+ "name": "initializeRegistryLinked",
2330
653
  "outputs": [],
2331
654
  "stateMutability": "nonpayable",
2332
655
  "type": "function"
2333
656
  },
2334
657
  {
2335
- "inputs": [
2336
- {
2337
- "internalType": "NftId",
2338
- "name": "policyNftId",
2339
- "type": "uint96"
2340
- },
658
+ "inputs": [],
659
+ "name": "isConsumingScheduledOp",
660
+ "outputs": [
2341
661
  {
2342
- "internalType": "StateId",
2343
- "name": "newState",
2344
- "type": "uint8"
662
+ "internalType": "bytes4",
663
+ "name": "",
664
+ "type": "bytes4"
2345
665
  }
2346
666
  ],
2347
- "name": "updatePolicyState",
667
+ "stateMutability": "view",
668
+ "type": "function"
669
+ },
670
+ {
671
+ "inputs": [],
672
+ "name": "linkToRegisteredNftId",
2348
673
  "outputs": [],
2349
674
  "stateMutability": "nonpayable",
2350
675
  "type": "function"
@@ -2352,105 +677,17 @@
2352
677
  {
2353
678
  "inputs": [
2354
679
  {
2355
- "internalType": "NftId",
2356
- "name": "poolNftId",
2357
- "type": "uint96"
2358
- },
2359
- {
2360
- "components": [
2361
- {
2362
- "internalType": "NftId",
2363
- "name": "productNftId",
2364
- "type": "uint96"
2365
- },
2366
- {
2367
- "internalType": "contract TokenHandler",
2368
- "name": "tokenHandler",
2369
- "type": "address"
2370
- },
2371
- {
2372
- "internalType": "UFixed",
2373
- "name": "collateralizationLevel",
2374
- "type": "uint256"
2375
- },
2376
- {
2377
- "components": [
2378
- {
2379
- "internalType": "UFixed",
2380
- "name": "fractionalFee",
2381
- "type": "uint256"
2382
- },
2383
- {
2384
- "internalType": "uint256",
2385
- "name": "fixedFee",
2386
- "type": "uint256"
2387
- }
2388
- ],
2389
- "internalType": "struct Fee",
2390
- "name": "poolFee",
2391
- "type": "tuple"
2392
- },
2393
- {
2394
- "components": [
2395
- {
2396
- "internalType": "UFixed",
2397
- "name": "fractionalFee",
2398
- "type": "uint256"
2399
- },
2400
- {
2401
- "internalType": "uint256",
2402
- "name": "fixedFee",
2403
- "type": "uint256"
2404
- }
2405
- ],
2406
- "internalType": "struct Fee",
2407
- "name": "stakingFee",
2408
- "type": "tuple"
2409
- },
2410
- {
2411
- "components": [
2412
- {
2413
- "internalType": "UFixed",
2414
- "name": "fractionalFee",
2415
- "type": "uint256"
2416
- },
2417
- {
2418
- "internalType": "uint256",
2419
- "name": "fixedFee",
2420
- "type": "uint256"
2421
- }
2422
- ],
2423
- "internalType": "struct Fee",
2424
- "name": "performanceFee",
2425
- "type": "tuple"
2426
- },
2427
- {
2428
- "internalType": "bool",
2429
- "name": "isIntercepting",
2430
- "type": "bool"
2431
- },
2432
- {
2433
- "internalType": "bool",
2434
- "name": "isConfirmingApplication",
2435
- "type": "bool"
2436
- },
2437
- {
2438
- "internalType": "address",
2439
- "name": "wallet",
2440
- "type": "address"
2441
- }
2442
- ],
2443
- "internalType": "struct ISetup.PoolSetupInfo",
2444
- "name": "setup",
2445
- "type": "tuple"
680
+ "internalType": "address",
681
+ "name": "to",
682
+ "type": "address"
2446
683
  },
2447
684
  {
2448
- "internalType": "StateId",
2449
- "name": "newState",
2450
- "type": "uint8"
685
+ "internalType": "uint256",
686
+ "name": "tokenId",
687
+ "type": "uint256"
2451
688
  }
2452
689
  ],
2453
- "name": "updatePoolSetup",
690
+ "name": "nftMint",
2454
691
  "outputs": [],
2455
692
  "stateMutability": "nonpayable",
2456
693
  "type": "function"
@@ -2458,17 +695,22 @@
2458
695
  {
2459
696
  "inputs": [
2460
697
  {
2461
- "internalType": "NftId",
2462
- "name": "poolNftId",
2463
- "type": "uint96"
698
+ "internalType": "address",
699
+ "name": "from",
700
+ "type": "address"
2464
701
  },
2465
702
  {
2466
- "internalType": "StateId",
2467
- "name": "newState",
2468
- "type": "uint8"
703
+ "internalType": "address",
704
+ "name": "to",
705
+ "type": "address"
706
+ },
707
+ {
708
+ "internalType": "uint256",
709
+ "name": "tokenId",
710
+ "type": "uint256"
2469
711
  }
2470
712
  ],
2471
- "name": "updatePoolSetupState",
713
+ "name": "nftTransferFrom",
2472
714
  "outputs": [],
2473
715
  "stateMutability": "nonpayable",
2474
716
  "type": "function"
@@ -2476,156 +718,12 @@
2476
718
  {
2477
719
  "inputs": [
2478
720
  {
2479
- "internalType": "NftId",
2480
- "name": "productNftId",
2481
- "type": "uint96"
2482
- },
2483
- {
2484
- "components": [
2485
- {
2486
- "internalType": "contract IERC20Metadata",
2487
- "name": "token",
2488
- "type": "address"
2489
- },
2490
- {
2491
- "internalType": "contract TokenHandler",
2492
- "name": "tokenHandler",
2493
- "type": "address"
2494
- },
2495
- {
2496
- "internalType": "NftId",
2497
- "name": "distributionNftId",
2498
- "type": "uint96"
2499
- },
2500
- {
2501
- "internalType": "NftId",
2502
- "name": "poolNftId",
2503
- "type": "uint96"
2504
- },
2505
- {
2506
- "components": [
2507
- {
2508
- "internalType": "UFixed",
2509
- "name": "fractionalFee",
2510
- "type": "uint256"
2511
- },
2512
- {
2513
- "internalType": "uint256",
2514
- "name": "fixedFee",
2515
- "type": "uint256"
2516
- }
2517
- ],
2518
- "internalType": "struct Fee",
2519
- "name": "distributionFee",
2520
- "type": "tuple"
2521
- },
2522
- {
2523
- "components": [
2524
- {
2525
- "internalType": "UFixed",
2526
- "name": "fractionalFee",
2527
- "type": "uint256"
2528
- },
2529
- {
2530
- "internalType": "uint256",
2531
- "name": "fixedFee",
2532
- "type": "uint256"
2533
- }
2534
- ],
2535
- "internalType": "struct Fee",
2536
- "name": "productFee",
2537
- "type": "tuple"
2538
- },
2539
- {
2540
- "components": [
2541
- {
2542
- "internalType": "UFixed",
2543
- "name": "fractionalFee",
2544
- "type": "uint256"
2545
- },
2546
- {
2547
- "internalType": "uint256",
2548
- "name": "fixedFee",
2549
- "type": "uint256"
2550
- }
2551
- ],
2552
- "internalType": "struct Fee",
2553
- "name": "processingFee",
2554
- "type": "tuple"
2555
- },
2556
- {
2557
- "components": [
2558
- {
2559
- "internalType": "UFixed",
2560
- "name": "fractionalFee",
2561
- "type": "uint256"
2562
- },
2563
- {
2564
- "internalType": "uint256",
2565
- "name": "fixedFee",
2566
- "type": "uint256"
2567
- }
2568
- ],
2569
- "internalType": "struct Fee",
2570
- "name": "poolFee",
2571
- "type": "tuple"
2572
- },
2573
- {
2574
- "components": [
2575
- {
2576
- "internalType": "UFixed",
2577
- "name": "fractionalFee",
2578
- "type": "uint256"
2579
- },
2580
- {
2581
- "internalType": "uint256",
2582
- "name": "fixedFee",
2583
- "type": "uint256"
2584
- }
2585
- ],
2586
- "internalType": "struct Fee",
2587
- "name": "stakingFee",
2588
- "type": "tuple"
2589
- },
2590
- {
2591
- "components": [
2592
- {
2593
- "internalType": "UFixed",
2594
- "name": "fractionalFee",
2595
- "type": "uint256"
2596
- },
2597
- {
2598
- "internalType": "uint256",
2599
- "name": "fixedFee",
2600
- "type": "uint256"
2601
- }
2602
- ],
2603
- "internalType": "struct Fee",
2604
- "name": "performanceFee",
2605
- "type": "tuple"
2606
- },
2607
- {
2608
- "internalType": "bool",
2609
- "name": "isIntercepting",
2610
- "type": "bool"
2611
- },
2612
- {
2613
- "internalType": "address",
2614
- "name": "wallet",
2615
- "type": "address"
2616
- }
2617
- ],
2618
- "internalType": "struct ISetup.ProductSetupInfo",
2619
- "name": "setup",
2620
- "type": "tuple"
2621
- },
2622
- {
2623
- "internalType": "StateId",
2624
- "name": "newState",
2625
- "type": "uint8"
721
+ "internalType": "bytes4",
722
+ "name": "interfaceId",
723
+ "type": "bytes4"
2626
724
  }
2627
725
  ],
2628
- "name": "updateProductSetup",
726
+ "name": "registerInterface",
2629
727
  "outputs": [],
2630
728
  "stateMutability": "nonpayable",
2631
729
  "type": "function"
@@ -2633,17 +731,17 @@
2633
731
  {
2634
732
  "inputs": [
2635
733
  {
2636
- "internalType": "NftId",
2637
- "name": "productNftId",
2638
- "type": "uint96"
734
+ "internalType": "RoleId",
735
+ "name": "roleId",
736
+ "type": "uint64"
2639
737
  },
2640
738
  {
2641
- "internalType": "StateId",
2642
- "name": "newState",
2643
- "type": "uint8"
739
+ "internalType": "address",
740
+ "name": "account",
741
+ "type": "address"
2644
742
  }
2645
743
  ],
2646
- "name": "updateProductSetupState",
744
+ "name": "revokeRole",
2647
745
  "outputs": [],
2648
746
  "stateMutability": "nonpayable",
2649
747
  "type": "function"
@@ -2651,49 +749,12 @@
2651
749
  {
2652
750
  "inputs": [
2653
751
  {
2654
- "internalType": "NftId",
2655
- "name": "policyNftId",
2656
- "type": "uint96"
2657
- },
2658
- {
2659
- "internalType": "NumberId",
2660
- "name": "payoutId",
2661
- "type": "uint32"
2662
- },
2663
- {
2664
- "components": [
2665
- {
2666
- "internalType": "NumberId",
2667
- "name": "claimId",
2668
- "type": "uint32"
2669
- },
2670
- {
2671
- "internalType": "uint256",
2672
- "name": "amount",
2673
- "type": "uint256"
2674
- },
2675
- {
2676
- "internalType": "bytes",
2677
- "name": "data",
2678
- "type": "bytes"
2679
- },
2680
- {
2681
- "internalType": "Timestamp",
2682
- "name": "paidAt",
2683
- "type": "uint40"
2684
- }
2685
- ],
2686
- "internalType": "struct IPolicy.PayoutInfo",
2687
- "name": "payout",
2688
- "type": "tuple"
2689
- },
2690
- {
2691
- "internalType": "StateId",
2692
- "name": "newState",
2693
- "type": "uint8"
752
+ "internalType": "address",
753
+ "name": "newAuthority",
754
+ "type": "address"
2694
755
  }
2695
756
  ],
2696
- "name": "updateReferral",
757
+ "name": "setAuthority",
2697
758
  "outputs": [],
2698
759
  "stateMutability": "nonpayable",
2699
760
  "type": "function"
@@ -2701,17 +762,12 @@
2701
762
  {
2702
763
  "inputs": [
2703
764
  {
2704
- "internalType": "NftId",
2705
- "name": "policyNftId",
2706
- "type": "uint96"
2707
- },
2708
- {
2709
- "internalType": "StateId",
2710
- "name": "newState",
2711
- "type": "uint8"
765
+ "internalType": "contract BundleManager",
766
+ "name": "bundleManager",
767
+ "type": "address"
2712
768
  }
2713
769
  ],
2714
- "name": "updateReferralState",
770
+ "name": "setBundleManager",
2715
771
  "outputs": [],
2716
772
  "stateMutability": "nonpayable",
2717
773
  "type": "function"
@@ -2719,34 +775,12 @@
2719
775
  {
2720
776
  "inputs": [
2721
777
  {
2722
- "internalType": "RiskId",
2723
- "name": "riskId",
2724
- "type": "bytes8"
2725
- },
2726
- {
2727
- "components": [
2728
- {
2729
- "internalType": "NftId",
2730
- "name": "productNftId",
2731
- "type": "uint96"
2732
- },
2733
- {
2734
- "internalType": "bytes",
2735
- "name": "data",
2736
- "type": "bytes"
2737
- }
2738
- ],
2739
- "internalType": "struct IRisk.RiskInfo",
2740
- "name": "risk",
2741
- "type": "tuple"
2742
- },
2743
- {
2744
- "internalType": "StateId",
2745
- "name": "newState",
2746
- "type": "uint8"
778
+ "internalType": "contract InstanceAccessManager",
779
+ "name": "accessManager",
780
+ "type": "address"
2747
781
  }
2748
782
  ],
2749
- "name": "updateRisk",
783
+ "name": "setInstanceAccessManager",
2750
784
  "outputs": [],
2751
785
  "stateMutability": "nonpayable",
2752
786
  "type": "function"
@@ -2754,280 +788,148 @@
2754
788
  {
2755
789
  "inputs": [
2756
790
  {
2757
- "internalType": "RiskId",
2758
- "name": "riskId",
2759
- "type": "bytes8"
2760
- },
2761
- {
2762
- "internalType": "StateId",
2763
- "name": "newState",
2764
- "type": "uint8"
791
+ "internalType": "contract InstanceReader",
792
+ "name": "instanceReader",
793
+ "type": "address"
2765
794
  }
2766
795
  ],
2767
- "name": "updateRiskState",
796
+ "name": "setInstanceReader",
2768
797
  "outputs": [],
2769
798
  "stateMutability": "nonpayable",
2770
799
  "type": "function"
2771
- }
2772
- ],
2773
- "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000094565b6200002662000248565b6200003062000381565b6200003a620005e9565b6200007c6301ffc9a760e01b60005260036020527f28b0ef64f7e82d3b26f3fd404bd0151552f792965f39c29ae82c0a78df67af9c805460ff19166001179055565b600580546001600160a01b031916331790556200075f565b60dc600090815260208190527f5bd290414b404036f9d63146803dd83b59a8e1905062a5bfed8b0154d20a390d805460ff191660641790556001908190620000da60dc90565b60ff1660ff1681526020019081526020016000206000620001006200072d60201b60201c565b60ff1660ff1681526020019081526020016000206000620001266200073760201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019081906200015960dc90565b60ff1660ff16815260200190815260200160002060006200017f6200073760201b60201c565b60ff1660ff1681526020019081526020016000206000620001a56200072d60201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001908190620001d860dc90565b60ff1660ff1681526020019081526020016000206000620001fe6200073760201b60201c565b60ff1660ff1681526020019081526020016000206000620002246200073c60201b60201c565b60ff1681526020810191909152604001600020805460ff1916911515919091179055565b7f9db7038e59677010ca8f72fa448bad1b4f3c53346b666689163ccac31db467728054606460ff1991821681179092557f1a3062e9a24818c8281fcfb58ec4f3083a2f9a1314ac63f80d8d646661fdc5098054909116600190811790915560009182526020819052907f1bd07f61ef326b4de236f5b68f225f46ff76ee2c375ae31a06da201c49c70c1290620002dc606e90565b60ff1660ff1681526020019081526020016000206000620003026200072d60201b60201c565b60ff16815260208101919091526040016000908120805460ff191692151592909217909155600190819062000335606490565b60ff1660ff16815260200190815260200160002060006200035b6200073760201b60201c565b60ff1660ff1681526020019081526020016000206000620002246200074160201b60201c565b60d2600090815260208190527fc0d27dadfcf8ee0186a0f6fe9b5805a51e99869050491e4a3040efec012a214f805460ff1916600a1790556001908190620003c760d290565b60ff1660ff1681526020019081526020016000206000620003ed6200074660201b60201c565b60ff1660ff1681526020019081526020016000206000620004136200074b60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019081906200044660d290565b60ff1660ff16815260200190815260200160002060006200046c6200074660201b60201c565b60ff1660ff1681526020019081526020016000206000620004926200075060201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001908190620004c560d290565b60ff1660ff1681526020019081526020016000206000620004eb6200074660201b60201c565b60ff1660ff1681526020019081526020016000206000620005116200075560201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019081906200054460d290565b60ff1660ff16815260200190815260200160002060006200056a6200075560201b60201c565b60ff1660ff1681526020019081526020016000206000620005906200072d60201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001908190620005c360d290565b60ff1660ff1681526020019081526020016000206000620001fe6200072d60201b60201c565b60c8600090815260208190527fc5f2c791ab4e0b1a0b6c600884b07e98575b00ebd7c3166c4272a53bebf71403805460ff1916606417905560019081906200062f60c890565b60ff1660ff1681526020019081526020016000206000620006556200072d60201b60201c565b60ff1660ff16815260200190815260200160002060006200067b6200073760201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001908190620006ae60c890565b60ff1660ff1681526020019081526020016000206000620006d46200073760201b60201c565b60ff1660ff1681526020019081526020016000206000620006fa6200072d60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019081906200033560c890565b606490565b905090565b606e90565b60c890565b60d290565b600a90565b601490565b601e90565b6000602862000732565b6147fd806200076f6000396000f3fe608060405234801561001057600080fd5b506004361061041d5760003560e01c80637cef48421161022b578063bd5947e311610130578063e5f6cd27116100b8578063f48016ce11610087578063f48016ce1461099f578063f7bc431c146109b2578063f8b648ac1461059d578063fe1f18d6146109c5578063fed3d63f146109d857600080fd5b8063e5f6cd271461093d578063e7cd37d41461094e578063e8951ee614610527578063e9e96c701461096157600080fd5b8063ca600b1c116100ff578063ca600b1c14610907578063d2f21a291461090f578063d5b221bd14610542578063dee3262314610922578063e1033e7d1461093557600080fd5b8063bd5947e3146108d9578063bf1db3f9146108ec578063bf7e214f146108ff578063c2f1a2d21461054257600080fd5b80639d7421f4116101b3578063a76ee01811610182578063a76ee0181461088d578063a8989675146108a0578063a9cea142146108b3578063b68ec1461461059d578063bc8d4000146108c657600080fd5b80639d7421f4146107b65780639df0280b14610527578063a13df2ab146107c9578063a5961b4c146107dc57600080fd5b80638eaa6ac0116101fa5780638eaa6ac01461073c5780638fb360371461075c57806391ff6eaa1461077d578063976b0a77146107905780639a960d52146107a357600080fd5b80637cef48421461072157806382f65adb1461059d578063893d20e8146107345780638dc77f421461052757600080fd5b806340529b0f1161033157806360aa32aa116102b95780636fa29853116102885780636fa29853146106eb57806375b238fc146106f357806375c82776146106fb5780637a415802146105425780637a9e5e4b1461070e57600080fd5b806360aa32aa1461069457806361f5f420146106a7578063644c45e0146106b85780636b9bf08b146106e357600080fd5b806354f6127f1161030057806354f6127f146106475780635ab1bd53146106675780635d4345cc146105275780635dfa73db146106785780636071a68e1461068157600080fd5b806340529b0f14610527578063422c9d00146106195780634288121d1461062c578063468a18671461063457600080fd5b8063138461e0116103b457806333bb0a971161038357806333bb0a971461059d57806337f135d7146105b057806338a699a4146105cd5780633ca7c02a146105e05780633fc5ab981461060657600080fd5b8063138461e01461053a5780631c45fe7a146105425780631eff4b22146105555780632f61088a1461058a57600080fd5b80630d358181116103f05780630d358181146104d85780630f526f7d146104fe5780630fec111c1461051157806310203d2c1461052757600080fd5b806301ffc9a71461042257806302cd30711461046457806309648a9d146104895780630b24cf5f146104c3575b600080fd5b61044f610430366004613009565b6001600160e01b03191660009081526003602052604090205460ff1690565b60405190151581526020015b60405180910390f35b6007546001600160a01b03165b6040516001600160a01b03909116815260200161045b565b6104b1610497366004613033565b600090815260026020526040902054610100900460ff1690565b60405160ff909116815260200161045b565b6104d66104d136600461323d565b6109e0565b005b6104b16104e6366004613282565b60ff9081166000908152602081905260409020541690565b6104d661050c36600461329f565b610a24565b610519610a41565b60405161045b929190613328565b6104d661053536600461329f565b610bc3565b6104d6610bd8565b6104d66105503660046134f7565b610e02565b61057c7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161045b565b6104d66105983660046135e6565b610e43565b6104d66105ab366004613635565b610ede565b6105b8600081565b60405163ffffffff909116815260200161045b565b61044f6105db366004613033565b610f09565b6105ee6001600160401b0381565b6040516001600160401b03909116815260200161045b565b6104d661061436600461374d565b610f9a565b6104d66106273660046137b0565b610fc0565b61047161111f565b61057c6106423660046137cd565b6111a5565b61065a610655366004613033565b61123e565b60405161045b91906137ea565b6004546001600160a01b0316610471565b6105ee61271081565b6104d661068f3660046137fd565b6112e3565b6104d66106a23660046138f8565b611309565b6008546001600160a01b0316610471565b600454600160a01b90046001600160601b03166040516001600160601b03909116815260200161045b565b610471611331565b61047161134c565b6105ee600081565b6104d661070936600461397c565b611367565b6104d661071c3660046137b0565b61138d565b6104d661072f3660046139d4565b611410565b61047161149a565b61074f61074a366004613033565b61157b565b60405161045b9190613a3c565b6107646116bc565b6040516001600160e01b0319909116815260200161045b565b6104d661078b366004613b68565b6116f5565b6104d661079e366004613b96565b61171d565b6104d66107b1366004613d34565b611902565b6104d66107c4366004613d7b565b611928565b61057c6107d73660046137cd565b61194e565b6108806107ea366004613033565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260026020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b60405161045b9190613dd2565b6104d661089b366004613de0565b61197b565b6104d66108ae366004613e27565b611a16565b6104d66108c1366004613e67565b611b07565b6104d66108d4366004613ea8565b611b2f565b6104d66108e7366004613eed565b611b55565b61044f6108fa366004613282565b611b7d565b610471611bca565b610471611be6565b6104d661091d36600461329f565b611c01565b6104d661093036600461329f565b611c18565b610471611c2f565b6006546001600160a01b0316610471565b6104d661095c366004613f2d565b611c4a565b61044f61096f366004613e27565b60ff9283166000908152600160209081526040808320948616835293815283822092851682529190915220541690565b61057c6109ad366004613f6b565b611c72565b6104d66109c03660046137b0565b611cfd565b6104d66109d336600461329f565b611dc5565b610471611dda565b6109ed335b600036611df5565b610a206109fb836078611efb565b82604051602001610a0c9190613f99565b604051602081830303815290604052611f47565b5050565b610a2d336109e5565b610a20610a3b83608c611efb565b82611f51565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610ac46004546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610b0c61149a565b6001600160a01b03168152602001826001018054610b2990613ff9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5590613ff9565b8015610ba25780601f10610b7757610100808354040283529160200191610ba2565b820191906000526020600020905b815481529060010190602001808311610b8557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b610bcc336109e5565b610a20610a3b836111a5565b600480546040516330b8415f60e01b8152600160a01b9091046001600160601b03169181019190915273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c619190614033565b15610caa57600480546040516316322c0f60e31b81526001600160a01b03821692810192909252600160a01b90046001600160601b031660248201526044015b60405180910390fd5b6004546001600160a01b0316610cd35760405163cf29926160e01b815260040160405180910390fd5b6004805460405163c3c5a54760e01b8152309281018390526001600160a01b039091169063c3c5a54790602401602060405180830381865afa158015610d1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d419190614033565b610d69576040516372657a5160e01b81526001600160a01b0382166004820152602401610ca1565b60048054604051636939560f60e11b81526001600160a01b038481169382019390935291169063d272ac1e90602401602060405180830381865afa158015610db5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd99190614050565b600460146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610e0b336109e5565b610e3d610e17856111a5565b83604051602001610e28919061406d565b60405160208183030381529060405283611f5b565b50505050565b610e4c336109e5565b6040516355ee627560e01b81526001600160c01b031983166004820152610a209073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd91906140c0565b82604051602001610a0c91906140d9565b610ee7336109e5565b610f04610ef3846111a5565b82604051602001610a0c919061406d565b505050565b60008181526002602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190614033565b92915050565b610fa3336109e5565b610f04610faf8461194e565b83604051602001610e289190614107565b610fc9336109e5565b6008546001600160a01b0316156110195760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610ca1565b6110a2816001600160a01b0316637e7986696040518163ffffffff1660e01b8152600401602060405180830381865afa15801561105a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107e9190614050565b600454600160a01b90046001600160601b03166001600160601b0390811691161490565b6110fd5760405162461bcd60e51b815260206004820152602660248201527f4e4654204944206f662042756e646c654d616e6167657220646f6573206e6f74604482015265040dac2e8c6d60d31b6064820152608401610ca1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6004546000906001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff9091166004820152600360248201526044015b602060405180830381865afa15801561117c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a091906141bb565b905090565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d25b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af415801561121a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9491906140c0565b600081815260026020526040902060010180546060919061125e90613ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461128a90613ff9565b80156112d75780601f106112ac576101008083540402835291602001916112d7565b820191906000526020600020905b8154815290600101906020018083116112ba57829003601f168201915b50505050509050919050565b6112ec336109e5565b610a206112f88361194e565b82604051602001610a0c9190614107565b611312336109e5565b610f0461132084608c611efb565b83604051602001610e2891906141d8565b6004546000906001600160a01b031663d39e6043608c611136565b6004546000906001600160a01b031663d39e60436064611136565b611370336109e5565b610e3d61137c856111a5565b83604051602001610e289190614298565b33611396611bca565b6001600160a01b0316816001600160a01b0316146113d15760405162d1953b60e31b81526001600160a01b0382166004820152602401610ca1565b816001600160a01b03163b600003611407576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ca1565b610a2082611f66565b611419336109e5565b6040516355ee627560e01b81526001600160c01b031983166004820152610a209073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015611476573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b91906140c0565b600480546040516330b8415f60e01b8152600160a01b9091046001600160601b03169181019190915260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611502573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115269190614033565b1561156b5760048054604051631c5da14d60e11b8152600160a01b82046001600160601b0316928101929092526001600160a01b0316906338bb429a9060240161115f565b506005546001600160a01b031690565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260026020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c0820152928352600181018054919284019161163390613ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461165f90613ff9565b80156116ac5780601f10611681576101008083540402835291602001916116ac565b820191906000526020600020905b81548152906001019060200180831161168f57829003601f168201915b5050505050815250509050919050565b6000805160206147a8833981519152805460009190600160a01b900460ff166116e65760006116ef565b638fb3603760e01b5b91505090565b6116fe336109e5565b610a2061170c83606e611efb565b82604051602001610a0c91906142c8565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156117625750825b90506000826001600160401b0316600114801561177e5750303b155b90508115801561178c575080155b156117aa5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156117d457845460ff60401b1916600160401b1785555b600554600160a01b900460ff16156118455760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b6064820152608401610ca1565b61184e89611fc7565b600680546001600160a01b0319166001600160a01b038b1617905561188e8888611876604690565b60008a60405180602001604052806000815250611fdb565b61189e6318da1e1f60e11b6120b0565b6005805460ff60a01b1916600160a01b17905583156118f757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b61190b336109e5565b610f04611917846111a5565b83604051602001610e2891906143f2565b611931336109e5565b610f0461193d846111a5565b82604051602001610a0c9190614298565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc6111ce565b611984336109e5565b6040516355ee627560e01b81526001600160c01b031984166004820152610f049073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af41580156119e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0591906140c0565b83604051602001610e2891906140d9565b60ff8381166000908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af4158015611a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9f9190614033565b15611aa957505050565b60ff808416600090815260016020908152604080832086851684528252808320858516845290915290205416610f0457604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610ca1565b611b10336109e5565b610f04611b1e84606e611efb565b83604051602001610e2891906142c8565b611b38336109e5565b610a20611b44836111a5565b82604051602001610a0c91906143f2565b611b5e336109e5565b610f04611b6c846078611efb565b83604051602001610e289190613f99565b60ff81811660009081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401610f53565b6000805160206147a8833981519152546001600160a01b031690565b6004546000906001600160a01b031663d39e60436078611136565b611c0a336109e5565b610a20610a3b836078611efb565b611c21336109e5565b610a20610a3b83606e611efb565b6004546000906001600160a01b031663d39e604360d2611136565b611c53336109e5565b610a20611c6183608c611efb565b82604051602001610a0c91906141d8565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af4158015611cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf691906140c0565b9392505050565b611d06336109e5565b611d47816001600160a01b0316637e7986696040518163ffffffff1660e01b8152600401602060405180830381865afa15801561105a573d6000803e3d6000fd5b611da35760405162461bcd60e51b815260206004820152602760248201527f4e4654204944206f6620496e7374616e636552656164657220646f6573206e6f6044820152660e840dac2e8c6d60cb1b6064820152608401610ca1565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611dce336109e5565b610a20610a3b8361194e565b6004546000906001600160a01b031663d39e604360dc611136565b6000805160206147a8833981519152600080611e30611e12611bca565b8730611e22600460008a8c614533565b611e2b9161455d565b6120d5565b9150915081611ef35763ffffffff811615611ed057825460ff60a01b1916600160a01b178355611e5e611bca565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611e8d9392919061458d565b600060405180830381600087803b158015611ea757600080fd5b505af1158015611ebb573d6000803e3d6000fd5b5050845460ff60a01b1916855550611ef39050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ca1565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401611cb5565b610a2082826121e1565b610a208282612603565b610f04838383612937565b6000805160206147a883398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611fcf612dd2565b611fd881612e1d565b50565b61201c6301ffc9a760e01b60005260036020527f28b0ef64f7e82d3b26f3fd404bd0151552f792965f39c29ae82c0a78df67af9c805460ff19166001179055565b6120268287612e2e565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016120968382614613565b506120a76303fb044760e21b6120b0565b50505050505050565b6001600160e01b0319166000908152600360205260409020805460ff19166001179055565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161214491906146d2565b600060405180830381855afa9150503d806000811461217f576040519150601f19603f3d011682016040523d82523d6000602084013e612184565b606091505b509150915081156121d65760408151106121b657808060200190518101906121ac91906146ee565b90945092506121d6565b60208151106121d657808060200190518101906121d39190614033565b93505b505094509492505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612234573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612258919061471d565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af41580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d19190614033565b61231d5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610ca1565b600083815260026020526040908190208054915163037c8cb160e51b815261010090920460ff1660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af4158015612386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123aa9190614033565b6123f65760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610ca1565b3343600061240385611b7d565b61240e576064612424565b60ff808616600090815260208190526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b9190910217855560008881526002602052604090209091506001016124ae8782614613565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612521573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612545919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b9919061473a565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a0015b60405180910390a150505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126799190614033565b6126c55760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610ca1565b600082815260026020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612731573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127559190614033565b6127a15760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610ca1565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166127e54390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289b919061471d565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156128eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290f919061473a565b87868632876040516129279796959493929190614757565b60405180910390a1505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612989573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ad9190614033565b6129f95760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610ca1565b600083815260026020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a899190614033565b612ad55760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610ca1565b6000858152600260205260409020600101612af08582614613565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416612b354390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612beb919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5f919061473a565b8786863287604051612c779796959493929190614757565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612cf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d15919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d89919061473a565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0016125f2565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16612e1b57604051631afcd79f60e31b815260040160405180910390fd5b565b612e25612dd2565b611fd881611f66565b6001600160a01b038216612e845760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610ca1565b600580546001600160a01b0319166001600160a01b038416179055610a20816004546001600160a01b031615612edf576004805460405163fcdbf2d960e01b81526001600160a01b0390911691810191909152602401610ca1565b6001600160a01b038116612f065760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612f3c5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ca1565b600480546001600160a01b0319166001600160a01b03831690811782556040516301ffc9a760e01b815263102da10360e01b92810192909252906301ffc9a790602401602060405180830381865afa925050508015612fb8575060408051601f3d908101601f19168201909252612fb591810190614033565b60015b612fe05760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ca1565b80610a205760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610ca1565b60006020828403121561301b57600080fd5b81356001600160e01b031981168114611cf657600080fd5b60006020828403121561304557600080fd5b5035919050565b6001600160601b0381168114611fd857600080fd5b803561306c8161304c565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156130a9576130a9613071565b60405290565b604051608081016001600160401b03811182821017156130a9576130a9613071565b60405161012081016001600160401b03811182821017156130a9576130a9613071565b60405161018081016001600160401b03811182821017156130a9576130a9613071565b60405161020081016001600160401b03811182821017156130a9576130a9613071565b6001600160a01b0381168114611fd857600080fd5b803561306c8161313a565b60006040828403121561316c57600080fd5b613174613087565b9050813581526020820135602082015292915050565b8015158114611fd857600080fd5b803561306c8161318a565b600060c082840312156131b557600080fd5b60405160a081018181106001600160401b03821117156131d7576131d7613071565b60405290508082356131e88161304c565b815260208301356131f88161313a565b602082015261320a846040850161315a565b6040820152608083013561321d8161318a565b606082015260a08301356132308161313a565b6080919091015292915050565b60008060e0838503121561325057600080fd5b823561325b8161304c565b915061326a84602085016131a3565b90509250929050565b60ff81168114611fd857600080fd5b60006020828403121561329457600080fd5b8135611cf681613273565b600080604083850312156132b257600080fd5b82356132bd8161304c565b915060208301356132cd81613273565b809150509250929050565b60005b838110156132f35781810151838201526020016132db565b50506000910152565b600081518084526133148160208601602086016132d8565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161336c60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526133b26101208401826132fc565b905082810360208401526133c681856132fc565b95945050505050565b63ffffffff81168114611fd857600080fd5b600082601f8301126133f257600080fd5b81356001600160401b038082111561340c5761340c613071565b604051601f8301601f19908116603f0116810190828211818310171561343457613434613071565b8160405283815286602085880101111561344d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803564ffffffffff8116811461306c57600080fd5b60006080828403121561349457600080fd5b61349c6130af565b905081356134a9816133cf565b81526020828101359082015260408201356001600160401b038111156134ce57600080fd5b6134da848285016133e1565b6040830152506134ec6060830161346d565b606082015292915050565b6000806000806080858703121561350d57600080fd5b84356135188161304c565b93506020850135613528816133cf565b925060408501356001600160401b0381111561354357600080fd5b61354f87828801613482565b925050606085013561356081613273565b939692955090935050565b6001600160c01b031981168114611fd857600080fd5b803561306c8161356b565b60006040828403121561359e57600080fd5b6135a6613087565b905081356135b38161304c565b815260208201356001600160401b038111156135ce57600080fd5b6135da848285016133e1565b60208301525092915050565b600080604083850312156135f957600080fd5b82356136048161356b565b915060208301356001600160401b0381111561361f57600080fd5b61362b8582860161358c565b9150509250929050565b60008060006060848603121561364a57600080fd5b83356136558161304c565b92506020840135613665816133cf565b915060408401356001600160401b0381111561368057600080fd5b61368c86828701613482565b9150509250925092565b600061014082840312156136a957600080fd5b6136b16130d1565b90506136bc82613061565b81526136cb836020840161315a565b602082015260608201356001600160401b038111156136e957600080fd5b6136f5848285016133e1565b6040830152506080820135606082015260a0820135608082015260c082013560a082015260e082013560c082015261010061373181840161346d565b60e0830152613743610120840161346d565b9082015292915050565b60008060006060848603121561376257600080fd5b833561376d8161304c565b925060208401356001600160401b0381111561378857600080fd5b61379486828701613696565b92505060408401356137a581613273565b809150509250925092565b6000602082840312156137c257600080fd5b8135611cf68161313a565b6000602082840312156137df57600080fd5b8135611cf68161304c565b602081526000611cf660208301846132fc565b6000806040838503121561381057600080fd5b823561381b8161304c565b915060208301356001600160401b0381111561383657600080fd5b61362b85828601613696565b6000610180828403121561385557600080fd5b61385d6130d1565b905061386882613061565b81526138766020830161314f565b602082015260408201356040820152613892836060840161315a565b60608201526138a48360a0840161315a565b60808201526138b68360e0840161315a565b60a08201526138c86101208301613198565b60c08201526138da6101408301613198565b60e08201526138ec610160830161314f565b61010082015292915050565b60008060006101c0848603121561390e57600080fd5b83356139198161304c565b92506139288560208601613842565b91506101a08401356137a581613273565b60006080828403121561394b57600080fd5b6139536130af565b9050813581526020820135602082015260408201356001600160401b038111156134ce57600080fd5b6000806000806080858703121561399257600080fd5b843561399d8161304c565b935060208501356139ad816133cf565b925060408501356001600160401b038111156139c857600080fd5b61354f87828801613939565b600080604083850312156139e757600080fd5b82356132bd8161356b565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152613a4e6020820183516139f2565b6000602083015160c080840152613a6860e08401826132fc565b949350505050565b60006102408284031215613a8357600080fd5b613a8b6130f4565b9050613a968261314f565b8152613aa46020830161314f565b6020820152613ab560408301613061565b6040820152613ac660608301613061565b6060820152613ad8836080840161315a565b6080820152613aea8360c0840161315a565b60a0820152610100613afe8482850161315a565b60c0830152610140613b128582860161315a565b60e0840152613b2585610180860161315a565b82840152613b37856101c0860161315a565b610120840152613b4a6102008501613198565b9083015250613b5c610220830161314f565b61016082015292915050565b6000806102608385031215613b7c57600080fd5b8235613b878161304c565b915061326a8460208501613a70565b60008060008060808587031215613bac57600080fd5b8435613bb78161313a565b93506020850135613bc78161313a565b92506040850135613bd78161304c565b915060608501356135608161313a565b803561ffff8116811461306c57600080fd5b60006102008284031215613c0c57600080fd5b613c14613117565b9050613c1f82613061565b8152613c2d60208301613061565b6020820152613c3e60408301613581565b6040820152613c4f60608301613581565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e0820152610100808301356001600160401b0380821115613c9857600080fd5b613ca4868387016133e1565b83850152610120925082850135915080821115613cc057600080fd5b50613ccd858286016133e1565b828401525050610140613ce1818401613be7565b90820152610160613cf3838201613be7565b9082015261018082810135908201526101a0613d1081840161346d565b908201526101c0613d2283820161346d565b908201526101e061374383820161346d565b600080600060608486031215613d4957600080fd5b8335613d548161304c565b925060208401356001600160401b03811115613d6f57600080fd5b61379486828701613bf9565b600080600060608486031215613d9057600080fd5b8335613d9b8161304c565b92506020840135613dab816133cf565b915060408401356001600160401b03811115613dc657600080fd5b61368c86828701613939565b60a08101610f9482846139f2565b600080600060608486031215613df557600080fd5b8335613e008161356b565b925060208401356001600160401b03811115613e1b57600080fd5b6137948682870161358c565b600080600060608486031215613e3c57600080fd5b8335613e4781613273565b92506020840135613e5781613273565b915060408401356137a581613273565b60008060006102808486031215613e7d57600080fd5b8335613e888161304c565b9250613e978560208601613a70565b91506102608401356137a581613273565b60008060408385031215613ebb57600080fd5b8235613ec68161304c565b915060208301356001600160401b03811115613ee157600080fd5b61362b85828601613bf9565b60008060006101008486031215613f0357600080fd5b8335613f0e8161304c565b9250613f1d85602086016131a3565b915060e08401356137a581613273565b6000806101a08385031215613f4157600080fd5b8235613f4c8161304c565b915061326a8460208501613842565b60ff1981168114611fd857600080fd5b60008060408385031215613f7e57600080fd5b8235613f8981613273565b915060208301356132cd81613f5b565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b600181811c9082168061400d57607f821691505b60208210810361402d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561404557600080fd5b8151611cf68161318a565b60006020828403121561406257600080fd5b8151611cf68161304c565b6020815263ffffffff82511660208201526020820151604082015260006040830151608060608401526140a360a08401826132fc565b905064ffffffffff60608501511660808401528091505092915050565b6000602082840312156140d257600080fd5b5051919050565b602081526001600160601b03825116602082015260006020830151604080840152613a6860608401826132fc565b602081526141216020820183516001600160601b03169052565b6000602083015161413f604084018280518252602090810151910152565b50604083015161014080608085015261415c6101608501836132fc565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100818187015260e087015191506141a461012087018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6000602082840312156141cd57600080fd5b8151611cf68161313a565b81516001600160601b03168152602080830151610180830191614205908401826001600160a01b03169052565b5060408301516040830152606083015161422c606084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c08301518015156101208401525060e0830151801515610140840152506101008301516001600160a01b0381166101608401525b5092915050565b60208152815160208201526020820151604082015260006040830151608060608401526140a360a08401826132fc565b81516001600160a01b03168152610240810160208301516142f460208401826001600160a01b03169052565b50604083015161430f60408401826001600160601b03169052565b50606083015161432a60608401826001600160601b03169052565b506080830151614347608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c083015161010061437d8185018380518252602090810151910152565b60e0850151915061014061439d8186018480518252602090810151910152565b9085015180516101808601526020908101516101a086015261012086015180516101c087015201516101e08501528401511515610200840152506101608301516001600160a01b038116610220840152614291565b6020815261440c6020820183516001600160601b03169052565b6000602083015161442860408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e083015161010081818501528085015191505061020061012081818601526144a06102208601846132fc565b9250808601519050610140601f1986850301818701526144c084836132fc565b9350808701519150506101606144db8187018361ffff169052565b86015190506101806144f28682018361ffff169052565b8601516101a08681019190915286015190506101c06145198187018364ffffffffff169052565b86015190506101e06141a48682018364ffffffffff169052565b6000808585111561454357600080fd5b8386111561455057600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156145855780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b601f821115610f0457600081815260208120601f850160051c810160208610156145f45750805b601f850160051c820191505b81811015611ef357828155600101614600565b81516001600160401b0381111561462c5761462c613071565b6146408161463a8454613ff9565b846145cd565b602080601f831160018114614675576000841561465d5750858301515b600019600386901b1c1916600185901b178555611ef3565b600085815260208120601f198616915b828110156146a457888601518255948401946001909101908401614685565b50858210156146c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516146e48184602087016132d8565b9190910192915050565b6000806040838503121561470157600080fd5b825161470c8161318a565b60208401519092506132cd816133cf565b60006020828403121561472f57600080fd5b8151611cf681613273565b60006020828403121561474c57600080fd5b8151611cf681613f5b565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a264697066735822122083e5b7971426dfd7f3c1585b7a0b6d0020d64fe71444a49e1fbdfc235297435264736f6c63430008140033",
2774
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061041d5760003560e01c80637cef48421161022b578063bd5947e311610130578063e5f6cd27116100b8578063f48016ce11610087578063f48016ce1461099f578063f7bc431c146109b2578063f8b648ac1461059d578063fe1f18d6146109c5578063fed3d63f146109d857600080fd5b8063e5f6cd271461093d578063e7cd37d41461094e578063e8951ee614610527578063e9e96c701461096157600080fd5b8063ca600b1c116100ff578063ca600b1c14610907578063d2f21a291461090f578063d5b221bd14610542578063dee3262314610922578063e1033e7d1461093557600080fd5b8063bd5947e3146108d9578063bf1db3f9146108ec578063bf7e214f146108ff578063c2f1a2d21461054257600080fd5b80639d7421f4116101b3578063a76ee01811610182578063a76ee0181461088d578063a8989675146108a0578063a9cea142146108b3578063b68ec1461461059d578063bc8d4000146108c657600080fd5b80639d7421f4146107b65780639df0280b14610527578063a13df2ab146107c9578063a5961b4c146107dc57600080fd5b80638eaa6ac0116101fa5780638eaa6ac01461073c5780638fb360371461075c57806391ff6eaa1461077d578063976b0a77146107905780639a960d52146107a357600080fd5b80637cef48421461072157806382f65adb1461059d578063893d20e8146107345780638dc77f421461052757600080fd5b806340529b0f1161033157806360aa32aa116102b95780636fa29853116102885780636fa29853146106eb57806375b238fc146106f357806375c82776146106fb5780637a415802146105425780637a9e5e4b1461070e57600080fd5b806360aa32aa1461069457806361f5f420146106a7578063644c45e0146106b85780636b9bf08b146106e357600080fd5b806354f6127f1161030057806354f6127f146106475780635ab1bd53146106675780635d4345cc146105275780635dfa73db146106785780636071a68e1461068157600080fd5b806340529b0f14610527578063422c9d00146106195780634288121d1461062c578063468a18671461063457600080fd5b8063138461e0116103b457806333bb0a971161038357806333bb0a971461059d57806337f135d7146105b057806338a699a4146105cd5780633ca7c02a146105e05780633fc5ab981461060657600080fd5b8063138461e01461053a5780631c45fe7a146105425780631eff4b22146105555780632f61088a1461058a57600080fd5b80630d358181116103f05780630d358181146104d85780630f526f7d146104fe5780630fec111c1461051157806310203d2c1461052757600080fd5b806301ffc9a71461042257806302cd30711461046457806309648a9d146104895780630b24cf5f146104c3575b600080fd5b61044f610430366004613009565b6001600160e01b03191660009081526003602052604090205460ff1690565b60405190151581526020015b60405180910390f35b6007546001600160a01b03165b6040516001600160a01b03909116815260200161045b565b6104b1610497366004613033565b600090815260026020526040902054610100900460ff1690565b60405160ff909116815260200161045b565b6104d66104d136600461323d565b6109e0565b005b6104b16104e6366004613282565b60ff9081166000908152602081905260409020541690565b6104d661050c36600461329f565b610a24565b610519610a41565b60405161045b929190613328565b6104d661053536600461329f565b610bc3565b6104d6610bd8565b6104d66105503660046134f7565b610e02565b61057c7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161045b565b6104d66105983660046135e6565b610e43565b6104d66105ab366004613635565b610ede565b6105b8600081565b60405163ffffffff909116815260200161045b565b61044f6105db366004613033565b610f09565b6105ee6001600160401b0381565b6040516001600160401b03909116815260200161045b565b6104d661061436600461374d565b610f9a565b6104d66106273660046137b0565b610fc0565b61047161111f565b61057c6106423660046137cd565b6111a5565b61065a610655366004613033565b61123e565b60405161045b91906137ea565b6004546001600160a01b0316610471565b6105ee61271081565b6104d661068f3660046137fd565b6112e3565b6104d66106a23660046138f8565b611309565b6008546001600160a01b0316610471565b600454600160a01b90046001600160601b03166040516001600160601b03909116815260200161045b565b610471611331565b61047161134c565b6105ee600081565b6104d661070936600461397c565b611367565b6104d661071c3660046137b0565b61138d565b6104d661072f3660046139d4565b611410565b61047161149a565b61074f61074a366004613033565b61157b565b60405161045b9190613a3c565b6107646116bc565b6040516001600160e01b0319909116815260200161045b565b6104d661078b366004613b68565b6116f5565b6104d661079e366004613b96565b61171d565b6104d66107b1366004613d34565b611902565b6104d66107c4366004613d7b565b611928565b61057c6107d73660046137cd565b61194e565b6108806107ea366004613033565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260026020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b60405161045b9190613dd2565b6104d661089b366004613de0565b61197b565b6104d66108ae366004613e27565b611a16565b6104d66108c1366004613e67565b611b07565b6104d66108d4366004613ea8565b611b2f565b6104d66108e7366004613eed565b611b55565b61044f6108fa366004613282565b611b7d565b610471611bca565b610471611be6565b6104d661091d36600461329f565b611c01565b6104d661093036600461329f565b611c18565b610471611c2f565b6006546001600160a01b0316610471565b6104d661095c366004613f2d565b611c4a565b61044f61096f366004613e27565b60ff9283166000908152600160209081526040808320948616835293815283822092851682529190915220541690565b61057c6109ad366004613f6b565b611c72565b6104d66109c03660046137b0565b611cfd565b6104d66109d336600461329f565b611dc5565b610471611dda565b6109ed335b600036611df5565b610a206109fb836078611efb565b82604051602001610a0c9190613f99565b604051602081830303815290604052611f47565b5050565b610a2d336109e5565b610a20610a3b83608c611efb565b82611f51565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610ac46004546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610b0c61149a565b6001600160a01b03168152602001826001018054610b2990613ff9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5590613ff9565b8015610ba25780601f10610b7757610100808354040283529160200191610ba2565b820191906000526020600020905b815481529060010190602001808311610b8557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b610bcc336109e5565b610a20610a3b836111a5565b600480546040516330b8415f60e01b8152600160a01b9091046001600160601b03169181019190915273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c619190614033565b15610caa57600480546040516316322c0f60e31b81526001600160a01b03821692810192909252600160a01b90046001600160601b031660248201526044015b60405180910390fd5b6004546001600160a01b0316610cd35760405163cf29926160e01b815260040160405180910390fd5b6004805460405163c3c5a54760e01b8152309281018390526001600160a01b039091169063c3c5a54790602401602060405180830381865afa158015610d1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d419190614033565b610d69576040516372657a5160e01b81526001600160a01b0382166004820152602401610ca1565b60048054604051636939560f60e11b81526001600160a01b038481169382019390935291169063d272ac1e90602401602060405180830381865afa158015610db5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd99190614050565b600460146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610e0b336109e5565b610e3d610e17856111a5565b83604051602001610e28919061406d565b60405160208183030381529060405283611f5b565b50505050565b610e4c336109e5565b6040516355ee627560e01b81526001600160c01b031983166004820152610a209073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd91906140c0565b82604051602001610a0c91906140d9565b610ee7336109e5565b610f04610ef3846111a5565b82604051602001610a0c919061406d565b505050565b60008181526002602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190614033565b92915050565b610fa3336109e5565b610f04610faf8461194e565b83604051602001610e289190614107565b610fc9336109e5565b6008546001600160a01b0316156110195760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610ca1565b6110a2816001600160a01b0316637e7986696040518163ffffffff1660e01b8152600401602060405180830381865afa15801561105a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107e9190614050565b600454600160a01b90046001600160601b03166001600160601b0390811691161490565b6110fd5760405162461bcd60e51b815260206004820152602660248201527f4e4654204944206f662042756e646c654d616e6167657220646f6573206e6f74604482015265040dac2e8c6d60d31b6064820152608401610ca1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6004546000906001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff9091166004820152600360248201526044015b602060405180830381865afa15801561117c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a091906141bb565b905090565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d25b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af415801561121a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9491906140c0565b600081815260026020526040902060010180546060919061125e90613ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461128a90613ff9565b80156112d75780601f106112ac576101008083540402835291602001916112d7565b820191906000526020600020905b8154815290600101906020018083116112ba57829003601f168201915b50505050509050919050565b6112ec336109e5565b610a206112f88361194e565b82604051602001610a0c9190614107565b611312336109e5565b610f0461132084608c611efb565b83604051602001610e2891906141d8565b6004546000906001600160a01b031663d39e6043608c611136565b6004546000906001600160a01b031663d39e60436064611136565b611370336109e5565b610e3d61137c856111a5565b83604051602001610e289190614298565b33611396611bca565b6001600160a01b0316816001600160a01b0316146113d15760405162d1953b60e31b81526001600160a01b0382166004820152602401610ca1565b816001600160a01b03163b600003611407576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ca1565b610a2082611f66565b611419336109e5565b6040516355ee627560e01b81526001600160c01b031983166004820152610a209073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015611476573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b91906140c0565b600480546040516330b8415f60e01b8152600160a01b9091046001600160601b03169181019190915260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611502573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115269190614033565b1561156b5760048054604051631c5da14d60e11b8152600160a01b82046001600160601b0316928101929092526001600160a01b0316906338bb429a9060240161115f565b506005546001600160a01b031690565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260026020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c0820152928352600181018054919284019161163390613ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461165f90613ff9565b80156116ac5780601f10611681576101008083540402835291602001916116ac565b820191906000526020600020905b81548152906001019060200180831161168f57829003601f168201915b5050505050815250509050919050565b6000805160206147a8833981519152805460009190600160a01b900460ff166116e65760006116ef565b638fb3603760e01b5b91505090565b6116fe336109e5565b610a2061170c83606e611efb565b82604051602001610a0c91906142c8565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156117625750825b90506000826001600160401b0316600114801561177e5750303b155b90508115801561178c575080155b156117aa5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156117d457845460ff60401b1916600160401b1785555b600554600160a01b900460ff16156118455760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b6064820152608401610ca1565b61184e89611fc7565b600680546001600160a01b0319166001600160a01b038b1617905561188e8888611876604690565b60008a60405180602001604052806000815250611fdb565b61189e6318da1e1f60e11b6120b0565b6005805460ff60a01b1916600160a01b17905583156118f757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b61190b336109e5565b610f04611917846111a5565b83604051602001610e2891906143f2565b611931336109e5565b610f0461193d846111a5565b82604051602001610a0c9190614298565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc6111ce565b611984336109e5565b6040516355ee627560e01b81526001600160c01b031984166004820152610f049073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af41580156119e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0591906140c0565b83604051602001610e2891906140d9565b60ff8381166000908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af4158015611a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9f9190614033565b15611aa957505050565b60ff808416600090815260016020908152604080832086851684528252808320858516845290915290205416610f0457604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610ca1565b611b10336109e5565b610f04611b1e84606e611efb565b83604051602001610e2891906142c8565b611b38336109e5565b610a20611b44836111a5565b82604051602001610a0c91906143f2565b611b5e336109e5565b610f04611b6c846078611efb565b83604051602001610e289190613f99565b60ff81811660009081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401610f53565b6000805160206147a8833981519152546001600160a01b031690565b6004546000906001600160a01b031663d39e60436078611136565b611c0a336109e5565b610a20610a3b836078611efb565b611c21336109e5565b610a20610a3b83606e611efb565b6004546000906001600160a01b031663d39e604360d2611136565b611c53336109e5565b610a20611c6183608c611efb565b82604051602001610a0c91906141d8565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af4158015611cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf691906140c0565b9392505050565b611d06336109e5565b611d47816001600160a01b0316637e7986696040518163ffffffff1660e01b8152600401602060405180830381865afa15801561105a573d6000803e3d6000fd5b611da35760405162461bcd60e51b815260206004820152602760248201527f4e4654204944206f6620496e7374616e636552656164657220646f6573206e6f6044820152660e840dac2e8c6d60cb1b6064820152608401610ca1565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611dce336109e5565b610a20610a3b8361194e565b6004546000906001600160a01b031663d39e604360dc611136565b6000805160206147a8833981519152600080611e30611e12611bca565b8730611e22600460008a8c614533565b611e2b9161455d565b6120d5565b9150915081611ef35763ffffffff811615611ed057825460ff60a01b1916600160a01b178355611e5e611bca565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611e8d9392919061458d565b600060405180830381600087803b158015611ea757600080fd5b505af1158015611ebb573d6000803e3d6000fd5b5050845460ff60a01b1916855550611ef39050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ca1565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401611cb5565b610a2082826121e1565b610a208282612603565b610f04838383612937565b6000805160206147a883398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611fcf612dd2565b611fd881612e1d565b50565b61201c6301ffc9a760e01b60005260036020527f28b0ef64f7e82d3b26f3fd404bd0151552f792965f39c29ae82c0a78df67af9c805460ff19166001179055565b6120268287612e2e565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016120968382614613565b506120a76303fb044760e21b6120b0565b50505050505050565b6001600160e01b0319166000908152600360205260409020805460ff19166001179055565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161214491906146d2565b600060405180830381855afa9150503d806000811461217f576040519150601f19603f3d011682016040523d82523d6000602084013e612184565b606091505b509150915081156121d65760408151106121b657808060200190518101906121ac91906146ee565b90945092506121d6565b60208151106121d657808060200190518101906121d39190614033565b93505b505094509492505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612234573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612258919061471d565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af41580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d19190614033565b61231d5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610ca1565b600083815260026020526040908190208054915163037c8cb160e51b815261010090920460ff1660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af4158015612386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123aa9190614033565b6123f65760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610ca1565b3343600061240385611b7d565b61240e576064612424565b60ff808616600090815260208190526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b9190910217855560008881526002602052604090209091506001016124ae8782614613565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612521573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612545919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b9919061473a565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a0015b60405180910390a150505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126799190614033565b6126c55760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610ca1565b600082815260026020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612731573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127559190614033565b6127a15760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610ca1565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166127e54390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289b919061471d565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156128eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290f919061473a565b87868632876040516129279796959493929190614757565b60405180910390a1505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612989573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ad9190614033565b6129f95760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610ca1565b600083815260026020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a899190614033565b612ad55760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610ca1565b6000858152600260205260409020600101612af08582614613565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416612b354390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612beb919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5f919061473a565b8786863287604051612c779796959493929190614757565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612cf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d15919061471d565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d89919061473a565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0016125f2565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16612e1b57604051631afcd79f60e31b815260040160405180910390fd5b565b612e25612dd2565b611fd881611f66565b6001600160a01b038216612e845760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610ca1565b600580546001600160a01b0319166001600160a01b038416179055610a20816004546001600160a01b031615612edf576004805460405163fcdbf2d960e01b81526001600160a01b0390911691810191909152602401610ca1565b6001600160a01b038116612f065760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612f3c5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ca1565b600480546001600160a01b0319166001600160a01b03831690811782556040516301ffc9a760e01b815263102da10360e01b92810192909252906301ffc9a790602401602060405180830381865afa925050508015612fb8575060408051601f3d908101601f19168201909252612fb591810190614033565b60015b612fe05760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ca1565b80610a205760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610ca1565b60006020828403121561301b57600080fd5b81356001600160e01b031981168114611cf657600080fd5b60006020828403121561304557600080fd5b5035919050565b6001600160601b0381168114611fd857600080fd5b803561306c8161304c565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156130a9576130a9613071565b60405290565b604051608081016001600160401b03811182821017156130a9576130a9613071565b60405161012081016001600160401b03811182821017156130a9576130a9613071565b60405161018081016001600160401b03811182821017156130a9576130a9613071565b60405161020081016001600160401b03811182821017156130a9576130a9613071565b6001600160a01b0381168114611fd857600080fd5b803561306c8161313a565b60006040828403121561316c57600080fd5b613174613087565b9050813581526020820135602082015292915050565b8015158114611fd857600080fd5b803561306c8161318a565b600060c082840312156131b557600080fd5b60405160a081018181106001600160401b03821117156131d7576131d7613071565b60405290508082356131e88161304c565b815260208301356131f88161313a565b602082015261320a846040850161315a565b6040820152608083013561321d8161318a565b606082015260a08301356132308161313a565b6080919091015292915050565b60008060e0838503121561325057600080fd5b823561325b8161304c565b915061326a84602085016131a3565b90509250929050565b60ff81168114611fd857600080fd5b60006020828403121561329457600080fd5b8135611cf681613273565b600080604083850312156132b257600080fd5b82356132bd8161304c565b915060208301356132cd81613273565b809150509250929050565b60005b838110156132f35781810151838201526020016132db565b50506000910152565b600081518084526133148160208601602086016132d8565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161336c60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526133b26101208401826132fc565b905082810360208401526133c681856132fc565b95945050505050565b63ffffffff81168114611fd857600080fd5b600082601f8301126133f257600080fd5b81356001600160401b038082111561340c5761340c613071565b604051601f8301601f19908116603f0116810190828211818310171561343457613434613071565b8160405283815286602085880101111561344d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803564ffffffffff8116811461306c57600080fd5b60006080828403121561349457600080fd5b61349c6130af565b905081356134a9816133cf565b81526020828101359082015260408201356001600160401b038111156134ce57600080fd5b6134da848285016133e1565b6040830152506134ec6060830161346d565b606082015292915050565b6000806000806080858703121561350d57600080fd5b84356135188161304c565b93506020850135613528816133cf565b925060408501356001600160401b0381111561354357600080fd5b61354f87828801613482565b925050606085013561356081613273565b939692955090935050565b6001600160c01b031981168114611fd857600080fd5b803561306c8161356b565b60006040828403121561359e57600080fd5b6135a6613087565b905081356135b38161304c565b815260208201356001600160401b038111156135ce57600080fd5b6135da848285016133e1565b60208301525092915050565b600080604083850312156135f957600080fd5b82356136048161356b565b915060208301356001600160401b0381111561361f57600080fd5b61362b8582860161358c565b9150509250929050565b60008060006060848603121561364a57600080fd5b83356136558161304c565b92506020840135613665816133cf565b915060408401356001600160401b0381111561368057600080fd5b61368c86828701613482565b9150509250925092565b600061014082840312156136a957600080fd5b6136b16130d1565b90506136bc82613061565b81526136cb836020840161315a565b602082015260608201356001600160401b038111156136e957600080fd5b6136f5848285016133e1565b6040830152506080820135606082015260a0820135608082015260c082013560a082015260e082013560c082015261010061373181840161346d565b60e0830152613743610120840161346d565b9082015292915050565b60008060006060848603121561376257600080fd5b833561376d8161304c565b925060208401356001600160401b0381111561378857600080fd5b61379486828701613696565b92505060408401356137a581613273565b809150509250925092565b6000602082840312156137c257600080fd5b8135611cf68161313a565b6000602082840312156137df57600080fd5b8135611cf68161304c565b602081526000611cf660208301846132fc565b6000806040838503121561381057600080fd5b823561381b8161304c565b915060208301356001600160401b0381111561383657600080fd5b61362b85828601613696565b6000610180828403121561385557600080fd5b61385d6130d1565b905061386882613061565b81526138766020830161314f565b602082015260408201356040820152613892836060840161315a565b60608201526138a48360a0840161315a565b60808201526138b68360e0840161315a565b60a08201526138c86101208301613198565b60c08201526138da6101408301613198565b60e08201526138ec610160830161314f565b61010082015292915050565b60008060006101c0848603121561390e57600080fd5b83356139198161304c565b92506139288560208601613842565b91506101a08401356137a581613273565b60006080828403121561394b57600080fd5b6139536130af565b9050813581526020820135602082015260408201356001600160401b038111156134ce57600080fd5b6000806000806080858703121561399257600080fd5b843561399d8161304c565b935060208501356139ad816133cf565b925060408501356001600160401b038111156139c857600080fd5b61354f87828801613939565b600080604083850312156139e757600080fd5b82356132bd8161356b565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152613a4e6020820183516139f2565b6000602083015160c080840152613a6860e08401826132fc565b949350505050565b60006102408284031215613a8357600080fd5b613a8b6130f4565b9050613a968261314f565b8152613aa46020830161314f565b6020820152613ab560408301613061565b6040820152613ac660608301613061565b6060820152613ad8836080840161315a565b6080820152613aea8360c0840161315a565b60a0820152610100613afe8482850161315a565b60c0830152610140613b128582860161315a565b60e0840152613b2585610180860161315a565b82840152613b37856101c0860161315a565b610120840152613b4a6102008501613198565b9083015250613b5c610220830161314f565b61016082015292915050565b6000806102608385031215613b7c57600080fd5b8235613b878161304c565b915061326a8460208501613a70565b60008060008060808587031215613bac57600080fd5b8435613bb78161313a565b93506020850135613bc78161313a565b92506040850135613bd78161304c565b915060608501356135608161313a565b803561ffff8116811461306c57600080fd5b60006102008284031215613c0c57600080fd5b613c14613117565b9050613c1f82613061565b8152613c2d60208301613061565b6020820152613c3e60408301613581565b6040820152613c4f60608301613581565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e0820152610100808301356001600160401b0380821115613c9857600080fd5b613ca4868387016133e1565b83850152610120925082850135915080821115613cc057600080fd5b50613ccd858286016133e1565b828401525050610140613ce1818401613be7565b90820152610160613cf3838201613be7565b9082015261018082810135908201526101a0613d1081840161346d565b908201526101c0613d2283820161346d565b908201526101e061374383820161346d565b600080600060608486031215613d4957600080fd5b8335613d548161304c565b925060208401356001600160401b03811115613d6f57600080fd5b61379486828701613bf9565b600080600060608486031215613d9057600080fd5b8335613d9b8161304c565b92506020840135613dab816133cf565b915060408401356001600160401b03811115613dc657600080fd5b61368c86828701613939565b60a08101610f9482846139f2565b600080600060608486031215613df557600080fd5b8335613e008161356b565b925060208401356001600160401b03811115613e1b57600080fd5b6137948682870161358c565b600080600060608486031215613e3c57600080fd5b8335613e4781613273565b92506020840135613e5781613273565b915060408401356137a581613273565b60008060006102808486031215613e7d57600080fd5b8335613e888161304c565b9250613e978560208601613a70565b91506102608401356137a581613273565b60008060408385031215613ebb57600080fd5b8235613ec68161304c565b915060208301356001600160401b03811115613ee157600080fd5b61362b85828601613bf9565b60008060006101008486031215613f0357600080fd5b8335613f0e8161304c565b9250613f1d85602086016131a3565b915060e08401356137a581613273565b6000806101a08385031215613f4157600080fd5b8235613f4c8161304c565b915061326a8460208501613842565b60ff1981168114611fd857600080fd5b60008060408385031215613f7e57600080fd5b8235613f8981613273565b915060208301356132cd81613f5b565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b600181811c9082168061400d57607f821691505b60208210810361402d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561404557600080fd5b8151611cf68161318a565b60006020828403121561406257600080fd5b8151611cf68161304c565b6020815263ffffffff82511660208201526020820151604082015260006040830151608060608401526140a360a08401826132fc565b905064ffffffffff60608501511660808401528091505092915050565b6000602082840312156140d257600080fd5b5051919050565b602081526001600160601b03825116602082015260006020830151604080840152613a6860608401826132fc565b602081526141216020820183516001600160601b03169052565b6000602083015161413f604084018280518252602090810151910152565b50604083015161014080608085015261415c6101608501836132fc565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100818187015260e087015191506141a461012087018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6000602082840312156141cd57600080fd5b8151611cf68161313a565b81516001600160601b03168152602080830151610180830191614205908401826001600160a01b03169052565b5060408301516040830152606083015161422c606084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c08301518015156101208401525060e0830151801515610140840152506101008301516001600160a01b0381166101608401525b5092915050565b60208152815160208201526020820151604082015260006040830151608060608401526140a360a08401826132fc565b81516001600160a01b03168152610240810160208301516142f460208401826001600160a01b03169052565b50604083015161430f60408401826001600160601b03169052565b50606083015161432a60608401826001600160601b03169052565b506080830151614347608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c083015161010061437d8185018380518252602090810151910152565b60e0850151915061014061439d8186018480518252602090810151910152565b9085015180516101808601526020908101516101a086015261012086015180516101c087015201516101e08501528401511515610200840152506101608301516001600160a01b038116610220840152614291565b6020815261440c6020820183516001600160601b03169052565b6000602083015161442860408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e083015161010081818501528085015191505061020061012081818601526144a06102208601846132fc565b9250808601519050610140601f1986850301818701526144c084836132fc565b9350808701519150506101606144db8187018361ffff169052565b86015190506101806144f28682018361ffff169052565b8601516101a08681019190915286015190506101c06145198187018364ffffffffff169052565b86015190506101e06141a48682018364ffffffffff169052565b6000808585111561454357600080fd5b8386111561455057600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156145855780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b601f821115610f0457600081815260208120601f850160051c810160208610156145f45750805b601f850160051c820191505b81811015611ef357828155600101614600565b81516001600160401b0381111561462c5761462c613071565b6146408161463a8454613ff9565b846145cd565b602080601f831160018114614675576000841561465d5750858301515b600019600386901b1c1916600185901b178555611ef3565b600085815260208120601f198616915b828110156146a457888601518255948401946001909101908401614685565b50858210156146c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516146e48184602087016132d8565b9190910192915050565b6000806040838503121561470157600080fd5b825161470c8161318a565b60208401519092506132cd816133cf565b60006020828403121561472f57600080fd5b8151611cf681613273565b60006020828403121561474c57600080fd5b8151611cf681613f5b565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a264697066735822122083e5b7971426dfd7f3c1585b7a0b6d0020d64fe71444a49e1fbdfc235297435264736f6c63430008140033",
2775
- "linkReferences": {
2776
- "contracts/types/Key32.sol": {
2777
- "Key32Lib": [
2778
- {
2779
- "length": 20,
2780
- "start": 9222
2781
- },
2782
- {
2783
- "length": 20,
2784
- "start": 10601
2785
- },
2786
- {
2787
- "length": 20,
2788
- "start": 11350
2789
- },
2790
- {
2791
- "length": 20,
2792
- "start": 11466
2793
- },
2794
- {
2795
- "length": 20,
2796
- "start": 12204
2797
- },
2798
- {
2799
- "length": 20,
2800
- "start": 12320
2801
- },
2802
- {
2803
- "length": 20,
2804
- "start": 13052
2805
- },
2806
- {
2807
- "length": 20,
2808
- "start": 13168
2809
- },
2810
- {
2811
- "length": 20,
2812
- "start": 13350
2813
- },
800
+ },
801
+ {
802
+ "inputs": [
2814
803
  {
2815
- "length": 20,
2816
- "start": 13466
804
+ "internalType": "contract InstanceStore",
805
+ "name": "instanceStore",
806
+ "type": "address"
2817
807
  }
2818
- ]
808
+ ],
809
+ "name": "setInstanceStore",
810
+ "outputs": [],
811
+ "stateMutability": "nonpayable",
812
+ "type": "function"
2819
813
  },
2820
- "contracts/types/NftId.sol": {
2821
- "NftIdLib": [
814
+ {
815
+ "inputs": [
2822
816
  {
2823
- "length": 20,
2824
- "start": 4978
817
+ "internalType": "string",
818
+ "name": "targetName",
819
+ "type": "string"
2825
820
  },
2826
821
  {
2827
- "length": 20,
2828
- "start": 6424
822
+ "internalType": "bytes4[]",
823
+ "name": "selectors",
824
+ "type": "bytes4[]"
2829
825
  },
2830
826
  {
2831
- "length": 20,
2832
- "start": 7223
2833
- },
827
+ "internalType": "RoleId",
828
+ "name": "roleId",
829
+ "type": "uint64"
830
+ }
831
+ ],
832
+ "name": "setTargetFunctionRole",
833
+ "outputs": [],
834
+ "stateMutability": "nonpayable",
835
+ "type": "function"
836
+ },
837
+ {
838
+ "inputs": [
2834
839
  {
2835
- "length": 20,
2836
- "start": 8385
840
+ "internalType": "address",
841
+ "name": "target",
842
+ "type": "address"
2837
843
  },
2838
844
  {
2839
- "length": 20,
2840
- "start": 9876
845
+ "internalType": "bool",
846
+ "name": "locked",
847
+ "type": "bool"
2841
848
  }
2842
- ]
849
+ ],
850
+ "name": "setTargetLocked",
851
+ "outputs": [],
852
+ "stateMutability": "nonpayable",
853
+ "type": "function"
2843
854
  },
2844
- "contracts/types/ObjectType.sol": {
2845
- "ObjectTypeLib": [
855
+ {
856
+ "inputs": [
2846
857
  {
2847
- "length": 20,
2848
- "start": 10722
858
+ "internalType": "bytes4",
859
+ "name": "interfaceId",
860
+ "type": "bytes4"
2849
861
  }
2850
- ]
2851
- },
2852
- "contracts/types/RiskId.sol": {
2853
- "RiskIdLib": [
862
+ ],
863
+ "name": "supportsInterface",
864
+ "outputs": [
2854
865
  {
2855
- "length": 20,
2856
- "start": 5598
2857
- },
866
+ "internalType": "bool",
867
+ "name": "",
868
+ "type": "bool"
869
+ }
870
+ ],
871
+ "stateMutability": "view",
872
+ "type": "function"
873
+ }
874
+ ],
875
+ "bytecode": "0x608060405234801561001057600080fd5b5061288f806100206000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80637a9e5e4b1161013b578063ca600b1c116100b8578063e5f6cd271161007c578063e5f6cd2714610530578063e7f7fb8614610541578063f7bc431c14610554578063f7c34ee014610567578063fed3d63f1461057a57600080fd5b8063ca600b1c146104c2578063cde749f4146104ca578063d2192dbf146104e4578063d4cda0d814610517578063e1033e7d1461052857600080fd5b8063b428b0b0116100ff578063b428b0b01461046e578063b7d2b16214610481578063bb1e0e5914610494578063bf7e214f146104a7578063c0c53b8b146104af57600080fd5b80637a9e5e4b1461040a578063868923131461041d578063893d20e8146104305780638fb3603714610438578063ada9652e1461045957600080fd5b806329db8c3d116101c95780635fa8aad41161018d5780635fa8aad4146103a357806361f5f420146103b6578063644c45e0146103c7578063675393bf146103ef5780636b9bf08b1461040257600080fd5b806329db8c3d1461035c57806336fc697e1461036f578063422c9d00146103775780634288121d1461038a5780635ab1bd531461039257600080fd5b80631eff4b22116102105780631eff4b22146102e6578063214cdb801461031b5780632449aea81461032e5780632781d4431461034157806327bb7a331461034957600080fd5b806301ffc9a71461024d57806302cd30711461028f5780630f749a89146102b45780630fec111c146102c9578063138461e0146102de575b600080fd5b61027a61025b366004611ead565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610286565b6102c76102c2366004611ee4565b610582565b005b6102d161069d565b6040516102869190611f51565b6102c76107f0565b61030d7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610286565b6102c7610329366004611ead565b6109f2565b6102c761033c366004611ee4565b610a1f565b61030d600381565b6102c7610357366004612099565b610b31565b6102c761036a366004612185565b610bd6565b6102c7610c43565b6102c7610385366004611ee4565b610c89565b61029c610e33565b6001546001600160a01b031661029c565b6102c76103b136600461222f565b610ec6565b6004546001600160a01b031661029c565b60008051602061281a833981519152546040516001600160601b039091168152602001610286565b6102c76103fd366004611ee4565b610f37565b61029c611045565b6102c7610418366004611ee4565b61106e565b6102c761042b36600461227e565b6110f1565b61029c611134565b61044061126b565b6040516001600160e01b03199091168152602001610286565b61030d60008051602061281a83398151915281565b6102c761047c3660046122b7565b6112a3565b6102c761048f3660046122b7565b611326565b6102c76104a23660046122e5565b611361565b61029c611504565b6102c76104bd366004612311565b611520565b61029c6116ec565b6104d2611715565b60405160ff9091168152602001610286565b6104f76104f236600461235c565b61178c565b604080516001600160401b03938416815292909116602083015201610286565b6005546001600160a01b031661029c565b61029c611817565b6002546001600160a01b031661029c565b6102c761054f3660046123b5565b611840565b6102c7610562366004611ee4565b6119e0565b6102c76105753660046123f6565b611aa0565b61029c611b17565b61058f335b600036611b40565b6002546001600160a01b0316156105cd5760025460405163e02ca03360e01b81526001600160a01b0390911660048201526024015b60405180910390fd5b6105d5611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561061c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106409190612414565b6001600160a01b03161461067b57610656611504565b6040516374150f9560e11b81526001600160a01b0390911660048201526024016105c4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6040805160e0808201835260008083526020830181905282840181905260608084018290526080840182905260a0840182905260c0840152835191820190935290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300919081906001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161074c611134565b6001600160a01b0316815260200182600101805461076990612431565b80601f016020809104026020016040519081016040528092919081815260200182805461079590612431565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b505050505081525091505090565b600060008051602061281a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561085f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610883919061246b565b156108af5780546040516301ab8b6760e21b81526001600160601b0390911660048201526024016105c4565b306108c26001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e919061246b565b6109565760405163b9304b0d60e01b81526001600160a01b03821660048201526024016105c4565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156109aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ce9190612488565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6109fa611c3e565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610a2833610587565b6005546001600160a01b031615610a6157600554604051632e67e2ab60e21b81526001600160a01b0390911660048201526024016105c4565b610a69611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad49190612414565b6001600160a01b031614610b0f57610aea611504565b6040516348263eef60e01b81526001600160a01b0390911660048201526024016105c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610b39611c3e565b610b438287611aa0565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610bcc83826124eb565b5050505050505050565b610bdf33610587565b6002546040516329db8c3d60e01b81526001600160a01b03909116906329db8c3d90610c159087908790879087906004016125aa565b600060405180830381600087803b158015610c2f57600080fd5b505af1158015610bcc573d6000803e3d6000fd5b610c4b611c3e565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b610c9233610587565b6004546001600160a01b031615610cce576004805460405163384c2dbd60e11b81526001600160a01b03909116918101919091526024016105c4565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190612414565b6001600160a01b031614610d635760405163decb98c560e01b81523060048201526024016105c4565b610d6b611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd69190612414565b6001600160a01b031614610e1157610dec611504565b604051630312205960e41b81526001600160a01b0390911660048201526024016105c4565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610e476001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015610e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190612414565b905090565b610ecf33610587565b6002546040516317ea2ab560e21b81526001600160a01b0390911690635fa8aad490610f01908590859060040161261f565b600060405180830381600087803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b505050505050565b610f3f611c3e565b806001600160a01b03163b600003610f755760405163fdeac91f60e01b81526001600160a01b03821660048201526024016105c4565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152631373a18560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610fef575060408051601f3d908101601f19168201909252610fec9181019061246b565b60015b6110175760405163fdeac91f60e01b81526001600160a01b03821660048201526024016105c4565b806110405760405163fdeac91f60e01b81526001600160a01b03831660048201526024016105c4565b505b50565b60006110596001546001600160a01b031690565b6001600160a01b031663d39e6043608c610e58565b33611077611504565b6001600160a01b0316816001600160a01b0316146110b25760405162d1953b60e31b81526001600160a01b03821660048201526024016105c4565b816001600160a01b03163b6000036110e8576040516361798f2f60e11b81526001600160a01b03831660048201526024016105c4565b61104082611c89565b6110fa33610587565b6002546040516308b6d1c760e21b81526001600160a01b0384811660048301528315156024830152909116906322db471c90604401610f01565b60008060008051602061281a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156111a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c8919061246b565b15611255576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561122b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124f9190612414565b91505090565b54600160601b90046001600160a01b0316919050565b60008051602061283a833981519152805460009190600160a01b900460ff1661129557600061124f565b638fb3603760e01b91505090565b6112ac33610587565b600254604051630b428b0b60e41b81526001600160a01b039091169063b428b0b0906112de9085908590600401612643565b6020604051808303816000875af11580156112fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611321919061246b565b505050565b61132f33610587565b600254604051635be958b160e11b81526001600160a01b039091169063b7d2b162906112de9085908590600401612643565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ce9190612414565b6001600160a01b0316336001600160a01b0316146113eb57600080fd5b6002546001600160a01b03166303014974611404611cea565b6040516001600160e01b031960e084901b1681526001600160401b039091166004820152602401602060405180830381865afa158015611448573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146c9190612665565b156114795761147961267e565b6002546001600160a01b031663b428b0b0611492611cea565b846040518363ffffffff1660e01b81526004016114b0929190612643565b6020604051808303816000875af11580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f3919061246b565b15156001146110405761104061267e565b60008051602061283a833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156115655750825b90506000826001600160401b031660011480156115815750303b155b90508115801561158f575080155b156115ad5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156115d757845460ff60401b1916600160401b1785555b6001600160a01b0388166115fe5760405163da1db49160e01b815260040160405180910390fd5b61160788611d62565b600087905061168c88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561164e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116729190612488565b604660018b60405180602001604052806000815250610b31565b61169c63425ec80560e01b6109f2565b508315610bcc57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006117006001546001600160a01b031690565b6001600160a01b031663d39e60436078610e58565b604051632392b61b60e21b81526003600482015260009073__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af4158015611768573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190612694565b60008061179833610587565b60025460405163d2192dbf60e01b81526001600160a01b039091169063d2192dbf906117ca90879087906004016126b1565b60408051808303816000875af11580156117e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180c91906126df565b909590945092505050565b600061182b6001546001600160a01b031690565b6001600160a01b031663d39e604360d3610e58565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad9190612414565b6001600160a01b0316336001600160a01b0316146118ca57600080fd5b6002546001600160a01b031663b7d2b1626118e3611cea565b856040518363ffffffff1660e01b8152600401611901929190612643565b6020604051808303816000875af1158015611920573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611944919061246b565b15156001146119555761195561267e565b6002546001600160a01b031663b428b0b061196e611cea565b846040518363ffffffff1660e01b815260040161198c929190612643565b6020604051808303816000875af11580156119ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cf919061246b565b15156001146113215761132161267e565b6119e933610587565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a559190612414565b6001600160a01b031614611a7e576040516345789cf560e01b81523060048201526024016105c4565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611aa8611c3e565b611ab181610f37565b611ab9610c43565b6001600160a01b038216611ae05760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061281a83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6000611b2b6001546001600160a01b031690565b6001600160a01b031663d39e604360dc610e58565b60008051602061283a833981519152600080611b7b611b5d611504565b8730611b6d600460008a8c61270e565b611b7691612738565b611d73565b9150915081610f2f5763ffffffff811615611c1b57825460ff60a01b1916600160a01b178355611ba9611504565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611bd893929190612768565b600060405180830381600087803b158015611bf257600080fd5b505af1158015611c06573d6000803e3d6000fd5b5050845460ff60a01b1916855550610f2f9050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016105c4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611c8757604051631afcd79f60e31b815260040160405180910390fd5b565b60008051602061283a83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516368aebf7b60e01b815261076c600482015260009073__$1d92393fa9ccd763988368ce8a1cb90d26$__906368aebf7b90602401602060405180830381865af4158015611d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec191906127a8565b611d6a611c3e565b61104281611e7f565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611de291906127c5565b600060405180830381855afa9150503d8060008114611e1d576040519150601f19603f3d011682016040523d82523d6000602084013e611e22565b606091505b50915091508115611e74576040815110611e545780806020019051810190611e4a91906127e1565b9094509250611e74565b6020815110611e745780806020019051810190611e71919061246b565b93505b505094509492505050565b611e87611c3e565b61104281611c89565b80356001600160e01b031981168114611ea857600080fd5b919050565b600060208284031215611ebf57600080fd5b611ec882611e90565b9392505050565b6001600160a01b038116811461104257600080fd5b600060208284031215611ef657600080fd5b8135611ec881611ecf565b60005b83811015611f1c578181015183820152602001611f04565b50506000910152565b60008151808452611f3d816020860160208601611f01565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151611fba60c08401826001600160a01b03169052565b5060c083015160e080840152611fd4610100840182611f25565b949350505050565b6001600160601b038116811461104257600080fd5b60ff8116811461104257600080fd5b801515811461104257600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561203e5761203e61200e565b604051601f8501601f19908116603f011681019082821181831017156120665761206661200e565b8160405280935085815286868601111561207f57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060008060c087890312156120b257600080fd5b86356120bd81611ecf565b955060208701356120cd81611fdc565b945060408701356120dd81611ff1565b935060608701356120ed81612000565b925060808701356120fd81611ecf565b915060a08701356001600160401b0381111561211857600080fd5b8701601f8101891361212957600080fd5b61213889823560208401612024565b9150509295509295509295565b600082601f83011261215657600080fd5b611ec883833560208501612024565b6001600160401b038116811461104257600080fd5b8035611ea881612165565b6000806000806060858703121561219b57600080fd5b84356001600160401b03808211156121b257600080fd5b6121be88838901612145565b955060208701359150808211156121d457600080fd5b818701915087601f8301126121e857600080fd5b8135818111156121f757600080fd5b8860208260051b850101111561220c57600080fd5b6020830195508094505050506122246040860161217a565b905092959194509250565b6000806040838503121561224257600080fd5b823561224d81611ecf565b915060208301356001600160401b0381111561226857600080fd5b61227485828601612145565b9150509250929050565b6000806040838503121561229157600080fd5b823561229c81611ecf565b915060208301356122ac81612000565b809150509250929050565b600080604083850312156122ca57600080fd5b82356122d581612165565b915060208301356122ac81611ecf565b600080604083850312156122f857600080fd5b823561230381611ecf565b946020939093013593505050565b60008060006060848603121561232657600080fd5b833561233181611ecf565b9250602084013561234181611ecf565b9150604084013561235181611ecf565b809150509250925092565b6000806040838503121561236f57600080fd5b82356001600160401b038082111561238657600080fd5b61239286838701612145565b935060208501359150808211156123a857600080fd5b5061227485828601612145565b6000806000606084860312156123ca57600080fd5b83356123d581611ecf565b925060208401356123e581611ecf565b929592945050506040919091013590565b6000806040838503121561240957600080fd5b82356122d581611ecf565b60006020828403121561242657600080fd5b8151611ec881611ecf565b600181811c9082168061244557607f821691505b60208210810361246557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561247d57600080fd5b8151611ec881612000565b60006020828403121561249a57600080fd5b8151611ec881611fdc565b601f82111561132157600081815260208120601f850160051c810160208610156124cc5750805b601f850160051c820191505b81811015610f2f578281556001016124d8565b81516001600160401b038111156125045761250461200e565b612518816125128454612431565b846124a5565b602080601f83116001811461254d57600084156125355750858301515b600019600386901b1c1916600185901b178555610f2f565b600085815260208120601f198616915b8281101561257c5788860151825594840194600190910190840161255d565b508582101561259a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006125bd6060830187611f25565b8281036020848101919091528582528691810160005b87811015612600576001600160e01b03196125ed85611e90565b16825292820192908201906001016125d3565b508093505050506001600160401b038316604083015295945050505050565b6001600160a01b0383168152604060208201819052600090611fd490830184611f25565b6001600160401b039290921682526001600160a01b0316602082015260400190565b60006020828403121561267757600080fd5b5051919050565b634e487b7160e01b600052600160045260246000fd5b6000602082840312156126a657600080fd5b8151611ec881611ff1565b6040815260006126c46040830185611f25565b82810360208401526126d68185611f25565b95945050505050565b600080604083850312156126f257600080fd5b82516126fd81612165565b60208401519092506122ac81612165565b6000808585111561271e57600080fd5b8386111561272b57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156127605780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b6000602082840312156127ba57600080fd5b8151611ec881612165565b600082516127d7818460208701611f01565b9190910192915050565b600080604083850312156127f457600080fd5b82516127ff81612000565b602084015190925063ffffffff811681146122ac57600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e5f5933258e92ba21c8e1c27d8a434e8d59157e7fa93180ffb4f777fcda98fa964736f6c63430008140033",
876
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102485760003560e01c80637a9e5e4b1161013b578063ca600b1c116100b8578063e5f6cd271161007c578063e5f6cd2714610530578063e7f7fb8614610541578063f7bc431c14610554578063f7c34ee014610567578063fed3d63f1461057a57600080fd5b8063ca600b1c146104c2578063cde749f4146104ca578063d2192dbf146104e4578063d4cda0d814610517578063e1033e7d1461052857600080fd5b8063b428b0b0116100ff578063b428b0b01461046e578063b7d2b16214610481578063bb1e0e5914610494578063bf7e214f146104a7578063c0c53b8b146104af57600080fd5b80637a9e5e4b1461040a578063868923131461041d578063893d20e8146104305780638fb3603714610438578063ada9652e1461045957600080fd5b806329db8c3d116101c95780635fa8aad41161018d5780635fa8aad4146103a357806361f5f420146103b6578063644c45e0146103c7578063675393bf146103ef5780636b9bf08b1461040257600080fd5b806329db8c3d1461035c57806336fc697e1461036f578063422c9d00146103775780634288121d1461038a5780635ab1bd531461039257600080fd5b80631eff4b22116102105780631eff4b22146102e6578063214cdb801461031b5780632449aea81461032e5780632781d4431461034157806327bb7a331461034957600080fd5b806301ffc9a71461024d57806302cd30711461028f5780630f749a89146102b45780630fec111c146102c9578063138461e0146102de575b600080fd5b61027a61025b366004611ead565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610286565b6102c76102c2366004611ee4565b610582565b005b6102d161069d565b6040516102869190611f51565b6102c76107f0565b61030d7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610286565b6102c7610329366004611ead565b6109f2565b6102c761033c366004611ee4565b610a1f565b61030d600381565b6102c7610357366004612099565b610b31565b6102c761036a366004612185565b610bd6565b6102c7610c43565b6102c7610385366004611ee4565b610c89565b61029c610e33565b6001546001600160a01b031661029c565b6102c76103b136600461222f565b610ec6565b6004546001600160a01b031661029c565b60008051602061281a833981519152546040516001600160601b039091168152602001610286565b6102c76103fd366004611ee4565b610f37565b61029c611045565b6102c7610418366004611ee4565b61106e565b6102c761042b36600461227e565b6110f1565b61029c611134565b61044061126b565b6040516001600160e01b03199091168152602001610286565b61030d60008051602061281a83398151915281565b6102c761047c3660046122b7565b6112a3565b6102c761048f3660046122b7565b611326565b6102c76104a23660046122e5565b611361565b61029c611504565b6102c76104bd366004612311565b611520565b61029c6116ec565b6104d2611715565b60405160ff9091168152602001610286565b6104f76104f236600461235c565b61178c565b604080516001600160401b03938416815292909116602083015201610286565b6005546001600160a01b031661029c565b61029c611817565b6002546001600160a01b031661029c565b6102c761054f3660046123b5565b611840565b6102c7610562366004611ee4565b6119e0565b6102c76105753660046123f6565b611aa0565b61029c611b17565b61058f335b600036611b40565b6002546001600160a01b0316156105cd5760025460405163e02ca03360e01b81526001600160a01b0390911660048201526024015b60405180910390fd5b6105d5611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561061c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106409190612414565b6001600160a01b03161461067b57610656611504565b6040516374150f9560e11b81526001600160a01b0390911660048201526024016105c4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6040805160e0808201835260008083526020830181905282840181905260608084018290526080840182905260a0840182905260c0840152835191820190935290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300919081906001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161074c611134565b6001600160a01b0316815260200182600101805461076990612431565b80601f016020809104026020016040519081016040528092919081815260200182805461079590612431565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b505050505081525091505090565b600060008051602061281a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561085f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610883919061246b565b156108af5780546040516301ab8b6760e21b81526001600160601b0390911660048201526024016105c4565b306108c26001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e919061246b565b6109565760405163b9304b0d60e01b81526001600160a01b03821660048201526024016105c4565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156109aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ce9190612488565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6109fa611c3e565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610a2833610587565b6005546001600160a01b031615610a6157600554604051632e67e2ab60e21b81526001600160a01b0390911660048201526024016105c4565b610a69611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad49190612414565b6001600160a01b031614610b0f57610aea611504565b6040516348263eef60e01b81526001600160a01b0390911660048201526024016105c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610b39611c3e565b610b438287611aa0565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610bcc83826124eb565b5050505050505050565b610bdf33610587565b6002546040516329db8c3d60e01b81526001600160a01b03909116906329db8c3d90610c159087908790879087906004016125aa565b600060405180830381600087803b158015610c2f57600080fd5b505af1158015610bcc573d6000803e3d6000fd5b610c4b611c3e565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b610c9233610587565b6004546001600160a01b031615610cce576004805460405163384c2dbd60e11b81526001600160a01b03909116918101919091526024016105c4565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190612414565b6001600160a01b031614610d635760405163decb98c560e01b81523060048201526024016105c4565b610d6b611504565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd69190612414565b6001600160a01b031614610e1157610dec611504565b604051630312205960e41b81526001600160a01b0390911660048201526024016105c4565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610e476001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015610e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190612414565b905090565b610ecf33610587565b6002546040516317ea2ab560e21b81526001600160a01b0390911690635fa8aad490610f01908590859060040161261f565b600060405180830381600087803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b505050505050565b610f3f611c3e565b806001600160a01b03163b600003610f755760405163fdeac91f60e01b81526001600160a01b03821660048201526024016105c4565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152631373a18560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610fef575060408051601f3d908101601f19168201909252610fec9181019061246b565b60015b6110175760405163fdeac91f60e01b81526001600160a01b03821660048201526024016105c4565b806110405760405163fdeac91f60e01b81526001600160a01b03831660048201526024016105c4565b505b50565b60006110596001546001600160a01b031690565b6001600160a01b031663d39e6043608c610e58565b33611077611504565b6001600160a01b0316816001600160a01b0316146110b25760405162d1953b60e31b81526001600160a01b03821660048201526024016105c4565b816001600160a01b03163b6000036110e8576040516361798f2f60e11b81526001600160a01b03831660048201526024016105c4565b61104082611c89565b6110fa33610587565b6002546040516308b6d1c760e21b81526001600160a01b0384811660048301528315156024830152909116906322db471c90604401610f01565b60008060008051602061281a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156111a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c8919061246b565b15611255576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561122b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124f9190612414565b91505090565b54600160601b90046001600160a01b0316919050565b60008051602061283a833981519152805460009190600160a01b900460ff1661129557600061124f565b638fb3603760e01b91505090565b6112ac33610587565b600254604051630b428b0b60e41b81526001600160a01b039091169063b428b0b0906112de9085908590600401612643565b6020604051808303816000875af11580156112fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611321919061246b565b505050565b61132f33610587565b600254604051635be958b160e11b81526001600160a01b039091169063b7d2b162906112de9085908590600401612643565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ce9190612414565b6001600160a01b0316336001600160a01b0316146113eb57600080fd5b6002546001600160a01b03166303014974611404611cea565b6040516001600160e01b031960e084901b1681526001600160401b039091166004820152602401602060405180830381865afa158015611448573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146c9190612665565b156114795761147961267e565b6002546001600160a01b031663b428b0b0611492611cea565b846040518363ffffffff1660e01b81526004016114b0929190612643565b6020604051808303816000875af11580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f3919061246b565b15156001146110405761104061267e565b60008051602061283a833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156115655750825b90506000826001600160401b031660011480156115815750303b155b90508115801561158f575080155b156115ad5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156115d757845460ff60401b1916600160401b1785555b6001600160a01b0388166115fe5760405163da1db49160e01b815260040160405180910390fd5b61160788611d62565b600087905061168c88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561164e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116729190612488565b604660018b60405180602001604052806000815250610b31565b61169c63425ec80560e01b6109f2565b508315610bcc57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006117006001546001600160a01b031690565b6001600160a01b031663d39e60436078610e58565b604051632392b61b60e21b81526003600482015260009073__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af4158015611768573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190612694565b60008061179833610587565b60025460405163d2192dbf60e01b81526001600160a01b039091169063d2192dbf906117ca90879087906004016126b1565b60408051808303816000875af11580156117e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180c91906126df565b909590945092505050565b600061182b6001546001600160a01b031690565b6001600160a01b031663d39e604360d3610e58565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad9190612414565b6001600160a01b0316336001600160a01b0316146118ca57600080fd5b6002546001600160a01b031663b7d2b1626118e3611cea565b856040518363ffffffff1660e01b8152600401611901929190612643565b6020604051808303816000875af1158015611920573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611944919061246b565b15156001146119555761195561267e565b6002546001600160a01b031663b428b0b061196e611cea565b846040518363ffffffff1660e01b815260040161198c929190612643565b6020604051808303816000875af11580156119ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cf919061246b565b15156001146113215761132161267e565b6119e933610587565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a559190612414565b6001600160a01b031614611a7e576040516345789cf560e01b81523060048201526024016105c4565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611aa8611c3e565b611ab181610f37565b611ab9610c43565b6001600160a01b038216611ae05760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061281a83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6000611b2b6001546001600160a01b031690565b6001600160a01b031663d39e604360dc610e58565b60008051602061283a833981519152600080611b7b611b5d611504565b8730611b6d600460008a8c61270e565b611b7691612738565b611d73565b9150915081610f2f5763ffffffff811615611c1b57825460ff60a01b1916600160a01b178355611ba9611504565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611bd893929190612768565b600060405180830381600087803b158015611bf257600080fd5b505af1158015611c06573d6000803e3d6000fd5b5050845460ff60a01b1916855550610f2f9050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016105c4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611c8757604051631afcd79f60e31b815260040160405180910390fd5b565b60008051602061283a83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516368aebf7b60e01b815261076c600482015260009073__$1d92393fa9ccd763988368ce8a1cb90d26$__906368aebf7b90602401602060405180830381865af4158015611d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec191906127a8565b611d6a611c3e565b61104281611e7f565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611de291906127c5565b600060405180830381855afa9150503d8060008114611e1d576040519150601f19603f3d011682016040523d82523d6000602084013e611e22565b606091505b50915091508115611e74576040815110611e545780806020019051810190611e4a91906127e1565b9094509250611e74565b6020815110611e745780806020019051810190611e71919061246b565b93505b505094509492505050565b611e87611c3e565b61104281611c89565b80356001600160e01b031981168114611ea857600080fd5b919050565b600060208284031215611ebf57600080fd5b611ec882611e90565b9392505050565b6001600160a01b038116811461104257600080fd5b600060208284031215611ef657600080fd5b8135611ec881611ecf565b60005b83811015611f1c578181015183820152602001611f04565b50506000910152565b60008151808452611f3d816020860160208601611f01565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151611fba60c08401826001600160a01b03169052565b5060c083015160e080840152611fd4610100840182611f25565b949350505050565b6001600160601b038116811461104257600080fd5b60ff8116811461104257600080fd5b801515811461104257600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561203e5761203e61200e565b604051601f8501601f19908116603f011681019082821181831017156120665761206661200e565b8160405280935085815286868601111561207f57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060008060c087890312156120b257600080fd5b86356120bd81611ecf565b955060208701356120cd81611fdc565b945060408701356120dd81611ff1565b935060608701356120ed81612000565b925060808701356120fd81611ecf565b915060a08701356001600160401b0381111561211857600080fd5b8701601f8101891361212957600080fd5b61213889823560208401612024565b9150509295509295509295565b600082601f83011261215657600080fd5b611ec883833560208501612024565b6001600160401b038116811461104257600080fd5b8035611ea881612165565b6000806000806060858703121561219b57600080fd5b84356001600160401b03808211156121b257600080fd5b6121be88838901612145565b955060208701359150808211156121d457600080fd5b818701915087601f8301126121e857600080fd5b8135818111156121f757600080fd5b8860208260051b850101111561220c57600080fd5b6020830195508094505050506122246040860161217a565b905092959194509250565b6000806040838503121561224257600080fd5b823561224d81611ecf565b915060208301356001600160401b0381111561226857600080fd5b61227485828601612145565b9150509250929050565b6000806040838503121561229157600080fd5b823561229c81611ecf565b915060208301356122ac81612000565b809150509250929050565b600080604083850312156122ca57600080fd5b82356122d581612165565b915060208301356122ac81611ecf565b600080604083850312156122f857600080fd5b823561230381611ecf565b946020939093013593505050565b60008060006060848603121561232657600080fd5b833561233181611ecf565b9250602084013561234181611ecf565b9150604084013561235181611ecf565b809150509250925092565b6000806040838503121561236f57600080fd5b82356001600160401b038082111561238657600080fd5b61239286838701612145565b935060208501359150808211156123a857600080fd5b5061227485828601612145565b6000806000606084860312156123ca57600080fd5b83356123d581611ecf565b925060208401356123e581611ecf565b929592945050506040919091013590565b6000806040838503121561240957600080fd5b82356122d581611ecf565b60006020828403121561242657600080fd5b8151611ec881611ecf565b600181811c9082168061244557607f821691505b60208210810361246557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561247d57600080fd5b8151611ec881612000565b60006020828403121561249a57600080fd5b8151611ec881611fdc565b601f82111561132157600081815260208120601f850160051c810160208610156124cc5750805b601f850160051c820191505b81811015610f2f578281556001016124d8565b81516001600160401b038111156125045761250461200e565b612518816125128454612431565b846124a5565b602080601f83116001811461254d57600084156125355750858301515b600019600386901b1c1916600185901b178555610f2f565b600085815260208120601f198616915b8281101561257c5788860151825594840194600190910190840161255d565b508582101561259a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006125bd6060830187611f25565b8281036020848101919091528582528691810160005b87811015612600576001600160e01b03196125ed85611e90565b16825292820192908201906001016125d3565b508093505050506001600160401b038316604083015295945050505050565b6001600160a01b0383168152604060208201819052600090611fd490830184611f25565b6001600160401b039290921682526001600160a01b0316602082015260400190565b60006020828403121561267757600080fd5b5051919050565b634e487b7160e01b600052600160045260246000fd5b6000602082840312156126a657600080fd5b8151611ec881611ff1565b6040815260006126c46040830185611f25565b82810360208401526126d68185611f25565b95945050505050565b600080604083850312156126f257600080fd5b82516126fd81612165565b60208401519092506122ac81612165565b6000808585111561271e57600080fd5b8386111561272b57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156127605780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b6000602082840312156127ba57600080fd5b8151611ec881612165565b600082516127d7818460208701611f01565b9190910192915050565b600080604083850312156127f457600080fd5b82516127ff81612000565b602084015190925063ffffffff811681146122ac57600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e5f5933258e92ba21c8e1c27d8a434e8d59157e7fa93180ffb4f777fcda98fa964736f6c63430008140033",
877
+ "linkReferences": {
878
+ "contracts/type/NftId.sol": {
879
+ "NftIdLib": [
2858
880
  {
2859
881
  "length": 20,
2860
- "start": 7083
882
+ "start": 2117
2861
883
  },
2862
884
  {
2863
885
  "length": 20,
2864
- "start": 8470
886
+ "start": 4490
2865
887
  }
2866
888
  ]
2867
889
  },
2868
- "contracts/types/StateId.sol": {
2869
- "StateIdLib": [
2870
- {
2871
- "length": 20,
2872
- "start": 5796
2873
- },
2874
- {
2875
- "length": 20,
2876
- "start": 8624
2877
- },
2878
- {
2879
- "length": 20,
2880
- "start": 8983
2881
- },
2882
- {
2883
- "length": 20,
2884
- "start": 10939
2885
- },
2886
- {
2887
- "length": 20,
2888
- "start": 11658
2889
- },
890
+ "contracts/type/RoleId.sol": {
891
+ "RoleIdLib": [
2890
892
  {
2891
893
  "length": 20,
2892
- "start": 11878
2893
- },
2894
- {
2895
- "length": 20,
2896
- "start": 12478
2897
- },
894
+ "start": 7460
895
+ }
896
+ ]
897
+ },
898
+ "contracts/type/Version.sol": {
899
+ "VersionPartLib": [
2898
900
  {
2899
901
  "length": 20,
2900
- "start": 12698
902
+ "start": 5966
2901
903
  }
2902
904
  ]
2903
905
  }
2904
906
  },
2905
907
  "deployedLinkReferences": {
2906
- "contracts/types/Key32.sol": {
2907
- "Key32Lib": [
2908
- {
2909
- "length": 20,
2910
- "start": 7319
2911
- },
2912
- {
2913
- "length": 20,
2914
- "start": 8698
2915
- },
2916
- {
2917
- "length": 20,
2918
- "start": 9447
2919
- },
2920
- {
2921
- "length": 20,
2922
- "start": 9563
2923
- },
2924
- {
2925
- "length": 20,
2926
- "start": 10301
2927
- },
2928
- {
2929
- "length": 20,
2930
- "start": 10417
2931
- },
2932
- {
2933
- "length": 20,
2934
- "start": 11149
2935
- },
2936
- {
2937
- "length": 20,
2938
- "start": 11265
2939
- },
2940
- {
2941
- "length": 20,
2942
- "start": 11447
2943
- },
2944
- {
2945
- "length": 20,
2946
- "start": 11563
2947
- }
2948
- ]
2949
- },
2950
- "contracts/types/NftId.sol": {
908
+ "contracts/type/NftId.sol": {
2951
909
  "NftIdLib": [
2952
910
  {
2953
911
  "length": 20,
2954
- "start": 3075
2955
- },
2956
- {
2957
- "length": 20,
2958
- "start": 4521
2959
- },
2960
- {
2961
- "length": 20,
2962
- "start": 5320
2963
- },
2964
- {
2965
- "length": 20,
2966
- "start": 6482
912
+ "start": 2085
2967
913
  },
2968
914
  {
2969
915
  "length": 20,
2970
- "start": 7973
916
+ "start": 4458
2971
917
  }
2972
918
  ]
2973
919
  },
2974
- "contracts/types/ObjectType.sol": {
2975
- "ObjectTypeLib": [
920
+ "contracts/type/RoleId.sol": {
921
+ "RoleIdLib": [
2976
922
  {
2977
923
  "length": 20,
2978
- "start": 8819
924
+ "start": 7428
2979
925
  }
2980
926
  ]
2981
927
  },
2982
- "contracts/types/RiskId.sol": {
2983
- "RiskIdLib": [
2984
- {
2985
- "length": 20,
2986
- "start": 3695
2987
- },
2988
- {
2989
- "length": 20,
2990
- "start": 5180
2991
- },
2992
- {
2993
- "length": 20,
2994
- "start": 6567
2995
- }
2996
- ]
2997
- },
2998
- "contracts/types/StateId.sol": {
2999
- "StateIdLib": [
3000
- {
3001
- "length": 20,
3002
- "start": 3893
3003
- },
3004
- {
3005
- "length": 20,
3006
- "start": 6721
3007
- },
3008
- {
3009
- "length": 20,
3010
- "start": 7080
3011
- },
3012
- {
3013
- "length": 20,
3014
- "start": 9036
3015
- },
3016
- {
3017
- "length": 20,
3018
- "start": 9755
3019
- },
3020
- {
3021
- "length": 20,
3022
- "start": 9975
3023
- },
3024
- {
3025
- "length": 20,
3026
- "start": 10575
3027
- },
928
+ "contracts/type/Version.sol": {
929
+ "VersionPartLib": [
3028
930
  {
3029
931
  "length": 20,
3030
- "start": 10795
932
+ "start": 5934
3031
933
  }
3032
934
  ]
3033
935
  }