@etherisc/gif-next 0.0.2-bdcb44f-543 → 0.0.2-be8b3db-650
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 +40 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +41 -19
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +40 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +41 -19
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +57 -150
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +40 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +76 -189
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +40 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +30 -11
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +32 -174
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +103 -238
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +73 -144
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +32 -32
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +17 -17
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.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/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 +14 -14
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +8 -8
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +132 -135
- 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 +2 -2
- 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 +234 -63
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +40 -32
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +89 -92
- 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 +156 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +21 -0
- 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 +31 -10
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +6 -6
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +105 -16
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +13 -9
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +2 -2
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +2 -2
- 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/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +4 -4
- 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 +12 -12
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +7 -7
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +3 -3
- 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 +2 -2
- 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/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 +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +20 -0
- package/contracts/components/Distribution.sol +0 -13
- package/contracts/components/IComponent.sol +6 -0
- package/contracts/components/IDistributionComponent.sol +0 -8
- package/contracts/components/IPoolComponent.sol +5 -43
- package/contracts/components/Pool.sol +38 -117
- package/contracts/components/Product.sol +4 -0
- package/contracts/instance/BundleManager.sol +6 -4
- package/contracts/instance/IInstance.sol +3 -2
- package/contracts/instance/IInstanceService.sol +2 -1
- package/contracts/instance/Instance.sol +8 -4
- package/contracts/instance/InstanceReader.sol +4 -3
- package/contracts/instance/InstanceService.sol +5 -6
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/ISetup.sol +4 -17
- package/contracts/instance/service/ApplicationService.sol +6 -5
- package/contracts/instance/service/BundleService.sol +72 -35
- package/contracts/instance/service/DistributionService.sol +75 -19
- package/contracts/instance/service/IBundleService.sol +16 -9
- package/contracts/instance/service/IDistributionService.sol +13 -1
- package/contracts/instance/service/IPolicyService.sol +2 -0
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +46 -45
- package/contracts/instance/service/PoolService.sol +72 -18
- package/contracts/registry/ChainNft.sol +4 -0
- package/contracts/registry/Registry.sol +10 -12
- 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/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +1 -0
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +1 -1
@@ -334,6 +334,46 @@
|
|
334
334
|
"stateMutability": "view",
|
335
335
|
"type": "function"
|
336
336
|
},
|
337
|
+
{
|
338
|
+
"inputs": [],
|
339
|
+
"name": "getComponentInfo",
|
340
|
+
"outputs": [
|
341
|
+
{
|
342
|
+
"components": [
|
343
|
+
{
|
344
|
+
"internalType": "string",
|
345
|
+
"name": "name",
|
346
|
+
"type": "string"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"internalType": "contract IERC20Metadata",
|
350
|
+
"name": "token",
|
351
|
+
"type": "address"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"internalType": "contract TokenHandler",
|
355
|
+
"name": "tokenHandler",
|
356
|
+
"type": "address"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"internalType": "address",
|
360
|
+
"name": "wallet",
|
361
|
+
"type": "address"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"internalType": "bytes",
|
365
|
+
"name": "data",
|
366
|
+
"type": "bytes"
|
367
|
+
}
|
368
|
+
],
|
369
|
+
"internalType": "struct IComponents.ComponentInfo",
|
370
|
+
"name": "info",
|
371
|
+
"type": "tuple"
|
372
|
+
}
|
373
|
+
],
|
374
|
+
"stateMutability": "view",
|
375
|
+
"type": "function"
|
376
|
+
},
|
337
377
|
{
|
338
378
|
"inputs": [],
|
339
379
|
"name": "getInitialInfo",
|
@@ -478,6 +478,46 @@
|
|
478
478
|
"stateMutability": "nonpayable",
|
479
479
|
"type": "function"
|
480
480
|
},
|
481
|
+
{
|
482
|
+
"inputs": [],
|
483
|
+
"name": "getComponentInfo",
|
484
|
+
"outputs": [
|
485
|
+
{
|
486
|
+
"components": [
|
487
|
+
{
|
488
|
+
"internalType": "string",
|
489
|
+
"name": "name",
|
490
|
+
"type": "string"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"internalType": "contract IERC20Metadata",
|
494
|
+
"name": "token",
|
495
|
+
"type": "address"
|
496
|
+
},
|
497
|
+
{
|
498
|
+
"internalType": "contract TokenHandler",
|
499
|
+
"name": "tokenHandler",
|
500
|
+
"type": "address"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"internalType": "address",
|
504
|
+
"name": "wallet",
|
505
|
+
"type": "address"
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"internalType": "bytes",
|
509
|
+
"name": "data",
|
510
|
+
"type": "bytes"
|
511
|
+
}
|
512
|
+
],
|
513
|
+
"internalType": "struct IComponents.ComponentInfo",
|
514
|
+
"name": "info",
|
515
|
+
"type": "tuple"
|
516
|
+
}
|
517
|
+
],
|
518
|
+
"stateMutability": "view",
|
519
|
+
"type": "function"
|
520
|
+
},
|
481
521
|
{
|
482
522
|
"inputs": [
|
483
523
|
{
|
@@ -763,7 +803,7 @@
|
|
763
803
|
},
|
764
804
|
{
|
765
805
|
"internalType": "uint256",
|
766
|
-
"name": "
|
806
|
+
"name": "sumDistributionOwnerFees",
|
767
807
|
"type": "uint256"
|
768
808
|
}
|
769
809
|
],
|
@@ -1110,24 +1150,6 @@
|
|
1110
1150
|
"stateMutability": "nonpayable",
|
1111
1151
|
"type": "function"
|
1112
1152
|
},
|
1113
|
-
{
|
1114
|
-
"inputs": [
|
1115
|
-
{
|
1116
|
-
"internalType": "ReferralId",
|
1117
|
-
"name": "referralId",
|
1118
|
-
"type": "bytes8"
|
1119
|
-
},
|
1120
|
-
{
|
1121
|
-
"internalType": "uint256",
|
1122
|
-
"name": "premiumAmount",
|
1123
|
-
"type": "uint256"
|
1124
|
-
}
|
1125
|
-
],
|
1126
|
-
"name": "processSale",
|
1127
|
-
"outputs": [],
|
1128
|
-
"stateMutability": "nonpayable",
|
1129
|
-
"type": "function"
|
1130
|
-
},
|
1131
1153
|
{
|
1132
1154
|
"inputs": [
|
1133
1155
|
{
|
@@ -170,6 +170,46 @@
|
|
170
170
|
"name": "LogComponentWalletTokensTransferred",
|
171
171
|
"type": "event"
|
172
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
|
+
},
|
173
213
|
{
|
174
214
|
"inputs": [],
|
175
215
|
"name": "getInitialInfo",
|
package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json
CHANGED
@@ -301,6 +301,46 @@
|
|
301
301
|
"stateMutability": "nonpayable",
|
302
302
|
"type": "function"
|
303
303
|
},
|
304
|
+
{
|
305
|
+
"inputs": [],
|
306
|
+
"name": "getComponentInfo",
|
307
|
+
"outputs": [
|
308
|
+
{
|
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"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
"stateMutability": "view",
|
342
|
+
"type": "function"
|
343
|
+
},
|
304
344
|
{
|
305
345
|
"inputs": [
|
306
346
|
{
|
@@ -567,7 +607,7 @@
|
|
567
607
|
},
|
568
608
|
{
|
569
609
|
"internalType": "uint256",
|
570
|
-
"name": "
|
610
|
+
"name": "sumDistributionOwnerFees",
|
571
611
|
"type": "uint256"
|
572
612
|
}
|
573
613
|
],
|
@@ -686,24 +726,6 @@
|
|
686
726
|
"stateMutability": "nonpayable",
|
687
727
|
"type": "function"
|
688
728
|
},
|
689
|
-
{
|
690
|
-
"inputs": [
|
691
|
-
{
|
692
|
-
"internalType": "ReferralId",
|
693
|
-
"name": "referralId",
|
694
|
-
"type": "bytes8"
|
695
|
-
},
|
696
|
-
{
|
697
|
-
"internalType": "uint256",
|
698
|
-
"name": "feeAmount",
|
699
|
-
"type": "uint256"
|
700
|
-
}
|
701
|
-
],
|
702
|
-
"name": "processSale",
|
703
|
-
"outputs": [],
|
704
|
-
"stateMutability": "nonpayable",
|
705
|
-
"type": "function"
|
706
|
-
},
|
707
729
|
{
|
708
730
|
"inputs": [
|
709
731
|
{
|
@@ -137,11 +137,6 @@
|
|
137
137
|
"name": "ErrorPoolApplicationBundleMismatch",
|
138
138
|
"type": "error"
|
139
139
|
},
|
140
|
-
{
|
141
|
-
"inputs": [],
|
142
|
-
"name": "ErrorPoolBundleOwnerRoleAlreadySet",
|
143
|
-
"type": "error"
|
144
|
-
},
|
145
140
|
{
|
146
141
|
"inputs": [
|
147
142
|
{
|
@@ -213,38 +208,6 @@
|
|
213
208
|
"name": "LogComponentWalletTokensTransferred",
|
214
209
|
"type": "event"
|
215
210
|
},
|
216
|
-
{
|
217
|
-
"anonymous": false,
|
218
|
-
"inputs": [
|
219
|
-
{
|
220
|
-
"indexed": false,
|
221
|
-
"internalType": "uint256",
|
222
|
-
"name": "previousMaxCapitalAmount",
|
223
|
-
"type": "uint256"
|
224
|
-
},
|
225
|
-
{
|
226
|
-
"indexed": false,
|
227
|
-
"internalType": "uint256",
|
228
|
-
"name": "currentMaxCapitalAmount",
|
229
|
-
"type": "uint256"
|
230
|
-
}
|
231
|
-
],
|
232
|
-
"name": "LogPoolBundleMaxCapitalAmountUpdated",
|
233
|
-
"type": "event"
|
234
|
-
},
|
235
|
-
{
|
236
|
-
"anonymous": false,
|
237
|
-
"inputs": [
|
238
|
-
{
|
239
|
-
"indexed": false,
|
240
|
-
"internalType": "RoleId",
|
241
|
-
"name": "bundleOwnerRole",
|
242
|
-
"type": "uint64"
|
243
|
-
}
|
244
|
-
],
|
245
|
-
"name": "LogPoolBundleOwnerRoleSet",
|
246
|
-
"type": "event"
|
247
|
-
},
|
248
211
|
{
|
249
212
|
"anonymous": false,
|
250
213
|
"inputs": [
|
@@ -342,25 +305,39 @@
|
|
342
305
|
},
|
343
306
|
{
|
344
307
|
"inputs": [],
|
345
|
-
"name": "
|
346
|
-
"outputs": [
|
347
|
-
{
|
348
|
-
"internalType": "RoleId",
|
349
|
-
"name": "bundleOwnerRole",
|
350
|
-
"type": "uint64"
|
351
|
-
}
|
352
|
-
],
|
353
|
-
"stateMutability": "view",
|
354
|
-
"type": "function"
|
355
|
-
},
|
356
|
-
{
|
357
|
-
"inputs": [],
|
358
|
-
"name": "getCollateralizationLevel",
|
308
|
+
"name": "getComponentInfo",
|
359
309
|
"outputs": [
|
360
310
|
{
|
361
|
-
"
|
362
|
-
|
363
|
-
|
311
|
+
"components": [
|
312
|
+
{
|
313
|
+
"internalType": "string",
|
314
|
+
"name": "name",
|
315
|
+
"type": "string"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"internalType": "contract IERC20Metadata",
|
319
|
+
"name": "token",
|
320
|
+
"type": "address"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"internalType": "contract TokenHandler",
|
324
|
+
"name": "tokenHandler",
|
325
|
+
"type": "address"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"internalType": "address",
|
329
|
+
"name": "wallet",
|
330
|
+
"type": "address"
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"internalType": "bytes",
|
334
|
+
"name": "data",
|
335
|
+
"type": "bytes"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"internalType": "struct IComponents.ComponentInfo",
|
339
|
+
"name": "info",
|
340
|
+
"type": "tuple"
|
364
341
|
}
|
365
342
|
],
|
366
343
|
"stateMutability": "view",
|
@@ -429,19 +406,6 @@
|
|
429
406
|
"stateMutability": "view",
|
430
407
|
"type": "function"
|
431
408
|
},
|
432
|
-
{
|
433
|
-
"inputs": [],
|
434
|
-
"name": "getMaxCapitalAmount",
|
435
|
-
"outputs": [
|
436
|
-
{
|
437
|
-
"internalType": "uint256",
|
438
|
-
"name": "maxCapitalAmount",
|
439
|
-
"type": "uint256"
|
440
|
-
}
|
441
|
-
],
|
442
|
-
"stateMutability": "view",
|
443
|
-
"type": "function"
|
444
|
-
},
|
445
409
|
{
|
446
410
|
"inputs": [],
|
447
411
|
"name": "getName",
|
@@ -483,59 +447,7 @@
|
|
483
447
|
},
|
484
448
|
{
|
485
449
|
"inputs": [],
|
486
|
-
"name": "
|
487
|
-
"outputs": [
|
488
|
-
{
|
489
|
-
"internalType": "NftId",
|
490
|
-
"name": "productNftId",
|
491
|
-
"type": "uint96"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"stateMutability": "view",
|
495
|
-
"type": "function"
|
496
|
-
},
|
497
|
-
{
|
498
|
-
"inputs": [],
|
499
|
-
"name": "getRegistry",
|
500
|
-
"outputs": [
|
501
|
-
{
|
502
|
-
"internalType": "contract IRegistry",
|
503
|
-
"name": "",
|
504
|
-
"type": "address"
|
505
|
-
}
|
506
|
-
],
|
507
|
-
"stateMutability": "view",
|
508
|
-
"type": "function"
|
509
|
-
},
|
510
|
-
{
|
511
|
-
"inputs": [],
|
512
|
-
"name": "getRegistryAddress",
|
513
|
-
"outputs": [
|
514
|
-
{
|
515
|
-
"internalType": "address",
|
516
|
-
"name": "",
|
517
|
-
"type": "address"
|
518
|
-
}
|
519
|
-
],
|
520
|
-
"stateMutability": "view",
|
521
|
-
"type": "function"
|
522
|
-
},
|
523
|
-
{
|
524
|
-
"inputs": [],
|
525
|
-
"name": "getRetentionLevel",
|
526
|
-
"outputs": [
|
527
|
-
{
|
528
|
-
"internalType": "UFixed",
|
529
|
-
"name": "retentionLevel",
|
530
|
-
"type": "uint256"
|
531
|
-
}
|
532
|
-
],
|
533
|
-
"stateMutability": "view",
|
534
|
-
"type": "function"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"inputs": [],
|
538
|
-
"name": "getSetupInfo",
|
450
|
+
"name": "getPoolInfo",
|
539
451
|
"outputs": [
|
540
452
|
{
|
541
453
|
"components": [
|
@@ -545,9 +457,9 @@
|
|
545
457
|
"type": "uint96"
|
546
458
|
},
|
547
459
|
{
|
548
|
-
"internalType": "
|
549
|
-
"name": "
|
550
|
-
"type": "
|
460
|
+
"internalType": "RoleId",
|
461
|
+
"name": "bundleOwnerRole",
|
462
|
+
"type": "uint64"
|
551
463
|
},
|
552
464
|
{
|
553
465
|
"internalType": "uint256",
|
@@ -629,15 +541,10 @@
|
|
629
541
|
"internalType": "struct Fee",
|
630
542
|
"name": "performanceFee",
|
631
543
|
"type": "tuple"
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"internalType": "address",
|
635
|
-
"name": "wallet",
|
636
|
-
"type": "address"
|
637
544
|
}
|
638
545
|
],
|
639
|
-
"internalType": "struct
|
640
|
-
"name": "
|
546
|
+
"internalType": "struct IComponents.PoolInfo",
|
547
|
+
"name": "info",
|
641
548
|
"type": "tuple"
|
642
549
|
}
|
643
550
|
],
|
@@ -646,12 +553,12 @@
|
|
646
553
|
},
|
647
554
|
{
|
648
555
|
"inputs": [],
|
649
|
-
"name": "
|
556
|
+
"name": "getProductNftId",
|
650
557
|
"outputs": [
|
651
558
|
{
|
652
|
-
"internalType": "
|
653
|
-
"name": "
|
654
|
-
"type": "
|
559
|
+
"internalType": "NftId",
|
560
|
+
"name": "productNftId",
|
561
|
+
"type": "uint96"
|
655
562
|
}
|
656
563
|
],
|
657
564
|
"stateMutability": "view",
|
@@ -659,11 +566,11 @@
|
|
659
566
|
},
|
660
567
|
{
|
661
568
|
"inputs": [],
|
662
|
-
"name": "
|
569
|
+
"name": "getRegistry",
|
663
570
|
"outputs": [
|
664
571
|
{
|
665
|
-
"internalType": "
|
666
|
-
"name": "
|
572
|
+
"internalType": "contract IRegistry",
|
573
|
+
"name": "",
|
667
574
|
"type": "address"
|
668
575
|
}
|
669
576
|
],
|
@@ -672,12 +579,12 @@
|
|
672
579
|
},
|
673
580
|
{
|
674
581
|
"inputs": [],
|
675
|
-
"name": "
|
582
|
+
"name": "getRegistryAddress",
|
676
583
|
"outputs": [
|
677
584
|
{
|
678
|
-
"internalType": "
|
585
|
+
"internalType": "address",
|
679
586
|
"name": "",
|
680
|
-
"type": "
|
587
|
+
"type": "address"
|
681
588
|
}
|
682
589
|
],
|
683
590
|
"stateMutability": "view",
|
@@ -685,12 +592,12 @@
|
|
685
592
|
},
|
686
593
|
{
|
687
594
|
"inputs": [],
|
688
|
-
"name": "
|
595
|
+
"name": "getToken",
|
689
596
|
"outputs": [
|
690
597
|
{
|
691
|
-
"internalType": "
|
692
|
-
"name": "",
|
693
|
-
"type": "
|
598
|
+
"internalType": "contract IERC20Metadata",
|
599
|
+
"name": "token",
|
600
|
+
"type": "address"
|
694
601
|
}
|
695
602
|
],
|
696
603
|
"stateMutability": "view",
|
@@ -698,12 +605,12 @@
|
|
698
605
|
},
|
699
606
|
{
|
700
607
|
"inputs": [],
|
701
|
-
"name": "
|
608
|
+
"name": "getWallet",
|
702
609
|
"outputs": [
|
703
610
|
{
|
704
|
-
"internalType": "
|
705
|
-
"name": "
|
706
|
-
"type": "
|
611
|
+
"internalType": "address",
|
612
|
+
"name": "walletAddress",
|
613
|
+
"type": "address"
|
707
614
|
}
|
708
615
|
],
|
709
616
|
"stateMutability": "view",
|
@@ -711,11 +618,11 @@
|
|
711
618
|
},
|
712
619
|
{
|
713
620
|
"inputs": [],
|
714
|
-
"name": "
|
621
|
+
"name": "isNftInterceptor",
|
715
622
|
"outputs": [
|
716
623
|
{
|
717
624
|
"internalType": "bool",
|
718
|
-
"name": "",
|
625
|
+
"name": "isInterceptor",
|
719
626
|
"type": "bool"
|
720
627
|
}
|
721
628
|
],
|
@@ -248,6 +248,46 @@
|
|
248
248
|
"stateMutability": "view",
|
249
249
|
"type": "function"
|
250
250
|
},
|
251
|
+
{
|
252
|
+
"inputs": [],
|
253
|
+
"name": "getComponentInfo",
|
254
|
+
"outputs": [
|
255
|
+
{
|
256
|
+
"components": [
|
257
|
+
{
|
258
|
+
"internalType": "string",
|
259
|
+
"name": "name",
|
260
|
+
"type": "string"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"internalType": "contract IERC20Metadata",
|
264
|
+
"name": "token",
|
265
|
+
"type": "address"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"internalType": "contract TokenHandler",
|
269
|
+
"name": "tokenHandler",
|
270
|
+
"type": "address"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "address",
|
274
|
+
"name": "wallet",
|
275
|
+
"type": "address"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"internalType": "bytes",
|
279
|
+
"name": "data",
|
280
|
+
"type": "bytes"
|
281
|
+
}
|
282
|
+
],
|
283
|
+
"internalType": "struct IComponents.ComponentInfo",
|
284
|
+
"name": "info",
|
285
|
+
"type": "tuple"
|
286
|
+
}
|
287
|
+
],
|
288
|
+
"stateMutability": "view",
|
289
|
+
"type": "function"
|
290
|
+
},
|
251
291
|
{
|
252
292
|
"inputs": [],
|
253
293
|
"name": "getDistributionNftId",
|