@etherisc/gif-next 0.0.2-e510b92-393 → 0.0.2-e545d2c-624
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +29 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +33 -102
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +29 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +33 -130
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +33 -113
- 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/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 +45 -32
- 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 +116 -0
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +99 -14
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +79 -665
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +244 -114
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +2 -2
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +166 -173
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +26 -78
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +15 -2
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +24 -32
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.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/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 +59 -16
- 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 +1031 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +39 -52
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +49 -72
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +13 -37
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +13 -13
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -13
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +12 -241
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -241
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1156 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +492 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +32 -354
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +13 -57
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +40 -410
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +13 -81
- 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 +132 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -65
- 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 +145 -227
- 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 +30 -128
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +38 -104
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +530 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +14 -27
- 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/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +13 -13
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +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/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +13 -13
- 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 +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 +31 -31
- 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/BaseComponent.sol +35 -8
- package/contracts/components/Distribution.sol +2 -1
- package/contracts/components/IBaseComponent.sol +3 -0
- package/contracts/components/Pool.sol +11 -6
- package/contracts/components/Product.sol +22 -10
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
- package/contracts/instance/IInstance.sol +7 -1
- package/contracts/instance/IInstanceBase.sol +26 -0
- package/contracts/instance/IInstanceService.sol +10 -2
- package/contracts/instance/Instance.sol +32 -214
- package/contracts/instance/InstanceAccessManager.sol +93 -78
- package/contracts/instance/InstanceBase.sol +41 -0
- package/contracts/instance/InstanceService.sol +228 -115
- package/contracts/instance/InstanceServiceManager.sol +5 -8
- package/contracts/instance/ObjectManager.sol +7 -1
- package/contracts/instance/base/ComponentServiceBase.sol +29 -87
- package/contracts/instance/module/IAccess.sol +27 -17
- package/contracts/instance/service/BundleService.sol +294 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ComponentOwnerService.sol +4 -6
- package/contracts/instance/service/DistributionService.sol +53 -21
- 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 +539 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +65 -207
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +100 -457
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +26 -16
- package/contracts/registry/IRegistryService.sol +13 -5
- package/contracts/registry/Registry.sol +149 -201
- package/contracts/registry/RegistryAccessManager.sol +210 -0
- package/contracts/registry/RegistryService.sol +50 -88
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +342 -0
- package/contracts/registry/TokenRegistry.sol +5 -6
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/ProxyManager.sol +1 -1
- package/contracts/shared/Service.sol +10 -7
- package/contracts/test/TestService.sol +3 -2
- package/contracts/types/RoleId.sol +10 -10
- package/package.json +1 -1
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -101
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/contracts/instance/AccessManagedSimple.sol +0 -115
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
@@ -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
|
{
|
@@ -251,19 +192,6 @@
|
|
251
192
|
"stateMutability": "view",
|
252
193
|
"type": "function"
|
253
194
|
},
|
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
195
|
{
|
268
196
|
"inputs": [],
|
269
197
|
"name": "getNftId",
|
@@ -446,43 +374,19 @@
|
|
446
374
|
{
|
447
375
|
"inputs": [
|
448
376
|
{
|
449
|
-
"internalType": "
|
450
|
-
"name": "
|
451
|
-
"type": "
|
377
|
+
"internalType": "address",
|
378
|
+
"name": "poolAddress",
|
379
|
+
"type": "address"
|
452
380
|
}
|
453
381
|
],
|
454
|
-
"name": "
|
455
|
-
"outputs": [
|
456
|
-
"stateMutability": "nonpayable",
|
457
|
-
"type": "function"
|
458
|
-
},
|
459
|
-
{
|
460
|
-
"inputs": [
|
382
|
+
"name": "register",
|
383
|
+
"outputs": [
|
461
384
|
{
|
462
385
|
"internalType": "NftId",
|
463
|
-
"name": "
|
386
|
+
"name": "",
|
464
387
|
"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
388
|
}
|
483
389
|
],
|
484
|
-
"name": "setBundleFee",
|
485
|
-
"outputs": [],
|
486
390
|
"stateMutability": "nonpayable",
|
487
391
|
"type": "function"
|
488
392
|
},
|
@@ -564,139 +468,6 @@
|
|
564
468
|
"stateMutability": "view",
|
565
469
|
"type": "function"
|
566
470
|
},
|
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
471
|
{
|
701
472
|
"inputs": [
|
702
473
|
{
|
@@ -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
112
|
}
|
172
113
|
],
|
173
|
-
"name": "
|
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
|
-
}
|
253
|
-
],
|
254
|
-
"name": "collectPremium",
|
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
|
{
|
@@ -404,19 +210,6 @@
|
|
404
210
|
"stateMutability": "view",
|
405
211
|
"type": "function"
|
406
212
|
},
|
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
213
|
{
|
421
214
|
"inputs": [],
|
422
215
|
"name": "getNftId",
|
@@ -598,14 +391,20 @@
|
|
598
391
|
},
|
599
392
|
{
|
600
393
|
"inputs": [
|
394
|
+
{
|
395
|
+
"internalType": "address",
|
396
|
+
"name": "productAddress",
|
397
|
+
"type": "address"
|
398
|
+
}
|
399
|
+
],
|
400
|
+
"name": "register",
|
401
|
+
"outputs": [
|
601
402
|
{
|
602
403
|
"internalType": "NftId",
|
603
|
-
"name": "
|
404
|
+
"name": "",
|
604
405
|
"type": "uint96"
|
605
406
|
}
|
606
407
|
],
|
607
|
-
"name": "revoke",
|
608
|
-
"outputs": [],
|
609
408
|
"stateMutability": "nonpayable",
|
610
409
|
"type": "function"
|
611
410
|
},
|
@@ -670,29 +469,6 @@
|
|
670
469
|
"stateMutability": "view",
|
671
470
|
"type": "function"
|
672
471
|
},
|
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
472
|
{
|
697
473
|
"inputs": [
|
698
474
|
{
|