@etherisc/gif-next 0.0.2-7f35518-483 → 0.0.2-81ba549-396
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +10 -62
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -52
- 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 +8 -99
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +8 -64
- 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/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +1 -1
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +1 -1
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +484 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +94 -81
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
- 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 +48 -8
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +48 -32
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +36 -6
- 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/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/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +16 -16
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +61 -26
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +26 -18
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +19 -31
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +63 -44
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +27 -27
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1086 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +468 -0
- 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/IRegistry.sol/IRegistry.json +0 -127
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -0
- 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 +31 -169
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +76 -20
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +25 -37
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +12 -12
- 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/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/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 +4 -4
- 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 +9 -9
- 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/Distribution.sol +8 -15
- package/contracts/components/IDistributionComponent.sol +0 -2
- package/contracts/components/Pool.sol +11 -16
- package/contracts/components/Product.sol +28 -41
- package/contracts/instance/IInstance.sol +17 -3
- package/contracts/instance/Instance.sol +4 -4
- package/contracts/instance/InstanceService.sol +18 -3
- package/contracts/instance/InstanceServiceManager.sol +6 -5
- package/contracts/instance/base/ComponentServiceBase.sol +75 -8
- package/contracts/instance/service/DistributionService.sol +8 -19
- package/contracts/instance/service/DistributionServiceManager.sol +6 -5
- package/contracts/instance/service/IProductService.sol +3 -3
- package/contracts/instance/service/PoolService.sol +9 -20
- package/contracts/instance/service/PoolServiceManager.sol +6 -5
- package/contracts/instance/service/ProductService.sol +563 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/IRegistry.sol +4 -19
- package/contracts/registry/IRegistryService.sol +28 -11
- package/contracts/registry/Registry.sol +2 -47
- package/contracts/registry/RegistryService.sol +30 -71
- package/contracts/shared/NftOwnable.sol +2 -4
- package/contracts/shared/Service.sol +1 -0
- package/contracts/types/RoleId.sol +1 -0
- package/package.json +1 -1
@@ -137,6 +137,106 @@
|
|
137
137
|
"stateMutability": "nonpayable",
|
138
138
|
"type": "function"
|
139
139
|
},
|
140
|
+
{
|
141
|
+
"inputs": [
|
142
|
+
{
|
143
|
+
"internalType": "NftId",
|
144
|
+
"name": "policyNftId",
|
145
|
+
"type": "uint96"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"components": [
|
149
|
+
{
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "productNftId",
|
152
|
+
"type": "uint96"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"internalType": "NftId",
|
156
|
+
"name": "bundleNftId",
|
157
|
+
"type": "uint96"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"internalType": "ReferralId",
|
161
|
+
"name": "referralId",
|
162
|
+
"type": "bytes8"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"internalType": "RiskId",
|
166
|
+
"name": "riskId",
|
167
|
+
"type": "bytes8"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"internalType": "uint256",
|
171
|
+
"name": "sumInsuredAmount",
|
172
|
+
"type": "uint256"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"internalType": "uint256",
|
176
|
+
"name": "premiumAmount",
|
177
|
+
"type": "uint256"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"internalType": "uint256",
|
181
|
+
"name": "premiumPaidAmount",
|
182
|
+
"type": "uint256"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"internalType": "uint256",
|
186
|
+
"name": "lifetime",
|
187
|
+
"type": "uint256"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "bytes",
|
191
|
+
"name": "applicationData",
|
192
|
+
"type": "bytes"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"internalType": "bytes",
|
196
|
+
"name": "policyData",
|
197
|
+
"type": "bytes"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"internalType": "uint16",
|
201
|
+
"name": "claimsCount",
|
202
|
+
"type": "uint16"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"internalType": "uint16",
|
206
|
+
"name": "openClaimsCount",
|
207
|
+
"type": "uint16"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"internalType": "uint256",
|
211
|
+
"name": "payoutAmount",
|
212
|
+
"type": "uint256"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"internalType": "Timestamp",
|
216
|
+
"name": "activatedAt",
|
217
|
+
"type": "uint40"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"internalType": "Timestamp",
|
221
|
+
"name": "expiredAt",
|
222
|
+
"type": "uint40"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"internalType": "Timestamp",
|
226
|
+
"name": "closedAt",
|
227
|
+
"type": "uint40"
|
228
|
+
}
|
229
|
+
],
|
230
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
231
|
+
"name": "policy",
|
232
|
+
"type": "tuple"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"name": "createPolicy",
|
236
|
+
"outputs": [],
|
237
|
+
"stateMutability": "nonpayable",
|
238
|
+
"type": "function"
|
239
|
+
},
|
140
240
|
{
|
141
241
|
"inputs": [
|
142
242
|
{
|
@@ -375,6 +475,36 @@
|
|
375
475
|
"stateMutability": "nonpayable",
|
376
476
|
"type": "function"
|
377
477
|
},
|
478
|
+
{
|
479
|
+
"inputs": [
|
480
|
+
{
|
481
|
+
"internalType": "RiskId",
|
482
|
+
"name": "riskId",
|
483
|
+
"type": "bytes8"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"components": [
|
487
|
+
{
|
488
|
+
"internalType": "NftId",
|
489
|
+
"name": "productNftId",
|
490
|
+
"type": "uint96"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"internalType": "bytes",
|
494
|
+
"name": "data",
|
495
|
+
"type": "bytes"
|
496
|
+
}
|
497
|
+
],
|
498
|
+
"internalType": "struct IRisk.RiskInfo",
|
499
|
+
"name": "risk",
|
500
|
+
"type": "tuple"
|
501
|
+
}
|
502
|
+
],
|
503
|
+
"name": "createRisk",
|
504
|
+
"outputs": [],
|
505
|
+
"stateMutability": "nonpayable",
|
506
|
+
"type": "function"
|
507
|
+
},
|
378
508
|
{
|
379
509
|
"inputs": [],
|
380
510
|
"name": "getComponentOwnerService",
|
@@ -427,6 +557,19 @@
|
|
427
557
|
"stateMutability": "view",
|
428
558
|
"type": "function"
|
429
559
|
},
|
560
|
+
{
|
561
|
+
"inputs": [],
|
562
|
+
"name": "getProductService",
|
563
|
+
"outputs": [
|
564
|
+
{
|
565
|
+
"internalType": "contract IProductService",
|
566
|
+
"name": "",
|
567
|
+
"type": "address"
|
568
|
+
}
|
569
|
+
],
|
570
|
+
"stateMutability": "view",
|
571
|
+
"type": "function"
|
572
|
+
},
|
430
573
|
{
|
431
574
|
"inputs": [
|
432
575
|
{
|
@@ -626,6 +769,129 @@
|
|
626
769
|
"stateMutability": "nonpayable",
|
627
770
|
"type": "function"
|
628
771
|
},
|
772
|
+
{
|
773
|
+
"inputs": [
|
774
|
+
{
|
775
|
+
"internalType": "NftId",
|
776
|
+
"name": "policyNftId",
|
777
|
+
"type": "uint96"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"components": [
|
781
|
+
{
|
782
|
+
"internalType": "NftId",
|
783
|
+
"name": "productNftId",
|
784
|
+
"type": "uint96"
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"internalType": "NftId",
|
788
|
+
"name": "bundleNftId",
|
789
|
+
"type": "uint96"
|
790
|
+
},
|
791
|
+
{
|
792
|
+
"internalType": "ReferralId",
|
793
|
+
"name": "referralId",
|
794
|
+
"type": "bytes8"
|
795
|
+
},
|
796
|
+
{
|
797
|
+
"internalType": "RiskId",
|
798
|
+
"name": "riskId",
|
799
|
+
"type": "bytes8"
|
800
|
+
},
|
801
|
+
{
|
802
|
+
"internalType": "uint256",
|
803
|
+
"name": "sumInsuredAmount",
|
804
|
+
"type": "uint256"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"internalType": "uint256",
|
808
|
+
"name": "premiumAmount",
|
809
|
+
"type": "uint256"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"internalType": "uint256",
|
813
|
+
"name": "premiumPaidAmount",
|
814
|
+
"type": "uint256"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"internalType": "uint256",
|
818
|
+
"name": "lifetime",
|
819
|
+
"type": "uint256"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"internalType": "bytes",
|
823
|
+
"name": "applicationData",
|
824
|
+
"type": "bytes"
|
825
|
+
},
|
826
|
+
{
|
827
|
+
"internalType": "bytes",
|
828
|
+
"name": "policyData",
|
829
|
+
"type": "bytes"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"internalType": "uint16",
|
833
|
+
"name": "claimsCount",
|
834
|
+
"type": "uint16"
|
835
|
+
},
|
836
|
+
{
|
837
|
+
"internalType": "uint16",
|
838
|
+
"name": "openClaimsCount",
|
839
|
+
"type": "uint16"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"internalType": "uint256",
|
843
|
+
"name": "payoutAmount",
|
844
|
+
"type": "uint256"
|
845
|
+
},
|
846
|
+
{
|
847
|
+
"internalType": "Timestamp",
|
848
|
+
"name": "activatedAt",
|
849
|
+
"type": "uint40"
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"internalType": "Timestamp",
|
853
|
+
"name": "expiredAt",
|
854
|
+
"type": "uint40"
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"internalType": "Timestamp",
|
858
|
+
"name": "closedAt",
|
859
|
+
"type": "uint40"
|
860
|
+
}
|
861
|
+
],
|
862
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
863
|
+
"name": "policy",
|
864
|
+
"type": "tuple"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"internalType": "StateId",
|
868
|
+
"name": "newState",
|
869
|
+
"type": "uint8"
|
870
|
+
}
|
871
|
+
],
|
872
|
+
"name": "updatePolicy",
|
873
|
+
"outputs": [],
|
874
|
+
"stateMutability": "nonpayable",
|
875
|
+
"type": "function"
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"inputs": [
|
879
|
+
{
|
880
|
+
"internalType": "NftId",
|
881
|
+
"name": "policyNftId",
|
882
|
+
"type": "uint96"
|
883
|
+
},
|
884
|
+
{
|
885
|
+
"internalType": "StateId",
|
886
|
+
"name": "newState",
|
887
|
+
"type": "uint8"
|
888
|
+
}
|
889
|
+
],
|
890
|
+
"name": "updatePolicyState",
|
891
|
+
"outputs": [],
|
892
|
+
"stateMutability": "nonpayable",
|
893
|
+
"type": "function"
|
894
|
+
},
|
629
895
|
{
|
630
896
|
"inputs": [
|
631
897
|
{
|
@@ -744,6 +1010,224 @@
|
|
744
1010
|
"outputs": [],
|
745
1011
|
"stateMutability": "nonpayable",
|
746
1012
|
"type": "function"
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
"inputs": [
|
1016
|
+
{
|
1017
|
+
"internalType": "NftId",
|
1018
|
+
"name": "productNftId",
|
1019
|
+
"type": "uint96"
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"components": [
|
1023
|
+
{
|
1024
|
+
"internalType": "contract IERC20Metadata",
|
1025
|
+
"name": "token",
|
1026
|
+
"type": "address"
|
1027
|
+
},
|
1028
|
+
{
|
1029
|
+
"internalType": "contract TokenHandler",
|
1030
|
+
"name": "tokenHandler",
|
1031
|
+
"type": "address"
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
"internalType": "NftId",
|
1035
|
+
"name": "distributionNftId",
|
1036
|
+
"type": "uint96"
|
1037
|
+
},
|
1038
|
+
{
|
1039
|
+
"internalType": "NftId",
|
1040
|
+
"name": "poolNftId",
|
1041
|
+
"type": "uint96"
|
1042
|
+
},
|
1043
|
+
{
|
1044
|
+
"components": [
|
1045
|
+
{
|
1046
|
+
"internalType": "UFixed",
|
1047
|
+
"name": "fractionalFee",
|
1048
|
+
"type": "uint256"
|
1049
|
+
},
|
1050
|
+
{
|
1051
|
+
"internalType": "uint256",
|
1052
|
+
"name": "fixedFee",
|
1053
|
+
"type": "uint256"
|
1054
|
+
}
|
1055
|
+
],
|
1056
|
+
"internalType": "struct Fee",
|
1057
|
+
"name": "distributionFee",
|
1058
|
+
"type": "tuple"
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"components": [
|
1062
|
+
{
|
1063
|
+
"internalType": "UFixed",
|
1064
|
+
"name": "fractionalFee",
|
1065
|
+
"type": "uint256"
|
1066
|
+
},
|
1067
|
+
{
|
1068
|
+
"internalType": "uint256",
|
1069
|
+
"name": "fixedFee",
|
1070
|
+
"type": "uint256"
|
1071
|
+
}
|
1072
|
+
],
|
1073
|
+
"internalType": "struct Fee",
|
1074
|
+
"name": "productFee",
|
1075
|
+
"type": "tuple"
|
1076
|
+
},
|
1077
|
+
{
|
1078
|
+
"components": [
|
1079
|
+
{
|
1080
|
+
"internalType": "UFixed",
|
1081
|
+
"name": "fractionalFee",
|
1082
|
+
"type": "uint256"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"internalType": "uint256",
|
1086
|
+
"name": "fixedFee",
|
1087
|
+
"type": "uint256"
|
1088
|
+
}
|
1089
|
+
],
|
1090
|
+
"internalType": "struct Fee",
|
1091
|
+
"name": "processingFee",
|
1092
|
+
"type": "tuple"
|
1093
|
+
},
|
1094
|
+
{
|
1095
|
+
"components": [
|
1096
|
+
{
|
1097
|
+
"internalType": "UFixed",
|
1098
|
+
"name": "fractionalFee",
|
1099
|
+
"type": "uint256"
|
1100
|
+
},
|
1101
|
+
{
|
1102
|
+
"internalType": "uint256",
|
1103
|
+
"name": "fixedFee",
|
1104
|
+
"type": "uint256"
|
1105
|
+
}
|
1106
|
+
],
|
1107
|
+
"internalType": "struct Fee",
|
1108
|
+
"name": "poolFee",
|
1109
|
+
"type": "tuple"
|
1110
|
+
},
|
1111
|
+
{
|
1112
|
+
"components": [
|
1113
|
+
{
|
1114
|
+
"internalType": "UFixed",
|
1115
|
+
"name": "fractionalFee",
|
1116
|
+
"type": "uint256"
|
1117
|
+
},
|
1118
|
+
{
|
1119
|
+
"internalType": "uint256",
|
1120
|
+
"name": "fixedFee",
|
1121
|
+
"type": "uint256"
|
1122
|
+
}
|
1123
|
+
],
|
1124
|
+
"internalType": "struct Fee",
|
1125
|
+
"name": "stakingFee",
|
1126
|
+
"type": "tuple"
|
1127
|
+
},
|
1128
|
+
{
|
1129
|
+
"components": [
|
1130
|
+
{
|
1131
|
+
"internalType": "UFixed",
|
1132
|
+
"name": "fractionalFee",
|
1133
|
+
"type": "uint256"
|
1134
|
+
},
|
1135
|
+
{
|
1136
|
+
"internalType": "uint256",
|
1137
|
+
"name": "fixedFee",
|
1138
|
+
"type": "uint256"
|
1139
|
+
}
|
1140
|
+
],
|
1141
|
+
"internalType": "struct Fee",
|
1142
|
+
"name": "performanceFee",
|
1143
|
+
"type": "tuple"
|
1144
|
+
}
|
1145
|
+
],
|
1146
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1147
|
+
"name": "setup",
|
1148
|
+
"type": "tuple"
|
1149
|
+
},
|
1150
|
+
{
|
1151
|
+
"internalType": "StateId",
|
1152
|
+
"name": "newState",
|
1153
|
+
"type": "uint8"
|
1154
|
+
}
|
1155
|
+
],
|
1156
|
+
"name": "updateProductSetup",
|
1157
|
+
"outputs": [],
|
1158
|
+
"stateMutability": "nonpayable",
|
1159
|
+
"type": "function"
|
1160
|
+
},
|
1161
|
+
{
|
1162
|
+
"inputs": [
|
1163
|
+
{
|
1164
|
+
"internalType": "NftId",
|
1165
|
+
"name": "productNftId",
|
1166
|
+
"type": "uint96"
|
1167
|
+
},
|
1168
|
+
{
|
1169
|
+
"internalType": "StateId",
|
1170
|
+
"name": "newState",
|
1171
|
+
"type": "uint8"
|
1172
|
+
}
|
1173
|
+
],
|
1174
|
+
"name": "updateProductSetupState",
|
1175
|
+
"outputs": [],
|
1176
|
+
"stateMutability": "nonpayable",
|
1177
|
+
"type": "function"
|
1178
|
+
},
|
1179
|
+
{
|
1180
|
+
"inputs": [
|
1181
|
+
{
|
1182
|
+
"internalType": "RiskId",
|
1183
|
+
"name": "riskId",
|
1184
|
+
"type": "bytes8"
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
"components": [
|
1188
|
+
{
|
1189
|
+
"internalType": "NftId",
|
1190
|
+
"name": "productNftId",
|
1191
|
+
"type": "uint96"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"internalType": "bytes",
|
1195
|
+
"name": "data",
|
1196
|
+
"type": "bytes"
|
1197
|
+
}
|
1198
|
+
],
|
1199
|
+
"internalType": "struct IRisk.RiskInfo",
|
1200
|
+
"name": "risk",
|
1201
|
+
"type": "tuple"
|
1202
|
+
},
|
1203
|
+
{
|
1204
|
+
"internalType": "StateId",
|
1205
|
+
"name": "newState",
|
1206
|
+
"type": "uint8"
|
1207
|
+
}
|
1208
|
+
],
|
1209
|
+
"name": "updateRisk",
|
1210
|
+
"outputs": [],
|
1211
|
+
"stateMutability": "nonpayable",
|
1212
|
+
"type": "function"
|
1213
|
+
},
|
1214
|
+
{
|
1215
|
+
"inputs": [
|
1216
|
+
{
|
1217
|
+
"internalType": "RiskId",
|
1218
|
+
"name": "riskId",
|
1219
|
+
"type": "bytes8"
|
1220
|
+
},
|
1221
|
+
{
|
1222
|
+
"internalType": "StateId",
|
1223
|
+
"name": "newState",
|
1224
|
+
"type": "uint8"
|
1225
|
+
}
|
1226
|
+
],
|
1227
|
+
"name": "updateRiskState",
|
1228
|
+
"outputs": [],
|
1229
|
+
"stateMutability": "nonpayable",
|
1230
|
+
"type": "function"
|
747
1231
|
}
|
748
1232
|
],
|
749
1233
|
"bytecode": "0x",
|