@etherisc/gif-next 0.0.2-bc11089-132 → 0.0.2-bca28f1-161
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +897 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +896 -235
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +137 -86
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +798 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +662 -43
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +661 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +603 -204
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +529 -122
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
- 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 +706 -56
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +152 -19
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +560 -272
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +103 -176
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +61 -97
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +460 -191
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +187 -85
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +321 -9
- 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 +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +24 -13
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- 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 +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1117 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +495 -100
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +172 -26
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +554 -62
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +197 -23
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ComponentServiceBase.sol/ComponentServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +221 -104
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +181 -52
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +229 -19
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +152 -32
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +32 -19
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +32 -19
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +481 -87
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +203 -25
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +301 -62
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +169 -23
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +301 -62
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +169 -15
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +225 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +185 -77
- 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 +238 -235
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +243 -129
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +181 -97
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +150 -29
- 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/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +37 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +18 -5
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +69 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +32 -19
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +156 -11
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +156 -6
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +152 -11
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +178 -19
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- 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/shared/Versionable.sol/Versionable.json +2 -2
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +152 -11
- 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 +196 -37
- 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/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -8
- 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/ChainId.sol/ChainIdLib.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/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 +2 -2
- 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/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
- 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/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/Component.sol +236 -0
- package/contracts/components/Distribution.sol +209 -64
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +59 -3
- package/contracts/components/IPoolComponent.sol +50 -29
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +135 -152
- package/contracts/components/Product.sol +103 -117
- package/contracts/instance/BundleManager.sol +7 -11
- package/contracts/instance/IInstance.sol +35 -11
- package/contracts/instance/IInstanceService.sol +23 -2
- package/contracts/instance/Instance.sol +67 -62
- package/contracts/instance/InstanceAccessManager.sol +31 -38
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +198 -56
- package/contracts/instance/InstanceServiceManager.sol +5 -8
- package/contracts/instance/ObjectManager.sol +7 -24
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/module/IAccess.sol +4 -5
- package/contracts/instance/module/ISetup.sol +5 -4
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/BundleService.sol +52 -14
- package/contracts/instance/service/BundleServiceManager.sol +5 -8
- package/contracts/instance/service/DistributionService.sol +208 -49
- package/contracts/instance/service/DistributionServiceManager.sol +6 -9
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +12 -3
- package/contracts/instance/service/IDistributionService.sol +53 -0
- package/contracts/instance/service/IPolicyService.sol +17 -16
- package/contracts/instance/service/PolicyService.sol +148 -132
- package/contracts/instance/service/PoolService.sol +27 -42
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +100 -40
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +37 -19
- package/contracts/registry/IRegistryService.sol +30 -13
- package/contracts/registry/Registry.sol +233 -217
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +81 -162
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +331 -0
- package/contracts/registry/TokenRegistry.sol +11 -9
- package/contracts/shared/ERC165.sol +12 -11
- package/contracts/shared/INftOwnable.sol +12 -6
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +15 -0
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/IVersionable.sol +2 -2
- package/contracts/shared/NftOwnable.sol +113 -57
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +6 -5
- package/contracts/shared/Registerable.sol +15 -24
- package/contracts/shared/RegistryLinked.sol +64 -0
- package/contracts/shared/Service.sol +18 -13
- package/contracts/shared/Versionable.sol +3 -2
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/ObjectType.sol +6 -2
- package/contracts/types/RoleId.sol +4 -5
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -384
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -466
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -148
- package/contracts/components/IBaseComponent.sol +0 -32
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -72
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,6 +3,76 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registry",
|
49
|
+
"type": "address"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"internalType": "NftId",
|
53
|
+
"name": "nftId",
|
54
|
+
"type": "uint96"
|
55
|
+
}
|
56
|
+
],
|
57
|
+
"name": "ErrorAlreadyLinked",
|
58
|
+
"type": "error"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "contractAddress",
|
65
|
+
"type": "address"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "ErrorContractNotRegistered",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorInitialOwnerZero",
|
74
|
+
"type": "error"
|
75
|
+
},
|
6
76
|
{
|
7
77
|
"inputs": [
|
8
78
|
{
|
@@ -40,6 +110,62 @@
|
|
40
110
|
"name": "ErrorNoLifecycle",
|
41
111
|
"type": "error"
|
42
112
|
},
|
113
|
+
{
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "account",
|
118
|
+
"type": "address"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorNotOwner",
|
122
|
+
"type": "error"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"internalType": "address",
|
128
|
+
"name": "registryAddress",
|
129
|
+
"type": "address"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"name": "ErrorNotRegistry",
|
133
|
+
"type": "error"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [],
|
137
|
+
"name": "ErrorRegistryAddressZero",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [
|
142
|
+
{
|
143
|
+
"internalType": "address",
|
144
|
+
"name": "registry",
|
145
|
+
"type": "address"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
149
|
+
"type": "error"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [],
|
153
|
+
"name": "ErrorRegistryNotInitialized",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"anonymous": false,
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "authority",
|
163
|
+
"type": "address"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "AuthorityUpdated",
|
167
|
+
"type": "event"
|
168
|
+
},
|
43
169
|
{
|
44
170
|
"anonymous": false,
|
45
171
|
"inputs": [
|
@@ -169,6 +295,19 @@
|
|
169
295
|
"name": "LogStateUpdated",
|
170
296
|
"type": "event"
|
171
297
|
},
|
298
|
+
{
|
299
|
+
"inputs": [],
|
300
|
+
"name": "authority",
|
301
|
+
"outputs": [
|
302
|
+
{
|
303
|
+
"internalType": "address",
|
304
|
+
"name": "",
|
305
|
+
"type": "address"
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"stateMutability": "view",
|
309
|
+
"type": "function"
|
310
|
+
},
|
172
311
|
{
|
173
312
|
"inputs": [
|
174
313
|
{
|
@@ -282,11 +421,6 @@
|
|
282
421
|
"name": "distributionFee",
|
283
422
|
"type": "tuple"
|
284
423
|
},
|
285
|
-
{
|
286
|
-
"internalType": "bool",
|
287
|
-
"name": "isIntercepting",
|
288
|
-
"type": "bool"
|
289
|
-
},
|
290
424
|
{
|
291
425
|
"internalType": "address",
|
292
426
|
"name": "wallet",
|
@@ -303,6 +437,106 @@
|
|
303
437
|
"stateMutability": "nonpayable",
|
304
438
|
"type": "function"
|
305
439
|
},
|
440
|
+
{
|
441
|
+
"inputs": [
|
442
|
+
{
|
443
|
+
"internalType": "NftId",
|
444
|
+
"name": "nftId",
|
445
|
+
"type": "uint96"
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"components": [
|
449
|
+
{
|
450
|
+
"internalType": "DistributorType",
|
451
|
+
"name": "distributorType",
|
452
|
+
"type": "bytes8"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "bool",
|
456
|
+
"name": "active",
|
457
|
+
"type": "bool"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"internalType": "bytes",
|
461
|
+
"name": "data",
|
462
|
+
"type": "bytes"
|
463
|
+
}
|
464
|
+
],
|
465
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
466
|
+
"name": "info",
|
467
|
+
"type": "tuple"
|
468
|
+
}
|
469
|
+
],
|
470
|
+
"name": "createDistributor",
|
471
|
+
"outputs": [],
|
472
|
+
"stateMutability": "nonpayable",
|
473
|
+
"type": "function"
|
474
|
+
},
|
475
|
+
{
|
476
|
+
"inputs": [
|
477
|
+
{
|
478
|
+
"internalType": "Key32",
|
479
|
+
"name": "distributorKey",
|
480
|
+
"type": "bytes32"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"components": [
|
484
|
+
{
|
485
|
+
"internalType": "string",
|
486
|
+
"name": "name",
|
487
|
+
"type": "string"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"internalType": "UFixed",
|
491
|
+
"name": "minDiscountPercentage",
|
492
|
+
"type": "uint256"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"internalType": "UFixed",
|
496
|
+
"name": "maxDiscountPercentage",
|
497
|
+
"type": "uint256"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"internalType": "UFixed",
|
501
|
+
"name": "commissionPercentage",
|
502
|
+
"type": "uint256"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"internalType": "uint32",
|
506
|
+
"name": "maxReferralCount",
|
507
|
+
"type": "uint32"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"internalType": "uint32",
|
511
|
+
"name": "maxReferralLifetime",
|
512
|
+
"type": "uint32"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"internalType": "bool",
|
516
|
+
"name": "allowSelfReferrals",
|
517
|
+
"type": "bool"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "bool",
|
521
|
+
"name": "allowRenewals",
|
522
|
+
"type": "bool"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "bytes",
|
526
|
+
"name": "data",
|
527
|
+
"type": "bytes"
|
528
|
+
}
|
529
|
+
],
|
530
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
531
|
+
"name": "info",
|
532
|
+
"type": "tuple"
|
533
|
+
}
|
534
|
+
],
|
535
|
+
"name": "createDistributorType",
|
536
|
+
"outputs": [],
|
537
|
+
"stateMutability": "nonpayable",
|
538
|
+
"type": "function"
|
539
|
+
},
|
306
540
|
{
|
307
541
|
"inputs": [
|
308
542
|
{
|
@@ -422,11 +656,31 @@
|
|
422
656
|
"name": "tokenHandler",
|
423
657
|
"type": "address"
|
424
658
|
},
|
659
|
+
{
|
660
|
+
"internalType": "bool",
|
661
|
+
"name": "isInterceptingBundleTransfers",
|
662
|
+
"type": "bool"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"internalType": "bool",
|
666
|
+
"name": "isExternallyManaged",
|
667
|
+
"type": "bool"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"internalType": "bool",
|
671
|
+
"name": "isVerifyingApplications",
|
672
|
+
"type": "bool"
|
673
|
+
},
|
425
674
|
{
|
426
675
|
"internalType": "UFixed",
|
427
676
|
"name": "collateralizationLevel",
|
428
677
|
"type": "uint256"
|
429
678
|
},
|
679
|
+
{
|
680
|
+
"internalType": "UFixed",
|
681
|
+
"name": "retentionLevel",
|
682
|
+
"type": "uint256"
|
683
|
+
},
|
430
684
|
{
|
431
685
|
"components": [
|
432
686
|
{
|
@@ -478,16 +732,6 @@
|
|
478
732
|
"name": "performanceFee",
|
479
733
|
"type": "tuple"
|
480
734
|
},
|
481
|
-
{
|
482
|
-
"internalType": "bool",
|
483
|
-
"name": "isIntercepting",
|
484
|
-
"type": "bool"
|
485
|
-
},
|
486
|
-
{
|
487
|
-
"internalType": "bool",
|
488
|
-
"name": "isConfirmingApplication",
|
489
|
-
"type": "bool"
|
490
|
-
},
|
491
735
|
{
|
492
736
|
"internalType": "address",
|
493
737
|
"name": "wallet",
|
@@ -656,6 +900,61 @@
|
|
656
900
|
"stateMutability": "nonpayable",
|
657
901
|
"type": "function"
|
658
902
|
},
|
903
|
+
{
|
904
|
+
"inputs": [
|
905
|
+
{
|
906
|
+
"internalType": "Key32",
|
907
|
+
"name": "referralKey",
|
908
|
+
"type": "bytes32"
|
909
|
+
},
|
910
|
+
{
|
911
|
+
"components": [
|
912
|
+
{
|
913
|
+
"internalType": "NftId",
|
914
|
+
"name": "distributorNftId",
|
915
|
+
"type": "uint96"
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"internalType": "string",
|
919
|
+
"name": "referralCode",
|
920
|
+
"type": "string"
|
921
|
+
},
|
922
|
+
{
|
923
|
+
"internalType": "UFixed",
|
924
|
+
"name": "discountPercentage",
|
925
|
+
"type": "uint256"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"internalType": "uint32",
|
929
|
+
"name": "maxReferrals",
|
930
|
+
"type": "uint32"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"internalType": "uint32",
|
934
|
+
"name": "usedReferrals",
|
935
|
+
"type": "uint32"
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"internalType": "Timestamp",
|
939
|
+
"name": "expiryAt",
|
940
|
+
"type": "uint40"
|
941
|
+
},
|
942
|
+
{
|
943
|
+
"internalType": "bytes",
|
944
|
+
"name": "data",
|
945
|
+
"type": "bytes"
|
946
|
+
}
|
947
|
+
],
|
948
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
949
|
+
"name": "referralInfo",
|
950
|
+
"type": "tuple"
|
951
|
+
}
|
952
|
+
],
|
953
|
+
"name": "createReferral",
|
954
|
+
"outputs": [],
|
955
|
+
"stateMutability": "nonpayable",
|
956
|
+
"type": "function"
|
957
|
+
},
|
659
958
|
{
|
660
959
|
"inputs": [
|
661
960
|
{
|
@@ -789,19 +1088,6 @@
|
|
789
1088
|
"stateMutability": "view",
|
790
1089
|
"type": "function"
|
791
1090
|
},
|
792
|
-
{
|
793
|
-
"inputs": [],
|
794
|
-
"name": "getComponentOwnerService",
|
795
|
-
"outputs": [
|
796
|
-
{
|
797
|
-
"internalType": "contract IComponentOwnerService",
|
798
|
-
"name": "",
|
799
|
-
"type": "address"
|
800
|
-
}
|
801
|
-
],
|
802
|
-
"stateMutability": "view",
|
803
|
-
"type": "function"
|
804
|
-
},
|
805
1091
|
{
|
806
1092
|
"inputs": [
|
807
1093
|
{
|
@@ -834,6 +1120,56 @@
|
|
834
1120
|
"stateMutability": "view",
|
835
1121
|
"type": "function"
|
836
1122
|
},
|
1123
|
+
{
|
1124
|
+
"inputs": [],
|
1125
|
+
"name": "getInitialInfo",
|
1126
|
+
"outputs": [
|
1127
|
+
{
|
1128
|
+
"components": [
|
1129
|
+
{
|
1130
|
+
"internalType": "NftId",
|
1131
|
+
"name": "nftId",
|
1132
|
+
"type": "uint96"
|
1133
|
+
},
|
1134
|
+
{
|
1135
|
+
"internalType": "NftId",
|
1136
|
+
"name": "parentNftId",
|
1137
|
+
"type": "uint96"
|
1138
|
+
},
|
1139
|
+
{
|
1140
|
+
"internalType": "ObjectType",
|
1141
|
+
"name": "objectType",
|
1142
|
+
"type": "uint8"
|
1143
|
+
},
|
1144
|
+
{
|
1145
|
+
"internalType": "bool",
|
1146
|
+
"name": "isInterceptor",
|
1147
|
+
"type": "bool"
|
1148
|
+
},
|
1149
|
+
{
|
1150
|
+
"internalType": "address",
|
1151
|
+
"name": "objectAddress",
|
1152
|
+
"type": "address"
|
1153
|
+
},
|
1154
|
+
{
|
1155
|
+
"internalType": "address",
|
1156
|
+
"name": "initialOwner",
|
1157
|
+
"type": "address"
|
1158
|
+
},
|
1159
|
+
{
|
1160
|
+
"internalType": "bytes",
|
1161
|
+
"name": "data",
|
1162
|
+
"type": "bytes"
|
1163
|
+
}
|
1164
|
+
],
|
1165
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1166
|
+
"name": "",
|
1167
|
+
"type": "tuple"
|
1168
|
+
}
|
1169
|
+
],
|
1170
|
+
"stateMutability": "view",
|
1171
|
+
"type": "function"
|
1172
|
+
},
|
837
1173
|
{
|
838
1174
|
"inputs": [
|
839
1175
|
{
|
@@ -855,10 +1191,10 @@
|
|
855
1191
|
},
|
856
1192
|
{
|
857
1193
|
"inputs": [],
|
858
|
-
"name": "
|
1194
|
+
"name": "getInstanceReader",
|
859
1195
|
"outputs": [
|
860
1196
|
{
|
861
|
-
"internalType": "contract
|
1197
|
+
"internalType": "contract InstanceReader",
|
862
1198
|
"name": "",
|
863
1199
|
"type": "address"
|
864
1200
|
}
|
@@ -868,15 +1204,15 @@
|
|
868
1204
|
},
|
869
1205
|
{
|
870
1206
|
"inputs": [],
|
871
|
-
"name": "
|
1207
|
+
"name": "getMajorVersion",
|
872
1208
|
"outputs": [
|
873
1209
|
{
|
874
|
-
"internalType": "
|
875
|
-
"name": "",
|
876
|
-
"type": "
|
1210
|
+
"internalType": "VersionPart",
|
1211
|
+
"name": "majorVersion",
|
1212
|
+
"type": "uint8"
|
877
1213
|
}
|
878
1214
|
],
|
879
|
-
"stateMutability": "
|
1215
|
+
"stateMutability": "pure",
|
880
1216
|
"type": "function"
|
881
1217
|
},
|
882
1218
|
{
|
@@ -927,10 +1263,62 @@
|
|
927
1263
|
},
|
928
1264
|
{
|
929
1265
|
"inputs": [],
|
930
|
-
"name": "
|
1266
|
+
"name": "getNftId",
|
1267
|
+
"outputs": [
|
1268
|
+
{
|
1269
|
+
"internalType": "NftId",
|
1270
|
+
"name": "",
|
1271
|
+
"type": "uint96"
|
1272
|
+
}
|
1273
|
+
],
|
1274
|
+
"stateMutability": "view",
|
1275
|
+
"type": "function"
|
1276
|
+
},
|
1277
|
+
{
|
1278
|
+
"inputs": [],
|
1279
|
+
"name": "getOwner",
|
1280
|
+
"outputs": [
|
1281
|
+
{
|
1282
|
+
"internalType": "address",
|
1283
|
+
"name": "",
|
1284
|
+
"type": "address"
|
1285
|
+
}
|
1286
|
+
],
|
1287
|
+
"stateMutability": "view",
|
1288
|
+
"type": "function"
|
1289
|
+
},
|
1290
|
+
{
|
1291
|
+
"inputs": [],
|
1292
|
+
"name": "getPolicyService",
|
1293
|
+
"outputs": [
|
1294
|
+
{
|
1295
|
+
"internalType": "contract IPolicyService",
|
1296
|
+
"name": "",
|
1297
|
+
"type": "address"
|
1298
|
+
}
|
1299
|
+
],
|
1300
|
+
"stateMutability": "view",
|
1301
|
+
"type": "function"
|
1302
|
+
},
|
1303
|
+
{
|
1304
|
+
"inputs": [],
|
1305
|
+
"name": "getPoolService",
|
1306
|
+
"outputs": [
|
1307
|
+
{
|
1308
|
+
"internalType": "contract IPoolService",
|
1309
|
+
"name": "",
|
1310
|
+
"type": "address"
|
1311
|
+
}
|
1312
|
+
],
|
1313
|
+
"stateMutability": "view",
|
1314
|
+
"type": "function"
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"inputs": [],
|
1318
|
+
"name": "getProductService",
|
931
1319
|
"outputs": [
|
932
1320
|
{
|
933
|
-
"internalType": "contract
|
1321
|
+
"internalType": "contract IProductService",
|
934
1322
|
"name": "",
|
935
1323
|
"type": "address"
|
936
1324
|
}
|
@@ -940,10 +1328,10 @@
|
|
940
1328
|
},
|
941
1329
|
{
|
942
1330
|
"inputs": [],
|
943
|
-
"name": "
|
1331
|
+
"name": "getRegistry",
|
944
1332
|
"outputs": [
|
945
1333
|
{
|
946
|
-
"internalType": "contract
|
1334
|
+
"internalType": "contract IRegistry",
|
947
1335
|
"name": "",
|
948
1336
|
"type": "address"
|
949
1337
|
}
|
@@ -953,10 +1341,10 @@
|
|
953
1341
|
},
|
954
1342
|
{
|
955
1343
|
"inputs": [],
|
956
|
-
"name": "
|
1344
|
+
"name": "getRegistryAddress",
|
957
1345
|
"outputs": [
|
958
1346
|
{
|
959
|
-
"internalType": "
|
1347
|
+
"internalType": "address",
|
960
1348
|
"name": "",
|
961
1349
|
"type": "address"
|
962
1350
|
}
|
@@ -1002,6 +1390,19 @@
|
|
1002
1390
|
"stateMutability": "view",
|
1003
1391
|
"type": "function"
|
1004
1392
|
},
|
1393
|
+
{
|
1394
|
+
"inputs": [],
|
1395
|
+
"name": "isConsumingScheduledOp",
|
1396
|
+
"outputs": [
|
1397
|
+
{
|
1398
|
+
"internalType": "bytes4",
|
1399
|
+
"name": "",
|
1400
|
+
"type": "bytes4"
|
1401
|
+
}
|
1402
|
+
],
|
1403
|
+
"stateMutability": "view",
|
1404
|
+
"type": "function"
|
1405
|
+
},
|
1005
1406
|
{
|
1006
1407
|
"inputs": [
|
1007
1408
|
{
|
@@ -1031,6 +1432,26 @@
|
|
1031
1432
|
"stateMutability": "view",
|
1032
1433
|
"type": "function"
|
1033
1434
|
},
|
1435
|
+
{
|
1436
|
+
"inputs": [],
|
1437
|
+
"name": "linkToRegisteredNftId",
|
1438
|
+
"outputs": [],
|
1439
|
+
"stateMutability": "nonpayable",
|
1440
|
+
"type": "function"
|
1441
|
+
},
|
1442
|
+
{
|
1443
|
+
"inputs": [
|
1444
|
+
{
|
1445
|
+
"internalType": "address",
|
1446
|
+
"name": "",
|
1447
|
+
"type": "address"
|
1448
|
+
}
|
1449
|
+
],
|
1450
|
+
"name": "setAuthority",
|
1451
|
+
"outputs": [],
|
1452
|
+
"stateMutability": "nonpayable",
|
1453
|
+
"type": "function"
|
1454
|
+
},
|
1034
1455
|
{
|
1035
1456
|
"inputs": [
|
1036
1457
|
{
|
@@ -1210,11 +1631,6 @@
|
|
1210
1631
|
"name": "distributionFee",
|
1211
1632
|
"type": "tuple"
|
1212
1633
|
},
|
1213
|
-
{
|
1214
|
-
"internalType": "bool",
|
1215
|
-
"name": "isIntercepting",
|
1216
|
-
"type": "bool"
|
1217
|
-
},
|
1218
1634
|
{
|
1219
1635
|
"internalType": "address",
|
1220
1636
|
"name": "wallet",
|
@@ -1254,6 +1670,152 @@
|
|
1254
1670
|
"stateMutability": "nonpayable",
|
1255
1671
|
"type": "function"
|
1256
1672
|
},
|
1673
|
+
{
|
1674
|
+
"inputs": [
|
1675
|
+
{
|
1676
|
+
"internalType": "NftId",
|
1677
|
+
"name": "nftId",
|
1678
|
+
"type": "uint96"
|
1679
|
+
},
|
1680
|
+
{
|
1681
|
+
"components": [
|
1682
|
+
{
|
1683
|
+
"internalType": "DistributorType",
|
1684
|
+
"name": "distributorType",
|
1685
|
+
"type": "bytes8"
|
1686
|
+
},
|
1687
|
+
{
|
1688
|
+
"internalType": "bool",
|
1689
|
+
"name": "active",
|
1690
|
+
"type": "bool"
|
1691
|
+
},
|
1692
|
+
{
|
1693
|
+
"internalType": "bytes",
|
1694
|
+
"name": "data",
|
1695
|
+
"type": "bytes"
|
1696
|
+
}
|
1697
|
+
],
|
1698
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
1699
|
+
"name": "info",
|
1700
|
+
"type": "tuple"
|
1701
|
+
},
|
1702
|
+
{
|
1703
|
+
"internalType": "StateId",
|
1704
|
+
"name": "newState",
|
1705
|
+
"type": "uint8"
|
1706
|
+
}
|
1707
|
+
],
|
1708
|
+
"name": "updateDistributor",
|
1709
|
+
"outputs": [],
|
1710
|
+
"stateMutability": "nonpayable",
|
1711
|
+
"type": "function"
|
1712
|
+
},
|
1713
|
+
{
|
1714
|
+
"inputs": [
|
1715
|
+
{
|
1716
|
+
"internalType": "NftId",
|
1717
|
+
"name": "nftId",
|
1718
|
+
"type": "uint96"
|
1719
|
+
},
|
1720
|
+
{
|
1721
|
+
"internalType": "StateId",
|
1722
|
+
"name": "newState",
|
1723
|
+
"type": "uint8"
|
1724
|
+
}
|
1725
|
+
],
|
1726
|
+
"name": "updateDistributorState",
|
1727
|
+
"outputs": [],
|
1728
|
+
"stateMutability": "nonpayable",
|
1729
|
+
"type": "function"
|
1730
|
+
},
|
1731
|
+
{
|
1732
|
+
"inputs": [
|
1733
|
+
{
|
1734
|
+
"internalType": "Key32",
|
1735
|
+
"name": "distributorKey",
|
1736
|
+
"type": "bytes32"
|
1737
|
+
},
|
1738
|
+
{
|
1739
|
+
"components": [
|
1740
|
+
{
|
1741
|
+
"internalType": "string",
|
1742
|
+
"name": "name",
|
1743
|
+
"type": "string"
|
1744
|
+
},
|
1745
|
+
{
|
1746
|
+
"internalType": "UFixed",
|
1747
|
+
"name": "minDiscountPercentage",
|
1748
|
+
"type": "uint256"
|
1749
|
+
},
|
1750
|
+
{
|
1751
|
+
"internalType": "UFixed",
|
1752
|
+
"name": "maxDiscountPercentage",
|
1753
|
+
"type": "uint256"
|
1754
|
+
},
|
1755
|
+
{
|
1756
|
+
"internalType": "UFixed",
|
1757
|
+
"name": "commissionPercentage",
|
1758
|
+
"type": "uint256"
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
"internalType": "uint32",
|
1762
|
+
"name": "maxReferralCount",
|
1763
|
+
"type": "uint32"
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
"internalType": "uint32",
|
1767
|
+
"name": "maxReferralLifetime",
|
1768
|
+
"type": "uint32"
|
1769
|
+
},
|
1770
|
+
{
|
1771
|
+
"internalType": "bool",
|
1772
|
+
"name": "allowSelfReferrals",
|
1773
|
+
"type": "bool"
|
1774
|
+
},
|
1775
|
+
{
|
1776
|
+
"internalType": "bool",
|
1777
|
+
"name": "allowRenewals",
|
1778
|
+
"type": "bool"
|
1779
|
+
},
|
1780
|
+
{
|
1781
|
+
"internalType": "bytes",
|
1782
|
+
"name": "data",
|
1783
|
+
"type": "bytes"
|
1784
|
+
}
|
1785
|
+
],
|
1786
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
1787
|
+
"name": "info",
|
1788
|
+
"type": "tuple"
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"internalType": "StateId",
|
1792
|
+
"name": "newState",
|
1793
|
+
"type": "uint8"
|
1794
|
+
}
|
1795
|
+
],
|
1796
|
+
"name": "updateDistributorType",
|
1797
|
+
"outputs": [],
|
1798
|
+
"stateMutability": "nonpayable",
|
1799
|
+
"type": "function"
|
1800
|
+
},
|
1801
|
+
{
|
1802
|
+
"inputs": [
|
1803
|
+
{
|
1804
|
+
"internalType": "Key32",
|
1805
|
+
"name": "distributorKey",
|
1806
|
+
"type": "bytes32"
|
1807
|
+
},
|
1808
|
+
{
|
1809
|
+
"internalType": "StateId",
|
1810
|
+
"name": "newState",
|
1811
|
+
"type": "uint8"
|
1812
|
+
}
|
1813
|
+
],
|
1814
|
+
"name": "updateDistributorTypeState",
|
1815
|
+
"outputs": [],
|
1816
|
+
"stateMutability": "nonpayable",
|
1817
|
+
"type": "function"
|
1818
|
+
},
|
1257
1819
|
{
|
1258
1820
|
"inputs": [
|
1259
1821
|
{
|
@@ -1396,11 +1958,31 @@
|
|
1396
1958
|
"name": "tokenHandler",
|
1397
1959
|
"type": "address"
|
1398
1960
|
},
|
1961
|
+
{
|
1962
|
+
"internalType": "bool",
|
1963
|
+
"name": "isInterceptingBundleTransfers",
|
1964
|
+
"type": "bool"
|
1965
|
+
},
|
1966
|
+
{
|
1967
|
+
"internalType": "bool",
|
1968
|
+
"name": "isExternallyManaged",
|
1969
|
+
"type": "bool"
|
1970
|
+
},
|
1971
|
+
{
|
1972
|
+
"internalType": "bool",
|
1973
|
+
"name": "isVerifyingApplications",
|
1974
|
+
"type": "bool"
|
1975
|
+
},
|
1399
1976
|
{
|
1400
1977
|
"internalType": "UFixed",
|
1401
1978
|
"name": "collateralizationLevel",
|
1402
1979
|
"type": "uint256"
|
1403
1980
|
},
|
1981
|
+
{
|
1982
|
+
"internalType": "UFixed",
|
1983
|
+
"name": "retentionLevel",
|
1984
|
+
"type": "uint256"
|
1985
|
+
},
|
1404
1986
|
{
|
1405
1987
|
"components": [
|
1406
1988
|
{
|
@@ -1452,16 +2034,6 @@
|
|
1452
2034
|
"name": "performanceFee",
|
1453
2035
|
"type": "tuple"
|
1454
2036
|
},
|
1455
|
-
{
|
1456
|
-
"internalType": "bool",
|
1457
|
-
"name": "isIntercepting",
|
1458
|
-
"type": "bool"
|
1459
|
-
},
|
1460
|
-
{
|
1461
|
-
"internalType": "bool",
|
1462
|
-
"name": "isConfirmingApplication",
|
1463
|
-
"type": "bool"
|
1464
|
-
},
|
1465
2037
|
{
|
1466
2038
|
"internalType": "address",
|
1467
2039
|
"name": "wallet",
|
@@ -1676,6 +2248,84 @@
|
|
1676
2248
|
"stateMutability": "nonpayable",
|
1677
2249
|
"type": "function"
|
1678
2250
|
},
|
2251
|
+
{
|
2252
|
+
"inputs": [
|
2253
|
+
{
|
2254
|
+
"internalType": "Key32",
|
2255
|
+
"name": "referralKey",
|
2256
|
+
"type": "bytes32"
|
2257
|
+
},
|
2258
|
+
{
|
2259
|
+
"components": [
|
2260
|
+
{
|
2261
|
+
"internalType": "NftId",
|
2262
|
+
"name": "distributorNftId",
|
2263
|
+
"type": "uint96"
|
2264
|
+
},
|
2265
|
+
{
|
2266
|
+
"internalType": "string",
|
2267
|
+
"name": "referralCode",
|
2268
|
+
"type": "string"
|
2269
|
+
},
|
2270
|
+
{
|
2271
|
+
"internalType": "UFixed",
|
2272
|
+
"name": "discountPercentage",
|
2273
|
+
"type": "uint256"
|
2274
|
+
},
|
2275
|
+
{
|
2276
|
+
"internalType": "uint32",
|
2277
|
+
"name": "maxReferrals",
|
2278
|
+
"type": "uint32"
|
2279
|
+
},
|
2280
|
+
{
|
2281
|
+
"internalType": "uint32",
|
2282
|
+
"name": "usedReferrals",
|
2283
|
+
"type": "uint32"
|
2284
|
+
},
|
2285
|
+
{
|
2286
|
+
"internalType": "Timestamp",
|
2287
|
+
"name": "expiryAt",
|
2288
|
+
"type": "uint40"
|
2289
|
+
},
|
2290
|
+
{
|
2291
|
+
"internalType": "bytes",
|
2292
|
+
"name": "data",
|
2293
|
+
"type": "bytes"
|
2294
|
+
}
|
2295
|
+
],
|
2296
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
2297
|
+
"name": "referralInfo",
|
2298
|
+
"type": "tuple"
|
2299
|
+
},
|
2300
|
+
{
|
2301
|
+
"internalType": "StateId",
|
2302
|
+
"name": "newState",
|
2303
|
+
"type": "uint8"
|
2304
|
+
}
|
2305
|
+
],
|
2306
|
+
"name": "updateReferral",
|
2307
|
+
"outputs": [],
|
2308
|
+
"stateMutability": "nonpayable",
|
2309
|
+
"type": "function"
|
2310
|
+
},
|
2311
|
+
{
|
2312
|
+
"inputs": [
|
2313
|
+
{
|
2314
|
+
"internalType": "Key32",
|
2315
|
+
"name": "referralKey",
|
2316
|
+
"type": "bytes32"
|
2317
|
+
},
|
2318
|
+
{
|
2319
|
+
"internalType": "StateId",
|
2320
|
+
"name": "newState",
|
2321
|
+
"type": "uint8"
|
2322
|
+
}
|
2323
|
+
],
|
2324
|
+
"name": "updateReferralState",
|
2325
|
+
"outputs": [],
|
2326
|
+
"stateMutability": "nonpayable",
|
2327
|
+
"type": "function"
|
2328
|
+
},
|
1679
2329
|
{
|
1680
2330
|
"inputs": [
|
1681
2331
|
{
|