@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f72939c-683
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +38 -11
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.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 +72 -4
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +46 -3
- 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/Dummy.sol/LifeCycleModule.json +2 -2
- 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/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.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 +71 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.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/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
- 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/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- 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/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.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 +7 -1
- package/contracts/components/Pool.sol +20 -3
- package/contracts/components/Product.sol +69 -5
- package/contracts/instance/IInstance.sol +3 -4
- package/contracts/instance/Instance.sol +7 -4
- package/contracts/instance/base/IInstanceBase.sol +5 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +6 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +18 -17
- package/contracts/instance/module/bundle/BundleModule.sol +10 -11
- package/contracts/instance/module/bundle/IBundle.sol +4 -11
- package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
- package/contracts/instance/module/component/ComponentModule.sol +39 -53
- package/contracts/instance/module/component/IComponent.sol +6 -30
- package/contracts/instance/module/policy/IPolicy.sol +11 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -19
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +19 -2
- package/contracts/instance/module/risk/RiskModule.sol +64 -2
- package/contracts/instance/module/treasury/ITreasury.sol +35 -42
- package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
- package/contracts/instance/service/ComponentOwnerService.sol +19 -34
- package/contracts/instance/service/IProductService.sol +21 -1
- package/contracts/instance/service/PoolService.sol +10 -4
- package/contracts/instance/service/ProductService.sol +120 -68
- package/contracts/registry/Registry.sol +2 -2
- package/contracts/test/TestPool.sol +4 -2
- package/contracts/test/TestProduct.sol +25 -3
- package/contracts/types/ObjectType.sol +20 -8
- package/contracts/types/RiskId.sol +43 -0
- package/package.json +1 -1
@@ -200,22 +200,17 @@
|
|
200
200
|
"inputs": [
|
201
201
|
{
|
202
202
|
"internalType": "NftId",
|
203
|
-
"name": "
|
203
|
+
"name": "bundleNftId",
|
204
204
|
"type": "uint96"
|
205
205
|
},
|
206
206
|
{
|
207
207
|
"internalType": "NftId",
|
208
|
-
"name": "
|
208
|
+
"name": "poolNftId",
|
209
209
|
"type": "uint96"
|
210
210
|
},
|
211
211
|
{
|
212
212
|
"internalType": "uint256",
|
213
|
-
"name": "
|
214
|
-
"type": "uint256"
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"internalType": "uint256",
|
218
|
-
"name": "premiumAmount",
|
213
|
+
"name": "amount",
|
219
214
|
"type": "uint256"
|
220
215
|
},
|
221
216
|
{
|
@@ -224,12 +219,12 @@
|
|
224
219
|
"type": "uint256"
|
225
220
|
},
|
226
221
|
{
|
227
|
-
"internalType": "
|
228
|
-
"name": "
|
229
|
-
"type": "
|
222
|
+
"internalType": "bytes",
|
223
|
+
"name": "filter",
|
224
|
+
"type": "bytes"
|
230
225
|
}
|
231
226
|
],
|
232
|
-
"name": "
|
227
|
+
"name": "createBundleInfo",
|
233
228
|
"outputs": [],
|
234
229
|
"stateMutability": "nonpayable",
|
235
230
|
"type": "function"
|
@@ -238,17 +233,27 @@
|
|
238
233
|
"inputs": [
|
239
234
|
{
|
240
235
|
"internalType": "NftId",
|
241
|
-
"name": "
|
236
|
+
"name": "policyNftId",
|
242
237
|
"type": "uint96"
|
243
238
|
},
|
244
239
|
{
|
245
240
|
"internalType": "NftId",
|
246
|
-
"name": "
|
241
|
+
"name": "productNftId",
|
247
242
|
"type": "uint96"
|
248
243
|
},
|
244
|
+
{
|
245
|
+
"internalType": "RiskId",
|
246
|
+
"name": "riskId",
|
247
|
+
"type": "bytes8"
|
248
|
+
},
|
249
249
|
{
|
250
250
|
"internalType": "uint256",
|
251
|
-
"name": "
|
251
|
+
"name": "sumInsuredAmount",
|
252
|
+
"type": "uint256"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"internalType": "uint256",
|
256
|
+
"name": "premiumAmount",
|
252
257
|
"type": "uint256"
|
253
258
|
},
|
254
259
|
{
|
@@ -256,13 +261,36 @@
|
|
256
261
|
"name": "lifetime",
|
257
262
|
"type": "uint256"
|
258
263
|
},
|
264
|
+
{
|
265
|
+
"internalType": "NftId",
|
266
|
+
"name": "bundleNftId",
|
267
|
+
"type": "uint96"
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"name": "createPolicyInfo",
|
271
|
+
"outputs": [],
|
272
|
+
"stateMutability": "nonpayable",
|
273
|
+
"type": "function"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"inputs": [
|
277
|
+
{
|
278
|
+
"internalType": "RiskId",
|
279
|
+
"name": "riskId",
|
280
|
+
"type": "bytes8"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"internalType": "NftId",
|
284
|
+
"name": "productNftId",
|
285
|
+
"type": "uint96"
|
286
|
+
},
|
259
287
|
{
|
260
288
|
"internalType": "bytes",
|
261
|
-
"name": "
|
289
|
+
"name": "data",
|
262
290
|
"type": "bytes"
|
263
291
|
}
|
264
292
|
],
|
265
|
-
"name": "
|
293
|
+
"name": "createRisk",
|
266
294
|
"outputs": [],
|
267
295
|
"stateMutability": "nonpayable",
|
268
296
|
"type": "function"
|
@@ -309,7 +337,7 @@
|
|
309
337
|
"inputs": [
|
310
338
|
{
|
311
339
|
"internalType": "NftId",
|
312
|
-
"name": "
|
340
|
+
"name": "nftId",
|
313
341
|
"type": "uint96"
|
314
342
|
}
|
315
343
|
],
|
@@ -317,11 +345,6 @@
|
|
317
345
|
"outputs": [
|
318
346
|
{
|
319
347
|
"components": [
|
320
|
-
{
|
321
|
-
"internalType": "NftId",
|
322
|
-
"name": "nftId",
|
323
|
-
"type": "uint96"
|
324
|
-
},
|
325
348
|
{
|
326
349
|
"internalType": "NftId",
|
327
350
|
"name": "poolNftId",
|
@@ -390,6 +413,25 @@
|
|
390
413
|
"stateMutability": "view",
|
391
414
|
"type": "function"
|
392
415
|
},
|
416
|
+
{
|
417
|
+
"inputs": [
|
418
|
+
{
|
419
|
+
"internalType": "NftId",
|
420
|
+
"name": "nftId",
|
421
|
+
"type": "uint96"
|
422
|
+
}
|
423
|
+
],
|
424
|
+
"name": "getBundleState",
|
425
|
+
"outputs": [
|
426
|
+
{
|
427
|
+
"internalType": "StateId",
|
428
|
+
"name": "state",
|
429
|
+
"type": "uint8"
|
430
|
+
}
|
431
|
+
],
|
432
|
+
"stateMutability": "view",
|
433
|
+
"type": "function"
|
434
|
+
},
|
393
435
|
{
|
394
436
|
"inputs": [],
|
395
437
|
"name": "getComponentCount",
|
@@ -422,6 +464,19 @@
|
|
422
464
|
"stateMutability": "view",
|
423
465
|
"type": "function"
|
424
466
|
},
|
467
|
+
{
|
468
|
+
"inputs": [],
|
469
|
+
"name": "getComponentOwnerService",
|
470
|
+
"outputs": [
|
471
|
+
{
|
472
|
+
"internalType": "contract IComponentOwnerService",
|
473
|
+
"name": "",
|
474
|
+
"type": "address"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"stateMutability": "view",
|
478
|
+
"type": "function"
|
479
|
+
},
|
425
480
|
{
|
426
481
|
"inputs": [
|
427
482
|
{
|
@@ -430,41 +485,49 @@
|
|
430
485
|
"type": "uint96"
|
431
486
|
}
|
432
487
|
],
|
433
|
-
"name": "
|
488
|
+
"name": "getComponentState",
|
434
489
|
"outputs": [
|
435
490
|
{
|
436
|
-
"
|
437
|
-
|
438
|
-
|
439
|
-
"name": "nftId",
|
440
|
-
"type": "uint96"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"internalType": "StateId",
|
444
|
-
"name": "state",
|
445
|
-
"type": "uint8"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "contract IERC20Metadata",
|
449
|
-
"name": "token",
|
450
|
-
"type": "address"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"internalType": "struct IComponent.ComponentInfo",
|
454
|
-
"name": "info",
|
455
|
-
"type": "tuple"
|
491
|
+
"internalType": "StateId",
|
492
|
+
"name": "state",
|
493
|
+
"type": "uint8"
|
456
494
|
}
|
457
495
|
],
|
458
496
|
"stateMutability": "view",
|
459
497
|
"type": "function"
|
460
498
|
},
|
461
499
|
{
|
462
|
-
"inputs": [
|
463
|
-
|
500
|
+
"inputs": [
|
501
|
+
{
|
502
|
+
"internalType": "NftId",
|
503
|
+
"name": "nftId",
|
504
|
+
"type": "uint96"
|
505
|
+
}
|
506
|
+
],
|
507
|
+
"name": "getComponentToken",
|
464
508
|
"outputs": [
|
465
509
|
{
|
466
|
-
"internalType": "contract
|
467
|
-
"name": "",
|
510
|
+
"internalType": "contract IERC20Metadata",
|
511
|
+
"name": "token",
|
512
|
+
"type": "address"
|
513
|
+
}
|
514
|
+
],
|
515
|
+
"stateMutability": "view",
|
516
|
+
"type": "function"
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"inputs": [
|
520
|
+
{
|
521
|
+
"internalType": "NftId",
|
522
|
+
"name": "nftId",
|
523
|
+
"type": "uint96"
|
524
|
+
}
|
525
|
+
],
|
526
|
+
"name": "getComponentWallet",
|
527
|
+
"outputs": [
|
528
|
+
{
|
529
|
+
"internalType": "address",
|
530
|
+
"name": "wallet",
|
468
531
|
"type": "address"
|
469
532
|
}
|
470
533
|
],
|
@@ -584,11 +647,6 @@
|
|
584
647
|
"outputs": [
|
585
648
|
{
|
586
649
|
"components": [
|
587
|
-
{
|
588
|
-
"internalType": "NftId",
|
589
|
-
"name": "nftId",
|
590
|
-
"type": "uint96"
|
591
|
-
},
|
592
650
|
{
|
593
651
|
"internalType": "NftId",
|
594
652
|
"name": "productNftId",
|
@@ -605,9 +663,9 @@
|
|
605
663
|
"type": "address"
|
606
664
|
},
|
607
665
|
{
|
608
|
-
"internalType": "
|
609
|
-
"name": "
|
610
|
-
"type": "
|
666
|
+
"internalType": "RiskId",
|
667
|
+
"name": "riskId",
|
668
|
+
"type": "bytes8"
|
611
669
|
},
|
612
670
|
{
|
613
671
|
"internalType": "uint256",
|
@@ -631,13 +689,13 @@
|
|
631
689
|
},
|
632
690
|
{
|
633
691
|
"internalType": "bytes",
|
634
|
-
"name": "
|
692
|
+
"name": "applicationData",
|
635
693
|
"type": "bytes"
|
636
694
|
},
|
637
695
|
{
|
638
|
-
"internalType": "
|
639
|
-
"name": "
|
640
|
-
"type": "
|
696
|
+
"internalType": "bytes",
|
697
|
+
"name": "policyData",
|
698
|
+
"type": "bytes"
|
641
699
|
},
|
642
700
|
{
|
643
701
|
"internalType": "Timestamp",
|
@@ -653,11 +711,6 @@
|
|
653
711
|
"internalType": "Timestamp",
|
654
712
|
"name": "closedAt",
|
655
713
|
"type": "uint40"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"internalType": "Blocknumber",
|
659
|
-
"name": "updatedIn",
|
660
|
-
"type": "uint32"
|
661
714
|
}
|
662
715
|
],
|
663
716
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -668,6 +721,25 @@
|
|
668
721
|
"stateMutability": "view",
|
669
722
|
"type": "function"
|
670
723
|
},
|
724
|
+
{
|
725
|
+
"inputs": [
|
726
|
+
{
|
727
|
+
"internalType": "NftId",
|
728
|
+
"name": "nftId",
|
729
|
+
"type": "uint96"
|
730
|
+
}
|
731
|
+
],
|
732
|
+
"name": "getPolicyState",
|
733
|
+
"outputs": [
|
734
|
+
{
|
735
|
+
"internalType": "StateId",
|
736
|
+
"name": "state",
|
737
|
+
"type": "uint8"
|
738
|
+
}
|
739
|
+
],
|
740
|
+
"stateMutability": "view",
|
741
|
+
"type": "function"
|
742
|
+
},
|
671
743
|
{
|
672
744
|
"inputs": [
|
673
745
|
{
|
@@ -680,11 +752,6 @@
|
|
680
752
|
"outputs": [
|
681
753
|
{
|
682
754
|
"components": [
|
683
|
-
{
|
684
|
-
"internalType": "NftId",
|
685
|
-
"name": "nftId",
|
686
|
-
"type": "uint96"
|
687
|
-
},
|
688
755
|
{
|
689
756
|
"internalType": "bool",
|
690
757
|
"name": "isVerifying",
|
@@ -721,62 +788,16 @@
|
|
721
788
|
"inputs": [
|
722
789
|
{
|
723
790
|
"internalType": "NftId",
|
724
|
-
"name": "
|
791
|
+
"name": "componentNftId",
|
725
792
|
"type": "uint96"
|
726
793
|
}
|
727
794
|
],
|
728
|
-
"name": "
|
795
|
+
"name": "getProductNftId",
|
729
796
|
"outputs": [
|
730
797
|
{
|
731
|
-
"
|
732
|
-
|
733
|
-
|
734
|
-
"name": "poolNftId",
|
735
|
-
"type": "uint96"
|
736
|
-
},
|
737
|
-
{
|
738
|
-
"internalType": "address",
|
739
|
-
"name": "wallet",
|
740
|
-
"type": "address"
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"components": [
|
744
|
-
{
|
745
|
-
"internalType": "UFixed",
|
746
|
-
"name": "fractionalFee",
|
747
|
-
"type": "uint256"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"internalType": "uint256",
|
751
|
-
"name": "fixedFee",
|
752
|
-
"type": "uint256"
|
753
|
-
}
|
754
|
-
],
|
755
|
-
"internalType": "struct Fee",
|
756
|
-
"name": "stakingFee",
|
757
|
-
"type": "tuple"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"components": [
|
761
|
-
{
|
762
|
-
"internalType": "UFixed",
|
763
|
-
"name": "fractionalFee",
|
764
|
-
"type": "uint256"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"internalType": "uint256",
|
768
|
-
"name": "fixedFee",
|
769
|
-
"type": "uint256"
|
770
|
-
}
|
771
|
-
],
|
772
|
-
"internalType": "struct Fee",
|
773
|
-
"name": "performanceFee",
|
774
|
-
"type": "tuple"
|
775
|
-
}
|
776
|
-
],
|
777
|
-
"internalType": "struct ITreasury.PoolSetup",
|
778
|
-
"name": "setup",
|
779
|
-
"type": "tuple"
|
798
|
+
"internalType": "NftId",
|
799
|
+
"name": "productNftId",
|
800
|
+
"type": "uint96"
|
780
801
|
}
|
781
802
|
],
|
782
803
|
"stateMutability": "view",
|
@@ -795,15 +816,28 @@
|
|
795
816
|
"stateMutability": "view",
|
796
817
|
"type": "function"
|
797
818
|
},
|
819
|
+
{
|
820
|
+
"inputs": [],
|
821
|
+
"name": "getRegistry",
|
822
|
+
"outputs": [
|
823
|
+
{
|
824
|
+
"internalType": "contract IRegistry",
|
825
|
+
"name": "registry",
|
826
|
+
"type": "address"
|
827
|
+
}
|
828
|
+
],
|
829
|
+
"stateMutability": "view",
|
830
|
+
"type": "function"
|
831
|
+
},
|
798
832
|
{
|
799
833
|
"inputs": [
|
800
834
|
{
|
801
|
-
"internalType": "
|
802
|
-
"name": "
|
803
|
-
"type": "
|
835
|
+
"internalType": "RiskId",
|
836
|
+
"name": "riskId",
|
837
|
+
"type": "bytes8"
|
804
838
|
}
|
805
839
|
],
|
806
|
-
"name": "
|
840
|
+
"name": "getRiskInfo",
|
807
841
|
"outputs": [
|
808
842
|
{
|
809
843
|
"components": [
|
@@ -813,62 +847,13 @@
|
|
813
847
|
"type": "uint96"
|
814
848
|
},
|
815
849
|
{
|
816
|
-
"internalType": "
|
817
|
-
"name": "
|
818
|
-
"type": "
|
819
|
-
},
|
820
|
-
{
|
821
|
-
"internalType": "NftId",
|
822
|
-
"name": "poolNftId",
|
823
|
-
"type": "uint96"
|
824
|
-
},
|
825
|
-
{
|
826
|
-
"internalType": "contract IERC20Metadata",
|
827
|
-
"name": "token",
|
828
|
-
"type": "address"
|
829
|
-
},
|
830
|
-
{
|
831
|
-
"internalType": "address",
|
832
|
-
"name": "wallet",
|
833
|
-
"type": "address"
|
834
|
-
},
|
835
|
-
{
|
836
|
-
"components": [
|
837
|
-
{
|
838
|
-
"internalType": "UFixed",
|
839
|
-
"name": "fractionalFee",
|
840
|
-
"type": "uint256"
|
841
|
-
},
|
842
|
-
{
|
843
|
-
"internalType": "uint256",
|
844
|
-
"name": "fixedFee",
|
845
|
-
"type": "uint256"
|
846
|
-
}
|
847
|
-
],
|
848
|
-
"internalType": "struct Fee",
|
849
|
-
"name": "policyFee",
|
850
|
-
"type": "tuple"
|
851
|
-
},
|
852
|
-
{
|
853
|
-
"components": [
|
854
|
-
{
|
855
|
-
"internalType": "UFixed",
|
856
|
-
"name": "fractionalFee",
|
857
|
-
"type": "uint256"
|
858
|
-
},
|
859
|
-
{
|
860
|
-
"internalType": "uint256",
|
861
|
-
"name": "fixedFee",
|
862
|
-
"type": "uint256"
|
863
|
-
}
|
864
|
-
],
|
865
|
-
"internalType": "struct Fee",
|
866
|
-
"name": "processingFee",
|
867
|
-
"type": "tuple"
|
850
|
+
"internalType": "bytes",
|
851
|
+
"name": "data",
|
852
|
+
"type": "bytes"
|
868
853
|
}
|
869
854
|
],
|
870
|
-
"internalType": "struct
|
871
|
-
"name": "
|
855
|
+
"internalType": "struct IRisk.RiskInfo",
|
856
|
+
"name": "info",
|
872
857
|
"type": "tuple"
|
873
858
|
}
|
874
859
|
],
|
@@ -876,13 +861,19 @@
|
|
876
861
|
"type": "function"
|
877
862
|
},
|
878
863
|
{
|
879
|
-
"inputs": [
|
880
|
-
|
864
|
+
"inputs": [
|
865
|
+
{
|
866
|
+
"internalType": "RiskId",
|
867
|
+
"name": "riskId",
|
868
|
+
"type": "bytes8"
|
869
|
+
}
|
870
|
+
],
|
871
|
+
"name": "getRiskState",
|
881
872
|
"outputs": [
|
882
873
|
{
|
883
|
-
"internalType": "
|
884
|
-
"name": "
|
885
|
-
"type": "
|
874
|
+
"internalType": "StateId",
|
875
|
+
"name": "state",
|
876
|
+
"type": "uint8"
|
886
877
|
}
|
887
878
|
],
|
888
879
|
"stateMutability": "view",
|
@@ -1037,6 +1028,127 @@
|
|
1037
1028
|
"stateMutability": "view",
|
1038
1029
|
"type": "function"
|
1039
1030
|
},
|
1031
|
+
{
|
1032
|
+
"inputs": [
|
1033
|
+
{
|
1034
|
+
"internalType": "NftId",
|
1035
|
+
"name": "productNftId",
|
1036
|
+
"type": "uint96"
|
1037
|
+
}
|
1038
|
+
],
|
1039
|
+
"name": "getTreasuryInfo",
|
1040
|
+
"outputs": [
|
1041
|
+
{
|
1042
|
+
"components": [
|
1043
|
+
{
|
1044
|
+
"internalType": "NftId",
|
1045
|
+
"name": "compensationNftId",
|
1046
|
+
"type": "uint96"
|
1047
|
+
},
|
1048
|
+
{
|
1049
|
+
"internalType": "NftId",
|
1050
|
+
"name": "poolNftId",
|
1051
|
+
"type": "uint96"
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
"internalType": "contract IERC20Metadata",
|
1055
|
+
"name": "token",
|
1056
|
+
"type": "address"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"components": [
|
1060
|
+
{
|
1061
|
+
"internalType": "UFixed",
|
1062
|
+
"name": "fractionalFee",
|
1063
|
+
"type": "uint256"
|
1064
|
+
},
|
1065
|
+
{
|
1066
|
+
"internalType": "uint256",
|
1067
|
+
"name": "fixedFee",
|
1068
|
+
"type": "uint256"
|
1069
|
+
}
|
1070
|
+
],
|
1071
|
+
"internalType": "struct Fee",
|
1072
|
+
"name": "commissionFee",
|
1073
|
+
"type": "tuple"
|
1074
|
+
},
|
1075
|
+
{
|
1076
|
+
"components": [
|
1077
|
+
{
|
1078
|
+
"internalType": "UFixed",
|
1079
|
+
"name": "fractionalFee",
|
1080
|
+
"type": "uint256"
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
"internalType": "uint256",
|
1084
|
+
"name": "fixedFee",
|
1085
|
+
"type": "uint256"
|
1086
|
+
}
|
1087
|
+
],
|
1088
|
+
"internalType": "struct Fee",
|
1089
|
+
"name": "policyFee",
|
1090
|
+
"type": "tuple"
|
1091
|
+
},
|
1092
|
+
{
|
1093
|
+
"components": [
|
1094
|
+
{
|
1095
|
+
"internalType": "UFixed",
|
1096
|
+
"name": "fractionalFee",
|
1097
|
+
"type": "uint256"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"internalType": "uint256",
|
1101
|
+
"name": "fixedFee",
|
1102
|
+
"type": "uint256"
|
1103
|
+
}
|
1104
|
+
],
|
1105
|
+
"internalType": "struct Fee",
|
1106
|
+
"name": "processingFee",
|
1107
|
+
"type": "tuple"
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
"components": [
|
1111
|
+
{
|
1112
|
+
"internalType": "UFixed",
|
1113
|
+
"name": "fractionalFee",
|
1114
|
+
"type": "uint256"
|
1115
|
+
},
|
1116
|
+
{
|
1117
|
+
"internalType": "uint256",
|
1118
|
+
"name": "fixedFee",
|
1119
|
+
"type": "uint256"
|
1120
|
+
}
|
1121
|
+
],
|
1122
|
+
"internalType": "struct Fee",
|
1123
|
+
"name": "stakingFee",
|
1124
|
+
"type": "tuple"
|
1125
|
+
},
|
1126
|
+
{
|
1127
|
+
"components": [
|
1128
|
+
{
|
1129
|
+
"internalType": "UFixed",
|
1130
|
+
"name": "fractionalFee",
|
1131
|
+
"type": "uint256"
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"internalType": "uint256",
|
1135
|
+
"name": "fixedFee",
|
1136
|
+
"type": "uint256"
|
1137
|
+
}
|
1138
|
+
],
|
1139
|
+
"internalType": "struct Fee",
|
1140
|
+
"name": "performanceFee",
|
1141
|
+
"type": "tuple"
|
1142
|
+
}
|
1143
|
+
],
|
1144
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1145
|
+
"name": "info",
|
1146
|
+
"type": "tuple"
|
1147
|
+
}
|
1148
|
+
],
|
1149
|
+
"stateMutability": "view",
|
1150
|
+
"type": "function"
|
1151
|
+
},
|
1040
1152
|
{
|
1041
1153
|
"inputs": [],
|
1042
1154
|
"name": "getType",
|
@@ -1206,7 +1318,7 @@
|
|
1206
1318
|
"type": "tuple"
|
1207
1319
|
}
|
1208
1320
|
],
|
1209
|
-
"stateMutability": "
|
1321
|
+
"stateMutability": "view",
|
1210
1322
|
"type": "function"
|
1211
1323
|
},
|
1212
1324
|
{
|
@@ -1244,7 +1356,7 @@
|
|
1244
1356
|
"outputs": [
|
1245
1357
|
{
|
1246
1358
|
"internalType": "bool",
|
1247
|
-
"name": "
|
1359
|
+
"name": "",
|
1248
1360
|
"type": "bool"
|
1249
1361
|
}
|
1250
1362
|
],
|
@@ -1290,70 +1402,18 @@
|
|
1290
1402
|
"name": "nftId",
|
1291
1403
|
"type": "uint96"
|
1292
1404
|
},
|
1293
|
-
{
|
1294
|
-
"internalType": "ObjectType",
|
1295
|
-
"name": "objectType",
|
1296
|
-
"type": "uint8"
|
1297
|
-
},
|
1298
1405
|
{
|
1299
1406
|
"internalType": "contract IERC20Metadata",
|
1300
1407
|
"name": "token",
|
1301
1408
|
"type": "address"
|
1302
|
-
}
|
1303
|
-
],
|
1304
|
-
"name": "registerComponent",
|
1305
|
-
"outputs": [],
|
1306
|
-
"stateMutability": "nonpayable",
|
1307
|
-
"type": "function"
|
1308
|
-
},
|
1309
|
-
{
|
1310
|
-
"inputs": [
|
1311
|
-
{
|
1312
|
-
"internalType": "NftId",
|
1313
|
-
"name": "poolNftId",
|
1314
|
-
"type": "uint96"
|
1315
1409
|
},
|
1316
1410
|
{
|
1317
1411
|
"internalType": "address",
|
1318
1412
|
"name": "wallet",
|
1319
1413
|
"type": "address"
|
1320
|
-
},
|
1321
|
-
{
|
1322
|
-
"components": [
|
1323
|
-
{
|
1324
|
-
"internalType": "UFixed",
|
1325
|
-
"name": "fractionalFee",
|
1326
|
-
"type": "uint256"
|
1327
|
-
},
|
1328
|
-
{
|
1329
|
-
"internalType": "uint256",
|
1330
|
-
"name": "fixedFee",
|
1331
|
-
"type": "uint256"
|
1332
|
-
}
|
1333
|
-
],
|
1334
|
-
"internalType": "struct Fee",
|
1335
|
-
"name": "stakingFee",
|
1336
|
-
"type": "tuple"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"components": [
|
1340
|
-
{
|
1341
|
-
"internalType": "UFixed",
|
1342
|
-
"name": "fractionalFee",
|
1343
|
-
"type": "uint256"
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"internalType": "uint256",
|
1347
|
-
"name": "fixedFee",
|
1348
|
-
"type": "uint256"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"internalType": "struct Fee",
|
1352
|
-
"name": "performanceFee",
|
1353
|
-
"type": "tuple"
|
1354
1414
|
}
|
1355
1415
|
],
|
1356
|
-
"name": "
|
1416
|
+
"name": "registerComponent",
|
1357
1417
|
"outputs": [],
|
1358
1418
|
"stateMutability": "nonpayable",
|
1359
1419
|
"type": "function"
|
@@ -1403,11 +1463,6 @@
|
|
1403
1463
|
"name": "token",
|
1404
1464
|
"type": "address"
|
1405
1465
|
},
|
1406
|
-
{
|
1407
|
-
"internalType": "address",
|
1408
|
-
"name": "wallet",
|
1409
|
-
"type": "address"
|
1410
|
-
},
|
1411
1466
|
{
|
1412
1467
|
"components": [
|
1413
1468
|
{
|
@@ -1441,30 +1496,64 @@
|
|
1441
1496
|
"internalType": "struct Fee",
|
1442
1497
|
"name": "processingFee",
|
1443
1498
|
"type": "tuple"
|
1444
|
-
}
|
1445
|
-
],
|
1446
|
-
"name": "registerProduct",
|
1447
|
-
"outputs": [],
|
1448
|
-
"stateMutability": "nonpayable",
|
1449
|
-
"type": "function"
|
1450
|
-
},
|
1451
|
-
{
|
1452
|
-
"inputs": [
|
1453
|
-
{
|
1454
|
-
"internalType": "NftId",
|
1455
|
-
"name": "bundleNftId",
|
1456
|
-
"type": "uint96"
|
1457
1499
|
},
|
1458
1500
|
{
|
1459
|
-
"
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1501
|
+
"components": [
|
1502
|
+
{
|
1503
|
+
"internalType": "UFixed",
|
1504
|
+
"name": "fractionalFee",
|
1505
|
+
"type": "uint256"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"internalType": "uint256",
|
1509
|
+
"name": "fixedFee",
|
1510
|
+
"type": "uint256"
|
1511
|
+
}
|
1512
|
+
],
|
1513
|
+
"internalType": "struct Fee",
|
1514
|
+
"name": "stakingFee",
|
1515
|
+
"type": "tuple"
|
1516
|
+
},
|
1517
|
+
{
|
1518
|
+
"components": [
|
1519
|
+
{
|
1520
|
+
"internalType": "UFixed",
|
1521
|
+
"name": "fractionalFee",
|
1522
|
+
"type": "uint256"
|
1523
|
+
},
|
1524
|
+
{
|
1525
|
+
"internalType": "uint256",
|
1526
|
+
"name": "fixedFee",
|
1527
|
+
"type": "uint256"
|
1528
|
+
}
|
1529
|
+
],
|
1530
|
+
"internalType": "struct Fee",
|
1531
|
+
"name": "performanceFee",
|
1532
|
+
"type": "tuple"
|
1533
|
+
}
|
1534
|
+
],
|
1535
|
+
"name": "registerProductSetup",
|
1536
|
+
"outputs": [],
|
1537
|
+
"stateMutability": "nonpayable",
|
1538
|
+
"type": "function"
|
1539
|
+
},
|
1540
|
+
{
|
1541
|
+
"inputs": [
|
1542
|
+
{
|
1543
|
+
"internalType": "NftId",
|
1544
|
+
"name": "bundleNftId",
|
1545
|
+
"type": "uint96"
|
1546
|
+
},
|
1547
|
+
{
|
1548
|
+
"internalType": "NftId",
|
1549
|
+
"name": "policyNftId",
|
1550
|
+
"type": "uint96"
|
1551
|
+
}
|
1552
|
+
],
|
1553
|
+
"name": "releasePolicy",
|
1554
|
+
"outputs": [
|
1555
|
+
{
|
1556
|
+
"internalType": "uint256",
|
1468
1557
|
"name": "collateralAmount",
|
1469
1558
|
"type": "uint256"
|
1470
1559
|
}
|
@@ -1511,13 +1600,13 @@
|
|
1511
1600
|
},
|
1512
1601
|
{
|
1513
1602
|
"inputs": [
|
1603
|
+
{
|
1604
|
+
"internalType": "NftId",
|
1605
|
+
"name": "nftId",
|
1606
|
+
"type": "uint96"
|
1607
|
+
},
|
1514
1608
|
{
|
1515
1609
|
"components": [
|
1516
|
-
{
|
1517
|
-
"internalType": "NftId",
|
1518
|
-
"name": "nftId",
|
1519
|
-
"type": "uint96"
|
1520
|
-
},
|
1521
1610
|
{
|
1522
1611
|
"internalType": "NftId",
|
1523
1612
|
"name": "poolNftId",
|
@@ -1566,49 +1655,13 @@
|
|
1566
1655
|
},
|
1567
1656
|
{
|
1568
1657
|
"inputs": [
|
1569
|
-
{
|
1570
|
-
"components": [
|
1571
|
-
{
|
1572
|
-
"internalType": "NftId",
|
1573
|
-
"name": "nftId",
|
1574
|
-
"type": "uint96"
|
1575
|
-
},
|
1576
|
-
{
|
1577
|
-
"internalType": "StateId",
|
1578
|
-
"name": "state",
|
1579
|
-
"type": "uint8"
|
1580
|
-
},
|
1581
|
-
{
|
1582
|
-
"internalType": "contract IERC20Metadata",
|
1583
|
-
"name": "token",
|
1584
|
-
"type": "address"
|
1585
|
-
}
|
1586
|
-
],
|
1587
|
-
"internalType": "struct IComponent.ComponentInfo",
|
1588
|
-
"name": "info",
|
1589
|
-
"type": "tuple"
|
1590
|
-
}
|
1591
|
-
],
|
1592
|
-
"name": "setComponentInfo",
|
1593
|
-
"outputs": [
|
1594
1658
|
{
|
1595
1659
|
"internalType": "NftId",
|
1596
|
-
"name": "
|
1660
|
+
"name": "policyNftId",
|
1597
1661
|
"type": "uint96"
|
1598
|
-
}
|
1599
|
-
],
|
1600
|
-
"stateMutability": "nonpayable",
|
1601
|
-
"type": "function"
|
1602
|
-
},
|
1603
|
-
{
|
1604
|
-
"inputs": [
|
1662
|
+
},
|
1605
1663
|
{
|
1606
1664
|
"components": [
|
1607
|
-
{
|
1608
|
-
"internalType": "NftId",
|
1609
|
-
"name": "nftId",
|
1610
|
-
"type": "uint96"
|
1611
|
-
},
|
1612
1665
|
{
|
1613
1666
|
"internalType": "NftId",
|
1614
1667
|
"name": "productNftId",
|
@@ -1625,9 +1678,9 @@
|
|
1625
1678
|
"type": "address"
|
1626
1679
|
},
|
1627
1680
|
{
|
1628
|
-
"internalType": "
|
1629
|
-
"name": "
|
1630
|
-
"type": "
|
1681
|
+
"internalType": "RiskId",
|
1682
|
+
"name": "riskId",
|
1683
|
+
"type": "bytes8"
|
1631
1684
|
},
|
1632
1685
|
{
|
1633
1686
|
"internalType": "uint256",
|
@@ -1651,13 +1704,13 @@
|
|
1651
1704
|
},
|
1652
1705
|
{
|
1653
1706
|
"internalType": "bytes",
|
1654
|
-
"name": "
|
1707
|
+
"name": "applicationData",
|
1655
1708
|
"type": "bytes"
|
1656
1709
|
},
|
1657
1710
|
{
|
1658
|
-
"internalType": "
|
1659
|
-
"name": "
|
1660
|
-
"type": "
|
1711
|
+
"internalType": "bytes",
|
1712
|
+
"name": "policyData",
|
1713
|
+
"type": "bytes"
|
1661
1714
|
},
|
1662
1715
|
{
|
1663
1716
|
"internalType": "Timestamp",
|
@@ -1673,15 +1726,10 @@
|
|
1673
1726
|
"internalType": "Timestamp",
|
1674
1727
|
"name": "closedAt",
|
1675
1728
|
"type": "uint40"
|
1676
|
-
},
|
1677
|
-
{
|
1678
|
-
"internalType": "Blocknumber",
|
1679
|
-
"name": "updatedIn",
|
1680
|
-
"type": "uint32"
|
1681
1729
|
}
|
1682
1730
|
],
|
1683
1731
|
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
-
"name": "
|
1732
|
+
"name": "info",
|
1685
1733
|
"type": "tuple"
|
1686
1734
|
}
|
1687
1735
|
],
|
@@ -1693,46 +1741,47 @@
|
|
1693
1741
|
{
|
1694
1742
|
"inputs": [
|
1695
1743
|
{
|
1696
|
-
"internalType": "
|
1697
|
-
"name": "
|
1698
|
-
"type": "
|
1744
|
+
"internalType": "RiskId",
|
1745
|
+
"name": "riskId",
|
1746
|
+
"type": "bytes8"
|
1699
1747
|
},
|
1700
1748
|
{
|
1701
1749
|
"components": [
|
1702
1750
|
{
|
1703
|
-
"internalType": "
|
1704
|
-
"name": "
|
1705
|
-
"type": "
|
1751
|
+
"internalType": "NftId",
|
1752
|
+
"name": "productNftId",
|
1753
|
+
"type": "uint96"
|
1706
1754
|
},
|
1707
1755
|
{
|
1708
|
-
"internalType": "
|
1709
|
-
"name": "
|
1710
|
-
"type": "
|
1756
|
+
"internalType": "bytes",
|
1757
|
+
"name": "data",
|
1758
|
+
"type": "bytes"
|
1711
1759
|
}
|
1712
1760
|
],
|
1713
|
-
"internalType": "struct
|
1714
|
-
"name": "
|
1761
|
+
"internalType": "struct IRisk.RiskInfo",
|
1762
|
+
"name": "info",
|
1715
1763
|
"type": "tuple"
|
1764
|
+
}
|
1765
|
+
],
|
1766
|
+
"name": "setRiskInfo",
|
1767
|
+
"outputs": [],
|
1768
|
+
"stateMutability": "nonpayable",
|
1769
|
+
"type": "function"
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"inputs": [
|
1773
|
+
{
|
1774
|
+
"internalType": "RoleId",
|
1775
|
+
"name": "role",
|
1776
|
+
"type": "bytes8"
|
1716
1777
|
},
|
1717
1778
|
{
|
1718
|
-
"
|
1719
|
-
|
1720
|
-
|
1721
|
-
"name": "fractionalFee",
|
1722
|
-
"type": "uint256"
|
1723
|
-
},
|
1724
|
-
{
|
1725
|
-
"internalType": "uint256",
|
1726
|
-
"name": "fixedFee",
|
1727
|
-
"type": "uint256"
|
1728
|
-
}
|
1729
|
-
],
|
1730
|
-
"internalType": "struct Fee",
|
1731
|
-
"name": "performanceFee",
|
1732
|
-
"type": "tuple"
|
1779
|
+
"internalType": "bool",
|
1780
|
+
"name": "active",
|
1781
|
+
"type": "bool"
|
1733
1782
|
}
|
1734
1783
|
],
|
1735
|
-
"name": "
|
1784
|
+
"name": "setRoleState",
|
1736
1785
|
"outputs": [],
|
1737
1786
|
"stateMutability": "nonpayable",
|
1738
1787
|
"type": "function"
|
@@ -1747,57 +1796,112 @@
|
|
1747
1796
|
{
|
1748
1797
|
"components": [
|
1749
1798
|
{
|
1750
|
-
"internalType": "
|
1751
|
-
"name": "
|
1752
|
-
"type": "
|
1799
|
+
"internalType": "NftId",
|
1800
|
+
"name": "compensationNftId",
|
1801
|
+
"type": "uint96"
|
1753
1802
|
},
|
1754
1803
|
{
|
1755
|
-
"internalType": "
|
1756
|
-
"name": "
|
1757
|
-
"type": "
|
1758
|
-
}
|
1759
|
-
],
|
1760
|
-
"internalType": "struct Fee",
|
1761
|
-
"name": "policyFee",
|
1762
|
-
"type": "tuple"
|
1763
|
-
},
|
1764
|
-
{
|
1765
|
-
"components": [
|
1804
|
+
"internalType": "NftId",
|
1805
|
+
"name": "poolNftId",
|
1806
|
+
"type": "uint96"
|
1807
|
+
},
|
1766
1808
|
{
|
1767
|
-
"internalType": "
|
1768
|
-
"name": "
|
1769
|
-
"type": "
|
1809
|
+
"internalType": "contract IERC20Metadata",
|
1810
|
+
"name": "token",
|
1811
|
+
"type": "address"
|
1770
1812
|
},
|
1771
1813
|
{
|
1772
|
-
"
|
1773
|
-
|
1774
|
-
|
1814
|
+
"components": [
|
1815
|
+
{
|
1816
|
+
"internalType": "UFixed",
|
1817
|
+
"name": "fractionalFee",
|
1818
|
+
"type": "uint256"
|
1819
|
+
},
|
1820
|
+
{
|
1821
|
+
"internalType": "uint256",
|
1822
|
+
"name": "fixedFee",
|
1823
|
+
"type": "uint256"
|
1824
|
+
}
|
1825
|
+
],
|
1826
|
+
"internalType": "struct Fee",
|
1827
|
+
"name": "commissionFee",
|
1828
|
+
"type": "tuple"
|
1829
|
+
},
|
1830
|
+
{
|
1831
|
+
"components": [
|
1832
|
+
{
|
1833
|
+
"internalType": "UFixed",
|
1834
|
+
"name": "fractionalFee",
|
1835
|
+
"type": "uint256"
|
1836
|
+
},
|
1837
|
+
{
|
1838
|
+
"internalType": "uint256",
|
1839
|
+
"name": "fixedFee",
|
1840
|
+
"type": "uint256"
|
1841
|
+
}
|
1842
|
+
],
|
1843
|
+
"internalType": "struct Fee",
|
1844
|
+
"name": "policyFee",
|
1845
|
+
"type": "tuple"
|
1846
|
+
},
|
1847
|
+
{
|
1848
|
+
"components": [
|
1849
|
+
{
|
1850
|
+
"internalType": "UFixed",
|
1851
|
+
"name": "fractionalFee",
|
1852
|
+
"type": "uint256"
|
1853
|
+
},
|
1854
|
+
{
|
1855
|
+
"internalType": "uint256",
|
1856
|
+
"name": "fixedFee",
|
1857
|
+
"type": "uint256"
|
1858
|
+
}
|
1859
|
+
],
|
1860
|
+
"internalType": "struct Fee",
|
1861
|
+
"name": "processingFee",
|
1862
|
+
"type": "tuple"
|
1863
|
+
},
|
1864
|
+
{
|
1865
|
+
"components": [
|
1866
|
+
{
|
1867
|
+
"internalType": "UFixed",
|
1868
|
+
"name": "fractionalFee",
|
1869
|
+
"type": "uint256"
|
1870
|
+
},
|
1871
|
+
{
|
1872
|
+
"internalType": "uint256",
|
1873
|
+
"name": "fixedFee",
|
1874
|
+
"type": "uint256"
|
1875
|
+
}
|
1876
|
+
],
|
1877
|
+
"internalType": "struct Fee",
|
1878
|
+
"name": "stakingFee",
|
1879
|
+
"type": "tuple"
|
1880
|
+
},
|
1881
|
+
{
|
1882
|
+
"components": [
|
1883
|
+
{
|
1884
|
+
"internalType": "UFixed",
|
1885
|
+
"name": "fractionalFee",
|
1886
|
+
"type": "uint256"
|
1887
|
+
},
|
1888
|
+
{
|
1889
|
+
"internalType": "uint256",
|
1890
|
+
"name": "fixedFee",
|
1891
|
+
"type": "uint256"
|
1892
|
+
}
|
1893
|
+
],
|
1894
|
+
"internalType": "struct Fee",
|
1895
|
+
"name": "performanceFee",
|
1896
|
+
"type": "tuple"
|
1775
1897
|
}
|
1776
1898
|
],
|
1777
|
-
"internalType": "struct
|
1778
|
-
"name": "
|
1899
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1900
|
+
"name": "info",
|
1779
1901
|
"type": "tuple"
|
1780
1902
|
}
|
1781
1903
|
],
|
1782
|
-
"name": "
|
1783
|
-
"outputs": [],
|
1784
|
-
"stateMutability": "nonpayable",
|
1785
|
-
"type": "function"
|
1786
|
-
},
|
1787
|
-
{
|
1788
|
-
"inputs": [
|
1789
|
-
{
|
1790
|
-
"internalType": "RoleId",
|
1791
|
-
"name": "role",
|
1792
|
-
"type": "bytes8"
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"internalType": "bool",
|
1796
|
-
"name": "active",
|
1797
|
-
"type": "bool"
|
1798
|
-
}
|
1799
|
-
],
|
1800
|
-
"name": "setRoleState",
|
1904
|
+
"name": "setTreasuryInfo",
|
1801
1905
|
"outputs": [],
|
1802
1906
|
"stateMutability": "nonpayable",
|
1803
1907
|
"type": "function"
|
@@ -1825,26 +1929,25 @@
|
|
1825
1929
|
"inputs": [
|
1826
1930
|
{
|
1827
1931
|
"internalType": "NftId",
|
1828
|
-
"name": "
|
1932
|
+
"name": "nftId",
|
1829
1933
|
"type": "uint96"
|
1830
|
-
}
|
1831
|
-
],
|
1832
|
-
"name": "toBundleKey32",
|
1833
|
-
"outputs": [
|
1934
|
+
},
|
1834
1935
|
{
|
1835
|
-
"internalType": "
|
1836
|
-
"name": "
|
1837
|
-
"type": "
|
1936
|
+
"internalType": "StateId",
|
1937
|
+
"name": "state",
|
1938
|
+
"type": "uint8"
|
1838
1939
|
}
|
1839
1940
|
],
|
1840
|
-
"
|
1941
|
+
"name": "updateBundleState",
|
1942
|
+
"outputs": [],
|
1943
|
+
"stateMutability": "nonpayable",
|
1841
1944
|
"type": "function"
|
1842
1945
|
},
|
1843
1946
|
{
|
1844
1947
|
"inputs": [
|
1845
1948
|
{
|
1846
1949
|
"internalType": "NftId",
|
1847
|
-
"name": "
|
1950
|
+
"name": "nftId",
|
1848
1951
|
"type": "uint96"
|
1849
1952
|
},
|
1850
1953
|
{
|
@@ -1853,7 +1956,43 @@
|
|
1853
1956
|
"type": "uint8"
|
1854
1957
|
}
|
1855
1958
|
],
|
1856
|
-
"name": "
|
1959
|
+
"name": "updatePolicyState",
|
1960
|
+
"outputs": [],
|
1961
|
+
"stateMutability": "nonpayable",
|
1962
|
+
"type": "function"
|
1963
|
+
},
|
1964
|
+
{
|
1965
|
+
"inputs": [
|
1966
|
+
{
|
1967
|
+
"internalType": "RiskId",
|
1968
|
+
"name": "riskId",
|
1969
|
+
"type": "bytes8"
|
1970
|
+
},
|
1971
|
+
{
|
1972
|
+
"internalType": "StateId",
|
1973
|
+
"name": "state",
|
1974
|
+
"type": "uint8"
|
1975
|
+
}
|
1976
|
+
],
|
1977
|
+
"name": "updateRiskState",
|
1978
|
+
"outputs": [],
|
1979
|
+
"stateMutability": "nonpayable",
|
1980
|
+
"type": "function"
|
1981
|
+
},
|
1982
|
+
{
|
1983
|
+
"inputs": [
|
1984
|
+
{
|
1985
|
+
"internalType": "Key32",
|
1986
|
+
"name": "key",
|
1987
|
+
"type": "bytes32"
|
1988
|
+
},
|
1989
|
+
{
|
1990
|
+
"internalType": "StateId",
|
1991
|
+
"name": "state",
|
1992
|
+
"type": "uint8"
|
1993
|
+
}
|
1994
|
+
],
|
1995
|
+
"name": "updateState",
|
1857
1996
|
"outputs": [],
|
1858
1997
|
"stateMutability": "nonpayable",
|
1859
1998
|
"type": "function"
|