@etherisc/gif-next 0.0.2-f2b0fa2-473 → 0.0.2-f5a74cc-201
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +67 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +139 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +149 -15
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +101 -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/IPoolComponent.sol/IPoolComponent.json +28 -2
- 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 +181 -16
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +157 -56
- 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/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/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +775 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
- 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 +1369 -22
- 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 +64 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +216 -132
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +57 -34
- 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 +202 -37
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +321 -41
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +101 -13
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +272 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +59 -0
- 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/KeyValueStore.sol/KeyValueStore.json +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/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 +18 -18
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
- 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/IPoolService.sol/IPoolService.json +167 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +40 -31
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1049 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +464 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1147 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -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 +201 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -19
- 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 +172 -49
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -29
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +47 -34
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
- 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/ERC165.sol/ERC165.json +2 -2
- 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 +4 -4
- 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/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- 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 +11 -11
- 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/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
- 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/NftIdSet.sol/LibNftIdSet.json +26 -3
- 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/StateId.sol/StateIdLib.json +2 -2
- 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/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/BaseComponent.sol +57 -11
- package/contracts/components/Distribution.sol +15 -18
- package/contracts/components/IBaseComponent.sol +7 -0
- package/contracts/components/IDistributionComponent.sol +1 -0
- package/contracts/components/IPoolComponent.sol +5 -1
- package/contracts/components/Pool.sol +36 -28
- package/contracts/components/Product.sol +34 -42
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
- package/contracts/instance/BundleManager.sol +129 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +35 -7
- package/contracts/instance/IInstanceBase.sol +26 -0
- package/contracts/instance/IInstanceService.sol +16 -1
- package/contracts/instance/Instance.sol +53 -34
- package/contracts/instance/InstanceAccessManager.sol +6 -6
- package/contracts/instance/InstanceBase.sol +41 -0
- package/contracts/instance/InstanceReader.sol +36 -1
- package/contracts/instance/InstanceService.sol +164 -27
- package/contracts/instance/InstanceServiceManager.sol +6 -5
- package/contracts/instance/ObjectManager.sol +95 -0
- package/contracts/instance/base/ComponentServiceBase.sol +91 -6
- package/contracts/instance/module/IBundle.sol +1 -0
- package/contracts/instance/module/ISetup.sol +3 -0
- package/contracts/instance/service/DistributionService.sol +88 -0
- package/contracts/instance/service/DistributionServiceManager.sol +54 -0
- package/contracts/instance/service/IPoolService.sol +16 -2
- package/contracts/instance/service/IProductService.sol +6 -3
- package/contracts/instance/service/PoolService.sol +287 -0
- package/contracts/instance/service/PoolServiceManager.sol +54 -0
- package/contracts/instance/service/ProductService.sol +570 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/IRegistry.sol +26 -2
- package/contracts/registry/IRegistryService.sol +27 -12
- package/contracts/registry/Registry.sol +60 -35
- package/contracts/registry/RegistryService.sol +37 -118
- package/contracts/registry/RegistryServiceManager.sol +21 -5
- package/contracts/registry/TokenRegistry.sol +111 -0
- package/contracts/shared/ERC165.sol +6 -2
- package/contracts/shared/NftOwnable.sol +2 -4
- package/contracts/shared/Registerable.sol +1 -0
- package/contracts/shared/Service.sol +1 -0
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/RoleId.sol +8 -0
- package/contracts/types/StateId.sol +4 -0
- package/contracts/types/Version.sol +4 -1
- package/package.json +1 -1
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
- package/contracts/instance/AccessManagedSimple.sol +0 -114
- package/contracts/instance/AccessManagerSimple.sol +0 -682
@@ -3,6 +3,249 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "ObjectType",
|
10
|
+
"name": "objectType",
|
11
|
+
"type": "uint8"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "StateId",
|
15
|
+
"name": "fromStateId",
|
16
|
+
"type": "uint8"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "StateId",
|
20
|
+
"name": "toStateId",
|
21
|
+
"type": "uint8"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"name": "ErrorInvalidStateTransition",
|
25
|
+
"type": "error"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"inputs": [
|
29
|
+
{
|
30
|
+
"internalType": "NftId",
|
31
|
+
"name": "nftId",
|
32
|
+
"type": "uint96"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"internalType": "ObjectType",
|
36
|
+
"name": "objectType",
|
37
|
+
"type": "uint8"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"name": "ErrorNoLifecycle",
|
41
|
+
"type": "error"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"anonymous": false,
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"indexed": false,
|
48
|
+
"internalType": "ObjectType",
|
49
|
+
"name": "objectType",
|
50
|
+
"type": "uint8"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"indexed": false,
|
54
|
+
"internalType": "KeyId",
|
55
|
+
"name": "keyId",
|
56
|
+
"type": "bytes31"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"indexed": false,
|
60
|
+
"internalType": "StateId",
|
61
|
+
"name": "state",
|
62
|
+
"type": "uint8"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"indexed": false,
|
66
|
+
"internalType": "address",
|
67
|
+
"name": "createdBy",
|
68
|
+
"type": "address"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"indexed": false,
|
72
|
+
"internalType": "address",
|
73
|
+
"name": "txOrigin",
|
74
|
+
"type": "address"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"name": "LogInfoCreated",
|
78
|
+
"type": "event"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"anonymous": false,
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"indexed": false,
|
85
|
+
"internalType": "ObjectType",
|
86
|
+
"name": "objectType",
|
87
|
+
"type": "uint8"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"indexed": false,
|
91
|
+
"internalType": "KeyId",
|
92
|
+
"name": "keyId",
|
93
|
+
"type": "bytes31"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"indexed": false,
|
97
|
+
"internalType": "StateId",
|
98
|
+
"name": "state",
|
99
|
+
"type": "uint8"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"indexed": false,
|
103
|
+
"internalType": "address",
|
104
|
+
"name": "updatedBy",
|
105
|
+
"type": "address"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "address",
|
110
|
+
"name": "txOrigin",
|
111
|
+
"type": "address"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"indexed": false,
|
115
|
+
"internalType": "Blocknumber",
|
116
|
+
"name": "lastUpdatedIn",
|
117
|
+
"type": "uint32"
|
118
|
+
}
|
119
|
+
],
|
120
|
+
"name": "LogInfoUpdated",
|
121
|
+
"type": "event"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"anonymous": false,
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"indexed": false,
|
128
|
+
"internalType": "ObjectType",
|
129
|
+
"name": "objectType",
|
130
|
+
"type": "uint8"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "KeyId",
|
135
|
+
"name": "keyId",
|
136
|
+
"type": "bytes31"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"indexed": false,
|
140
|
+
"internalType": "StateId",
|
141
|
+
"name": "stateOld",
|
142
|
+
"type": "uint8"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"indexed": false,
|
146
|
+
"internalType": "StateId",
|
147
|
+
"name": "stateNew",
|
148
|
+
"type": "uint8"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"indexed": false,
|
152
|
+
"internalType": "address",
|
153
|
+
"name": "updatedBy",
|
154
|
+
"type": "address"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"indexed": false,
|
158
|
+
"internalType": "address",
|
159
|
+
"name": "txOrigin",
|
160
|
+
"type": "address"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"indexed": false,
|
164
|
+
"internalType": "Blocknumber",
|
165
|
+
"name": "lastUpdatedIn",
|
166
|
+
"type": "uint32"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"name": "LogStateUpdated",
|
170
|
+
"type": "event"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"inputs": [
|
174
|
+
{
|
175
|
+
"internalType": "NftId",
|
176
|
+
"name": "bundleNftId",
|
177
|
+
"type": "uint96"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"components": [
|
181
|
+
{
|
182
|
+
"internalType": "NftId",
|
183
|
+
"name": "poolNftId",
|
184
|
+
"type": "uint96"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"components": [
|
188
|
+
{
|
189
|
+
"internalType": "UFixed",
|
190
|
+
"name": "fractionalFee",
|
191
|
+
"type": "uint256"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"internalType": "uint256",
|
195
|
+
"name": "fixedFee",
|
196
|
+
"type": "uint256"
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"internalType": "struct Fee",
|
200
|
+
"name": "fee",
|
201
|
+
"type": "tuple"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "bytes",
|
205
|
+
"name": "filter",
|
206
|
+
"type": "bytes"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "capitalAmount",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "lockedAmount",
|
216
|
+
"type": "uint256"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "balanceAmount",
|
221
|
+
"type": "uint256"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"internalType": "uint256",
|
225
|
+
"name": "lifetime",
|
226
|
+
"type": "uint256"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"internalType": "Timestamp",
|
230
|
+
"name": "expiredAt",
|
231
|
+
"type": "uint40"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"internalType": "Timestamp",
|
235
|
+
"name": "closedAt",
|
236
|
+
"type": "uint40"
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"internalType": "struct IBundle.BundleInfo",
|
240
|
+
"name": "bundle",
|
241
|
+
"type": "tuple"
|
242
|
+
}
|
243
|
+
],
|
244
|
+
"name": "createBundle",
|
245
|
+
"outputs": [],
|
246
|
+
"stateMutability": "nonpayable",
|
247
|
+
"type": "function"
|
248
|
+
},
|
6
249
|
{
|
7
250
|
"inputs": [
|
8
251
|
{
|
@@ -64,7 +307,107 @@
|
|
64
307
|
"inputs": [
|
65
308
|
{
|
66
309
|
"internalType": "NftId",
|
67
|
-
"name": "
|
310
|
+
"name": "policyNftId",
|
311
|
+
"type": "uint96"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"components": [
|
315
|
+
{
|
316
|
+
"internalType": "NftId",
|
317
|
+
"name": "productNftId",
|
318
|
+
"type": "uint96"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"internalType": "NftId",
|
322
|
+
"name": "bundleNftId",
|
323
|
+
"type": "uint96"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"internalType": "ReferralId",
|
327
|
+
"name": "referralId",
|
328
|
+
"type": "bytes8"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"internalType": "RiskId",
|
332
|
+
"name": "riskId",
|
333
|
+
"type": "bytes8"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"internalType": "uint256",
|
337
|
+
"name": "sumInsuredAmount",
|
338
|
+
"type": "uint256"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"internalType": "uint256",
|
342
|
+
"name": "premiumAmount",
|
343
|
+
"type": "uint256"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"internalType": "uint256",
|
347
|
+
"name": "premiumPaidAmount",
|
348
|
+
"type": "uint256"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"internalType": "uint256",
|
352
|
+
"name": "lifetime",
|
353
|
+
"type": "uint256"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "bytes",
|
357
|
+
"name": "applicationData",
|
358
|
+
"type": "bytes"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"internalType": "bytes",
|
362
|
+
"name": "policyData",
|
363
|
+
"type": "bytes"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"internalType": "uint16",
|
367
|
+
"name": "claimsCount",
|
368
|
+
"type": "uint16"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "uint16",
|
372
|
+
"name": "openClaimsCount",
|
373
|
+
"type": "uint16"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "payoutAmount",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "Timestamp",
|
382
|
+
"name": "activatedAt",
|
383
|
+
"type": "uint40"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "Timestamp",
|
387
|
+
"name": "expiredAt",
|
388
|
+
"type": "uint40"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"internalType": "Timestamp",
|
392
|
+
"name": "closedAt",
|
393
|
+
"type": "uint40"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
397
|
+
"name": "policy",
|
398
|
+
"type": "tuple"
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"name": "createPolicy",
|
402
|
+
"outputs": [],
|
403
|
+
"stateMutability": "nonpayable",
|
404
|
+
"type": "function"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"inputs": [
|
408
|
+
{
|
409
|
+
"internalType": "NftId",
|
410
|
+
"name": "poolNftId",
|
68
411
|
"type": "uint96"
|
69
412
|
},
|
70
413
|
{
|
@@ -140,6 +483,11 @@
|
|
140
483
|
"name": "isIntercepting",
|
141
484
|
"type": "bool"
|
142
485
|
},
|
486
|
+
{
|
487
|
+
"internalType": "bool",
|
488
|
+
"name": "isConfirmingApplication",
|
489
|
+
"type": "bool"
|
490
|
+
},
|
143
491
|
{
|
144
492
|
"internalType": "address",
|
145
493
|
"name": "wallet",
|
@@ -286,6 +634,16 @@
|
|
286
634
|
"internalType": "struct Fee",
|
287
635
|
"name": "performanceFee",
|
288
636
|
"type": "tuple"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"internalType": "bool",
|
640
|
+
"name": "isIntercepting",
|
641
|
+
"type": "bool"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
"internalType": "address",
|
645
|
+
"name": "wallet",
|
646
|
+
"type": "address"
|
289
647
|
}
|
290
648
|
],
|
291
649
|
"internalType": "struct ISetup.ProductSetupInfo",
|
@@ -299,26 +657,49 @@
|
|
299
657
|
"type": "function"
|
300
658
|
},
|
301
659
|
{
|
302
|
-
"inputs": [
|
303
|
-
"name": "getComponentOwnerService",
|
304
|
-
"outputs": [
|
660
|
+
"inputs": [
|
305
661
|
{
|
306
|
-
"internalType": "
|
307
|
-
"name": "",
|
308
|
-
"type": "
|
662
|
+
"internalType": "RiskId",
|
663
|
+
"name": "riskId",
|
664
|
+
"type": "bytes8"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"components": [
|
668
|
+
{
|
669
|
+
"internalType": "NftId",
|
670
|
+
"name": "productNftId",
|
671
|
+
"type": "uint96"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"internalType": "bytes",
|
675
|
+
"name": "data",
|
676
|
+
"type": "bytes"
|
677
|
+
}
|
678
|
+
],
|
679
|
+
"internalType": "struct IRisk.RiskInfo",
|
680
|
+
"name": "risk",
|
681
|
+
"type": "tuple"
|
309
682
|
}
|
310
683
|
],
|
311
|
-
"
|
684
|
+
"name": "createRisk",
|
685
|
+
"outputs": [],
|
686
|
+
"stateMutability": "nonpayable",
|
312
687
|
"type": "function"
|
313
688
|
},
|
314
689
|
{
|
315
|
-
"inputs": [
|
316
|
-
|
690
|
+
"inputs": [
|
691
|
+
{
|
692
|
+
"internalType": "Key32",
|
693
|
+
"name": "key",
|
694
|
+
"type": "bytes32"
|
695
|
+
}
|
696
|
+
],
|
697
|
+
"name": "exists",
|
317
698
|
"outputs": [
|
318
699
|
{
|
319
|
-
"internalType": "
|
700
|
+
"internalType": "bool",
|
320
701
|
"name": "",
|
321
|
-
"type": "
|
702
|
+
"type": "bool"
|
322
703
|
}
|
323
704
|
],
|
324
705
|
"stateMutability": "view",
|
@@ -327,20 +708,986 @@
|
|
327
708
|
{
|
328
709
|
"inputs": [
|
329
710
|
{
|
330
|
-
"internalType": "
|
331
|
-
"name": "
|
332
|
-
"type": "
|
711
|
+
"internalType": "Key32",
|
712
|
+
"name": "key",
|
713
|
+
"type": "bytes32"
|
333
714
|
}
|
334
715
|
],
|
335
|
-
"name": "
|
716
|
+
"name": "get",
|
336
717
|
"outputs": [
|
337
718
|
{
|
338
|
-
"
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
719
|
+
"components": [
|
720
|
+
{
|
721
|
+
"components": [
|
722
|
+
{
|
723
|
+
"internalType": "ObjectType",
|
724
|
+
"name": "objectType",
|
725
|
+
"type": "uint8"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "StateId",
|
729
|
+
"name": "state",
|
730
|
+
"type": "uint8"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "address",
|
734
|
+
"name": "updatedBy",
|
735
|
+
"type": "address"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"internalType": "Blocknumber",
|
739
|
+
"name": "updatedIn",
|
740
|
+
"type": "uint32"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"internalType": "Blocknumber",
|
744
|
+
"name": "createdIn",
|
745
|
+
"type": "uint32"
|
746
|
+
}
|
747
|
+
],
|
748
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
749
|
+
"name": "metadata",
|
750
|
+
"type": "tuple"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"internalType": "bytes",
|
754
|
+
"name": "data",
|
755
|
+
"type": "bytes"
|
756
|
+
}
|
757
|
+
],
|
758
|
+
"internalType": "struct IKeyValueStore.Value",
|
759
|
+
"name": "value",
|
760
|
+
"type": "tuple"
|
761
|
+
}
|
762
|
+
],
|
763
|
+
"stateMutability": "view",
|
764
|
+
"type": "function"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"inputs": [],
|
768
|
+
"name": "getBundleManager",
|
769
|
+
"outputs": [
|
770
|
+
{
|
771
|
+
"internalType": "contract BundleManager",
|
772
|
+
"name": "",
|
773
|
+
"type": "address"
|
774
|
+
}
|
775
|
+
],
|
776
|
+
"stateMutability": "view",
|
777
|
+
"type": "function"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"inputs": [],
|
781
|
+
"name": "getComponentOwnerService",
|
782
|
+
"outputs": [
|
783
|
+
{
|
784
|
+
"internalType": "contract IComponentOwnerService",
|
785
|
+
"name": "",
|
786
|
+
"type": "address"
|
787
|
+
}
|
788
|
+
],
|
789
|
+
"stateMutability": "view",
|
790
|
+
"type": "function"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"inputs": [
|
794
|
+
{
|
795
|
+
"internalType": "Key32",
|
796
|
+
"name": "key",
|
797
|
+
"type": "bytes32"
|
798
|
+
}
|
799
|
+
],
|
800
|
+
"name": "getData",
|
801
|
+
"outputs": [
|
802
|
+
{
|
803
|
+
"internalType": "bytes",
|
804
|
+
"name": "data",
|
805
|
+
"type": "bytes"
|
806
|
+
}
|
807
|
+
],
|
808
|
+
"stateMutability": "view",
|
809
|
+
"type": "function"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"inputs": [],
|
813
|
+
"name": "getDistributionService",
|
814
|
+
"outputs": [
|
815
|
+
{
|
816
|
+
"internalType": "contract IDistributionService",
|
817
|
+
"name": "",
|
818
|
+
"type": "address"
|
819
|
+
}
|
820
|
+
],
|
821
|
+
"stateMutability": "view",
|
822
|
+
"type": "function"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"inputs": [
|
826
|
+
{
|
827
|
+
"internalType": "ObjectType",
|
828
|
+
"name": "objectType",
|
829
|
+
"type": "uint8"
|
830
|
+
}
|
831
|
+
],
|
832
|
+
"name": "getInitialState",
|
833
|
+
"outputs": [
|
834
|
+
{
|
835
|
+
"internalType": "StateId",
|
836
|
+
"name": "",
|
837
|
+
"type": "uint8"
|
838
|
+
}
|
839
|
+
],
|
840
|
+
"stateMutability": "view",
|
841
|
+
"type": "function"
|
842
|
+
},
|
843
|
+
{
|
844
|
+
"inputs": [],
|
845
|
+
"name": "getInstanceReader",
|
846
|
+
"outputs": [
|
847
|
+
{
|
848
|
+
"internalType": "contract InstanceReader",
|
849
|
+
"name": "",
|
850
|
+
"type": "address"
|
851
|
+
}
|
852
|
+
],
|
853
|
+
"stateMutability": "view",
|
854
|
+
"type": "function"
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"inputs": [
|
858
|
+
{
|
859
|
+
"internalType": "Key32",
|
860
|
+
"name": "key",
|
861
|
+
"type": "bytes32"
|
862
|
+
}
|
863
|
+
],
|
864
|
+
"name": "getMetadata",
|
865
|
+
"outputs": [
|
866
|
+
{
|
867
|
+
"components": [
|
868
|
+
{
|
869
|
+
"internalType": "ObjectType",
|
870
|
+
"name": "objectType",
|
871
|
+
"type": "uint8"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"internalType": "StateId",
|
875
|
+
"name": "state",
|
876
|
+
"type": "uint8"
|
877
|
+
},
|
878
|
+
{
|
879
|
+
"internalType": "address",
|
880
|
+
"name": "updatedBy",
|
881
|
+
"type": "address"
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"internalType": "Blocknumber",
|
885
|
+
"name": "updatedIn",
|
886
|
+
"type": "uint32"
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"internalType": "Blocknumber",
|
890
|
+
"name": "createdIn",
|
891
|
+
"type": "uint32"
|
892
|
+
}
|
893
|
+
],
|
894
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
895
|
+
"name": "metadata",
|
896
|
+
"type": "tuple"
|
897
|
+
}
|
898
|
+
],
|
899
|
+
"stateMutability": "view",
|
900
|
+
"type": "function"
|
901
|
+
},
|
902
|
+
{
|
903
|
+
"inputs": [],
|
904
|
+
"name": "getPoolService",
|
905
|
+
"outputs": [
|
906
|
+
{
|
907
|
+
"internalType": "contract IPoolService",
|
908
|
+
"name": "",
|
909
|
+
"type": "address"
|
910
|
+
}
|
911
|
+
],
|
912
|
+
"stateMutability": "view",
|
913
|
+
"type": "function"
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"inputs": [],
|
917
|
+
"name": "getProductService",
|
918
|
+
"outputs": [
|
919
|
+
{
|
920
|
+
"internalType": "contract IProductService",
|
921
|
+
"name": "",
|
922
|
+
"type": "address"
|
923
|
+
}
|
924
|
+
],
|
925
|
+
"stateMutability": "view",
|
926
|
+
"type": "function"
|
927
|
+
},
|
928
|
+
{
|
929
|
+
"inputs": [
|
930
|
+
{
|
931
|
+
"internalType": "Key32",
|
932
|
+
"name": "key",
|
933
|
+
"type": "bytes32"
|
934
|
+
}
|
935
|
+
],
|
936
|
+
"name": "getState",
|
937
|
+
"outputs": [
|
938
|
+
{
|
939
|
+
"internalType": "StateId",
|
940
|
+
"name": "state",
|
941
|
+
"type": "uint8"
|
942
|
+
}
|
943
|
+
],
|
944
|
+
"stateMutability": "view",
|
945
|
+
"type": "function"
|
946
|
+
},
|
947
|
+
{
|
948
|
+
"inputs": [
|
949
|
+
{
|
950
|
+
"internalType": "ObjectType",
|
951
|
+
"name": "objectType",
|
952
|
+
"type": "uint8"
|
953
|
+
}
|
954
|
+
],
|
955
|
+
"name": "hasLifecycle",
|
956
|
+
"outputs": [
|
957
|
+
{
|
958
|
+
"internalType": "bool",
|
959
|
+
"name": "",
|
960
|
+
"type": "bool"
|
961
|
+
}
|
962
|
+
],
|
963
|
+
"stateMutability": "view",
|
964
|
+
"type": "function"
|
965
|
+
},
|
966
|
+
{
|
967
|
+
"inputs": [
|
968
|
+
{
|
969
|
+
"internalType": "ObjectType",
|
970
|
+
"name": "objectType",
|
971
|
+
"type": "uint8"
|
972
|
+
},
|
973
|
+
{
|
974
|
+
"internalType": "StateId",
|
975
|
+
"name": "fromId",
|
976
|
+
"type": "uint8"
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"internalType": "StateId",
|
980
|
+
"name": "toId",
|
981
|
+
"type": "uint8"
|
982
|
+
}
|
983
|
+
],
|
984
|
+
"name": "isValidTransition",
|
985
|
+
"outputs": [
|
986
|
+
{
|
987
|
+
"internalType": "bool",
|
988
|
+
"name": "",
|
989
|
+
"type": "bool"
|
990
|
+
}
|
991
|
+
],
|
992
|
+
"stateMutability": "view",
|
993
|
+
"type": "function"
|
994
|
+
},
|
995
|
+
{
|
996
|
+
"inputs": [
|
997
|
+
{
|
998
|
+
"internalType": "bytes4",
|
999
|
+
"name": "interfaceId",
|
1000
|
+
"type": "bytes4"
|
1001
|
+
}
|
1002
|
+
],
|
1003
|
+
"name": "supportsInterface",
|
1004
|
+
"outputs": [
|
1005
|
+
{
|
1006
|
+
"internalType": "bool",
|
1007
|
+
"name": "",
|
1008
|
+
"type": "bool"
|
1009
|
+
}
|
1010
|
+
],
|
1011
|
+
"stateMutability": "view",
|
1012
|
+
"type": "function"
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
"inputs": [
|
1016
|
+
{
|
1017
|
+
"internalType": "ObjectType",
|
1018
|
+
"name": "objectType",
|
1019
|
+
"type": "uint8"
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"internalType": "KeyId",
|
1023
|
+
"name": "id",
|
1024
|
+
"type": "bytes31"
|
1025
|
+
}
|
1026
|
+
],
|
1027
|
+
"name": "toKey32",
|
1028
|
+
"outputs": [
|
1029
|
+
{
|
1030
|
+
"internalType": "Key32",
|
1031
|
+
"name": "",
|
1032
|
+
"type": "bytes32"
|
1033
|
+
}
|
1034
|
+
],
|
1035
|
+
"stateMutability": "pure",
|
1036
|
+
"type": "function"
|
1037
|
+
},
|
1038
|
+
{
|
1039
|
+
"inputs": [
|
1040
|
+
{
|
1041
|
+
"internalType": "NftId",
|
1042
|
+
"name": "bundleNftId",
|
1043
|
+
"type": "uint96"
|
1044
|
+
},
|
1045
|
+
{
|
1046
|
+
"components": [
|
1047
|
+
{
|
1048
|
+
"internalType": "NftId",
|
1049
|
+
"name": "poolNftId",
|
1050
|
+
"type": "uint96"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"components": [
|
1054
|
+
{
|
1055
|
+
"internalType": "UFixed",
|
1056
|
+
"name": "fractionalFee",
|
1057
|
+
"type": "uint256"
|
1058
|
+
},
|
1059
|
+
{
|
1060
|
+
"internalType": "uint256",
|
1061
|
+
"name": "fixedFee",
|
1062
|
+
"type": "uint256"
|
1063
|
+
}
|
1064
|
+
],
|
1065
|
+
"internalType": "struct Fee",
|
1066
|
+
"name": "fee",
|
1067
|
+
"type": "tuple"
|
1068
|
+
},
|
1069
|
+
{
|
1070
|
+
"internalType": "bytes",
|
1071
|
+
"name": "filter",
|
1072
|
+
"type": "bytes"
|
1073
|
+
},
|
1074
|
+
{
|
1075
|
+
"internalType": "uint256",
|
1076
|
+
"name": "capitalAmount",
|
1077
|
+
"type": "uint256"
|
1078
|
+
},
|
1079
|
+
{
|
1080
|
+
"internalType": "uint256",
|
1081
|
+
"name": "lockedAmount",
|
1082
|
+
"type": "uint256"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"internalType": "uint256",
|
1086
|
+
"name": "balanceAmount",
|
1087
|
+
"type": "uint256"
|
1088
|
+
},
|
1089
|
+
{
|
1090
|
+
"internalType": "uint256",
|
1091
|
+
"name": "lifetime",
|
1092
|
+
"type": "uint256"
|
1093
|
+
},
|
1094
|
+
{
|
1095
|
+
"internalType": "Timestamp",
|
1096
|
+
"name": "expiredAt",
|
1097
|
+
"type": "uint40"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"internalType": "Timestamp",
|
1101
|
+
"name": "closedAt",
|
1102
|
+
"type": "uint40"
|
1103
|
+
}
|
1104
|
+
],
|
1105
|
+
"internalType": "struct IBundle.BundleInfo",
|
1106
|
+
"name": "bundle",
|
1107
|
+
"type": "tuple"
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
"internalType": "StateId",
|
1111
|
+
"name": "newState",
|
1112
|
+
"type": "uint8"
|
1113
|
+
}
|
1114
|
+
],
|
1115
|
+
"name": "updateBundle",
|
1116
|
+
"outputs": [],
|
1117
|
+
"stateMutability": "nonpayable",
|
1118
|
+
"type": "function"
|
1119
|
+
},
|
1120
|
+
{
|
1121
|
+
"inputs": [
|
1122
|
+
{
|
1123
|
+
"internalType": "NftId",
|
1124
|
+
"name": "bundleNftId",
|
1125
|
+
"type": "uint96"
|
1126
|
+
},
|
1127
|
+
{
|
1128
|
+
"internalType": "StateId",
|
1129
|
+
"name": "newState",
|
1130
|
+
"type": "uint8"
|
1131
|
+
}
|
1132
|
+
],
|
1133
|
+
"name": "updateBundleState",
|
1134
|
+
"outputs": [],
|
1135
|
+
"stateMutability": "nonpayable",
|
1136
|
+
"type": "function"
|
1137
|
+
},
|
1138
|
+
{
|
1139
|
+
"inputs": [
|
1140
|
+
{
|
1141
|
+
"internalType": "NftId",
|
1142
|
+
"name": "distributionNftId",
|
1143
|
+
"type": "uint96"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"components": [
|
1147
|
+
{
|
1148
|
+
"internalType": "NftId",
|
1149
|
+
"name": "productNftId",
|
1150
|
+
"type": "uint96"
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
"internalType": "contract TokenHandler",
|
1154
|
+
"name": "tokenHandler",
|
1155
|
+
"type": "address"
|
1156
|
+
},
|
1157
|
+
{
|
1158
|
+
"components": [
|
1159
|
+
{
|
1160
|
+
"internalType": "UFixed",
|
1161
|
+
"name": "fractionalFee",
|
1162
|
+
"type": "uint256"
|
1163
|
+
},
|
1164
|
+
{
|
1165
|
+
"internalType": "uint256",
|
1166
|
+
"name": "fixedFee",
|
1167
|
+
"type": "uint256"
|
1168
|
+
}
|
1169
|
+
],
|
1170
|
+
"internalType": "struct Fee",
|
1171
|
+
"name": "distributionFee",
|
1172
|
+
"type": "tuple"
|
1173
|
+
},
|
1174
|
+
{
|
1175
|
+
"internalType": "bool",
|
1176
|
+
"name": "isIntercepting",
|
1177
|
+
"type": "bool"
|
1178
|
+
},
|
1179
|
+
{
|
1180
|
+
"internalType": "address",
|
1181
|
+
"name": "wallet",
|
1182
|
+
"type": "address"
|
1183
|
+
}
|
1184
|
+
],
|
1185
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1186
|
+
"name": "setup",
|
1187
|
+
"type": "tuple"
|
1188
|
+
},
|
1189
|
+
{
|
1190
|
+
"internalType": "StateId",
|
1191
|
+
"name": "newState",
|
1192
|
+
"type": "uint8"
|
1193
|
+
}
|
1194
|
+
],
|
1195
|
+
"name": "updateDistributionSetup",
|
1196
|
+
"outputs": [],
|
1197
|
+
"stateMutability": "nonpayable",
|
1198
|
+
"type": "function"
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"inputs": [
|
1202
|
+
{
|
1203
|
+
"internalType": "NftId",
|
1204
|
+
"name": "distributionNftId",
|
1205
|
+
"type": "uint96"
|
1206
|
+
},
|
1207
|
+
{
|
1208
|
+
"internalType": "StateId",
|
1209
|
+
"name": "newState",
|
1210
|
+
"type": "uint8"
|
1211
|
+
}
|
1212
|
+
],
|
1213
|
+
"name": "updateDistributionSetupState",
|
1214
|
+
"outputs": [],
|
1215
|
+
"stateMutability": "nonpayable",
|
1216
|
+
"type": "function"
|
1217
|
+
},
|
1218
|
+
{
|
1219
|
+
"inputs": [
|
1220
|
+
{
|
1221
|
+
"internalType": "NftId",
|
1222
|
+
"name": "policyNftId",
|
1223
|
+
"type": "uint96"
|
1224
|
+
},
|
1225
|
+
{
|
1226
|
+
"components": [
|
1227
|
+
{
|
1228
|
+
"internalType": "NftId",
|
1229
|
+
"name": "productNftId",
|
1230
|
+
"type": "uint96"
|
1231
|
+
},
|
1232
|
+
{
|
1233
|
+
"internalType": "NftId",
|
1234
|
+
"name": "bundleNftId",
|
1235
|
+
"type": "uint96"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"internalType": "ReferralId",
|
1239
|
+
"name": "referralId",
|
1240
|
+
"type": "bytes8"
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
"internalType": "RiskId",
|
1244
|
+
"name": "riskId",
|
1245
|
+
"type": "bytes8"
|
1246
|
+
},
|
1247
|
+
{
|
1248
|
+
"internalType": "uint256",
|
1249
|
+
"name": "sumInsuredAmount",
|
1250
|
+
"type": "uint256"
|
1251
|
+
},
|
1252
|
+
{
|
1253
|
+
"internalType": "uint256",
|
1254
|
+
"name": "premiumAmount",
|
1255
|
+
"type": "uint256"
|
1256
|
+
},
|
1257
|
+
{
|
1258
|
+
"internalType": "uint256",
|
1259
|
+
"name": "premiumPaidAmount",
|
1260
|
+
"type": "uint256"
|
1261
|
+
},
|
1262
|
+
{
|
1263
|
+
"internalType": "uint256",
|
1264
|
+
"name": "lifetime",
|
1265
|
+
"type": "uint256"
|
1266
|
+
},
|
1267
|
+
{
|
1268
|
+
"internalType": "bytes",
|
1269
|
+
"name": "applicationData",
|
1270
|
+
"type": "bytes"
|
1271
|
+
},
|
1272
|
+
{
|
1273
|
+
"internalType": "bytes",
|
1274
|
+
"name": "policyData",
|
1275
|
+
"type": "bytes"
|
1276
|
+
},
|
1277
|
+
{
|
1278
|
+
"internalType": "uint16",
|
1279
|
+
"name": "claimsCount",
|
1280
|
+
"type": "uint16"
|
1281
|
+
},
|
1282
|
+
{
|
1283
|
+
"internalType": "uint16",
|
1284
|
+
"name": "openClaimsCount",
|
1285
|
+
"type": "uint16"
|
1286
|
+
},
|
1287
|
+
{
|
1288
|
+
"internalType": "uint256",
|
1289
|
+
"name": "payoutAmount",
|
1290
|
+
"type": "uint256"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"internalType": "Timestamp",
|
1294
|
+
"name": "activatedAt",
|
1295
|
+
"type": "uint40"
|
1296
|
+
},
|
1297
|
+
{
|
1298
|
+
"internalType": "Timestamp",
|
1299
|
+
"name": "expiredAt",
|
1300
|
+
"type": "uint40"
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
"internalType": "Timestamp",
|
1304
|
+
"name": "closedAt",
|
1305
|
+
"type": "uint40"
|
1306
|
+
}
|
1307
|
+
],
|
1308
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1309
|
+
"name": "policy",
|
1310
|
+
"type": "tuple"
|
1311
|
+
},
|
1312
|
+
{
|
1313
|
+
"internalType": "StateId",
|
1314
|
+
"name": "newState",
|
1315
|
+
"type": "uint8"
|
1316
|
+
}
|
1317
|
+
],
|
1318
|
+
"name": "updatePolicy",
|
1319
|
+
"outputs": [],
|
1320
|
+
"stateMutability": "nonpayable",
|
1321
|
+
"type": "function"
|
1322
|
+
},
|
1323
|
+
{
|
1324
|
+
"inputs": [
|
1325
|
+
{
|
1326
|
+
"internalType": "NftId",
|
1327
|
+
"name": "policyNftId",
|
1328
|
+
"type": "uint96"
|
1329
|
+
},
|
1330
|
+
{
|
1331
|
+
"internalType": "StateId",
|
1332
|
+
"name": "newState",
|
1333
|
+
"type": "uint8"
|
1334
|
+
}
|
1335
|
+
],
|
1336
|
+
"name": "updatePolicyState",
|
1337
|
+
"outputs": [],
|
1338
|
+
"stateMutability": "nonpayable",
|
1339
|
+
"type": "function"
|
1340
|
+
},
|
1341
|
+
{
|
1342
|
+
"inputs": [
|
1343
|
+
{
|
1344
|
+
"internalType": "NftId",
|
1345
|
+
"name": "poolNftId",
|
1346
|
+
"type": "uint96"
|
1347
|
+
},
|
1348
|
+
{
|
1349
|
+
"components": [
|
1350
|
+
{
|
1351
|
+
"internalType": "NftId",
|
1352
|
+
"name": "productNftId",
|
1353
|
+
"type": "uint96"
|
1354
|
+
},
|
1355
|
+
{
|
1356
|
+
"internalType": "contract TokenHandler",
|
1357
|
+
"name": "tokenHandler",
|
1358
|
+
"type": "address"
|
1359
|
+
},
|
1360
|
+
{
|
1361
|
+
"internalType": "UFixed",
|
1362
|
+
"name": "collateralizationLevel",
|
1363
|
+
"type": "uint256"
|
1364
|
+
},
|
1365
|
+
{
|
1366
|
+
"components": [
|
1367
|
+
{
|
1368
|
+
"internalType": "UFixed",
|
1369
|
+
"name": "fractionalFee",
|
1370
|
+
"type": "uint256"
|
1371
|
+
},
|
1372
|
+
{
|
1373
|
+
"internalType": "uint256",
|
1374
|
+
"name": "fixedFee",
|
1375
|
+
"type": "uint256"
|
1376
|
+
}
|
1377
|
+
],
|
1378
|
+
"internalType": "struct Fee",
|
1379
|
+
"name": "poolFee",
|
1380
|
+
"type": "tuple"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"components": [
|
1384
|
+
{
|
1385
|
+
"internalType": "UFixed",
|
1386
|
+
"name": "fractionalFee",
|
1387
|
+
"type": "uint256"
|
1388
|
+
},
|
1389
|
+
{
|
1390
|
+
"internalType": "uint256",
|
1391
|
+
"name": "fixedFee",
|
1392
|
+
"type": "uint256"
|
1393
|
+
}
|
1394
|
+
],
|
1395
|
+
"internalType": "struct Fee",
|
1396
|
+
"name": "stakingFee",
|
1397
|
+
"type": "tuple"
|
1398
|
+
},
|
1399
|
+
{
|
1400
|
+
"components": [
|
1401
|
+
{
|
1402
|
+
"internalType": "UFixed",
|
1403
|
+
"name": "fractionalFee",
|
1404
|
+
"type": "uint256"
|
1405
|
+
},
|
1406
|
+
{
|
1407
|
+
"internalType": "uint256",
|
1408
|
+
"name": "fixedFee",
|
1409
|
+
"type": "uint256"
|
1410
|
+
}
|
1411
|
+
],
|
1412
|
+
"internalType": "struct Fee",
|
1413
|
+
"name": "performanceFee",
|
1414
|
+
"type": "tuple"
|
1415
|
+
},
|
1416
|
+
{
|
1417
|
+
"internalType": "bool",
|
1418
|
+
"name": "isIntercepting",
|
1419
|
+
"type": "bool"
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
"internalType": "bool",
|
1423
|
+
"name": "isConfirmingApplication",
|
1424
|
+
"type": "bool"
|
1425
|
+
},
|
1426
|
+
{
|
1427
|
+
"internalType": "address",
|
1428
|
+
"name": "wallet",
|
1429
|
+
"type": "address"
|
1430
|
+
}
|
1431
|
+
],
|
1432
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1433
|
+
"name": "setup",
|
1434
|
+
"type": "tuple"
|
1435
|
+
},
|
1436
|
+
{
|
1437
|
+
"internalType": "StateId",
|
1438
|
+
"name": "newState",
|
1439
|
+
"type": "uint8"
|
1440
|
+
}
|
1441
|
+
],
|
1442
|
+
"name": "updatePoolSetup",
|
1443
|
+
"outputs": [],
|
1444
|
+
"stateMutability": "nonpayable",
|
1445
|
+
"type": "function"
|
1446
|
+
},
|
1447
|
+
{
|
1448
|
+
"inputs": [
|
1449
|
+
{
|
1450
|
+
"internalType": "NftId",
|
1451
|
+
"name": "poolNftId",
|
1452
|
+
"type": "uint96"
|
1453
|
+
},
|
1454
|
+
{
|
1455
|
+
"internalType": "StateId",
|
1456
|
+
"name": "newState",
|
1457
|
+
"type": "uint8"
|
1458
|
+
}
|
1459
|
+
],
|
1460
|
+
"name": "updatePoolSetupState",
|
1461
|
+
"outputs": [],
|
1462
|
+
"stateMutability": "nonpayable",
|
1463
|
+
"type": "function"
|
1464
|
+
},
|
1465
|
+
{
|
1466
|
+
"inputs": [
|
1467
|
+
{
|
1468
|
+
"internalType": "NftId",
|
1469
|
+
"name": "productNftId",
|
1470
|
+
"type": "uint96"
|
1471
|
+
},
|
1472
|
+
{
|
1473
|
+
"components": [
|
1474
|
+
{
|
1475
|
+
"internalType": "contract IERC20Metadata",
|
1476
|
+
"name": "token",
|
1477
|
+
"type": "address"
|
1478
|
+
},
|
1479
|
+
{
|
1480
|
+
"internalType": "contract TokenHandler",
|
1481
|
+
"name": "tokenHandler",
|
1482
|
+
"type": "address"
|
1483
|
+
},
|
1484
|
+
{
|
1485
|
+
"internalType": "NftId",
|
1486
|
+
"name": "distributionNftId",
|
1487
|
+
"type": "uint96"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"internalType": "NftId",
|
1491
|
+
"name": "poolNftId",
|
1492
|
+
"type": "uint96"
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"components": [
|
1496
|
+
{
|
1497
|
+
"internalType": "UFixed",
|
1498
|
+
"name": "fractionalFee",
|
1499
|
+
"type": "uint256"
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"internalType": "uint256",
|
1503
|
+
"name": "fixedFee",
|
1504
|
+
"type": "uint256"
|
1505
|
+
}
|
1506
|
+
],
|
1507
|
+
"internalType": "struct Fee",
|
1508
|
+
"name": "distributionFee",
|
1509
|
+
"type": "tuple"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"components": [
|
1513
|
+
{
|
1514
|
+
"internalType": "UFixed",
|
1515
|
+
"name": "fractionalFee",
|
1516
|
+
"type": "uint256"
|
1517
|
+
},
|
1518
|
+
{
|
1519
|
+
"internalType": "uint256",
|
1520
|
+
"name": "fixedFee",
|
1521
|
+
"type": "uint256"
|
1522
|
+
}
|
1523
|
+
],
|
1524
|
+
"internalType": "struct Fee",
|
1525
|
+
"name": "productFee",
|
1526
|
+
"type": "tuple"
|
1527
|
+
},
|
1528
|
+
{
|
1529
|
+
"components": [
|
1530
|
+
{
|
1531
|
+
"internalType": "UFixed",
|
1532
|
+
"name": "fractionalFee",
|
1533
|
+
"type": "uint256"
|
1534
|
+
},
|
1535
|
+
{
|
1536
|
+
"internalType": "uint256",
|
1537
|
+
"name": "fixedFee",
|
1538
|
+
"type": "uint256"
|
1539
|
+
}
|
1540
|
+
],
|
1541
|
+
"internalType": "struct Fee",
|
1542
|
+
"name": "processingFee",
|
1543
|
+
"type": "tuple"
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"components": [
|
1547
|
+
{
|
1548
|
+
"internalType": "UFixed",
|
1549
|
+
"name": "fractionalFee",
|
1550
|
+
"type": "uint256"
|
1551
|
+
},
|
1552
|
+
{
|
1553
|
+
"internalType": "uint256",
|
1554
|
+
"name": "fixedFee",
|
1555
|
+
"type": "uint256"
|
1556
|
+
}
|
1557
|
+
],
|
1558
|
+
"internalType": "struct Fee",
|
1559
|
+
"name": "poolFee",
|
1560
|
+
"type": "tuple"
|
1561
|
+
},
|
1562
|
+
{
|
1563
|
+
"components": [
|
1564
|
+
{
|
1565
|
+
"internalType": "UFixed",
|
1566
|
+
"name": "fractionalFee",
|
1567
|
+
"type": "uint256"
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"internalType": "uint256",
|
1571
|
+
"name": "fixedFee",
|
1572
|
+
"type": "uint256"
|
1573
|
+
}
|
1574
|
+
],
|
1575
|
+
"internalType": "struct Fee",
|
1576
|
+
"name": "stakingFee",
|
1577
|
+
"type": "tuple"
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
"components": [
|
1581
|
+
{
|
1582
|
+
"internalType": "UFixed",
|
1583
|
+
"name": "fractionalFee",
|
1584
|
+
"type": "uint256"
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"internalType": "uint256",
|
1588
|
+
"name": "fixedFee",
|
1589
|
+
"type": "uint256"
|
1590
|
+
}
|
1591
|
+
],
|
1592
|
+
"internalType": "struct Fee",
|
1593
|
+
"name": "performanceFee",
|
1594
|
+
"type": "tuple"
|
1595
|
+
},
|
1596
|
+
{
|
1597
|
+
"internalType": "bool",
|
1598
|
+
"name": "isIntercepting",
|
1599
|
+
"type": "bool"
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
"internalType": "address",
|
1603
|
+
"name": "wallet",
|
1604
|
+
"type": "address"
|
1605
|
+
}
|
1606
|
+
],
|
1607
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1608
|
+
"name": "setup",
|
1609
|
+
"type": "tuple"
|
1610
|
+
},
|
1611
|
+
{
|
1612
|
+
"internalType": "StateId",
|
1613
|
+
"name": "newState",
|
1614
|
+
"type": "uint8"
|
1615
|
+
}
|
1616
|
+
],
|
1617
|
+
"name": "updateProductSetup",
|
1618
|
+
"outputs": [],
|
1619
|
+
"stateMutability": "nonpayable",
|
1620
|
+
"type": "function"
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"inputs": [
|
1624
|
+
{
|
1625
|
+
"internalType": "NftId",
|
1626
|
+
"name": "productNftId",
|
1627
|
+
"type": "uint96"
|
1628
|
+
},
|
1629
|
+
{
|
1630
|
+
"internalType": "StateId",
|
1631
|
+
"name": "newState",
|
1632
|
+
"type": "uint8"
|
1633
|
+
}
|
1634
|
+
],
|
1635
|
+
"name": "updateProductSetupState",
|
1636
|
+
"outputs": [],
|
1637
|
+
"stateMutability": "nonpayable",
|
1638
|
+
"type": "function"
|
1639
|
+
},
|
1640
|
+
{
|
1641
|
+
"inputs": [
|
1642
|
+
{
|
1643
|
+
"internalType": "RiskId",
|
1644
|
+
"name": "riskId",
|
1645
|
+
"type": "bytes8"
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
"components": [
|
1649
|
+
{
|
1650
|
+
"internalType": "NftId",
|
1651
|
+
"name": "productNftId",
|
1652
|
+
"type": "uint96"
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
"internalType": "bytes",
|
1656
|
+
"name": "data",
|
1657
|
+
"type": "bytes"
|
1658
|
+
}
|
1659
|
+
],
|
1660
|
+
"internalType": "struct IRisk.RiskInfo",
|
1661
|
+
"name": "risk",
|
1662
|
+
"type": "tuple"
|
1663
|
+
},
|
1664
|
+
{
|
1665
|
+
"internalType": "StateId",
|
1666
|
+
"name": "newState",
|
1667
|
+
"type": "uint8"
|
1668
|
+
}
|
1669
|
+
],
|
1670
|
+
"name": "updateRisk",
|
1671
|
+
"outputs": [],
|
1672
|
+
"stateMutability": "nonpayable",
|
1673
|
+
"type": "function"
|
1674
|
+
},
|
1675
|
+
{
|
1676
|
+
"inputs": [
|
1677
|
+
{
|
1678
|
+
"internalType": "RiskId",
|
1679
|
+
"name": "riskId",
|
1680
|
+
"type": "bytes8"
|
1681
|
+
},
|
1682
|
+
{
|
1683
|
+
"internalType": "StateId",
|
1684
|
+
"name": "newState",
|
1685
|
+
"type": "uint8"
|
1686
|
+
}
|
1687
|
+
],
|
1688
|
+
"name": "updateRiskState",
|
1689
|
+
"outputs": [],
|
1690
|
+
"stateMutability": "nonpayable",
|
344
1691
|
"type": "function"
|
345
1692
|
}
|
346
1693
|
],
|