@etherisc/gif-next 0.0.2-d679de9-140 → 0.0.2-d6f24e1-490

Sign up to get free protection for your applications and to get access to all the features.
Files changed (400) hide show
  1. package/README.md +255 -8
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +302 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +744 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +217 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +90 -171
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +615 -63
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +620 -70
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  42. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  44. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  46. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  47. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  48. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  49. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  50. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  51. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  52. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  53. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +775 -0
  54. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  55. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  56. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  57. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  58. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +923 -1091
  60. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  61. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  62. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +485 -0
  64. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  65. package/artifacts/contracts/instance/Instance.sol/Instance.json +2557 -1105
  66. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +940 -0
  68. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  70. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  71. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  72. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +970 -0
  74. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  75. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +512 -0
  76. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +272 -0
  78. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  79. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +276 -36
  80. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  81. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
  82. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  83. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
  84. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  85. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  86. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
  87. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  88. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +6 -6
  89. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  90. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  91. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  92. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  93. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  94. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  95. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  96. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  97. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  98. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  99. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  100. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  101. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  102. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  103. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +401 -65
  105. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
  107. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
  109. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
  111. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  112. package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → service/IDistributionService.sol/IDistributionService.json} +204 -58
  113. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +401 -49
  115. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +334 -51
  117. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  118. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +629 -51
  119. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  120. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +464 -0
  121. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  122. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +552 -78
  123. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
  125. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  126. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  127. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  128. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +377 -37
  129. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  130. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -0
  131. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  132. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  133. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  134. package/artifacts/contracts/registry/Registry.sol/Registry.json +487 -123
  135. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  136. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
  137. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  138. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
  139. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  140. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  141. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  142. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  143. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  144. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  145. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  146. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  147. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  149. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  150. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +175 -54
  151. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  153. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  154. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  155. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  157. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  159. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  160. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +199 -83
  161. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  162. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  163. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  165. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  167. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  169. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.json +10 -10
  171. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  173. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
  175. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
  177. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  179. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  180. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +12 -12
  181. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  182. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  183. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  184. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  185. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  186. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +2 -2
  187. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  189. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  191. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  193. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  195. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  197. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +4 -4
  199. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  200. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  201. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  203. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  205. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  206. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  207. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  209. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  210. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  211. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  213. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  214. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  215. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  217. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  218. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  219. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  220. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  221. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  222. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  223. package/contracts/components/BaseComponent.sol +75 -31
  224. package/contracts/components/Distribution.sol +163 -0
  225. package/contracts/components/IBaseComponent.sol +15 -3
  226. package/contracts/components/IDistributionComponent.sol +44 -0
  227. package/contracts/components/IPoolComponent.sol +19 -10
  228. package/contracts/components/IProductComponent.sol +25 -9
  229. package/contracts/components/Pool.sol +126 -33
  230. package/contracts/components/Product.sol +204 -32
  231. package/contracts/experiment/cloning/Cloner.sol +47 -0
  232. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  233. package/contracts/instance/BundleManager.sol +129 -0
  234. package/contracts/instance/Cloneable.sol +46 -0
  235. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  236. package/contracts/instance/IInstance.sol +49 -45
  237. package/contracts/instance/IInstanceBase.sol +26 -0
  238. package/contracts/instance/IInstanceService.sol +32 -0
  239. package/contracts/instance/Instance.sol +441 -51
  240. package/contracts/instance/InstanceAccessManager.sol +288 -0
  241. package/contracts/instance/InstanceBase.sol +41 -0
  242. package/contracts/instance/InstanceReader.sol +315 -0
  243. package/contracts/instance/InstanceService.sol +233 -0
  244. package/contracts/instance/InstanceServiceManager.sol +57 -0
  245. package/contracts/instance/ObjectManager.sol +95 -0
  246. package/contracts/instance/base/ComponentServiceBase.sol +102 -10
  247. package/contracts/instance/base/IInstanceBase.sol +11 -2
  248. package/contracts/instance/base/IKeyValueStore.sol +13 -13
  249. package/contracts/instance/base/ILifecycle.sol +3 -3
  250. package/contracts/instance/base/KeyValueStore.sol +53 -37
  251. package/contracts/instance/base/Lifecycle.sol +16 -11
  252. package/contracts/instance/module/IAccess.sol +38 -0
  253. package/contracts/instance/module/IBundle.sol +20 -0
  254. package/contracts/instance/module/IDistribution.sol +39 -0
  255. package/contracts/instance/module/IPolicy.sol +45 -0
  256. package/contracts/instance/module/IRisk.sol +11 -0
  257. package/contracts/instance/module/ISetup.sol +46 -0
  258. package/contracts/instance/module/ITreasury.sol +23 -0
  259. package/contracts/instance/service/ComponentOwnerService.sol +244 -97
  260. package/contracts/instance/service/DistributionService.sol +88 -0
  261. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  262. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  263. package/contracts/instance/service/IDistributionService.sol +12 -0
  264. package/contracts/instance/service/IPoolService.sol +24 -3
  265. package/contracts/instance/service/IProductService.sol +59 -7
  266. package/contracts/instance/service/PoolService.sol +206 -42
  267. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  268. package/contracts/instance/service/ProductService.sol +349 -133
  269. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  270. package/contracts/registry/ChainNft.sol +80 -37
  271. package/contracts/registry/IRegistry.sol +49 -25
  272. package/contracts/registry/IRegistryService.sol +50 -0
  273. package/contracts/registry/ITransferInterceptor.sol +6 -0
  274. package/contracts/registry/Registry.sol +337 -270
  275. package/contracts/registry/RegistryService.sol +358 -0
  276. package/contracts/registry/RegistryServiceManager.sol +80 -0
  277. package/contracts/registry/TokenRegistry.sol +111 -0
  278. package/contracts/shared/ContractDeployerLib.sol +72 -0
  279. package/contracts/shared/ERC165.sol +6 -2
  280. package/contracts/shared/INftOwnable.sol +22 -0
  281. package/contracts/shared/IRegisterable.sol +8 -15
  282. package/contracts/{instance/base → shared}/IService.sol +3 -3
  283. package/contracts/shared/IVersionable.sol +55 -11
  284. package/contracts/shared/NftOwnable.sol +134 -0
  285. package/contracts/shared/ProxyManager.sol +94 -0
  286. package/contracts/shared/Registerable.sol +63 -59
  287. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  288. package/contracts/shared/Service.sol +55 -0
  289. package/contracts/shared/TokenHandler.sol +27 -0
  290. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  291. package/contracts/shared/Versionable.sol +113 -55
  292. package/contracts/test/TestFee.sol +2 -2
  293. package/contracts/test/TestRegisterable.sol +5 -6
  294. package/contracts/test/TestRoleId.sol +2 -2
  295. package/contracts/test/TestService.sol +5 -13
  296. package/contracts/test/Usdc.sol +26 -0
  297. package/contracts/types/DistributorType.sol +55 -0
  298. package/contracts/types/Fee.sol +10 -5
  299. package/contracts/types/Key32.sol +8 -3
  300. package/contracts/types/NftIdSet.sol +26 -24
  301. package/contracts/types/NumberId.sol +52 -0
  302. package/contracts/types/ObjectType.sol +51 -14
  303. package/contracts/types/Referral.sol +85 -0
  304. package/contracts/types/RiskId.sol +43 -0
  305. package/contracts/types/RoleId.sol +65 -11
  306. package/contracts/types/StateId.sol +5 -1
  307. package/contracts/types/Timestamp.sol +7 -3
  308. package/contracts/types/UFixed.sol +139 -24
  309. package/contracts/types/Version.sol +13 -1
  310. package/package.json +7 -3
  311. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  312. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  313. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  314. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  315. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  316. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  317. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  319. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  321. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  322. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  323. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  324. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  325. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  326. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  327. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  329. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  331. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  333. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  334. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  335. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  336. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  337. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  339. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  341. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  342. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  343. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  344. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  345. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  346. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  347. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  348. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  350. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  352. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  353. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  354. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  355. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  358. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  360. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  362. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  363. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  364. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  365. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  366. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  367. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  368. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  369. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  370. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  371. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  372. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  373. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
  374. package/contracts/experiment/statemachine/README.md +0 -112
  375. package/contracts/instance/IInstanceLinked.sol +0 -8
  376. package/contracts/instance/base/InstanceBase.sol +0 -80
  377. package/contracts/instance/base/ModuleBase.sol +0 -52
  378. package/contracts/instance/base/ServiceBase.sol +0 -37
  379. package/contracts/instance/module/access/Access.sol +0 -149
  380. package/contracts/instance/module/access/IAccess.sol +0 -53
  381. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  382. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  383. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  384. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  385. package/contracts/instance/module/component/ComponentModule.sol +0 -95
  386. package/contracts/instance/module/component/IComponent.sol +0 -53
  387. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  388. package/contracts/instance/module/policy/PolicyModule.sol +0 -76
  389. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  390. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  391. package/contracts/instance/module/risk/IRisk.sol +0 -10
  392. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  393. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  394. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  395. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  396. package/contracts/registry/IChainNft.sol +0 -21
  397. package/contracts/registry/IRegistryLinked.sol +0 -8
  398. package/contracts/shared/IOwnable.sol +0 -6
  399. package/contracts/test/TestPool.sol +0 -22
  400. package/contracts/test/TestProduct.sol +0 -44
