@etherisc/gif-next 0.0.2-bf75dbb-287 → 0.0.2-c2a8d66-341
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 +4 -0
- package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → Component.sol/Component.json} +300 -12
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +199 -94
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +86 -84
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +496 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +512 -74
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +596 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +180 -205
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +204 -110
- 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/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 +284 -2
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +115 -19
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +117 -601
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +416 -186
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +41 -82
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +253 -226
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +38 -97
- 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/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +124 -61
- 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/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +65 -44
- 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 +1102 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +149 -93
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +29 -36
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IBundleService.sol/IBundleService.json} +295 -46
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -18
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPolicyService.sol/IPolicyService.json} +372 -48
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +12 -246
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -246
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +126 -369
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +29 -56
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +137 -428
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +29 -80
- 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 +231 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +127 -93
- 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 +243 -234
- 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 +68 -161
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +51 -104
- 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 +13 -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/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +13 -18
- 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 +19 -6
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +26 -18
- 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 +19 -11
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +44 -36
- 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/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/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 +216 -0
- package/contracts/components/Distribution.sol +41 -51
- package/contracts/components/IComponent.sol +43 -0
- package/contracts/components/IDistributionComponent.sol +5 -2
- package/contracts/components/IPoolComponent.sol +6 -21
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +50 -109
- package/contracts/components/Product.sol +66 -89
- package/contracts/instance/BundleManager.sol +7 -11
- package/contracts/instance/IInstance.sol +25 -9
- package/contracts/instance/IInstanceService.sol +12 -4
- package/contracts/instance/Instance.sol +45 -230
- package/contracts/instance/InstanceAccessManager.sol +333 -166
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +352 -143
- 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 +36 -20
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +43 -25
- package/contracts/instance/service/DistributionServiceManager.sol +6 -9
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +2 -33
- package/contracts/instance/service/IProductService.sol +2 -72
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +33 -210
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +122 -459
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +36 -17
- package/contracts/registry/IRegistryService.sol +28 -13
- package/contracts/registry/Registry.sol +227 -218
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +61 -157
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +8 -7
- package/contracts/shared/IRegisterable.sol +1 -3
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/NftOwnable.sol +5 -0
- package/contracts/shared/ProxyManager.sol +1 -1
- package/contracts/shared/Registerable.sol +10 -14
- package/contracts/shared/Service.sol +13 -8
- package/contracts/test/TestService.sol +3 -2
- package/contracts/types/RoleId.sol +18 -15
- 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/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- 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/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/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -132
- package/contracts/components/IBaseComponent.sol +0 -31
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -134
- 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
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IPolicyService",
|
4
|
+
"sourceName": "contracts/instance/service/IPolicyService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
@@ -34,78 +34,172 @@
|
|
34
34
|
"inputs": [
|
35
35
|
{
|
36
36
|
"internalType": "address",
|
37
|
-
"name": "
|
37
|
+
"name": "customer",
|
38
|
+
"type": "address"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "address",
|
42
|
+
"name": "tokenHandlerAddress",
|
38
43
|
"type": "address"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"internalType": "uint256",
|
47
|
+
"name": "amount",
|
48
|
+
"type": "uint256"
|
39
49
|
}
|
40
50
|
],
|
41
|
-
"name": "
|
51
|
+
"name": "ErrorIPolicyServiceInsufficientAllowance",
|
42
52
|
"type": "error"
|
43
53
|
},
|
44
54
|
{
|
45
55
|
"inputs": [
|
46
56
|
{
|
47
|
-
"internalType": "
|
48
|
-
"name": "
|
49
|
-
"type": "
|
57
|
+
"internalType": "NftId",
|
58
|
+
"name": "policyNftId",
|
59
|
+
"type": "uint96"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "uint16",
|
63
|
+
"name": "openClaimsCount",
|
64
|
+
"type": "uint16"
|
50
65
|
}
|
51
66
|
],
|
52
|
-
"name": "
|
67
|
+
"name": "ErrorIPolicyServiceOpenClaims",
|
53
68
|
"type": "error"
|
54
69
|
},
|
55
70
|
{
|
56
71
|
"inputs": [
|
57
72
|
{
|
58
|
-
"internalType": "
|
59
|
-
"name": "
|
60
|
-
"type": "
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "policyNftId",
|
75
|
+
"type": "uint96"
|
61
76
|
}
|
62
77
|
],
|
63
|
-
"name": "
|
78
|
+
"name": "ErrorIPolicyServicePolicyAlreadyClosed",
|
64
79
|
"type": "error"
|
65
80
|
},
|
66
81
|
{
|
67
|
-
"inputs": [
|
68
|
-
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "NftId",
|
85
|
+
"name": "policyNftId",
|
86
|
+
"type": "uint96"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"internalType": "Timestamp",
|
90
|
+
"name": "expiredAt",
|
91
|
+
"type": "uint40"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"name": "ErrorIPolicyServicePolicyHasNotExpired",
|
69
95
|
"type": "error"
|
70
96
|
},
|
71
97
|
{
|
72
98
|
"inputs": [
|
73
99
|
{
|
74
|
-
"internalType": "
|
75
|
-
"name": "
|
76
|
-
"type": "
|
100
|
+
"internalType": "NftId",
|
101
|
+
"name": "policyNftId",
|
102
|
+
"type": "uint96"
|
77
103
|
}
|
78
104
|
],
|
79
|
-
"name": "
|
105
|
+
"name": "ErrorIPolicyServicePolicyNotActivated",
|
80
106
|
"type": "error"
|
81
107
|
},
|
82
108
|
{
|
83
|
-
"inputs": [
|
84
|
-
|
109
|
+
"inputs": [
|
110
|
+
{
|
111
|
+
"internalType": "NftId",
|
112
|
+
"name": "policyNftId",
|
113
|
+
"type": "uint96"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "StateId",
|
117
|
+
"name": "state",
|
118
|
+
"type": "uint8"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorIPolicyServicePolicyNotActive",
|
85
122
|
"type": "error"
|
86
123
|
},
|
87
124
|
{
|
88
|
-
"inputs": [
|
89
|
-
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"internalType": "NftId",
|
128
|
+
"name": "policyNftId",
|
129
|
+
"type": "uint96"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"internalType": "uint256",
|
133
|
+
"name": "premiumPaidAmount",
|
134
|
+
"type": "uint256"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "ErrorIPolicyServicePremiumAlreadyPaid",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [
|
142
|
+
{
|
143
|
+
"internalType": "NftId",
|
144
|
+
"name": "policyNftId",
|
145
|
+
"type": "uint96"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"internalType": "uint256",
|
149
|
+
"name": "premiumAmount",
|
150
|
+
"type": "uint256"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"internalType": "uint256",
|
154
|
+
"name": "premiumPaidAmount",
|
155
|
+
"type": "uint256"
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"name": "ErrorIPolicyServicePremiumNotFullyPaid",
|
159
|
+
"type": "error"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"inputs": [
|
163
|
+
{
|
164
|
+
"internalType": "address",
|
165
|
+
"name": "account",
|
166
|
+
"type": "address"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"name": "ErrorNotOwner",
|
170
|
+
"type": "error"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"inputs": [
|
174
|
+
{
|
175
|
+
"internalType": "address",
|
176
|
+
"name": "registryAddress",
|
177
|
+
"type": "address"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"name": "ErrorNotRegistry",
|
90
181
|
"type": "error"
|
91
182
|
},
|
92
183
|
{
|
93
184
|
"inputs": [],
|
94
|
-
"name": "
|
185
|
+
"name": "ErrorRegistryAddressZero",
|
95
186
|
"type": "error"
|
96
187
|
},
|
97
188
|
{
|
98
|
-
"anonymous": false,
|
99
189
|
"inputs": [
|
100
190
|
{
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"type": "uint64"
|
191
|
+
"internalType": "address",
|
192
|
+
"name": "registry",
|
193
|
+
"type": "address"
|
105
194
|
}
|
106
195
|
],
|
107
|
-
"name": "
|
108
|
-
"type": "
|
196
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
197
|
+
"type": "error"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"inputs": [],
|
201
|
+
"name": "ErrorRegistryNotInitialized",
|
202
|
+
"type": "error"
|
109
203
|
},
|
110
204
|
{
|
111
205
|
"anonymous": false,
|
@@ -133,18 +227,204 @@
|
|
133
227
|
"type": "event"
|
134
228
|
},
|
135
229
|
{
|
136
|
-
"inputs": [
|
137
|
-
|
230
|
+
"inputs": [
|
231
|
+
{
|
232
|
+
"internalType": "NftId",
|
233
|
+
"name": "policyNftId",
|
234
|
+
"type": "uint96"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"internalType": "Timestamp",
|
238
|
+
"name": "activateAt",
|
239
|
+
"type": "uint40"
|
240
|
+
}
|
241
|
+
],
|
242
|
+
"name": "activate",
|
243
|
+
"outputs": [],
|
244
|
+
"stateMutability": "nonpayable",
|
245
|
+
"type": "function"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"inputs": [
|
249
|
+
{
|
250
|
+
"internalType": "RiskId",
|
251
|
+
"name": "riskId",
|
252
|
+
"type": "bytes8"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"internalType": "uint256",
|
256
|
+
"name": "sumInsuredAmount",
|
257
|
+
"type": "uint256"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"internalType": "uint256",
|
261
|
+
"name": "lifetime",
|
262
|
+
"type": "uint256"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"internalType": "bytes",
|
266
|
+
"name": "applicationData",
|
267
|
+
"type": "bytes"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"internalType": "NftId",
|
271
|
+
"name": "bundleNftId",
|
272
|
+
"type": "uint96"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"internalType": "ReferralId",
|
276
|
+
"name": "referralId",
|
277
|
+
"type": "bytes8"
|
278
|
+
}
|
279
|
+
],
|
280
|
+
"name": "calculatePremium",
|
138
281
|
"outputs": [
|
139
282
|
{
|
140
|
-
"internalType": "
|
141
|
-
"name": "",
|
142
|
-
"type": "
|
283
|
+
"internalType": "uint256",
|
284
|
+
"name": "premiumAmount",
|
285
|
+
"type": "uint256"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "uint256",
|
289
|
+
"name": "productFeeAmount",
|
290
|
+
"type": "uint256"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"internalType": "uint256",
|
294
|
+
"name": "poolFeeAmount",
|
295
|
+
"type": "uint256"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"internalType": "uint256",
|
299
|
+
"name": "bundleFeeAmount",
|
300
|
+
"type": "uint256"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"internalType": "uint256",
|
304
|
+
"name": "distributionFeeAmount",
|
305
|
+
"type": "uint256"
|
143
306
|
}
|
144
307
|
],
|
145
308
|
"stateMutability": "view",
|
146
309
|
"type": "function"
|
147
310
|
},
|
311
|
+
{
|
312
|
+
"inputs": [
|
313
|
+
{
|
314
|
+
"internalType": "UFixed",
|
315
|
+
"name": "collateralizationLevel",
|
316
|
+
"type": "uint256"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"internalType": "uint256",
|
320
|
+
"name": "sumInsuredAmount",
|
321
|
+
"type": "uint256"
|
322
|
+
}
|
323
|
+
],
|
324
|
+
"name": "calculateRequiredCollateral",
|
325
|
+
"outputs": [
|
326
|
+
{
|
327
|
+
"internalType": "uint256",
|
328
|
+
"name": "collateralAmount",
|
329
|
+
"type": "uint256"
|
330
|
+
}
|
331
|
+
],
|
332
|
+
"stateMutability": "pure",
|
333
|
+
"type": "function"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"inputs": [
|
337
|
+
{
|
338
|
+
"internalType": "NftId",
|
339
|
+
"name": "nftId",
|
340
|
+
"type": "uint96"
|
341
|
+
}
|
342
|
+
],
|
343
|
+
"name": "close",
|
344
|
+
"outputs": [],
|
345
|
+
"stateMutability": "nonpayable",
|
346
|
+
"type": "function"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"inputs": [
|
350
|
+
{
|
351
|
+
"internalType": "NftId",
|
352
|
+
"name": "policyNftId",
|
353
|
+
"type": "uint96"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "Timestamp",
|
357
|
+
"name": "activateAt",
|
358
|
+
"type": "uint40"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"name": "collectPremium",
|
362
|
+
"outputs": [],
|
363
|
+
"stateMutability": "nonpayable",
|
364
|
+
"type": "function"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"inputs": [
|
368
|
+
{
|
369
|
+
"internalType": "address",
|
370
|
+
"name": "applicationOwner",
|
371
|
+
"type": "address"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"internalType": "RiskId",
|
375
|
+
"name": "riskId",
|
376
|
+
"type": "bytes8"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"internalType": "uint256",
|
380
|
+
"name": "sumInsuredAmount",
|
381
|
+
"type": "uint256"
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"internalType": "uint256",
|
385
|
+
"name": "lifetime",
|
386
|
+
"type": "uint256"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"internalType": "bytes",
|
390
|
+
"name": "applicationData",
|
391
|
+
"type": "bytes"
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"internalType": "NftId",
|
395
|
+
"name": "bundleNftId",
|
396
|
+
"type": "uint96"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"internalType": "ReferralId",
|
400
|
+
"name": "referralId",
|
401
|
+
"type": "bytes8"
|
402
|
+
}
|
403
|
+
],
|
404
|
+
"name": "createApplication",
|
405
|
+
"outputs": [
|
406
|
+
{
|
407
|
+
"internalType": "NftId",
|
408
|
+
"name": "nftId",
|
409
|
+
"type": "uint96"
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"stateMutability": "nonpayable",
|
413
|
+
"type": "function"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"inputs": [],
|
417
|
+
"name": "getDomain",
|
418
|
+
"outputs": [
|
419
|
+
{
|
420
|
+
"internalType": "ObjectType",
|
421
|
+
"name": "serviceDomain",
|
422
|
+
"type": "uint8"
|
423
|
+
}
|
424
|
+
],
|
425
|
+
"stateMutability": "pure",
|
426
|
+
"type": "function"
|
427
|
+
},
|
148
428
|
{
|
149
429
|
"inputs": [],
|
150
430
|
"name": "getInitialInfo",
|
@@ -190,11 +470,6 @@
|
|
190
470
|
"internalType": "struct IRegistry.ObjectInfo",
|
191
471
|
"name": "",
|
192
472
|
"type": "tuple"
|
193
|
-
},
|
194
|
-
{
|
195
|
-
"internalType": "bytes",
|
196
|
-
"name": "data",
|
197
|
-
"type": "bytes"
|
198
473
|
}
|
199
474
|
],
|
200
475
|
"stateMutability": "view",
|
@@ -213,6 +488,19 @@
|
|
213
488
|
"stateMutability": "view",
|
214
489
|
"type": "function"
|
215
490
|
},
|
491
|
+
{
|
492
|
+
"inputs": [],
|
493
|
+
"name": "getMajorVersion",
|
494
|
+
"outputs": [
|
495
|
+
{
|
496
|
+
"internalType": "VersionPart",
|
497
|
+
"name": "majorVersion",
|
498
|
+
"type": "uint8"
|
499
|
+
}
|
500
|
+
],
|
501
|
+
"stateMutability": "view",
|
502
|
+
"type": "function"
|
503
|
+
},
|
216
504
|
{
|
217
505
|
"inputs": [],
|
218
506
|
"name": "getNftId",
|
@@ -269,7 +557,7 @@
|
|
269
557
|
"inputs": [
|
270
558
|
{
|
271
559
|
"internalType": "uint256",
|
272
|
-
"name": "
|
560
|
+
"name": "index",
|
273
561
|
"type": "uint256"
|
274
562
|
}
|
275
563
|
],
|
@@ -277,7 +565,7 @@
|
|
277
565
|
"outputs": [
|
278
566
|
{
|
279
567
|
"internalType": "Version",
|
280
|
-
"name": "",
|
568
|
+
"name": "version",
|
281
569
|
"type": "uint24"
|
282
570
|
}
|
283
571
|
],
|
@@ -290,7 +578,7 @@
|
|
290
578
|
"outputs": [
|
291
579
|
{
|
292
580
|
"internalType": "uint256",
|
293
|
-
"name": "",
|
581
|
+
"name": "numberOfVersions",
|
294
582
|
"type": "uint256"
|
295
583
|
}
|
296
584
|
],
|
@@ -301,7 +589,7 @@
|
|
301
589
|
"inputs": [
|
302
590
|
{
|
303
591
|
"internalType": "Version",
|
304
|
-
"name": "
|
592
|
+
"name": "version",
|
305
593
|
"type": "uint24"
|
306
594
|
}
|
307
595
|
],
|
@@ -336,7 +624,7 @@
|
|
336
624
|
}
|
337
625
|
],
|
338
626
|
"internalType": "struct IVersionable.VersionInfo",
|
339
|
-
"name": "",
|
627
|
+
"name": "versionInfo",
|
340
628
|
"type": "tuple"
|
341
629
|
}
|
342
630
|
],
|
@@ -357,7 +645,7 @@
|
|
357
645
|
},
|
358
646
|
{
|
359
647
|
"internalType": "bytes",
|
360
|
-
"name": "
|
648
|
+
"name": "activationData",
|
361
649
|
"type": "bytes"
|
362
650
|
}
|
363
651
|
],
|
@@ -370,7 +658,7 @@
|
|
370
658
|
"inputs": [
|
371
659
|
{
|
372
660
|
"internalType": "Version",
|
373
|
-
"name": "
|
661
|
+
"name": "version",
|
374
662
|
"type": "uint24"
|
375
663
|
}
|
376
664
|
],
|
@@ -392,6 +680,19 @@
|
|
392
680
|
"stateMutability": "nonpayable",
|
393
681
|
"type": "function"
|
394
682
|
},
|
683
|
+
{
|
684
|
+
"inputs": [
|
685
|
+
{
|
686
|
+
"internalType": "NftId",
|
687
|
+
"name": "policyNftId",
|
688
|
+
"type": "uint96"
|
689
|
+
}
|
690
|
+
],
|
691
|
+
"name": "revoke",
|
692
|
+
"outputs": [],
|
693
|
+
"stateMutability": "nonpayable",
|
694
|
+
"type": "function"
|
695
|
+
},
|
395
696
|
{
|
396
697
|
"inputs": [
|
397
698
|
{
|
@@ -411,6 +712,29 @@
|
|
411
712
|
"stateMutability": "view",
|
412
713
|
"type": "function"
|
413
714
|
},
|
715
|
+
{
|
716
|
+
"inputs": [
|
717
|
+
{
|
718
|
+
"internalType": "NftId",
|
719
|
+
"name": "policyNftId",
|
720
|
+
"type": "uint96"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"internalType": "bool",
|
724
|
+
"name": "requirePremiumPayment",
|
725
|
+
"type": "bool"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "Timestamp",
|
729
|
+
"name": "activateAt",
|
730
|
+
"type": "uint40"
|
731
|
+
}
|
732
|
+
],
|
733
|
+
"name": "underwrite",
|
734
|
+
"outputs": [],
|
735
|
+
"stateMutability": "nonpayable",
|
736
|
+
"type": "function"
|
737
|
+
},
|
414
738
|
{
|
415
739
|
"inputs": [
|
416
740
|
{
|
@@ -425,7 +749,7 @@
|
|
425
749
|
},
|
426
750
|
{
|
427
751
|
"internalType": "bytes",
|
428
|
-
"name": "
|
752
|
+
"name": "upgradeData",
|
429
753
|
"type": "bytes"
|
430
754
|
}
|
431
755
|
],
|