@etherisc/gif-next 0.0.2-b1059a4-617 → 0.0.2-b13fcec-949
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.
- 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 -183
- 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 +90 -164
- 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 +109 -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 +159 -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 +12 -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 +172 -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 +139 -131
- 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 +14 -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 +864 -67
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +142 -14
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +121 -27
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +104 -96
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +11 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +540 -7
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +32 -64
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +92 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +11 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +69 -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 +125 -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 +18 -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/IRegistryService.sol/IRegistryService.json +11 -0
- 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 +16 -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/IService.sol/IService.json +11 -0
- 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 +12 -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 +14 -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 +16 -44
- package/contracts/components/IComponent.sol +37 -17
- package/contracts/components/IDistributionComponent.sol +1 -30
- 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 -0
- package/contracts/instance/module/IPolicy.sol +26 -1
- package/contracts/instance/module/ISetup.sol +7 -21
- package/contracts/instance/service/ApplicationService.sol +123 -41
- package/contracts/instance/service/BundleService.sol +76 -38
- package/contracts/instance/service/DistributionService.sol +213 -23
- package/contracts/instance/service/IApplicationService.sol +7 -7
- package/contracts/instance/service/IBundleService.sol +19 -11
- package/contracts/instance/service/IDistributionService.sol +36 -3
- package/contracts/instance/service/IPolicyService.sol +3 -20
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +59 -130
- 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/IService.sol +2 -0
- 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",
|
@@ -210,30 +189,6 @@
|
|
210
189
|
"name": "LogDistributorUpdated",
|
211
190
|
"type": "event"
|
212
191
|
},
|
213
|
-
{
|
214
|
-
"inputs": [
|
215
|
-
{
|
216
|
-
"internalType": "ReferralId",
|
217
|
-
"name": "referralId",
|
218
|
-
"type": "bytes8"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"internalType": "uint256",
|
222
|
-
"name": "netPremiumAmount",
|
223
|
-
"type": "uint256"
|
224
|
-
}
|
225
|
-
],
|
226
|
-
"name": "calculateFeeAmount",
|
227
|
-
"outputs": [
|
228
|
-
{
|
229
|
-
"internalType": "uint256",
|
230
|
-
"name": "feeAmount",
|
231
|
-
"type": "uint256"
|
232
|
-
}
|
233
|
-
],
|
234
|
-
"stateMutability": "view",
|
235
|
-
"type": "function"
|
236
|
-
},
|
237
192
|
{
|
238
193
|
"inputs": [
|
239
194
|
{
|
@@ -347,47 +302,43 @@
|
|
347
302
|
"type": "function"
|
348
303
|
},
|
349
304
|
{
|
350
|
-
"inputs": [
|
351
|
-
|
352
|
-
"internalType": "NftId",
|
353
|
-
"name": "distributorNftId",
|
354
|
-
"type": "uint96"
|
355
|
-
},
|
356
|
-
{
|
357
|
-
"internalType": "string",
|
358
|
-
"name": "code",
|
359
|
-
"type": "string"
|
360
|
-
},
|
361
|
-
{
|
362
|
-
"internalType": "UFixed",
|
363
|
-
"name": "discountPercentage",
|
364
|
-
"type": "uint256"
|
365
|
-
},
|
366
|
-
{
|
367
|
-
"internalType": "uint32",
|
368
|
-
"name": "maxReferrals",
|
369
|
-
"type": "uint32"
|
370
|
-
},
|
371
|
-
{
|
372
|
-
"internalType": "Timestamp",
|
373
|
-
"name": "expiryAt",
|
374
|
-
"type": "uint40"
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"internalType": "bytes",
|
378
|
-
"name": "data",
|
379
|
-
"type": "bytes"
|
380
|
-
}
|
381
|
-
],
|
382
|
-
"name": "createReferral",
|
305
|
+
"inputs": [],
|
306
|
+
"name": "getComponentInfo",
|
383
307
|
"outputs": [
|
384
308
|
{
|
385
|
-
"
|
386
|
-
|
387
|
-
|
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"
|
388
339
|
}
|
389
340
|
],
|
390
|
-
"stateMutability": "
|
341
|
+
"stateMutability": "view",
|
391
342
|
"type": "function"
|
392
343
|
},
|
393
344
|
{
|
@@ -502,19 +453,6 @@
|
|
502
453
|
"stateMutability": "view",
|
503
454
|
"type": "function"
|
504
455
|
},
|
505
|
-
{
|
506
|
-
"inputs": [],
|
507
|
-
"name": "getInstanceService",
|
508
|
-
"outputs": [
|
509
|
-
{
|
510
|
-
"internalType": "contract IInstanceService",
|
511
|
-
"name": "",
|
512
|
-
"type": "address"
|
513
|
-
}
|
514
|
-
],
|
515
|
-
"stateMutability": "view",
|
516
|
-
"type": "function"
|
517
|
-
},
|
518
456
|
{
|
519
457
|
"inputs": [],
|
520
458
|
"name": "getName",
|
@@ -567,19 +505,6 @@
|
|
567
505
|
"stateMutability": "view",
|
568
506
|
"type": "function"
|
569
507
|
},
|
570
|
-
{
|
571
|
-
"inputs": [],
|
572
|
-
"name": "getProductService",
|
573
|
-
"outputs": [
|
574
|
-
{
|
575
|
-
"internalType": "contract IProductService",
|
576
|
-
"name": "",
|
577
|
-
"type": "address"
|
578
|
-
}
|
579
|
-
],
|
580
|
-
"stateMutability": "view",
|
581
|
-
"type": "function"
|
582
|
-
},
|
583
508
|
{
|
584
509
|
"inputs": [
|
585
510
|
{
|
@@ -625,25 +550,6 @@
|
|
625
550
|
"stateMutability": "view",
|
626
551
|
"type": "function"
|
627
552
|
},
|
628
|
-
{
|
629
|
-
"inputs": [
|
630
|
-
{
|
631
|
-
"internalType": "ObjectType",
|
632
|
-
"name": "domain",
|
633
|
-
"type": "uint8"
|
634
|
-
}
|
635
|
-
],
|
636
|
-
"name": "getServiceAddress",
|
637
|
-
"outputs": [
|
638
|
-
{
|
639
|
-
"internalType": "address",
|
640
|
-
"name": "service",
|
641
|
-
"type": "address"
|
642
|
-
}
|
643
|
-
],
|
644
|
-
"stateMutability": "view",
|
645
|
-
"type": "function"
|
646
|
-
},
|
647
553
|
{
|
648
554
|
"inputs": [],
|
649
555
|
"name": "getSetupInfo",
|
@@ -660,6 +566,23 @@
|
|
660
566
|
"name": "tokenHandler",
|
661
567
|
"type": "address"
|
662
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
|
+
},
|
663
586
|
{
|
664
587
|
"components": [
|
665
588
|
{
|
@@ -681,6 +604,11 @@
|
|
681
604
|
"internalType": "address",
|
682
605
|
"name": "wallet",
|
683
606
|
"type": "address"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"internalType": "uint256",
|
610
|
+
"name": "sumDistributionOwnerFees",
|
611
|
+
"type": "uint256"
|
684
612
|
}
|
685
613
|
],
|
686
614
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
@@ -759,11 +687,6 @@
|
|
759
687
|
},
|
760
688
|
{
|
761
689
|
"inputs": [
|
762
|
-
{
|
763
|
-
"internalType": "address",
|
764
|
-
"name": "from",
|
765
|
-
"type": "address"
|
766
|
-
},
|
767
690
|
{
|
768
691
|
"internalType": "address",
|
769
692
|
"name": "to",
|
@@ -775,7 +698,7 @@
|
|
775
698
|
"type": "uint256"
|
776
699
|
}
|
777
700
|
],
|
778
|
-
"name": "
|
701
|
+
"name": "nftMint",
|
779
702
|
"outputs": [],
|
780
703
|
"stateMutability": "nonpayable",
|
781
704
|
"type": "function"
|
@@ -783,17 +706,22 @@
|
|
783
706
|
{
|
784
707
|
"inputs": [
|
785
708
|
{
|
786
|
-
"internalType": "
|
787
|
-
"name": "
|
788
|
-
"type": "
|
709
|
+
"internalType": "address",
|
710
|
+
"name": "from",
|
711
|
+
"type": "address"
|
712
|
+
},
|
713
|
+
{
|
714
|
+
"internalType": "address",
|
715
|
+
"name": "to",
|
716
|
+
"type": "address"
|
789
717
|
},
|
790
718
|
{
|
791
719
|
"internalType": "uint256",
|
792
|
-
"name": "
|
720
|
+
"name": "tokenId",
|
793
721
|
"type": "uint256"
|
794
722
|
}
|
795
723
|
],
|
796
|
-
"name": "
|
724
|
+
"name": "nftTransferFrom",
|
797
725
|
"outputs": [],
|
798
726
|
"stateMutability": "nonpayable",
|
799
727
|
"type": "function"
|
@@ -811,7 +739,7 @@
|
|
811
739
|
"type": "uint256"
|
812
740
|
}
|
813
741
|
],
|
814
|
-
"name": "
|
742
|
+
"name": "processRenewal",
|
815
743
|
"outputs": [],
|
816
744
|
"stateMutability": "nonpayable",
|
817
745
|
"type": "function"
|
@@ -819,24 +747,22 @@
|
|
819
747
|
{
|
820
748
|
"inputs": [
|
821
749
|
{
|
822
|
-
"
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
{
|
839
|
-
"inputs": [
|
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
|
+
},
|
840
766
|
{
|
841
767
|
"components": [
|
842
768
|
{
|