@etherisc/gif-next 0.0.2-2a0a7d0-893 → 0.0.2-2a59cd5-352

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