@etherisc/gif-next 0.0.2-f29e479-370 → 0.0.2-f30e0eb-805
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 +68 -89
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +113 -140
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +65 -73
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +91 -122
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +256 -189
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +69 -145
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +279 -245
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +73 -162
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +171 -308
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +98 -40
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +260 -379
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +448 -121
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +120 -227
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +148 -161
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +31 -23
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +1 -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 +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +54 -71
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- 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 +161 -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 +137 -140
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +12 -12
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +3 -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 +505 -91
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +78 -42
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +110 -27
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +93 -96
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +350 -8
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +21 -64
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +58 -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 +114 -17
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +17 -9
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +7 -7
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +4 -4
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +19 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +31 -12
- 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 +5 -5
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +3 -3
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +7 -7
- 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/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 +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/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 +3 -3
- 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 +3 -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/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
- 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/Blocknumber.sol/BlocknumberLib.json +2 -2
- 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/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 +2 -2
- 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 +17 -4
- 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/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- 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 +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/StateId.sol/StateIdLib.json +2 -2
- 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/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +95 -85
- package/contracts/components/Distribution.sol +12 -19
- package/contracts/components/IComponent.sol +37 -17
- package/contracts/components/IDistributionComponent.sol +1 -22
- package/contracts/components/IPoolComponent.sol +73 -47
- package/contracts/components/IProductComponent.sol +3 -2
- package/contracts/components/Pool.sol +171 -126
- package/contracts/components/Product.sol +26 -18
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +7 -5
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +16 -10
- package/contracts/instance/IInstanceService.sol +18 -5
- package/contracts/instance/Instance.sol +45 -9
- package/contracts/instance/InstanceAccessManager.sol +382 -157
- package/contracts/instance/InstanceReader.sol +7 -10
- package/contracts/instance/InstanceService.sol +174 -155
- package/contracts/instance/ObjectManager.sol +6 -8
- package/contracts/instance/base/ComponentService.sol +5 -5
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +20 -13
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/IDistribution.sol +2 -1
- package/contracts/instance/module/IPolicy.sol +26 -1
- package/contracts/instance/module/ISetup.sol +7 -22
- package/contracts/instance/service/ApplicationService.sol +123 -41
- package/contracts/instance/service/BundleService.sol +76 -38
- package/contracts/instance/service/DistributionService.sol +139 -47
- package/contracts/instance/service/IApplicationService.sol +7 -7
- package/contracts/instance/service/IBundleService.sol +19 -11
- package/contracts/instance/service/IDistributionService.sol +19 -4
- package/contracts/instance/service/IPolicyService.sol +3 -20
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +59 -132
- package/contracts/instance/service/PoolService.sol +128 -17
- package/contracts/instance/service/ProductService.sol +10 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +2 -0
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +23 -20
- package/contracts/registry/RegistryService.sol +5 -5
- package/contracts/shared/Registerable.sol +2 -2
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/Fee.sol +1 -0
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +1 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +13 -6
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +1 -1
package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json
CHANGED
@@ -63,6 +63,27 @@
|
|
63
63
|
"name": "ErrorNotRegistry",
|
64
64
|
"type": "error"
|
65
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
|
+
},
|
66
87
|
{
|
67
88
|
"inputs": [
|
68
89
|
{
|
@@ -119,6 +140,11 @@
|
|
119
140
|
},
|
120
141
|
{
|
121
142
|
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "NftId",
|
145
|
+
"name": "productNftId",
|
146
|
+
"type": "uint96"
|
147
|
+
},
|
122
148
|
{
|
123
149
|
"internalType": "RiskId",
|
124
150
|
"name": "riskId",
|
@@ -130,9 +156,9 @@
|
|
130
156
|
"type": "uint256"
|
131
157
|
},
|
132
158
|
{
|
133
|
-
"internalType": "
|
159
|
+
"internalType": "Seconds",
|
134
160
|
"name": "lifetime",
|
135
|
-
"type": "
|
161
|
+
"type": "uint40"
|
136
162
|
},
|
137
163
|
{
|
138
164
|
"internalType": "bytes",
|
@@ -153,29 +179,86 @@
|
|
153
179
|
"name": "calculatePremium",
|
154
180
|
"outputs": [
|
155
181
|
{
|
156
|
-
"
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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"
|
179
262
|
}
|
180
263
|
],
|
181
264
|
"stateMutability": "view",
|
@@ -199,9 +282,9 @@
|
|
199
282
|
"type": "uint256"
|
200
283
|
},
|
201
284
|
{
|
202
|
-
"internalType": "
|
285
|
+
"internalType": "Seconds",
|
203
286
|
"name": "lifetime",
|
204
|
-
"type": "
|
287
|
+
"type": "uint40"
|
205
288
|
},
|
206
289
|
{
|
207
290
|
"internalType": "NftId",
|
@@ -3,6 +3,38 @@
|
|
3
3
|
"contractName": "IBundleService",
|
4
4
|
"sourceName": "contracts/instance/service/IBundleService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "NftId",
|
10
|
+
"name": "bundleNftId",
|
11
|
+
"type": "uint96"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "StateId",
|
15
|
+
"name": "state",
|
16
|
+
"type": "uint8"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "ErrorBundleServiceBundleNotOpen",
|
20
|
+
"type": "error"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "NftId",
|
26
|
+
"name": "bundleNftId",
|
27
|
+
"type": "uint96"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"internalType": "uint256",
|
31
|
+
"name": "openPoliciesCount",
|
32
|
+
"type": "uint256"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"name": "ErrorBundleServiceBundleWithOpenPolicies",
|
36
|
+
"type": "error"
|
37
|
+
},
|
6
38
|
{
|
7
39
|
"inputs": [
|
8
40
|
{
|
@@ -21,7 +53,7 @@
|
|
21
53
|
"type": "uint256"
|
22
54
|
}
|
23
55
|
],
|
24
|
-
"name": "
|
56
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
25
57
|
"type": "error"
|
26
58
|
},
|
27
59
|
{
|
@@ -84,6 +116,58 @@
|
|
84
116
|
"name": "ErrorNotRegistry",
|
85
117
|
"type": "error"
|
86
118
|
},
|
119
|
+
{
|
120
|
+
"anonymous": false,
|
121
|
+
"inputs": [
|
122
|
+
{
|
123
|
+
"indexed": false,
|
124
|
+
"internalType": "NftId",
|
125
|
+
"name": "bundleNftId",
|
126
|
+
"type": "uint96"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"name": "LogBundleServiceBundleActivated",
|
130
|
+
"type": "event"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"anonymous": false,
|
134
|
+
"inputs": [
|
135
|
+
{
|
136
|
+
"indexed": false,
|
137
|
+
"internalType": "NftId",
|
138
|
+
"name": "bundleNftId",
|
139
|
+
"type": "uint96"
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"name": "LogBundleServiceBundleClosed",
|
143
|
+
"type": "event"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"anonymous": false,
|
147
|
+
"inputs": [
|
148
|
+
{
|
149
|
+
"indexed": false,
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "bundleNftId",
|
152
|
+
"type": "uint96"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"name": "LogBundleServiceBundleLocked",
|
156
|
+
"type": "event"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"inputs": [
|
160
|
+
{
|
161
|
+
"internalType": "NftId",
|
162
|
+
"name": "bundleNftId",
|
163
|
+
"type": "uint96"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "close",
|
167
|
+
"outputs": [],
|
168
|
+
"stateMutability": "nonpayable",
|
169
|
+
"type": "function"
|
170
|
+
},
|
87
171
|
{
|
88
172
|
"inputs": [
|
89
173
|
{
|
@@ -142,9 +226,9 @@
|
|
142
226
|
"type": "uint256"
|
143
227
|
},
|
144
228
|
{
|
145
|
-
"internalType": "
|
229
|
+
"internalType": "Seconds",
|
146
230
|
"name": "lifetime",
|
147
|
-
"type": "
|
231
|
+
"type": "uint40"
|
148
232
|
},
|
149
233
|
{
|
150
234
|
"internalType": "bytes",
|
@@ -152,7 +236,7 @@
|
|
152
236
|
"type": "bytes"
|
153
237
|
}
|
154
238
|
],
|
155
|
-
"name": "
|
239
|
+
"name": "create",
|
156
240
|
"outputs": [
|
157
241
|
{
|
158
242
|
"internalType": "NftId",
|
@@ -360,7 +444,7 @@
|
|
360
444
|
"type": "uint96"
|
361
445
|
}
|
362
446
|
],
|
363
|
-
"name": "
|
447
|
+
"name": "lock",
|
364
448
|
"outputs": [],
|
365
449
|
"stateMutability": "nonpayable",
|
366
450
|
"type": "function"
|
@@ -440,9 +524,9 @@
|
|
440
524
|
"type": "uint256"
|
441
525
|
},
|
442
526
|
{
|
443
|
-
"internalType": "
|
527
|
+
"internalType": "Seconds",
|
444
528
|
"name": "lifetime",
|
445
|
-
"type": "
|
529
|
+
"type": "uint40"
|
446
530
|
},
|
447
531
|
{
|
448
532
|
"internalType": "Timestamp",
|
@@ -488,7 +572,7 @@
|
|
488
572
|
"type": "tuple"
|
489
573
|
}
|
490
574
|
],
|
491
|
-
"name": "
|
575
|
+
"name": "setFee",
|
492
576
|
"outputs": [],
|
493
577
|
"stateMutability": "nonpayable",
|
494
578
|
"type": "function"
|
@@ -520,94 +604,7 @@
|
|
520
604
|
"type": "uint96"
|
521
605
|
}
|
522
606
|
],
|
523
|
-
"name": "
|
524
|
-
"outputs": [],
|
525
|
-
"stateMutability": "nonpayable",
|
526
|
-
"type": "function"
|
527
|
-
},
|
528
|
-
{
|
529
|
-
"inputs": [
|
530
|
-
{
|
531
|
-
"internalType": "NftId",
|
532
|
-
"name": "instanceNftId",
|
533
|
-
"type": "uint96"
|
534
|
-
},
|
535
|
-
{
|
536
|
-
"internalType": "NftId",
|
537
|
-
"name": "bundleNftId",
|
538
|
-
"type": "uint96"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"components": [
|
542
|
-
{
|
543
|
-
"internalType": "NftId",
|
544
|
-
"name": "poolNftId",
|
545
|
-
"type": "uint96"
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"components": [
|
549
|
-
{
|
550
|
-
"internalType": "UFixed",
|
551
|
-
"name": "fractionalFee",
|
552
|
-
"type": "uint256"
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"internalType": "uint256",
|
556
|
-
"name": "fixedFee",
|
557
|
-
"type": "uint256"
|
558
|
-
}
|
559
|
-
],
|
560
|
-
"internalType": "struct Fee",
|
561
|
-
"name": "fee",
|
562
|
-
"type": "tuple"
|
563
|
-
},
|
564
|
-
{
|
565
|
-
"internalType": "bytes",
|
566
|
-
"name": "filter",
|
567
|
-
"type": "bytes"
|
568
|
-
},
|
569
|
-
{
|
570
|
-
"internalType": "uint256",
|
571
|
-
"name": "capitalAmount",
|
572
|
-
"type": "uint256"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"internalType": "uint256",
|
576
|
-
"name": "lockedAmount",
|
577
|
-
"type": "uint256"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"internalType": "uint256",
|
581
|
-
"name": "balanceAmount",
|
582
|
-
"type": "uint256"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"internalType": "uint256",
|
586
|
-
"name": "lifetime",
|
587
|
-
"type": "uint256"
|
588
|
-
},
|
589
|
-
{
|
590
|
-
"internalType": "Timestamp",
|
591
|
-
"name": "expiredAt",
|
592
|
-
"type": "uint40"
|
593
|
-
},
|
594
|
-
{
|
595
|
-
"internalType": "Timestamp",
|
596
|
-
"name": "closedAt",
|
597
|
-
"type": "uint40"
|
598
|
-
}
|
599
|
-
],
|
600
|
-
"internalType": "struct IBundle.BundleInfo",
|
601
|
-
"name": "bundleInfo",
|
602
|
-
"type": "tuple"
|
603
|
-
},
|
604
|
-
{
|
605
|
-
"internalType": "StateId",
|
606
|
-
"name": "state",
|
607
|
-
"type": "uint8"
|
608
|
-
}
|
609
|
-
],
|
610
|
-
"name": "updateBundle",
|
607
|
+
"name": "unlock",
|
611
608
|
"outputs": [],
|
612
609
|
"stateMutability": "nonpayable",
|
613
610
|
"type": "function"
|