@etherisc/gif-next 0.0.2-bf75dbb-287 → 0.0.2-c2a8d66-341
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → Component.sol/Component.json} +300 -12
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +199 -94
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +86 -84
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +496 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +512 -74
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +596 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +180 -205
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +204 -110
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +284 -2
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +115 -19
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +117 -601
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +416 -186
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +41 -82
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +253 -226
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +38 -97
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +124 -61
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +65 -44
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +149 -93
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +29 -36
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IBundleService.sol/IBundleService.json} +295 -46
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -18
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPolicyService.sol/IPolicyService.json} +372 -48
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +12 -246
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -246
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +126 -369
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +29 -56
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +137 -428
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +29 -80
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +231 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +127 -93
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +243 -234
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +68 -161
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +51 -104
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +13 -29
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +13 -18
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +19 -6
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +26 -18
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +19 -11
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +44 -36
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/Component.sol +216 -0
- package/contracts/components/Distribution.sol +41 -51
- package/contracts/components/IComponent.sol +43 -0
- package/contracts/components/IDistributionComponent.sol +5 -2
- package/contracts/components/IPoolComponent.sol +6 -21
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +50 -109
- package/contracts/components/Product.sol +66 -89
- package/contracts/instance/BundleManager.sol +7 -11
- package/contracts/instance/IInstance.sol +25 -9
- package/contracts/instance/IInstanceService.sol +12 -4
- package/contracts/instance/Instance.sol +45 -230
- package/contracts/instance/InstanceAccessManager.sol +333 -166
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +352 -143
- package/contracts/instance/InstanceServiceManager.sol +5 -8
- package/contracts/instance/ObjectManager.sol +7 -24
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +43 -25
- package/contracts/instance/service/DistributionServiceManager.sol +6 -9
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +2 -33
- package/contracts/instance/service/IProductService.sol +2 -72
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +33 -210
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +122 -459
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +36 -17
- package/contracts/registry/IRegistryService.sol +28 -13
- package/contracts/registry/Registry.sol +227 -218
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +61 -157
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +8 -7
- package/contracts/shared/IRegisterable.sol +1 -3
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/NftOwnable.sol +5 -0
- package/contracts/shared/ProxyManager.sol +1 -1
- package/contracts/shared/Registerable.sol +10 -14
- package/contracts/shared/Service.sol +13 -8
- package/contracts/test/TestService.sol +3 -2
- package/contracts/types/RoleId.sol +18 -15
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -132
- package/contracts/components/IBaseComponent.sol +0 -31
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -134
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -30,27 +30,6 @@
|
|
30
30
|
"name": "ErrorContractNotRegistered",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
|
-
{
|
34
|
-
"inputs": [
|
35
|
-
{
|
36
|
-
"internalType": "address",
|
37
|
-
"name": "bundleOwner",
|
38
|
-
"type": "address"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"internalType": "address",
|
42
|
-
"name": "tokenHandlerAddress",
|
43
|
-
"type": "address"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"internalType": "uint256",
|
47
|
-
"name": "amount",
|
48
|
-
"type": "uint256"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"name": "ErrorIPoolServiceInsufficientAllowance",
|
52
|
-
"type": "error"
|
53
|
-
},
|
54
33
|
{
|
55
34
|
"inputs": [
|
56
35
|
{
|
@@ -120,54 +99,16 @@
|
|
120
99
|
"type": "event"
|
121
100
|
},
|
122
101
|
{
|
123
|
-
"inputs": [
|
124
|
-
|
125
|
-
"internalType": "address",
|
126
|
-
"name": "owner",
|
127
|
-
"type": "address"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"components": [
|
131
|
-
{
|
132
|
-
"internalType": "UFixed",
|
133
|
-
"name": "fractionalFee",
|
134
|
-
"type": "uint256"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"internalType": "uint256",
|
138
|
-
"name": "fixedFee",
|
139
|
-
"type": "uint256"
|
140
|
-
}
|
141
|
-
],
|
142
|
-
"internalType": "struct Fee",
|
143
|
-
"name": "fee",
|
144
|
-
"type": "tuple"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"internalType": "uint256",
|
148
|
-
"name": "amount",
|
149
|
-
"type": "uint256"
|
150
|
-
},
|
151
|
-
{
|
152
|
-
"internalType": "uint256",
|
153
|
-
"name": "lifetime",
|
154
|
-
"type": "uint256"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"internalType": "bytes",
|
158
|
-
"name": "filter",
|
159
|
-
"type": "bytes"
|
160
|
-
}
|
161
|
-
],
|
162
|
-
"name": "createBundle",
|
102
|
+
"inputs": [],
|
103
|
+
"name": "getDomain",
|
163
104
|
"outputs": [
|
164
105
|
{
|
165
|
-
"internalType": "
|
166
|
-
"name": "
|
167
|
-
"type": "
|
106
|
+
"internalType": "ObjectType",
|
107
|
+
"name": "serviceDomain",
|
108
|
+
"type": "uint8"
|
168
109
|
}
|
169
110
|
],
|
170
|
-
"stateMutability": "
|
111
|
+
"stateMutability": "pure",
|
171
112
|
"type": "function"
|
172
113
|
},
|
173
114
|
{
|
@@ -215,11 +156,6 @@
|
|
215
156
|
"internalType": "struct IRegistry.ObjectInfo",
|
216
157
|
"name": "",
|
217
158
|
"type": "tuple"
|
218
|
-
},
|
219
|
-
{
|
220
|
-
"internalType": "bytes",
|
221
|
-
"name": "data",
|
222
|
-
"type": "bytes"
|
223
159
|
}
|
224
160
|
],
|
225
161
|
"stateMutability": "view",
|
@@ -251,19 +187,6 @@
|
|
251
187
|
"stateMutability": "view",
|
252
188
|
"type": "function"
|
253
189
|
},
|
254
|
-
{
|
255
|
-
"inputs": [],
|
256
|
-
"name": "getName",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "string",
|
260
|
-
"name": "name",
|
261
|
-
"type": "string"
|
262
|
-
}
|
263
|
-
],
|
264
|
-
"stateMutability": "pure",
|
265
|
-
"type": "function"
|
266
|
-
},
|
267
190
|
{
|
268
191
|
"inputs": [],
|
269
192
|
"name": "getNftId",
|
@@ -446,43 +369,19 @@
|
|
446
369
|
{
|
447
370
|
"inputs": [
|
448
371
|
{
|
449
|
-
"internalType": "
|
450
|
-
"name": "
|
451
|
-
"type": "
|
372
|
+
"internalType": "address",
|
373
|
+
"name": "poolAddress",
|
374
|
+
"type": "address"
|
452
375
|
}
|
453
376
|
],
|
454
|
-
"name": "
|
455
|
-
"outputs": [
|
456
|
-
"stateMutability": "nonpayable",
|
457
|
-
"type": "function"
|
458
|
-
},
|
459
|
-
{
|
460
|
-
"inputs": [
|
377
|
+
"name": "register",
|
378
|
+
"outputs": [
|
461
379
|
{
|
462
380
|
"internalType": "NftId",
|
463
|
-
"name": "
|
381
|
+
"name": "",
|
464
382
|
"type": "uint96"
|
465
|
-
},
|
466
|
-
{
|
467
|
-
"components": [
|
468
|
-
{
|
469
|
-
"internalType": "UFixed",
|
470
|
-
"name": "fractionalFee",
|
471
|
-
"type": "uint256"
|
472
|
-
},
|
473
|
-
{
|
474
|
-
"internalType": "uint256",
|
475
|
-
"name": "fixedFee",
|
476
|
-
"type": "uint256"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"internalType": "struct Fee",
|
480
|
-
"name": "fee",
|
481
|
-
"type": "tuple"
|
482
383
|
}
|
483
384
|
],
|
484
|
-
"name": "setBundleFee",
|
485
|
-
"outputs": [],
|
486
385
|
"stateMutability": "nonpayable",
|
487
386
|
"type": "function"
|
488
387
|
},
|
@@ -564,139 +463,6 @@
|
|
564
463
|
"stateMutability": "view",
|
565
464
|
"type": "function"
|
566
465
|
},
|
567
|
-
{
|
568
|
-
"inputs": [
|
569
|
-
{
|
570
|
-
"internalType": "contract IInstance",
|
571
|
-
"name": "instanceNftId",
|
572
|
-
"type": "address"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"internalType": "NftId",
|
576
|
-
"name": "policyNftId",
|
577
|
-
"type": "uint96"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"internalType": "NftId",
|
581
|
-
"name": "bundleNftId",
|
582
|
-
"type": "uint96"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"internalType": "uint256",
|
586
|
-
"name": "collateralAmount",
|
587
|
-
"type": "uint256"
|
588
|
-
},
|
589
|
-
{
|
590
|
-
"internalType": "uint256",
|
591
|
-
"name": "netPremium",
|
592
|
-
"type": "uint256"
|
593
|
-
}
|
594
|
-
],
|
595
|
-
"name": "underwritePolicy",
|
596
|
-
"outputs": [],
|
597
|
-
"stateMutability": "nonpayable",
|
598
|
-
"type": "function"
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"inputs": [
|
602
|
-
{
|
603
|
-
"internalType": "NftId",
|
604
|
-
"name": "bundleNftId",
|
605
|
-
"type": "uint96"
|
606
|
-
}
|
607
|
-
],
|
608
|
-
"name": "unlockBundle",
|
609
|
-
"outputs": [],
|
610
|
-
"stateMutability": "nonpayable",
|
611
|
-
"type": "function"
|
612
|
-
},
|
613
|
-
{
|
614
|
-
"inputs": [
|
615
|
-
{
|
616
|
-
"internalType": "NftId",
|
617
|
-
"name": "instanceNftId",
|
618
|
-
"type": "uint96"
|
619
|
-
},
|
620
|
-
{
|
621
|
-
"internalType": "NftId",
|
622
|
-
"name": "bundleNftId",
|
623
|
-
"type": "uint96"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"components": [
|
627
|
-
{
|
628
|
-
"internalType": "NftId",
|
629
|
-
"name": "poolNftId",
|
630
|
-
"type": "uint96"
|
631
|
-
},
|
632
|
-
{
|
633
|
-
"components": [
|
634
|
-
{
|
635
|
-
"internalType": "UFixed",
|
636
|
-
"name": "fractionalFee",
|
637
|
-
"type": "uint256"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"internalType": "uint256",
|
641
|
-
"name": "fixedFee",
|
642
|
-
"type": "uint256"
|
643
|
-
}
|
644
|
-
],
|
645
|
-
"internalType": "struct Fee",
|
646
|
-
"name": "fee",
|
647
|
-
"type": "tuple"
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"internalType": "bytes",
|
651
|
-
"name": "filter",
|
652
|
-
"type": "bytes"
|
653
|
-
},
|
654
|
-
{
|
655
|
-
"internalType": "uint256",
|
656
|
-
"name": "capitalAmount",
|
657
|
-
"type": "uint256"
|
658
|
-
},
|
659
|
-
{
|
660
|
-
"internalType": "uint256",
|
661
|
-
"name": "lockedAmount",
|
662
|
-
"type": "uint256"
|
663
|
-
},
|
664
|
-
{
|
665
|
-
"internalType": "uint256",
|
666
|
-
"name": "balanceAmount",
|
667
|
-
"type": "uint256"
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"internalType": "uint256",
|
671
|
-
"name": "lifetime",
|
672
|
-
"type": "uint256"
|
673
|
-
},
|
674
|
-
{
|
675
|
-
"internalType": "Timestamp",
|
676
|
-
"name": "expiredAt",
|
677
|
-
"type": "uint40"
|
678
|
-
},
|
679
|
-
{
|
680
|
-
"internalType": "Timestamp",
|
681
|
-
"name": "closedAt",
|
682
|
-
"type": "uint40"
|
683
|
-
}
|
684
|
-
],
|
685
|
-
"internalType": "struct IBundle.BundleInfo",
|
686
|
-
"name": "bundleInfo",
|
687
|
-
"type": "tuple"
|
688
|
-
},
|
689
|
-
{
|
690
|
-
"internalType": "StateId",
|
691
|
-
"name": "state",
|
692
|
-
"type": "uint8"
|
693
|
-
}
|
694
|
-
],
|
695
|
-
"name": "updateBundle",
|
696
|
-
"outputs": [],
|
697
|
-
"stateMutability": "nonpayable",
|
698
|
-
"type": "function"
|
699
|
-
},
|
700
466
|
{
|
701
467
|
"inputs": [
|
702
468
|
{
|
@@ -30,27 +30,6 @@
|
|
30
30
|
"name": "ErrorContractNotRegistered",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
|
-
{
|
34
|
-
"inputs": [
|
35
|
-
{
|
36
|
-
"internalType": "address",
|
37
|
-
"name": "customer",
|
38
|
-
"type": "address"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"internalType": "address",
|
42
|
-
"name": "tokenHandlerAddress",
|
43
|
-
"type": "address"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"internalType": "uint256",
|
47
|
-
"name": "amount",
|
48
|
-
"type": "uint256"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"name": "ErrorIProductServiceInsufficientAllowance",
|
52
|
-
"type": "error"
|
53
|
-
},
|
54
33
|
{
|
55
34
|
"inputs": [
|
56
35
|
{
|
@@ -119,24 +98,6 @@
|
|
119
98
|
"name": "LogVersionableInitialized",
|
120
99
|
"type": "event"
|
121
100
|
},
|
122
|
-
{
|
123
|
-
"inputs": [
|
124
|
-
{
|
125
|
-
"internalType": "NftId",
|
126
|
-
"name": "policyNftId",
|
127
|
-
"type": "uint96"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"internalType": "Timestamp",
|
131
|
-
"name": "activateAt",
|
132
|
-
"type": "uint40"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"name": "activate",
|
136
|
-
"outputs": [],
|
137
|
-
"stateMutability": "nonpayable",
|
138
|
-
"type": "function"
|
139
|
-
},
|
140
101
|
{
|
141
102
|
"inputs": [
|
142
103
|
{
|
@@ -144,183 +105,28 @@
|
|
144
105
|
"name": "riskId",
|
145
106
|
"type": "bytes8"
|
146
107
|
},
|
147
|
-
{
|
148
|
-
"internalType": "uint256",
|
149
|
-
"name": "sumInsuredAmount",
|
150
|
-
"type": "uint256"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"internalType": "uint256",
|
154
|
-
"name": "lifetime",
|
155
|
-
"type": "uint256"
|
156
|
-
},
|
157
108
|
{
|
158
109
|
"internalType": "bytes",
|
159
|
-
"name": "
|
110
|
+
"name": "data",
|
160
111
|
"type": "bytes"
|
161
|
-
},
|
162
|
-
{
|
163
|
-
"internalType": "NftId",
|
164
|
-
"name": "bundleNftId",
|
165
|
-
"type": "uint96"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"internalType": "ReferralId",
|
169
|
-
"name": "referralId",
|
170
|
-
"type": "bytes8"
|
171
|
-
}
|
172
|
-
],
|
173
|
-
"name": "calculatePremium",
|
174
|
-
"outputs": [
|
175
|
-
{
|
176
|
-
"internalType": "uint256",
|
177
|
-
"name": "premiumAmount",
|
178
|
-
"type": "uint256"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"internalType": "uint256",
|
182
|
-
"name": "productFeeAmount",
|
183
|
-
"type": "uint256"
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"internalType": "uint256",
|
187
|
-
"name": "poolFeeAmount",
|
188
|
-
"type": "uint256"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"internalType": "uint256",
|
192
|
-
"name": "bundleFeeAmount",
|
193
|
-
"type": "uint256"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"internalType": "uint256",
|
197
|
-
"name": "distributionFeeAmount",
|
198
|
-
"type": "uint256"
|
199
|
-
}
|
200
|
-
],
|
201
|
-
"stateMutability": "view",
|
202
|
-
"type": "function"
|
203
|
-
},
|
204
|
-
{
|
205
|
-
"inputs": [
|
206
|
-
{
|
207
|
-
"internalType": "UFixed",
|
208
|
-
"name": "collateralizationLevel",
|
209
|
-
"type": "uint256"
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"internalType": "uint256",
|
213
|
-
"name": "sumInsuredAmount",
|
214
|
-
"type": "uint256"
|
215
|
-
}
|
216
|
-
],
|
217
|
-
"name": "calculateRequiredCollateral",
|
218
|
-
"outputs": [
|
219
|
-
{
|
220
|
-
"internalType": "uint256",
|
221
|
-
"name": "collateralAmount",
|
222
|
-
"type": "uint256"
|
223
|
-
}
|
224
|
-
],
|
225
|
-
"stateMutability": "pure",
|
226
|
-
"type": "function"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"inputs": [
|
230
|
-
{
|
231
|
-
"internalType": "NftId",
|
232
|
-
"name": "nftId",
|
233
|
-
"type": "uint96"
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"name": "close",
|
237
|
-
"outputs": [],
|
238
|
-
"stateMutability": "nonpayable",
|
239
|
-
"type": "function"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"inputs": [
|
243
|
-
{
|
244
|
-
"internalType": "NftId",
|
245
|
-
"name": "policyNftId",
|
246
|
-
"type": "uint96"
|
247
|
-
},
|
248
|
-
{
|
249
|
-
"internalType": "Timestamp",
|
250
|
-
"name": "activateAt",
|
251
|
-
"type": "uint40"
|
252
112
|
}
|
253
113
|
],
|
254
|
-
"name": "
|
114
|
+
"name": "createRisk",
|
255
115
|
"outputs": [],
|
256
116
|
"stateMutability": "nonpayable",
|
257
117
|
"type": "function"
|
258
118
|
},
|
259
119
|
{
|
260
|
-
"inputs": [
|
261
|
-
|
262
|
-
"internalType": "address",
|
263
|
-
"name": "applicationOwner",
|
264
|
-
"type": "address"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
"internalType": "RiskId",
|
268
|
-
"name": "riskId",
|
269
|
-
"type": "bytes8"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"internalType": "uint256",
|
273
|
-
"name": "sumInsuredAmount",
|
274
|
-
"type": "uint256"
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"internalType": "uint256",
|
278
|
-
"name": "lifetime",
|
279
|
-
"type": "uint256"
|
280
|
-
},
|
281
|
-
{
|
282
|
-
"internalType": "bytes",
|
283
|
-
"name": "applicationData",
|
284
|
-
"type": "bytes"
|
285
|
-
},
|
286
|
-
{
|
287
|
-
"internalType": "NftId",
|
288
|
-
"name": "bundleNftId",
|
289
|
-
"type": "uint96"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"internalType": "ReferralId",
|
293
|
-
"name": "referralId",
|
294
|
-
"type": "bytes8"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
"name": "createApplication",
|
120
|
+
"inputs": [],
|
121
|
+
"name": "getDomain",
|
298
122
|
"outputs": [
|
299
123
|
{
|
300
|
-
"internalType": "
|
301
|
-
"name": "
|
302
|
-
"type": "
|
303
|
-
}
|
304
|
-
],
|
305
|
-
"stateMutability": "nonpayable",
|
306
|
-
"type": "function"
|
307
|
-
},
|
308
|
-
{
|
309
|
-
"inputs": [
|
310
|
-
{
|
311
|
-
"internalType": "RiskId",
|
312
|
-
"name": "riskId",
|
313
|
-
"type": "bytes8"
|
314
|
-
},
|
315
|
-
{
|
316
|
-
"internalType": "bytes",
|
317
|
-
"name": "data",
|
318
|
-
"type": "bytes"
|
124
|
+
"internalType": "ObjectType",
|
125
|
+
"name": "serviceDomain",
|
126
|
+
"type": "uint8"
|
319
127
|
}
|
320
128
|
],
|
321
|
-
"
|
322
|
-
"outputs": [],
|
323
|
-
"stateMutability": "nonpayable",
|
129
|
+
"stateMutability": "pure",
|
324
130
|
"type": "function"
|
325
131
|
},
|
326
132
|
{
|
@@ -368,11 +174,6 @@
|
|
368
174
|
"internalType": "struct IRegistry.ObjectInfo",
|
369
175
|
"name": "",
|
370
176
|
"type": "tuple"
|
371
|
-
},
|
372
|
-
{
|
373
|
-
"internalType": "bytes",
|
374
|
-
"name": "data",
|
375
|
-
"type": "bytes"
|
376
177
|
}
|
377
178
|
],
|
378
179
|
"stateMutability": "view",
|
@@ -404,19 +205,6 @@
|
|
404
205
|
"stateMutability": "view",
|
405
206
|
"type": "function"
|
406
207
|
},
|
407
|
-
{
|
408
|
-
"inputs": [],
|
409
|
-
"name": "getName",
|
410
|
-
"outputs": [
|
411
|
-
{
|
412
|
-
"internalType": "string",
|
413
|
-
"name": "name",
|
414
|
-
"type": "string"
|
415
|
-
}
|
416
|
-
],
|
417
|
-
"stateMutability": "pure",
|
418
|
-
"type": "function"
|
419
|
-
},
|
420
208
|
{
|
421
209
|
"inputs": [],
|
422
210
|
"name": "getNftId",
|
@@ -598,14 +386,20 @@
|
|
598
386
|
},
|
599
387
|
{
|
600
388
|
"inputs": [
|
389
|
+
{
|
390
|
+
"internalType": "address",
|
391
|
+
"name": "productAddress",
|
392
|
+
"type": "address"
|
393
|
+
}
|
394
|
+
],
|
395
|
+
"name": "register",
|
396
|
+
"outputs": [
|
601
397
|
{
|
602
398
|
"internalType": "NftId",
|
603
|
-
"name": "
|
399
|
+
"name": "",
|
604
400
|
"type": "uint96"
|
605
401
|
}
|
606
402
|
],
|
607
|
-
"name": "revoke",
|
608
|
-
"outputs": [],
|
609
403
|
"stateMutability": "nonpayable",
|
610
404
|
"type": "function"
|
611
405
|
},
|
@@ -670,29 +464,6 @@
|
|
670
464
|
"stateMutability": "view",
|
671
465
|
"type": "function"
|
672
466
|
},
|
673
|
-
{
|
674
|
-
"inputs": [
|
675
|
-
{
|
676
|
-
"internalType": "NftId",
|
677
|
-
"name": "policyNftId",
|
678
|
-
"type": "uint96"
|
679
|
-
},
|
680
|
-
{
|
681
|
-
"internalType": "bool",
|
682
|
-
"name": "requirePremiumPayment",
|
683
|
-
"type": "bool"
|
684
|
-
},
|
685
|
-
{
|
686
|
-
"internalType": "Timestamp",
|
687
|
-
"name": "activateAt",
|
688
|
-
"type": "uint40"
|
689
|
-
}
|
690
|
-
],
|
691
|
-
"name": "underwrite",
|
692
|
-
"outputs": [],
|
693
|
-
"stateMutability": "nonpayable",
|
694
|
-
"type": "function"
|
695
|
-
},
|
696
467
|
{
|
697
468
|
"inputs": [
|
698
469
|
{
|