@etherisc/gif-next 0.0.2-f2df3e2-873 → 0.0.2-f398177-971
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 +37 -6
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +44 -13
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +37 -6
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +44 -13
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +55 -24
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +52 -21
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +55 -24
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +52 -21
- 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 +252 -2210
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +21 -38
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +346 -2685
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +67 -49
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +219 -53
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +59 -220
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +32 -117
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
- 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 +37 -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/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.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 +75 -217
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +33 -66
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +155 -133
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +35 -64
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +463 -119
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +109 -42
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +181 -399
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +81 -94
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +11 -145
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +79 -30
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +229 -88
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +23 -273
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +40 -326
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +265 -32
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.json +510 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +5 -13
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +213 -443
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +74 -75
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +439 -54
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +84 -37
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +55 -31
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +22 -35
- 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 +5 -13
- 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 +17 -25
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +21 -34
- 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 +10 -23
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +3 -3
- 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/INftOwnable.sol/INftOwnable.json +0 -13
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +69 -9
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -13
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +5 -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 +6 -19
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +80 -26
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +14 -27
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +6 -19
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +5 -13
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
- 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/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +6 -19
- 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 +17 -25
- 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/Amount.sol/AmountLib.dbg.json +1 -1
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +100 -4
- 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/ClaimId.sol/ClaimIdLib.json +2 -2
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -18
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +2 -2
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +1 -1
- 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 +21 -2
- package/contracts/components/Distribution.sol +5 -4
- package/contracts/components/IComponent.sol +16 -2
- package/contracts/components/IPoolComponent.sol +7 -6
- package/contracts/components/IProductComponent.sol +5 -4
- package/contracts/components/Pool.sol +8 -8
- package/contracts/components/Product.sol +21 -17
- package/contracts/instance/IInstance.sol +28 -53
- package/contracts/instance/IInstanceService.sol +15 -10
- package/contracts/instance/Instance.sol +90 -171
- package/contracts/instance/InstanceAccessManager.sol +35 -21
- package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
- package/contracts/instance/InstanceReader.sol +56 -5
- package/contracts/instance/InstanceService.sol +96 -266
- package/contracts/instance/InstanceStore.sol +212 -0
- package/contracts/instance/ObjectManager.sol +1 -1
- package/contracts/instance/base/ComponentService.sol +47 -20
- package/contracts/instance/base/KeyValueStore.sol +0 -31
- package/contracts/instance/base/Lifecycle.sol +7 -4
- package/contracts/instance/module/IComponents.sol +3 -3
- package/contracts/instance/module/IDistribution.sol +3 -2
- package/contracts/instance/module/IPolicy.sol +5 -5
- package/contracts/instance/service/ApplicationService.sol +58 -227
- package/contracts/instance/service/BundleService.sol +65 -119
- package/contracts/instance/service/ClaimService.sol +232 -34
- package/contracts/instance/service/DistributionService.sol +51 -134
- package/contracts/instance/service/IApplicationService.sol +5 -21
- package/contracts/instance/service/IBundleService.sol +32 -10
- package/contracts/instance/service/IClaimService.sol +37 -39
- package/contracts/instance/service/IDistributionService.sol +10 -22
- package/contracts/instance/service/IPolicyService.sol +15 -72
- package/contracts/instance/service/IPoolService.sol +18 -3
- package/contracts/instance/service/IPricingService.sol +37 -0
- package/contracts/instance/service/PolicyService.sol +112 -277
- package/contracts/instance/service/PoolService.sol +121 -21
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +10 -10
- package/contracts/registry/IRegistryService.sol +0 -2
- package/contracts/registry/RegistryService.sol +14 -10
- package/contracts/shared/IPolicyHolder.sol +23 -9
- package/contracts/shared/IRegistryLinked.sol +0 -1
- package/contracts/shared/IService.sol +2 -0
- package/contracts/shared/NftOwnable.sol +0 -2
- package/contracts/shared/PolicyHolder.sol +30 -17
- package/contracts/shared/Registerable.sol +10 -9
- package/contracts/shared/RegistryLinked.sol +0 -5
- package/contracts/shared/TokenHandler.sol +4 -2
- package/contracts/types/Amount.sol +44 -0
- package/contracts/types/Fee.sol +7 -6
- package/contracts/types/ObjectType.sol +5 -1
- package/package.json +1 -1
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- /package/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol +0 -0
package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json
CHANGED
@@ -127,6 +127,11 @@
|
|
127
127
|
"name": "ErrorNotRegistry",
|
128
128
|
"type": "error"
|
129
129
|
},
|
130
|
+
{
|
131
|
+
"inputs": [],
|
132
|
+
"name": "ErrorServiceNotImplemented",
|
133
|
+
"type": "error"
|
134
|
+
},
|
130
135
|
{
|
131
136
|
"anonymous": false,
|
132
137
|
"inputs": [
|
@@ -163,14 +168,14 @@
|
|
163
168
|
"type": "bytes8"
|
164
169
|
},
|
165
170
|
{
|
166
|
-
"internalType": "
|
171
|
+
"internalType": "Amount",
|
167
172
|
"name": "sumInsuredAmount",
|
168
|
-
"type": "
|
173
|
+
"type": "uint96"
|
169
174
|
},
|
170
175
|
{
|
171
|
-
"internalType": "
|
176
|
+
"internalType": "Seconds",
|
172
177
|
"name": "lifetime",
|
173
|
-
"type": "
|
178
|
+
"type": "uint40"
|
174
179
|
},
|
175
180
|
{
|
176
181
|
"internalType": "bytes",
|
@@ -196,132 +201,6 @@
|
|
196
201
|
"stateMutability": "view",
|
197
202
|
"type": "function"
|
198
203
|
},
|
199
|
-
{
|
200
|
-
"inputs": [
|
201
|
-
{
|
202
|
-
"internalType": "NftId",
|
203
|
-
"name": "productNftId",
|
204
|
-
"type": "uint96"
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"internalType": "RiskId",
|
208
|
-
"name": "riskId",
|
209
|
-
"type": "bytes8"
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"internalType": "uint256",
|
213
|
-
"name": "sumInsuredAmount",
|
214
|
-
"type": "uint256"
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"internalType": "Seconds",
|
218
|
-
"name": "lifetime",
|
219
|
-
"type": "uint40"
|
220
|
-
},
|
221
|
-
{
|
222
|
-
"internalType": "bytes",
|
223
|
-
"name": "applicationData",
|
224
|
-
"type": "bytes"
|
225
|
-
},
|
226
|
-
{
|
227
|
-
"internalType": "NftId",
|
228
|
-
"name": "bundleNftId",
|
229
|
-
"type": "uint96"
|
230
|
-
},
|
231
|
-
{
|
232
|
-
"internalType": "ReferralId",
|
233
|
-
"name": "referralId",
|
234
|
-
"type": "bytes8"
|
235
|
-
}
|
236
|
-
],
|
237
|
-
"name": "calculatePremium",
|
238
|
-
"outputs": [
|
239
|
-
{
|
240
|
-
"components": [
|
241
|
-
{
|
242
|
-
"internalType": "uint256",
|
243
|
-
"name": "netPremiumAmount",
|
244
|
-
"type": "uint256"
|
245
|
-
},
|
246
|
-
{
|
247
|
-
"internalType": "uint256",
|
248
|
-
"name": "fullPremiumAmount",
|
249
|
-
"type": "uint256"
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"internalType": "uint256",
|
253
|
-
"name": "premiumAmount",
|
254
|
-
"type": "uint256"
|
255
|
-
},
|
256
|
-
{
|
257
|
-
"internalType": "uint256",
|
258
|
-
"name": "productFeeFixAmount",
|
259
|
-
"type": "uint256"
|
260
|
-
},
|
261
|
-
{
|
262
|
-
"internalType": "uint256",
|
263
|
-
"name": "poolFeeFixAmount",
|
264
|
-
"type": "uint256"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
"internalType": "uint256",
|
268
|
-
"name": "bundleFeeFixAmount",
|
269
|
-
"type": "uint256"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"internalType": "uint256",
|
273
|
-
"name": "distributionFeeFixAmount",
|
274
|
-
"type": "uint256"
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"internalType": "uint256",
|
278
|
-
"name": "productFeeVarAmount",
|
279
|
-
"type": "uint256"
|
280
|
-
},
|
281
|
-
{
|
282
|
-
"internalType": "uint256",
|
283
|
-
"name": "poolFeeVarAmount",
|
284
|
-
"type": "uint256"
|
285
|
-
},
|
286
|
-
{
|
287
|
-
"internalType": "uint256",
|
288
|
-
"name": "bundleFeeVarAmount",
|
289
|
-
"type": "uint256"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"internalType": "uint256",
|
293
|
-
"name": "distributionFeeVarAmount",
|
294
|
-
"type": "uint256"
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"internalType": "uint256",
|
298
|
-
"name": "distributionOwnerFeeFixAmount",
|
299
|
-
"type": "uint256"
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"internalType": "uint256",
|
303
|
-
"name": "distributionOwnerFeeVarAmount",
|
304
|
-
"type": "uint256"
|
305
|
-
},
|
306
|
-
{
|
307
|
-
"internalType": "uint256",
|
308
|
-
"name": "commissionAmount",
|
309
|
-
"type": "uint256"
|
310
|
-
},
|
311
|
-
{
|
312
|
-
"internalType": "uint256",
|
313
|
-
"name": "discountAmount",
|
314
|
-
"type": "uint256"
|
315
|
-
}
|
316
|
-
],
|
317
|
-
"internalType": "struct IPolicy.Premium",
|
318
|
-
"name": "premium",
|
319
|
-
"type": "tuple"
|
320
|
-
}
|
321
|
-
],
|
322
|
-
"stateMutability": "view",
|
323
|
-
"type": "function"
|
324
|
-
},
|
325
204
|
{
|
326
205
|
"inputs": [
|
327
206
|
{
|
@@ -335,9 +214,9 @@
|
|
335
214
|
"type": "bytes8"
|
336
215
|
},
|
337
216
|
{
|
338
|
-
"internalType": "
|
217
|
+
"internalType": "Amount",
|
339
218
|
"name": "sumInsuredAmount",
|
340
|
-
"type": "
|
219
|
+
"type": "uint96"
|
341
220
|
},
|
342
221
|
{
|
343
222
|
"internalType": "Seconds",
|
@@ -473,19 +352,6 @@
|
|
473
352
|
"stateMutability": "view",
|
474
353
|
"type": "function"
|
475
354
|
},
|
476
|
-
{
|
477
|
-
"inputs": [],
|
478
|
-
"name": "getRegistryAddress",
|
479
|
-
"outputs": [
|
480
|
-
{
|
481
|
-
"internalType": "address",
|
482
|
-
"name": "",
|
483
|
-
"type": "address"
|
484
|
-
}
|
485
|
-
],
|
486
|
-
"stateMutability": "view",
|
487
|
-
"type": "function"
|
488
|
-
},
|
489
355
|
{
|
490
356
|
"inputs": [],
|
491
357
|
"name": "getVersion",
|
@@ -66,12 +66,17 @@
|
|
66
66
|
"inputs": [
|
67
67
|
{
|
68
68
|
"internalType": "NftId",
|
69
|
-
"name": "
|
69
|
+
"name": "bundleNftId",
|
70
70
|
"type": "uint96"
|
71
71
|
},
|
72
72
|
{
|
73
73
|
"internalType": "NftId",
|
74
|
-
"name": "
|
74
|
+
"name": "expectedPool",
|
75
|
+
"type": "uint96"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "actualPool",
|
75
80
|
"type": "uint96"
|
76
81
|
}
|
77
82
|
],
|
@@ -113,14 +118,14 @@
|
|
113
118
|
"type": "uint96"
|
114
119
|
},
|
115
120
|
{
|
116
|
-
"internalType": "
|
121
|
+
"internalType": "Amount",
|
117
122
|
"name": "capacityAmount",
|
118
|
-
"type": "
|
123
|
+
"type": "uint96"
|
119
124
|
},
|
120
125
|
{
|
121
|
-
"internalType": "
|
126
|
+
"internalType": "Amount",
|
122
127
|
"name": "collateralAmount",
|
123
|
-
"type": "
|
128
|
+
"type": "uint96"
|
124
129
|
}
|
125
130
|
],
|
126
131
|
"name": "ErrorBundleServiceCapacityInsufficient",
|
@@ -139,14 +144,25 @@
|
|
139
144
|
"type": "address"
|
140
145
|
},
|
141
146
|
{
|
142
|
-
"internalType": "
|
147
|
+
"internalType": "Amount",
|
143
148
|
"name": "amount",
|
144
|
-
"type": "
|
149
|
+
"type": "uint96"
|
145
150
|
}
|
146
151
|
],
|
147
152
|
"name": "ErrorBundleServiceInsufficientAllowance",
|
148
153
|
"type": "error"
|
149
154
|
},
|
155
|
+
{
|
156
|
+
"inputs": [
|
157
|
+
{
|
158
|
+
"internalType": "NftId",
|
159
|
+
"name": "policyNftId",
|
160
|
+
"type": "uint96"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"name": "ErrorBundleServicePolicyNotCloseable",
|
164
|
+
"type": "error"
|
165
|
+
},
|
150
166
|
{
|
151
167
|
"inputs": [
|
152
168
|
{
|
@@ -196,6 +212,11 @@
|
|
196
212
|
"name": "ErrorNotRegistry",
|
197
213
|
"type": "error"
|
198
214
|
},
|
215
|
+
{
|
216
|
+
"inputs": [],
|
217
|
+
"name": "ErrorServiceNotImplemented",
|
218
|
+
"type": "error"
|
219
|
+
},
|
199
220
|
{
|
200
221
|
"anonymous": false,
|
201
222
|
"inputs": [
|
@@ -429,19 +450,6 @@
|
|
429
450
|
"stateMutability": "view",
|
430
451
|
"type": "function"
|
431
452
|
},
|
432
|
-
{
|
433
|
-
"inputs": [],
|
434
|
-
"name": "getRegistryAddress",
|
435
|
-
"outputs": [
|
436
|
-
{
|
437
|
-
"internalType": "address",
|
438
|
-
"name": "",
|
439
|
-
"type": "address"
|
440
|
-
}
|
441
|
-
],
|
442
|
-
"stateMutability": "view",
|
443
|
-
"type": "function"
|
444
|
-
},
|
445
453
|
{
|
446
454
|
"inputs": [],
|
447
455
|
"name": "getVersion",
|
@@ -468,9 +476,9 @@
|
|
468
476
|
"type": "uint96"
|
469
477
|
},
|
470
478
|
{
|
471
|
-
"internalType": "
|
479
|
+
"internalType": "Amount",
|
472
480
|
"name": "amount",
|
473
|
-
"type": "
|
481
|
+
"type": "uint96"
|
474
482
|
}
|
475
483
|
],
|
476
484
|
"name": "increaseBalance",
|
@@ -547,14 +555,14 @@
|
|
547
555
|
"type": "uint96"
|
548
556
|
},
|
549
557
|
{
|
550
|
-
"internalType": "
|
558
|
+
"internalType": "Amount",
|
551
559
|
"name": "collateralAmount",
|
552
|
-
"type": "
|
560
|
+
"type": "uint96"
|
553
561
|
},
|
554
562
|
{
|
555
|
-
"internalType": "
|
556
|
-
"name": "
|
557
|
-
"type": "
|
563
|
+
"internalType": "Amount",
|
564
|
+
"name": "premiumAmount",
|
565
|
+
"type": "uint96"
|
558
566
|
}
|
559
567
|
],
|
560
568
|
"name": "lockCollateral",
|
@@ -580,9 +588,9 @@
|
|
580
588
|
"type": "uint96"
|
581
589
|
},
|
582
590
|
{
|
583
|
-
"internalType": "
|
591
|
+
"internalType": "Amount",
|
584
592
|
"name": "collateralAmount",
|
585
|
-
"type": "
|
593
|
+
"type": "uint96"
|
586
594
|
}
|
587
595
|
],
|
588
596
|
"name": "releaseCollateral",
|
@@ -652,6 +660,24 @@
|
|
652
660
|
"stateMutability": "view",
|
653
661
|
"type": "function"
|
654
662
|
},
|
663
|
+
{
|
664
|
+
"inputs": [
|
665
|
+
{
|
666
|
+
"internalType": "contract IInstance",
|
667
|
+
"name": "instance",
|
668
|
+
"type": "address"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"internalType": "NftId",
|
672
|
+
"name": "policyNftId",
|
673
|
+
"type": "uint96"
|
674
|
+
}
|
675
|
+
],
|
676
|
+
"name": "unlinkPolicy",
|
677
|
+
"outputs": [],
|
678
|
+
"stateMutability": "nonpayable",
|
679
|
+
"type": "function"
|
680
|
+
},
|
655
681
|
{
|
656
682
|
"inputs": [
|
657
683
|
{
|
@@ -665,6 +691,29 @@
|
|
665
691
|
"stateMutability": "nonpayable",
|
666
692
|
"type": "function"
|
667
693
|
},
|
694
|
+
{
|
695
|
+
"inputs": [
|
696
|
+
{
|
697
|
+
"internalType": "contract IInstance",
|
698
|
+
"name": "instance",
|
699
|
+
"type": "address"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"internalType": "NftId",
|
703
|
+
"name": "bundleNftId",
|
704
|
+
"type": "uint96"
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"internalType": "Amount",
|
708
|
+
"name": "feeAmount",
|
709
|
+
"type": "uint96"
|
710
|
+
}
|
711
|
+
],
|
712
|
+
"name": "updateBundleFees",
|
713
|
+
"outputs": [],
|
714
|
+
"stateMutability": "nonpayable",
|
715
|
+
"type": "function"
|
716
|
+
},
|
668
717
|
{
|
669
718
|
"inputs": [
|
670
719
|
{
|