@@ -1,479 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "UFixedMathLib",
4
- "sourceName": "contracts/types/UFixed.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "name": "EXP",
9
- "outputs": [
10
- {
11
- "internalType": "int8",
12
- "name": "",
13
- "type": "int8"
14
- }
15
- ],
16
- "stateMutability": "view",
17
- "type": "function"
18
- },
19
- {
20
- "inputs": [],
21
- "name": "MULTIPLIER",
22
- "outputs": [
23
- {
24
- "internalType": "uint256",
25
- "name": "",
26
- "type": "uint256"
27
- }
28
- ],
29
- "stateMutability": "view",
30
- "type": "function"
31
- },
32
- {
33
- "inputs": [],
34
- "name": "MULTIPLIER_HALF",
35
- "outputs": [
36
- {
37
- "internalType": "uint256",
38
- "name": "",
39
- "type": "uint256"
40
- }
41
- ],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
- {
46
- "inputs": [],
47
- "name": "ROUNDING_DOWN",
48
- "outputs": [
49
- {
50
- "internalType": "uint8",
51
- "name": "",
52
- "type": "uint8"
53
- }
54
- ],
55
- "stateMutability": "pure",
56
- "type": "function"
57
- },
58
- {
59
- "inputs": [],
60
- "name": "ROUNDING_HALF_UP",
61
- "outputs": [
62
- {
63
- "internalType": "uint8",
64
- "name": "",
65
- "type": "uint8"
66
- }
67
- ],
68
- "stateMutability": "pure",
69
- "type": "function"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "ROUNDING_UP",
74
- "outputs": [
75
- {
76
- "internalType": "uint8",
77
- "name": "",
78
- "type": "uint8"
79
- }
80
- ],
81
- "stateMutability": "pure",
82
- "type": "function"
83
- },
84
- {
85
- "inputs": [
86
- {
87
- "internalType": "UFixed",
88
- "name": "a",
89
- "type": "uint256"
90
- },
91
- {
92
- "internalType": "UFixed",
93
- "name": "b",
94
- "type": "uint256"
95
- }
96
- ],
97
- "name": "add",
98
- "outputs": [
99
- {
100
- "internalType": "UFixed",
101
- "name": "",
102
- "type": "uint256"
103
- }
104
- ],
105
- "stateMutability": "pure",
106
- "type": "function"
107
- },
108
- {
109
- "inputs": [],
110
- "name": "decimals",
111
- "outputs": [
112
- {
113
- "internalType": "uint256",
114
- "name": "",
115
- "type": "uint256"
116
- }
117
- ],
118
- "stateMutability": "pure",
119
- "type": "function"
120
- },
121
- {
122
- "inputs": [
123
- {
124
- "internalType": "UFixed",
125
- "name": "a",
126
- "type": "uint256"
127
- },
128
- {
129
- "internalType": "UFixed",
130
- "name": "b",
131
- "type": "uint256"
132
- }
133
- ],
134
- "name": "delta",
135
- "outputs": [
136
- {
137
- "internalType": "UFixed",
138
- "name": "",
139
- "type": "uint256"
140
- }
141
- ],
142
- "stateMutability": "pure",
143
- "type": "function"
144
- },
145
- {
146
- "inputs": [
147
- {
148
- "internalType": "UFixed",
149
- "name": "a",
150
- "type": "uint256"
151
- },
152
- {
153
- "internalType": "UFixed",
154
- "name": "b",
155
- "type": "uint256"
156
- }
157
- ],
158
- "name": "div",
159
- "outputs": [
160
- {
161
- "internalType": "UFixed",
162
- "name": "",
163
- "type": "uint256"
164
- }
165
- ],
166
- "stateMutability": "pure",
167
- "type": "function"
168
- },
169
- {
170
- "inputs": [
171
- {
172
- "internalType": "UFixed",
173
- "name": "a",
174
- "type": "uint256"
175
- },
176
- {
177
- "internalType": "UFixed",
178
- "name": "b",
179
- "type": "uint256"
180
- }
181
- ],
182
- "name": "eq",
183
- "outputs": [
184
- {
185
- "internalType": "bool",
186
- "name": "isEqual",
187
- "type": "bool"
188
- }
189
- ],
190
- "stateMutability": "pure",
191
- "type": "function"
192
- },
193
- {
194
- "inputs": [
195
- {
196
- "internalType": "UFixed",
197
- "name": "a",
198
- "type": "uint256"
199
- }
200
- ],
201
- "name": "eqz",
202
- "outputs": [
203
- {
204
- "internalType": "bool",
205
- "name": "isZero",
206
- "type": "bool"
207
- }
208
- ],
209
- "stateMutability": "pure",
210
- "type": "function"
211
- },
212
- {
213
- "inputs": [
214
- {
215
- "internalType": "UFixed",
216
- "name": "a",
217
- "type": "uint256"
218
- },
219
- {
220
- "internalType": "UFixed",
221
- "name": "b",
222
- "type": "uint256"
223
- }
224
- ],
225
- "name": "gt",
226
- "outputs": [
227
- {
228
- "internalType": "bool",
229
- "name": "isGreaterThan",
230
- "type": "bool"
231
- }
232
- ],
233
- "stateMutability": "pure",
234
- "type": "function"
235
- },
236
- {
237
- "inputs": [
238
- {
239
- "internalType": "UFixed",
240
- "name": "a",
241
- "type": "uint256"
242
- },
243
- {
244
- "internalType": "UFixed",
245
- "name": "b",
246
- "type": "uint256"
247
- }
248
- ],
249
- "name": "gte",
250
- "outputs": [
251
- {
252
- "internalType": "bool",
253
- "name": "isGreaterThan",
254
- "type": "bool"
255
- }
256
- ],
257
- "stateMutability": "pure",
258
- "type": "function"
259
- },
260
- {
261
- "inputs": [
262
- {
263
- "internalType": "UFixed",
264
- "name": "a",
265
- "type": "uint256"
266
- }
267
- ],
268
- "name": "gtz",
269
- "outputs": [
270
- {
271
- "internalType": "bool",
272
- "name": "isZero",
273
- "type": "bool"
274
- }
275
- ],
276
- "stateMutability": "pure",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [
281
- {
282
- "internalType": "UFixed",
283
- "name": "a",
284
- "type": "uint256"
285
- },
286
- {
287
- "internalType": "UFixed",
288
- "name": "b",
289
- "type": "uint256"
290
- }
291
- ],
292
- "name": "lt",
293
- "outputs": [
294
- {
295
- "internalType": "bool",
296
- "name": "isGreaterThan",
297
- "type": "bool"
298
- }
299
- ],
300
- "stateMutability": "pure",
301
- "type": "function"
302
- },
303
- {
304
- "inputs": [
305
- {
306
- "internalType": "UFixed",
307
- "name": "a",
308
- "type": "uint256"
309
- },
310
- {
311
- "internalType": "UFixed",
312
- "name": "b",
313
- "type": "uint256"
314
- }
315
- ],
316
- "name": "lte",
317
- "outputs": [
318
- {
319
- "internalType": "bool",
320
- "name": "isGreaterThan",
321
- "type": "bool"
322
- }
323
- ],
324
- "stateMutability": "pure",
325
- "type": "function"
326
- },
327
- {
328
- "inputs": [
329
- {
330
- "internalType": "UFixed",
331
- "name": "a",
332
- "type": "uint256"
333
- },
334
- {
335
- "internalType": "UFixed",
336
- "name": "b",
337
- "type": "uint256"
338
- }
339
- ],
340
- "name": "mul",
341
- "outputs": [
342
- {
343
- "internalType": "UFixed",
344
- "name": "",
345
- "type": "uint256"
346
- }
347
- ],
348
- "stateMutability": "pure",
349
- "type": "function"
350
- },
351
- {
352
- "inputs": [
353
- {
354
- "internalType": "UFixed",
355
- "name": "a",
356
- "type": "uint256"
357
- },
358
- {
359
- "internalType": "UFixed",
360
- "name": "b",
361
- "type": "uint256"
362
- }
363
- ],
364
- "name": "sub",
365
- "outputs": [
366
- {
367
- "internalType": "UFixed",
368
- "name": "",
369
- "type": "uint256"
370
- }
371
- ],
372
- "stateMutability": "pure",
373
- "type": "function"
374
- },
375
- {
376
- "inputs": [
377
- {
378
- "internalType": "UFixed",
379
- "name": "a",
380
- "type": "uint256"
381
- }
382
- ],
383
- "name": "toInt",
384
- "outputs": [
385
- {
386
- "internalType": "uint256",
387
- "name": "",
388
- "type": "uint256"
389
- }
390
- ],
391
- "stateMutability": "pure",
392
- "type": "function"
393
- },
394
- {
395
- "inputs": [
396
- {
397
- "internalType": "UFixed",
398
- "name": "a",
399
- "type": "uint256"
400
- },
401
- {
402
- "internalType": "uint8",
403
- "name": "rounding",
404
- "type": "uint8"
405
- }
406
- ],
407
- "name": "toIntWithRounding",
408
- "outputs": [
409
- {
410
- "internalType": "uint256",
411
- "name": "",
412
- "type": "uint256"
413
- }
414
- ],
415
- "stateMutability": "pure",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [
420
- {
421
- "internalType": "uint256",
422
- "name": "a",
423
- "type": "uint256"
424
- },
425
- {
426
- "internalType": "int8",
427
- "name": "exp",
428
- "type": "int8"
429
- }
430
- ],
431
- "name": "toUFixed",
432
- "outputs": [
433
- {
434
- "internalType": "UFixed",
435
- "name": "",
436
- "type": "uint256"
437
- }
438
- ],
439
- "stateMutability": "pure",
440
- "type": "function"
441
- },
442
- {
443
- "inputs": [
444
- {
445
- "internalType": "uint256",
446
- "name": "a",
447
- "type": "uint256"
448
- }
449
- ],
450
- "name": "toUFixed",
451
- "outputs": [
452
- {
453
- "internalType": "UFixed",
454
- "name": "",
455
- "type": "uint256"
456
- }
457
- ],
458
- "stateMutability": "pure",
459
- "type": "function"
460
- },
461
- {
462
- "inputs": [],
463
- "name": "zero",
464
- "outputs": [
465
- {
466
- "internalType": "UFixed",
467
- "name": "",
468
- "type": "uint256"
469
- }
470
- ],
471
- "stateMutability": "pure",
472
- "type": "function"
473
- }
474
- ],
475
- "bytecode": "0x61146a610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106101625760003560e01c80637a858b97116100cd578063bc1b392d11610086578063bc1b392d1461046d578063bdbb46301461048b578063c8a4ac9c146104a9578063cc8b7b73146104d9578063ea6515c414610509578063eb646d711461053957610162565b80637a858b971461037157806389fa8ed7146103a157806393aa8725146103bf578063a391c15b146103dd578063b47733291461040d578063b67d77c51461043d57610162565b8063313ce5671161011f578063313ce5671461026357806332148d731461028157806344aa6836146102b157806345ebb61e146102e1578063753b14a514610311578063771602f71461034157610162565b8063059f8b161461016757806308c76ec414610185578063118fc88c146101b55780631488c845146101e55780631a12cd471461021557806321e5749b14610233575b600080fd5b61016f610557565b60405161017c9190610b99565b60405180910390f35b61019f600480360381019061019a9190610c1e565b61056b565b6040516101ac9190610b99565b60405180910390f35b6101cf60048036038101906101ca9190610c5e565b61062d565b6040516101dc9190610cb9565b60405180910390f35b6101ff60048036038101906101fa9190610d39565b610641565b60405161020c9190610db4565b60405180910390f35b61021d610714565b60405161022a9190610dde565b60405180910390f35b61024d60048036038101906102489190610c5e565b610719565b60405161025a9190610cb9565b60405180910390f35b61026b61072d565b6040516102789190610b99565b60405180910390f35b61029b60048036038101906102969190610c5e565b610739565b6040516102a89190610cb9565b60405180910390f35b6102cb60048036038101906102c69190610df9565b61074d565b6040516102d89190610b99565b60405180910390f35b6102fb60048036038101906102f69190610e26565b610767565b6040516103089190610db4565b60405180910390f35b61032b60048036038101906103269190610df9565b61078c565b6040516103389190610cb9565b60405180910390f35b61035b60048036038101906103569190610c5e565b61079e565b6040516103689190610db4565b60405180910390f35b61038b60048036038101906103869190610df9565b6107b2565b6040516103989190610cb9565b60405180910390f35b6103a96107c4565b6040516103b69190610e62565b60405180910390f35b6103c76107cd565b6040516103d49190610e62565b60405180910390f35b6103f760048036038101906103f29190610c5e565b6107d2565b6040516104049190610db4565b60405180910390f35b61042760048036038101906104229190610c5e565b6107e6565b6040516104349190610cb9565b60405180910390f35b61045760048036038101906104529190610c5e565b6107fa565b6040516104649190610db4565b60405180910390f35b61047561080e565b6040516104829190610db4565b60405180910390f35b610493610813565b6040516104a09190610e62565b60405180910390f35b6104c360048036038101906104be9190610c5e565b61081c565b6040516104d09190610db4565b60405180910390f35b6104f360048036038101906104ee9190610c5e565b610830565b6040516105009190610db4565b60405180910390f35b610523600480360381019061051e9190610c5e565b610844565b6040516105309190610cb9565b60405180910390f35b610541610858565b60405161054e9190610b99565b60405180910390f35b601260000b600a6105689190610fdf565b81565b60006105756107c4565b60ff168260ff16036105cd576105c66002601260000b600a6105979190610fdf565b6105a19190611059565b846105ac919061108a565b6001601260000b600a6105bf9190610fdf565b6000610878565b9050610627565b6105d56107cd565b60ff168260ff1603610606576105ff836001601260000b600a6105f89190610fdf565b6000610878565b9050610627565b610624836001601260000b600a61061d9190610fdf565b6001610878565b90505b92915050565b600061063983836108ee565b905092915050565b60008082601261065191906110be565b60000b1215610695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068c90611174565b60405180910390fd5b60408260126106a491906110be565b60000b13156106e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106df906111e0565b60405180910390fd5b8160126106f591906110be565b600a6107019190611200565b8361070c919061124b565b905092915050565b601281565b600061072583836108fb565b905092915050565b6000601260ff16905090565b60006107458383610908565b905092915050565b60006107608261075b6107c4565b61056b565b9050919050565b6000601260000b600a61077a9190610fdf565b82610785919061124b565b9050919050565b600061079782610915565b9050919050565b60006107aa8383610921565b905092915050565b60006107bd82610937565b9050919050565b60006002905090565b600090565b60006107de8383610943565b905092915050565b60006107f283836109a2565b905092915050565b600061080683836109b0565b905092915050565b600090565b60006001905090565b60006108288383610a0f565b905092915050565b600061083c8383610a2c565b905092915050565b60006108508383610a61565b905092915050565b6002601260000b600a61086b9190610fdf565b6108759190611059565b81565b600080610886868686610a6f565b90506001600281111561089c5761089b61128d565b5b8360028111156108af576108ae61128d565b5b1480156108cd5750600084806108c8576108c761102a565b5b868809115b156108e2576001816108df919061108a565b90505b80915050949350505050565b6000818310905092915050565b6000818311905092915050565b6000818314905092915050565b60008082149050919050565b6000818361092f919061108a565b905092915050565b60008082119050919050565b6000808211610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90611308565b60405180910390fd5b61099a83670de0b6b3a764000084610a6f565b905092915050565b600081831015905092915050565b60006109bc83836109a2565b6109fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f290611374565b60405180910390fd5b8183610a079190611394565b905092915050565b6000610a248383670de0b6b3a7640000610a6f565b905092915050565b6000610a3883836108fb565b15610a4e57610a4783836109b0565b9050610a5b565b610a5882846109b0565b90505b92915050565b600081831115905092915050565b6000806000801985870985870292508281108382030391505060008103610aaa57838281610aa057610a9f61102a565b5b0492505050610b79565b808411610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390611414565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b6000819050919050565b610b9381610b80565b82525050565b6000602082019050610bae6000830184610b8a565b92915050565b600080fd5b610bc281610b80565b8114610bcd57600080fd5b50565b600081359050610bdf81610bb9565b92915050565b600060ff82169050919050565b610bfb81610be5565b8114610c0657600080fd5b50565b600081359050610c1881610bf2565b92915050565b60008060408385031215610c3557610c34610bb4565b5b6000610c4385828601610bd0565b9250506020610c5485828601610c09565b9150509250929050565b60008060408385031215610c7557610c74610bb4565b5b6000610c8385828601610bd0565b9250506020610c9485828601610bd0565b9150509250929050565b60008115159050919050565b610cb381610c9e565b82525050565b6000602082019050610cce6000830184610caa565b92915050565b610cdd81610b80565b8114610ce857600080fd5b50565b600081359050610cfa81610cd4565b92915050565b60008160000b9050919050565b610d1681610d00565b8114610d2157600080fd5b50565b600081359050610d3381610d0d565b92915050565b60008060408385031215610d5057610d4f610bb4565b5b6000610d5e85828601610ceb565b9250506020610d6f85828601610d24565b9150509250929050565b6000819050919050565b6000610d9e610d99610d9484610b80565b610d79565b610b80565b9050919050565b610dae81610d83565b82525050565b6000602082019050610dc96000830184610da5565b92915050565b610dd881610d00565b82525050565b6000602082019050610df36000830184610dcf565b92915050565b600060208284031215610e0f57610e0e610bb4565b5b6000610e1d84828501610bd0565b91505092915050565b600060208284031215610e3c57610e3b610bb4565b5b6000610e4a84828501610ceb565b91505092915050565b610e5c81610be5565b82525050565b6000602082019050610e776000830184610e53565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115610f0357808604811115610edf57610ede610e7d565b5b6001851615610eee5780820291505b8081029050610efc85610eac565b9450610ec3565b94509492505050565b600082610f1c5760019050610fd8565b81610f2a5760009050610fd8565b8160018114610f405760028114610f4a57610f79565b6001915050610fd8565b60ff841115610f5c57610f5b610e7d565b5b8360020a915084821115610f7357610f72610e7d565b5b50610fd8565b5060208310610133831016604e8410600b8410161715610fae5782820a905083811115610fa957610fa8610e7d565b5b610fd8565b610fbb8484846001610eb9565b92509050818404811115610fd257610fd1610e7d565b5b81810290505b9392505050565b6000610fea82610b80565b9150610ff583610b80565b92506110227fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f0c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061106482610b80565b915061106f83610b80565b92508261107f5761107e61102a565b5b828204905092915050565b600061109582610b80565b91506110a083610b80565b92508282019050808211156110b8576110b7610e7d565b5b92915050565b60006110c982610d00565b91506110d483610d00565b925082820190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808112607f8213171561111157611110610e7d565b5b92915050565b600082825260208201905092915050565b7f4552524f523a464d2d3031303a4558504f4e454e545f544f4f5f534d414c4c00600082015250565b600061115e601f83611117565b915061116982611128565b602082019050919050565b6000602082019050818103600083015261118d81611151565b9050919050565b7f4552524f523a464d2d3031313a4558504f4e454e545f544f4f5f4c4152474500600082015250565b60006111ca601f83611117565b91506111d582611194565b602082019050919050565b600060208201905081810360008301526111f9816111bd565b9050919050565b600061120b82610b80565b915061121683610be5565b92506112437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f0c565b905092915050565b600061125682610b80565b915061126183610b80565b925082820261126f81610b80565b9150828204841483151761128657611285610e7d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4552524f523a55464d2d3032303a44495649534f525f5a45524f000000000000600082015250565b60006112f2601a83611117565b91506112fd826112bc565b602082019050919050565b60006020820190508181036000830152611321816112e5565b9050919050565b7f4552524f523a55464d2d3031303a4e454741544956455f524553554c54000000600082015250565b600061135e601d83611117565b915061136982611328565b602082019050919050565b6000602082019050818103600083015261138d81611351565b9050919050565b600061139f82610b80565b91506113aa83610b80565b92508282039050818111156113c2576113c1610e7d565b5b92915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b60006113fe601583611117565b9150611409826113c8565b602082019050919050565b6000602082019050818103600083015261142d816113f1565b905091905056fea264697066735822122064a3cd11bbc6afe7af5d0ba5521b7521251300933c59cf5734b5dd8df1f1820364736f6c63430008140033",
476
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106101625760003560e01c80637a858b97116100cd578063bc1b392d11610086578063bc1b392d1461046d578063bdbb46301461048b578063c8a4ac9c146104a9578063cc8b7b73146104d9578063ea6515c414610509578063eb646d711461053957610162565b80637a858b971461037157806389fa8ed7146103a157806393aa8725146103bf578063a391c15b146103dd578063b47733291461040d578063b67d77c51461043d57610162565b8063313ce5671161011f578063313ce5671461026357806332148d731461028157806344aa6836146102b157806345ebb61e146102e1578063753b14a514610311578063771602f71461034157610162565b8063059f8b161461016757806308c76ec414610185578063118fc88c146101b55780631488c845146101e55780631a12cd471461021557806321e5749b14610233575b600080fd5b61016f610557565b60405161017c9190610b99565b60405180910390f35b61019f600480360381019061019a9190610c1e565b61056b565b6040516101ac9190610b99565b60405180910390f35b6101cf60048036038101906101ca9190610c5e565b61062d565b6040516101dc9190610cb9565b60405180910390f35b6101ff60048036038101906101fa9190610d39565b610641565b60405161020c9190610db4565b60405180910390f35b61021d610714565b60405161022a9190610dde565b60405180910390f35b61024d60048036038101906102489190610c5e565b610719565b60405161025a9190610cb9565b60405180910390f35b61026b61072d565b6040516102789190610b99565b60405180910390f35b61029b60048036038101906102969190610c5e565b610739565b6040516102a89190610cb9565b60405180910390f35b6102cb60048036038101906102c69190610df9565b61074d565b6040516102d89190610b99565b60405180910390f35b6102fb60048036038101906102f69190610e26565b610767565b6040516103089190610db4565b60405180910390f35b61032b60048036038101906103269190610df9565b61078c565b6040516103389190610cb9565b60405180910390f35b61035b60048036038101906103569190610c5e565b61079e565b6040516103689190610db4565b60405180910390f35b61038b60048036038101906103869190610df9565b6107b2565b6040516103989190610cb9565b60405180910390f35b6103a96107c4565b6040516103b69190610e62565b60405180910390f35b6103c76107cd565b6040516103d49190610e62565b60405180910390f35b6103f760048036038101906103f29190610c5e565b6107d2565b6040516104049190610db4565b60405180910390f35b61042760048036038101906104229190610c5e565b6107e6565b6040516104349190610cb9565b60405180910390f35b61045760048036038101906104529190610c5e565b6107fa565b6040516104649190610db4565b60405180910390f35b61047561080e565b6040516104829190610db4565b60405180910390f35b610493610813565b6040516104a09190610e62565b60405180910390f35b6104c360048036038101906104be9190610c5e565b61081c565b6040516104d09190610db4565b60405180910390f35b6104f360048036038101906104ee9190610c5e565b610830565b6040516105009190610db4565b60405180910390f35b610523600480360381019061051e9190610c5e565b610844565b6040516105309190610cb9565b60405180910390f35b610541610858565b60405161054e9190610b99565b60405180910390f35b601260000b600a6105689190610fdf565b81565b60006105756107c4565b60ff168260ff16036105cd576105c66002601260000b600a6105979190610fdf565b6105a19190611059565b846105ac919061108a565b6001601260000b600a6105bf9190610fdf565b6000610878565b9050610627565b6105d56107cd565b60ff168260ff1603610606576105ff836001601260000b600a6105f89190610fdf565b6000610878565b9050610627565b610624836001601260000b600a61061d9190610fdf565b6001610878565b90505b92915050565b600061063983836108ee565b905092915050565b60008082601261065191906110be565b60000b1215610695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068c90611174565b60405180910390fd5b60408260126106a491906110be565b60000b13156106e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106df906111e0565b60405180910390fd5b8160126106f591906110be565b600a6107019190611200565b8361070c919061124b565b905092915050565b601281565b600061072583836108fb565b905092915050565b6000601260ff16905090565b60006107458383610908565b905092915050565b60006107608261075b6107c4565b61056b565b9050919050565b6000601260000b600a61077a9190610fdf565b82610785919061124b565b9050919050565b600061079782610915565b9050919050565b60006107aa8383610921565b905092915050565b60006107bd82610937565b9050919050565b60006002905090565b600090565b60006107de8383610943565b905092915050565b60006107f283836109a2565b905092915050565b600061080683836109b0565b905092915050565b600090565b60006001905090565b60006108288383610a0f565b905092915050565b600061083c8383610a2c565b905092915050565b60006108508383610a61565b905092915050565b6002601260000b600a61086b9190610fdf565b6108759190611059565b81565b600080610886868686610a6f565b90506001600281111561089c5761089b61128d565b5b8360028111156108af576108ae61128d565b5b1480156108cd5750600084806108c8576108c761102a565b5b868809115b156108e2576001816108df919061108a565b90505b80915050949350505050565b6000818310905092915050565b6000818311905092915050565b6000818314905092915050565b60008082149050919050565b6000818361092f919061108a565b905092915050565b60008082119050919050565b6000808211610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90611308565b60405180910390fd5b61099a83670de0b6b3a764000084610a6f565b905092915050565b600081831015905092915050565b60006109bc83836109a2565b6109fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f290611374565b60405180910390fd5b8183610a079190611394565b905092915050565b6000610a248383670de0b6b3a7640000610a6f565b905092915050565b6000610a3883836108fb565b15610a4e57610a4783836109b0565b9050610a5b565b610a5882846109b0565b90505b92915050565b600081831115905092915050565b6000806000801985870985870292508281108382030391505060008103610aaa57838281610aa057610a9f61102a565b5b0492505050610b79565b808411610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390611414565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b6000819050919050565b610b9381610b80565b82525050565b6000602082019050610bae6000830184610b8a565b92915050565b600080fd5b610bc281610b80565b8114610bcd57600080fd5b50565b600081359050610bdf81610bb9565b92915050565b600060ff82169050919050565b610bfb81610be5565b8114610c0657600080fd5b50565b600081359050610c1881610bf2565b92915050565b60008060408385031215610c3557610c34610bb4565b5b6000610c4385828601610bd0565b9250506020610c5485828601610c09565b9150509250929050565b60008060408385031215610c7557610c74610bb4565b5b6000610c8385828601610bd0565b9250506020610c9485828601610bd0565b9150509250929050565b60008115159050919050565b610cb381610c9e565b82525050565b6000602082019050610cce6000830184610caa565b92915050565b610cdd81610b80565b8114610ce857600080fd5b50565b600081359050610cfa81610cd4565b92915050565b60008160000b9050919050565b610d1681610d00565b8114610d2157600080fd5b50565b600081359050610d3381610d0d565b92915050565b60008060408385031215610d5057610d4f610bb4565b5b6000610d5e85828601610ceb565b9250506020610d6f85828601610d24565b9150509250929050565b6000819050919050565b6000610d9e610d99610d9484610b80565b610d79565b610b80565b9050919050565b610dae81610d83565b82525050565b6000602082019050610dc96000830184610da5565b92915050565b610dd881610d00565b82525050565b6000602082019050610df36000830184610dcf565b92915050565b600060208284031215610e0f57610e0e610bb4565b5b6000610e1d84828501610bd0565b91505092915050565b600060208284031215610e3c57610e3b610bb4565b5b6000610e4a84828501610ceb565b91505092915050565b610e5c81610be5565b82525050565b6000602082019050610e776000830184610e53565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115610f0357808604811115610edf57610ede610e7d565b5b6001851615610eee5780820291505b8081029050610efc85610eac565b9450610ec3565b94509492505050565b600082610f1c5760019050610fd8565b81610f2a5760009050610fd8565b8160018114610f405760028114610f4a57610f79565b6001915050610fd8565b60ff841115610f5c57610f5b610e7d565b5b8360020a915084821115610f7357610f72610e7d565b5b50610fd8565b5060208310610133831016604e8410600b8410161715610fae5782820a905083811115610fa957610fa8610e7d565b5b610fd8565b610fbb8484846001610eb9565b92509050818404811115610fd257610fd1610e7d565b5b81810290505b9392505050565b6000610fea82610b80565b9150610ff583610b80565b92506110227fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f0c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061106482610b80565b915061106f83610b80565b92508261107f5761107e61102a565b5b828204905092915050565b600061109582610b80565b91506110a083610b80565b92508282019050808211156110b8576110b7610e7d565b5b92915050565b60006110c982610d00565b91506110d483610d00565b925082820190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808112607f8213171561111157611110610e7d565b5b92915050565b600082825260208201905092915050565b7f4552524f523a464d2d3031303a4558504f4e454e545f544f4f5f534d414c4c00600082015250565b600061115e601f83611117565b915061116982611128565b602082019050919050565b6000602082019050818103600083015261118d81611151565b9050919050565b7f4552524f523a464d2d3031313a4558504f4e454e545f544f4f5f4c4152474500600082015250565b60006111ca601f83611117565b91506111d582611194565b602082019050919050565b600060208201905081810360008301526111f9816111bd565b9050919050565b600061120b82610b80565b915061121683610be5565b92506112437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f0c565b905092915050565b600061125682610b80565b915061126183610b80565b925082820261126f81610b80565b9150828204841483151761128657611285610e7d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4552524f523a55464d2d3032303a44495649534f525f5a45524f000000000000600082015250565b60006112f2601a83611117565b91506112fd826112bc565b602082019050919050565b60006020820190508181036000830152611321816112e5565b9050919050565b7f4552524f523a55464d2d3031303a4e454741544956455f524553554c54000000600082015250565b600061135e601d83611117565b915061136982611328565b602082019050919050565b6000602082019050818103600083015261138d81611351565b9050919050565b600061139f82610b80565b91506113aa83610b80565b92508282039050818111156113c2576113c1610e7d565b5b92915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b60006113fe601583611117565b9150611409826113c8565b602082019050919050565b6000602082019050818103600083015261142d816113f1565b905091905056fea264697066735822122064a3cd11bbc6afe7af5d0ba5521b7521251300933c59cf5734b5dd8df1f1820364736f6c63430008140033",
477
- "linkReferences": {},
478
- "deployedLinkReferences": {}
479
- }
@@ -1,112 +0,0 @@
1
- # State Machines
2
-
3
- Most GIF objects have a life cycle defined by a state machine.
4
-
5
- For each object type the set of possible states is defined together with its initial state and the set of valid state transitions.
6
-
7
- ## Object Types without States
8
-
9
- * Protocol
10
- * Chains
11
- * Registries (both chain and main registry)
12
-
13
- ## Object Types with States
14
-
15
- * Tokens
16
- * Instances
17
- * Products
18
- * Oracles
19
- * Pools
20
- * Bundles
21
- * Policies
22
- * Claim (non-NFT)
23
- * Payout (non-NFT)
24
-
25
- ### Simple State Machine
26
-
27
- Valid states
28
-
29
- * Active (initial state)
30
- * Paused
31
- * Archived (final state)
32
-
33
- Valid state transitions:
34
-
35
- * Active -> Paused
36
- * Paused -> Active
37
- * Paused -> Archived
38
-
39
-
40
- Candidate object types for simple state machine
41
-
42
- * Token
43
- * Instance
44
- * Product
45
- * Oracle
46
- * Pool
47
-
48
- To discuss:
49
-
50
- * Archived is final state
51
- * What mechanism should exist to revert an unintended transition to 'Archived' state. Should there be such a mechanism?
52
- * What mechanism should exist when the NFT of such an object is burned prematurely. Should there be such a mechanism
53
-
54
- ### Bundle State Machine
55
-
56
- Valid states
57
-
58
- * Active (initial state)
59
- * Paused
60
- * Expired (implicit state)
61
- * Closed (final state)
62
-
63
- Expired is not an explicit state.
64
- A bundle is expired for block.timestamp >= expiredAt
65
-
66
- ### Policy State Machine
67
-
68
- Valid states
69
-
70
- * Applied (initial state)
71
- * Revoked (final state)
72
- * Declined (final state)
73
- * Active
74
- * Expired (implicit state)
75
- * Closed (final state)
76
-
77
- Expired is not an explicit state.
78
- A policy is expired for block.timestamp >= expiredAt
79
-
80
- To discuss:
81
-
82
- * Should 'Closed' be less explicit using a closedAt state variable?
83
- * Or even more lighweight? ie. block.timestamp >= expiredAt and no open claims
84
-
85
- Valid state transitions:
86
-
87
- * Applied -> Revoked
88
- * Applied -> Declined
89
- * Applied -> Active
90
- * Active -> Closed (needs to be expired)
91
-
92
- ### Claim State Machine
93
-
94
- Valid states
95
- * Applied (initial state)
96
- * Confirmed
97
- * Declined (final state)
98
- * Closed (final state)
99
-
100
- Valid state transitions:
101
- * Applied -> Confirmed
102
- * Applied -> Declined
103
- * Confirmed -> Closed
104
-
105
- ### Payout State Machine
106
-
107
- Valid states
108
- * Expected
109
- * PaidOut
110
-
111
- Valid state transitions:
112
- * Expected -> PaidOut
@@ -1,8 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.19;
3
-
4
- import {IInstance} from "./IInstance.sol";
5
-
6
- interface IInstanceLinked {
7
- function getInstance() external view returns (IInstance instance);
8
- }