@etherisc/gif-next 0.0.2-c96f882-016 → 0.0.2-ca84135-795
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +63 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → components/Component.sol/Component.json} +210 -178
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +171 -90
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +133 -162
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +28 -2
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +5 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +203 -119
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +183 -146
- 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/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- 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/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 +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +74 -3
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1649 -28
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +619 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +104 -14
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +155 -662
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +243 -126
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +164 -66
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +275 -74
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +52 -24
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +125 -11
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -13
- 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 +59 -16
- 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/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1094 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +764 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -13
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +15 -77
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +25 -240
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1219 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +492 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +798 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +848 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +424 -0
- 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 +146 -229
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +195 -86
- 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 +159 -316
- 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 +38 -112
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +38 -95
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +530 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
- 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 +2 -2
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +13 -13
- 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/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 +4 -4
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +13 -13
- 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/Versionable.sol/Versionable.dbg.json +1 -1
- 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 +4 -4
- 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 +31 -31
- 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/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/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
- 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/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- 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/StateId.sol/StateIdLib.json +2 -2
- 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 +177 -0
- package/contracts/components/Distribution.sol +17 -29
- package/contracts/components/IComponent.sol +37 -0
- package/contracts/components/IDistributionComponent.sol +1 -0
- package/contracts/components/IPoolComponent.sol +5 -1
- package/contracts/components/IProductComponent.sol +2 -2
- package/contracts/components/Pool.sol +46 -47
- package/contracts/components/Product.sol +57 -59
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +43 -9
- package/contracts/instance/IInstanceBase.sol +27 -0
- package/contracts/instance/IInstanceService.sol +14 -4
- package/contracts/instance/Instance.sol +54 -237
- package/contracts/instance/InstanceAccessManager.sol +93 -78
- package/contracts/instance/InstanceBase.sol +38 -0
- package/contracts/instance/InstanceReader.sol +29 -26
- package/contracts/instance/InstanceService.sol +301 -77
- package/contracts/instance/InstanceServiceManager.sol +10 -12
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +133 -0
- package/contracts/instance/base/IInstanceBase.sol +0 -2
- package/contracts/instance/module/IAccess.sol +27 -17
- package/contracts/instance/module/IBundle.sol +1 -0
- package/contracts/instance/module/ISetup.sol +3 -0
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +115 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +6 -23
- package/contracts/instance/service/IProductService.sol +6 -73
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +142 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +241 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +30 -29
- package/contracts/registry/IRegistryService.sol +36 -14
- package/contracts/registry/Registry.sol +163 -239
- package/contracts/registry/RegistryAccessManager.sol +210 -0
- package/contracts/registry/RegistryService.sol +86 -218
- package/contracts/registry/RegistryServiceManager.sol +20 -22
- package/contracts/registry/ReleaseManager.sol +342 -0
- package/contracts/registry/TokenRegistry.sol +110 -0
- package/contracts/shared/ERC165.sol +6 -2
- package/contracts/shared/IRegisterable.sol +0 -2
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/NftOwnable.sol +4 -4
- package/contracts/shared/ProxyManager.sol +1 -1
- package/contracts/shared/Registerable.sol +1 -0
- package/contracts/shared/Service.sol +14 -8
- package/contracts/test/TestService.sol +3 -2
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/RoleId.sol +14 -6
- package/contracts/types/StateId.sol +4 -0
- package/package.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- 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/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -86
- package/contracts/components/IBaseComponent.sol +0 -24
- package/contracts/instance/AccessManagedSimple.sol +0 -122
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IComponent",
|
4
|
+
"sourceName": "contracts/components/IComponent.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
@@ -23,75 +23,123 @@
|
|
23
23
|
"inputs": [
|
24
24
|
{
|
25
25
|
"internalType": "address",
|
26
|
-
"name": "
|
26
|
+
"name": "caller",
|
27
27
|
"type": "address"
|
28
28
|
}
|
29
29
|
],
|
30
|
-
"name": "
|
30
|
+
"name": "ErrorComponentNotProductService",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [],
|
35
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
31
36
|
"type": "error"
|
32
37
|
},
|
33
38
|
{
|
34
39
|
"inputs": [
|
35
40
|
{
|
36
41
|
"internalType": "address",
|
37
|
-
"name": "
|
42
|
+
"name": "caller",
|
38
43
|
"type": "address"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"internalType": "uint64",
|
47
|
+
"name": "requiredRoleIdNum",
|
48
|
+
"type": "uint64"
|
39
49
|
}
|
40
50
|
],
|
41
|
-
"name": "
|
51
|
+
"name": "ErrorComponentUnauthorized",
|
42
52
|
"type": "error"
|
43
53
|
},
|
44
54
|
{
|
45
55
|
"inputs": [
|
46
56
|
{
|
47
57
|
"internalType": "address",
|
48
|
-
"name": "
|
58
|
+
"name": "newWallet",
|
49
59
|
"type": "address"
|
50
60
|
}
|
51
61
|
],
|
52
|
-
"name": "
|
62
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
53
63
|
"type": "error"
|
54
64
|
},
|
55
65
|
{
|
56
66
|
"inputs": [
|
57
67
|
{
|
58
68
|
"internalType": "address",
|
59
|
-
"name": "
|
69
|
+
"name": "oldWallet",
|
60
70
|
"type": "address"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"internalType": "address",
|
74
|
+
"name": "newWallet",
|
75
|
+
"type": "address"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"internalType": "uint256",
|
79
|
+
"name": "allowance",
|
80
|
+
"type": "uint256"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"internalType": "uint256",
|
84
|
+
"name": "balance",
|
85
|
+
"type": "uint256"
|
61
86
|
}
|
62
87
|
],
|
63
|
-
"name": "
|
88
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
64
89
|
"type": "error"
|
65
90
|
},
|
66
91
|
{
|
67
|
-
"inputs": [
|
68
|
-
|
92
|
+
"inputs": [
|
93
|
+
{
|
94
|
+
"internalType": "address",
|
95
|
+
"name": "contractAddress",
|
96
|
+
"type": "address"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"name": "ErrorContractNotRegistered",
|
69
100
|
"type": "error"
|
70
101
|
},
|
71
102
|
{
|
72
103
|
"inputs": [
|
73
104
|
{
|
74
105
|
"internalType": "address",
|
75
|
-
"name": "
|
106
|
+
"name": "account",
|
76
107
|
"type": "address"
|
77
108
|
}
|
78
109
|
],
|
79
|
-
"name": "
|
110
|
+
"name": "ErrorNotOwner",
|
80
111
|
"type": "error"
|
81
112
|
},
|
82
113
|
{
|
83
|
-
"inputs": [
|
84
|
-
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "registryAddress",
|
118
|
+
"type": "address"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorNotRegistry",
|
85
122
|
"type": "error"
|
86
123
|
},
|
87
124
|
{
|
88
125
|
"inputs": [],
|
89
|
-
"name": "
|
126
|
+
"name": "ErrorRegistryAddressZero",
|
127
|
+
"type": "error"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [
|
131
|
+
{
|
132
|
+
"internalType": "address",
|
133
|
+
"name": "registry",
|
134
|
+
"type": "address"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
90
138
|
"type": "error"
|
91
139
|
},
|
92
140
|
{
|
93
141
|
"inputs": [],
|
94
|
-
"name": "
|
142
|
+
"name": "ErrorRegistryNotInitialized",
|
95
143
|
"type": "error"
|
96
144
|
},
|
97
145
|
{
|
@@ -99,12 +147,12 @@
|
|
99
147
|
"inputs": [
|
100
148
|
{
|
101
149
|
"indexed": false,
|
102
|
-
"internalType": "
|
103
|
-
"name": "
|
104
|
-
"type": "
|
150
|
+
"internalType": "address",
|
151
|
+
"name": "newWallet",
|
152
|
+
"type": "address"
|
105
153
|
}
|
106
154
|
],
|
107
|
-
"name": "
|
155
|
+
"name": "LogComponentWalletAddressChanged",
|
108
156
|
"type": "event"
|
109
157
|
},
|
110
158
|
{
|
@@ -112,39 +160,26 @@
|
|
112
160
|
"inputs": [
|
113
161
|
{
|
114
162
|
"indexed": false,
|
115
|
-
"internalType": "
|
116
|
-
"name": "
|
117
|
-
"type": "
|
163
|
+
"internalType": "address",
|
164
|
+
"name": "from",
|
165
|
+
"type": "address"
|
118
166
|
},
|
119
167
|
{
|
120
168
|
"indexed": false,
|
121
169
|
"internalType": "address",
|
122
|
-
"name": "
|
170
|
+
"name": "to",
|
123
171
|
"type": "address"
|
124
172
|
},
|
125
173
|
{
|
126
174
|
"indexed": false,
|
127
|
-
"internalType": "
|
128
|
-
"name": "
|
129
|
-
"type": "
|
175
|
+
"internalType": "uint256",
|
176
|
+
"name": "amount",
|
177
|
+
"type": "uint256"
|
130
178
|
}
|
131
179
|
],
|
132
|
-
"name": "
|
180
|
+
"name": "LogComponentWalletTokensTransferred",
|
133
181
|
"type": "event"
|
134
182
|
},
|
135
|
-
{
|
136
|
-
"inputs": [],
|
137
|
-
"name": "REGISTERABLE_LOCATION_V1",
|
138
|
-
"outputs": [
|
139
|
-
{
|
140
|
-
"internalType": "bytes32",
|
141
|
-
"name": "",
|
142
|
-
"type": "bytes32"
|
143
|
-
}
|
144
|
-
],
|
145
|
-
"stateMutability": "view",
|
146
|
-
"type": "function"
|
147
|
-
},
|
148
183
|
{
|
149
184
|
"inputs": [],
|
150
185
|
"name": "getInitialInfo",
|
@@ -202,17 +237,30 @@
|
|
202
237
|
},
|
203
238
|
{
|
204
239
|
"inputs": [],
|
205
|
-
"name": "
|
240
|
+
"name": "getInstance",
|
206
241
|
"outputs": [
|
207
242
|
{
|
208
|
-
"internalType": "
|
209
|
-
"name": "",
|
210
|
-
"type": "
|
243
|
+
"internalType": "contract IInstance",
|
244
|
+
"name": "instance",
|
245
|
+
"type": "address"
|
211
246
|
}
|
212
247
|
],
|
213
248
|
"stateMutability": "view",
|
214
249
|
"type": "function"
|
215
250
|
},
|
251
|
+
{
|
252
|
+
"inputs": [],
|
253
|
+
"name": "getName",
|
254
|
+
"outputs": [
|
255
|
+
{
|
256
|
+
"internalType": "string",
|
257
|
+
"name": "name",
|
258
|
+
"type": "string"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
"stateMutability": "pure",
|
262
|
+
"type": "function"
|
263
|
+
},
|
216
264
|
{
|
217
265
|
"inputs": [],
|
218
266
|
"name": "getNftId",
|
@@ -241,12 +289,12 @@
|
|
241
289
|
},
|
242
290
|
{
|
243
291
|
"inputs": [],
|
244
|
-
"name": "
|
292
|
+
"name": "getProductNftId",
|
245
293
|
"outputs": [
|
246
294
|
{
|
247
|
-
"internalType": "
|
248
|
-
"name": "",
|
249
|
-
"type": "
|
295
|
+
"internalType": "NftId",
|
296
|
+
"name": "productNftId",
|
297
|
+
"type": "uint96"
|
250
298
|
}
|
251
299
|
],
|
252
300
|
"stateMutability": "view",
|
@@ -254,31 +302,25 @@
|
|
254
302
|
},
|
255
303
|
{
|
256
304
|
"inputs": [],
|
257
|
-
"name": "
|
305
|
+
"name": "getRegistry",
|
258
306
|
"outputs": [
|
259
307
|
{
|
260
|
-
"internalType": "
|
308
|
+
"internalType": "contract IRegistry",
|
261
309
|
"name": "",
|
262
|
-
"type": "
|
310
|
+
"type": "address"
|
263
311
|
}
|
264
312
|
],
|
265
|
-
"stateMutability": "
|
313
|
+
"stateMutability": "view",
|
266
314
|
"type": "function"
|
267
315
|
},
|
268
316
|
{
|
269
|
-
"inputs": [
|
270
|
-
|
271
|
-
"internalType": "uint256",
|
272
|
-
"name": "idx",
|
273
|
-
"type": "uint256"
|
274
|
-
}
|
275
|
-
],
|
276
|
-
"name": "getVersion",
|
317
|
+
"inputs": [],
|
318
|
+
"name": "getToken",
|
277
319
|
"outputs": [
|
278
320
|
{
|
279
|
-
"internalType": "
|
280
|
-
"name": "",
|
281
|
-
"type": "
|
321
|
+
"internalType": "contract IERC20Metadata",
|
322
|
+
"name": "token",
|
323
|
+
"type": "address"
|
282
324
|
}
|
283
325
|
],
|
284
326
|
"stateMutability": "view",
|
@@ -286,82 +328,40 @@
|
|
286
328
|
},
|
287
329
|
{
|
288
330
|
"inputs": [],
|
289
|
-
"name": "
|
331
|
+
"name": "getWallet",
|
290
332
|
"outputs": [
|
291
333
|
{
|
292
|
-
"internalType": "
|
293
|
-
"name": "",
|
294
|
-
"type": "
|
334
|
+
"internalType": "address",
|
335
|
+
"name": "walletAddress",
|
336
|
+
"type": "address"
|
295
337
|
}
|
296
338
|
],
|
297
339
|
"stateMutability": "view",
|
298
340
|
"type": "function"
|
299
341
|
},
|
300
342
|
{
|
301
|
-
"inputs": [
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
"
|
309
|
-
"
|
310
|
-
|
311
|
-
|
312
|
-
{
|
313
|
-
"internalType": "Version",
|
314
|
-
"name": "version",
|
315
|
-
"type": "uint24"
|
316
|
-
},
|
317
|
-
{
|
318
|
-
"internalType": "address",
|
319
|
-
"name": "implementation",
|
320
|
-
"type": "address"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"internalType": "address",
|
324
|
-
"name": "activatedBy",
|
325
|
-
"type": "address"
|
326
|
-
},
|
327
|
-
{
|
328
|
-
"internalType": "Timestamp",
|
329
|
-
"name": "activatedAt",
|
330
|
-
"type": "uint40"
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"internalType": "Blocknumber",
|
334
|
-
"name": "activatedIn",
|
335
|
-
"type": "uint32"
|
336
|
-
}
|
337
|
-
],
|
338
|
-
"internalType": "struct IVersionable.VersionInfo",
|
339
|
-
"name": "",
|
340
|
-
"type": "tuple"
|
341
|
-
}
|
342
|
-
],
|
343
|
-
"stateMutability": "view",
|
343
|
+
"inputs": [],
|
344
|
+
"name": "linkToRegisteredNftId",
|
345
|
+
"outputs": [],
|
346
|
+
"stateMutability": "nonpayable",
|
347
|
+
"type": "function"
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"inputs": [],
|
351
|
+
"name": "lock",
|
352
|
+
"outputs": [],
|
353
|
+
"stateMutability": "nonpayable",
|
344
354
|
"type": "function"
|
345
355
|
},
|
346
356
|
{
|
347
357
|
"inputs": [
|
348
358
|
{
|
349
|
-
"internalType": "
|
350
|
-
"name": "
|
351
|
-
"type": "
|
352
|
-
},
|
353
|
-
{
|
354
|
-
"internalType": "address",
|
355
|
-
"name": "activatedBy",
|
356
|
-
"type": "address"
|
357
|
-
},
|
358
|
-
{
|
359
|
-
"internalType": "bytes",
|
360
|
-
"name": "data",
|
361
|
-
"type": "bytes"
|
359
|
+
"internalType": "NftId",
|
360
|
+
"name": "productNftId",
|
361
|
+
"type": "uint96"
|
362
362
|
}
|
363
363
|
],
|
364
|
-
"name": "
|
364
|
+
"name": "setProductNftId",
|
365
365
|
"outputs": [],
|
366
366
|
"stateMutability": "nonpayable",
|
367
367
|
"type": "function"
|
@@ -369,25 +369,12 @@
|
|
369
369
|
{
|
370
370
|
"inputs": [
|
371
371
|
{
|
372
|
-
"internalType": "
|
373
|
-
"name": "
|
374
|
-
"type": "
|
375
|
-
}
|
376
|
-
],
|
377
|
-
"name": "isInitialized",
|
378
|
-
"outputs": [
|
379
|
-
{
|
380
|
-
"internalType": "bool",
|
381
|
-
"name": "",
|
382
|
-
"type": "bool"
|
372
|
+
"internalType": "address",
|
373
|
+
"name": "walletAddress",
|
374
|
+
"type": "address"
|
383
375
|
}
|
384
376
|
],
|
385
|
-
"
|
386
|
-
"type": "function"
|
387
|
-
},
|
388
|
-
{
|
389
|
-
"inputs": [],
|
390
|
-
"name": "linkToRegisteredNftId",
|
377
|
+
"name": "setWallet",
|
391
378
|
"outputs": [],
|
392
379
|
"stateMutability": "nonpayable",
|
393
380
|
"type": "function"
|
@@ -412,24 +399,8 @@
|
|
412
399
|
"type": "function"
|
413
400
|
},
|
414
401
|
{
|
415
|
-
"inputs": [
|
416
|
-
|
417
|
-
"internalType": "address",
|
418
|
-
"name": "implementation",
|
419
|
-
"type": "address"
|
420
|
-
},
|
421
|
-
{
|
422
|
-
"internalType": "address",
|
423
|
-
"name": "activatedBy",
|
424
|
-
"type": "address"
|
425
|
-
},
|
426
|
-
{
|
427
|
-
"internalType": "bytes",
|
428
|
-
"name": "data",
|
429
|
-
"type": "bytes"
|
430
|
-
}
|
431
|
-
],
|
432
|
-
"name": "upgrade",
|
402
|
+
"inputs": [],
|
403
|
+
"name": "unlock",
|
433
404
|
"outputs": [],
|
434
405
|
"stateMutability": "nonpayable",
|
435
406
|
"type": "function"
|
@@ -89,17 +89,30 @@
|
|
89
89
|
},
|
90
90
|
{
|
91
91
|
"inputs": [],
|
92
|
-
"name": "
|
92
|
+
"name": "isConfirmingApplication",
|
93
93
|
"outputs": [
|
94
94
|
{
|
95
95
|
"internalType": "bool",
|
96
|
-
"name": "
|
96
|
+
"name": "isConfirmingApplication",
|
97
97
|
"type": "bool"
|
98
98
|
}
|
99
99
|
],
|
100
100
|
"stateMutability": "view",
|
101
101
|
"type": "function"
|
102
102
|
},
|
103
|
+
{
|
104
|
+
"inputs": [
|
105
|
+
{
|
106
|
+
"internalType": "NftId",
|
107
|
+
"name": "bundleNftId",
|
108
|
+
"type": "uint96"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "lockBundle",
|
112
|
+
"outputs": [],
|
113
|
+
"stateMutability": "nonpayable",
|
114
|
+
"type": "function"
|
115
|
+
},
|
103
116
|
{
|
104
117
|
"inputs": [
|
105
118
|
{
|
@@ -240,6 +253,19 @@
|
|
240
253
|
"outputs": [],
|
241
254
|
"stateMutability": "nonpayable",
|
242
255
|
"type": "function"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"inputs": [
|
259
|
+
{
|
260
|
+
"internalType": "NftId",
|
261
|
+
"name": "bundleNftId",
|
262
|
+
"type": "uint96"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"name": "unlockBundle",
|
266
|
+
"outputs": [],
|
267
|
+
"stateMutability": "nonpayable",
|
268
|
+
"type": "function"
|
243
269
|
}
|
244
270
|
],
|
245
271
|
"bytecode": "0x",
|
@@ -59,15 +59,15 @@
|
|
59
59
|
"name": "applicationData",
|
60
60
|
"type": "bytes"
|
61
61
|
},
|
62
|
-
{
|
63
|
-
"internalType": "ReferralId",
|
64
|
-
"name": "referralId",
|
65
|
-
"type": "bytes8"
|
66
|
-
},
|
67
62
|
{
|
68
63
|
"internalType": "NftId",
|
69
64
|
"name": "bundleNftId",
|
70
65
|
"type": "uint96"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"internalType": "ReferralId",
|
69
|
+
"name": "referralId",
|
70
|
+
"type": "bytes8"
|
71
71
|
}
|
72
72
|
],
|
73
73
|
"name": "calculatePremium",
|