@etherisc/gif-next 0.0.2-f29e479-370 → 0.0.2-f30e0eb-805
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +68 -89
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +113 -140
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +65 -73
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +91 -122
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +256 -189
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +69 -145
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +279 -245
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +73 -162
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +171 -308
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +98 -40
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +260 -379
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +448 -121
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +120 -227
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +148 -161
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +31 -23
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +54 -71
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +161 -62
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +33 -25
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +137 -140
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +12 -12
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +3 -3
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +2 -2
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +505 -91
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +78 -42
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +110 -27
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +93 -96
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +350 -8
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +21 -64
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +58 -157
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +19 -47
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +114 -17
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +17 -9
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +7 -7
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +4 -4
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +19 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +31 -12
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +5 -5
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +3 -3
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +7 -7
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +3 -3
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +3 -3
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +3 -3
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +95 -85
- package/contracts/components/Distribution.sol +12 -19
- package/contracts/components/IComponent.sol +37 -17
- package/contracts/components/IDistributionComponent.sol +1 -22
- package/contracts/components/IPoolComponent.sol +73 -47
- package/contracts/components/IProductComponent.sol +3 -2
- package/contracts/components/Pool.sol +171 -126
- package/contracts/components/Product.sol +26 -18
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +7 -5
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +16 -10
- package/contracts/instance/IInstanceService.sol +18 -5
- package/contracts/instance/Instance.sol +45 -9
- package/contracts/instance/InstanceAccessManager.sol +382 -157
- package/contracts/instance/InstanceReader.sol +7 -10
- package/contracts/instance/InstanceService.sol +174 -155
- package/contracts/instance/ObjectManager.sol +6 -8
- package/contracts/instance/base/ComponentService.sol +5 -5
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +20 -13
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/IDistribution.sol +2 -1
- package/contracts/instance/module/IPolicy.sol +26 -1
- package/contracts/instance/module/ISetup.sol +7 -22
- package/contracts/instance/service/ApplicationService.sol +123 -41
- package/contracts/instance/service/BundleService.sol +76 -38
- package/contracts/instance/service/DistributionService.sol +139 -47
- package/contracts/instance/service/IApplicationService.sol +7 -7
- package/contracts/instance/service/IBundleService.sol +19 -11
- package/contracts/instance/service/IDistributionService.sol +19 -4
- package/contracts/instance/service/IPolicyService.sol +3 -20
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +59 -132
- package/contracts/instance/service/PoolService.sol +128 -17
- package/contracts/instance/service/ProductService.sol +10 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +2 -0
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +23 -20
- package/contracts/registry/RegistryService.sol +5 -5
- package/contracts/shared/Registerable.sol +2 -2
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/Fee.sol +1 -0
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +1 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +13 -6
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +1 -1
@@ -20,11 +20,6 @@
|
|
20
20
|
"internalType": "NftId",
|
21
21
|
"name": "instanceNftId",
|
22
22
|
"type": "uint96"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"internalType": "address",
|
26
|
-
"name": "instance",
|
27
|
-
"type": "address"
|
28
23
|
}
|
29
24
|
],
|
30
25
|
"name": "ErrorComponentNotInstance",
|
@@ -47,29 +42,7 @@
|
|
47
42
|
"type": "error"
|
48
43
|
},
|
49
44
|
{
|
50
|
-
"inputs": [
|
51
|
-
{
|
52
|
-
"internalType": "address",
|
53
|
-
"name": "caller",
|
54
|
-
"type": "address"
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"internalType": "uint64",
|
58
|
-
"name": "requiredRoleIdNum",
|
59
|
-
"type": "uint64"
|
60
|
-
}
|
61
|
-
],
|
62
|
-
"name": "ErrorComponentUnauthorized",
|
63
|
-
"type": "error"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"inputs": [
|
67
|
-
{
|
68
|
-
"internalType": "address",
|
69
|
-
"name": "newWallet",
|
70
|
-
"type": "address"
|
71
|
-
}
|
72
|
-
],
|
45
|
+
"inputs": [],
|
73
46
|
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
74
47
|
"type": "error"
|
75
48
|
},
|
@@ -156,6 +129,12 @@
|
|
156
129
|
{
|
157
130
|
"anonymous": false,
|
158
131
|
"inputs": [
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "address",
|
135
|
+
"name": "oldWallet",
|
136
|
+
"type": "address"
|
137
|
+
},
|
159
138
|
{
|
160
139
|
"indexed": false,
|
161
140
|
"internalType": "address",
|
@@ -191,6 +170,46 @@
|
|
191
170
|
"name": "LogComponentWalletTokensTransferred",
|
192
171
|
"type": "event"
|
193
172
|
},
|
173
|
+
{
|
174
|
+
"inputs": [],
|
175
|
+
"name": "getComponentInfo",
|
176
|
+
"outputs": [
|
177
|
+
{
|
178
|
+
"components": [
|
179
|
+
{
|
180
|
+
"internalType": "string",
|
181
|
+
"name": "name",
|
182
|
+
"type": "string"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"internalType": "contract IERC20Metadata",
|
186
|
+
"name": "token",
|
187
|
+
"type": "address"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "contract TokenHandler",
|
191
|
+
"name": "tokenHandler",
|
192
|
+
"type": "address"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"internalType": "address",
|
196
|
+
"name": "wallet",
|
197
|
+
"type": "address"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"internalType": "bytes",
|
201
|
+
"name": "data",
|
202
|
+
"type": "bytes"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"internalType": "struct IComponents.ComponentInfo",
|
206
|
+
"name": "info",
|
207
|
+
"type": "tuple"
|
208
|
+
}
|
209
|
+
],
|
210
|
+
"stateMutability": "view",
|
211
|
+
"type": "function"
|
212
|
+
},
|
194
213
|
{
|
195
214
|
"inputs": [],
|
196
215
|
"name": "getInitialInfo",
|
@@ -254,19 +273,6 @@
|
|
254
273
|
"stateMutability": "view",
|
255
274
|
"type": "function"
|
256
275
|
},
|
257
|
-
{
|
258
|
-
"inputs": [],
|
259
|
-
"name": "getInstanceService",
|
260
|
-
"outputs": [
|
261
|
-
{
|
262
|
-
"internalType": "contract IInstanceService",
|
263
|
-
"name": "",
|
264
|
-
"type": "address"
|
265
|
-
}
|
266
|
-
],
|
267
|
-
"stateMutability": "view",
|
268
|
-
"type": "function"
|
269
|
-
},
|
270
276
|
{
|
271
277
|
"inputs": [],
|
272
278
|
"name": "getName",
|
@@ -319,19 +325,6 @@
|
|
319
325
|
"stateMutability": "view",
|
320
326
|
"type": "function"
|
321
327
|
},
|
322
|
-
{
|
323
|
-
"inputs": [],
|
324
|
-
"name": "getProductService",
|
325
|
-
"outputs": [
|
326
|
-
{
|
327
|
-
"internalType": "contract IProductService",
|
328
|
-
"name": "",
|
329
|
-
"type": "address"
|
330
|
-
}
|
331
|
-
],
|
332
|
-
"stateMutability": "view",
|
333
|
-
"type": "function"
|
334
|
-
},
|
335
328
|
{
|
336
329
|
"inputs": [],
|
337
330
|
"name": "getRegistry",
|
@@ -358,25 +351,6 @@
|
|
358
351
|
"stateMutability": "view",
|
359
352
|
"type": "function"
|
360
353
|
},
|
361
|
-
{
|
362
|
-
"inputs": [
|
363
|
-
{
|
364
|
-
"internalType": "ObjectType",
|
365
|
-
"name": "domain",
|
366
|
-
"type": "uint8"
|
367
|
-
}
|
368
|
-
],
|
369
|
-
"name": "getServiceAddress",
|
370
|
-
"outputs": [
|
371
|
-
{
|
372
|
-
"internalType": "address",
|
373
|
-
"name": "service",
|
374
|
-
"type": "address"
|
375
|
-
}
|
376
|
-
],
|
377
|
-
"stateMutability": "view",
|
378
|
-
"type": "function"
|
379
|
-
},
|
380
354
|
{
|
381
355
|
"inputs": [],
|
382
356
|
"name": "getToken",
|
@@ -430,6 +404,24 @@
|
|
430
404
|
"stateMutability": "nonpayable",
|
431
405
|
"type": "function"
|
432
406
|
},
|
407
|
+
{
|
408
|
+
"inputs": [
|
409
|
+
{
|
410
|
+
"internalType": "address",
|
411
|
+
"name": "to",
|
412
|
+
"type": "address"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"internalType": "uint256",
|
416
|
+
"name": "tokenId",
|
417
|
+
"type": "uint256"
|
418
|
+
}
|
419
|
+
],
|
420
|
+
"name": "nftMint",
|
421
|
+
"outputs": [],
|
422
|
+
"stateMutability": "nonpayable",
|
423
|
+
"type": "function"
|
424
|
+
},
|
433
425
|
{
|
434
426
|
"inputs": [
|
435
427
|
{
|
package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json
CHANGED
@@ -20,11 +20,6 @@
|
|
20
20
|
"internalType": "NftId",
|
21
21
|
"name": "instanceNftId",
|
22
22
|
"type": "uint96"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"internalType": "address",
|
26
|
-
"name": "instance",
|
27
|
-
"type": "address"
|
28
23
|
}
|
29
24
|
],
|
30
25
|
"name": "ErrorComponentNotInstance",
|
@@ -47,29 +42,7 @@
|
|
47
42
|
"type": "error"
|
48
43
|
},
|
49
44
|
{
|
50
|
-
"inputs": [
|
51
|
-
{
|
52
|
-
"internalType": "address",
|
53
|
-
"name": "caller",
|
54
|
-
"type": "address"
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"internalType": "uint64",
|
58
|
-
"name": "requiredRoleIdNum",
|
59
|
-
"type": "uint64"
|
60
|
-
}
|
61
|
-
],
|
62
|
-
"name": "ErrorComponentUnauthorized",
|
63
|
-
"type": "error"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"inputs": [
|
67
|
-
{
|
68
|
-
"internalType": "address",
|
69
|
-
"name": "newWallet",
|
70
|
-
"type": "address"
|
71
|
-
}
|
72
|
-
],
|
45
|
+
"inputs": [],
|
73
46
|
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
74
47
|
"type": "error"
|
75
48
|
},
|
@@ -156,6 +129,12 @@
|
|
156
129
|
{
|
157
130
|
"anonymous": false,
|
158
131
|
"inputs": [
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "address",
|
135
|
+
"name": "oldWallet",
|
136
|
+
"type": "address"
|
137
|
+
},
|
159
138
|
{
|
160
139
|
"indexed": false,
|
161
140
|
"internalType": "address",
|
@@ -323,47 +302,43 @@
|
|
323
302
|
"type": "function"
|
324
303
|
},
|
325
304
|
{
|
326
|
-
"inputs": [
|
327
|
-
|
328
|
-
"internalType": "NftId",
|
329
|
-
"name": "distributorNftId",
|
330
|
-
"type": "uint96"
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"internalType": "string",
|
334
|
-
"name": "code",
|
335
|
-
"type": "string"
|
336
|
-
},
|
337
|
-
{
|
338
|
-
"internalType": "UFixed",
|
339
|
-
"name": "discountPercentage",
|
340
|
-
"type": "uint256"
|
341
|
-
},
|
342
|
-
{
|
343
|
-
"internalType": "uint32",
|
344
|
-
"name": "maxReferrals",
|
345
|
-
"type": "uint32"
|
346
|
-
},
|
347
|
-
{
|
348
|
-
"internalType": "Timestamp",
|
349
|
-
"name": "expiryAt",
|
350
|
-
"type": "uint40"
|
351
|
-
},
|
352
|
-
{
|
353
|
-
"internalType": "bytes",
|
354
|
-
"name": "data",
|
355
|
-
"type": "bytes"
|
356
|
-
}
|
357
|
-
],
|
358
|
-
"name": "createReferral",
|
305
|
+
"inputs": [],
|
306
|
+
"name": "getComponentInfo",
|
359
307
|
"outputs": [
|
360
308
|
{
|
361
|
-
"
|
362
|
-
|
363
|
-
|
309
|
+
"components": [
|
310
|
+
{
|
311
|
+
"internalType": "string",
|
312
|
+
"name": "name",
|
313
|
+
"type": "string"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"internalType": "contract IERC20Metadata",
|
317
|
+
"name": "token",
|
318
|
+
"type": "address"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"internalType": "contract TokenHandler",
|
322
|
+
"name": "tokenHandler",
|
323
|
+
"type": "address"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"internalType": "address",
|
327
|
+
"name": "wallet",
|
328
|
+
"type": "address"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"internalType": "bytes",
|
332
|
+
"name": "data",
|
333
|
+
"type": "bytes"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"internalType": "struct IComponents.ComponentInfo",
|
337
|
+
"name": "info",
|
338
|
+
"type": "tuple"
|
364
339
|
}
|
365
340
|
],
|
366
|
-
"stateMutability": "
|
341
|
+
"stateMutability": "view",
|
367
342
|
"type": "function"
|
368
343
|
},
|
369
344
|
{
|
@@ -478,19 +453,6 @@
|
|
478
453
|
"stateMutability": "view",
|
479
454
|
"type": "function"
|
480
455
|
},
|
481
|
-
{
|
482
|
-
"inputs": [],
|
483
|
-
"name": "getInstanceService",
|
484
|
-
"outputs": [
|
485
|
-
{
|
486
|
-
"internalType": "contract IInstanceService",
|
487
|
-
"name": "",
|
488
|
-
"type": "address"
|
489
|
-
}
|
490
|
-
],
|
491
|
-
"stateMutability": "view",
|
492
|
-
"type": "function"
|
493
|
-
},
|
494
456
|
{
|
495
457
|
"inputs": [],
|
496
458
|
"name": "getName",
|
@@ -543,19 +505,6 @@
|
|
543
505
|
"stateMutability": "view",
|
544
506
|
"type": "function"
|
545
507
|
},
|
546
|
-
{
|
547
|
-
"inputs": [],
|
548
|
-
"name": "getProductService",
|
549
|
-
"outputs": [
|
550
|
-
{
|
551
|
-
"internalType": "contract IProductService",
|
552
|
-
"name": "",
|
553
|
-
"type": "address"
|
554
|
-
}
|
555
|
-
],
|
556
|
-
"stateMutability": "view",
|
557
|
-
"type": "function"
|
558
|
-
},
|
559
508
|
{
|
560
509
|
"inputs": [
|
561
510
|
{
|
@@ -601,25 +550,6 @@
|
|
601
550
|
"stateMutability": "view",
|
602
551
|
"type": "function"
|
603
552
|
},
|
604
|
-
{
|
605
|
-
"inputs": [
|
606
|
-
{
|
607
|
-
"internalType": "ObjectType",
|
608
|
-
"name": "domain",
|
609
|
-
"type": "uint8"
|
610
|
-
}
|
611
|
-
],
|
612
|
-
"name": "getServiceAddress",
|
613
|
-
"outputs": [
|
614
|
-
{
|
615
|
-
"internalType": "address",
|
616
|
-
"name": "service",
|
617
|
-
"type": "address"
|
618
|
-
}
|
619
|
-
],
|
620
|
-
"stateMutability": "view",
|
621
|
-
"type": "function"
|
622
|
-
},
|
623
553
|
{
|
624
554
|
"inputs": [],
|
625
555
|
"name": "getSetupInfo",
|
@@ -636,6 +566,23 @@
|
|
636
566
|
"name": "tokenHandler",
|
637
567
|
"type": "address"
|
638
568
|
},
|
569
|
+
{
|
570
|
+
"components": [
|
571
|
+
{
|
572
|
+
"internalType": "UFixed",
|
573
|
+
"name": "fractionalFee",
|
574
|
+
"type": "uint256"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"internalType": "uint256",
|
578
|
+
"name": "fixedFee",
|
579
|
+
"type": "uint256"
|
580
|
+
}
|
581
|
+
],
|
582
|
+
"internalType": "struct Fee",
|
583
|
+
"name": "minDistributionOwnerFee",
|
584
|
+
"type": "tuple"
|
585
|
+
},
|
639
586
|
{
|
640
587
|
"components": [
|
641
588
|
{
|
@@ -657,6 +604,11 @@
|
|
657
604
|
"internalType": "address",
|
658
605
|
"name": "wallet",
|
659
606
|
"type": "address"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"internalType": "uint256",
|
610
|
+
"name": "sumDistributionOwnerFees",
|
611
|
+
"type": "uint256"
|
660
612
|
}
|
661
613
|
],
|
662
614
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
@@ -735,11 +687,6 @@
|
|
735
687
|
},
|
736
688
|
{
|
737
689
|
"inputs": [
|
738
|
-
{
|
739
|
-
"internalType": "address",
|
740
|
-
"name": "from",
|
741
|
-
"type": "address"
|
742
|
-
},
|
743
690
|
{
|
744
691
|
"internalType": "address",
|
745
692
|
"name": "to",
|
@@ -751,7 +698,7 @@
|
|
751
698
|
"type": "uint256"
|
752
699
|
}
|
753
700
|
],
|
754
|
-
"name": "
|
701
|
+
"name": "nftMint",
|
755
702
|
"outputs": [],
|
756
703
|
"stateMutability": "nonpayable",
|
757
704
|
"type": "function"
|
@@ -759,17 +706,22 @@
|
|
759
706
|
{
|
760
707
|
"inputs": [
|
761
708
|
{
|
762
|
-
"internalType": "
|
763
|
-
"name": "
|
764
|
-
"type": "
|
709
|
+
"internalType": "address",
|
710
|
+
"name": "from",
|
711
|
+
"type": "address"
|
712
|
+
},
|
713
|
+
{
|
714
|
+
"internalType": "address",
|
715
|
+
"name": "to",
|
716
|
+
"type": "address"
|
765
717
|
},
|
766
718
|
{
|
767
719
|
"internalType": "uint256",
|
768
|
-
"name": "
|
720
|
+
"name": "tokenId",
|
769
721
|
"type": "uint256"
|
770
722
|
}
|
771
723
|
],
|
772
|
-
"name": "
|
724
|
+
"name": "nftTransferFrom",
|
773
725
|
"outputs": [],
|
774
726
|
"stateMutability": "nonpayable",
|
775
727
|
"type": "function"
|
@@ -787,13 +739,30 @@
|
|
787
739
|
"type": "uint256"
|
788
740
|
}
|
789
741
|
],
|
790
|
-
"name": "
|
742
|
+
"name": "processRenewal",
|
791
743
|
"outputs": [],
|
792
744
|
"stateMutability": "nonpayable",
|
793
745
|
"type": "function"
|
794
746
|
},
|
795
747
|
{
|
796
748
|
"inputs": [
|
749
|
+
{
|
750
|
+
"components": [
|
751
|
+
{
|
752
|
+
"internalType": "UFixed",
|
753
|
+
"name": "fractionalFee",
|
754
|
+
"type": "uint256"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"internalType": "uint256",
|
758
|
+
"name": "fixedFee",
|
759
|
+
"type": "uint256"
|
760
|
+
}
|
761
|
+
],
|
762
|
+
"internalType": "struct Fee",
|
763
|
+
"name": "minDistributionOwnerFee",
|
764
|
+
"type": "tuple"
|
765
|
+
},
|
797
766
|
{
|
798
767
|
"components": [
|
799
768
|
{
|