@etherisc/gif-next 0.0.2-f034782-101 → 0.0.2-f080b71-868
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -83
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +10 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +10 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +100 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +100 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +110 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +100 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +20 -0
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +10 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
- 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 +214 -1988
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +101 -14
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +379 -2729
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +95 -58
- 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 +45 -25
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +157 -126
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +30 -58
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2677 -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 +108 -21
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +6 -6
- 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 +119 -227
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +11 -35
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +330 -147
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +70 -14
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +127 -32
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +11 -7
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +193 -386
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +38 -74
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +68 -149
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +163 -113
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +80 -14
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +89 -231
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +132 -24
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +430 -14
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.json +518 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +80 -14
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +210 -65
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +27 -19
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +493 -48
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +18 -14
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +139 -44
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +16 -12
- 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 +0 -24
- 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 -36
- 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 +23 -11
- 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 +80 -14
- 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 +2 -2
- 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 +86 -15
- 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/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 +2 -2
- 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 +101 -26
- 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 +4 -0
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +161 -0
- 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/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 +40 -9
- 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/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 +4 -2
- package/contracts/components/IComponent.sol +3 -1
- package/contracts/components/Pool.sol +8 -4
- package/contracts/components/Product.sol +8 -5
- package/contracts/instance/IInstance.sol +16 -54
- package/contracts/instance/IInstanceService.sol +14 -2
- package/contracts/instance/Instance.sol +88 -188
- package/contracts/instance/InstanceAccessManager.sol +41 -23
- package/contracts/instance/InstanceAuthorizationsLib.sol +299 -0
- package/contracts/instance/InstanceReader.sol +15 -6
- package/contracts/instance/InstanceService.sol +59 -234
- package/contracts/instance/InstanceStore.sol +219 -0
- package/contracts/instance/base/ComponentService.sol +51 -38
- package/contracts/instance/base/KeyValueStore.sol +8 -3
- package/contracts/instance/module/IAccess.sol +2 -2
- package/contracts/instance/module/IBundle.sol +6 -4
- package/contracts/instance/module/IComponents.sol +6 -0
- package/contracts/instance/service/ApplicationService.sol +35 -202
- package/contracts/instance/service/BundleService.sol +165 -70
- package/contracts/instance/service/ClaimService.sol +2 -8
- package/contracts/instance/service/DistributionService.sol +30 -151
- package/contracts/instance/service/IApplicationService.sol +0 -18
- package/contracts/instance/service/IBundleService.sol +54 -22
- package/contracts/instance/service/IDistributionService.sol +1 -14
- package/contracts/instance/service/IPolicyService.sol +2 -0
- package/contracts/instance/service/IPoolService.sol +65 -1
- package/contracts/instance/service/IPricingService.sol +36 -0
- package/contracts/instance/service/PolicyService.sol +88 -115
- package/contracts/instance/service/PoolService.sol +136 -53
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +25 -56
- package/contracts/registry/IRegistryService.sol +4 -3
- package/contracts/registry/RegistryService.sol +25 -22
- package/contracts/registry/ReleaseManager.sol +20 -18
- package/contracts/shared/IService.sol +4 -6
- package/contracts/shared/Service.sol +21 -7
- package/contracts/test/TestService.sol +1 -1
- package/contracts/types/Amount.sol +60 -0
- package/contracts/types/Fee.sol +12 -5
- package/contracts/types/ObjectType.sol +4 -0
- package/package.json +1 -1
package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json
CHANGED
@@ -3,15 +3,42 @@
|
|
3
3
|
"contractName": "IApplicationService",
|
4
4
|
"sourceName": "contracts/instance/service/IApplicationService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
6
17
|
{
|
7
18
|
"inputs": [
|
8
19
|
{
|
9
20
|
"internalType": "address",
|
10
21
|
"name": "caller",
|
11
22
|
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
12
28
|
}
|
13
29
|
],
|
14
|
-
"name": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
15
42
|
"type": "error"
|
16
43
|
},
|
17
44
|
{
|
@@ -67,33 +94,25 @@
|
|
67
94
|
"inputs": [
|
68
95
|
{
|
69
96
|
"internalType": "NftId",
|
70
|
-
"name": "
|
71
|
-
"type": "uint96"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"internalType": "NftId",
|
75
|
-
"name": "bundlePoolNftId",
|
76
|
-
"type": "uint96"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"internalType": "NftId",
|
80
|
-
"name": "poolNftId",
|
97
|
+
"name": "applicationNftId",
|
81
98
|
"type": "uint96"
|
82
99
|
}
|
83
100
|
],
|
84
|
-
"name": "
|
101
|
+
"name": "IApplicationServicePolicyNotApplied",
|
85
102
|
"type": "error"
|
86
103
|
},
|
87
104
|
{
|
105
|
+
"anonymous": false,
|
88
106
|
"inputs": [
|
89
107
|
{
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "address",
|
110
|
+
"name": "authority",
|
111
|
+
"type": "address"
|
93
112
|
}
|
94
113
|
],
|
95
|
-
"name": "
|
96
|
-
"type": "
|
114
|
+
"name": "AuthorityUpdated",
|
115
|
+
"type": "event"
|
97
116
|
},
|
98
117
|
{
|
99
118
|
"inputs": [
|
@@ -139,126 +158,13 @@
|
|
139
158
|
"type": "function"
|
140
159
|
},
|
141
160
|
{
|
142
|
-
"inputs": [
|
143
|
-
|
144
|
-
"internalType": "NftId",
|
145
|
-
"name": "productNftId",
|
146
|
-
"type": "uint96"
|
147
|
-
},
|
148
|
-
{
|
149
|
-
"internalType": "RiskId",
|
150
|
-
"name": "riskId",
|
151
|
-
"type": "bytes8"
|
152
|
-
},
|
153
|
-
{
|
154
|
-
"internalType": "uint256",
|
155
|
-
"name": "sumInsuredAmount",
|
156
|
-
"type": "uint256"
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"internalType": "Seconds",
|
160
|
-
"name": "lifetime",
|
161
|
-
"type": "uint40"
|
162
|
-
},
|
163
|
-
{
|
164
|
-
"internalType": "bytes",
|
165
|
-
"name": "applicationData",
|
166
|
-
"type": "bytes"
|
167
|
-
},
|
168
|
-
{
|
169
|
-
"internalType": "NftId",
|
170
|
-
"name": "bundleNftId",
|
171
|
-
"type": "uint96"
|
172
|
-
},
|
173
|
-
{
|
174
|
-
"internalType": "ReferralId",
|
175
|
-
"name": "referralId",
|
176
|
-
"type": "bytes8"
|
177
|
-
}
|
178
|
-
],
|
179
|
-
"name": "calculatePremium",
|
161
|
+
"inputs": [],
|
162
|
+
"name": "authority",
|
180
163
|
"outputs": [
|
181
164
|
{
|
182
|
-
"
|
183
|
-
|
184
|
-
|
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"
|
165
|
+
"internalType": "address",
|
166
|
+
"name": "",
|
167
|
+
"type": "address"
|
262
168
|
}
|
263
169
|
],
|
264
170
|
"stateMutability": "view",
|
@@ -376,19 +282,6 @@
|
|
376
282
|
"stateMutability": "view",
|
377
283
|
"type": "function"
|
378
284
|
},
|
379
|
-
{
|
380
|
-
"inputs": [],
|
381
|
-
"name": "getMajorVersion",
|
382
|
-
"outputs": [
|
383
|
-
{
|
384
|
-
"internalType": "VersionPart",
|
385
|
-
"name": "majorVersion",
|
386
|
-
"type": "uint8"
|
387
|
-
}
|
388
|
-
],
|
389
|
-
"stateMutability": "view",
|
390
|
-
"type": "function"
|
391
|
-
},
|
392
285
|
{
|
393
286
|
"inputs": [],
|
394
287
|
"name": "getNftId",
|
@@ -472,6 +365,19 @@
|
|
472
365
|
"stateMutability": "nonpayable",
|
473
366
|
"type": "function"
|
474
367
|
},
|
368
|
+
{
|
369
|
+
"inputs": [],
|
370
|
+
"name": "isConsumingScheduledOp",
|
371
|
+
"outputs": [
|
372
|
+
{
|
373
|
+
"internalType": "bytes4",
|
374
|
+
"name": "",
|
375
|
+
"type": "bytes4"
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"stateMutability": "view",
|
379
|
+
"type": "function"
|
380
|
+
},
|
475
381
|
{
|
476
382
|
"inputs": [],
|
477
383
|
"name": "linkToRegisteredNftId",
|
@@ -516,6 +422,19 @@
|
|
516
422
|
"stateMutability": "nonpayable",
|
517
423
|
"type": "function"
|
518
424
|
},
|
425
|
+
{
|
426
|
+
"inputs": [
|
427
|
+
{
|
428
|
+
"internalType": "address",
|
429
|
+
"name": "",
|
430
|
+
"type": "address"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"name": "setAuthority",
|
434
|
+
"outputs": [],
|
435
|
+
"stateMutability": "nonpayable",
|
436
|
+
"type": "function"
|
437
|
+
},
|
519
438
|
{
|
520
439
|
"inputs": [
|
521
440
|
{
|
@@ -3,6 +3,44 @@
|
|
3
3
|
"contractName": "IBundleService",
|
4
4
|
"sourceName": "contracts/instance/service/IBundleService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
6
44
|
{
|
7
45
|
"inputs": [
|
8
46
|
{
|
@@ -14,11 +52,37 @@
|
|
14
52
|
"internalType": "StateId",
|
15
53
|
"name": "state",
|
16
54
|
"type": "uint8"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "Timestamp",
|
58
|
+
"name": "expiredAt",
|
59
|
+
"type": "uint40"
|
17
60
|
}
|
18
61
|
],
|
19
62
|
"name": "ErrorBundleServiceBundleNotOpen",
|
20
63
|
"type": "error"
|
21
64
|
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "bundleNftId",
|
70
|
+
"type": "uint96"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "bundlePoolNftId",
|
75
|
+
"type": "uint96"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "poolNftId",
|
80
|
+
"type": "uint96"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"name": "ErrorBundleServiceBundlePoolMismatch",
|
84
|
+
"type": "error"
|
85
|
+
},
|
22
86
|
{
|
23
87
|
"inputs": [
|
24
88
|
{
|
@@ -38,33 +102,43 @@
|
|
38
102
|
{
|
39
103
|
"inputs": [
|
40
104
|
{
|
41
|
-
"internalType": "
|
42
|
-
"name": "
|
43
|
-
"type": "
|
105
|
+
"internalType": "NftId",
|
106
|
+
"name": "bundleNftId",
|
107
|
+
"type": "uint96"
|
44
108
|
},
|
45
109
|
{
|
46
|
-
"internalType": "
|
47
|
-
"name": "
|
48
|
-
"type": "
|
110
|
+
"internalType": "uint256",
|
111
|
+
"name": "capacityAmount",
|
112
|
+
"type": "uint256"
|
49
113
|
},
|
50
114
|
{
|
51
115
|
"internalType": "uint256",
|
52
|
-
"name": "
|
116
|
+
"name": "collateralAmount",
|
53
117
|
"type": "uint256"
|
54
118
|
}
|
55
119
|
],
|
56
|
-
"name": "
|
120
|
+
"name": "ErrorBundleServiceCapacityInsufficient",
|
57
121
|
"type": "error"
|
58
122
|
},
|
59
123
|
{
|
60
124
|
"inputs": [
|
61
125
|
{
|
62
126
|
"internalType": "address",
|
63
|
-
"name": "
|
127
|
+
"name": "bundleOwner",
|
64
128
|
"type": "address"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"internalType": "address",
|
132
|
+
"name": "tokenHandlerAddress",
|
133
|
+
"type": "address"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"internalType": "uint256",
|
137
|
+
"name": "amount",
|
138
|
+
"type": "uint256"
|
65
139
|
}
|
66
140
|
],
|
67
|
-
"name": "
|
141
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
68
142
|
"type": "error"
|
69
143
|
},
|
70
144
|
{
|
@@ -121,12 +195,12 @@
|
|
121
195
|
"inputs": [
|
122
196
|
{
|
123
197
|
"indexed": false,
|
124
|
-
"internalType": "
|
125
|
-
"name": "
|
126
|
-
"type": "
|
198
|
+
"internalType": "address",
|
199
|
+
"name": "authority",
|
200
|
+
"type": "address"
|
127
201
|
}
|
128
202
|
],
|
129
|
-
"name": "
|
203
|
+
"name": "AuthorityUpdated",
|
130
204
|
"type": "event"
|
131
205
|
},
|
132
206
|
{
|
@@ -139,7 +213,7 @@
|
|
139
213
|
"type": "uint96"
|
140
214
|
}
|
141
215
|
],
|
142
|
-
"name": "
|
216
|
+
"name": "LogBundleServiceBundleActivated",
|
143
217
|
"type": "event"
|
144
218
|
},
|
145
219
|
{
|
@@ -156,16 +230,16 @@
|
|
156
230
|
"type": "event"
|
157
231
|
},
|
158
232
|
{
|
159
|
-
"inputs": [
|
233
|
+
"inputs": [],
|
234
|
+
"name": "authority",
|
235
|
+
"outputs": [
|
160
236
|
{
|
161
|
-
"internalType": "
|
162
|
-
"name": "
|
163
|
-
"type": "
|
237
|
+
"internalType": "address",
|
238
|
+
"name": "",
|
239
|
+
"type": "address"
|
164
240
|
}
|
165
241
|
],
|
166
|
-
"
|
167
|
-
"outputs": [],
|
168
|
-
"stateMutability": "nonpayable",
|
242
|
+
"stateMutability": "view",
|
169
243
|
"type": "function"
|
170
244
|
},
|
171
245
|
{
|
@@ -175,29 +249,29 @@
|
|
175
249
|
"name": "instance",
|
176
250
|
"type": "address"
|
177
251
|
},
|
178
|
-
{
|
179
|
-
"internalType": "NftId",
|
180
|
-
"name": "policyNftId",
|
181
|
-
"type": "uint96"
|
182
|
-
},
|
183
252
|
{
|
184
253
|
"internalType": "NftId",
|
185
254
|
"name": "bundleNftId",
|
186
255
|
"type": "uint96"
|
187
|
-
},
|
188
|
-
{
|
189
|
-
"internalType": "uint256",
|
190
|
-
"name": "collateralAmount",
|
191
|
-
"type": "uint256"
|
192
256
|
}
|
193
257
|
],
|
194
|
-
"name": "
|
258
|
+
"name": "close",
|
195
259
|
"outputs": [],
|
196
260
|
"stateMutability": "nonpayable",
|
197
261
|
"type": "function"
|
198
262
|
},
|
199
263
|
{
|
200
264
|
"inputs": [
|
265
|
+
{
|
266
|
+
"internalType": "contract IInstance",
|
267
|
+
"name": "instance",
|
268
|
+
"type": "address"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"internalType": "NftId",
|
272
|
+
"name": "poolNftId",
|
273
|
+
"type": "uint96"
|
274
|
+
},
|
201
275
|
{
|
202
276
|
"internalType": "address",
|
203
277
|
"name": "owner",
|
@@ -221,9 +295,9 @@
|
|
221
295
|
"type": "tuple"
|
222
296
|
},
|
223
297
|
{
|
224
|
-
"internalType": "
|
225
|
-
"name": "
|
226
|
-
"type": "
|
298
|
+
"internalType": "Amount",
|
299
|
+
"name": "stakingAmount",
|
300
|
+
"type": "uint96"
|
227
301
|
},
|
228
302
|
{
|
229
303
|
"internalType": "Seconds",
|
@@ -310,19 +384,6 @@
|
|
310
384
|
"stateMutability": "view",
|
311
385
|
"type": "function"
|
312
386
|
},
|
313
|
-
{
|
314
|
-
"inputs": [],
|
315
|
-
"name": "getMajorVersion",
|
316
|
-
"outputs": [
|
317
|
-
{
|
318
|
-
"internalType": "VersionPart",
|
319
|
-
"name": "majorVersion",
|
320
|
-
"type": "uint8"
|
321
|
-
}
|
322
|
-
],
|
323
|
-
"stateMutability": "view",
|
324
|
-
"type": "function"
|
325
|
-
},
|
326
387
|
{
|
327
388
|
"inputs": [],
|
328
389
|
"name": "getNftId",
|
@@ -429,6 +490,19 @@
|
|
429
490
|
"stateMutability": "nonpayable",
|
430
491
|
"type": "function"
|
431
492
|
},
|
493
|
+
{
|
494
|
+
"inputs": [],
|
495
|
+
"name": "isConsumingScheduledOp",
|
496
|
+
"outputs": [
|
497
|
+
{
|
498
|
+
"internalType": "bytes4",
|
499
|
+
"name": "",
|
500
|
+
"type": "bytes4"
|
501
|
+
}
|
502
|
+
],
|
503
|
+
"stateMutability": "view",
|
504
|
+
"type": "function"
|
505
|
+
},
|
432
506
|
{
|
433
507
|
"inputs": [],
|
434
508
|
"name": "linkToRegisteredNftId",
|
@@ -473,77 +547,53 @@
|
|
473
547
|
},
|
474
548
|
{
|
475
549
|
"internalType": "uint256",
|
476
|
-
"name": "
|
550
|
+
"name": "premium",
|
477
551
|
"type": "uint256"
|
478
552
|
}
|
479
553
|
],
|
480
554
|
"name": "lockCollateral",
|
481
|
-
"outputs": [
|
555
|
+
"outputs": [],
|
556
|
+
"stateMutability": "nonpayable",
|
557
|
+
"type": "function"
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"inputs": [
|
482
561
|
{
|
483
|
-
"
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
],
|
502
|
-
"internalType": "struct Fee",
|
503
|
-
"name": "fee",
|
504
|
-
"type": "tuple"
|
505
|
-
},
|
506
|
-
{
|
507
|
-
"internalType": "bytes",
|
508
|
-
"name": "filter",
|
509
|
-
"type": "bytes"
|
510
|
-
},
|
511
|
-
{
|
512
|
-
"internalType": "uint256",
|
513
|
-
"name": "capitalAmount",
|
514
|
-
"type": "uint256"
|
515
|
-
},
|
516
|
-
{
|
517
|
-
"internalType": "uint256",
|
518
|
-
"name": "lockedAmount",
|
519
|
-
"type": "uint256"
|
520
|
-
},
|
521
|
-
{
|
522
|
-
"internalType": "uint256",
|
523
|
-
"name": "balanceAmount",
|
524
|
-
"type": "uint256"
|
525
|
-
},
|
526
|
-
{
|
527
|
-
"internalType": "Seconds",
|
528
|
-
"name": "lifetime",
|
529
|
-
"type": "uint40"
|
530
|
-
},
|
531
|
-
{
|
532
|
-
"internalType": "Timestamp",
|
533
|
-
"name": "expiredAt",
|
534
|
-
"type": "uint40"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"internalType": "Timestamp",
|
538
|
-
"name": "closedAt",
|
539
|
-
"type": "uint40"
|
540
|
-
}
|
541
|
-
],
|
542
|
-
"internalType": "struct IBundle.BundleInfo",
|
543
|
-
"name": "bundleInfo",
|
544
|
-
"type": "tuple"
|
562
|
+
"internalType": "contract IInstance",
|
563
|
+
"name": "instance",
|
564
|
+
"type": "address"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"internalType": "NftId",
|
568
|
+
"name": "policyNftId",
|
569
|
+
"type": "uint96"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"internalType": "NftId",
|
573
|
+
"name": "bundleNftId",
|
574
|
+
"type": "uint96"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"internalType": "uint256",
|
578
|
+
"name": "collateralAmount",
|
579
|
+
"type": "uint256"
|
545
580
|
}
|
546
581
|
],
|
582
|
+
"name": "releaseCollateral",
|
583
|
+
"outputs": [],
|
584
|
+
"stateMutability": "nonpayable",
|
585
|
+
"type": "function"
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"inputs": [
|
589
|
+
{
|
590
|
+
"internalType": "address",
|
591
|
+
"name": "",
|
592
|
+
"type": "address"
|
593
|
+
}
|
594
|
+
],
|
595
|
+
"name": "setAuthority",
|
596
|
+
"outputs": [],
|
547
597
|
"stateMutability": "nonpayable",
|
548
598
|
"type": "function"
|
549
599
|
},
|