@etherisc/gif-next 0.0.2-eb98db7-932 → 0.0.2-ebf1a6b-485
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +10 -89
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +67 -134
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +7 -73
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +46 -117
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +238 -96
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +11 -145
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +241 -112
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +15 -162
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
- 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 +84 -146
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +11 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +149 -211
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +79 -110
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +44 -33
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +17 -17
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +12 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
- 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/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 +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +172 -62
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +33 -25
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +34 -23
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +9 -9
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +14 -3
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +2 -2
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +535 -69
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +96 -32
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +121 -27
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +17 -6
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +11 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +344 -6
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +11 -64
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +11 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +11 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +48 -157
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +19 -47
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +22 -11
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +6 -6
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +14 -3
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +2 -2
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +11 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +24 -13
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +7 -7
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +2 -2
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +11 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +3 -3
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +12 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/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 +3 -3
- 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 +14 -3
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/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/ClaimId.sol/ClaimIdLib.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/PayoutId.sol/PayoutIdLib.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/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/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 +68 -88
- package/contracts/components/Distribution.sol +12 -6
- package/contracts/components/IComponent.sol +31 -17
- package/contracts/components/IDistributionComponent.sol +1 -14
- package/contracts/components/IPoolComponent.sol +89 -25
- package/contracts/components/IProductComponent.sol +3 -2
- package/contracts/components/Pool.sol +216 -92
- package/contracts/components/Product.sol +24 -20
- package/contracts/instance/BundleManager.sol +1 -1
- package/contracts/instance/InstanceService.sol +15 -1
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IDistribution.sol +2 -1
- package/contracts/instance/module/IPolicy.sol +26 -1
- package/contracts/instance/module/ISetup.sol +5 -7
- package/contracts/instance/service/ApplicationService.sol +121 -40
- package/contracts/instance/service/BundleService.sol +4 -3
- package/contracts/instance/service/DistributionService.sol +91 -43
- package/contracts/instance/service/IApplicationService.sol +7 -7
- package/contracts/instance/service/IBundleService.sol +3 -2
- package/contracts/instance/service/IDistributionService.sol +15 -2
- package/contracts/instance/service/IPolicyService.sol +1 -20
- package/contracts/instance/service/PolicyService.sol +31 -105
- package/contracts/registry/RegistryService.sol +5 -5
- package/contracts/shared/IService.sol +2 -0
- package/contracts/shared/Registerable.sol +2 -2
- package/contracts/types/RoleId.sol +7 -2
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/Timestamp.sol +12 -13
- package/package.json +1 -1
package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
"contractName": "IApplicationService",
|
4
4
|
"sourceName": "contracts/instance/service/IApplicationService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "caller",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorIServiceCallerUnknown",
|
15
|
+
"type": "error"
|
16
|
+
},
|
6
17
|
{
|
7
18
|
"inputs": [
|
8
19
|
{
|
@@ -52,6 +63,27 @@
|
|
52
63
|
"name": "ErrorNotRegistry",
|
53
64
|
"type": "error"
|
54
65
|
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "NftId",
|
70
|
+
"name": "bundleNftId",
|
71
|
+
"type": "uint96"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"internalType": "NftId",
|
75
|
+
"name": "bundlePoolNftId",
|
76
|
+
"type": "uint96"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"internalType": "NftId",
|
80
|
+
"name": "poolNftId",
|
81
|
+
"type": "uint96"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"name": "IApplicationServiceBundlePoolMismatch",
|
85
|
+
"type": "error"
|
86
|
+
},
|
55
87
|
{
|
56
88
|
"inputs": [
|
57
89
|
{
|
@@ -108,6 +140,11 @@
|
|
108
140
|
},
|
109
141
|
{
|
110
142
|
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "NftId",
|
145
|
+
"name": "productNftId",
|
146
|
+
"type": "uint96"
|
147
|
+
},
|
111
148
|
{
|
112
149
|
"internalType": "RiskId",
|
113
150
|
"name": "riskId",
|
@@ -119,9 +156,9 @@
|
|
119
156
|
"type": "uint256"
|
120
157
|
},
|
121
158
|
{
|
122
|
-
"internalType": "
|
159
|
+
"internalType": "Seconds",
|
123
160
|
"name": "lifetime",
|
124
|
-
"type": "
|
161
|
+
"type": "uint40"
|
125
162
|
},
|
126
163
|
{
|
127
164
|
"internalType": "bytes",
|
@@ -142,29 +179,86 @@
|
|
142
179
|
"name": "calculatePremium",
|
143
180
|
"outputs": [
|
144
181
|
{
|
145
|
-
"
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
182
|
+
"components": [
|
183
|
+
{
|
184
|
+
"internalType": "uint256",
|
185
|
+
"name": "netPremiumAmount",
|
186
|
+
"type": "uint256"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"internalType": "uint256",
|
190
|
+
"name": "fullPremiumAmount",
|
191
|
+
"type": "uint256"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"internalType": "uint256",
|
195
|
+
"name": "premiumAmount",
|
196
|
+
"type": "uint256"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"internalType": "uint256",
|
200
|
+
"name": "productFeeFixAmount",
|
201
|
+
"type": "uint256"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "uint256",
|
205
|
+
"name": "poolFeeFixAmount",
|
206
|
+
"type": "uint256"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "bundleFeeFixAmount",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "distributionFeeFixAmount",
|
216
|
+
"type": "uint256"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "productFeeVarAmount",
|
221
|
+
"type": "uint256"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"internalType": "uint256",
|
225
|
+
"name": "poolFeeVarAmount",
|
226
|
+
"type": "uint256"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"internalType": "uint256",
|
230
|
+
"name": "bundleFeeVarAmount",
|
231
|
+
"type": "uint256"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"internalType": "uint256",
|
235
|
+
"name": "distributionFeeVarAmount",
|
236
|
+
"type": "uint256"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"internalType": "uint256",
|
240
|
+
"name": "distributionOwnerFeeFixAmount",
|
241
|
+
"type": "uint256"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"internalType": "uint256",
|
245
|
+
"name": "distributionOwnerFeeVarAmount",
|
246
|
+
"type": "uint256"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"internalType": "uint256",
|
250
|
+
"name": "commissionAmount",
|
251
|
+
"type": "uint256"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"internalType": "uint256",
|
255
|
+
"name": "discountAmount",
|
256
|
+
"type": "uint256"
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"internalType": "struct IPolicy.Premium",
|
260
|
+
"name": "premium",
|
261
|
+
"type": "tuple"
|
168
262
|
}
|
169
263
|
],
|
170
264
|
"stateMutability": "view",
|
@@ -188,9 +282,9 @@
|
|
188
282
|
"type": "uint256"
|
189
283
|
},
|
190
284
|
{
|
191
|
-
"internalType": "
|
285
|
+
"internalType": "Seconds",
|
192
286
|
"name": "lifetime",
|
193
|
-
"type": "
|
287
|
+
"type": "uint40"
|
194
288
|
},
|
195
289
|
{
|
196
290
|
"internalType": "NftId",
|
@@ -24,6 +24,17 @@
|
|
24
24
|
"name": "ErrorIBundleServiceInsufficientAllowance",
|
25
25
|
"type": "error"
|
26
26
|
},
|
27
|
+
{
|
28
|
+
"inputs": [
|
29
|
+
{
|
30
|
+
"internalType": "address",
|
31
|
+
"name": "caller",
|
32
|
+
"type": "address"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"name": "ErrorIServiceCallerUnknown",
|
36
|
+
"type": "error"
|
37
|
+
},
|
27
38
|
{
|
28
39
|
"inputs": [
|
29
40
|
{
|
@@ -131,9 +142,9 @@
|
|
131
142
|
"type": "uint256"
|
132
143
|
},
|
133
144
|
{
|
134
|
-
"internalType": "
|
145
|
+
"internalType": "Seconds",
|
135
146
|
"name": "lifetime",
|
136
|
-
"type": "
|
147
|
+
"type": "uint40"
|
137
148
|
},
|
138
149
|
{
|
139
150
|
"internalType": "bytes",
|
@@ -429,9 +440,9 @@
|
|
429
440
|
"type": "uint256"
|
430
441
|
},
|
431
442
|
{
|
432
|
-
"internalType": "
|
443
|
+
"internalType": "Seconds",
|
433
444
|
"name": "lifetime",
|
434
|
-
"type": "
|
445
|
+
"type": "uint40"
|
435
446
|
},
|
436
447
|
{
|
437
448
|
"internalType": "Timestamp",
|
@@ -571,9 +582,9 @@
|
|
571
582
|
"type": "uint256"
|
572
583
|
},
|
573
584
|
{
|
574
|
-
"internalType": "
|
585
|
+
"internalType": "Seconds",
|
575
586
|
"name": "lifetime",
|
576
|
-
"type": "
|
587
|
+
"type": "uint40"
|
577
588
|
},
|
578
589
|
{
|
579
590
|
"internalType": "Timestamp",
|
@@ -3,6 +3,17 @@
|
|
3
3
|
"contractName": "IClaimService",
|
4
4
|
"sourceName": "contracts/instance/service/IClaimService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "caller",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorIServiceCallerUnknown",
|
15
|
+
"type": "error"
|
16
|
+
},
|
6
17
|
{
|
7
18
|
"inputs": [
|
8
19
|
{
|
package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json
CHANGED
@@ -3,6 +3,103 @@
|
|
3
3
|
"contractName": "IDistributionService",
|
4
4
|
"sourceName": "contracts/instance/service/IDistributionService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "caller",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorIDistributionServiceCallerNotDistributor",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "uint256",
|
21
|
+
"name": "commissionPercentage",
|
22
|
+
"type": "uint256"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint256",
|
26
|
+
"name": "maxCommissionPercentage",
|
27
|
+
"type": "uint256"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorIDistributionServiceCommissionTooHigh",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "uint256",
|
37
|
+
"name": "maxDiscountPercentage",
|
38
|
+
"type": "uint256"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "uint256",
|
42
|
+
"name": "discountPercentage",
|
43
|
+
"type": "uint256"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"name": "ErrorIDistributionServiceDiscountTooHigh",
|
47
|
+
"type": "error"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"inputs": [
|
51
|
+
{
|
52
|
+
"internalType": "uint256",
|
53
|
+
"name": "minDiscountPercentage",
|
54
|
+
"type": "uint256"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "uint256",
|
58
|
+
"name": "discountPercentage",
|
59
|
+
"type": "uint256"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"name": "ErrorIDistributionServiceDiscountTooLow",
|
63
|
+
"type": "error"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "Timestamp",
|
69
|
+
"name": "expiryAt",
|
70
|
+
"type": "uint40"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorIDistributionServiceExpirationInvalid",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [
|
78
|
+
{
|
79
|
+
"internalType": "uint256",
|
80
|
+
"name": "maxReferralLifetime",
|
81
|
+
"type": "uint256"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"internalType": "uint256",
|
85
|
+
"name": "expiryAt",
|
86
|
+
"type": "uint256"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"name": "ErrorIDistributionServiceExpiryTooLong",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "string",
|
96
|
+
"name": "code",
|
97
|
+
"type": "string"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"name": "ErrorIDistributionServiceInvalidReferral",
|
101
|
+
"type": "error"
|
102
|
+
},
|
6
103
|
{
|
7
104
|
"inputs": [
|
8
105
|
{
|
@@ -14,6 +111,76 @@
|
|
14
111
|
"name": "ErrorIDistributionServiceInvalidReferralId",
|
15
112
|
"type": "error"
|
16
113
|
},
|
114
|
+
{
|
115
|
+
"inputs": [
|
116
|
+
{
|
117
|
+
"internalType": "uint256",
|
118
|
+
"name": "maxDiscountPercentage",
|
119
|
+
"type": "uint256"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"internalType": "uint256",
|
123
|
+
"name": "limit",
|
124
|
+
"type": "uint256"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "ErrorIDistributionServiceMaxDiscountTooHigh",
|
128
|
+
"type": "error"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"inputs": [
|
132
|
+
{
|
133
|
+
"internalType": "uint256",
|
134
|
+
"name": "maxReferrals",
|
135
|
+
"type": "uint256"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "ErrorIDistributionServiceMaxReferralsExceeded",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "uint256",
|
145
|
+
"name": "minFee",
|
146
|
+
"type": "uint256"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "uint256",
|
150
|
+
"name": "limit",
|
151
|
+
"type": "uint256"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "ErrorIDistributionServiceMinFeeTooHigh",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"internalType": "NftId",
|
161
|
+
"name": "nftId",
|
162
|
+
"type": "uint96"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"internalType": "NftId",
|
166
|
+
"name": "parentNftId",
|
167
|
+
"type": "uint96"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"name": "ErrorIDistributionServiceParentNftIdNotInstance",
|
171
|
+
"type": "error"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"inputs": [
|
175
|
+
{
|
176
|
+
"internalType": "address",
|
177
|
+
"name": "caller",
|
178
|
+
"type": "address"
|
179
|
+
}
|
180
|
+
],
|
181
|
+
"name": "ErrorIServiceCallerUnknown",
|
182
|
+
"type": "error"
|
183
|
+
},
|
17
184
|
{
|
18
185
|
"inputs": [
|
19
186
|
{
|
@@ -76,17 +243,171 @@
|
|
76
243
|
"type": "bytes8"
|
77
244
|
},
|
78
245
|
{
|
79
|
-
"
|
80
|
-
|
81
|
-
|
246
|
+
"components": [
|
247
|
+
{
|
248
|
+
"internalType": "uint256",
|
249
|
+
"name": "netPremiumAmount",
|
250
|
+
"type": "uint256"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"internalType": "uint256",
|
254
|
+
"name": "fullPremiumAmount",
|
255
|
+
"type": "uint256"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"internalType": "uint256",
|
259
|
+
"name": "premiumAmount",
|
260
|
+
"type": "uint256"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"internalType": "uint256",
|
264
|
+
"name": "productFeeFixAmount",
|
265
|
+
"type": "uint256"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"internalType": "uint256",
|
269
|
+
"name": "poolFeeFixAmount",
|
270
|
+
"type": "uint256"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "uint256",
|
274
|
+
"name": "bundleFeeFixAmount",
|
275
|
+
"type": "uint256"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"internalType": "uint256",
|
279
|
+
"name": "distributionFeeFixAmount",
|
280
|
+
"type": "uint256"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"internalType": "uint256",
|
284
|
+
"name": "productFeeVarAmount",
|
285
|
+
"type": "uint256"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "uint256",
|
289
|
+
"name": "poolFeeVarAmount",
|
290
|
+
"type": "uint256"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"internalType": "uint256",
|
294
|
+
"name": "bundleFeeVarAmount",
|
295
|
+
"type": "uint256"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"internalType": "uint256",
|
299
|
+
"name": "distributionFeeVarAmount",
|
300
|
+
"type": "uint256"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"internalType": "uint256",
|
304
|
+
"name": "distributionOwnerFeeFixAmount",
|
305
|
+
"type": "uint256"
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"internalType": "uint256",
|
309
|
+
"name": "distributionOwnerFeeVarAmount",
|
310
|
+
"type": "uint256"
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"internalType": "uint256",
|
314
|
+
"name": "commissionAmount",
|
315
|
+
"type": "uint256"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"internalType": "uint256",
|
319
|
+
"name": "discountAmount",
|
320
|
+
"type": "uint256"
|
321
|
+
}
|
322
|
+
],
|
323
|
+
"internalType": "struct IPolicy.Premium",
|
324
|
+
"name": "premium",
|
325
|
+
"type": "tuple"
|
82
326
|
}
|
83
327
|
],
|
84
328
|
"name": "calculateFeeAmount",
|
85
329
|
"outputs": [
|
86
330
|
{
|
87
|
-
"
|
88
|
-
|
89
|
-
|
331
|
+
"components": [
|
332
|
+
{
|
333
|
+
"internalType": "uint256",
|
334
|
+
"name": "netPremiumAmount",
|
335
|
+
"type": "uint256"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"internalType": "uint256",
|
339
|
+
"name": "fullPremiumAmount",
|
340
|
+
"type": "uint256"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "uint256",
|
344
|
+
"name": "premiumAmount",
|
345
|
+
"type": "uint256"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "uint256",
|
349
|
+
"name": "productFeeFixAmount",
|
350
|
+
"type": "uint256"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "uint256",
|
354
|
+
"name": "poolFeeFixAmount",
|
355
|
+
"type": "uint256"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"internalType": "uint256",
|
359
|
+
"name": "bundleFeeFixAmount",
|
360
|
+
"type": "uint256"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"internalType": "uint256",
|
364
|
+
"name": "distributionFeeFixAmount",
|
365
|
+
"type": "uint256"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"internalType": "uint256",
|
369
|
+
"name": "productFeeVarAmount",
|
370
|
+
"type": "uint256"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"internalType": "uint256",
|
374
|
+
"name": "poolFeeVarAmount",
|
375
|
+
"type": "uint256"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"internalType": "uint256",
|
379
|
+
"name": "bundleFeeVarAmount",
|
380
|
+
"type": "uint256"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"internalType": "uint256",
|
384
|
+
"name": "distributionFeeVarAmount",
|
385
|
+
"type": "uint256"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"internalType": "uint256",
|
389
|
+
"name": "distributionOwnerFeeFixAmount",
|
390
|
+
"type": "uint256"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"internalType": "uint256",
|
394
|
+
"name": "distributionOwnerFeeVarAmount",
|
395
|
+
"type": "uint256"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"internalType": "uint256",
|
399
|
+
"name": "commissionAmount",
|
400
|
+
"type": "uint256"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"internalType": "uint256",
|
404
|
+
"name": "discountAmount",
|
405
|
+
"type": "uint256"
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"internalType": "struct IPolicy.Premium",
|
409
|
+
"name": "finalPremium",
|
410
|
+
"type": "tuple"
|
90
411
|
}
|
91
412
|
],
|
92
413
|
"stateMutability": "view",
|
@@ -434,6 +755,23 @@
|
|
434
755
|
},
|
435
756
|
{
|
436
757
|
"inputs": [
|
758
|
+
{
|
759
|
+
"components": [
|
760
|
+
{
|
761
|
+
"internalType": "UFixed",
|
762
|
+
"name": "fractionalFee",
|
763
|
+
"type": "uint256"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"internalType": "uint256",
|
767
|
+
"name": "fixedFee",
|
768
|
+
"type": "uint256"
|
769
|
+
}
|
770
|
+
],
|
771
|
+
"internalType": "struct Fee",
|
772
|
+
"name": "minDistributionOwnerFee",
|
773
|
+
"type": "tuple"
|
774
|
+
},
|
437
775
|
{
|
438
776
|
"components": [
|
439
777
|
{
|